Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix missing items in organization menu #33928

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

ExplodingDragon
Copy link
Contributor

@ExplodingDragon ExplodingDragon commented Mar 18, 2025

Fix missing items in organization menu.

Before:

After:

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 18, 2025
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 18, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Mar 18, 2025
@ExplodingDragon ExplodingDragon changed the title Fix org menu Title Fix org menu items Mar 18, 2025
@ExplodingDragon ExplodingDragon changed the title Fix org menu items Fix missing items in organization menu Mar 18, 2025
@ExplodingDragon ExplodingDragon marked this pull request as ready for review March 18, 2025 09:28
@lunny lunny added the type/bug label Mar 19, 2025
@lunny
Copy link
Member

lunny commented Mar 19, 2025

image
Org Code UI still missed the overview tab.

@pull-request-size pull-request-size bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 20, 2025
ctx.ServerError("PrepareOrgHeader", err)
return
}
}
Copy link
Contributor

@wxiaoguang wxiaoguang Mar 20, 2025

Choose a reason for hiding this comment

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

Now the logic seems strange:

image

Ideally, maybe there should be a shared_user.PrepareOwnerHeader, and in it prepare for user or for org by user type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wxiaoguang I will attempt to refactor this section and extract more common code.

@ExplodingDragon ExplodingDragon marked this pull request as draft March 20, 2025 01:35
@wxiaoguang
Copy link
Contributor

Is this PR active? Maybe it's good to have it in 1.24, ps: a recent similar PR:

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/go Pull requests that update Go code size/M Denotes a PR that changes 30-99 lines, ignoring generated files. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants