Commit 6db9e7b
feat: sidebar re-architecture — settings modal, smooth collapse, compact parsing
Settings modal (Ctrl+,):
- Long-lived configuration moved out of the sidebar into a dedicated modal
with vertical tabs (Performance / Baseline / Experimental). Fixed height
(h-[640px] max-h-[85vh]) so switching tabs no longer reflows the dialog.
- Experimental tab gates Anomaly detection and Annotations behind opt-in
toggles — both default off so first-time users see a focused, lightweight
sidebar. Toggling re-introduces the respective panels and chart overlays.
- Danger zone at the bottom houses Reset, which used to be a red pill in the
header. Includes an explanation and auto-closes the modal on click.
Sidebar layout:
- Header card compressed from 4 rows to 2: brand + close on row 1, language
toggle + GitHub icon + theme + settings + help on row 2. Intro paragraph
and 'Online' badge removed.
- Width bumped to 22rem (was 20rem) to give the title room to breathe.
- Sidebar show/hide animates grid-template-columns alongside the chart area
using cubic-bezier(0.4, 0, 0.2, 1) so layout settles in one motion. Show
button cross-fades with a 200ms delay to avoid overlap.
- All collapsible cards animate height via a SmoothCollapse wrapper
(grid-template-rows: 0fr ↔ 1fr trick); display options tabs fade between.
Parsing controls (RegexControls):
- Per-metric rows reduced from ~8 lines to 2: 'Name' + name input + mode
select + delete on row 1, 'Pattern' + value input on row 2. Inline text
labels replace the verbose section headers; placeholders show concrete
examples (e.g. Loss / loss:).
- Preset dropdown extracted into a single 'From preset…' selector next to
Add Metric — picking inserts a pre-filled row.
- Step keyword inlined to one row; X/Y range condensed to one row each with
a tabular-nums input and inline reset; feature description block deleted.
- Presets: added 'Per Step Time' (per_step_time:), removed 'Accuracy'.
Chart defaults:
- Downsampling now defaults off. Small logs render every point; users can
opt in via Settings → Performance when investigating large runs.
Tests updated for the new Reset location (Settings → Experimental → Danger).
118 passing.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent a043e52 commit 6db9e7b
14 files changed
Lines changed: 773 additions & 434 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
| |||
174 | 183 | | |
175 | 184 | | |
176 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
177 | 205 | | |
178 | 206 | | |
179 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
| |||
174 | 183 | | |
175 | 184 | | |
176 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
177 | 205 | | |
178 | 206 | | |
179 | 207 | | |
| |||
0 commit comments