chore(memory): capitalize session decisions and learnings
BDR-020 (pathology editor standalone), BDR-021 (zoneMatch inline port), LRN-025 (importNode XSS), LRN-026 (inline port pattern). Journal updated for 2026-05-22 sessions. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
f2c9c9bdb7
commit
dee98e3eac
3 files changed
+36
No files matched your search
@@ -143,3 +143,21 @@ Status: closed.
|
||||
editor.html = ~1630-line standalone SVG annotation tool (DOM manipulation, drag/drop, polygon editing, zoom, categories, export). Integrated into React app via `useRef` + `useEffect` mounting all vanilla JS logic into container refs. Only CSS restyled to Zoosteo tokens.
|
||||
Alt rejected: full React rewrite (convert all state to Zustand/useState, all DOM ops to React) — massive effort ~10x, high risk of subtle behavior differences in drag/polygon/zoom interactions.
|
||||
Status: closed.
|
||||
|
||||
---
|
||||
|
||||
## BDR-020 | 2026-05-22 | Pathology editor: standalone HTML, not React route
|
||||
|
||||
pathology-editor.html = standalone tool at project root, same pattern as SVG editor integration. Vanilla JS/CSS, no build step, no deps. Decoupled from React app entirely — zero imports from src/.
|
||||
**Why:** tool for domain experts editing JSON, not practitioners using main app. No shared state needed. Standalone = deployable anywhere, no Vite required.
|
||||
Alt rejected: React route with Zustand store — unnecessary coupling, heavier DX for a JSON editing tool.
|
||||
Status: closed.
|
||||
|
||||
---
|
||||
|
||||
## BDR-021 | 2026-05-22 | Port zoneMatch.ts inline into pathology editor
|
||||
|
||||
Fuzzy matching logic (normalizeLabel, levenshtein, scorePair, matchZone) duplicated inline in pathology-editor.html rather than imported from src/lib/zoneMatch.ts.
|
||||
**Why:** standalone HTML cannot import TS modules. Keeping identical algorithm ensures matching consistency between main app and editor.
|
||||
Alt rejected: extract to shared .js file — adds dependency management for a tool that should be zero-dep.
|
||||
Status: closed.
|
||||
Reference in new issue
Block a user