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 db7b39af2d
fix: upgrades useHiddenColumns hook to fix related issues (#2691)
https://linear.app/unleash/issue/2-514/fix-issues-with-conditionally-hidden-table-columns

This upgrades the old `useHiddenColumns` to a new
`useConditionallyHiddenColumns`. This implementation covers some issues
and edge cases, and should hopefully be the standard way of achieving
responsive visibility for table columns from now on.

Some of these issues included incorrectly showing/hiding table columns,
whether when resizing the window or at page load, even when the proper
conditions were met to toggle their visibility.

This PR adapts the tables that were already using `useHiddenColumns` to
use the new approach.
I'll create a new PR after this one to adapt our other existing tables
to use this new approach as well.
2022-12-14 15:22:38 +00:00
..
__snapshots__
api fix: use instance status too many reqs (#2651) 2022-12-09 11:53:31 +01: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
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 fix: upgrades useHiddenColumns hook to fix related issues (#2691) 2022-12-14 15:22:38 +00:00
useDragItem.ts
useEventSettings.ts
useFeaturesFilter.test.ts
useFeaturesFilter.ts
useFormErrors.ts
useGlobalLocalStorage.ts feat: make favorites a global preference (#2685) 2022-12-13 13:20:43 +00:00
useGlobalState.ts
useHasAccess.ts added contraints checking in change request permissions (#2690) 2022-12-14 13:00:51 +01:00
useId.test.ts
useId.ts
useIsAppleDevice.ts
useKeyboardShortcut.ts
useLastViewedProject.ts
useLoading.ts
useLocationSettings.ts
useOnVisible.ts
useOptionalPathParam.ts
usePageTitle.ts
usePagination.ts
usePersistentGlobalState.ts
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 Add plausible events for favorite features (#2579) 2022-12-01 13:25:18 +02:00
useQueryParams.ts
useQueryStringNumberState.ts
useQueryStringState.ts
useRequiredPathParam.ts
useRequiredQueryParam.ts
useSearch.test.ts
useSearch.ts
useTabs.ts
useThemeMode.ts
useToast.tsx
useUsersPlan.ts
useVirtualizedRange.ts
useWeakMap.ts