Commit 9967644
committed
feat(web): timeline version history panel
Adds a History tab to the timeline editor's inspector region backed by
a new useTimelineVersions server-state hook (list, manual snapshot,
restore, delete over timeline.versions.*). Restore applies the
mutation response to the open editor via applyTimelineSequenceToStore
(extracted from useLoadTimelineIntoStore), which replaces the document,
sets the fresh baseUpdatedAt token, and clears undo history — so the
debounced autosave re-arms on the restored state instead of clobbering
it with pre-restore in-memory edits.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFVn8LPnkLRAGYUE3ucuKA1 parent 638a53b commit 9967644
6 files changed
Lines changed: 888 additions & 16 deletions
File tree
- web/src
- components/timeline
- __tests__
- hooks/timeline
- serverState
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
234 | | - | |
| 236 | + | |
235 | 237 | | |
236 | | - | |
| 238 | + | |
| 239 | + | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
243 | | - | |
| 246 | + | |
| 247 | + | |
244 | 248 | | |
245 | 249 | | |
246 | 250 | | |
| |||
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
266 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
267 | 277 | | |
268 | 278 | | |
269 | 279 | | |
270 | | - | |
| 280 | + | |
| 281 | + | |
271 | 282 | | |
272 | 283 | | |
273 | 284 | | |
| |||
610 | 621 | | |
611 | 622 | | |
612 | 623 | | |
613 | | - | |
| 624 | + | |
614 | 625 | | |
615 | 626 | | |
616 | 627 | | |
| |||
0 commit comments