1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
Commit Graph

1007 Commits

Author SHA1 Message Date
olav
f59ba567fb refactor: add segment limit warnings (#851)
* refactor: fix environment name text alignment

* refactor: use rounded corners for AutocompleteBox

* refactor: add tooltips to the strategy segment icons

* refactor: add segment limit warnings

* refactor: improve segments warning text
2022-04-07 14:47:24 +02:00
olav
fb8d0e7efc fix: use the first project if there's no default project (#859)
* refactor: extract FeatureToggleListCreate component

* fix: use the first project if there's no default project
2022-04-07 11:08:05 +02:00
olav
f33ca9db4b feat: expand constraint operator descriptions (2) (#858)
* refactor: remove pre-CO constraints list

* refactor: improve constraints dropdown order

* refactor: simplify prop value

* refactor: add missing space around parameter names

* refactor: remove constraint accordion box shadow

* refactor: show operator descriptions in constraints accordion

* refactor: show operator descriptions in constraints dropdown

* refactor: use ConstraintAccordionList in FeatureOverviewExecution

* refactor: add separators between operators in constraints dropdown

* refactor: remove unnecessary comment
2022-04-07 10:31:06 +02:00
olav
21dadb75b9 fix: improve header admin menu link order (#860) 2022-04-06 16:29:49 +02:00
olav
a088866124 refactor: port some things to TS (#843)
* refactor: port useSort to TS

* refactor: port loadingFeatures to TS

* refactor: port admin index to TS

* refactor: port TagTypeList to TS

* refactor: merge route interfaces

* refactor: port common utils to TS

* refactor: fix snapshot date typo

* refactor: port Reporting utils to TS

* refactor: improve PermissionIconButton prop types
2022-04-06 12:22:24 +02:00
olav
73652b66e9 refactor: improve GeneralSelect prop types (#841)
* refactor: improve GeneralSelect prop types

* refactor: intercept ui config requests in auth spec
2022-04-06 12:08:57 +02:00
olav
6efa9fe75c fix: hide splash screens from API users (#852)
* refactor: add missing user isAPI field

* fix: hide splash screens from API users

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2022-04-05 20:34:23 +02:00
olav
43834be065 refactor: use onClose instead of hideSecondaryButton (#842) 2022-04-05 11:47:17 +02:00
olav
311915ba30 feat: show segments in feature overview (#837)
* feat: show segments in feature overview

* refactor: avoid segment updates without the UI flag
2022-04-01 11:11:53 +02:00
olav
f309553a5f refactor: port some things to TS (#833)
* refactor: remove unused securityLogger

* refactor: port commonStyles to TS

* refactor: port testIds to TS

* refactor: move app.css into themes

* refactor: use absolute import paths

* refactor: port LayoutPicker to TS

* refactor: port routes to TS

* refactor: port ScrollTop to TS

* refactor: update unused/missing ScrollTop exceptions

* refactor: remove unused route flags field

* refactor: change constants ext to TS

* refactor: remove unused testData file

* refactor: port styles to TS

* refactor: wait before typing in auth spec
2022-04-01 10:28:15 +02:00
olav
a72f6ec8b5 chore: update react-dnd (#834)
* chore: update react-dnd

* refactor: add missing react-dnd types
2022-03-31 15:05:05 +02:00
Youssef Khedher
8081e20b96 fix: toast in mobile view (#831)
* fix: toast in mobile view

* fix: feature settings mobile view

* fix: feedback in mobile

* fix: add space for ts expect error

* fix: change breakpoint to xs instead of sm
2022-03-31 11:14:13 +01:00
olav
70e4f4608a fix: improve toggle environment toast text (#829) 2022-03-31 11:37:16 +02:00
olav
dbb62631a6 feat: add FeedbackCES component (#826)
* refactor: add screen-reader-only util class

* refactor: move FeedbackNPS component

* feat: add FeedbackCES component

* refactor: improve hidden checkbox styles

* refactor: fix IFeedbackEndpointRequestBody source type

* refactor: remove unnecessary event.persist() calls

* refactor: remove disableEscapeKeyDown from FeedbackCES modal

* refactor: make textarea label customizable

* refactor: store feedback state on the backend

* refactor: add FeedbackCESForm snapshot test

* refactor: use extant IAuthFeedback type

* refactor: fix showNPSFeedback logic for multiple feedback types
2022-03-31 09:23:46 +02:00
Youssef Khedher
d545fbdfcb fix: buttons not showing up on mobile view (#825) 2022-03-29 11:57:06 +01:00
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
Youssef Khedher
f9cdb6ca0c fix: handle projectId validation (#823)
* fix: handle projectId validation

* chore: remove unused function

* fix: update PR based on feedback
2022-03-28 22:45:41 +01:00
Youssef Khedher
85950f104a chore: update paths 🧼 (#820) 2022-03-28 09:49:59 +01:00
Youssef Khedher
4589a19e03 fix: misc UI improvements (#806)
* fix: link color in project features

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

* fix: link in health page

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

* fix: keep sorting state in project toggles list

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

* fix: style link in the toggle list project

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

* refactor: update browser list

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

Co-authored-by: olav <mail@olav.io>
2022-03-25 15:30:52 +01:00
olav
cfc2338e78 refactor: use camel case for files and dirs (#817) 2022-03-25 12:34:20 +01:00
olav
bf3cb86a51 refactor: remove namespaces from teams.svg 2022-03-25 11:10:50 +01:00
Youssef Khedher
4f0ef3d761 fix: mobile view (#801)
* fix: mobile view project roles

* fix: mobile view users
2022-03-24 14:04:42 +01:00
Youssef Khedher
fe23fe8472 refactor: change strategy form buttons (#812) 2022-03-24 11:50:08 +01:00
olav
2ca88b019a refactor: restrict API tokens to enabled environments (#809)
* refactor: add missing Tooltip wrapper elements

* refactor: rewrite useEnvironments

* refactor: disable environments in select box

* refactor: make sure initial environment is enabled
2022-03-23 12:55:00 +01:00
olav
cc0b9f7291 refactor: avoid splash pages in e2e tests (#810) 2022-03-23 12:45:23 +01:00
sighphyre
04a85da1be Merge branch 'main' into fix-rollout-datatype 2022-03-23 11:59:33 +02:00
olav
71cbf2bfae refactor: make refresh work on fogot password page (#808) 2022-03-23 10:44:43 +01:00
sighphyre
a724127970 Merge branch 'main' into fix-rollout-datatype 2022-03-23 11:39:26 +02:00
olav
a16520ddda refactor: fix Tooltip ref warning (#804)
* refactor: fix Tooltip ref warning

* refactor: add missing button labels
2022-03-23 09:12:10 +01:00
sighphyre
31fdea7df0 chore: formatting 2022-03-22 16:18:20 +02:00
sighphyre
d8d510be22 fix: change rollout datatype to int
Gradual rollout has the rollout property specified as a string in
both the client spec tests and our API docs and the Rust SDK expects
that contract to be upheld. This commit changes the datatype of rollout
from an int to a string
2022-03-22 16:00:54 +02:00
olav
2a307523d6 feat: add operators splash page (#802)
* refactor: fix crash on null-valued project description

* refactor: remove unused layout prop

* refactor: use routes for splash components

* feat: add operators splash page

* refactor: fix styling issues

* refactor: add some comments
2022-03-22 08:23:51 +01:00
Fredrik Strand Oseberg
3ccba76d75 fix: breakpoint misalignment (#796) 2022-03-21 15:45:07 +01:00
olav
3850cb42bd refactor: fix crash on empty target date (#798)
* refactor: fix crash on empty target date

* refactor: remove date input clear button
2022-03-17 09:55:57 +01:00
olav
d1e96501ec refactor: test useFeaturesFilter (#795) 2022-03-16 13:51:01 +01:00
Youssef Khedher
bee9fadbc9 feat: segments (#776)
* 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

* fix: ts and style errors

* feat: update PR based on feedback

* feat: add flag

* fix: test and formating

* fix: update PR based on feedback

* fix: add correct permission

* fix: mobile view for segments

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2022-03-16 13:19:27 +01:00
Thomas Heartman
d9d1dbbebd Merge branch 'main' into feat/make-DATE_AFTER-the-default-time-operator 2022-03-16 11:51:01 +01:00
olav
9798cfd888 refactor: fix search crash on missing values (#794)
* refactor: fix search crash on missing values

* Update src/hooks/useFeaturesFilter.ts

* Update src/hooks/useFeaturesFilter.ts

* fix: update regex

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2022-03-16 11:26:08 +01:00
Fredrik Strand Oseberg
268d586b52 fix: add warning to constraint accordion (#792) 2022-03-16 10:27:23 +01:00
Thomas Heartman
89d0da1c64 feat: make DATE_AFTER the default time operator 2022-03-16 10:26:17 +01:00
Fredrik Strand Oseberg
f52ca03b55 fix: show invalid token page when token error is received (#785) 2022-03-15 16:00:13 +01:00
olav
fa72952098 refactor: improve constraint values form (#790)
* refactor: preserve white-space in constraint values

* refactor: deduplicate constraint values
2022-03-15 15:06:19 +01:00
Christopher Kolstad
e4b0cf1c11 fix: make sure we handle hours as 00-23 2022-03-15 14:32:49 +01:00
olav
a202b81344 refactor: improve constraint date formatting (#789)
* refactor: fix add constraint button text

* refactor: improve constraint date formatting

* refactor: the value, it must be
2022-03-15 13:30:45 +01:00
olav
75ca8077e3 refactor: improve strategy card focus styles (#787) 2022-03-15 10:03:05 +01:00
Fredrik Strand Oseberg
228a72d637 Feat/change form order (#784)
* 4.9.0-beta.1

* 4.9.0-beta.2

* fix: mobile guidance WIP

* fix: add autofocus

* feat: update forms

* refactor: mobile guidance

* fix: add relative as common class

* fix: add max height to codebox
2022-03-14 13:14:26 +01:00
olav
bc9ae12683 refactor: fix form submission avoidance on add constraint (#783) 2022-03-14 10:24:39 +01:00
olav
f0aa764d3e refactor: wait for UI config for CO flag (#781) 2022-03-11 16:18:38 +01:00
Fredrik Oseberg
5646d0cd96 fix: update header 2022-03-11 13:49:37 +01:00
Fredrik Strand Oseberg
472acecdad Fix/constraints UI (#779)
* fix: add fixed height to summary

* fix: change wording to negated

* fix: change header margin

* fix: label click length for negated property

* fix: cut values that exceed allow length while leaving others alone

* fix: set edit bg color

* fix: add enter to add values

* fix: expand if constraint changes

* fix: add string truncator to param names

* fix: add validation tests

* fix: string truncator

* fix: accordion margins on expanded

* fix: accordion expansion

* fix: update e2e

* fix: update parseISO

* fix: review comments

* fix: update spec

* fix: add negated visual indicator
2022-03-11 13:46:00 +01:00