You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
quick-label-removal is not showing on issues #8226
It seems that the quick-label-removal feature broke. I have a private repository in a private GitHub.com organization.
As you can see the 'gear icon' is there, so I do have permission to manage labels here, but the 'remove' icon that quick-label-remove is suppose to arrive is missing.
Inspecting the css classes, I can see that the css class is: octicon octicon-gear, while in the codebase we seem to be looking for .label-select-menu .octicon-gear.
The weird thing is that on my open source repository here: Brend-Smits/Brend-Smits#2 it is working just fine. The css selectors are also different. I think this was working due to caching.
Ah got it! I searched through that issue searching for 'quick-label-removal' and found no matches, hence I decided to open an issue ^^ Sorry about that!
Anything that I can help with to perhaps help fix this problem?
I looked into this yesterday evening but it seems that it's quite a challenge to get the proper labels by html element or css class.
Previously they had a class name such as 'issue-label' or 'label-list', but no more of that.
All the class names now look automatically generated (example):
I will have another look tonight, but if you have any pointers on how you would handle these auto generated classes to create a reliable solution, please let me know.
Also fair disclaimer, I'm not a JS developer, so please let me know if you have tips..
I've gotten it to work for the new beta version. However, I then found out this has to be backwards compatible.. because the pull request page uses still an old layout and not everyone uses the new layout yet.
changed the title [-]`quick-label-removal` is not showing, even though I have permission[/-][+]`quick-label-removal` is not showing on new issue beta [/+]on Jan 18, 2025
Adding support while keeping the old version should not be more difficult: just add one more observer and one more handler for that observer. Once the old view is finally removed, we'll just delete the old code.
this doesn't really help because updating takes 2-3 seconds, which is too slow
That's fast enough for me, particularly because the modal updates even after being open and interacted with. In my earlier tests it was fast enough to barely even require using label.hidden = true on the clicked label.
Activity
fregante commentedon Jan 16, 2025
Due to:
Brend-Smits commentedon Jan 16, 2025
Ah got it! I searched through that issue searching for 'quick-label-removal' and found no matches, hence I decided to open an issue ^^ Sorry about that!
Anything that I can help with to perhaps help fix this problem?
fregante commentedon Jan 16, 2025
If you're able to build and work on the extension itself, a PR is appreciated: https://github.com/refined-github/refined-github/wiki/Contributing
Brend-Smits commentedon Jan 17, 2025
hey @fregante,
I looked into this yesterday evening but it seems that it's quite a challenge to get the proper labels by html element or css class.
Previously they had a class name such as 'issue-label' or 'label-list', but no more of that.
All the class names now look automatically generated (example):
or
What I current have...
First I check if I can edit the labels:
Next, I can get the overall div where the labels are located by looking for (this is also not perfect..):
However, the removeLabelList is where I get stuck. I can't get the closest object. I assume here I need to get a name of the label..
I will have another look tonight, but if you have any pointers on how you would handle these auto generated classes to create a reliable solution, please let me know.
Also fair disclaimer, I'm not a JS developer, so please let me know if you have tips..
fregante commentedon Jan 17, 2025
We'll have to use .textContent
Brend-Smits commentedon Jan 17, 2025
Awesome, I will have another look tonight and let you know.
Brend-Smits commentedon Jan 18, 2025
I've gotten it to work for the new beta version. However, I then found out this has to be backwards compatible.. because the pull request page uses still an old layout and not everyone uses the new layout yet.
This is another challenge I have yet to solve.
[-]`quick-label-removal` is not showing, even though I have permission[/-][+]`quick-label-removal` is not showing on new issue beta [/+]SunsetTechuila commentedon Jul 8, 2025
@fregante the old ui was completely removed for non-enterprise users, right?
fregante commentedon Jul 8, 2025
It's still used on PRs
Adding support while keeping the old version should not be more difficult: just add one more observer and one more handler for that observer. Once the old view is finally removed, we'll just delete the old code.
SunsetTechuila commentedon Jul 8, 2025
just needed some reference to better understand what the code from #7397 does
fregante commentedon Jul 8, 2025
Here's what's happening in that PR:
That PR removes that form so that GitHub reloads a fresh version of it.
SunsetTechuila commentedon Jul 8, 2025
and the feature is broken on PR pages too: the label list becomes empty if you try to open it immediately after removing a label
10 remaining items
SunsetTechuila commentedon May 25, 2026
SunsetTechuila commentedon May 25, 2026
While checking the code, I noticed that this feature is being implemented by GitHub (behind the
issues_react_remove_labels_oneclickflag):[-]`quick-label-removal` is not showing on new issue beta [/-][+]`quick-label-removal` is not showing on issues[/+]fregante commentedon May 25, 2026
That's fast enough for me, particularly because the modal updates even after being open and interacted with. In my earlier tests it was fast enough to barely even require using
label.hidden = trueon the clicked label.igorsantos07 commentedon Nov 26, 2026