From 766b95f54c70d59d380fd0122cbfd25749e60053 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 25 Feb 2026 12:29:24 -0600 Subject: [PATCH] Add Brand column to campaigns list table Display the brandGuidelines field as a sortable, filterable "Brand" column between Owning Agency and Last Modified. Co-Authored-By: Claude Opus 4.6 --- frontend/components/Campaigns.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/components/Campaigns.tsx b/frontend/components/Campaigns.tsx index 0d58be0..dd835e5 100755 --- a/frontend/components/Campaigns.tsx +++ b/frontend/components/Campaigns.tsx @@ -28,7 +28,7 @@ import apiService from '../services/apiService'; import { usePdfPages } from '../hooks/usePdfPages'; import { useUser } from '../contexts/UserContext'; -type SortKey = 'name' | 'proofs' | 'status' | 'agencyLead' | 'agency' | 'lastModified'; +type SortKey = 'name' | 'proofs' | 'status' | 'agencyLead' | 'agency' | 'brandGuidelines' | 'lastModified'; type SortDirection = 'asc' | 'desc'; const formatDate = (isoDateString: string): string => { @@ -298,6 +298,7 @@ const CampaignList: React.FC<{ status: '', agencyLead: '', agency: '', + brandGuidelines: '', lastModified: '', }); @@ -543,6 +544,7 @@ const CampaignList: React.FC<{ ['status', 'Status'], ['agencyLead', 'Created By'], ['agency', 'Owning Agency'], + ['brandGuidelines', 'Brand'], ['lastModified', 'Last Modified'], ] as [SortKey, string][]).map(([key, label]) => ( {!readOnly && } - {(['name', 'proofs', 'status', 'agencyLead', 'agency', 'lastModified'] as SortKey[]).map((key) => ( + {(['name', 'proofs', 'status', 'agencyLead', 'agency', 'brandGuidelines', 'lastModified'] as SortKey[]).map((key) => ( {campaign.agencyLead} {campaign.agency} + {campaign.brandGuidelines} {formatDate(campaign.lastModified)} {!readOnly && (