1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00
unleash.unleash/frontend/src/component/common
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
..
AnimateOnMount
Announcer
ApiError
ApiTokenTable chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
AutocompleteBox
AutocompleteVirtual refactor: project users virtual autocomplete (#9196) 2025-02-04 10:04:36 +01:00
AvatarGroup chore: group cards redesign (#9048) 2025-01-02 15:08:15 +00:00
AvatarGroupFromOwners fix: wrap the UserAvatar component in forwardRef (#8461) 2024-10-16 14:58:34 +02:00
Badge chore(1-3316): update request info boxes to new design (#9180) 2025-01-31 14:05:36 +01:00
BatchSelectionActionsBar
BreadcrumbNav chore: remove create feature component (#7959) 2024-08-22 11:30:41 +03:00
Card chore: deprecate envAccordion colors; update non-legacy components (#9378) 2025-02-27 15:29:37 +01:00
Chart fix: dynamic highlight width (#9166) 2025-01-29 12:03:31 +01:00
CheckmarkBadge chore(unl-204): make toasts smaller (#8935) 2024-12-10 13:10:04 +00:00
Codebox
ConditionallyRender
ConstraintAccordion chore(1-3389): new env strategy containers (#9361) 2025-02-26 16:24:50 +01:00
ConstraintsList Segment view for strategy evaluation (#9399) 2025-02-28 15:15:25 +01:00
CreateButton
DateTimePicker
DialogFormTemplate fix: long flag names push table to overflow and flag descriptions are not truncated (#9350) 2025-02-25 13:39:30 +01:00
Dialogue
DividerText
DropdownMenu
EnterpriseBadge
EnvironmentIcon
ExperimentalFeedback
FavoriteIconButton
FeatureArchiveDialog chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
FeatureLifecycle chore: remove lifecycle v2 flag (#9224) 2025-02-06 14:54:45 +01:00
FeatureStaleDialog chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
FeatureStatusChip feat(1-3379): add stale badge to the new header (#9320) 2025-02-18 12:34:46 +00:00
Feedback
FilterDateItem feat: date range selector (#8991) 2024-12-18 10:40:50 +01:00
FormSwitch
FormTemplate refactor: don't use absolute positioning for drag handle (#9434) 2025-03-06 14:21:19 +01:00
GeneralSelect Add environment types environment order (#8447) 2024-10-15 11:00:31 +02:00
Gradient
GridCol
GridRow
GuidanceIndicator
HelpIcon 1-3083: add remaining lifecycle header + tooltip (#8722) 2024-11-13 10:16:35 +01:00
Highlight chore: remove Unleash AI (#9010) 2024-12-20 11:02:49 +00:00
Highlighter fix: projects archive search (#7898) 2024-08-15 16:19:29 +02:00
HtmlTooltip
Input
InputCaption
InputListField
InstanceStatus chore: remove uiGlobalFontSize flag (#9331) 2025-02-26 12:39:53 +01:00
ItemList
Limit fix: update the customer success email for limits (#7933) 2024-08-20 11:58:25 +02:00
Loader
LoginRedirect
MainHeader
Markdown chore: implement event grouping in the event timeline (#8254) 2024-09-26 14:48:52 +01:00
MultiActionButton
MultipleRoleSelect feat: grouping of project level roles in autocomplete (#9046) 2024-12-31 10:44:48 +01:00
NewConstraintAccordion chore(1-3389): new env strategy containers (#9361) 2025-02-26 16:24:50 +01:00
NoItems
NotFound
Notifications Refactor: Remove react-timeago (#7943) 2024-08-21 12:03:03 +02:00
PageContent
PageHeader
PasswordField
PercentageCircle feat: new environment box (#9342) 2025-02-25 10:34:36 +00:00
PermissionButton fix: permission button unintended full width behavior (#8920) 2024-12-05 09:23:06 +00:00
PermissionGuard
PermissionHOC
PermissionIconButton
PermissionSwitch
PremiumFeature chore: mark release management as an enterprise feature (#9229) 2025-02-06 09:59:38 +00:00
PrettifyLargeNumber
Proclamation
ProjectIcon test(navigation): snapshot sidebar for different plans (#8507) 2024-10-22 09:13:59 +00:00
ProjectSelect fix: make the chip in the playground project selector small (#9298) 2025-02-12 09:38:49 +01:00
ProtectedRoute
PulsingAvatar feat: connection status bubble (#8099) 2024-09-05 13:56:25 +03:00
ReactJSONEditor
ResponsiveButton feat: new onboarding welcome screen logic (#8110) 2024-09-06 13:15:28 +03:00
RoleBadge chore: group cards redesign (#9048) 2025-01-02 15:08:15 +00:00
RoleDescription
RoleSelect
ScreenReaderOnly
ScrollTop
Search feat: separate command bar and search hotkeys (#7651) 2024-07-24 12:46:03 +03:00
SegmentItem Segment view for strategy evaluation (#9399) 2025-02-28 15:15:25 +01:00
SidebarModal
SidePanelList
SkipNavLink fix(1-3295): fix broken skip link (#9239) 2025-02-06 10:21:56 +01:00
StaleDataNotification
Sticky chore: remove all deprecated imports of act (#8398) 2024-10-15 13:53:26 +02:00
StrategyItemContainer 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
StrategySeparator feat: use new strategy list in release plans (#9405) 2025-03-03 13:17:55 +01:00
StrategyVariantsUpgradeAlert
StringTruncator refactor: fix deprecation for string truncator (#9359) 2025-02-25 12:24:03 +00:00
Table fix: long flag names push table to overflow and flag descriptions are not truncated (#9350) 2025-02-25 13:39:30 +01:00
TabNav
ThemeMode
TimeAgo chore: remove all deprecated imports of act (#8398) 2024-10-15 13:53:26 +02:00
ToastRenderer feat: render markdown in toats (#9207) 2025-02-04 16:35:25 +01:00
TooltipLink
TooltipResolver
Truncator chore: make truncator a span (#9272) 2025-02-10 12:29:58 +00:00
UpdateButton
UserAvatar chore: new user avatar tooltip (#9050) 2025-01-03 10:26:02 +00:00
VariantInfoAlert
VerticalTabs chore: flag overview page redesign - environments (#8683) 2024-11-08 09:56:46 +00:00
common.module.scss
flags.ts
index.jsx
select.tsx
util.test.ts
util.ts fix: environments route should be hidden from menu for open-source (#8397) 2024-10-09 15:45:02 +03:00