Repository navigation
Show every tag inline when the last tag is narrower than the overflow counter - #24045
Merged
desertaxle merged 1 commit intoNov 24, 2026
Merged
Conversation
… counter TagBadgeGroup sizes itself to the width of its tags, then fits tags into that width. The fit loop stopped at the first tag that did not fit next to the `+N` counter, so when the last tag was narrower than the counter (short tags such as `eu` or `v1`) the group showed only `+2` even though every tag fit. Keep looking past that tag so the last one can be placed without the counter.
burrows99
requested review from
chrisguidry,
desertaxle and
zzstoatzz
as code owners
November 22, 2026 17:28
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 74b7860b58
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
6 tasks done
desertaxle
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the V2 UI, a tag group with two or more short tags shows only the
+Ncounter, even when every tag fits. On the Variables page a variable taggedeu,usshows+2, and the tag names are only visible after clicking it.TagBadgeGroupsizes itself to the width of its tags and then fits tags into that width. The fit loop broke out at the first tag that did not fit next to the+Ncounter. When the last tag is narrower than the counter (short tags such aseu,usorv1), the first tag never fits alongside the counter, so the loop stopped at zero visible tags, although all the tags fit once no counter is needed. The loop now keeps going past that tag, so the last tag can still be placed without the counter. Groups whose tags really do not fit are unchanged.Closes #24083.
flowchart TD A[Variable tagged eu and us] --> B{Tags column on the Variables page} B -->|Before| C[Shows only the plus two counter] B -->|After| D[Shows eu and us inline]Narrated recording, before then after (sound on):
evidence.mp4
Recorded against
prefect server start(SQLite) and theui-v2Vite dev server, before onmainand after on this branch, with the same seeded variables.Edge cases and unchanged behaviour checked
In the running app (shown in the recording):
eu,us,ap) all show inline.team) shows as before.+3(maxTagsDisplayed={3}on the Variables table), and the counter opens the hidden tags with the mouse and with Enter.prodandetltags.By unit test only: the existing fit tests (tags that do not fit, duplicate tags, the widest counter, the requested container width,
maxTagsDisplayed) still pass.Tests
New test in
tag-badge-group.test.tsx: two tags that exactly fill the group with a counter wider than the last tag. It fails onmain(only+2is rendered) and passes on this branch.I did not run the full
ui-v2test suite or the Playwright e2e tests.Checklist
<link to issue>"AI assistance (Claude Code) was used to find the bug, write the fix and test, and record the video.
🤖 Generated with Claude Code