Commit Graph

233 Commits

Author SHA1 Message Date
admin 836305e2a3 Fix mobile 2026-02-17 23:14:05 +00:00
admin d51efb535d chore: auto-commit before merge (loop primary) 2026-02-17 21:19:40 +00:00
admin 0a337b41c2 Fix hover effect on chart causing transition/animation to break 2026-02-17 15:14:10 +00:00
admin 47b52b5a93 feat: add global focus mode with cross-component dimming on hover
When hovering a constellation node, skill pill, or timeline item,
non-related UI elements across all components dim to 0.25 opacity,
creating a focused visual relationship view. The constellation axis
and year labels also dim via CSS class. Respects reduced-motion.
2026-02-17 14:17:21 +00:00
admin 82db5fda54 Substantial refinement/polish on content of webpage (not just structural/coding elements) 2026-02-17 14:05:32 +00:00
admin a867c75e9b fix: re-enable boot sequence after redesign
Changed initial phase from 'pmr' back to 'boot' to restore the
full boot → login → dashboard flow for production.
2026-02-17 03:28:41 +00:00
admin 150b452bb5 feat: redesign boot-to-login transition
New boot flow: typing → holding → loading (progress bar) → fade → login

- Added ProgressBar component with ease-out animation during loading phase
- Terminal text slides up and fades during exit transition
- Cursor shrinks during loading phase for visual continuity
- Progress bar appears below terminal text, fills over 1.2s
- Entire container fades out smoothly before transitioning to login
- Reduced motion: instant render, no animation (unchanged)
- Changed "Rendering CV" → "Launching CV" for better software-launch feel
- Tuned timing: shorter hold (600ms), loading (1200ms), faster fade (500ms)
2026-02-17 03:28:00 +00:00
admin b266f1f149 feat: remove ECG phase entirely
- Deleted src/components/ECGAnimation.tsx (686 lines)
- Removed 'ecg' from Phase type
- Removed ECG import, rendering, and cursor position handoff from App.tsx
- Cleaned up BootSequence: removed onCursorPositionReady prop,
  captureCursorPosition callback, cursorRef, and ECG-specific naming
- Renamed ecgStartDelay → completionDelay, ecg-seed-dot → boot-seed-dot
- Skip button now goes directly to dashboard ('pmr' phase)
- Boot flow simplified: boot → login → pmr (no ECG intermediary)
- Bundle size reduced ~8KB
2026-02-17 03:26:17 +00:00
admin 49bddeaa45 audit: verify llm-prompt.ts against reference documents
- Profile: "Informatics pharmacist" → "Healthcare leader" per CV
- Interim Head: "practice-level aggregate reporting" → "practice-level data"
- HCD: "Authored most" → "Wrote most" per CV
- Duty Pharm Mgr: "Led" → "Co-led", removed national quality payments claim
- Pre-Reg: aligned PGD and palliative care descriptions with secondary ref
- PharMetrics: corrected from "Interactive Platform" to "Switching Dashboard"
- Skills: Python 6yr→8yr, SQL 7yr→3yr per corrected skills.ts data
2026-02-17 03:21:43 +00:00
admin e2ba2575b6 audit: verify profile-content.ts against reference documents
- Narrative: aligned with CV Profile — "Healthcare leader" instead of
  unverified "Informatics pharmacist", tightened phrasing throughout
- Achievement subtitle: "Full analytical accountability to ICB board" →
  "Prescribing budget with forecasting models" per CV
- Skills summary: "data engineering" → "data pipeline development" per CV;
  removed unverified "clinical decision support"
- Flagged retained "Informatics Pharmacist" roleTitle in unverified log
2026-02-17 03:20:24 +00:00
admin 61299100d9 audit: verify documents.ts and educationExtras.ts against references
- Research description: removed embellished "investigating cocrystal
  formation for improved drug delivery properties", replaced with CV
  phrasing "on drug delivery and cocrystals"
