Skip to content

feat(Hackathon): Platform Hub#6692

Merged
khvn26 merged 27 commits intomainfrom
feat/platform-hub
Feb 11, 2026
Merged

feat(Hackathon): Platform Hub#6692
khvn26 merged 27 commits intomainfrom
feat/platform-hub

Conversation

@khvn26
Copy link
Copy Markdown
Member

@khvn26 khvn26 commented Feb 11, 2026

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

In this PR, we introduce Platform Hub — a centralised dashboard for platform engineers, infrastructure owners and managers who run Flagsmith as a shared service across multiple teams.

Platform Hub gives instance administrators a single pane of l̶i̶q̶u̶i̶d̶ glass across four tabs:

  • Usage — KPI cards (orgs, flags, users, API calls, integrations), a usage trends chart, and a per-organisation table with expandable project/environment drill-down including overage tracking
  • Release Pipeline — per-pipeline stage breakdown showing feature counts, actions, and triggers across all organisations
  • Flag Lifecycle — stale flag counts per project
  • Integrations — adoption rate per integration type (environment/project/org-scoped), with expandable per-organisation detail, scope-level progress bars, and a verified checkmark when full coverage is reached

How did you test this code?

We'll test in staging and production. This is a hackathon entry, gated by a feature flag!

talissoncosta and others added 16 commits February 10, 2026 15:15
Add /admin/dashboard route and a "Platform Hub" button on the
organisations page, visible only to super users.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Consolidate separate boolean checks for /organisations, /create,
and /admin/dashboard into a shared appLevelPaths array in both
Nav.tsx and SelectOrgAndProject.tsx. This ensures the Platform Hub
page renders at the same layout level as the organisations page
(top bar only, no side nav or org/project breadcrumb).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add TypeScript types for Platform Hub metrics: OrganisationMetrics
(with nested ProjectMetrics and EnvironmentMetrics), UsageTrend,
ReleasePipelineStats, StaleFlagsPerProject, and IntegrationBreakdown.

Include mock data generators for MVP validation. API call totals
are aggregated bottom-up from environment to project to organisation
for consistency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add the main AdminDashboardPage with:
- KPI summary cards (organisations, flags, seats, API calls, integrations)
- API usage trends line chart (recharts)
- Tabbed layout using existing Tabs/TabItem components for
  Usage, Release Pipeline, Flag Lifecycle, and Integrations sections

Page is restricted to super users and uses mock data for MVP.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…t rows

Add OrganisationUsageTable with two-level accordion drill-down:
- Click an organisation row to reveal its projects with flags and
  API call counts
- Click a project row to reveal per-environment API call breakdown

Covers the spec requirement for usage broken down by organisation,
project, and environment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add three Platform Hub data tables:
- ReleasePipelineStatsTable: flags grouped by pipeline stage per
  project, with dynamic stage columns
- StaleFlagsTable: stale flags per project with percentage indicator
- IntegrationBreakdownTable: integration instances aggregated by
  type with organisation count

All tables use PanelSearch for search, sorting, and pagination.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…integrations tab

- Rewrite ReleasePipelineStatsTable with expandable org → project → pipeline
  hierarchy and per-pipeline donut charts showing feature distribution across
  stages, using "Released" terminology for completed features
- Add overage column to OrganisationUsageTable that respects the 30/60/90 day
  period selector, showing red +N for orgs exceeding their API call limit
- Update types with ReleasePipelineOverview, ReleasePipelineStageStats, and
  overage/api_calls fields on OrganisationMetrics
- Regenerate mock data with realistic pipeline templates and proportional
  overage values (0-4% over limit for ~40% of orgs)
- Remove Integrations tab from dashboard (table kept for future use)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Flat 3-column table (Integration, Category, Organisations) replacing the
previous scope-based breakdown. Groups integration data by type with category
metadata and shows adoption as "X of Y" organisations. Currently not wired
into the dashboard tabs but ready for re-enabling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adopt kebab-case naming convention for the Platform Hub page directory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add Utils.getFlagsmithHasFeature('platform_hub') check to the
OrganisationsPage button and AdminDashboardPage component.

TODO: Create the platform_hub flag in Flagsmith environment config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@khvn26 khvn26 requested review from a team as code owners February 11, 2026 08:16
@khvn26 khvn26 requested review from gagantrivedi and kyle-ssg and removed request for a team February 11, 2026 08:16
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 11, 2026

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

Project Deployment Actions Updated (UTC)
flagsmith-frontend-preview Ready Ready Preview, Comment Feb 11, 2026 11:50am
flagsmith-frontend-staging Ready Ready Preview, Comment Feb 11, 2026 11:50am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Preview Feb 11, 2026 11:50am

Request Review

@khvn26 khvn26 changed the title feat(Hackathon): Platform hub feat(Hackathon): Platform Hub Feb 11, 2026
@github-actions github-actions Bot added front-end Issue related to the React Front End Dashboard api Issue related to the REST API feature New feature or request labels Feb 11, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 11, 2026

Docker builds report

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.24%. Comparing base (8ba9171) to head (43be879).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6692      +/-   ##
==========================================
+ Coverage   98.20%   98.24%   +0.03%     
==========================================
  Files        1298     1308      +10     
  Lines       47172    48101     +929     
==========================================
+ Hits        46327    47257     +930     
+ Misses        845      844       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread api/platform_hub/services.py Outdated
Comment thread api/platform_hub/views.py
Comment thread frontend/web/components/navigation/Nav.tsx
Comment thread api/app_analytics/influxdb_wrapper.py
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Feb 11, 2026
kyle-ssg
kyle-ssg previously approved these changes Feb 11, 2026
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Comment thread api/platform_hub/services.py
@khvn26 khvn26 merged commit 264d1f9 into main Feb 11, 2026
35 checks passed
@khvn26 khvn26 deleted the feat/platform-hub branch February 11, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Issue related to the REST API 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.

3 participants