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

2068 Commits

Author SHA1 Message Date
Nuno Góis
004ded8f74 feat: add last seen col to admin users list (#949)
* feat: add last seen col to admin users list

* fix: header hover effect, duplicate title from TimeAgo

* fix: use YMD format, never logged

* fix: small tooltip change

* refactor: adapt to review suggestions
2022-05-05 14:53:28 +01:00
Tymoteusz Czech
1772997d28 Feature list table (#908)
* experiment with generic table

* feat: example implementation of sortable table interfaces

* add enhanced table header

Co-authored-by: Nuno Góis <github@nunogois.com>

* table cleanup

Co-authored-by: Nuno Góis
Co-authored-by: Fredrik Strand Oseberg

* useSort hook interface surface

Co-authored-by: Nuno Góis <github@nunogois.com>

* sort handler initial implementation

Co-authored-by: Tymoteusz Czech <Tymek@users.noreply.github.com>

* new table unified components

* feature flags table components

Co-authored-by: Nuno Góis <github@nunogois.com>

* feat: new table sort hook

* feat: table sort

* useSearch hook implementation

* update new sort hook tests

* sortable headers hook

* feat: add sort to other table features

* move experimental table hooks to a directory

* update new table header styles

* fix: header, tableActions

* add some details like pagination and highlighter so we keep them in mind

* feature table cells

* update new table sort logic

* new pagination

* fix formatting and remove unused component

* fix: adapt useSearch default search to text instead of regex (PR #924)

* fix: update table title based on visible rows

* fix: remove test route

* refactor: move table experiment files

* features table experimentation

* feat: enhanced feature flags table

* fix: features default sort

* feat: enhanced table loading

* fix: table theme after mui5 update

* features list placeholder

* add react-table

* update snapshots after theme change

* remove unused files

* fix: improve features table after review

* refactor: rename feature type cell variables

Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
Co-authored-by: Nuno Góis <github@nunogois.com>
Co-authored-by: Tymoteusz Czech <Tymek@users.noreply.github.com>
2022-05-05 15:34:46 +02:00
olav
d8143c6ff4 chore: update react-router to v6 (#946)
* refactor: fix child selector warnings

* refactor: update react-router-dom

* refactor: use BrowserRouter as in react-router docs

* refactor: replace Redirect with Navigate

* refactor: replace Switch with Routes

* refactor: replace useHistory with useNavigate

* refactor: replace useParams types with useRequiredPathParam

* refactor: replace NavLink activeStyle with callback

* refactor: fix matchPath arg order

* refactor: Remove unused link state

* refactor: delete broken snapshot test

* refactor: render 404 page without redirect

* refactor: normalize path parameter names

* refactor: fix Route component usage
2022-05-05 13:42:18 +02:00
olav
4c42639a62 fix: remove trailing slash from OpenAPI route (#948) 2022-05-05 11:45:17 +02:00
olav
23c977e0ea refactor: fix empty project member count (#947) 2022-05-04 15:39:50 +02:00
olav
35262e404b refactor: clean up strategy parameter types (#944)
* refactor: fix splash page button background color

* refactor: regenerate OpenAPI client

* refactor: clean up strategy parameter types

* refactor: remove index signature from IConstraint

* refactor: fix never-seen status in features list
2022-05-04 15:16:34 +02:00
olav
7b60ef2aa6 refactor: misc type improvements (#945)
* refactor: improve ChangePassword types

* refactor: improve usePagination types

* refactor: improve UsersList types
2022-05-04 08:14:49 +02:00
Renovate Bot
73d2b73955 chore(deps): update dependency @types/jest to v27.5.0 2022-05-03 17:55:28 +00:00
Nuno Góis
9ffc421252 feat: show archived toggles on a project level (#942)
* feat: show archived toggles on a project level

* Update src/component/feature/FeatureToggleList/FeatureToggleListActions/FeatureToggleListActions.tsx

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>

* refactor: adapt code to PR comments, clarity

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2022-05-03 15:27:43 +01:00
Fredrik Strand Oseberg
b4eed811a1 fix: update favicon path to CDN (#896)
* fix: update favicon path to CDN

* docs:set favicon path to use cdnPrefix

* fix: update favicon path to use prefix
2022-05-02 23:37:52 +02:00
Renovate Bot
b3830538f9 chore(deps): update material-ui monorepo 2022-05-02 17:08:58 +00:00
olav
24c11332b5 chore: update MUI to v5 (#923)
* refactor: update mui packages

* refactor: run mui codemods

* refactor: format files after codemods

* refactor: fix broken types

* refactor: clean up theme

* refactor: fix broken tests

* refactor: replace @mui/styles with tss-react

* refactor: move breakpoints into classes for tss

* refactor: fix crash on missing feature description

* refactor: remove void classNames

* refactor: adjust styles to new defaults

* refactor: remove broken rollout slider e2e test

* refactor: fix duplicate e2e testid

* refactor: update makeStyles after rebase

* refactor: add missing snapshot after rebase

* refactor: fix TableCellSortable focus styles

* refactor: use 1.4 as the default line-height

* refactor: hide webkit search field icons

* refactor: fix select box label

* refactor: make AutocompleteBox smaller

* refactor: make heading smaller

* refactor: fix toast close icon color

* refactor: update snapshots

* refactor: add missing test event awaits

* refactor: fix default button line-height
2022-05-02 15:52:41 +02:00
Tymoteusz Czech
23a874d051 Refactor: convert jsx files to typescript (#881)
* refactor: convert remaining js files to typescript

* refactor: conditionally render remove index

* refactor: dialog component to tsx

* refactor: migrate some files from jsx to tsx

* refactor: convert dropdown element to tsx

* refactor: feature toggle list to tsx

* refactor: update context name in use overrides

* refactor: variant overrides to tsx

refactor: remove unused strategy constraint file

* fix: tsx imports

* fix: update refectored components after rebase

* refactor: rename report list files to tsx

* fix: project health list types

* refactor: addon form - add types

* refactor: copy feature component types

* fix: projects toggle style after tsx refactor

* refactor: update ts types from openapi

* fix: ts refactor changes after review

* fix: header title prop

* fix: update after PR comments

* add test to useoverrides hook

* fix conditionally render time ago

* fix: toggle list empty tooltip

* fix: remove unused variable

* remove unused variable

* fix: remove faulty snapshot
2022-05-02 12:52:33 +02:00
Renovate Bot
00341c6d67 chore(deps): update dependency swr to v1.3.0 2022-04-30 14:06:37 +00:00
Renovate Bot
0a1dab9464 chore(deps): update dependency sass to v1.51.0 2022-04-30 11:17:31 +00:00
Renovate Bot
2940cb105b chore(deps): update dependency @testing-library/user-event to v14.1.1 2022-04-30 06:00:20 +00:00
Renovate Bot
5f03a2d1ee chore(deps): update dependency @testing-library/dom to v8.13.0 2022-04-30 03:12:47 +00:00
Renovate Bot
f9fb1e5981 chore(deps): update dependency @openapitools/openapi-generator-cli to v2.5.1 2022-04-30 00:16:28 +00:00
Renovate Bot
fbff586c04 chore(deps): update dependency typescript to v4.6.4 2022-04-29 21:35:57 +00:00
Renovate Bot
d11b30f7b3 chore(deps): update dependency semver to v7.3.7 2022-04-29 18:56:52 +00:00
Renovate Bot
a5446b1a3e chore(deps): update dependency @testing-library/jest-dom to v5.16.4 2022-04-29 16:25:52 +00:00
sighphyre
80367e206e 4.10.0 2022-04-29 16:00:56 +02:00
olav
fc950a3c8b 4.10.0-beta.9 2022-04-29 15:15:33 +02:00
olav
fd44844f15 fix: truncate long parameter values (#928)
* refactor: improve parameter variable names

* fix: truncate long parameter values

* refactor: remove extra spacing

Co-authored-by: sighphyre <liquidwicked64@gmail.com>
2022-04-29 15:06:36 +02:00
olav
774157b8d7 refactor: fix segment permission checks (#930)
* refactor: use DELETE_SEGMENT permission in segments list

* refactor: clean up segment form mode prop

* refactor: format file

* refactor: fix ConstraintAccordion permission checks
2022-04-29 14:53:28 +02:00
sighphyre
34c4747cd4 Merge pull request #929 from Unleash/fix/sortable-cell-style
fix: users table sort header styles
2022-04-29 14:06:33 +02:00
sighphyre
775e45d229 Merge branch 'main' into fix/sortable-cell-style 2022-04-29 13:57:20 +02:00
olav
96ccc24b8b refactor: fix override field selection (#925) 2022-04-29 13:51:25 +02:00
Tymoteusz Czech
de4a434d4e Merge branch 'main' into fix/sortable-cell-style 2022-04-29 13:32:09 +02:00
Tymoteusz Czech
81b64e61e7 fix: users table sort header styles 2022-04-29 13:30:50 +02:00
olav
efe52cb1aa fix: wrap long legal values/descriptions (#927) 2022-04-29 13:28:51 +02:00
Nuno Góis
860656a95e fix: user search by text instead of regex (#924)
* fix: user search by text instead of regex

* refactor: better clarity

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2022-04-29 13:14:17 +02:00
Renovate Bot
a255ccb458 chore(deps): update dependency react-scripts to v5.0.1 2022-04-29 10:34:04 +00:00
Renovate Bot
e3eb89fdf4 chore(deps): update dependency react-router-dom to v5.3.1 2022-04-29 04:14:20 +00:00
Renovate Bot
7073ab45b9 chore(deps): update dependency http-proxy-middleware to v2.0.6 2022-04-29 01:39:41 +00:00
Renovate Bot
ea7cda5200 chore(deps): update dependency @types/react-test-renderer to v17.0.2 2022-04-28 23:06:30 +00:00
Renovate Bot
45077f4b6a chore(deps): update dependency @types/react-dom to v17.0.16 2022-04-28 19:15:04 +00:00
Renovate Bot
b9bf564f51 chore(deps): update dependency @types/lodash.clonedeep to v4.5.7 2022-04-28 17:01:51 +00:00
Renovate Bot
36deb8bf32 chore(deps): update dependency prettier to v2.6.2 2022-04-28 14:56:50 +00:00
sighphyre
610fb0266c 4.10.0-beta.8 2022-04-28 15:01:55 +02:00
olav
531d969fa6 refactor: misc login page accessibility improvements (#914)
* refactor: add missing input field labels

* refactor: add missing className prop

* refactor: add missing image labels

* refactor: fix forgot password title size

* refactor fix StandaloneLayout page landmarks

* refactor: improve project page title

* refactor: add autoFocus to login fields
2022-04-27 09:29:43 +02:00
olav
f7266cde10 fix: announce navigation to screen readers (#911)
* refactor: unify page titles

* refactor: update page title on navigation

* refactor: add AnnouncerContext to test contexts

* fix: announce navigation to screen readers
2022-04-27 09:14:44 +02:00
olav
06232a5522 fix: support query params in login redirects (#910) 2022-04-26 12:14:32 +02:00
olav
af61090e73 4.10.0-beta.7 2022-04-26 11:43:21 +02:00
olav
5785557af8 fix: add missing refetch after feature strategy create/edit (#909) 2022-04-26 11:21:35 +02:00
olav
8f1900f32b feat: generate an OpenAPI client (2) (#875)
* feat: add a script that generates an OpenAPI client

* feat: generate an OpenAPI client

* feat: use the generated OpenAPI client

* refactor: add an OpenAPI section to the readme

* refactor: fix missing interface prefixes

* refactor: regenerate OpenAPI client
2022-04-26 10:53:46 +02:00
olav
f6e42f99f9 feat: use READ_API_TOKEN permission (#906)
* refactor: extract AdminAlert component

* refactor: split ApiTokenPage from ApiTokenList

* refactor: display AdminMenu based on path instead of permissions

* feat: use the new READ_API_TOKEN permission
2022-04-26 10:24:26 +02:00
olav
49a63173f8 fix: avoid constraint accordion close on focus (#907)
* fix: avoid constraint accordion close on focus

* refactor: fix mutate cache key mismatch
2022-04-26 09:54:16 +02:00
olav
1fd6f2a60a refactor: improve the text for docs links (#904)
* refactor: improve the text for docs links

* Update src/component/admin/apiToken/CreateApiToken/CreateApiToken.tsx

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>

* Update src/component/admin/projectRoles/CreateProjectRole/CreateProjectRole.tsx

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>

* Update src/component/admin/projectRoles/EditProjectRole/EditProjectRole.tsx

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>

* Update src/component/admin/users/CreateUser/CreateUser.tsx

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>

* Update src/component/admin/users/EditUser/EditUser.tsx

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>

* Update src/component/context/CreateUnleashContext/CreateUnleashContext.tsx

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>

* Update src/component/context/EditContext/EditContext.tsx

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>

* Update src/component/strategies/CreateStrategy/CreateStrategy.tsx

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>

* Update src/component/strategies/EditStrategy/EditStrategy.tsx

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>

* refactor: improve docs link texts

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2022-04-25 09:36:23 +02:00
olav
984e75a03b refactor: make help tooltip icons focusable (#905)
* refactor: restore rollout slider focus state

* refactor: fix disconnected form field labels

* refactor: make help tooltip icons focusable
2022-04-25 09:24:09 +02:00