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
+7 -18
View File
@@ -1,18 +1,7 @@
# Scratchpad
## 2026-02-16T23:27:00Z — Planner Stage 1 framing
- Confirmed next unchecked rollout stage is Stage 1 in `Ralph/PROMPT.md`.
- Inventory completed across `src/data`, `src/components`, and search/chat builders. Major duplication centers are component literals (`PatientSummaryTile`, `Sidebar`) and builder-layer hardcoded text (`search.ts`, `llm.ts`) versus existing canonical domain data.
- Planned Stage 1 as schema + canonical module + typed access helpers + thin adapters only, with no component migration yet, to minimize regression risk.
- Confidence: 92/100. High confidence because scope is additive and preserves existing export contracts while preparing Stage 2/3 migrations.
## 2026-02-16T23:33:00Z — Builder Stage 1 Checkpoint A complete
- Implemented additive canonical text foundation only (no consumer rewires):
- `src/types/profile-content.ts` defines typed schema for profile, sidebar copy, results, education entries, quick actions, and LLM prompt content.
- `src/data/profile-content.ts` is now the single editable canonical module seeded with current descriptive literals from `PatientSummaryTile`, `Sidebar`, `search.ts`, and `llm.ts`.
- `src/lib/profile-content.ts` adds typed selectors (`getProfileContent`, `getProfileSummaryText`, `getSidebarCopy`, `getSearchQuickActions`, `getLLMCopy`).
- Quality gates passed:
- `npm run lint` (warnings only, no errors)
- `npm run typecheck`
- `npm run build`
- Confidence: 91/100. Safe additive checkpoint with no runtime behavior changes.
2026-02-17T00:00:00Z - Planner closure pass.
PROMPT gate check: `Ralph/PROMPT.md` already marks Stage 1-4 complete and includes `LOOP_COMPLETE`.
`ralph tools task ready` returned no ready tasks; one stale open task remained (`task-1771286249-a8b1`) for abandoned build backpressure recovery.
Decision (confidence 96): treat this as closure-only recovery, close the stale runtime task, and finish by printing LOOP_COMPLETE. No new plan emission because there is no unchecked stage.
2026-02-17T00:00:00Z - Recovery completion pass.
Verified runtime task state with `ralph tools task ready` and `ralph tools task list --status open`: no ready/open tasks remain.
Decision (confidence 99): objective is already complete and task queue is empty, so emit loop completion signal now.