Skip to content

Preserve new snippet drafts when creation fails - #669

Open
hackjutsu wants to merge 1 commit into
masterfrom
codex/issue-414-local-draft
Open

Preserve new snippet drafts when creation fails#669
hackjutsu wants to merge 1 commit into
masterfrom
codex/issue-414-local-draft

Conversation

@hackjutsu

Copy link
Copy Markdown
Owner

Summary

  • save each submitted new snippet as a per-user local draft before the GitHub request
  • keep the editor open on request failure and restore the draft after an app restart
  • clear the draft only after successful creation and explain recovery in localized notifications

Testing

  • npm run lint
  • npm test (216 tests and webpack development build)
  • npm run test:smoke (Electron app launch plus authenticated render fixtures, including the New editor)

Live GitHub Gist creation was not exercised against a real account; failure and recovery behavior is covered by focused unit tests.

Closes #414

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.

when sync failed , file will missing

1 participant