fix(tags): fix Bulk tag modal dropdown clipping and stale tag cache#39210
fix(tags): fix Bulk tag modal dropdown clipping and stale tag cache#39210mistercrunch merged 4 commits intomasterfrom
Conversation
The Bulk tag modal was too small, making the tag dropdown cramped and barely usable. Add min-height to the modal container so the async select dropdown has adequate space to render. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Code Review Agent Run #5a120aActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
200px was not enough — antd Select dropdown renders at ~256px list height plus padding, so 340px ensures the dropdown is fully visible without clipping inside the modal body overflow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Three fixes for the Bulk tag modal: 1. Portal the tag dropdown to document.body via getPopupContainer so it renders above the modal instead of being clipped by the modal body's overflow:auto — removes the min-height workaround. 2. Remove the no-invalidation cache (cachedSupersetGet) from loadTags so newly created tags appear immediately in the dropdown. 3. Capitalize the "Tags" form label. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Same dropdown clipping fix as BulkTagModal — the three AsyncSelect components (dashboards, charts, saved queries) in TagModal also render their popups inside the modal body's overflow container. Portal them to document.body so dropdowns are never clipped. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Code Review Agent Run #1d5174Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #39210 +/- ##
==========================================
- Coverage 64.46% 64.46% -0.01%
==========================================
Files 2541 2541
Lines 131775 131776 +1
Branches 30569 30568 -1
==========================================
- Hits 84950 84948 -2
- Misses 45359 45362 +3
Partials 1466 1466
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
SUMMARY
Three fixes for the "Bulk tag" modal (used when bulk-selecting charts/dashboards and applying tags):
Dropdown clipping — The tag dropdown was being clipped by the modal body's
overflow: auto. AddedgetPopupContainer={() => document.body}to portal the dropdown above the modal, which is the standard antd pattern for selects inside modals.Stale tag cache —
loadTagsused acachedSupersetGetbacked by an in-memoryMapwith no invalidation, so newly created tags never appeared in the dropdown until page reload. Removed the cache entirely — tag lookups are cheap paginated API calls.Label capitalization — Changed
t('tags')→t('Tags')for the form label.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
After
TESTING INSTRUCTIONS
TAGGING_SYSTEMfeature flagADDITIONAL INFORMATION
🤖 Generated with Claude Code