From 98d767fa7fba6c38658cd28ccdb33022d723c1a3 Mon Sep 17 00:00:00 2001 From: Andy Charlwood Date: Mon, 16 Feb 2026 10:58:29 +0000 Subject: [PATCH] feat: rename Active Projects references to Significant Interventions --- src/components/SubNav.tsx | 2 +- src/components/tiles/ProjectsTile.tsx | 2 +- src/lib/search.ts | 11 +++++------ 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/components/SubNav.tsx b/src/components/SubNav.tsx index a892391..444b266 100644 --- a/src/components/SubNav.tsx +++ b/src/components/SubNav.tsx @@ -13,7 +13,7 @@ const sections: NavSection[] = [ { id: 'overview', label: 'Overview', tileId: 'patient-summary' }, { id: 'skills', label: 'Skills', tileId: 'section-skills' }, { id: 'experience', label: 'Experience', tileId: 'section-experience' }, - { id: 'projects', label: 'Projects', tileId: 'projects' }, + { id: 'projects', label: 'Significant Interventions', tileId: 'projects' }, { id: 'education', label: 'Education', tileId: 'section-education' }, ] diff --git a/src/components/tiles/ProjectsTile.tsx b/src/components/tiles/ProjectsTile.tsx index b744783..7f6f110 100644 --- a/src/components/tiles/ProjectsTile.tsx +++ b/src/components/tiles/ProjectsTile.tsx @@ -127,7 +127,7 @@ export function ProjectsTile() { return ( - +
{investigations.map((project) => ( diff --git a/src/lib/search.ts b/src/lib/search.ts index cb0f40b..3325c13 100644 --- a/src/lib/search.ts +++ b/src/lib/search.ts @@ -7,7 +7,7 @@ import { skills } from '@/data/skills' import { kpis } from '@/data/kpis' import type { DetailPanelContent } from '@/types/pmr' -export type PaletteSection = 'Experience' | 'Core Skills' | 'Active Projects' | 'Achievements' | 'Education' | 'Quick Actions' +export type PaletteSection = 'Experience' | 'Core Skills' | 'Significant Interventions' | 'Achievements' | 'Education' | 'Quick Actions' export type PaletteAction = | { type: 'scroll'; tileId: string } @@ -61,13 +61,13 @@ export function buildPaletteData(): PaletteItem[] { }) }) - // Active Projects — all 5 investigations from investigations.ts + // Significant Interventions — all 5 investigations from investigations.ts investigations.forEach((inv) => { items.push({ id: `proj-${inv.id}`, title: inv.name, subtitle: `${inv.methodology.split('.')[0]} \u00b7 ${inv.requestedYear}`, - section: 'Active Projects', + section: 'Significant Interventions', iconVariant: 'amber', iconType: 'project', keywords: `${inv.name.toLowerCase()} ${inv.methodology.toLowerCase()} ${inv.techStack.join(' ').toLowerCase()} ${inv.requestedYear}`, @@ -218,7 +218,7 @@ export function buildSearchIndex(items: PaletteItem[]): Fuse { const SECTION_ORDER: PaletteSection[] = [ 'Experience', 'Core Skills', - 'Active Projects', + 'Significant Interventions', 'Achievements', 'Education', 'Quick Actions', @@ -332,7 +332,7 @@ export function buildEmbeddingTexts(): Array<{ id: string; text: string }> { }) }) - // Investigations (Active Projects) — enriched with role context and cross-references + // Investigations (Significant Interventions) — enriched with role context and cross-references const projectContextMap: Record = { 'inv-pharmetrics': 'Built during Deputy Head role at NHS Norfolk & Waveney ICB. Provides self-serve analytics for budget holders across the integrated care system. Live at medicines.charlwood.xyz.', 'inv-switching-algorithm': 'Built during Interim Head role at NHS Norfolk & Waveney ICB. Uses real-world GP prescribing data to auto-identify patients on expensive drugs suitable for cost-effective alternatives. Compressed months of manual analysis into 3 days. Includes novel GP payment system linking incentive rewards to prescribing savings.', @@ -394,4 +394,3 @@ export function buildEmbeddingTexts(): Array<{ id: string; text: string }> { return texts } -