- All education credentials, grades, dates, and institutions verified
- Extracurriculars verified against secondary reference
2026-02-17 03:18:53 +00:00
admin abb4fcd909 audit: verify skills.ts against reference documents
- Python: startYear corrected 2019→2017 (self-taught during Tesco night
  shifts per secondary ref); yearsOfExperience 6→8
- SQL: startYear corrected 2018→2022 (learned after gaining NHS database
  access per secondary ref); removed unverified pre-2022 history entries
- Power BI: fixed prescribing history year inconsistency (2019→2020);
  removed "PharMetrics real-time expenditure dashboard" reference
- All skill categories and names verified against CV Core Competencies
2026-02-17 03:18:04 +00:00
admin 0fba10d469 audit: verify investigations.ts against reference documents
- PharMetrics: corrected from "Interactive Platform" to "Switching Dashboard"
  to align with references (PharMetrics is the switching algorithm project);
  updated methodology to match secondary ref's dashboard description
- All other investigations (switching algorithm, Blueteq, CD monitoring,
  Sankey tool) verified against CV and secondary reference — no changes needed
2026-02-17 03:16:53 +00:00
admin 3c5f9a506c audit: verify kpis.ts against reference documents
- Budget KPI: removed unverified "monthly" reporting frequency,
  aligned with CV's "bimonthly" CMO presentations
- Population KPI: removed "monitor medicines safety" to match CV;
  "aggregate reporting" → "practice-level data" per CV wording
- Also fixed timeline.ts Interim Head detail to match CV wording
- All KPI values (£220M, £14.6M, £2.6M, 1.2M) verified against CV
2026-02-17 03:15:45 +00:00
admin de5b5939d6 audit: verify timeline.ts against reference documents
Key corrections:
- HCD role: "Authored most" → "Wrote most" to match CV phrasing
- HCD role: "formulary adherence opportunities" → "improvement opportunities"
- Deputy Head: removed embellished description additions not in CV
- Duty Pharmacy Manager: "Led" → "Co-led" per secondary reference;
  removed national quality payments claim (belongs to Pharmacy Manager)
- Pre-Reg: aligned PGD and palliative care descriptions with secondary ref
- UEA MPharm: removed "academic excellence" (misleading given exam failures)

Updated unverified-content.md with corrections log and missed opportunities
including McDonald's role, Mary Seacole programme, self-taught coding
narrative, AI/LLM work, and opioid deprescribing metrics.
2026-02-17 03:14:40 +00:00
admin 661dba4b75 audit: verify patient.ts against reference documents
- Address corrected from 'Norwich, NR1' to 'Norwich, UK' to match CV
- Created References/unverified-content.md to track audit findings
- Flagged retained-but-unverifiable personal data (DOB, GPhC number, LinkedIn slug)
- All other fields verified against CV_v4.md
2026-02-17 03:11:47 +00:00
admin f7469f487f chore: bypass boot sequence for faster dev iteration
Temporarily set initial phase to 'pmr' to skip boot/ECG/login
during content audit work. Will be reverted in Phase 3.3.
2026-02-17 03:04:51 +00:00
admin 9a58b3c312 chore: auto-commit before merge (loop primary) 2026-02-17 02:26:42 +00:00
admin 01a48ce691 fix: re-enable boot sequence after refactor
Restore useState<Phase>('boot') in App.tsx, completing the refactoring
cycle (was temporarily set to 'pmr' for faster visual review).
2026-02-17 02:24:44 +00:00
admin 5eb46b02d8 refactor: remove dead code — orphaned files, unused types and functions
Delete 3 orphaned files (SubNav, TopBar, problems.ts), remove 4 unused
type definitions from pmr.ts (ViewId, NavItem, ReferralFormData, Problem),
trim types/index.ts to only Phase, and remove unused utility functions
(calculateSkillOffset, formatBootLine, getProfileContent, DotColorName).
2026-02-17 02:24:40 +00:00
admin 1b19087782 refactor: extract LastConsultationCard from DashboardLayout
Move the self-contained LastConsultationSubsection component (191 lines)
into its own file as LastConsultationCard. It uses only context and one
prop, with no dependency on DashboardLayout state. DashboardLayout drops
from 493 to 293 lines.
2026-02-17 02:16:10 +00:00
admin 49c9e0cecf refactor: centralise detail panel inline styles into detail-styles.ts
Extract 5 shared style constants (detailRootStyle, sectionHeadingStyle,
bulletListStyle, bodyTextStyle, paragraphStyle) used across 5 of 6 detail
components. Replaces ~30 inline style object definitions with imports.
Net reduction: 274 lines across detail panel components.
2026-02-17 02:09:26 +00:00
admin 7528935d2b refactor: extract ExpandableCardShell from WorkExperience and TimelineInterventions subsections
Single source of truth for expand/collapse card interaction pattern:
container styling, keyboard handling, chevron rotation, AnimatePresence
animation, and expanded content wrapper. Each consumer retains unique
header and body content via render props.
2026-02-17 02:03:13 +00:00
admin 8f4ddc454a refactor: centralise color maps, org color fallback, and motion-safe transitions
Create src/lib/theme-colors.ts with DOT_COLORS, KPI_COLORS,
PROJECT_STATUS_COLORS, and DEFAULT_ORG_COLOR constants. Add
motionSafeTransition() utility to src/lib/utils.ts.

