Only use prev and next buttons for pagination on user dashboard#33981
Merged
wxiaoguang merged 7 commits intogo-gitea:mainfrom Mar 23, 2025
Merged
Only use prev and next buttons for pagination on user dashboard#33981wxiaoguang merged 7 commits intogo-gitea:mainfrom
wxiaoguang merged 7 commits intogo-gitea:mainfrom
Conversation
appleboy
approved these changes
Mar 23, 2025
wxiaoguang
previously requested changes
Mar 23, 2025
Contributor
wxiaoguang
left a comment
There was a problem hiding this comment.
Why a new unnecessary config option and why keep copying-pasting the code , and why math.MaxInt32
Contributor
|
It should make a "Paginator" like this: Pages=nil, HasPrev=true, HasNext=true |
Member
Author
Did you mean reuse the original template? Then we still need to handle |
wxiaoguang
reviewed
Mar 23, 2025
e2f13c0 to
19d11c3
Compare
19d11c3 to
69aa478
Compare
wxiaoguang
approved these changes
Mar 23, 2025
Member
Author
Contributor
I believe yes. Otherwise, how could a user know which page they are viewing? |
Contributor
f10dd0b to
9271280
Compare
9271280 to
1f790ec
Compare
zjjhot
added a commit
to zjjhot/gitea
that referenced
this pull request
Mar 24, 2025
* giteaofficial/main: [skip ci] Updated translations via Crowdin Only use prev and next buttons for pagination on user dashboard (go-gitea#33981) update jwt and redis packages (go-gitea#33984) [skip ci] Updated translations via Crowdin Improve oauth2 error handling (go-gitea#33969) [skip ci] Updated translations via Crowdin Cover `go.mod` and `go.sum` in `.editorconfig` (go-gitea#33960) Drop timeout for requests made to the internal hook api (go-gitea#33947) Fix file name could not be searched if the file was not a text file when using the Bleve indexer (go-gitea#33959) Fix oauth2 auth and UI (go-gitea#33961) Allow filtering issues by any assignee (go-gitea#33343) Optimize total count of feed when loading activities in user dashboard. (go-gitea#33841) Extract code to their own functions for push update (go-gitea#33944) Optimize heatmap query (go-gitea#33853)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




The pagination on the user dashboard sounds unnecessary, this will change it to a prev/next buttons. For instances with around
10 millionrecords in the action table, this option affects how the user dashboard is loaded on first visit.Before:
After: