Skip to content

feat: use lifecycles API#7793

Draft
kyle-ssg wants to merge 1 commit into
mainfrom
feat/lifecycle-stats-api
Draft

feat: use lifecycles API#7793
kyle-ssg wants to merge 1 commit into
mainfrom
feat/lifecycle-stats-api

Conversation

@kyle-ssg

Copy link
Copy Markdown
Member

Conform the project lifecycle page to the new backend API (#7789):

  • Add lifecycle-status-counts RTK query for sidebar counts in one call
  • Add lifecycle_stage + evaluation_period_days params to getProjectFlags and a lifecycle_stage field on ProjectFlag
  • Each section now fetches only its own stage, classified server-side
  • Remove client-side tag/code-reference/evaluation classification, the per-flag EvaluationChecker and useEvaluationCounts hook
  • Single environment (name-matched "prod" by default, switchable in the left nav, persisted per project in a new redux slice) and a single evaluation_period_days replace the multi-env + dual-period controls
  • Drop the non-functional "LIFECYCLE STAGES" sidebar header/Add button

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

Please describe.

How did you test this code?

Please describe.

…ification

Conform the project lifecycle page to the new backend API (#7789):

- Add lifecycle-status-counts RTK query for sidebar counts in one call
- Add lifecycle_stage + evaluation_period_days params to getProjectFlags
  and a lifecycle_stage field on ProjectFlag
- Each section now fetches only its own stage, classified server-side
- Remove client-side tag/code-reference/evaluation classification, the
  per-flag EvaluationChecker and useEvaluationCounts hook
- Single environment (name-matched "prod" by default, switchable in the
  left nav, persisted per project in a new redux slice) and a single
  evaluation_period_days replace the multi-env + dual-period controls
- Drop the non-functional "LIFECYCLE STAGES" sidebar header/Add button

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kyle-ssg kyle-ssg requested a review from a team as a code owner June 16, 2026 09:06
@kyle-ssg kyle-ssg requested review from talissoncosta and removed request for a team June 16, 2026 09:06
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
flagsmith-frontend-preview Ready Ready Preview, Comment Jun 16, 2026 9:07am
flagsmith-frontend-staging Ready Ready Preview, Comment Jun 16, 2026 9:07am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Jun 16, 2026 9:07am

Request Review

@github-actions github-actions Bot added the front-end Issue related to the React Front End Dashboard label Jun 16, 2026
@kyle-ssg kyle-ssg marked this pull request as draft June 16, 2026 09:07
@github-actions github-actions Bot added the feature New feature or request label Jun 16, 2026
@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Docker builds report

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

@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  39.5 seconds
commit  a369ed5
info  🔄 Run: #17534 (attempt 1)

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  37.2 seconds
commit  a369ed5
info  🔄 Run: #17534 (attempt 1)

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

passed  4 passed

Details

stats  4 tests across 4 suites
duration  10.5 seconds
commit  a369ed5
info  🔄 Run: #17534 (attempt 1)

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

passed  3 passed

Details

stats  3 tests across 3 suites
duration  1 minute, 10 seconds
commit  a369ed5
info  🔄 Run: #17534 (attempt 1)

@github-actions

Copy link
Copy Markdown
Contributor

Visual Regression

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

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