1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00
unleash.unleash/frontend/src/component/common
Youssef Khedher eeda7ab5e4 feat: add segments (#780)
* feat: create segmentation structure and list

* feat: remove unused deps and change route

* feat: change header style and add renderNoSegments

* fix: style table header

* feat: create useSegments hook

* feat: add segmentApi hook

* feat: create segment

* fix: errors

* feat: add contextfields list

* fix: remove user from create segment api

* feat: add form structure

* feat: add SegmentFormStepOne

* fix: tests and routes

* feat: add constraint view

* feat: UI to match the sketch

* feat: add constraint on context select

* fix: duplication

* fix adding constraints

Co-authored-by: olav <mail@olav.io>

* fix: input date not showing up in constraint view

Co-authored-by: olav <mail@olav.io>

* fix: minor bugs

Co-authored-by: olav <mail@olav.io>

* fix: create context modal in segment page

Co-authored-by: olav <mail@olav.io>

* fix: validate constraint before create segment

Co-authored-by: olav <mail@olav.io>

* feat: create useSegment hook

Co-authored-by: olav <mail@olav.io>

* feat: create edit component

Co-authored-by: olav <mail@olav.io>

* refactor: move constraint validation endpoint

* refactor: add missing route snapshot

* refactor: fix segment constraints unsaved/editing state

* refactor: remove create segment from mobile header menu

* refactor: update segments form description

* refactor: extract SegmentFormStepList component

* refactor: add an optional FormTemplate docs link label

* refactor: fix update segment payload

* feat: finish edit component

Co-authored-by: olav <mail@olav.io>

* refactor: move step list above segment form

* fix: update PR based on feedback

Co-authored-by: olav <mail@olav.io>

* refactor: fix constraint validation endpoint path

* refactor: improve constraint state field name

* refactor: extract AutocompleteBox component

* feat: add strategy segment selection

* refactor: add strategy segment previews

* refactor: fix double section separator line

* feat: disable deleting a usable segment

* refactor: warn about segments without constraints

* refactor: update text in delete segment dialogue

* refactur: improve arg names

* refactor: improve index var name

* refactor: clarify steps list logic

* refactor: use a required prop for the segment name

* refactor: use ConditionallyRender for segment deletion

* refactor: fix segments refetch

* refactor: improve CreateUnleashContext component names

* refactor: adjust segment form styles

* refactor: adjust text

* refactor: fix info icon tooltip hover target

* refactor: add missing aria attrs to preview button

* refactor: add strat name to delete segment modal

* refactor: fix segment chip text alighment

* refactor: use bulk endpoint for strategy segments

* refactor: fix imports after merge

Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
Co-authored-by: olav <mail@olav.io>
2022-03-29 09:30:57 +02:00
..
AnimateOnMount refactor: fix misc TS errors (#729) 2022-02-25 10:55:39 +01:00
ApiError refactor: fix misc TS errors (#729) 2022-02-25 10:55:39 +01:00
AutocompleteBox feat: add segments (#780) 2022-03-29 09:30:57 +02:00
BreadcrumbNav chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
CheckmarkBadge feat/rbac roles (#562) 2022-01-14 15:50:02 +01:00
Codebox feat: add segments (#780) 2022-03-29 09:30:57 +02:00
ConditionallyRender refactor: fix misc TS errors (#729) 2022-02-25 10:55:39 +01:00
Constraint chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
ConstraintAccordion feat: add segments (#780) 2022-03-29 09:30:57 +02:00
CreateButton style: fix styles in CreateButton 2022-02-24 10:31:01 +01:00
Dialogue feat: add segments (#780) 2022-03-29 09:30:57 +02:00
DisabledIndicator Fix/project view desc (#515) 2021-11-24 14:36:21 +01:00
DividerText
DropdownMenu
EnvironmentIcon Feat/new toggle overview (#497) 2021-11-12 11:47:19 +01:00
EnvironmentStrategiesDialog chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
Feedback chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
FormTemplate feat: add segments (#780) 2022-03-29 09:30:57 +02:00
GeneralSelect chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
Gradient refactor: fix misc TS errors (#729) 2022-02-25 10:55:39 +01:00
HeaderTitle Feat/environment crud (#335) 2021-09-14 14:20:23 +02:00
Input chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
ListPlaceholder refactor: expect existing TS errors (#767) 2022-03-03 10:01:04 +01:00
Loader refactor: use camel case for files and dirs (#817) 2022-03-25 12:34:20 +01:00
NoItems chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
NotFound refactor: use camel case for files and dirs (#817) 2022-03-25 12:34:20 +01:00
OperatorUpgradeAlert feat: add operators splash page (#802) 2022-03-22 08:23:51 +01:00
PageContent feat/rbac roles (#562) 2022-01-14 15:50:02 +01:00
PaginateUI refactor: fix misc TS errors (#729) 2022-02-25 10:55:39 +01:00
PasswordField refactor: fix misc TS errors (#729) 2022-02-25 10:55:39 +01:00
PercentageCircle fix/strategy tab (#519) 2021-11-26 13:36:04 +01:00
PermissionButton feat: add new feature strategy create/edit pages (#739) 2022-03-09 14:59:24 +01:00
PermissionIconButton chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
PermissionSwitch chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
Proclamation chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
ProjectSelect chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
ProtectedRoute fix: update PR based on feedback 2022-02-21 16:24:07 +01:00
ResponsiveButton refactor: remove unused tooltip prop (#769) 2022-03-09 10:13:50 +01:00
RolloutIcon feat: add strategies icons (#565) 2022-01-04 11:31:11 +01:00
SearchField fix: update PR based on feedback 2022-03-01 09:03:25 +01:00
SidebarModal feat: add segments (#780) 2022-03-29 09:30:57 +02:00
StatusChip feat: add new feature metrics page (#716) 2022-02-21 13:47:54 +01:00
StrategySeparator feat: add new feature strategy create/edit pages (#739) 2022-03-09 14:59:24 +01:00
StringTruncator Feat/change form order (#784) 2022-03-14 13:14:26 +01:00
TabNav Merge branch 'main' into refactor/applications 2022-02-08 13:44:42 +01:00
TagSelect chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
ToastRenderer chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
UpdateButton refactor: update Create and Update buttons types 2022-02-24 10:05:51 +01:00
common.module.scss refactor: format files (#719) 2022-02-18 09:51:10 +01:00
flags.js feat: segments (#776) 2022-03-16 13:19:27 +01:00
index.js refactor: remove unused code (#721) 2022-02-18 08:26:26 +01:00
InputListField.jsx refactor: use camel case for files and dirs (#817) 2022-03-25 12:34:20 +01:00
select.tsx chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
util.js refactor: port date utils to TS (#720) 2022-02-25 10:40:55 +01:00