mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
3bc9fe9a9a
Hooks up the project status lifecycle data to the UI. Adds some minor refactoring as part of that effort. ## Other files There's been some small changes to `frontend/src/component/feature/FeatureView/FeatureOverview/FeatureLifecycle/FeatureLifecycleStageIcon.tsx` and `frontend/src/hooks/useLoading.ts` as well to accommodate their usage here and to remove unused stuff. The inline comments mention the same thing but for posterity (especially after this is merged), the comments are: For `frontend/src/component/feature/FeatureView/FeatureOverview/FeatureLifecycle/FeatureLifecycleStageIcon.tsx`: > The icon only needs the name to pick. https://github.com/Unleash/unleash/pull/7049 deliberately changed the logic so that the completed stage gets the same icon regardless of its status. As such, to make the icon easier to use other places (such as in the lifecycle widget), we'll only require the name. For `frontend/src/hooks/useLoading.ts`: > There's no reason we should only be able to put refs on divs, as far as I'm aware. TS was complaining that that a `ul` couldn't hold a div reference, so I gave it a type parameter that defaults to the old version. |
||
---|---|---|
.. | ||
Project | ||
ProjectAccess | ||
ProjectApplications | ||
ProjectCard | ||
ProjectEnvironment | ||
ProjectId | ||
ProjectList |