TheWaterBugCompany / WALTA

Waterbug ALT App - Identify freshwater bug species and contribute to ecosystem health monitoring
0 stars 1 forks source link

Need to have a way of discarding edits #96

Closed TheCodeSharman closed 2 years ago

TheCodeSharman commented 3 years ago

Scenario:

  1. user edits a record but doesn't submit it
  2. then closes app and return later
  3. they click "Start Survey"
  4. the record previously edited is displayed

A this point there is no way to continue with a fresh survey unless the editted record is submitted.

Suggestion:

Given user is editing a record When they leave the edit "wizard" And there have been changes made Then open a dialogue the says "There are unsaved changes; Discard or Submit"

When Discard is selected Then the temporary record is deleted.

When Submit is selected Then the usual submit logic is called.

When they leave edit "wizard" And there are no changes Then discard the temprorary record.