1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02: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 Feat/dark mode exp (#1137) 2022-08-23 14:20:02 +02:00
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 Feat/dark mode exp (#1137) 2022-08-23 14:20:02 +02:00
Codebox Feat/dark mode exp (#1137) 2022-08-23 14:20:02 +02:00
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 Feat/dark mode exp (#1137) 2022-08-23 14:20:02 +02:00
DividerText
DropdownMenu
EnvironmentIcon fix: minor ui improvements (#1163) 2022-07-28 12:05:48 +02:00
EnvironmentStrategiesDialog
FeatureArchiveDialog
FeatureStaleDialog Fix: UI improvements (#1114) 2022-06-28 12:58:10 +02:00
FeatureStatusChip feat: review your draft sidebar (#2305) 2022-11-02 16:05:27 +01:00
FormTemplate Feat/dark mode exp (#1137) 2022-08-23 14:20:02 +02:00
GeneralSelect Change requests - add multiple reviewers (#2448) 2022-11-17 11:08:29 +02:00
Gradient
GridCol feat: add billing page to admin (#993) 2022-05-25 23:26:05 +02:00
GridRow feat: upgrade users table (#1040) 2022-05-31 07:59:09 +01:00
GuidanceIndicator feat/playground-second-iteration (#1139) 2022-07-22 13:15:28 +02:00
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 fix: validate feature strategy parameters (#1192) 2022-08-04 13:34:30 +02:00
InputListField
InstanceStatus chore: update emotion (#1998) 2022-08-30 10:30:32 +02:00
ItemList feat: add SSO mappings to groups (#2175) 2022-10-13 11:34:47 +01:00
Loader Feat/dark mode exp (#1137) 2022-08-23 14:20:02 +02:00
LoginRedirect
MainHeader Feat/groups refinements (#1197) 2022-08-05 13:10:53 +00:00
NoItems
NotFound fix: group project access inconsistencies (#1178) 2022-08-04 12:57:25 +01:00
OperatorUpgradeAlert
PageContent feat: integrate with API for suggest changes (#2286) 2022-10-31 12:46:31 +01:00
PageHeader feat: add user groups (#1130) 2022-07-22 07:31:08 +00:00
PaginateUI
PasswordField
PercentageCircle refactor: fix small issues around custom strategies (#1181) 2022-08-02 10:10:01 +02:00
PermissionButton feat: add permission buttons for change requests (#2392) 2022-11-11 11:04:59 +01:00
PermissionHOC
PermissionIconButton refactor: improve button label markup (#1091) 2022-06-17 11:27:54 +02:00
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 Feat/dark mode exp (#1137) 2022-08-23 14:20:02 +02:00
SearchField feat: upgrade search to use the new search component (#1073) 2022-06-10 15:23:12 +02:00
SegmentItem Refine Playground UI (#1217) 2022-08-12 10:13:07 +00:00
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 Segment preview (#1194) 2022-08-04 14:44:18 +02:00
StringTruncator fix: truncator (#1148) 2022-07-26 08:58:57 +02:00
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 Feat/dark mode exp (#1137) 2022-08-23 14:20:02 +02:00
ToastRenderer Feat/dark mode exp (#1137) 2022-08-23 14:20:02 +02:00
TooltipResolver
UpdateButton
UserAvatar fix: remove group owner concept (#1210) 2022-08-11 15:34:17 +01:00
VerticalTabs feat: new profile page and PATs front-end (#2109) 2022-10-03 10:49:52 +01:00
common.module.scss
flags.ts feat: add user groups (#1130) 2022-07-22 07:31:08 +00:00
index.jsx fix: url encode application name in links (#2121) 2022-09-30 15:53:02 +02:00
select.tsx
util.ts feat: add CORS instance settings (#1239) 2022-08-23 14:04:09 +02:00