1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/common
Thomas Heartman 64a6af2858
feat: show info on what would be deleted (#6235)
This PR updates the way we show deleted strategies in the CR UI. Instead
of showing just the strategy name and a diff on hover, we show the same
strategy config as we do for new and updated strategies.

This makes it easier to see what you have deleted.

In doing so, it also fixes two issues:
1. inconsistent border radius for segment changes listed. Due to an
override in `frontend/src/themes/theme.ts`, these would get a border
radius of `theme.shape.borderRadiusLarge` instead of
`theme.shape.borderRadiusMedium`. It does this by adding a class and
making the selector more specific.
2. The background was unset for the strategy rollout box and constraint
item boxes.

It looks like this:

<img width="728" alt="image"
src="https://github.com/Unleash/unleash/assets/17786332/7cba28ac-0454-444d-8cfa-f46543ccf2dc">

<img width="728" alt="image"
src="https://github.com/Unleash/unleash/assets/17786332/832be653-3def-4afc-b72f-36fcd76ad83d">

Or with more kinds of strategies:
<img width="454" alt="image"
src="https://github.com/Unleash/unleash/assets/17786332/f18e5482-7d2e-4cbd-8177-9de6dfb10307">


Note: I'm happy to isolate the color changes to a separate PR if that's
preferable.
2024-02-16 04:13:40 +00:00
..
AnimateOnMount chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
Announcer chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
ApiError
ApiTokenTable feat: make edge explicit in UI (#6132) 2024-02-05 13:34:22 +01:00
AutocompleteBox fix: separate concerns for ConstraintAccordionList (#5701) 2023-12-20 15:36:23 +01:00
Badge refactor: prefer 'span' to 'div' in the badge element (#5981) 2024-01-22 14:44:26 +04:00
BatchSelectionActionsBar
BreadcrumbNav
CheckmarkBadge
Codebox
ConditionallyRender
ConstraintAccordion feat: show info on what would be deleted (#6235) 2024-02-16 04:13:40 +00:00
CreateButton
DateTimePicker
Dialogue Chore: add zendesk btn to error dialog (#6187) 2024-02-12 10:26:45 +02:00
DividerText
DropdownMenu
EnterpriseBadge
EnvironmentIcon
ExperimentalFeedback
FavoriteIconButton
FeatureArchiveDialog chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
FeatureStaleDialog
FeatureStatusChip
Feedback
FilterDateItem chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
FormSwitch
FormTemplate
GeneralSelect
Gradient
GridCol
GridRow
GuidanceIndicator
HelpIcon
Highlighter chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
HtmlTooltip
Input
InputCaption
InputListField
InstanceStatus
ItemList
Loader
LoginRedirect
MainHeader
Markdown fix: properly handle markdown links (#5768) 2024-01-05 08:18:34 +00:00
Mermaid
MultipleRoleSelect
NewConstraintAccordion fix: don't use kebab-case for properties (#5979) 2024-01-22 12:26:25 +00:00
NoItems
NotFound
Notifications
OperatorUpgradeAlert
PageContent chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
PageHeader
PasswordField
PercentageCircle Feat/disabled strategies (#5930) 2024-01-17 13:20:39 +01:00
PermissionButton
PermissionGuard chore: add support for project and environment in PermissionGuard (#6008) 2024-01-24 08:20:38 +00:00
PermissionHOC Biome1.5.1 (#5867) 2024-01-12 09:25:59 +00:00
PermissionIconButton
PermissionSwitch task: Use fine-grained project permissions in frontend (#5974) 2024-01-22 15:34:10 +01:00
PremiumFeature Feat: chart 'no-data' placeholder (#6172) 2024-02-12 16:10:46 +01:00
PrettifyLargeNumber
Proclamation
ProtectedRoute
ResponsiveButton
RoleBadge
RoleDescription
RoleSelect feat: list all root roles in SSO config (#5887) 2024-01-15 13:13:29 +00:00
ScrollTop
Search chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
SegmentItem feat: show info on what would be deleted (#6235) 2024-02-16 04:13:40 +00:00
SidebarModal
SkipNavLink
StaleDataNotification
Sticky
StrategyItemContainer
StrategySeparator
StrategyVariantsUpgradeAlert
StringTruncator
Table fix: long descriptions should have tooltips (#6202) 2024-02-15 14:17:55 +01:00
TabNav chore: adapt integrations layout for incoming webhooks (#5828) 2024-01-10 10:33:51 +00:00
ThemeMode
ToastRenderer
TooltipLink feat: disable sorting on selected columns (#5652) 2023-12-15 12:47:00 +01:00
TooltipResolver
UpdateButton
UserAvatar Biome1.5.1 (#5867) 2024-01-12 09:25:59 +00:00
VariantInfoAlert
VerticalTabs
common.module.scss
flags.ts
index.jsx
select.tsx Feat/new strategy configuration general tab (#5628) 2023-12-13 12:34:43 +01:00
util.test.ts
util.ts feat: support localization in date filter (#5572) 2023-12-08 13:20:39 +02:00