Skip to content

Fix git graph page#34948

Merged
wxiaoguang merged 4 commits into
go-gitea:mainfrom
wxiaoguang:fix-gitgraph
Jul 4, 2025
Merged

Fix git graph page#34948
wxiaoguang merged 4 commits into
go-gitea:mainfrom
wxiaoguang:fix-gitgraph

Conversation

@wxiaoguang

@wxiaoguang wxiaoguang commented Jul 4, 2025

Copy link
Copy Markdown
Contributor

Too many bugs, fix together

And fix #34946

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 4, 2025
@wxiaoguang

wxiaoguang commented Jul 4, 2025

Copy link
Copy Markdown
Contributor Author

Before:

Details

image

After:

Details

image


And there is a regression from "Remove jQuery from the commit graph (except Fomantic) (#30395)", the "hover highlight" stopped working since that time. Actually no one noticed it, no user ever complained, and the "visual feedback" is not obvious. So this PR removes that part of code.

@wxiaoguang wxiaoguang added type/bug backport/done All backports for this PR have been created backport/manual No power to the bots! Create your backport yourself! labels Jul 4, 2025
Comment thread templates/repo/commits_list.tmpl Outdated
Comment thread web_src/js/features/repo-graph.ts Outdated
Comment thread web_src/js/features/repo-graph.ts Outdated
@GiteaBot GiteaBot added lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 4, 2025
@silverwind silverwind self-requested a review July 4, 2025 11:49
@silverwind silverwind removed the lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged label Jul 4, 2025
@GiteaBot GiteaBot added the lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged label Jul 4, 2025
Signed-off-by: silverwind <me@silverwind.io>

@silverwind silverwind left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks ok, have not tested it.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged labels Jul 4, 2025
Comment thread templates/repo/graph.tmpl
Comment thread templates/repo/graph.tmpl
Comment thread templates/repo/graph.tmpl
Comment thread templates/repo/graph.tmpl
Comment thread templates/repo/graph.tmpl
Comment thread web_src/js/features/repo-graph.ts
@wxiaoguang

wxiaoguang commented Jul 4, 2025

Copy link
Copy Markdown
Contributor Author

@delvh

I don't think the data-tooltip-content is right

Details

image

@delvh

delvh commented Jul 4, 2025

Copy link
Copy Markdown
Member

Wait, but why are we displaying a title there then in the first place?

@silverwind

Copy link
Copy Markdown
Member

I'd remove the tooltip entirely there.

@delvh

delvh commented Jul 4, 2025

Copy link
Copy Markdown
Member

Isn't the title there equally faulty?

@wxiaoguang

wxiaoguang commented Jul 4, 2025

Copy link
Copy Markdown
Contributor Author

I'd remove the tooltip entirely there.

They have gt-ellipsis, the title is still good to have.

This PR aims to fix a lot of legacy problems, UI re-design is not in this PR's scope.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 4, 2025
@wxiaoguang wxiaoguang enabled auto-merge (squash) July 4, 2025 15:26
wxiaoguang added a commit that referenced this pull request Jul 4, 2025
@wxiaoguang wxiaoguang merged commit 70685a9 into go-gitea:main Jul 4, 2025
26 checks passed
@GiteaBot GiteaBot added this to the 1.25.0 milestone Jul 4, 2025
@wxiaoguang wxiaoguang deleted the fix-gitgraph branch July 4, 2025 15:45
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jul 7, 2025
* giteaofficial/main:
  [skip ci] Updated translations via Crowdin
  Rerun job only when run is done (go-gitea#34970)
  Enable gocritic `equalFold` and fix issues (go-gitea#34952)
  Fixed minor typos in two files #HSFDPMUW (go-gitea#34944)
  Improve project & label color picker and image scroll (go-gitea#34971)
  Refactor webhook and fix feishu/lark secret (go-gitea#34961)
  Improve OAuth2 provider (correct Issuer, respect ENABLED) (go-gitea#34966)
  Merge index.js (go-gitea#34963)
  [skip ci] Updated translations via Crowdin
  Mark old reviews as stale on agit pr updates (go-gitea#34933)
  Refactor "delete-button" to "link-action" (go-gitea#34962)
  Refactor frontend unique id & comment (go-gitea#34958)
  Refactor some trivial problems (go-gitea#34959)
  Upgrade security public key (go-gitea#34956)
  Fix git graph page (go-gitea#34948)
  Update JS dependencies (go-gitea#34951)
  Refactor head navbar icons (go-gitea#34922)

# Conflicts:
#	templates/base/head_navbar.tmpl
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Oct 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/done All backports for this PR have been created backport/manual No power to the bots! Create your backport yourself! lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Commit Graph - Paging broken when any branch is selected

4 participants