Skip to content

Add draft saving for the new-dweet editor#548

Open
MattNotarangelo wants to merge 1 commit into
lionleaf:masterfrom
MattNotarangelo:feature/save-drafts
Open

Add draft saving for the new-dweet editor#548
MattNotarangelo wants to merge 1 commit into
lionleaf:masterfrom
MattNotarangelo:feature/save-drafts

Conversation

@MattNotarangelo

@MattNotarangelo MattNotarangelo commented May 1, 2026

Copy link
Copy Markdown

Dwitter is great, but going from ideation to an actual final dweet that you're proud of requires many rounds of iteration. Without any state management, this results in me just copy pasting noteworthy designs into a text file where I later have to try to figure out which is which, so it would be cool if dwitter provided this natively.

New features

  • Autosaving
  • Save as draft

Summary

  • Autosave the editor textarea to localStorage (debounced 500ms) so a refresh or accidental navigation no longer wipes your work
  • On reload, show an opt-in "Restore unsaved draft" prompt instead of auto-loading, so the classic starter animation still appears for fresh visits
  • Save as draft captures named copies; click the name to rename inline (Enter commits, Escape cancels); explicit Load button avoids accidentally overwriting in-progress edits
  • All drafts live in localStorage so no Django, schema, or auth changes

Testing

Autosaving
image

Save as draft
image

Adds client-side draft persistence to the submit box so iterating on a
dweet no longer means losing your work to a refresh or accidental
navigation.

- Autosave the editor textarea to localStorage on input (debounced 500ms)
- On reload, show an opt-in "Restore unsaved draft" prompt rather than
  auto-loading, so the classic starter animation still appears
- Save as draft button captures named copies; click the name to rename
  inline (Enter commits, Escape cancels), Load button explicitly loads
- All drafts live in localStorage; no server changes required

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@MattNotarangelo MattNotarangelo marked this pull request as ready for review May 1, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant