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

fix: Import resolution problem inside Storybook of cozy-harvest #2715

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

cballevre
Copy link
Member

The Storybook for Harvest could not resolve cozy-ui/react/ as it isn't present in the transpiled version. To resolve this, I updated the import to use relative paths consistently with the rest of the codebase. Additionally, as ShortcutTile is a TypeScript file, I needed typed versions of all components it relies on, so I added JSDoc to Typography to ensure compatibility.

Copy link

bundlemon bot commented Nov 7, 2024

BundleMon

Unchanged files (3)
Status Path Size Limits
dist/cozy-ui.min.css
20.23KB +10%
dist/cozy-ui.utils.min.css
10.91KB +10%
transpiled/react/stylesheet.css
4.83KB +10%

No change in files bundle size

Groups updated (1)
Status Path Size Limits
transpiled/react/**
644.87KB (+713B +0.11%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@cballevre cballevre merged commit df81357 into master Nov 7, 2024
12 checks passed
@cballevre cballevre deleted the fix/import-resolution-problem branch November 7, 2024 17:25
@cozy-bot
Copy link

cozy-bot commented Nov 7, 2024

🎉 This PR is included in version 113.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

* @property {string} [color] - The color of the text.
* @property {string} [variant] - The variant of the text.
* @property {React.ReactNode} children - The content of the component.
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

on aurait peut-être pu mettre toutes les props... 🤔 https://v4.mui.com/api/typography/#typography-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants