Repository navigation
fix(ui): use Untitled-UI dropdowns for Add Assets drawer quick-filters - #29168
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
The Domains / Data Products "Add Assets" drawer is an Untitled-UI SlideoutMenu (react-aria Modal/Dialog). Its quick-filter dropdowns used the Ant Design SearchDropdown, whose popup portals to document.body — outside the dialog subtree, where react-aria's `inert` attribute makes it non-interactive (clicks fall through and the popup closes). z-index cannot fix `inert`. Add a QuickFilterDropdown built on the Untitled-UI PopoverTrigger/Popover (react-aria) with a search box, a checkbox option list with counts, single/multi-select, a null-option and Apply/Clear. Its popover renders in the dialog's top layer and stays interactive without any AntD-over-drawer workaround. ExploreQuickFilters renders it behind an `untitledDropdown` flag that only the Add Assets drawer passes (variant === 'drawer'); the Modal variant, Explore page, Glossary tab and Lineage controls keep the AntD SearchDropdown unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Add a shared drawer quick-filter behaviour matrix (interactive popover, search-scoped options, discard-on-close, apply-narrows-list, combined filters) and run it across the domain, data-product, and input/output port Add-Assets drawers. Adds reusable helpers in assetDrawerQuickFilter.ts and inputOutputPorts.ts. Also bump the wrapped quick-filter row gutter (vertical 0 -> 8) so the Untitled dropdowns have breathing room when they wrap. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
0259f1a to
5b48157
Compare
| showSelectedCounts = false, | ||
| optionPageSize, | ||
| additionalActions, | ||
| untitledDropdown = false, |
There was a problem hiding this comment.
This will go away, just adding a variant for sideout
| const assertCombineFilters = async ( | ||
| page: Page, | ||
| ctx: DrawerQuickFilterContext, | ||
| tierLabel: string | ||
| ) => { | ||
| await openQuickFilter(page, tierLabel); | ||
| await popover(page) | ||
| .getByTestId(/tier1-checkbox$/i) | ||
| .click(); | ||
| await applyQuickFilter(page); | ||
|
|
||
| await scopeDrawerSearch(page, ctx.table.name); | ||
| await expectAssetVisible(page, ctx.table.fqn); | ||
| await scopeDrawerSearch(page, ctx.untieredTable.name); | ||
| await expectAssetHidden(page, ctx.untieredTable.fqn); |
There was a problem hiding this comment.
💡 Quality: Drawer filter matrix leaves prior filter applied, weakening combine test
runDrawerQuickFilterMatrix runs assertApplyNarrowsList (which applies and Applies the Entity Type = table filter) and then immediately runs assertCombineFilters without ever clearing the Entity Type filter. By the time the combine step runs, the entity-type filter is still active, so the assertion that ctx.topic is hidden (line 148-149) is trivially satisfied by the leftover Entity Type = table filter rather than by the newly applied Tier filter — it does not actually prove the Tier filter intersects correctly. Only the tieredTable-visible / untieredTable-hidden pair (both tables) genuinely exercises the Tier filter. Consider clearing filters between steps, or having the combine step assert that removing the entity-type filter and applying only Tier still hides the topic, so the intersection behavior is meaningfully verified.
Document/clear filter state between matrix steps so the combine assertions are not masked by a leftover filter.:
// In assertCombineFilters, drop the trivially-true topic check or first clear
// the Entity Type filter so the Tier filter is the only thing under test:
await openQuickFilter(page, tierLabel);
await popover(page).getByTestId(/tier1-checkbox$/i).click();
await applyQuickFilter(page);
await scopeDrawerSearch(page, ctx.table.name);
await expectAssetVisible(page, ctx.table.fqn);
await scopeDrawerSearch(page, ctx.untieredTable.name);
await expectAssetHidden(page, ctx.untieredTable.fqn);
Was this helpful? React with 👍 / 👎
| await test.step('Create domain and varied assets', async () => { | ||
| await filterDomain.create(apiContext); | ||
| await tieredTable.create(apiContext); | ||
| await tieredTable.patch({ | ||
| apiContext, | ||
| patchData: [ | ||
| { | ||
| op: 'add', | ||
| path: '/tags/0', | ||
| value: { | ||
| tagFQN: 'Tier.Tier1', | ||
| source: 'Classification', | ||
| labelType: 'Manual', | ||
| }, | ||
| }, |
There was a problem hiding this comment.
💡 Quality: Asset-seeding logic duplicated across three spec/util files
seedDrawerFilterAssets was extracted into inputOutputPorts.ts, but Domains.spec.ts and DataProductAndSubdomains.spec.ts re-inline nearly identical seeding code (create tieredTable/plainTable/filterTopic/filterDashboard, patch Tier.Tier1, apply domainPatch) plus matching inline teardown. The variations are small (Domains seeds assets without domain membership; the helper requires a DataProduct and always patches domain), so the helper isn't directly reusable as written. Consider generalizing the seeding helper (e.g. optional DataProduct, optional domain patch) and reusing it in all three call sites to avoid drift in the test fixtures over time. This is test-only quality cleanup, not a correctness issue.
Was this helpful? React with 👍 / 👎
| label={translateWithNestedKeys(field.label, field.labelKeyOptions)} | ||
| options={dropdownOptions} | ||
| searchKey={field.key} | ||
| selectedKeys={field.value ?? []} |
There was a problem hiding this comment.
Unstable
selectedKeys reference wipes staged selections during options load
field.value ?? [] creates a new array reference on every render when field.value is undefined (no filter applied yet). QuickFilterDropdown's useEffect depends on selectedKeys via reference equality, so it fires on every re-render triggered by the loading sequence (setIsOptionsLoading(true) → setOptions([]) → setOptions(result) → setIsOptionsLoading(false)). Each fire resets selectedOptions to [], erasing any checkbox selections the user made before the initial fetch completed. The race window is the full fetch duration (~100–500 ms on a typical network), during which any clicked option silently disappears.
A stable fallback reference fixes this without touching QuickFilterDropdown: define const EMPTY_OPTIONS: SearchDropdownOption[] = [] at module level, then use selectedKeys={field.value ?? EMPTY_OPTIONS} so Object.is sees the same reference across re-renders when no filter is applied.
|
🟡 Playwright Results — all passed (18 flaky)✅ 4299 passed · ❌ 0 failed · 🟡 18 flaky · ⏭️ 88 skipped
🟡 18 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Code Review 👍 Approved with suggestions 2 resolved / 4 findingsAdds interactive 💡 Quality: Drawer filter matrix leaves prior filter applied, weakening combine test📄 openmetadata-ui/src/main/resources/ui/playwright/utils/assetDrawerQuickFilter.ts:133-147
Document/clear filter state between matrix steps so the combine assertions are not masked by a leftover filter.💡 Quality: Asset-seeding logic duplicated across three spec/util files📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Domains.spec.ts:264-278 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/DataProductAndSubdomains.spec.ts:63-77 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/inputOutputPorts.ts:47-61
✅ 2 resolved✅ Quality: Debounced onSearch is never cancelled on close/unmount
✅ Edge Case: Clear All does not reset the null-option selection
🤖 Prompt for agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
Failed to cherry-pick changes to the 1.13 branch. |
|
Failed to cherry-pick changes to the 1.12.12 branch. |
#29168) * fix(ui): use Untitled-UI dropdowns for Add Assets drawer quick-filters The Domains / Data Products "Add Assets" drawer is an Untitled-UI SlideoutMenu (react-aria Modal/Dialog). Its quick-filter dropdowns used the Ant Design SearchDropdown, whose popup portals to document.body — outside the dialog subtree, where react-aria's `inert` attribute makes it non-interactive (clicks fall through and the popup closes). z-index cannot fix `inert`. Add a QuickFilterDropdown built on the Untitled-UI PopoverTrigger/Popover (react-aria) with a search box, a checkbox option list with counts, single/multi-select, a null-option and Apply/Clear. Its popover renders in the dialog's top layer and stays interactive without any AntD-over-drawer workaround. ExploreQuickFilters renders it behind an `untitledDropdown` flag that only the Add Assets drawer passes (variant === 'drawer'); the Modal variant, Explore page, Glossary tab and Lineage controls keep the AntD SearchDropdown unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * test(ui): E2E coverage for Add-Assets drawer quick filters Add a shared drawer quick-filter behaviour matrix (interactive popover, search-scoped options, discard-on-close, apply-narrows-list, combined filters) and run it across the domain, data-product, and input/output port Add-Assets drawers. Adds reusable helpers in assetDrawerQuickFilter.ts and inputOutputPorts.ts. Also bump the wrapped quick-filter row gutter (vertical 0 -> 8) so the Untitled dropdowns have breathing room when they wrap. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
QuickFilterDropdown (cherry-picked via #29168) imported getSelectedOptionLabelString from AdvancedSearchPureUtils, a module that only exists on main (introduced by the un-backported refactor #28704, "extract form/search etc pure utils"). On the 1.13 line that split never happened, so the symbol still lives in AdvancedSearchUtils. Re-point the import (component + test mock) to AdvancedSearchUtils to fix the Collate 1.13 build failure: "Could not resolve ../../utils/AdvancedSearchPureUtils". Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
…ilter Reproduced the failing "Add-Assets drawer quick filter - behaviour matrix" tests (DataProductAndSubdomains, Domains, InputOutputPorts) locally: the explore-page human-readable entity-type labels (getOptionLabelFormatter, added for the redesign) leaked into the shared ExploreQuickFilters and therefore into #29168's Untitled-UI drawer dropdown, which keys its option testids and trigger text off the raw label. So `table` rendered as `Table`, breaking `drop-down-menu table-checkbox` and the `toContainText('table')` trigger check. Scope the human-label formatter to the explore page (untitledDropdown=false); the drawer (untitledDropdown=true) keeps raw entity-type values, restoring its pre-redesign behaviour. Explore-page labels are unchanged. Verified locally against the :8585 sample-data backend: the drawer matrix now clears the entity-type steps. (The Tier "combine" step fails only on this local backend, whose search index has 10 stale custom tiers burying tier1 below the size-limited aggregation; a fresh CI index surfaces tier1, as on main.) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>



Describe your changes:
The Domains / Data Products → Add Assets drawer quick-filters (Entity Type, Owners, Tag, Tier, Service) are now fully interactive.
Why: The Add Assets drawer is an Untitled-UI
SlideoutMenu(react-ariaModal/Dialog). The quick filters used the Ant DesignSearchDropdown, whose popup portals todocument.body— outside the dialog subtree, where react-aria'sinertattribute makes it non-interactive (clicks fall through to the content behind and the popup closes).z-indexcannot overrideinert; the popup must live inside the dialog's layer.What: Add a new
QuickFilterDropdownbuilt on the Untitled-UIPopoverTrigger/Popover(react-aria), whose popover renders in the dialog's own top layer — so it stays interactive with no AntD-over-drawer workaround (nogetPopupContainer, noConfigProvider). It reproduces the current filter UX: compact button trigger, an in-popover search box, a checkbox option list with counts, single/multi-select, a null-option row, and Clear/Apply (selection staged until Apply).ExploreQuickFiltersrenders it behind anuntitledDropdownflag that only the Add Assets drawer passes (variant === 'drawer'); the Add Assets modal variant, the Explore page, the Glossary asset tab and Lineage controls keep the existing AntDSearchDropdown— zero change to those surfaces.It reuses the existing data plumbing unchanged (
ExploreQuickFilterField, option fetching,getQuickFilterQuery), so behavior matches today's filters.Type of change:
High-level design:
Small, additive, drawer-scoped. One new consumer-app component composed from
@openmetadata/ui-core-componentsprimitives (PopoverTrigger,Popover,Button,Input,Checkbox) — no core-component changes.ExploreQuickFiltersgains an optionaluntitledDropdownprop (defaults tofalse), so the 4 other call sites are untouched. react-aria nestedPopoverinside theSlideoutMenudialog renders in the shared top layer — that's what keeps it interactive.Rejected approaches (per review): routing the AntD popup into the dialog via
getPopupContainer/ aConfigProviderdrawer provider (keeps an AntD overlay in the Untitled drawer); the field-styleMultiSelect/Autocomplete(wrong UX); enhancing the coreDropdownprimitive (touches a shared core component).Tests:
Use cases covered
Unit tests
QuickFilterDropdown.test.tsx— fetch-on-open, stage-then-Apply emits the selected value, single-select keeps one value, null-option emits the null key, debounced search callsonSearch.Backend / Ingestion integration tests
Playwright (UI) tests
playwright/utils/assetDrawerQuickFilter.ts) that, in a single drawer session, asserts: the popover is interactive and its search box filters options, Close discards the staged selection, selecting + Update narrows the asset list, and combining filters (Entity Type + Tier) intersects the results.Domains.spec.ts(domain Add Assets),DataProductAndSubdomains.spec.ts(data-product Add Assets), andInputOutputPorts.spec.ts(input and output port drawers). Seeding/cleanup and the port-drawer context live inplaywright/utils/inputOutputPorts.ts.InputOutputPorts.spec.tswith a full interactivity regression guard for thedocument.body-portal inert bug.Manual testing performed
tsc --noEmiton the changed files — clean. UI checkstyle (organize-imports → eslint → prettier, plus license headers on the new playwright utils) — clean. Jest (40 tests across the new + existing Explore filter suites) — pass.UI screen recording / screenshots:
Screenshots of the interactive Add Assets drawer filters (trigger + open popover with search and counts) are attached at the top of this description.
Checklist:
🤖 Generated with Claude Code
Summary by Gitar
handleClearinQuickFilterDropdownto correctly resetnullOptionSelectedin addition to clearingselectedOptions.keytoQuickFilterDropdownrendering inExploreQuickFiltersto ensure proper React lifecycle management during filter state changes.Spacegap inExploreQuickFiltersfrom[8, 0]to[8, 8]to provide better vertical spacing for the new dropdown variant.This will update automatically on new commits.
--|----------|
| openmetadata-ui/src/main/resources/ui/src/components/Explore/QuickFilterDropdown.tsx | New react-aria popover dropdown component; two pre-flagged bugs remain unaddressed:
handleCleardoes not resetnullOptionSelected, anddebouncedOnSearchis never cancelled when deps change. || openmetadata-ui/src/main/resources/ui/src/components/Explore/ExploreQuickFilters.tsx | Adds
untitledDropdownflag branching;field.value ?? []creates an unstable reference causingQuickFilterDropdown's effect to fire on every loading re-render; row-gap change is applied globally rather than scoped to the new variant. || openmetadata-ui/src/main/resources/ui/src/components/Explore/QuickFilterDropdown.test.tsx | Good unit coverage for open-on-fetch, stage-then-apply, single-select, null-option, and debounced search; the
handleClear+nullOptionSelectedbug is not exercised by any test case. || openmetadata-ui/src/main/resources/ui/src/components/DataAssets/AssetsSelectionModal/useAssetSelectionContent.tsx | Single-line change passing
untitledDropdown={variant === 'drawer'}; correct and minimal. || openmetadata-ui/src/main/resources/ui/playwright/utils/assetDrawerQuickFilter.ts | New shared Playwright helper; covers open/search/apply/close/combine-filter scenarios; relies on
${option.label}-checkboxtestid format matching lowercase entity type labels from the API. || openmetadata-ui/src/main/resources/ui/playwright/utils/inputOutputPorts.ts | Cleanly extracts
createAssetRef, seed/cleanup helpers, andbuildPortDrawerContextfrom the spec file; domain lifecycle is correctly left to the caller. |Sequence Diagram
%%{init: {'theme': 'neutral'}}%% sequenceDiagram participant User participant QuickFilterDropdown participant ExploreQuickFilters participant API User->>QuickFilterDropdown: clicks trigger button QuickFilterDropdown->>ExploreQuickFilters: onGetInitialOptions(searchKey) ExploreQuickFilters->>API: getAggregationOptions(...) Note over ExploreQuickFilters: setIsOptionsLoading(true) re-render<br/>selectedKeys = new [] each time<br/>⚠️ useEffect fires → selectedOptions reset API-->>ExploreQuickFilters: aggregation buckets Note over ExploreQuickFilters: setOptions(result) re-render<br/>⚠️ useEffect fires again → selectedOptions reset User->>QuickFilterDropdown: checks options (staged internally) User->>QuickFilterDropdown: clicks Update QuickFilterDropdown->>ExploreQuickFilters: onChange(selectedValues, searchKey) ExploreQuickFilters->>ExploreQuickFilters: onFieldValueSelect updates field.value Note over QuickFilterDropdown: setIsOpen(false)<br/>useEffect syncs to new selectedKeys ✓ User->>QuickFilterDropdown: clicks Close (no Apply) Note over QuickFilterDropdown: setIsOpen(false)<br/>useEffect resets staged state to selectedKeys ✓%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% sequenceDiagram participant User participant QuickFilterDropdown participant ExploreQuickFilters participant API User->>QuickFilterDropdown: clicks trigger button QuickFilterDropdown->>ExploreQuickFilters: onGetInitialOptions(searchKey) ExploreQuickFilters->>API: getAggregationOptions(...) Note over ExploreQuickFilters: setIsOptionsLoading(true) re-render<br/>selectedKeys = new [] each time<br/>⚠️ useEffect fires → selectedOptions reset API-->>ExploreQuickFilters: aggregation buckets Note over ExploreQuickFilters: setOptions(result) re-render<br/>⚠️ useEffect fires again → selectedOptions reset User->>QuickFilterDropdown: checks options (staged internally) User->>QuickFilterDropdown: clicks Update QuickFilterDropdown->>ExploreQuickFilters: onChange(selectedValues, searchKey) ExploreQuickFilters->>ExploreQuickFilters: onFieldValueSelect updates field.value Note over QuickFilterDropdown: setIsOpen(false)<br/>useEffect syncs to new selectedKeys ✓ User->>QuickFilterDropdown: clicks Close (no Apply) Note over QuickFilterDropdown: setIsOpen(false)<br/>useEffect resets staged state to selectedKeys ✓Reviews (2): Last reviewed commit: "test(ui): E2E coverage for Add-Assets dr..." | Re-trigger Greptile
Greptile Summary
This PR introduces
QuickFilterDropdown, a react-ariaPopoverTrigger/Popover-based replacement for the AntDSearchDropdownin the Add Assets drawer, fixing a non-interactive popover bug caused by react-aria'sinertattribute ondocument.body-portaled overlays. The change is additive and flag-gated behind anuntitledDropdownprop so all existing surfaces (Explore page, Glossary, Lineage) remain unchanged.QuickFilterDropdown.tsx): reproduces the full filter UX (search box, checkbox list with counts, staged selection, Clear All / Update, null-option row) using Untitled-UI primitives so the popover renders in the react-aria top layer inside the drawer.ExploreQuickFilters.tsx+useAssetSelectionContent.tsx):untitledDropdown={variant === 'drawer'}is the sole new call-site; existing call-sites pass no flag and render the unchanged AntDSearchDropdown.QuickFilterDropdown.test.tsx) and a shared Playwright behaviour matrix (assetDrawerQuickFilter.ts) exercised across Domains, Data Products, and Input/Output Port drawer surfaces.Confidence Score: 4/5
Safe to merge for the drawer surfaces; three known issues flagged in earlier review threads remain unaddressed in the current code but do not affect the primary save flow or existing surfaces.
The core fix — replacing the AntD popup with a react-aria popover so filters work inside the SlideoutMenu — is correct and well-scoped. The three open issues (handleClear not resetting nullOptionSelected, debounced search not cancelling on prop change, unstable selectedKeys reference wiping staged selections during options load) affect filter UX quality but none cause data corruption or break the primary save flow. All existing surfaces are untouched by the flag-gate.
QuickFilterDropdown.tsx warrants a follow-up pass for the three issues noted in prior review threads before this component is reused beyond the Add Assets drawer.
Important Files Changed
Sequence Diagram
%%{init: {'theme': 'neutral'}}%% sequenceDiagram participant User participant QFDropdown as QuickFilterDropdown participant EQF as ExploreQuickFilters participant API User->>QFDropdown: clicks trigger QFDropdown->>EQF: onGetInitialOptions(searchKey) EQF->>EQF: setIsOptionsLoading(true), setOptions([]) EQF->>API: getAggregationOptions(...) API-->>EQF: aggregation buckets EQF->>EQF: setOptions(result), setIsOptionsLoading(false) EQF-->>QFDropdown: "isSuggestionsLoading=false, options=[...]" User->>QFDropdown: checks one or more options (staged) User->>QFDropdown: clicks Update QFDropdown->>EQF: onChange(selectedValues, searchKey) EQF->>EQF: onFieldValueSelect → updates field.value QFDropdown->>QFDropdown: setIsOpen(false) Note over QFDropdown: useEffect([selectedKeys, isOpen]) syncs staged state to new selectedKeys ✓ User->>QFDropdown: clicks Close (without Update) QFDropdown->>QFDropdown: setIsOpen(false) Note over QFDropdown: useEffect fires → resets staged selections to current selectedKeys (discard) ✓%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% sequenceDiagram participant User participant QFDropdown as QuickFilterDropdown participant EQF as ExploreQuickFilters participant API User->>QFDropdown: clicks trigger QFDropdown->>EQF: onGetInitialOptions(searchKey) EQF->>EQF: setIsOptionsLoading(true), setOptions([]) EQF->>API: getAggregationOptions(...) API-->>EQF: aggregation buckets EQF->>EQF: setOptions(result), setIsOptionsLoading(false) EQF-->>QFDropdown: "isSuggestionsLoading=false, options=[...]" User->>QFDropdown: checks one or more options (staged) User->>QFDropdown: clicks Update QFDropdown->>EQF: onChange(selectedValues, searchKey) EQF->>EQF: onFieldValueSelect → updates field.value QFDropdown->>QFDropdown: setIsOpen(false) Note over QFDropdown: useEffect([selectedKeys, isOpen]) syncs staged state to new selectedKeys ✓ User->>QFDropdown: clicks Close (without Update) QFDropdown->>QFDropdown: setIsOpen(false) Note over QFDropdown: useEffect fires → resets staged selections to current selectedKeys (discard) ✓Reviews (3): Last reviewed commit: "Merge branch 'main' into sid/untitled-qu..." | Re-trigger Greptile