From 92ba6fb3908b08b5dd5abd82b24f53a5f4b32d6b Mon Sep 17 00:00:00 2001 From: Moheeb Zara Date: Fri, 15 May 2026 20:34:56 -0700 Subject: [PATCH] feat(ux): shared PageTitle/SectionTitle primitive, adopt app-wide - new components/ui/page-title.tsx (PageHeader/PageTitle/SectionTitle) - every page heading routed through PageTitle (one source of truth for the page-title style; identical render) - members restricted-directory screen now uses the standard PageHeader bar instead of an off-style mono heading --- app/(app)/comms/comms-client.tsx | 5 +-- app/(app)/contacts/contacts-client.tsx | 3 +- app/(app)/dashboard/page.tsx | 3 +- app/(app)/financials/page.tsx | 3 +- app/(app)/import/page.tsx | 3 +- app/(app)/incidents/new/page.tsx | 3 +- app/(app)/incidents/page.tsx | 3 +- app/(app)/members/members-client.tsx | 3 +- app/(app)/members/page.tsx | 21 ++++++++----- app/(app)/ops/[id]/kb-entry-editor.tsx | 3 +- app/(app)/ops/ops-client.tsx | 3 +- app/(app)/payments/payments-client.tsx | 3 +- app/(app)/policies/new/page.tsx | 3 +- app/(app)/policies/page.tsx | 3 +- app/(app)/profile/page.tsx | 3 +- app/(app)/projects/projects-client.tsx | 3 +- app/(app)/proposals/new/page.tsx | 3 +- app/(app)/proposals/page.tsx | 3 +- app/(app)/recruitment/page.tsx | 3 +- app/(app)/settings/settings-client.tsx | 3 +- app/(app)/tasks/tasks-client.tsx | 3 +- components/ui/page-title.tsx | 42 ++++++++++++++++++++++++++ 22 files changed, 96 insertions(+), 29 deletions(-) create mode 100644 components/ui/page-title.tsx diff --git a/app/(app)/comms/comms-client.tsx b/app/(app)/comms/comms-client.tsx index 1c72a03..1d8c1da 100644 --- a/app/(app)/comms/comms-client.tsx +++ b/app/(app)/comms/comms-client.tsx @@ -7,6 +7,7 @@ import { createClient } from '@/lib/supabase/client' import { Hash, Users2, Send, ChevronLeft, Plus } from 'lucide-react' import { createChannel } from '@/lib/actions' import type { Tables } from '@/types/database' +import { PageTitle } from '@/components/ui/page-title' type Channel = Tables<'comms_channels'> type Message = Tables<'comms_messages'> @@ -184,9 +185,9 @@ export default function CommsClient({ member, space, channels }: Props) { )} -

+ {!showChannelList && selectedChannel ? `#${selectedChannel.name}` : 'Comms'} -

+