1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00
unleash.unleash/frontend/src/component/feature/FeatureView/FeatureOverview/ReleasePlan
Thomas Heartman 220550071f
chore(1-3450): Place strategy names and titles on the same line (and fix list nesting issues) (#9443)
Moves strategy titles and names onto the same line, as per the new
designs.

In doing so, I've also updated the component to use a more semantic
hgroup with the header being the strategy title if it exists or the
strategy name if not.

The downside of being more semantically correct here is that we need to
know what header level we want the strategy to use. In most cases,
that's 3 (e.g. flag name > environment > strategy, release plan >
milestone > strategy), but for plans on flag envs, it's 4 (flag name >
env > milestone name > strategy).

I've also taken the opportunity to fix a little mistake I made earlier.
`ol`s can only have `li` children, and I'd forgotten to wrap a nested
`ol` inside an `li`. The changes in `EnvironmentAccordionBody` all
relate to that change. Because we now have several layers of lists
nested within each other, dealing with styling and padding gets a little
tricky, but CSS has the power do help us out here.

Rendered:

![image](https://github.com/user-attachments/assets/634615fe-b06d-4baa-8aa3-22447d1fb8b4)
2025-03-07 13:09:36 +01:00
..
ChangeRequest chore: new add release plan dialog (#9389) 2025-02-28 10:57:20 +00:00
ReleasePlanMilestone chore(1-3450): Place strategy names and titles on the same line (and fix list nesting issues) (#9443) 2025-03-07 13:09:36 +01:00
LegacyReleasePlan.tsx Chore(1-3449): release plans in strategy env (#9441) 2025-03-07 11:18:09 +01:00
ReleasePlan.tsx chore: adjust env dropdown (#9382) 2025-02-27 15:28:41 +01:00
ReleasePlanAddDialog.tsx chore: release plan replacement UI (#9400) 2025-02-28 14:14:34 +01:00
ReleasePlanRemoveDialog.tsx chore: make remove release plan warning conditional on env. enabled (#9103) 2025-01-15 15:29:49 +01:00