Skip to content

feat(DropdownMenu): One menu component for actions, tabs and nav overflow - #8996

Open
talissoncosta wants to merge 12 commits into
mainfrom
feat/dropdown-menu
Open

talissoncosta wants to merge 12 commits into
mainfrom
feat/dropdown-menu

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

DropdownMenu takes DropdownMenuItem children (current with a tick, destructive, disabled with an optional disabledReason). An item's icon is a child before its label (<Icon name='copy' /> Copy); the item sizes, colours and spaces it. Disabled items stay focusable (aria-disabled) and show the reason under the label, as their description. The trigger defaults to a "more" button named by the menu's aria-label, or takes any element. Built on Popover, so menus open as a bottom sheet on phones, with larger rows there (16px label, 20px icon, 48px rows). Items close the menu after onSelect. DropdownMenuLink is a row that navigates, marked as current on its page. Popover stops clicks on its trigger and panel from reaching a clickable row, and closes on a route change.

Consumers:

  • Replaces the legacy items-based DropdownMenu in StaleSection, ExperimentActionDropdown, ReleasePipelinesList, IntegrationList (deleted).
  • Tabs overflow: "More tabs", a sheet on phones. Scrolling tabs on phones is in feat(Tabs): Scroll tabs sideways on phones #9115.
  • OverflowNav (project, organisation and environment navs) instead of InlineModal, with a required label so each button has its own name. NavSubLink and SidebarLink render as DropdownMenuLink rows inside the menu, so both navs' overflows look the same.
  • TabLabel renders a tab's label and unsaved-changes dot for both the tab and the menu.
  • E2E helpers find these menus by role and name instead of data-test.

How did you test this code?

At 393px and 1440px:

  • Project nav overflow: popover on desktop, sheet on a phone; picking a link navigates and closes.
  • Release pipelines actions: Edit disabled when published with its reason, Remove in red, Escape closes.
  • Disabled item (Storybook): reachable with Tab, read as its label with the reason as description, does nothing when chosen.
  • Phone sheet: 48px rows, 16px labels, 20px icons; desktop unchanged.
  • Integrations actions (Grafana, Jira).
  • Experiments actions: not tested, needs a project with a data warehouse.
  • Stale flags actions on Lifecycle: not tested, no stale flags on staging. Same items as before, now with icons as children.
  • Configured integration menu (Grafana): Edit opens the form, Delete is red and asks to confirm.
  • Desktop tabs overflow at 900px: "More tabs" holds Settings, picking it selects the tab and ticks it, Escape returns focus to the button.

@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:39pm UTC
flagsmith-frontend-staging Ready Ready Preview Nov 26, 2026 12:39pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Preview Nov 26, 2026 12:39pm 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 labels Nov 17, 2026
@talissoncosta
talissoncosta force-pushed the feat/popover-bottom-sheet branch from ee16aff to 9f9f33d Compare November 17, 2026 14:56
@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/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/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
@linear-code

linear-code Bot commented Nov 25, 2026

Copy link
Copy Markdown

ENG-643

talissoncosta and others added 3 commits November 25, 2026 18:33
DropdownMenu takes DropdownMenuItem children (icon, current, destructive,
disabled with a reason) and is built on Popover, so it opens as a bottom
sheet on phones, with larger rows there. Disabled items stay focusable and
show why under the label.

The action menus in stale flags, experiments, release pipelines and
integrations, and the "More tabs" overflow, move onto it. The old
items-based DropdownMenu is deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The project, organisation and environment navs open their overflow as a
DropdownMenu instead of an InlineModal, so it is a sheet on phones. Each
nav names its button with a required label, and E2E finds it by name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two Grafana integrations both read "Actions for Grafana"; numbered when
there are several.

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

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-8996 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-8996 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-8996 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith:pr-8996 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-8996 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-frontend:pr-8996 Finished ✅ Results ✅

@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 27 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-arm-16 — run #23824 (attempt 1)

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  60 seconds
commit  be510da
info  🔄 Run: #23824 (attempt 1)

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

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

passed  2 passed

Details

stats  2 tests across 2 suites
duration  49.2 seconds
commit  be510da
info  🔄 Run: #23824 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  36.3 seconds
commit  be510da
info  🔄 Run: #23824 (attempt 1)

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

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

passed  2 passed

Details

stats  2 tests across 2 suites
duration  8.5 seconds
commit  be510da
info  🔄 Run: #23824 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  56.8 seconds
commit  7e0ff40
info  🔄 Run: #23822 (attempt 1)

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

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

passed  4 passed

Details

