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
Nuno Góis 93bd9d869a
Variants per environment (frontend) (#2453)
![image](https://user-images.githubusercontent.com/14320932/202286759-b9c30228-59cc-4c58-a7b0-3c6c3d0ecba6.png)
## About the changes

https://linear.app/unleash/issue/2-425/variants-crud-new-environment-cards-with-tables-inside-add-edit-and

Basically created parallel components for the **variants per
environments** feature, so both flows should work correctly depending on
the feature flag state. Some of the duplication means that cleanup
should be straightforward - Once we're happy with this feature it should
be enough to delete
`frontend/src/component/feature/FeatureView/FeatureVariants/FeatureVariantsList`
and do some little extra cleanup.

I noticed we had some legacy-looking code in variants, so this involved
*some* rewriting of the current variants logic. Hopefully this new code
looks nicer, more maintainable, and more importantly **doesn't break
anything**.

Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#2254

### Important files
Everything inside the
`frontend/src/component/feature/FeatureView/FeatureVariants/FeatureEnvironmentVariants`
folder.
2022-11-18 11:43:24 +00:00
..
AdminAlert
AnimateOnMount Feat/use collaborate data (#2067) 2022-09-16 15:23:08 +02:00
Announcer
ApiError
AutocompleteBox
Badge feat: new profile page and PATs front-end (#2109) 2022-10-03 10:49:52 +01:00
BreadcrumbNav feat: new profile page and PATs front-end (#2109) 2022-10-03 10:49:52 +01:00
CheckmarkBadge
Codebox
ConditionallyRender
ConstraintAccordion fix: Update UI labeling: custom constraint -> (strategy) constraint (#2101) 2022-09-29 11:43:04 +02:00
CreateButton
DateTimePicker Variants per environment (frontend) (#2453) 2022-11-18 11:43:24 +00:00
Dialogue
DividerText
DropdownMenu
EnvironmentIcon
EnvironmentStrategiesDialog
FeatureArchiveDialog
FeatureStaleDialog
FeatureStatusChip feat: review your draft sidebar (#2305) 2022-11-02 16:05:27 +01:00
FormTemplate
GeneralSelect Change requests - add multiple reviewers (#2448) 2022-11-17 11:08:29 +02:00
Gradient
GridCol
GridRow
GuidanceIndicator
HelpIcon Feat clone environment modal (#2245) 2022-10-28 09:15:46 +01:00
Highlighter
HtmlTooltip Update environments (#2339) 2022-11-11 10:24:56 +00:00
Input Variants per environment (frontend) (#2453) 2022-11-18 11:43:24 +00:00
InputCaption
InputListField
InstanceStatus
ItemList feat: add SSO mappings to groups (#2175) 2022-10-13 11:34:47 +01:00
Loader
LoginRedirect
MainHeader
NoItems
NotFound
OperatorUpgradeAlert
PageContent feat: integrate with API for suggest changes (#2286) 2022-10-31 12:46:31 +01:00
PageHeader
PaginateUI
PasswordField
PercentageCircle
PermissionButton feat: add permission buttons for change requests (#2392) 2022-11-11 11:04:59 +01:00
PermissionHOC
PermissionIconButton
PermissionSwitch
PrettifyLargeNumber make prettify large number tests independent of locale (#2284) 2022-10-28 14:47:44 +02:00
Proclamation
ProjectSelect
ProtectedRoute
ResponsiveButton
ScrollTop
Search
SearchField
SegmentItem
SidebarModal fix sidebar width (#2359) 2022-11-09 16:50:48 +01:00
SkipNav
StaleDataNotification Feat/use collaborate data (#2067) 2022-09-16 15:23:08 +02:00
StrategyItemContainer feat: update strategy segments with edit / create strategy (#2420) 2022-11-16 15:35:39 +01:00
StrategySeparator
StringTruncator
Table fix: tags highlight case sensitivity (#2462) 2022-11-17 13:08:47 +00:00
TabNav Improve tabs UI on smaller devices (#2014) 2022-09-06 15:32:42 +03:00
TagSelect
ThemeMode
ToastRenderer
TooltipResolver
UpdateButton
UserAvatar
VerticalTabs feat: new profile page and PATs front-end (#2109) 2022-10-03 10:49:52 +01:00
common.module.scss
flags.ts
index.jsx fix: url encode application name in links (#2121) 2022-09-30 15:53:02 +02:00
select.tsx
util.ts