cds-snc / cds-snc/platform-forms-client
Clarify service worker message when triggered on submission
- Dominant language
- TypeScript
- Stars
- 46
- Forks
- 16
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 85
Description
### Description:
When a form update is detected after an end-user hits Submit, the current message may make them think their form was successfully submitted. The message should clearly explain that the submission was not completed and that they need to submit the form again after updating.

### Acceptance Criteria:
Determine whether we can identify which action triggered the service worker message:
- If the end-user selected **Submit**, display submission-specific content.
- If the end-user selected **Continue** or completed another action, display more general content.
- If the triggering action cannot be identified, **revise** the general message so it is clear that their most recent action was not completed.
Contributor guide
Research direction
Locate the service worker message and the code handling Submit, Continue, and other actions in the TypeScript/NextJS application. First trace how the triggering action reaches the message, then verify that known actions receive the appropriate wording and unknown actions clearly state that the most recent action was not completed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100