Feat v0.7.9 workflow independence #63

Merged
xcaliber merged 5 commits from feat/v0.7.9-workflow-independence into main 2026-04-02 22:31:47 +00:00
Showing only changes of commit 0f7532d1f3 - Show all commits

View File

@@ -452,16 +452,13 @@
return;
}
// Success
if (result.status === 'advanced' || result.status === 'completed') {
showFormSuccess(result.status === 'completed'
? 'Thank you! Your submission is complete.'
: 'Submitted! Moving to the next step...');
if (result.status === 'advanced') {
setTimeout(function() { window.location.reload(); }, 1500);
}
// Success — API returns instance status: "active" (advanced) or "completed"
if (result.status === 'completed') {
showFormSuccess('Thank you! Your submission is complete.');
} else {
showFormSuccess('Your response has been submitted.');
// Still active = advanced to next stage — reload to render it
showFormSuccess('Submitted! Moving to the next step...');
setTimeout(function() { window.location.reload(); }, 1500);
}
} catch(e) {
alert('Network error: ' + e.message);