Skip to content

feat(usage): show the legacy usage page with ?dashboard=legacy - #8647

Merged
talissoncosta merged 1 commit into
mainfrom
feat/usage-dashboard-url-override
Oct 1, 2026
Merged

talissoncosta merged 1 commit into
mainfrom
feat/usage-dashboard-url-override

Conversation

@talissoncosta

Copy link
Copy Markdown
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • 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 #8183

Adds ?dashboard=legacy to the usage page, so customer success can compare the old page with the new dashboard while usage_dashboard is on. It only switches back: with the flag off, the param does nothing.

How did you test this code?

  1. With usage_dashboard on, open /organisation/<id>/usage: the new dashboard shows.
  2. Add ?dashboard=legacy: the old page shows.
  3. With usage_dashboard off, the old page shows with or without the param.

Lets customer success compare the old page and the new dashboard
without changing the usage_dashboard flag.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 1, 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 Oct 1, 2026 1:49pm UTC
flagsmith-frontend-staging Ready Ready Preview Oct 1, 2026 1:49pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Preview Oct 1, 2026 1:49pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (1)
frontend/CLAUDE.md — auto-discovered

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: b58f8cb1-da21-4ff8-b414-8b8a3a01c842

📥 Commits

Reviewing files that changed from the base of the PR and between df5e8a2 and 4719996.

📒 Files selected for processing (1)
  • frontend/web/components/pages/OrganisationUsagePage.tsx

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


📝 Walkthrough

Walkthrough

The organisation usage page now reads the organisation ID and URL location before checking whether the usage dashboard is enabled. The dashboard is disabled when the dashboard query parameter is legacy. Otherwise, the usage_dashboard feature flag determines whether it is enabled.

Priority: ⬇️ Low

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

Merge Risk: ⚪ Minimal · up to 47199

dashboard=legacy selects the legacy page when the dashboard flag is enabled, while flag-off behavior remains unchanged. No concrete PR-introduced merge risk remains.

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added front-end Issue related to the React Front End Dashboard feature New feature or request labels Oct 1, 2026
@talissoncosta
talissoncosta marked this pull request as ready for review October 1, 2026 13:55
@talissoncosta
talissoncosta requested a review from a team as a code owner October 1, 2026 13:55
@talissoncosta
talissoncosta requested review from kyle-ssg and removed request for a team October 1, 2026 13:55
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

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

@talissoncosta
talissoncosta requested a review from Zaimwa9 October 1, 2026 13:57
@talissoncosta talissoncosta self-assigned this Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026 •

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

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

passed  3 passed

Details

stats  3 tests across 3 suites
duration  38.4 seconds
commit  4719996
info  🔄 Run: #21091 (attempt 1)

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

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

passed  4 passed

Details

stats  4 tests across 4 suites
duration  34.3 seconds
commit  4719996
info  🔄 Run: #21091 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.9 seconds
commit  4719996
info  🔄 Run: #21091 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  31.3 seconds
commit  4719996
info  🔄 Run: #21091 (attempt 1)

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Visual Regression

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

@talissoncosta
talissoncosta merged commit a4d2a4d into main Oct 1, 2026
46 checks passed
@talissoncosta
talissoncosta deleted the feat/usage-dashboard-url-override branch October 1, 2026 14:16

This branch was successfully deployed

2 active deployments
Preview – flagsmith-frontend-preview — 47199969 Deployed Oct 1, 2026 by vercel[bot]
Preview – flagsmith-frontend-staging — 47199969 Deployed Oct 1, 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.

2 participants