-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display project's name in pages which are related to issues by using project.Name instead of project.Title #23038
Display project's name in pages which are related to issues by using project.Name instead of project.Title #23038
Conversation
How about moving the repository or owner information in the title? |
project.Title will be used in Projects List/View Pages. It is no necessary to display the repository or owner information in these pages. Maybe we can change |
I have a draft design in my mind about this design, introduce a
The benefit:
|
Since we have context cache now(#22294), I think we can add |
I don't think this problem is related to cache directly. If cache could help, then use it. If cache does no help, then no need to consider it. ps: I think zeripath's PR #23051 is also the similar idea, while 23051 could use a JOIN query to load models. |
@wxiaoguang |
I don't understand why gitea/models/issues/issue_list.go Line 20 in 6c35454
|
That's Go's quirk. It doesn't like However, I think ps: lunny knows more about XORM, maybe he could help to review. |
So how about change the pkg name from |
I would suggest not mixing the refactoring changes and feature changes together when a PR doesn't depend on the refactoring directly.
|
I know this. I mean how about do it in a separate PR. |
I have no idea. https://docs.gitea.io/en-us/guidelines-backend/#package-name |
Personally I think a different icon for repo and organization projects would be enough. Giving the projects distinguishable titles is also just a responsibility of the user in my opinion. To me this feels like it's adding clutter to the issue list. The screenshot shows a simple case, but if you have labels, PR status and conflicts, PR branches, org/repo on the dashboard pages, ... it all adds up and too much information makes it harder to scan for the relevant bits. |
This PR is a part of #22865
Although we have different icons between repo project and user project,
(in some places they have same icons, I will fix them later)
but it is still hard to know which one is a repo's project if they have the same title.
Before:
After:
Maybe we can remove
-
?