1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00
unleash.unleash/frontend/src/hooks
Thomas Heartman 857c91b803
feat(1-3262): initial impl of new month/range picker (#9122)
This PR implements a first version of the new month/range picker for the
data usage graphs. It's minimally hooked up to the existing
functionality to not take anything away.

This primary purpose of this PR is to get the design and interaction out
on sandbox so that UX can have a look and we can make adjustments.

As such, there are a few things in the code that we'll want to clean up
before removing the flag later:
- for faster iteration, I've used a lot of CSS nesting and element
selectors. this isn't usually how we do it here, so we'll probably want
to extract into styled components later
- there is a temporary override of the value in the period selector so
that you can select ranges. It won't affect the chart state, but it
affects the selector state. Again, this lets you see how it acts and
works.
- I've added a `NewHeader` component because the existing setup smushed
the selector (it's a MUI grid setup, which isn't very flexible). I don't
know what we want to do with this in the end, but the existing chart
*does* have some problems when you resize your window, at least
(although this is likely due to the chart, and can be solved in the same
way that we did for the personal dashboards).


![image](https://github.com/user-attachments/assets/f3ce3ff9-bab3-4d00-afbe-56f5624fbe16)
2025-01-21 12:15:43 +01:00
..
api feat: read logs and update cors maintenance root-role permissions (#8996) 2025-01-08 10:03:40 +01:00
useChangeRequestAddStrategy.ts chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
useChangeRequestInReviewWarning.tsx
useChangeRequestsEnabled.test.tsx
useChangeRequestsEnabled.ts
useChangeRequestToggle.ts chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
useClearSWRCache.test.ts
useClearSWRCache.ts
useCollaborateData.tsx
useConditionallyHiddenColumns.ts
useCustomEvent.ts
useDefaultProjectSettings.ts
useDragItem.ts
useEventSettings.ts
useFormErrors.ts
useGlobalLocalStorage.ts
useGlobalState.ts
useHasAccess.ts
useHiddenEnvironments.ts
useHighestPermissionChangeRequestEnvironment.test.ts
useHighestPermissionChangeRequestEnvironment.ts
useId.test.ts
useId.ts
useIsAppleDevice.ts
useKeyboardShortcut.ts
useLastViewedFlags.test.tsx
useLastViewedFlags.ts
useLastViewedProject.test.tsx
useLastViewedProject.ts
useLicensedUsers.ts chore: rename to seats used (#8993) 2024-12-17 12:39:54 +02:00
useLoading.ts [wip] add data to ui (#8710) 2024-11-12 11:35:42 +01:00
useLocalStorageState.test.tsx
useLocalStorageState.ts
useLocationSettings.ts
useOnBlur.test.tsx
useOnBlur.ts
useOnClickOutside.test.tsx
useOnClickOutside.ts
useOnVisible.ts
useOptionalPathParam.ts
usePageTitle.ts
usePagination.ts
usePersistentGlobalState.ts
usePersistentTableState.test.tsx
usePersistentTableState.ts
usePinnedFavorites.test.ts
usePinnedFavorites.ts
usePlausibleTracker.ts chore: remove Unleash AI (#9010) 2024-12-20 11:02:49 +00:00
useQueryParams.ts
useRecentlyVisited.test.tsx
useRecentlyVisited.ts
useRequiredPathParam.ts
useRequiredQueryParam.ts
useSearch.test.tsx
useSearch.ts
useStickinessOptions.ts
useSubmittedFeedback.ts feat: add project status feedback (#8764) 2024-11-15 10:51:00 +02:00
useTabs.ts
useThemeMode.ts
useToast.tsx chore(unl-204): remove uses of toast text and confetti (#8941) 2024-12-10 13:38:04 +00:00
useTrafficData.test.ts test: loosen up useTrafficData test (#8901) 2024-12-02 09:15:54 +00:00
useTrafficData.ts feat(1-3262): initial impl of new month/range picker (#9122) 2025-01-21 12:15:43 +01:00
useUiFlag.ts
useUsersPlan.ts chore: PAYG billing (#8743) 2024-11-14 11:29:05 +00:00
useVariant.ts
useVirtualizedRange.ts
useWeakMap.ts