diff --git a/IMPLEMENTATION_PLAN.md b/IMPLEMENTATION_PLAN.md index d9c48b5..22ab726 100644 --- a/IMPLEMENTATION_PLAN.md +++ b/IMPLEMENTATION_PLAN.md @@ -256,6 +256,14 @@ Drawer selection → update_drug_selection → app-state store → load_pathway_ - [x] Verify: No Reflex imports anywhere in `dash_app/` - **Checkpoint**: Full application works, no Reflex remnants, CLAUDE.md updated + + +## Phase 6: Update all documentation +- [x] Remove `reflex` references from all documentation +- [x] Verify: No Reflex mentions of reflex in any md files (archive/ excluded — historical) +- [x] Add documentation in readme re how to run dash app +- [x] Update all claude.md files (CLAUDE.md was updated in Task 5.4) +- **Checkpoint**: Full application works, no Reflex remnants, CLAUDE.md updated --- ## Completion Criteria diff --git a/RALPH_PROMPT.md b/RALPH_PROMPT.md index c366505..1514bad 100644 --- a/RALPH_PROMPT.md +++ b/RALPH_PROMPT.md @@ -1,128 +1,124 @@ -# Ralph Wiggum Loop - Drug-Aware Indication Matching +# Ralph Wiggum Loop — Dash Application Maintenance -You are operating inside an automated loop extending a pathway analysis application with drug-aware indication matching. Each iteration you receive fresh context — you have NO memory of previous iterations. Your only memory is the filesystem. +You are operating inside an automated loop maintaining an NHS patient pathway analysis tool built with Dash (Plotly) + Dash Mantine Components. Each iteration you receive fresh context — you have NO memory of previous iterations. Your only memory is the filesystem. -**Current Focus**: Update indication charts so that patient indications are matched **per drug**, not just per patient. Each drug must be validated against the patient's GP diagnoses AND the drug-to-indication mapping from DimSearchTerm.csv. +**Current Focus**: Maintain and enhance the Dash application in `dash_app/`. The backend (`src/`) provides shared data access and visualization functions. The design target is `01_nhs_classic.html`. ## First Actions Every Iteration Read these files in this order before doing anything else: -1. `progress.txt` — What previous iterations accomplished, what's blocked, and what to do next. The most recent entry is most important. -2. `IMPLEMENTATION_PLAN.md` — Task list with status markers, project overview, and completion criteria. +1. `progress.txt` — What previous iterations accomplished, what's blocked, and what to do next. +2. `IMPLEMENTATION_PLAN.md` — Task list with status markers, architecture overview, and completion criteria. 3. `guardrails.md` — Known failure patterns to avoid. You MUST read and follow these. -4. `CLAUDE.md` — Project architecture and code patterns. +4. `CLAUDE.md` — Project architecture and backend code patterns. Then run `git log --oneline -5` to see recent commits. +## Reading the Design Reference + +**When building ANY UI component**, read `01_nhs_classic.html` first: +- It contains the exact CSS classes, HTML structure, and visual layout you must replicate +- CSS lives in the `