Removes 6 duplicate color map definitions across Card, DetailPanel,
PatientSummaryTile, KPIDetail, ProjectsTile, and ProjectDetail.
Replaces 9 hardcoded '#0D6E6E' fallbacks and 7 inline motion ternaries.
Fixes project status color inconsistency between ProjectsTile and
ProjectDetail (Ongoing was teal in tile, amber in detail).
2026-02-17 01:58:10 +00:00
admin 296b18f025 refactor: extract hexToRgba and prefersReducedMotion to shared utils
Move hexToRgba() (3 identical copies) and prefersReducedMotion (5 module-level
copies) to src/lib/utils.ts. Re-export prefersReducedMotion from
constellation/constants.ts to preserve existing importers. Add clarifying
comments to constellation.ts and tags.ts re-export layers (Phase 1.4).
2026-02-17 01:48:43 +00:00
admin 45b87466be refactor: extract LLM system prompt from profile-content to dedicated module
Move the ~110-line LLM system prompt to src/data/llm-prompt.ts, removing
the LLMCopy type, getLLMCopy() accessor, and llm field from ProfileContent.
llm.ts now imports the prompt directly. profile-content.ts drops from 246
to 133 lines, retaining only UI copy and search metadata.
2026-02-17 01:42:55 +00:00
admin bbe7900968 refactor: inline timeline narrative into timeline.ts, remove indirection
Timeline entities now contain their narrative data (description, details,
outcomes, codedEntries) directly instead of fetching via
getTimelineNarrativeEntry(). Removes ~155 lines from profile-content.ts,
the accessor function, and three dead types.
2026-02-17 01:37:32 +00:00
admin 0ee7b5d44c refactor: skip boot/ECG/login sequence for dev iteration speed
Temporarily set initial phase to 'pmr' to bypass the ~10s boot animation
during the refactoring process. Will be reverted in Phase 4.3.
2026-02-17 01:28:48 +00:00
admin 83b327d58e Refactor to pull all text enteries into single location 2026-02-17 01:10:31 +00:00
admin 6605966fab feat: add canonical profile content schema and access helpers 2026-02-16 23:32:25 +00:00
admin 8178d03cb2 Rehaul of graph component 2026-02-16 23:16:46 +00:00
admin e9a7581aa5 chore: auto-commit before merge (loop primary) 2026-02-16 15:06:20 +00:00
admin 9276955fa8 refactor: extract PlayPauseButton + screen-reader-description from orchestrator
Reduces CareerConstellation orchestrator from 334 to 285 lines to meet
the <300 line success criterion.
2026-02-16 14:35:15 +00:00
admin 8b674ffe14 feat: phase 3+4 timeline animation + education entities
- Add education entities (A-Levels, MPharm) to constellation data
- Add 'education' node type with dashed border styling
- Create useTimelineAnimation hook with rAF scheduler + state machine
  (IDLE → PLAYING → PAUSED → HOLDING → RESETTING → loop)
