Skip to content

feat(Tables): Open table filters as a popover, a bottom sheet on phones - #8997

Open
talissoncosta wants to merge 11 commits into
mainfrom
feat/table-filter-popover
Open

talissoncosta wants to merge 11 commits into
mainfrom
feat/table-filter-popover

Conversation

@talissoncosta

@talissoncosta talissoncosta commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor
  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Contributes to ENG-643. Independent of #8996.

The feature list filters (Tags, Value, Users, Groups, View, Sort) used InlineModal, which a mobile rule stretches to a blank full-screen panel. TableFilter now uses Popover: anchored on desktop as before, a bottom sheet on phones.

  • TableFilterOptions reuses TableFilter instead of duplicating the trigger and InlineModal.
  • Filters whose title carries a count take a label (Tags, Value, Users, Groups), used as the sheet heading and the popup's name.
  • Title, search and list share the same 16px indent.
  • In the phone sheet, rows are larger (16px text, 48px rows), as in DropdownMenu sheets.
  • Filter options are buttons (BareButton, aria-pressed on the selected one) instead of links to #. The sort lists in TableSortFilter and PanelSearch render TableFilterItem too, with a sortOrder prop for the direction, instead of copying its markup.
  • TableFilter and TableFilterItem keep their styles in their own stylesheets; the rules leave the global _modals.scss and stop borrowing InlineModal classes. The row border uses a token.
  • The filter trigger uses the project's chevron instead of an ionicon.
  • E2E finds the archived tag option and the history compare options by role; the table-filter-* and compare test ids are gone.

Also used by the View filter in FeatureFilters, FeatureImport and FeaturesTableFilters (no changes needed there).

How did you test this code?

  • 393px: Tags, Value, Users, Groups open as a full-width sheet with the right heading; Escape closes.
  • 1440px: Tags opens anchored under the trigger, stays open while ticking several tags, closes on a second click (the E2E archived-filter flow).
  • View and Sort on a phone: open as sheets, picking a sort applies it.
  • Phone sheet rows are 48px with 16px text; desktop unchanged.
  • Feature import screen's View filter (with a test file): opens as a sheet, picking Compact applies it.
  • Sort on the features list and the Projects page: the active option shows its direction, picking it again flips it.
  • Version compare E2E (compareVersions now picks Live or Previous by role): enterprise tests don't run on PRs, so not run yet.

@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
flagsmith-frontend-preview Ready Ready Preview Nov 26, 2026 12:04pm UTC
flagsmith-frontend-staging Ready Ready Preview Nov 26, 2026 12:04pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Preview Nov 26, 2026 12:04pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-actions github-actions Bot added front-end Issue related to the React Front End Dashboard feature New feature or request and removed feature New feature or request labels Nov 17, 2026
@github-actions github-actions Bot added the feature New feature or request label Nov 17, 2026
@talissoncosta
talissoncosta force-pushed the feat/popover-bottom-sheet branch from ee16aff to 9f9f33d Compare November 17, 2026 14:56
@talissoncosta
talissoncosta force-pushed the feat/table-filter-popover branch from 765ebf0 to 77f46d5 Compare November 17, 2026 15:23
@talissoncosta
talissoncosta force-pushed the feat/popover-bottom-sheet branch from 9f9f33d to 4fcad7a Compare November 17, 2026 15:23
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 17, 2026
@talissoncosta
talissoncosta force-pushed the feat/table-filter-popover branch from 77f46d5 to cbf624f Compare November 17, 2026 15:27
@talissoncosta
talissoncosta force-pushed the feat/popover-bottom-sheet branch from 4fcad7a to 85c4880 Compare November 17, 2026 15:27
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 17, 2026
@talissoncosta
talissoncosta force-pushed the feat/table-filter-popover branch from cbf624f to 73a6ef1 Compare November 17, 2026 15:33

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 7 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-16 — run #23818 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  57.2 seconds
commit  4a86864
info  🔄 Run: #23818 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23818 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  5 passed

Details

stats  5 tests across 4 suites
duration  9.5 seconds
commit  4a86864
info  🔄 Run: #23818 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23818 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  34.6 seconds
commit  4a86864
info  🔄 Run: #23818 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23818 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  30.6 seconds
commit  4a86864
info  🔄 Run: #23818 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23817 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  7 passed

Details

stats  7 tests across 5 suites
duration  4.3 seconds
commit  13e6aa0
info  🔄 Run: #23817 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #23817 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  6 passed

Details

stats  6 tests across 5 suites
duration  6.2 seconds
commit  13e6aa0
info  🔄 Run: #23817 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23817 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.7 seconds
commit  13e6aa0
info  🔄 Run: #23817 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23817 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  31.7 seconds
commit  13e6aa0
info  🔄 Run: #23817 (attempt 1)

