#188 Browser drafts can be replaced without warning
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#188
- issue
- state:closed
Found while writing the user guide for #172. Signed in on the website, a timeline not yet saved to the server is kept as a draft in the browser. **Only one draft is kept.** These replace it straight away (`loadDocument` calls `persistDraft`): - starting another with **+ New timeline** (`/editor?new=1`); - importing a file; - loading the sample. The confirmation in `mayReplace` only asks when there are unsaved changes in the open timeline. A draft that isn't open, or one already saved as a draft, can be lost without a word. On the website, the draft can only be reopened at `/editor`, and nothing links there unless the server is unavailable. **Possible fixes** - Keep several drafts, listed on the dashboard as "Drafts in this browser". - Or at least ask before replacing a draft that holds anything, and link to the open draft from the dashboard. docs/guide.md ("Drafts and signing in") currently tells readers that starting another timeline replaces the draft. https://github.com/openchronology/timeline-app/issues/188
Related
Open #188 Browser drafts can be replaced without warning in the timeline