fix: harden commitment creation wizard and draft recovery - #1877
Closed
Vivianndev wants to merge 30 commits into
Closed
Vivianndev wants to merge 30 commits into
Vivianndev wants to merge 30 commits into
Conversation
|
@Vivianndev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
@Vivianndev is attempting to deploy a commit to the 1nonly's projects Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
@Commitlabs-Org Hi! This PR is open and ready for review — happy to address any feedback. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR hardens the commitment creation wizard and draft recovery flow by defining explicit state, data, authorization, and failure invariants; adding focused unit and integration tests for success, failure, loading, empty, retry, and permission states; and verifying keyboard, focus, screen-reader, responsive, and reduced-motion behavior — with regression coverage for draft persistence and duplicate-submission prevention.
Related Issue
Refs #568
Changes
🧙 Commitment Wizard & Draft Recovery
[MODIFY]
src/app/create/page.tsxaria-currenton step transitions for keyboard and screen-reader users.[ADD]
src/lib/commitmentDraftStorage.ts[ADD]
src/lib/commitmentValidation.ts[ADD]
src/app/create/__tests__/create-page.test.tsx[ADD]
src/components/create/__tests__/ResumeDraftPrompt.test.tsxVerification Results
Design Tradeoffs & Remaining Limitations
localStoragewith a versioned envelope; cross-tab sync is intentionally out of scope to avoid merge conflicts.prefers-reduced-motionmedia queries in the wizard UI; no animation library is introduced.Closes #1752