Repository navigation
Fix Linear filter chips showing UUIDs after dropdown closes - #12564
Merged
AmethystLiang merged 1 commit intoAug 4, 2026
Merged
AmethystLiang merged 1 commit into
AmethystLiang merged 1 commit into
Conversation
Fetch metadata when filters are selected, not only while the popover is open, so chip labels remain readable after closing the dropdown.
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe dropdown now loads team and workspace metadata when active state, label, or user-assignee filters need metadata, including while the popover is closed. Component tests cover metadata requests and readable filter values. An end-to-end test verifies that a closed Linear status chip displays “In Review” instead of the state UUID. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
4 of 6 tasks
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
…#12564) Fetch metadata when filters are selected, not only while the popover is open, so chip labels remain readable after closing the dropdown.
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.
Fixes #12520
Summary
Fix a regression where Linear filter chips displayed UUIDs instead of readable names after the filter dropdown was closed. The component was only fetching state/label/member metadata while the popover was open, causing display to fall back to IDs once it closed.
Root Cause
The metadata queries (
useTeamsStates,useTeamsLabels,useTeamsMembers) were gated onpopoverOpenonly. When the popover closed, the memoized dependencies updated to empty arrays, causing the metadata to be cleared.Solution
Introduce a
metadataNeededflag that keeps metadata loaded whenever:This ensures that once a user selects a filter, the readable name is fetched and remains available even after closing the dropdown.
Changes
linear-issue-attribute-filter-dropdowns.tsx: Gate metadata queries onmetadataNeededinstead of justpopoverOpenlinear-issue-attribute-filter-dropdowns.test.tsx: Add unit tests verifying lazy loading and persistent metadatatests/e2e/linear-filter-chip-labels.spec.ts: Add e2e test confirming readable names persist after closing dropdownTesting
pnpm testand e2e suite pass