stats  4 tests across 3 suites
duration  3.4 seconds
commit  7e0ff40
info  🔄 Run: #23822 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.2 seconds
commit  7e0ff40
info  🔄 Run: #23822 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  32 seconds
commit  7e0ff40
info  🔄 Run: #23822 (attempt 1)

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

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

failed  2 failed

Details

stats  2 tests across 2 suites
duration  1 minute, 14 seconds
commit  db915a1
info  📦 Artifacts: View test results and HTML report
🔄 Run: #23820 (attempt 1)

Failed tests

firefox › tests/environment-permission-test.pw.ts › Environment Permission Tests › Environment-level permissions control access to features, identities, and segments @enterprise
firefox › tests/project-permission-test.pw.ts › Project Permission Tests › Project-level permissions control access to features, environments, audit logs, and segments @enterprise

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

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

passed  6 passed

Details

stats  6 tests across 4 suites
duration  26.2 seconds
commit  db915a1
info  🔄 Run: #23820 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  31.5 seconds
commit  db915a1
info  🔄 Run: #23820 (attempt 1)

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

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

passed  26 passed
skipped  1 skipped

Details

stats  27 tests across 15 suites
duration  33.1 seconds
commit  db915a1
info  🔄 Run: #23820 (attempt 1)

Skipped tests

firefox › tests/onboarding-tests.pw.ts › Onboarding › New user connects via the single-page onboarding flow @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 6 commits November 26, 2026 08:53
<DropdownMenuItem><Icon name='copy' /> Copy</DropdownMenuItem>: the item
spaces and sizes it, so any icon works, and the reason lines up with the
text.

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

One icon colour rule, sheet sizes as variables instead of nested selectors,
one gap, and the tick named __check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A popover in a clickable row (stale flags, integrations) also ran the row's
click, since React bubbles through the portal. Popover now stops clicks on
its trigger and inside its panel or sheet; keys still pass so Escape works.
It also closes when the route changes, as the old nav overflow did, so the
wrapper div in IntegrationList goes.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The project and environment navs looked different in their overflow menus,
as each kept its own link styles. DropdownMenuLink is a menu row that
navigates, with the selected look for the current page; NavSubLink and
SidebarLink render through it when inside a menu. DropdownMenuRow goes.

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.

All reported issues were addressed across 8 files (changes from recent commits).

Requires human review: Auto-approval skipped because cubic reviewed only this push, not the earlier force-push. Comment @cubic review to review the whole pull request.

Turn on auto-fix | Re-trigger cubic

talissoncosta and others added 2 commits November 26, 2026 09:30
Compare and the usage charts use the project's difference and bar-chart icons,
and the overflow button its more-vertical dots, so no ionicon reaches a menu
and DropdownMenu drops its ion-icon rule. Environments, Projects and the
environment menu button keep theirs until the icon library lands.

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.

1 issue found across 6 files (changes from recent commits).

Confidence score: 4/5

  • In ProjectNavbar.tsx, the Compare icon’s open stroke paths get filled, adding visible wedges. Exempt stroke-based icons from the fill rule.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="frontend/web/components/navigation/navbars/ProjectNavbar.tsx">

<violation number="1" location="frontend/web/components/navigation/navbars/ProjectNavbar.tsx:110">
P3: `difference` uses open, stroke-only paths, but `.nav-sub-link svg path` forces them to fill, adding filled wedges to the visible Compare icon. Exempt stroke-based icons from that fill rule.</violation>
</file>

Requires human review: Auto-approval skipped because cubic reviewed only this push, not the earlier force-push. Comment @cubic review to review the whole pull request.

Turn on auto-fix | Re-trigger cubic

)}
<NavSubLink
icon={gitCompare}
icon={<Icon name='difference' />}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3: difference uses open, stroke-only paths, but .nav-sub-link svg path forces them to fill, adding filled wedges to the visible Compare icon. Exempt stroke-based icons from that fill rule.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At frontend/web/components/navigation/navbars/ProjectNavbar.tsx, line 110:

<comment>`difference` uses open, stroke-only paths, but `.nav-sub-link svg path` forces them to fill, adding filled wedges to the visible Compare icon. Exempt stroke-based icons from that fill rule.</comment>

<file context>
@@ -107,7 +107,7 @@ const ProjectNavbar: FC<ProjectNavType> = ({ environmentId, projectId }) => {
       )}
       <NavSubLink
-        icon={gitCompare}
+        icon={<Icon name='difference' />}
         id='compare-link'
         to={`/project/${projectId}/compare`}
</file context>

…ws into the menu

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 3 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

This branch was successfully deployed

2 active deployments
Preview – flagsmith-frontend-staging — be510da1 Deployed Nov 26, 2026 by vercel[bot]
Preview – flagsmith-frontend-preview — be510da1 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