SparkPost / SparkPost/developers.sparkpost.com

Data loss when switching among template editor tabs

Open
#378 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
API Blueprint
Stars
18
Forks
9
Avg merge
2d 1h
Merged PRs (30d)
3

Description

Scenario:

  1. Debug a template, run into an error
  2. Delete the offending code block.
  3. Encounter a different, earlier, error (which is odd but another issue - #377), about substitution values
  4. Go to the Test Data tab to check the substitution values
  5. Come back to the HTML tab
  6. Try to Undo the deletion of the code block from step 2.

Result: no undo. The code block is lost.

I expect a template editor with syntax highlight to behave like a code editor, and offer basic undo.

Sparkpost data loss

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the scenario in the template editor: delete a code block, switch to the Test Data tab, return to the HTML tab, and try Undo. Trace how each tab preserves editor state and undo history. Done means the deletion can be undone after switching tabs, without losing the existing tab behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.