Skip to content

Conversation

@gdostie
Copy link
Collaborator

@gdostie gdostie commented Dec 31, 2025

Proposed Changes

This pull request refactors the Storybook stories for the CodeEditor component 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:

  • Replaces multiple custom stories (Default, Disabled, Error, GraphQL, Python, XML) with a single Demo story that leverages Storybook's controls for props, making it easier to test different configurations interactively.
  • Imports shared InputWrapperArgs and InputWrapperArgTypes to standardize input props and controls across stories.
  • Updates the meta object to include default args and argTypes for easier customization and better documentation.
  • Removes internal form logic and validation from stories, simplifying the examples and focusing on the CodeEditor component itself.

Potential Breaking Changes

Acceptance Criteria

  • The proposed changes are covered by unit tests
  • The potential breaking changes are clearly identified
  • README.md is adjusted to reflect the proposed changes (if relevant)

@github-actions
Copy link

@github-actions
Copy link

@gdostie gdostie marked this pull request as ready for review December 31, 2025 21:38
@gdostie gdostie requested a review from a team as a code owner December 31, 2025 21:38
@gdostie gdostie requested review from FelixBlaisThon and GermainBergeron and removed request for a team December 31, 2025 21:38
Base automatically changed from DS-41-connect-TextInput to master January 5, 2026 20:14
Copy link
Collaborator

@FelixBlaisThon FelixBlaisThon left a 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 🩹

Copilot AI review requested due to automatic review settings January 6, 2026 16:13
Copy link
Contributor

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

@gdostie gdostie merged commit 3e3e4fc into master Jan 6, 2026
9 checks passed
@gdostie gdostie deleted the DS-30-codeeditor branch January 6, 2026 16:44
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.

3 participants