Keep dialog edits only on Save; hide Fit when there is nothing to fit
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Moment and duration dialogs applied edits as they were typed and kept them however the dialog closed. A new duration was added before its dialog opened, so clicking outside left it on the timeline; a new moment was added once anything was typed. Now only Save keeps a dialog's edits. Cancel, Escape, the close button, clicking outside and opening another entity restore what the dialog opened with (within the same timeline). Edits to an existing moment or duration still preview on the timeline as you type, but browser drafts are not stored meanwhile. A new moment or duration stays in its dialog until Save adds it (the time cursor shows where); deleting from a dialog drops its unkept edits first, so undo restores the entity as it was. An empty timeline no longer offers Fit: the toolbar button, the empty state's "Fit the timeline" and the menu's "Fit all" are hidden, and the empty state says the timeline has no moments yet. Fit also covers durations held in the page, so a timeline of durations alone fits them. Closes #75 Closes #76 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/e7fb4a0965ed70e7be86b8fc57308abd0989d7a9
Related
Open Keep dialog edits only on Save; hide Fit when there is nothing to fit in the timeline