1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/frontend/src/hooks
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
..
api feat: adapt user logic to better adapt to SAs (#2917) 2023-01-18 12:12:44 +00:00
useChangeRequestAddStrategy.ts Change request event tracking (#2570) 2022-11-30 12:04:29 +01:00
useChangeRequestInReviewWarning.tsx Feat/update dialogues (#2559) 2022-11-29 14:52:01 +01:00
useChangeRequestsEnabled.ts remove change request flag (#2703) 2022-12-15 13:43:06 +01:00
useChangeRequestToggle.ts Change request event tracking (#2570) 2022-11-30 12:04:29 +01:00
useCollaborateData.tsx linter fixes (#2561) 2022-11-30 10:52:13 +01:00
useConditionallyHiddenColumns.ts Use new useConditionallyHiddenColumns hook (#2695) 2022-12-16 10:46:04 +01:00
useDragItem.ts fix: improve drag behaviour when using handle (#2407) 2022-11-14 08:25:20 +00:00
useEventSettings.ts feat: add trial expiration warning banner (#985) 2022-05-19 14:06:18 +02:00
useFormErrors.ts fix: validate feature strategy parameters (#1192) 2022-08-04 13:34:30 +02:00
useGlobalLocalStorage.ts Allow hiding environments from the feature overview screen (#2727) 2023-01-03 15:41:34 +02:00
useGlobalState.ts
useHasAccess.ts added contraints checking in change request permissions (#2690) 2022-12-14 13:00:51 +01:00
useHiddenEnvironments.ts Plausible for hidden environments (#2837) 2023-01-09 15:36:10 +02:00
useId.test.ts
useId.ts
useIsAppleDevice.ts Search keyboard shortcut (#1048) 2022-06-06 14:23:48 +02:00
useKeyboardShortcut.ts Search keyboard shortcut (#1048) 2022-06-06 14:23:48 +02:00
useLastViewedProject.ts Fix/redirect woes (#2899) 2023-01-17 13:33:52 +01:00
useLoading.ts
useLocationSettings.ts feat: add trial expiration warning banner (#985) 2022-05-19 14:06:18 +02:00
useOnVisible.ts feat: add search to event log pages (#1205) 2022-08-09 16:00:51 +02:00
useOptionalPathParam.ts
usePageTitle.ts Refactor project health table (#1098) 2022-06-21 09:08:37 +02:00
usePagination.ts fix: user search pagination (#997) 2022-05-19 14:27:19 +02:00
usePersistentGlobalState.ts Persistent table query (#999) 2022-05-25 08:14:22 +00:00
usePinnedFavorites.test.ts Favorite features on project (#2580) 2022-12-01 13:10:42 +01:00
usePinnedFavorites.ts fix: favorites column visibility (#2605) 2022-12-06 10:03:43 +00:00
usePlausibleTracker.ts feat: track uncaught UI errors in plausible (#2860) 2023-01-10 10:33:56 +00:00
useQueryParams.ts
useQueryStringNumberState.ts
useQueryStringState.ts
useRequiredPathParam.ts
useRequiredQueryParam.ts
useSearch.test.ts feat: add filtering capabilities to search (#1052) 2022-06-03 11:32:30 +01:00
useSearch.ts Refine playground form (#1136) 2022-07-13 14:35:43 +00:00
useTabs.ts
useThemeMode.ts Soft landing page on projects or last viewed project (#2499) 2022-11-23 15:58:02 +02:00
useToast.tsx refactor: simplify error toast text (#1081) 2022-06-09 15:36:01 +02:00
useUsersPlan.ts feat: upgrade users table (#1040) 2022-05-31 07:59:09 +01:00
useVirtualizedRange.ts Virtualize project toggles list (#1043) 2022-06-01 12:24:24 +00:00
useWeakMap.ts