From e685ce436ec07b5eec0a1b9733cbc812a4dd271f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Thu, 11 Jun 2026 11:40:21 +0200 Subject: [PATCH] Restyle tracker row and category select MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stack the tracker type badge above the pattern name and drop the separate Type column so the now-wider row reads more compactly; the edit row spans the reduced column count. Tint script-sourced rows light blue (excluded styling still wins when both apply). Make the move-to-category select stand out when the tracker sits in a real category by switching it to the highlighted pill variant, and align its ghost-variant padding so the label does not shift horizontally between categorised and uncategorised rows. Signed-off-by: Émile Ré --- .../trackers/CookieBannerTrackersPage.tsx | 1 - .../_components/MoveToCategorySelect.tsx | 5 ++- .../_components/TrackerPatternRow.tsx | 32 ++++++++++++------- .../_components/TrackerPatternRowEdit.tsx | 2 +- 4 files changed, 26 insertions(+), 14 deletions(-) diff --git a/apps/console/src/pages/organizations/cookie-banners/configuration/trackers/CookieBannerTrackersPage.tsx b/apps/console/src/pages/organizations/cookie-banners/configuration/trackers/CookieBannerTrackersPage.tsx index 5fbdf81b1..5c6fc4e58 100644 --- a/apps/console/src/pages/organizations/cookie-banners/configuration/trackers/CookieBannerTrackersPage.tsx +++ b/apps/console/src/pages/organizations/cookie-banners/configuration/trackers/CookieBannerTrackersPage.tsx @@ -267,7 +267,6 @@ export default function CookieBannerTrackersPage({ > - {__("Type")} {__("Name")} {__("Third party")} {__("Source")} diff --git a/apps/console/src/pages/organizations/cookie-banners/configuration/trackers/_components/MoveToCategorySelect.tsx b/apps/console/src/pages/organizations/cookie-banners/configuration/trackers/_components/MoveToCategorySelect.tsx index f808c373b..a803ad7e4 100644 --- a/apps/console/src/pages/organizations/cookie-banners/configuration/trackers/_components/MoveToCategorySelect.tsx +++ b/apps/console/src/pages/organizations/cookie-banners/configuration/trackers/_components/MoveToCategorySelect.tsx @@ -25,12 +25,14 @@ import { moveToCategoryDropdownQuery } from "./MoveToCategoryDropdown"; interface MoveToCategorySelectProps { currentCategoryId?: string; currentCategoryName?: string; + highlight?: boolean; onSelect: (categoryId: string) => void; } export function MoveToCategorySelect({ currentCategoryId, currentCategoryName, + highlight = false, onSelect, }: MoveToCategorySelectProps) { const { cookieBannerId } = useParams<{ cookieBannerId: string }>(); @@ -57,7 +59,8 @@ export function MoveToCategorySelect({ return (