- Chronological reveal: entities oldest-first with skill stagger,
  link draw-on, reinforcement pulse for already-visible skills
- Year indicator overlay (monospace, top-left)
- Multiplicative opacity: animation visibility × highlight emphasis
- Highlight system respects visibleNodeIdsRef (unrevealed stay hidden)
- Interaction pause/resume wired to animation hook
- Play/pause button (bottom-right, larger touch target on mobile)
- prefers-reduced-motion: shows final state immediately, no animation
- Remove Phase 2 entry animation (replaced by timeline animation)
2026-02-16 14:31:11 +00:00
admin 7d7628c8a7 feat: phase 2 visual improvements for CareerConstellation
- Links: domain-colored with strength-weighted width/opacity, improved bezier curves
- Skill nodes: domain-colored stroke, size encoding by connected role count, glow filter on highlight
- Role nodes: gradient fill (orgColor 0.08→0.18), enhanced highlight with fill-opacity and stroke-width
- Entry animation: staggered reveal (guides→roles→skills→links with stroke-dashoffset), skipped under prefers-reduced-motion
- Legend: domain node counts displayed
2026-02-16 14:16:36 +00:00
admin 65b265733e refactor: decompose CareerConstellation monolith into focused modules
Break 1102-line CareerConstellation.tsx into:
- constellation/constants.ts: sizing, opacity, domain color tokens
- constellation/types.ts: SimNode, SimLink, LayoutParams interfaces
- hooks/useForceSimulation.ts: D3 simulation lifecycle
- hooks/useConstellationHighlight.ts: highlight/dim logic
- hooks/useConstellationInteraction.ts: mouse/touch/pin handlers
- constellation/MobileAccordion.tsx: tap-to-expand role details
- constellation/ConstellationLegend.tsx: domain legend
- constellation/AccessibleNodeOverlay.tsx: keyboard navigation buttons
- constellation/CareerConstellation.tsx: 288-line orchestrator

All existing behaviour preserved. Quality gates pass.
2026-02-16 14:06:41 +00:00
admin 4dfb1607c1 Updated chart 2026-02-16 13:23:04 +00:00
admin 2e242a650a chore: auto-commit before merge (loop primary) 2026-02-16 12:44:34 +00:00
admin 683275416e Removed top bar, and updating sidebar 2026-02-16 12:25:19 +00:00
admin c3a72d0bee Cleanup 2026-02-16 11:33:47 +00:00
admin 68f92fb9a0 feat: polish interventions carousel responsiveness 2026-02-16 11:04:08 +00:00
admin be7a65ef8a feat: tune carousel autoplay for reduced motion 2026-02-16 11:02:32 +00:00
admin 5fa01b8d66 feat: implement Embla carousel in ProjectsTile 2026-02-16 11:00:46 +00:00
admin 98d767fa7f feat: rename Active Projects references to Significant Interventions 2026-02-16 10:58:29 +00:00
admin a6df900605 merge codex/kpi (prefer codex/kpi on conflicts) 2026-02-16 10:52:24 +00:00
admin ab80d65958 feat: compact latest results kpi section 2026-02-16 10:36:30 +00:00
admin b418338cd7 feat: US-008 - Re-tune force simulation for 8 timeline entries in narrower column 2026-02-16 10:23:03 +00:00
admin c9dd93ac70 feat: US-007 - Colour-match work experience cards to constellation node colours 2026-02-16 10:09:34 +00:00
admin a258706bf3 feat: US-006 - Mobile accordion expansion for role details 2026-02-16 10:04:35 +00:00
admin 67fe5567a9 feat: US-005 - Hover-to-highlight interaction on desktop 2026-02-16 09:58:27 +00:00