Add commitment templates and presets to the create wizard select-type step#1194
Open
greatest0fallt1me wants to merge 1 commit into
Open
Add commitment templates and presets to the create wizard select-type step#1194greatest0fallt1me wants to merge 1 commit into
greatest0fallt1me wants to merge 1 commit into
Conversation
…t-type step Adds a preset/template picker to CreateCommitmentStepSelectType that prefills duration and max-loss in the configure step. Includes preset definitions, accessible UI with radiogroup/radio roles, keyboard support, draft persistence integration, tests (happy-dom + RTL), and CREATE_TEMPLATES.md documentation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@greatest0fallt1me is attempting to deploy a commit to the 1nonly's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Fixes #951
Summary
CommitmentPresettype andCOMMITMENT_PRESETSarray insrc/components/create/commitmentPresets.tswith three named presets (Conservative 90-day, Balanced 60-day, Aggressive 30-day)role="radiogroup"/role="radio") above the existing type cards inCreateCommitmentStepSelectTypeonApplyPresetcallback insrc/app/create/page.tsxto prefilldurationDaysandmaxLossPercentstate; all fields remain editable in the configure stepsrc/components/create/CreateTemplates.test.tsxcovering rendering, interaction, keyboard activation, accessibility, scratch option, and data validitydocs/CREATE_TEMPLATES.mddocumenting props, behavior, accessibility, and usage examplesTest plan
aria-checked=trueon that preset andaria-checked=falseon others🤖 Generated with Claude Code