Skip to content

fix(Platform Hub): Invert stale flags count in admin dashboard#6711

Merged
khvn26 merged 1 commit intomainfrom
fix/stale-flags-inverted-count
Feb 12, 2026
Merged

fix(Platform Hub): Invert stale flags count in admin dashboard#6711
khvn26 merged 1 commit intomainfrom
fix/stale-flags-inverted-count

Conversation

@talissoncosta
Copy link
Contributor

@talissoncosta talissoncosta commented Feb 12, 2026

Summary

  • The backend returns the count of non-stale (active) flags in the stale_flags field, causing the "Stale Flags per Project" table in the admin dashboard to display inverted values
  • Applies total_flags - stale_flags transformation on the frontend using useMemo so both display and sorting reflect the correct stale count
image

Test plan

  • Verify the "Stale Flags per Project" table on the Platform Hub admin dashboard shows correct stale counts
  • Verify sorting by "Stale Flags" column orders correctly
  • Verify the "% Stale" column percentages are accurate

@vercel
Copy link

vercel bot commented Feb 12, 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 12, 2026 10:48am
flagsmith-frontend-staging Ready Ready Preview, Comment Feb 12, 2026 10:48am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Preview Feb 12, 2026 10:48am

Request Review

@talissoncosta talissoncosta requested a review from a team as a code owner February 12, 2026 10:45
@talissoncosta talissoncosta requested review from Zaimwa9 and removed request for a team February 12, 2026 10:45
The backend returns the count of non-stale (active) flags in the
stale_flags field. Invert the value on the frontend so the table
correctly displays actual stale flag counts per project.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the front-end Issue related to the React Front End Dashboard label Feb 12, 2026
@talissoncosta talissoncosta force-pushed the fix/stale-flags-inverted-count branch from 145bcbf to a1b36d4 Compare February 12, 2026 10:45
@github-actions github-actions bot added the fix label Feb 12, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

Docker builds report

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

@github-actions github-actions bot added fix and removed fix labels Feb 12, 2026
Copy link

@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 1 potential issue.

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

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@khvn26 khvn26 merged commit ac6dd43 into main Feb 12, 2026
28 checks passed
@khvn26 khvn26 deleted the fix/stale-flags-inverted-count branch February 12, 2026 10:49
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.

2 participants