-
Notifications
You must be signed in to change notification settings - Fork 15
feat: component CodeEditor storybook #4274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
FelixBlaisThon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TextInput conflicts are in a lot of your PR since your last merge 🩹
48ad5d5 to
da2cd10
Compare
There was a problem hiding this 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 pull request refactors the CodeEditor Storybook stories from multiple hardcoded examples to a single configurable Demo story that uses Storybook's controls and shared argument types. This improves maintainability and provides a more interactive way to test the component.
Key changes:
- Consolidates 6 separate stories (Default, Disabled, Error, GraphQL, Python, XML) into a single Demo story
- Adopts shared InputWrapperArgs and InputWrapperArgTypes for standardized input props
- Removes form validation logic from stories, focusing purely on component configuration
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
da2cd10 to
763b13a
Compare
763b13a to
c1118ac
Compare
Proposed Changes
This pull request refactors the Storybook stories for the
CodeEditorcomponent to use a more standardized and maintainable approach. Instead of multiple custom stories with internal form logic, it now uses shared input arguments and argTypes, and consolidates the stories into a single, configurable demo.Storybook story simplification and standardization:
Demostory that leverages Storybook's controls for props, making it easier to test different configurations interactively.InputWrapperArgsandInputWrapperArgTypesto standardize input props and controls across stories.metaobject to include default args and argTypes for easier customization and better documentation.CodeEditorcomponent itself.Potential Breaking Changes
Acceptance Criteria