-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Hide archived labels by default from the suggestions when assigning labels for an issue #27451
Hide archived labels by default from the suggestions when assigning labels for an issue #27451
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your approach is one way of doing it.
There is one other possible approach:
I don't see a benefit in assigning archived labels.
They should only be removable from an issue.
It is basically the same approach as in the previous PR:
- Always show selected labels or unarchived labels (including the
archived
hint if a label is archived). - However, don't show the checkbox to show archived labels, it is simply not present.
- We may or may not still accept the URL parameter (
show-archived=true
) and handle it accordingly for power users who want
As we've discussed in person, I'm fine with either approach.
…and pr detail page label drop down
Ready for review again. |
Signed-off-by: puni9869 <punitinani1@hotmail.com>
can I get one more approval or review |
@@ -680,3 +680,10 @@ export function initIssueTemplateCommentEditors($commentForm) { | |||
initCombo($(el)); | |||
} | |||
} | |||
|
|||
export function initArchivedLabelHandler() { | |||
if (!document.querySelector('.archived-label-hint')) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we selecting for this hint? Seems brittle. Can the below loop stand on its own without this? If not, at least add a comment explaining the reason for this selector.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will refactor this naming a little bit.
Why is there no I find the current UI confusing, and would rather rewrite the dropdown to a style similar to GitHub. |
Yes, that will be the next step. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not totally happy with it but I guess if you really must land it, go ahead.
…abels for an issue (go-gitea#27451) Followup of go-gitea#27115 Finally closes go-gitea#25237 ## Screenshots ### Issue Sidebar <img width="513" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/9f7fda2f-5a03-4684-8619-fd3498a95b41"> ### PR sidebar <img width="367" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/53db9b64-faec-4a67-91d6-76945596a469"> ### PR sidebar with archived labels shown <img width="352" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/9dc5050f-4e69-4f76-bb83-582480a2281e"> --------- Signed-off-by: puni9869 <punitinani1@hotmail.com> Co-authored-by: silverwind <me@silverwind.io>
…abels for an issue (#27451) (#27661) Backport #27451 by @puni9869 Followup of #27115 Finally closes #25237 ## Screenshots ### Issue Sidebar <img width="513" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/9f7fda2f-5a03-4684-8619-fd3498a95b41"> ### PR sidebar <img width="367" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/53db9b64-faec-4a67-91d6-76945596a469"> ### PR sidebar with archived labels shown <img width="352" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/9dc5050f-4e69-4f76-bb83-582480a2281e"> Signed-off-by: puni9869 <punitinani1@hotmail.com> Co-authored-by: puni9869 <80308335+puni9869@users.noreply.github.com> Co-authored-by: silverwind <me@silverwind.io>
* giteaofficial/main: Improve the list header in milestone page (go-gitea#27302) Fix poster is not loaded in get default merge message (go-gitea#27657) Hide archived labels by default from the suggestions when assigning labels for an issue (go-gitea#27451) actions/setup-go use go-version-file (go-gitea#27651) Update agit-support.en-us.md (go-gitea#27652)
Followup of #27115
Finally closes #25237
Screenshots
Issue Sidebar
PR sidebar
PR sidebar with archived labels shown