Skip to content

fix(ClaimProviderForm): add Storybook controls for all props#50

Merged
garrity-miepub merged 1 commit intomainfrom
feature/claim-provider-form-updates
Feb 2, 2026
Merged

fix(ClaimProviderForm): add Storybook controls for all props#50
garrity-miepub merged 1 commit intomainfrom
feature/claim-provider-form-updates

Conversation

@garrity-miepub
Copy link
Copy Markdown
Contributor

  • 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.

claim-provider-form.mov

- 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.
Copilot AI review requested due to automatic review settings February 2, 2026 23:30
@garrity-miepub garrity-miepub marked this pull request as ready for review February 2, 2026 23:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@garrity-miepub garrity-miepub merged commit d8d4e9c into main Feb 2, 2026
10 checks passed
@garrity-miepub garrity-miepub deleted the feature/claim-provider-form-updates branch February 2, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants