-
-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: prepare for lifecycle comments (#8733)
This PR is a preparation for adding lifecycle comments. It turns the Lifecycle boxes into buttons, using MUI's [`CardActionArea`](https://mui.com/material-ui/api/card-action-area/) component, and allows you to select one at a time. I'm not convinced about the a11y of this approach, but it appears to be in line with what MUI suggests, so ... I'll add the speech bubbles in a follow-up. <img width="1059" alt="image" src="https://github.com/user-attachments/assets/ad3f649f-10de-4418-a780-10321e90d001">
- Loading branch information
1 parent
61e297d
commit bc7511a
Showing
2 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
frontend/src/component/project/Project/ProjectStatus/LifecycleMessages.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { ProjectStatusSchemaLifecycleSummary } from 'openapi'; | ||
|
||
export const lifecycleMessages: Record< | ||
keyof ProjectStatusSchemaLifecycleSummary, | ||
string | ||
> = { | ||
initial: | ||
'Feature flags in the initial phase indicate you have created flags that is not detected in any environments which mean either integration issues or unused flags', | ||
preLive: | ||
'In the pre-live phase the feature is being developed and tested in controlled environments. Once the feature is ready the flag can be enabled in production.', | ||
live: 'The feature is being rolled out in production according to the decided strategy targeting user segments and/or using percentage rollout. ', | ||
completed: | ||
'Flags that are in cleanup are potentially stale flags. View the flags to evaluate whether you should archive them in Unleash and clean up your codebase to reduce technical debt', | ||
archived: | ||
'Flags that have been archived and are no longer in use, but kept for future reference.', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters