1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/frontend/src/hooks
andreas-unleash 83bb9b1656
Feat: enable toggle dialog (#3686)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
- Creates a dialog when the feature has ONLY disabled strategies and the
environment in turned on
- Adds functionality to either `enable` the strategies or add the
default one (if a project specific default strategy is set, uses it)
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->



Uploading Screen Recording 2023-05-05 at 17.40.48.mov…



Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-05-08 11:42:26 +03:00
..
api Feat: enable toggle dialog (#3686) 2023-05-08 11:42:26 +03: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.test.tsx feat: skip change request in UI (#3495) 2023-04-11 14:47:54 +02:00
useChangeRequestsEnabled.ts feat: skip change request in UI (#3495) 2023-04-11 14:47:54 +02: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
useDefaultProjectSettings.ts chore: remove projectScopedStickinessFlag (#3620) 2023-04-26 17:07:09 +03:00
useDragItem.ts fix: improve drag behaviour when using handle (#2407) 2022-11-14 08:25:20 +00:00
useEventSettings.ts
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 feat: skip change request in UI (#3495) 2023-04-11 14:47:54 +02:00
useHiddenEnvironments.ts Plausible for hidden environments (#2837) 2023-01-09 15:36:10 +02:00
useId.test.ts
useId.ts
useIsAppleDevice.ts
useKeyboardShortcut.ts
useLastViewedProject.ts Fix/redirect woes (#2899) 2023-01-17 13:33:52 +01:00
useLoading.ts Refactor: Project Overview fetching (#3035) 2023-02-07 08:57:28 +01:00
useLocationSettings.ts
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
usePersistentGlobalState.ts Project stats feedback (#3131) 2023-02-17 13:10:27 +01: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: add user tracking to demo (#3637) 2023-04-27 14:12:02 +01:00
useQueryParams.ts
useQueryStringNumberState.ts
useQueryStringState.ts
useRequiredPathParam.ts
useRequiredQueryParam.ts
useSearch.test.ts
useSearch.ts UI/bulk select (#3267) 2023-03-14 08:56:03 +00:00
useTabs.ts
useThemeMode.ts fix: dark theme UI fixes (#3423) 2023-03-30 16:57:35 +01:00
useToast.tsx Bulk tags (#3337) 2023-03-21 13:37:25 +01:00
useUsersPlan.ts feat: paid users limit in UI (#3210) 2023-03-01 08:49:14 +01:00
useVirtualizedRange.ts
useWeakMap.ts