1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-22 01:16:07 +02: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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 Feat/new paginated table (#5371) 2023-11-24 17:50:58 +01:00
BreadcrumbNav feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
CheckmarkBadge feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Codebox
ConditionallyRender feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
ConstraintAccordion feat: show info on what would be deleted (#6235) 2024-02-16 04:13:40 +00:00
CreateButton feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
DateTimePicker feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Dialogue Chore: add zendesk btn to error dialog (#6187) 2024-02-12 10:26:45 +02:00
DividerText feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
DropdownMenu feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
EnterpriseBadge
EnvironmentIcon
ExperimentalFeedback refactor: remove feature flag for Dora (#5367) 2023-11-21 08:18:00 +01:00
FavoriteIconButton feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
FeatureArchiveDialog chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
FeatureStaleDialog
FeatureStatusChip
Feedback feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
FilterDateItem chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
FormSwitch feat: banner UI/UX adjustments (#5151) 2023-10-25 17:14:18 +01:00
FormTemplate chore(deps): update dependency @biomejs/biome to v1.4.0 (#5288) 2023-11-28 09:32:00 +00:00
GeneralSelect feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Gradient
GridCol feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
GridRow feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
GuidanceIndicator
HelpIcon feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Highlighter chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
HtmlTooltip feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Input feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
InputCaption feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
InputListField feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
InstanceStatus feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
ItemList feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Loader feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
LoginRedirect
MainHeader
Markdown fix: properly handle markdown links (#5768) 2024-01-05 08:18:34 +00:00
Mermaid feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
MultipleRoleSelect feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
NewConstraintAccordion fix: don't use kebab-case for properties (#5979) 2024-01-22 12:26:25 +00:00
NoItems
NotFound feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Notifications fix: small adjustments on the new header icons (#5043) 2023-10-16 12:25:27 +01:00
OperatorUpgradeAlert feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
PageContent chore: add no unused imports biome rule (#5855) 2024-01-11 12:44:05 +00:00
PageHeader feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
PasswordField feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
PercentageCircle Feat/disabled strategies (#5930) 2024-01-17 13:20:39 +01:00
PermissionButton feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Proclamation feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
ProtectedRoute chore: update react-router to v6 (#946) 2022-05-05 13:42:18 +02:00
ResponsiveButton feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
RoleBadge feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
RoleDescription refactor: favor permission name over id (#5409) 2023-11-27 11:12:09 +00:00
RoleSelect feat: list all root roles in SSO config (#5887) 2024-01-15 13:13:29 +00:00
ScrollTop feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
SkipNavLink
StaleDataNotification feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
Sticky feat: add new sticky component to handle stacked stickies (#5088) 2023-10-19 15:50:37 +01:00
StrategyItemContainer refactor: custom render should provide container (#4938) 2023-10-06 09:19:49 +02:00
StrategySeparator refactor: light theme colors (#3252) 2023-03-06 12:58:36 +02:00
StrategyVariantsUpgradeAlert feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
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 chore(deps): update dependency @biomejs/biome to v1.4.0 (#5288) 2023-11-28 09:32:00 +00:00
TooltipLink feat: disable sorting on selected columns (#5652) 2023-12-15 12:47:00 +01:00
TooltipResolver feat: strategy variants on strategy overview (#4776) 2023-09-21 14:28:45 +02:00
UpdateButton feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
UserAvatar Biome1.5.1 (#5867) 2024-01-12 09:25:59 +00:00
VariantInfoAlert feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
VerticalTabs feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
common.module.scss
flags.ts
index.jsx feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
select.tsx Feat/new strategy configuration general tab (#5628) 2023-12-13 12:34:43 +01:00
util.test.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
util.ts feat: support localization in date filter (#5572) 2023-12-08 13:20:39 +02:00