forked from bots-garden/ori
| ✨ Workspace panel, selectors, previews, desktop app, sandbox template, resizable file tree, light/dark theme | 1 | # Handoff — 2026-09-17 — Light / dark theme (ticket 0013) |
| 2 | ||
| 3 | ## State | |
| 4 | - Implemented, tested (124 vitest), gate PASS (#16), documented EN + FR, ticket closed. ori is running on :8888 with this build for the user's single end-of-work review — **their feedback has not been received yet** at the time of writing. | |
| 5 | ||
| 6 | ## In flight | |
| 7 | - Waiting for the user's review of both 0015 (resizable file tree) and 0013 (theme). Any adjustment they ask for is the next step. | |
| 8 | ||
| 9 | ## Next steps | |
| 10 | 1. Act on the review feedback, if any. | |
| 11 | 2. On the Mac: rebuild ori-desktop (`wails build`) — its `main.js` became an ES module during the quality cleanup; also check the ori page inside the desktop iframe picks the theme correctly (it is per-browser localStorage, so WKWebView has its own). | |
| 12 | 3. Commit — everything since 2434cc7 is still uncommitted (user's call). | |
| 13 | 4. Open tickets untouched: 0010 mermaid preview, 0014 architecture diagram update, and whatever else `ls .tickets/issues` shows as open. | |
| 14 | ||
| 15 | ## Watch out for | |
| 16 | - The dark palette is no longer applied by the OS preference; if someone reports "ori ignores my dark mode", that is by design (see the how-to and the architecture explanation), not a regression. | |
| 17 | - `theme.ts` stamps `<html>` at import time; tests that render `App` must call `resetTheme()` in `beforeEach` or they inherit the previous test's theme. |