cds-snc / cds-snc/platform-forms-client
Multiple alerts and toasts when reloading saved answers in a form
- Dominant language
- TypeScript
- Stars
- 46
- Forks
- 16
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 85
Description
## Context
https://cds-snc.freshdesk.com/a/tickets/29564
> When reloading answers in a modified published form, is it normal to get the prompt to check the answers even if the answers were saved for that same version of the form? I would think to only get this prompt if the answers were saved from a previous version of the form. This prompt also overlaps completely the prompt about the answers loaded successfully and both need to be dismissed manually. Couldn't those be combined?
## Description
Uploading saved answers to a modified form shows two different prompts and has to be closed manually. Can the prompts be combined?
## Steps to reproduce
1. Open a published form
2. Fill out the fields
3. Save to local file
4. Publish an update to the form
5. Reload answers
6. Displays alert prompt "we've updated this form, saved answers may no longer apply"
7. When dismissed, shows another prompt toast message: "your answers were loaded to the form"
## Expected behaviour
One popup at the moment an action triggers it
## Screenshots or videos
Contributor guide
Research direction
Follow the reproduction steps in the issue: save answers from a published form, publish an update, then reload the saved answers. Start by locating the alert and toast triggered by the reload flow. Done means the action shows only one popup rather than requiring both messages to be dismissed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100