From 216bc0cba5410577c40342ed1db6b76e65fb1ab9 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 13 Aug 2025 01:39:25 +1000 Subject: [PATCH] Hover active filters (#10168) - Quick view of active filters on table --- .../src/tables/InvenTreeTableHeader.tsx | 39 +++++++++++++++++-- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/tables/InvenTreeTableHeader.tsx b/src/frontend/src/tables/InvenTreeTableHeader.tsx index d778b048ee..fcf2a5a093 100644 --- a/src/frontend/src/tables/InvenTreeTableHeader.tsx +++ b/src/frontend/src/tables/InvenTreeTableHeader.tsx @@ -2,9 +2,14 @@ import { t } from '@lingui/core/macro'; import { ActionIcon, Alert, + Divider, Group, + HoverCard, Indicator, + Paper, Space, + Stack, + Text, Tooltip } from '@mantine/core'; import { @@ -28,6 +33,7 @@ import type { InvenTreeTableProps } from '@lib/types/Tables'; import { showNotification } from '@mantine/notifications'; import { Boundary } from '../components/Boundary'; import { PrintingActions } from '../components/buttons/PrintingActions'; +import { StylishText } from '../components/items/StylishText'; import useDataExport from '../hooks/UseDataExport'; import { useDeleteApiFormModal } from '../hooks/UseForm'; import { TableColumnSelect } from './ColumnSelect'; @@ -242,9 +248,36 @@ export default function InvenTreeTableHeader({ aria-label='table-select-filters' > - setFiltersVisible(!filtersVisible)} - /> + + + setFiltersVisible(!filtersVisible)} + /> + + + + + {t`Active Filters`} + + {tableState.filterSet.activeFilters?.map((filter) => ( + + {filter.label} + {filter.displayValue} + + ))} + + + +