From 8e1b3338c6a8fc120cf3833161139a2ff02236c5 Mon Sep 17 00:00:00 2001 From: Sam Jewell <2903904+samjewell@users.noreply.github.com> Date: Fri, 1 Aug 2025 08:55:57 +0100 Subject: [PATCH] TableNG: Improve AdHoc filter icons (#108968) We removed the "Filter for/out value" tooltips when we reimplemented the Table panel. We don't want to reimplement these, so we're improving the icons instead, to look more like "Filter" and less like "Zoom in/out" --- packages/grafana-data/src/types/icon.ts | 2 ++ .../src/components/Table/TableNG/Cells/TableCellActions.tsx | 4 ++-- public/app/core/icons/cached.json | 2 ++ public/img/icons/unicons/filter-minus.svg | 1 + public/img/icons/unicons/filter-plus.svg | 1 + 5 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 public/img/icons/unicons/filter-minus.svg create mode 100644 public/img/icons/unicons/filter-plus.svg diff --git a/packages/grafana-data/src/types/icon.ts b/packages/grafana-data/src/types/icon.ts index 0cb4a61a25b..34680fc07d1 100644 --- a/packages/grafana-data/src/types/icon.ts +++ b/packages/grafana-data/src/types/icon.ts @@ -120,6 +120,8 @@ export const availableIconsIndex = { 'file-export': true, 'file-landscape-alt': true, filter: true, + 'filter-plus': true, + 'filter-minus': true, flip: true, folder: true, font: true, diff --git a/packages/grafana-ui/src/components/Table/TableNG/Cells/TableCellActions.tsx b/packages/grafana-ui/src/components/Table/TableNG/Cells/TableCellActions.tsx index c66ed4be81c..746ca7027d1 100644 --- a/packages/grafana-ui/src/components/Table/TableNG/Cells/TableCellActions.tsx +++ b/packages/grafana-ui/src/components/Table/TableNG/Cells/TableCellActions.tsx @@ -58,7 +58,7 @@ export function TableCellActions(props: TableCellActionsProps) { {showFilters && ( <> { onCellFilterAdded?.({ @@ -69,7 +69,7 @@ export function TableCellActions(props: TableCellActionsProps) { }} /> { onCellFilterAdded?.({ diff --git a/public/app/core/icons/cached.json b/public/app/core/icons/cached.json index ce86bef4eae..810e2676755 100644 --- a/public/app/core/icons/cached.json +++ b/public/app/core/icons/cached.json @@ -74,6 +74,8 @@ "unicons/file-alt", "unicons/file-blank", "unicons/filter", + "unicons/filter-plus", + "unicons/filter-minus", "unicons/folder", "unicons/folder-open", "unicons/folder-plus", diff --git a/public/img/icons/unicons/filter-minus.svg b/public/img/icons/unicons/filter-minus.svg new file mode 100644 index 00000000000..bf7dd01335b --- /dev/null +++ b/public/img/icons/unicons/filter-minus.svg @@ -0,0 +1 @@ + diff --git a/public/img/icons/unicons/filter-plus.svg b/public/img/icons/unicons/filter-plus.svg new file mode 100644 index 00000000000..f3180a757e0 --- /dev/null +++ b/public/img/icons/unicons/filter-plus.svg @@ -0,0 +1 @@ +