This file collects architecture and design notes for studio that aren't otherwise discoverable from code or commit history. Future agents (and humans) should read this before making non-trivial changes.
docs/status-redesign.md— port of analytics-viz visualizations + spec system into the instance Status tab. Covers: 7-tab IA, the data-path adapter (no SQL —get_analyticsonly), bucket-by-window clamps, chart-surface CSS tokens, feature-flag rollback, testing strategy. Read before touchingsrc/features/instance/status/**.
- Data path to a Harper instance: always via
instanceClient.post('/', { operation: ... }). Never SQL, never new endpoints, never a separate transport. - Styling stack: Tailwind 4 + Radix UI + design tokens in
src/index.css.cn()fromsrc/lib/cnis the canonical class-merge helper. - Routing: TanStack Router, file-based, lazy-loaded.
- Data fetching: TanStack React Query 5. Query keys must be instance-scoped when the request targets a specific instance.