feat: add dmc.Drawer drug browser with directorate cards and drug chips (Task 4.1)

This commit is contained in:
Andrew Charlwood
2026-02-06 13:51:24 +00:00
parent 0e4184541a
commit 5dc552f8c5
4 changed files with 202 additions and 1 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ Drawer selection → update_drug_selection → app-state store → load_pathway_
## Phase 4: Directorate Card Browser
### 4.1 dmc.Drawer layout
- [ ] Create `dash_app/components/drawer.py``make_drawer()` function:
- [x] Create `dash_app/components/drawer.py``make_drawer()` function:
- `dmc.Drawer(id="drug-drawer", position="right", size="480px")`
- **Top section**: "All Drugs" card — flat alphabetical list of all drug names from pathway_nodes level 3
- Each drug as a `dmc.Chip` or clickable badge, ID pattern: `{"type": "drug-chip", "index": drug_name}`