❌ private-cloud · depot-ubuntu-latest-arm-16 — run #23814 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

failed  1 failed

Details

stats  1 test across 1 suite
duration  7.2 seconds
commit  568f12a
info  📦 Artifacts: View test results and HTML report
🔄 Run: #23814 (attempt 1)

Failed tests

firefox › tests/flag-dependencies-test.pw.ts › Flag Dependencies › A flag can be gated behind another, and says so on both sides @oss

❌ oss · depot-ubuntu-latest-16 — run #23814 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

failed  1 failed

Details

stats  1 test across 1 suite
duration  5.9 seconds
commit  568f12a
info  📦 Artifacts: View test results and HTML report
🔄 Run: #23814 (attempt 1)

Failed tests

firefox › tests/flag-dependencies-test.pw.ts › Flag Dependencies › A flag can be gated behind another, and says so on both sides @oss

❌ private-cloud · depot-ubuntu-latest-16 — run #23813 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

failed  1 failed
passed  1 passed

Details

stats  2 tests across 2 suites
duration  42 seconds
commit  2bfbc38
info  📦 Artifacts: View test results and HTML report
🔄 Run: #23813 (attempt 1)

Failed tests

firefox › tests/flag-dependencies-test.pw.ts › Flag Dependencies › A flag can be gated behind another, and says so on both sides @oss

❌ oss · depot-ubuntu-latest-16 — run #23813 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

failed  1 failed

Details

stats  1 test across 1 suite
duration  6.1 seconds
commit  2bfbc38
info  📦 Artifacts: View test results and HTML report
🔄 Run: #23813 (attempt 1)

Failed tests

firefox › tests/flag-dependencies-test.pw.ts › Flag Dependencies › A flag can be gated behind another, and says so on both sides @oss

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Visual Regression

29 screenshots compared. See report for details.
View full report

talissoncosta and others added 2 commits November 26, 2026 08:26
TableFilter and TableFilterItem get their own stylesheets instead of rules in
the global _modals.scss. The row border uses a token, so it no longer needs a
.dark rule. PanelSearch and TableSortFilter, which borrow the row class for
their sort rows, import its stylesheet until they move to DropdownMenu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops the ionicon caret and its inline styles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TableSortFilter and PanelSearch built their own rows with the
table-filter-item class. They now use TableFilterItem, which shows the sort
direction on the active option through a sortOrder prop. PanelSearch also
drops its ionicons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 9 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Auto-approval blocked by 1 unresolved issue from previous reviews.

Turn on auto-fix | Re-trigger cubic

…n E2E

TableFilterItem was a link to '#' that only ran an action; it is now a
BareButton with aria-pressed for the selected option. E2E finds the archived
tag option and the history compare options by role and name, so the
table-filter and history compare test ids are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
talissoncosta and others added 2 commits November 26, 2026 08:42
…n styles

Stops borrowing InlineModal's inline-modal--sm, inline-modal__title and
inline-modal__list classes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 9 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Refactors table filters to Popover/bottom-sheet UI and buttons, updates e2e role selectors. The dismissed PanelSearch sheet-sizing issue remains in the diff, so deferring it needs human sign-off.

Turn on auto-fix | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 10 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Refactors table filters to Popover/bottom-sheet UI with button rows and updates e2e selectors. The dismissed PanelSearch phone-sheet sizing issue remains: sort rows still render outside the sheet-sizing wrapper, so deferring it needs human sign-off.

Turn on auto-fix | Re-trigger cubic

The features list's Value filter is now also a button named exactly Value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Refactors table filters to Popover/bottom-sheet UI with button rows and updated e2e selectors. The dismissed PanelSearch phone-sheet sizing issue remains: its sort rows still render outside TableFilter's sheet-sizing wrapper, so deferring that fix needs human sign-off.

Turn on auto-fix | Re-trigger cubic

Every filter but Tags hid it, and Tags used it for its strategy select, not a
title. Tags now renders the select in its own content, so hideTitle and
dropdownTitle go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 6 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Refactors table filters from InlineModal to Popover/bottom-sheet UI, converting options to buttons and updating e2e selectors. The dismissed PanelSearch phone-sheet sizing issue still applies and is deferred, so a human should accept that scope decision.

Turn on auto-fix | Re-trigger cubic

This branch was successfully deployed

2 active deployments
Preview – flagsmith-frontend-staging — 4a868645 Deployed Nov 26, 2026 by vercel[bot]
Preview – flagsmith-frontend-preview — 4a868645 Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant