1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00
unleash.unleash/frontend/src/component
Christopher Kolstad 21b4ada577
feat: multiple project roles (#4512)
https://linear.app/unleash/issue/2-1128/change-the-api-to-support-adding-multiple-roles-to-a-usergroup-on-a

https://linear.app/unleash/issue/2-1125/be-able-to-fetch-all-roles-for-a-user-in-a-project

https://linear.app/unleash/issue/2-1127/adapt-the-ui-to-be-able-to-do-a-multi-select-on-role-permissions-for

- Allows assigning project roles to groups with root roles
- Implements new methods that support assigning, editing, removing and
retrieving multiple project roles in project access, along with other
auxiliary methods
- Adds new events for updating and removing assigned roles
- Adapts `useProjectApi` to new methods that use new endpoints that
support multiple roles
- Adds the `multipleRoles` feature flag that controls the possibility of
selecting multiple roles on the UI
- Adapts `ProjectAccessAssign` to support multiple role, using the new
methods
- Adds a new `MultipleRoleSelect` component that allows you to select
multiple roles based on the `RoleSelect` component
- Adapts the `RoleCell` component to support either a single role or
multiple roles
- Updates the `access.spec.ts` Cypress e2e test to reflect our new logic
- Updates `access-service.e2e.test.ts` with tests covering the multiple
roles logic and covering some corner cases
- Updates `project-service.e2e.test.ts` to adapt to the new logic,
adding a test that covers adding access with `[roles], [groups],
[users]`
- Misc refactors and boy scouting


![image](https://github.com/Unleash/unleash/assets/14320932/d1cc7626-9387-4ab8-9860-cd293a0d4f62)

---------

Co-authored-by: David Leek <david@getunleash.io>
Co-authored-by: Mateusz Kwasniewski <kwasniewski.mateusz@gmail.com>
Co-authored-by: Nuno Góis <github@nunogois.com>
2023-08-25 09:31:37 +01:00
..
admin feat: multiple project roles (#4512) 2023-08-25 09:31:37 +01:00
application feat: application usage frontend (#4561) 2023-08-24 13:13:02 +03:00
archive feat: Last seen per environment archive (#4540) 2023-08-21 15:37:44 +03:00
changeRequest fix: diff component for ordering (#4552) 2023-08-23 12:17:59 +02:00
common feat: multiple project roles (#4512) 2023-08-25 09:31:37 +01:00
context chore: remove split button strategy flag (#4245) 2023-07-14 14:23:23 +03:00
demo fix: strategy variants in demo link to new variants (#4477) 2023-08-11 09:43:41 +02:00
environments fix: show environment reorder handle (#3990) 2023-06-15 13:39:22 +02:00
events fix: diff no changes (#4480) 2023-08-11 12:31:23 +02:00
feature fix: multiline textarea resizing for json input (#4463) 2023-08-23 15:53:12 +02:00
featureTypes 1-1192: track the feature type and the new lifetime (#4395) 2023-08-03 11:34:03 +02:00
feedback fix: ensure rel=noreferrer on target=_blank (#3755) 2023-05-12 09:51:33 +01:00
integrations Integrations - frontend adjustments (#4527) 2023-08-22 14:40:38 +02:00
layout Fix: change request info (#3971) 2023-07-04 09:09:05 +02:00
loginHistory Menu update - improvements and mobile version (#4423) 2023-08-07 18:13:56 +02:00
maintenance feat: dark theme v1 (#3298) 2023-03-22 16:37:40 +02:00
menu chore: remove configurableFeatureTypeLifetimes flag (#4569) 2023-08-25 09:19:08 +02:00
playground/Playground fix: dot in context fields (#4434) 2023-08-07 13:53:22 +02:00
project feat: multiple project roles (#4512) 2023-08-25 09:31:37 +01:00
providers fix: correct escaping of ui flags for plausible (#3907) 2023-07-07 17:40:37 +02:00
segments feat(#4209): add segment to drafts (#4408) 2023-08-04 12:57:26 +00:00
splash feat: dark theme v1 (#3298) 2023-03-22 16:37:40 +02:00
strategies feat: split strategies table into two with new design (#3969) 2023-06-14 09:10:04 +03:00
tags feat: responsive strategy icons (#4121) 2023-06-29 18:01:27 +01:00
user refactor: roles - make better plan assumptions (#4113) 2023-06-28 16:00:14 +01:00
App.tsx feat: demo ui-ux improvements (#3634) 2023-04-27 08:15:17 +01:00
InitialRedirect.tsx clear warnings (#3053) 2023-02-07 08:41:23 +01:00