Skip to content

fix: datastore filter responsiveness#7870

Merged
speaker-ender merged 1 commit intomainfrom
fix/datastore-filter-responsiveness
Apr 9, 2026
Merged

fix: datastore filter responsiveness#7870
speaker-ender merged 1 commit intomainfrom
fix/datastore-filter-responsiveness

Conversation

@speaker-ender
Copy link
Copy Markdown
Contributor

Ticket []

Description Of Changes

Code Changes

Steps to Confirm

Pre-Merge Checklist

  • Issue requirements met
  • All CI pipelines succeeded
  • CHANGELOG.md updated
    • Add a db-migration This indicates that a change includes a database migration label to the entry if your change includes a DB migration
    • Add a high-risk This issue suggests changes that have a high-probability of breaking existing code label to the entry if your change includes a high-risk change (i.e. potential for performance impact or unexpected regression) that should be flagged
    • Updates unreleased work already in Changelog, no new entry necessary
  • UX feedback:
    • All UX related changes have been reviewed by a designer
    • No UX review needed
  • Followup issues:
    • Followup issues created
    • No followup issues
  • Database migrations:
    • Ensure that your downrev is up to date with the latest revision on main
    • Ensure that your downgrade() migration is correct and works
      • If a downgrade migration is not possible for this change, please call this out in the PR description!
    • No migrations
  • Documentation:
    • Documentation complete, PR opened in fidesdocs
    • Documentation issue created in fidesdocs
    • If there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
    • No documentation updates required

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
fides-plus-nightly Ready Ready Preview, Comment Apr 9, 2026 1:41pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
fides-privacy-center Ignored Ignored Apr 9, 2026 1:41pm

Request Review

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

Title Lines Statements Branches Functions
admin-ui Coverage: 7%
5.88% (2547/43298) 4.88% (1199/24524) 3.95% (508/12830)
fides-js Coverage: 78%
78.98% (1962/2484) 65.55% (1214/1852) 72.57% (336/463)
privacy-center Coverage: 88%
85.93% (330/384) 81.1% (176/217) 78.87% (56/71)

@speaker-ender speaker-ender marked this pull request as ready for review April 9, 2026 14:38
@speaker-ender speaker-ender requested a review from a team as a code owner April 9, 2026 14:38
@speaker-ender speaker-ender requested review from lucanovera and removed request for a team April 9, 2026 14:38
@speaker-ender speaker-ender added this pull request to the merge queue Apr 9, 2026
Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review: fix: datastore filter responsiveness

The intent is clear — push the grid's single-row layout to 2xl instead of xl, and use Space.Compact to visually join the search input and regex toggle. The breakpoint change and col-span-4 expansion make sense for the wider two-row layout on mid-size screens.

Issues

display: contents + flex-grow mismatch (functional bug)
The grow class on the first Form.Item (className="!me-0 contents grow") won't work. display: contents removes the element from the flex formatting context, so flex-grow: 1 has nothing to apply to. The SearchInput will not expand to fill available horizontal space as intended. This should be tested at intermediate viewport widths to confirm the search box isn't rendering at a fixed/minimum size when more space is available.

Space.Compact + display: contents interaction
Space.Compact injects compact-mode classes onto its direct children to produce joined borders. When both Form.Item wrappers have display: contents, they are invisible to layout, and whether Ant Design's compact CSS targeting lands on the actual input elements depends on how the class injection works in the version of fidesui/antd in use. Worth a careful visual check that the search input and regex toggle are actually rendering with joined/connected borders rather than appearing as separate elements.

Minor

Redundant responsive class: col-span-1 2xl:col-span-1 — the 2xl:col-span-1 duplicates the base value and can be removed.

PR template not filled in: The description still has the default placeholder text (ticket link, code changes list, steps to confirm). Would be good to fill these in to help reviewers understand what to test.

<Form.Item name="search" className="!me-0 grow">
<Flex className="col-span-4 gap-2 2xl:col-span-1" vertical>
<Space.Compact>
<Form.Item name="search" className="!me-0 contents grow">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The grow class (flex-grow: 1) won't have any effect here because contents is also applied. When display: contents is set, the element itself is removed from the flex formatting context — its children participate directly in the parent Space.Compact layout instead. That means flex-grow has no element to apply to, so the SearchInput will not stretch to fill remaining space as intended. Consider removing grow or restructuring so the element that needs to grow actually participates in the flex context.

<Flex className="gap-2">
<Form.Item name="search" className="!me-0 grow">
<Flex className="col-span-4 gap-2 2xl:col-span-1" vertical>
<Space.Compact>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space.Compact renders a div that applies compact-mode styling (joined borders, no gaps) to its children. Since Form.Item has display: contents applied, the Ant Design compact context (which targets direct children) will reach the actual input elements — but it's worth verifying visually that the SearchInput and RegexToggle borders join as expected without any intermediate wrapper breaking the compact chain. Specifically, Space.Compact injects a class on immediate children; with display: contents, the actual rendered children may not receive that class correctly depending on how fidesui re-exports Space.

icon={<Icons.Keyboard />}
onClick={shortcutCallback}
className="col-span-3 xl:col-span-1"
className="col-span-1 2xl:col-span-1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

col-span-1 2xl:col-span-1 — the 2xl:col-span-1 is redundant since col-span-1 is already the base (no breakpoint) value. Safe to drop 2xl:col-span-1.

Merged via the queue into main with commit 0a78a2f Apr 9, 2026
52 of 53 checks passed
@speaker-ender speaker-ender deleted the fix/datastore-filter-responsiveness branch April 9, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants