Skip to content
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

docs: fix type checking in storybook #2355

Merged
merged 5 commits into from
Aug 13, 2024
Merged

docs: fix type checking in storybook #2355

merged 5 commits into from
Aug 13, 2024

Conversation

talkor
Copy link
Member

@talkor talkor commented Aug 12, 2024

https://monday.monday.com/boards/3532714909/pulses/6272877557
For example:
Screenshot 2024-08-12 at 21 11 22

It will also fail storybook build and prevent releasing corrupted versions

@talkor talkor added breaking change vibe3 Related to 3.0 major labels Aug 12, 2024
@talkor talkor requested a review from a team as a code owner August 12, 2024 18:14
Copy link
Member Author

Choose a reason for hiding this comment

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

@YossiSaadi I had to revert this change, there were serious type issues otherwise. Maybe we can find other solution but I'm also ok with how it is now

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure I understand what exactly was reverted here 🫣

Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines +18 to +20
backButtonProps: Partial<ButtonProps>;
nextButtonProps: Partial<ButtonProps>;
finishButtonProps: Partial<ButtonProps>;
Copy link
Member Author

Choose a reason for hiding this comment

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

I changed it in a different PR since Button's children is now mandatory but I think making it a Partial is a better solution instead of providing children: '' as it already have defaults

@@ -39,6 +39,12 @@ const config: StorybookConfig = {
docs: {
autodocs: false
},
typescript: {
Copy link
Contributor

Choose a reason for hiding this comment

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

It read that simple? 🤦🏻‍♂️

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like it haha

@talkor talkor merged commit 3b0672d into vibe3 Aug 13, 2024
10 checks passed
@talkor talkor deleted the vibe3-fix-storybook-ts branch August 13, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change vibe3 Related to 3.0 major
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants