fix(repo): unify DEFAULT_SHOW_FULL_NAME output in templates and dropdown#36597
fix(repo): unify DEFAULT_SHOW_FULL_NAME output in templates and dropdown#36597wxiaoguang merged 15 commits intogo-gitea:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR aims to make user display names consistent across repo search templates and the issue list “remote user search” dropdown when DEFAULT_SHOW_FULL_NAME is enabled, so the UI shows a single identifier instead of username + full name.
Changes:
- Update issue list remote-search dropdown rendering to show
full_nameinstead ofusername + full_name(when available). - Update
repo/search_nametemplate to show only full name whenDefaultShowFullNameis enabled, otherwise show username.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| web_src/js/features/repo-issue-list.ts | Changes dropdown remote-search item rendering to prefer full name over username when full name is present. |
| templates/repo/search_name.tmpl | Changes shared “search name” template to conditionally render full name vs username based on DefaultShowFullName. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ReviewOverall the approach is sound — the template change follows the same pattern already used in However, I see a visual issue:
|
|
It's still not convenient to only show full name. It might be useful to display both. |
|
I believe the "DefaultShowFullName" is a wrong design and a lot of old code doesn't do the right thing. For most cases, it should show either |
|
@tyroneyeh does the new change look good to you and addressed your concern? Screenshots: |
597b8b2 to
85c1ad5
Compare
85c1ad5 to
8bb9cf1
Compare
Yes, look good Thanks |
* giteaofficial/main: Fix non-admins unable to automerge PRs from forks (go-gitea#36833) upgrade to github.com/cloudflare/circl 1.6.3, svgo 4.0.1, markdownlint-cli 0.48.0 (go-gitea#36837) Fix dump release asset bug (go-gitea#36799) build(deps): update material-icon-theme v5.32.0 (go-gitea#36832) Fix bug to check whether user can update pull request branch or rebase branch (go-gitea#36465) Fix forwarded proto handling for public URL detection (go-gitea#36810) Fix artifacts v4 backend upload problems (go-gitea#36805) Add a git grep search timeout (go-gitea#36809) fix(repo): unify DEFAULT_SHOW_FULL_NAME output in templates and dropdown (go-gitea#36597) Harden render iframe open-link handling (go-gitea#36811)
* origin/main: (27 commits) Fix OAuth2 authorization code expiry and reuse handling (go-gitea#36797) Fix org permission API visibility checks for hidden members and private orgs (go-gitea#36798) Fix non-admins unable to automerge PRs from forks (go-gitea#36833) upgrade to github.com/cloudflare/circl 1.6.3, svgo 4.0.1, markdownlint-cli 0.48.0 (go-gitea#36837) Fix dump release asset bug (go-gitea#36799) build(deps): update material-icon-theme v5.32.0 (go-gitea#36832) Fix bug to check whether user can update pull request branch or rebase branch (go-gitea#36465) Fix forwarded proto handling for public URL detection (go-gitea#36810) Fix artifacts v4 backend upload problems (go-gitea#36805) Add a git grep search timeout (go-gitea#36809) fix(repo): unify DEFAULT_SHOW_FULL_NAME output in templates and dropdown (go-gitea#36597) Harden render iframe open-link handling (go-gitea#36811) [skip ci] Updated translations via Crowdin fix: /repos/{owner}/{repo}/actions/{runs,jobs} requiring owner permissions (go-gitea#36818) Fix CRAN package version validation to allow more than 4 version components (go-gitea#36813) Fix API not persisting pull request unit config when has_pull_requests is not set (go-gitea#36718) feat: Add Actions API rerun endpoints for runs and jobs (go-gitea#36768) Fix bug when pushing mirror with wiki (go-gitea#36795) Pull Request Pusher should be the author of the merge (go-gitea#36581) Delete non-exist branch should return 404 (go-gitea#36694) ... # Conflicts: # routers/web/repo/issue_view.go









The design of DefaultShowFullName has some problems, which make the UI inconsistent, see the new comment in code
This PR does a clean up for various legacy problems, and clarify some "user name display" behaviors.
New screenshots are in #36597 (comment)