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

428 Commits

Author SHA1 Message Date
Youssef Khedher
182d566895 feat/rbac roles (#562)
* feat: create screen

* fix: import accordion summary

* feat: add accordions

* fix: add codebox

* feat: select permissions

* fix: permission checker

* fix: update permission checker

* feat: wire up role list

* fix: change icon color in project roles list

* fix: add color to icon in project roles

* add confirm dialog on role deletion

* feat: add created screen

* fix: cleanup

* fix: update access permissions

* fix: update admin panel

* feat: add edit screen

* fix: use color from palette and show toast when fails

* fix: refactor

* feat: validation

* feat: implement checked all

* fix: experimental toast

* fix: error handling

* fix: toast

* feat: unique name validation

* fix: update toasts

* fix: remove toast

* fix: reset flag

* fix: remove unused vars

* fix: update tests

* feat: add error icon for toast

* fix: replace wrong import for setToastData

* feat: Patch keying on ui to handle uniqueness for permissions across multiple envs

* fix: hasAccess handles *

* fix: update permission switch

* fix: use flag for environments rbac

* fix: do not include check all keys in payload

* fix: filter roles

* fix: account for new permissions in variants list

* fix: use effect on length property

* fix: set polling interval on user

* 4.5.0-beta.0

* fix: set initial permissions correctly to avoid race condition

* fix: handle activeEnvironment when it is null

* fix: remove unused imports

* fix: unused imports

* fix: Include missing project in hasAccess for deleteinng a tag

* fix: Move add/delete tag to use update feature permissions

* fix: use rest parameter

* fix: remove sandbox from scripts

* 4.6.0-beta.1

* fix: remove loading deduping

* fix: disable editing on builtin roles

* fix: check all

* fix: feature overview environment

* fix: refetch user on project create

* fix: update snaphots

* fix: frontend permissions

* fix: delete create confirm

* fix: remove unused permission

* 4.6.0-beta.4

* fix: update permissions

* fix: permissions

* fix: set error to string

* 4.6.0-beta.5

* fix: add permissions for project view

* fix: add permissions to useEffect deps

* fix: update permission for move feature toggle

* fix: add permissions data to useEffect

* fix: move settings

* fix: key on confetti

* fix: refetch project permissions on environment create/delete

* fix: optional coalescing error object

* fix: remove logging error

* fix: reorder disable importance in permissionbutton

* fix: add project roles to menu

* fix: add disabled check to revive

* fix: update snapshots

* fix: change text to select all

* fix: change text to select

* 4.6.0-beta.6

Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
Co-authored-by: sighphyre <liquidwicked64@gmail.com>
2022-01-14 15:50:02 +01:00
Renovate Bot
8b538e4ded chore(deps): update dependency sass to v1.48.0 2022-01-13 07:59:28 +00:00
Renovate Bot
2d4dab3959 chore(deps): update dependency sass to v1.47.0 2022-01-10 20:02:11 +00:00
Renovate Bot
bb093f8ad7 chore(deps): update dependency web-vitals to v2.1.3 2022-01-10 14:41:49 +00:00
Renovate Bot
856e8d3f4b chore(deps): update dependency @types/enzyme to v3.10.11 2022-01-06 13:11:08 +00:00
Renovate Bot
b2698231a5 chore(deps): update dependency sass to v1.46.0 2022-01-06 03:18:35 +00:00
Renovate Bot
6f7ad537df chore(deps): update dependency @types/jest to v27.4.0 2022-01-05 21:54:52 +00:00
Ivar Conradi Østhus
7fdc44cb6e 4.4.1 2022-01-05 20:17:56 +01:00
Renovate Bot
dcfbedd107 chore(deps): update dependency date-fns to v2.28.0 2022-01-05 17:56:38 +00:00
Renovate Bot
7451308235 chore(deps): update dependency @types/node to v14.18.5 2022-01-05 15:30:54 +00:00
Ivar Conradi Østhus
51c4fac88e 4.4.1-beta.0 2022-01-05 12:55:30 +01:00
Renovate Bot
708b2743e7 chore(deps): update react-dnd monorepo 2022-01-04 16:15:32 +00:00
Renovate Bot
4c79d57c41 chore(deps): update dependency @types/react to v17.0.38 2022-01-04 14:43:19 +00:00
Renovate Bot
5120663e79 chore(deps): update dependency sass to v1.45.2 2022-01-04 12:55:34 +00:00
Renovate Bot
894cca73a1 chore(deps): update dependency sass to v1.45.1 2021-12-21 15:56:00 +00:00
Renovate Bot
83d1cb82cd chore(deps): update dependency @types/node to v14.18.2 2021-12-21 02:01:13 +00:00
Renovate Bot
dde140c0d1 chore(deps): update dependency @types/node to v14.18.1 2021-12-17 05:13:23 +00:00
Ivar Conradi Østhus
76c1363aaa 4.4.0 (#555)
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-12-14 09:39:30 +01:00
Renovate Bot
90cb47372c chore(deps): update dependency typescript to v4.5.4 2021-12-14 00:45:21 +00:00
Youssef Khedher
144dca4ba0 Merge branch 'master' into fix/environment-guidance 2021-12-10 11:15:25 +01:00
Renovate Bot
264d9e997a chore(deps): update dependency typescript to v4.5.3 2021-12-10 01:57:37 +00:00
Fredrik Strand Oseberg
bb38df5293 4.3.1 (#551) 2021-12-07 12:34:11 +01:00
Ivar Conradi Østhus
15300c96d2 4.3.0 (#545)
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-12-06 22:13:28 +01:00
Renovate Bot
e335b8f0eb chore(deps): update dependency prettier to v2.5.1 2021-12-06 22:13:28 +01:00
Renovate Bot
6170bfeb61 chore(deps): update dependency @types/node to v14.18.0 2021-12-06 22:13:28 +01:00
Renovate Bot
30930d83f2 chore(deps): update dependency @testing-library/jest-dom to v5.16.0 2021-12-06 22:13:28 +01:00
Fredrik Strand Oseberg
ea672a1064 4.3.0-beta.3 (#538) 2021-12-06 22:13:28 +01:00
Renovate Bot
f8710e61cc chore(deps): update dependency @testing-library/jest-dom to v5.16.1 2021-12-06 14:08:39 +00:00
Ivar Conradi Østhus
cfd22402ba 4.3.0 (#545)
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-12-06 12:37:00 +01:00
Renovate Bot
d5ff7eab1b chore(deps): update dependency prettier to v2.5.1 2021-12-04 18:54:16 +00:00
Renovate Bot
162ccabaf9 chore(deps): update dependency @types/node to v14.18.0 2021-12-04 01:42:08 +00:00
Renovate Bot
aa7068787f chore(deps): update dependency @testing-library/jest-dom to v5.16.0 2021-12-03 23:46:16 +00:00
Fredrik Strand Oseberg
9a9a75d907 4.3.0-beta.3 (#538) 2021-12-03 10:08:34 +01:00
Renovate Bot
4d82c95ce0 chore(deps): update dependency date-fns to v2.27.0 2021-11-30 13:21:45 +00:00
Renovate Bot
7343a27226 chore(deps): update dependency prettier to v2.5.0 2021-11-30 09:57:01 +00:00
Renovate Bot
c18493bd09 chore(deps): pin dependency prettier to v2.4.1 2021-11-30 07:35:38 +00:00
Renovate Bot
ed309d06b9 chore(deps): update dependency sass to v1.44.0 2021-11-30 04:10:54 +00:00
Thomas Heartman
dd1ab1ca72 Autofocus dialog form fields, allow form submissions via pressing enter inside the form (#524)
* chore: add prettier as a dev dependency

The project has a .prettierrc, so seems to depend on that for its
formatting, but there was no prettier installed with the node modules.

* chore: add autofocus to all clearly defined first inputs on dialogs.

* fix: wrap the disable env input in a form and give it autofocus.

* fix: submit form when pressing enter

* fix: only autofocus the submit button if there is no other content.

When multiple (enabled) elements have the autofocus attribute, the
browser picks the last element in the tree. This means that if there
is a form with a text input with autofocus and a submit button with
autofocus, the button will win, causing the user to have to tab back up.

Only doing this if there are no children will cause some changes,
however:

Dialogs with textual children will no longer focus the accept-button
when appearing.

However, dialogs such as the create new api token dialog will give the
focus to the first input field instead of to the create button.

* fix: add formId prop to dialog element; adapt behavior

If the component receives a form id, it will treat the primary button
as the submit button for that form. To stop a full page reload, we
call the `preventDefault` on the submit event before calling the handler.

* chore: remove redundant spacing in component.

* fix: hook environment disable form up with the new form id system.

* chore: Update existing modal forms to pass in formId

* fix: Type the dialog event wrapper

* fix: change 'allows' => 'allow' because the noun is pluralized.

* fix: add autofocus to js add-tag-dialog-component.

I've got a feeling this component isn't in use anymore, though, as the
exact same text appears in a TS-version of this component.

* fix: add autofocus to add user form.

This seems to only be used as the main piece of a modal, so adding
autofocus seems pretty safe here, but I could be wrong.

* fix: Update snapshot test after changing wording.

* fix: add autofocus to update user form

* fix: add autofocus to the create toggle form.

This is a little besides the task's actual point. However! This form
is only ever used on the page where it's the only bit of content. I'd
argue that when the user navigates to this form, it's because they
want to create a feature. Thus, adding autofocus to the first field
makes a lot of sense to me.

* refactor: set button type to 'undefined' when it isn't 'submit'

This allows Material to use their default type based on whatever
heuristics they use. It's most likely going to be 'button' for the
foreseeable future, but in the event that they change it, passing
undefined instead should future-proof this a bit.

* fix: set type to button when formId is not present

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-11-29 15:18:12 +01:00
Fredrik Strand Oseberg
0d13681fd6 4.3.0-beta.2 (#531) 2021-11-29 14:16:25 +01:00
Renovate Bot
e767d5370a chore(deps): update dependency redux-thunk to v2.4.1 2021-11-27 01:53:34 +00:00
Fredrik Strand Oseberg
3bd373002e 4.3.0-beta.1 (#529) 2021-11-26 16:14:44 +01:00
sighphyre
b85b326104 task: Add buttons for deleting/editing a constraint (#522)
* task: Add buttons for deleting/editing a constraint

* task: Improve look and feel of constraints buttons

- Make constraints fill their container
- Move constraint buttons to material ui buttons
- Move constraint buttons to top right of their container

* fix: adjust positioning

* fix: added project id to permissin button

* fix: add correct permission

* fix: update create feature path

Co-authored-by: Simon Hornby <simon@getunleash.ai>
Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
2021-11-26 16:07:05 +01:00
Renovate Bot
b69606cd98 chore(deps): update dependency sass to v1.43.5 2021-11-25 01:47:03 +00:00
Renovate Bot
fbb57c3f34 chore(deps): update dependency @types/react to v17.0.37 2021-11-24 23:59:52 +00:00
Renovate Bot
cb4fd81368 chore(deps): update dependency @testing-library/jest-dom to v5.15.1 2021-11-23 17:27:22 +00:00
Renovate Bot
2c7b544540 chore(deps): update dependency @types/react to v17.0.36 2021-11-21 22:33:29 +00:00
Renovate Bot
f3868d3a5b chore(deps): update dependency date-fns to v2.26.0 2021-11-19 11:23:51 +00:00
Renovate Bot
0d6f447021 chore(deps): update dependency @types/node to v14.17.34 2021-11-18 23:26:02 +00:00
Renovate Bot
742e6ae1d5 chore(deps): update dependency @types/jest to v27.0.3 2021-11-18 21:24:30 +00:00
Renovate Bot
ad30fd1991 chore(deps): update dependency typescript to v4.5.2 2021-11-17 22:27:28 +00:00