Repository navigation
feat!: redesign quaire for 1.0 - #7
Merged
Merged
Conversation
- follow the path of the answers: only questions on the path are validated, answers of other branches are removed - add back(), canGoBack(), goTo(), getProgress(), isComplete() and reset() - add getState() and subscribe() for framework integration - add conditions for next questions and variants for dependent properties - add MULTI_SELECT and BOOLEAN, validation rules and custom validators - add a component registry and validateDefinition() - fix falsy answers, mutated result objects and slow flows - split the code into modules - ignore .claude in eslint BREAKING CHANGE: new data format and API. Items are questions with type, key, title and next, dependsOnResultProperties is replaced by variants, and the methods are renamed. See the migration table in the readme. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 of 3 tasks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What is accomplished by your PR?
New core for 1.0, based on the 1.0 review. The docs follow in a separate PR.
getState(),subscribe(),back(),canGoBack(),goTo(),goToNavigationItem(),getProgress(),isComplete(),getErrors(),reset()next: [{ when: { age: { gte: 18 } }, to: 'adult' }, { to: 'minor' }]dependsOnResultPropertiesand the nested option formatMULTI_SELECTandBOOLEANbuilt in, validation rules, custom validators, component registry instead of subclassingvalidateDefinition()finds mistakes in the datafalse,0), mutated result objects,isValid()in branched flows, about 1 s per answer in long flowsQuairefacadeconditional-branching,validation,wizard.claude/(local plan files brokeeslint .)Is there something controversial in your PR?
Breaking changes in the data format and API (planned for 1.0). The migration table is part of the docs PR.
Checklist
🤖 Generated with Claude Code