Skip to content

fix(Mobile): Fix the feature drawer layout on phones - #8994

Merged
talissoncosta merged 9 commits into
mainfrom
fix/mobile-modal-content-height
Nov 24, 2026
Merged

talissoncosta merged 9 commits into
mainfrom
fix/mobile-modal-content-height

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

A customer couldn't edit a segment override from their phone: the feature drawer stopped drawing its background halfway down and the rule fields were squeezed.

  • Drawers grow with their content on phones (min-height instead of height: 100vh). Dialogs stay cards sized to their content instead of filling the screen.
  • Feature drawer tabs get the desktop spacing on phones.
  • Segment rule fields stack at full width; AND / AND NOT buttons are full width and evenly spaced.
  • The feature drawer title shows just the flag name on phones, with the copy button beside it.
  • The environment summary shows two metrics per row on phones, one row from 768px up.

First of a stack: #8995 (Popover sheet), then #8996 (DropdownMenu).

How did you test this code?

At 393px and 1440px, light and dark:

  • Features → a flag → Segment Overrides → Create Feature-Specific Segment: background reaches the bottom, rule fields stack, buttons full width.
  • Remove feature confirm: a card, not full screen.
  • Summary accordion: 2 per row on phones, 4 on one row on desktop.
  • Other centred modals (Create Project, payment) on a phone.

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

Request Review

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The changes update responsive layouts in the feature modal, segment rule editor and metrics grid. The feature modal header truncates feature names and hides selected content on smaller screens. Side-modal styling is scoped to side modals at smaller viewports. Segment rule controls use responsive layouts, and each addition button handles its own click. The metrics grid uses CSS columns instead of an inline column count.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: Minimal · up to c34e2

This PR adjusts mobile layouts for drawers, segment rule fields and the metrics summary. No concrete defects were found, so the merge risk is minimal.

- [ ] 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 0958d433-10f7-4a40-acae-43f7d6086177
Commits

Reviewing files that changed from the base of the PR and between 8b754f6 and c34e2b3.

Files selected for processing: 2

  • frontend/web/styles/components/_metrics.scss
  • frontend/web/styles/project/_modals.scss
Files with no reviewable changes: 1

  • frontend/web/styles/components/_metrics.scss

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

@github-actions github-actions Bot added the front-end Issue related to the React Front End Dashboard label Nov 17, 2026
@github-actions github-actions Bot added the fix label Nov 17, 2026
@talissoncosta
talissoncosta marked this pull request as ready for review November 17, 2026 14:17
@talissoncosta
talissoncosta requested a review from a team as a code owner November 17, 2026 14:17
@talissoncosta
talissoncosta requested review from kyle-ssg and removed request for a team November 17, 2026 14:17
@github-actions github-actions Bot removed the fix label Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-8994 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-8994 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-8994 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith:pr-8994 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-8994 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-frontend:pr-8994 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

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

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.

Review completed against the latest diff

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

Turn on auto-fix | Re-trigger cubic

@github-actions github-actions Bot added fix and removed fix labels Nov 17, 2026

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

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 555022f1-296e-402c-8e82-6b9142017d2e
Commits

Reviewing files that changed from the base of the PR and between 05b073c and 1629fc7.

Files selected for processing: 6

  • frontend/web/components/feature-summary/FeatureRow.tsx
  • frontend/web/components/metrics/EnvironmentMetricsList.tsx
  • frontend/web/components/modals/CreateSegment.tsx
  • frontend/web/components/segments/Rule/components/RuleConditionRow.tsx
  • frontend/web/styles/components/_metrics.scss
  • frontend/web/styles/project/_modals.scss

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@github-actions

github-actions Bot commented Nov 17, 2026 •

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  1 minute, 8 seconds
commit  8e0b379
info  🔄 Run: #23697 (attempt 1)

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

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

passed  4 passed

Details

stats  4 tests across 4 suites
duration  32.6 seconds
commit  8e0b379
info  🔄 Run: #23697 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.8 seconds
commit  8e0b379
info  🔄 Run: #23697 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  32.6 seconds
commit  8e0b379
info  🔄 Run: #23697 (attempt 1)

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

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

passed  3 passed

Details

stats  3 tests across 3 suites
duration  34.3 seconds
commit  5593d85
info  🔄 Run: #23694 (attempt 1)

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

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

passed  12 passed

Details

stats  12 tests across 9 suites
duration  27.9 seconds
commit  5593d85
info  🔄 Run: #23694 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  37.6 seconds
commit  5593d85
info  🔄 Run: #23694 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  31.2 seconds
commit  5593d85
info  🔄 Run: #23694 (attempt 1)

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

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

passed  5 passed

Details

stats  5 tests across 5 suites
duration  3.9 seconds
commit  b72b54c
info  🔄 Run: #23690 (attempt 1)

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

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

passed  3 passed

Details

stats  3 tests across 3 suites
duration  36.2 seconds
commit  b72b54c
info  🔄 Run: #23690 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  3.8 seconds
commit  b72b54c
info  🔄 Run: #23690 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  38.9 seconds
commit  b72b54c
info  🔄 Run: #23690 (attempt 1)

@cubic-dev-ai
cubic-dev-ai Bot dismissed their stale review November 24, 2026 13:36

Dismissed because Cubic found issues in a newer review.

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

No issues found across 6 files

Confidence score: 5/5

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

Requires human review: The PR makes bounded mobile layout changes, but the changed feature title’s behavior after saving remains unverified. A human should confirm the dismissed title finding does not affect this flow.

Turn on auto-fix | Re-trigger cubic

talissoncosta and others added 7 commits November 24, 2026 15:12
…le on phones

- Drawers grow with their content (min-height), so the lower half no longer
  renders without a background over the page. Dialogs stay content-sized cards.
- Feature drawer tabs get the desktop spacing on phones.
- Segment rule fields stack at full width; AND / AND NOT buttons are
  full width and evenly spaced, with the click on the button itself.
- The feature drawer title shows just the flag name on phones, with the
  copy button beside it.
- The environment summary shows two metrics per row on phones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The feature drawer's tab spacing matches desktop, so it no longer needs a
breakpoint, and .p-0 is already !important.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bootstrap caps .modal-dialog at --bs-modal-width from 544px, so below the
md breakpoint the drawer turned into a narrow card.

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

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

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[bot]
cubic-dev-ai Bot previously approved these changes Nov 24, 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.

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

Confidence score: 5/5

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

Auto-approved: Scoped mobile layout fix for feature drawer and segment rules: drawers grow, dialogs stay cards, metrics/rules stack on phones. Dismissed findings match intended behavior and the title flow is consistent across FeatureProvider/FeatureRow.

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.

Auto-approved: Scoped mobile layout fix for the feature drawer and segment rules: drawers/dialogs get responsive sizing, fields and metrics stack on phones, and modal titles truncate beside the copy button. Dismissed findings match the intended phone behavior.

Turn on auto-fix | Re-trigger cubic

@talissoncosta
talissoncosta merged commit 899aa38 into main Nov 24, 2026
30 checks passed
@talissoncosta
talissoncosta deleted the fix/mobile-modal-content-height branch November 24, 2026 18:58

This branch was successfully deployed

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

Labels

fix 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