Skip to content

Fix issues filter dropdown showing empty label scope section (#36535)#36544

Merged
wxiaoguang merged 3 commits intogo-gitea:release/v1.25from
GiteaBot:backport-36535-v1.25
Feb 8, 2026
Merged

Fix issues filter dropdown showing empty label scope section (#36535)#36544
wxiaoguang merged 3 commits intogo-gitea:release/v1.25from
GiteaBot:backport-36535-v1.25

Conversation

@GiteaBot
Copy link
Copy Markdown
Collaborator

@GiteaBot GiteaBot commented Feb 6, 2026

Backport #36535 by @tyroneyeh

The issues filter dropdown always rendered the label scope divider and header, even when .ExclusiveLabelScopes was empty.

This PR wraps the label scope section with a conditional so the divider/header and scope entries are only displayed when scopes exist.

Before

The dropdown showed a divider and “Label” header even when there were no exclusive label scopes available.
image

After

The label scope section is hidden entirely when .ExclusiveLabelScopes is empty, keeping the dropdown clean and consistent.
image

Notes

UI-only change, no behavior change to filtering logic.

…a#36535)

The issues filter dropdown always rendered the label scope divider and
header, even when .ExclusiveLabelScopes was empty.

This PR wraps the label scope section with a conditional so the
divider/header and scope entries are only displayed when scopes exist.

Before

The dropdown showed a divider and “Label” header even when there were no
exclusive label scopes available.
<img width="521" height="569" alt="image"
src="https://github.com/user-attachments/assets/9766df6b-c11b-46f3-aabc-9fa5f4ca767d"
/>

After

The label scope section is hidden entirely when .ExclusiveLabelScopes is
empty, keeping the dropdown clean and consistent.
<img width="329" height="485" alt="image"
src="https://github.com/user-attachments/assets/e9586e57-2be5-43ea-8a13-9b87c951be6f"
/>

Notes

UI-only change, no behavior change to filtering logic.
@GiteaBot GiteaBot added the modifies/templates This PR modifies the template files label Feb 6, 2026
@GiteaBot GiteaBot requested review from lunny and silverwind February 6, 2026 13:12
@GiteaBot GiteaBot added this to the 1.25.5 milestone Feb 6, 2026
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 6, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Feb 6, 2026
@silverwind
Copy link
Copy Markdown
Member

Depends on #36542.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 6, 2026
@wxiaoguang wxiaoguang enabled auto-merge (squash) February 8, 2026 15:30
@wxiaoguang wxiaoguang merged commit 7477f85 into go-gitea:release/v1.25 Feb 8, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/templates This PR modifies the template files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants