Skip to content

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

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

talissoncosta wants to merge 25 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

One menu component for row actions and overflow menus. It opens as a popover on desktop and as a bottom sheet on phones.

<DropdownMenu aria-label='Actions for Grafana'>
  <DropdownMenuItem onSelect={edit}>
    <Icon name='edit' /> Edit
  </DropdownMenuItem>
  <DropdownMenuItem destructive onSelect={remove}>
    <Icon name='trash-2' /> Delete
  </DropdownMenuItem>
</DropdownMenu>

The component

  • Items take destructive, disabled and an optional description shown under the label (for example, why an item is disabled). selected turns an item into one option of a single choice and ticks it.
  • Links use DropdownMenuLink, a row that navigates and shows the current page.
  • Trigger defaults to a "more" button named by the menu's aria-label. Any element works instead, and keeps its own handlers.
  • Sizes: 36px rows on desktop; 48px rows with larger labels and icons in the phone sheet.

Accessibility

  • A menu of menuitem rows (menuitemradio for single choice).
  • Arrow keys, Home and End move between rows; Escape closes and returns focus.
  • Disabled items stay focusable, and their description is read out.

Where it is used

  • Replaces the old DropdownMenu in Stale flags, Experiments, Release pipelines and Integrations.
  • "More tabs" overflow in Tabs. Scrolling tabs on phones comes in feat(Tabs): Scroll tabs sideways on phones #9115.
  • Overflow of the project, organisation and environment navs, so both navs' overflows look the same. OverflowNav now needs a label, so each overflow button has its own name.
  • Reporting, Compare and Usage nav icons move from ionicons to Icon.
  • E2E helpers find these menus by role and name instead of data-test.

Also in Popover

Clicks on its trigger and panel no longer reach a clickable row behind it, and back or forward closes it.

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.
  • Rows: 36px on desktop; 48px with 16px labels and 20px icons in the phone sheet.
  • Integrations actions (Grafana, Jira).
  • 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.
  • 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.

@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 27, 2026 12:52pm UTC
flagsmith-frontend-staging Ready Ready Preview Nov 27, 2026 12:52pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Preview Nov 27, 2026 12:52pm 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

@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.

All reported issues were addressed across 6 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

…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

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 1 file (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 17:07
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 17 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 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

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 2 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 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 3 commits November 27, 2026 09:09
…add menu roles and arrow keys

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

All reported issues were addressed across 10 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

@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 10 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 3 commits November 27, 2026 09:18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 2 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 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

@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 11 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 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

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

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

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 2 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 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 talissoncosta mentioned this pull request Nov 27, 2026
4 of 6 tasks

This branch was successfully deployed

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