1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00
unleash.unleash/frontend/src
Nuno Góis d63b3c69fe
feat: adapt user logic to better adapt to SAs (#2917)
https://linear.app/unleash/issue/2-579/improve-user-like-behaviour-for-service-accounts-accounts-concept

<img width="803" alt="image"
src="https://user-images.githubusercontent.com/14320932/213011584-75870595-988d-49bc-a7bf-cd1ffd146bca.png">

Makes SAs behave more like users. 

Even though they share the same `users` database table, the `is_service`
column distinguishes them. This PR makes the distinction a bit less
obvious by not filtering out SAs for some methods in the user store,
returning both account types and their respective account type
information so we can handle them properly on the UI.

We felt like this was a good enough approach for now, and a decent
compromise to move SAs forward. In the future, we may want to make a
full refactor with the `accounts` concept in mind, which we've
experimented with in the
[accounts-refactoring](https://github.com/Unleash/unleash/tree/accounts-refactoring)
branches (both OSS and Enterprise).
 
https://github.com/Unleash/unleash/pull/2918 - Moves this a bit further,
by introducing the account service and store.
2023-01-18 12:12:44 +00:00
..
__mocks__
assets Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
component feat: adapt user logic to better adapt to SAs (#2917) 2023-01-18 12:12:44 +00:00
constants Feat clone environment modal (#2245) 2022-10-28 09:15:46 +01:00
contexts Custom event tracking (#2151) 2022-10-10 14:06:44 +02:00
hooks feat: adapt user logic to better adapt to SAs (#2917) 2023-01-18 12:12:44 +00:00
interfaces feat: adapt user logic to better adapt to SAs (#2917) 2023-01-18 12:12:44 +00:00
openapi feat: export ui api integration (#2888) 2023-01-12 16:09:13 +01:00
themes feat: initial status box implementation (#2913) 2023-01-18 10:10:41 +01:00
types chore(deps): update dependency prettier to v2.8.1 (#2509) 2022-12-27 10:45:43 +01:00
utils refactor: styles batch 3 (#2821) 2023-01-11 17:44:21 +01:00
index.tsx feat: message banner (#2726) 2022-12-22 15:16:51 +00:00
setupTests.ts feat: new tag types table (#1014) 2022-05-25 11:12:53 +02:00
vite-env.d.ts