fix: single resume flow — remove landing screen notice, auto-restore localStorage

Remove the duplicate "Resume where you left off" notice on the landing
screen. Now localStorage data is silently restored on form start, and
the email-based welcome-back modal on step 1 is the only resume prompt.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-07 10:45:07 -04:00
parent e42cccaf6d
commit 8c13a80843
1 changed files with 9 additions and 24 deletions

View File

@ -580,12 +580,7 @@
<div class="time-estimate">This application takes approximately 1520 minutes to complete.</div> <div class="time-estimate">This application takes approximately 1520 minutes to complete.</div>
<div id="resume-notice" class="resume-notice" style="display: none;"> <button class="btn btn-primary" onclick="startForm()" style="font-size: 1.1rem; padding: 1rem 3rem;">Begin Application</button>
You have saved progress from a previous session.
<a href="#" onclick="startForm(true); return false;" style="color: var(--forest); font-weight: 600;">Resume where you left off</a>
</div>
<button class="btn btn-primary" onclick="startForm(false)" style="font-size: 1.1rem; padding: 1rem 3rem;">Begin Application</button>
</div> </div>
<div class="progress-container" id="progress-container"> <div class="progress-container" id="progress-container">
@ -1086,28 +1081,18 @@
document.getElementById('landing-reg-price').innerHTML = document.getElementById('landing-reg-price').innerHTML =
`&euro;${tierPricing.perWeek} &euro;${REGISTRATION_PRICING.lastMin.perWeek}/wk`; `&euro;${tierPricing.perWeek} &euro;${REGISTRATION_PRICING.lastMin.perWeek}/wk`;
// Check for saved data on load function startForm() {
(function checkSavedProgress() {
const saved = localStorage.getItem(STORAGE_KEY);
if (saved) {
document.getElementById('resume-notice').style.display = 'block';
}
})();
function startForm(resume) {
document.getElementById('landing-screen').style.display = 'none'; document.getElementById('landing-screen').style.display = 'none';
document.getElementById('application-form').style.display = 'block'; document.getElementById('application-form').style.display = 'block';
document.getElementById('progress-container').style.display = 'block'; document.getElementById('progress-container').style.display = 'block';
if (resume) { // Silently restore any locally saved progress
const saved = localStorage.getItem(STORAGE_KEY); const saved = localStorage.getItem(STORAGE_KEY);
if (saved) { if (saved) {
try { try {
const data = JSON.parse(saved); restoreFormData(JSON.parse(saved));
restoreFormData(data); } catch (e) {
} catch (e) { console.error('Failed to restore saved data:', e);
console.error('Failed to restore saved data:', e);
}
} }
} }