1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +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__ refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00
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 disable change request overview actions when CR are disabled (#2527) 2022-11-24 16:16:14 +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 fix: upgrades useHiddenColumns hook to fix related issues (#2691) 2022-12-14 15:22:38 +00: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
useFeaturesFilter.test.ts refactor: improve OpenAPI refs (#1005) 2022-05-24 08:37:46 +02:00
useFeaturesFilter.ts refactor: improve OpenAPI refs (#1005) 2022-05-24 08:37:46 +02:00
useFormErrors.ts fix: validate feature strategy parameters (#1192) 2022-08-04 13:34:30 +02:00
useGlobalLocalStorage.ts feat: make favorites a global preference (#2685) 2022-12-13 13:20:43 +00:00
useGlobalState.ts refactor: improve feature toggle search state (#741) 2022-02-23 15:08:44 +01:00
useHasAccess.ts added contraints checking in change request permissions (#2690) 2022-12-14 13:00:51 +01:00
useId.test.ts refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00
useId.ts refactor: improve icon labels and tooltips (#884) 2022-04-21 08:26:49 +02:00
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/last viewed project (#2530) 2022-11-28 16:10:40 +02:00
useLoading.ts Feat/add new user (#273) 2021-04-23 10:59:11 +02:00
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 feat: add new feature strategy create/edit pages (#739) 2022-03-09 14:59:24 +01:00
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 Add plausible events for favorite features (#2579) 2022-12-01 13:25:18 +02:00
useQueryParams.ts Feat/user flow (#267) 2021-04-19 10:55:15 +02:00
useQueryStringNumberState.ts feat: add new feature metrics page (#716) 2022-02-21 13:47:54 +01:00
useQueryStringState.ts chore: update react-router to v6 (#946) 2022-05-05 13:42:18 +02:00
useRequiredPathParam.ts feat: add new feature strategy create/edit pages (#739) 2022-03-09 14:59:24 +01:00
useRequiredQueryParam.ts feat: add new feature strategy create/edit pages (#739) 2022-03-09 14:59:24 +01:00
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 feat: e2e tests and mobile views (#348) 2021-09-30 11:44:30 +02:00
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 feat: add new feature strategy create/edit pages (#739) 2022-03-09 14:59:24 +01:00