Refactor to pull all text enteries into single location

This commit is contained in:
2026-02-17 01:10:31 +00:00
parent 6605966fab
commit 83b327d58e
36 changed files with 954 additions and 1443 deletions
+33 -96
View File
@@ -1,101 +1,38 @@
# Pathway Reviewer - Final Validation
# Content Refactor Review — Stage 3
## Verdict
Approved. All requested success criteria are met.
Approved for Stage 3. Continue to Stage 4.
## Findings
No blocking issues found.
## Gate Results
- `npm run lint`: pass (0 errors, 5 existing warnings)
- `npm run typecheck`: pass
- `npm run build`: pass
## Criteria Validation
- Hover parity across graph and cards: **Pass**
- Card hover drives graph highlight via `onNodeHighlight` -> `highlightedNodeId` -> `CareerConstellation` highlight effect.
- Graph hover drives card highlight via `onNodeHover` -> `highlightedRoleId` consumed by timeline cards.
- Hover jitter/reflow artifacts: **Pass**
- D3 initialization effect in `CareerConstellation` depends on `dimensions` only.
- Highlight updates are decoupled via refs/effect (`highlightGraphRef`) and no longer recreate simulation.
- Timeline/card date consistency from one canonical source: **Pass**
- Canonical entities are defined in `src/data/timeline.ts`.
- `consultations` and constellation role/edge data are compatibility layers derived from canonical timeline entities.
- Unified career/education card flow and pills: **Pass**
- `TimelineInterventionsSubsection` renders one ordered list from `timelineEntities`.
- Career entries show `Career Intervention` pill.
- Education entries show `Education Intervention` pill and right-aligned layout class.
- Standalone duplicate education section removed: **Pass**
- `DashboardLayout` uses unified timeline subsection; separate education subsection path is removed.
- Sidebar tags from canonical skill aggregation: **Pass**
- `src/data/tags.ts` derives tags from `getTopTimelineSkills()` (most frequent first).
- Quality gates: **Pass**
- `npm run lint`: pass (2 existing warnings, 0 errors)
- `npm run typecheck`: pass
- `npm run build`: pass
## Stage 3 Objective Validation
- Timeline/constellation narrative content is now canonicalized and consumed via selectors:
- `src/data/timeline.ts` hydrates `description`, `details`, `outcomes`, `codedEntries` from `getTimelineNarrativeEntry(...)`.
- `src/data/consultations.ts` is now a thin compatibility export over `timelineConsultations`.
- Search/chat duplicated profile copy migrated to canonical selectors:
- `src/lib/search.ts` uses `getAchievementEntries()`, `getEducationEntries()`, `getSearchQuickActions()`.
- `src/lib/llm.ts` uses `getLLMCopy().systemPrompt`.
- Canonical schema/content/helpers extended and typed:
- `src/types/profile-content.ts`
- `src/data/profile-content.ts`
- `src/lib/profile-content.ts`
- Contract stability checks in reviewed code paths:
- Timeline entity IDs and mapping exports remain intact.
- Palette item ID formats (`ach-*`, `edu-*`, `action-*`) and action wiring remain stable.
- Chat request body shape and stream handling unchanged.
- Stage tracker reflects Stage 3 completion:
- `Ralph/PROMPT.md` has Stage 13 checked and Stage 4 unchecked.
## Notes
- Validation for "no jitter" is based on lifecycle/code-path inspection plus successful build gates.
- Existing non-blocking warnings remain in context providers (`react-refresh/only-export-components`).
## Backpressure Evidence Addendum (2026-02-16T13:04:38Z)
### Command Outcomes
- `npm run lint`: **pass** (0 errors, 2 existing warnings in context providers)
- `npm run typecheck`: **pass**
- `npm run build`: **pass**
- `npm audit --omit=dev --json`: **pass** (0 known prod vulnerabilities)
### Required Build-Contract Fields
- `tests`: **not-configured** (`package.json` has no `test` script)
- `lint`: **pass**
- `typecheck`: **pass**
- `audit`: **pass**
- `coverage`: **not-configured** (no coverage tooling/scripts configured)
- `complexity`: **not-configured** (no complexity gate/tool configured)
- `duplication`: **not-configured** (no duplication analysis tool configured)
- `performance`: **not-configured** (optional; no perf gate configured)
- `specs`: **not-configured** (optional; no spec-validation gate configured)
### Manual Interaction Verification Record
- Desktop role/skill hover reliability (fill + border): **pass** (carried from prior reviewer validation in this loop; no new `src/` edits in this evidence-only task)
- Graph/timeline cross-highlight coherence: **pass** (carried from prior reviewer validation in this loop)
- Touch/coarse-pointer tap-to-pin and background clear: **pass** (carried from prior reviewer validation in this loop)
- Keyboard tab/focus/Enter/Space behavior: **pass** (carried from prior reviewer validation in this loop)
- Timeline ordering parity vs work-experience chronology: **pass** (carried from prior reviewer validation in this loop)
## Task-92f0 Addendum (2026-02-16T13:09:35Z)
### Timeline Parity + Token Alignment
- Timeline detail panel source: **pass** (`TimelineInterventionsSubsection` now resolves role details from canonical `timelineConsultations` map).
- Dashboard role detail source: **pass** (`handleRoleClick` now resolves from canonical `timelineConsultations` id map).
- "Last Consultation" source alignment: **pass** (`DashboardLayout` now derives this from canonical `timelineConsultations[0]`, matching career chronology ordering).
- Canonical mono token usage in timeline-adjacent UI: **pass** (`var(--font-mono)` replaced with `var(--font-geist-mono)` in timeline component path and retained legacy work-experience path).
- Legacy duplicate timeline path handling: **pass** (`WorkExperienceSubsection` retained as non-mounted fallback path; token-normalized to avoid future divergence if re-enabled).
### Interaction/Regression Sanity
- Desktop role/skill hover reliability (including node fill area): **pass** (carried forward from prior interaction remediation validation; this task made no `CareerConstellation` event-layer changes).
- Graph/timeline cross-highlight coherence: **pass** (no regressions observed by code-path review; highlight wiring untouched in this task).
- Touch/coarse-pointer and keyboard behavior: **pass** (carried forward; no touch/keyboard handler changes in this task).
### Build Gates
- `npm run lint`: **pass** (0 errors, 2 existing warnings in context providers).
- `npm run typecheck`: **pass**.
- `npm run build`: **pass**.
## Task-c78f Backpressure Closure Addendum (2026-02-16T13:12:56Z)
### Command Outcomes
- `npm run lint`: **pass** (0 errors, 2 existing warnings in context providers)
- `npm run typecheck`: **pass**
- `npm run build`: **pass**
- `npm audit --omit=dev --json`: **pass** (0 known prod vulnerabilities)
### Required Build-Contract Fields
- `tests`: **not-configured** (`package.json` has no `test` script)
- `lint`: **pass**
- `typecheck`: **pass**
- `audit`: **pass**
- `coverage`: **not-configured** (no coverage tooling/scripts configured)
- `complexity`: **not-configured** (no complexity gate/tool configured)
- `duplication`: **not-configured** (no duplication analysis tool configured)
- `performance`: **not-configured** (optional; no performance gate configured)
- `specs`: **not-configured** (optional; no specs-validation gate configured)
### Scope Confirmation
- This closure pass made no `src/` feature edits; evidence and event-contract compliance only.
## Required Next Work (Stage 4)
1. Cleanup/hardening:
- Remove or further reduce obsolete compatibility/duplicate structures where no longer needed, keeping only thin adapters with clear purpose.
- Tighten canonical access typing where possible (favor readonly returns and narrow key types for canonical sections).
2. One-file editing documentation:
- Add concise docs describing that shared descriptive/profile text should be edited in `src/data/profile-content.ts`.
- Include where typed selectors live (`src/lib/profile-content.ts`) and a brief "edit once, consumed everywhere" workflow.
3. Success criteria/status closure:
- Update `Ralph/PROMPT.md` success criteria checkboxes and mark Stage 4 complete only when cleanup/docs are done.
- Validate that representative shared text edits require changing only the canonical content file.