Skip to content

fix: keep unsent JOIN TES answers across a refresh - #84

Merged
dhananjay-123 merged 1 commit into
mainfrom
fix/join-form-draft
Oct 21, 2026
Merged

dhananjay-123 merged 1 commit into
mainfrom
fix/join-form-draft

Conversation

@dhananjay-123

Copy link
Copy Markdown
Collaborator

Summary

The JOIN TES form now keeps unsent answers in sessionStorage, so a refresh doesn't wipe them. They're cleared once the application is sent, or when the tab is closed. The resume and the consent box aren't saved, so those need doing again.

Related issue

Fixes #83

Validation

  • pnpm lint, pnpm typecheck
  • New e2e test: fill the form, refresh, answers come back and consent is unticked. Passes on desktop and mobile against a local database.

Answers are saved to sessionStorage as the applicant types and restored on load, so a refresh no longer empties the form. The resume and consent are left out, and the draft is cleared once the application is sent. Closes #83.
@dhananjay-123
dhananjay-123 merged commit e138bfc into main Oct 21, 2026
1 check passed
@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tes-website Ready Ready Preview Oct 21, 2026 2:49pm UTC

This branch was successfully deployed

1 active deployment
Preview — 79ef905f Deployed Oct 21, 2026 by vercel[bot]
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.

bug: Joining form loses entered data after refresh or reopening

1 participant