1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +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
useChangeRequestInReviewWarning.tsx
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
useCollaborateData.tsx
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
useEventSettings.ts
useFormErrors.ts
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
useOptionalPathParam.ts
usePageTitle.ts
usePagination.ts
usePersistentGlobalState.ts Project stats feedback (#3131) 2023-02-17 13:10:27 +01:00
usePinnedFavorites.test.ts
usePinnedFavorites.ts
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