fix(ClaimProviderForm): add Storybook controls for all props#50
Merged
garrity-miepub merged 1 commit intomainfrom Feb 2, 2026
Merged
fix(ClaimProviderForm): add Storybook controls for all props#50garrity-miepub merged 1 commit intomainfrom
garrity-miepub merged 1 commit intomainfrom
Conversation
- Add comprehensive argTypes configuration for all component props - Add text controls for providerName, providerAddress, errorMessage, termsUrl, className - Add boolean control for isSubmitting - Disable controls for roleOptions/languageOptions (complex array props don't work well with default controls) - Add action handlers for onSubmit and onCancel - Add default args at meta level for initial control values - Add Playground story as primary interactive story for testing all controls - Keep existing stories (Default, WithoutProvider, WithError, Submitting, CustomRoles, WithCancel) The Playground story now allows dynamic manipulation of all supported props via the Storybook Controls panel.
There was a problem hiding this comment.
Pull request overview
This PR enhances the Storybook configuration for the ClaimProviderForm component by adding comprehensive controls for interactive prop manipulation. The changes enable developers to dynamically test different prop combinations through the Storybook Controls panel.
Changes:
- Added argTypes configuration with controls for text props (providerName, providerAddress, errorMessage, termsUrl, className) and boolean prop (isSubmitting)
- Disabled controls for complex array props (roleOptions, languageOptions) that don't work well with default controls
- Added a new Playground story as the primary interactive testing story
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
The Playground story now allows dynamic manipulation of all supported props via the Storybook Controls panel.
claim-provider-form.mov