-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore(ui): migrate AppShellProvider and CodeBlock to TypeScript #547
Conversation
🦋 Changeset detectedLatest commit: 21352ac The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
packages/ui-components/src/components/AppShellProvider/AppShellProvider.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/AppShellProvider/AppShellProvider.stories.tsx
Outdated
Show resolved
Hide resolved
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.
Please fix the Andreas comments and also from my side change index.js to use a deprecated one.
When we migrate Combobox and also Select we will delete all deprecated related files and change the exports in the index.js
…thub.com/cloudoperators/juno into gjaskiewicz/refactor-appshellprovider-ts
We close caause we need first to migrate the jsonviewer component and also codeblock |
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.
few comments
packages/ui-components/src/components/CodeBlock/CodeBlock.component.tsx
Outdated
Show resolved
Hide resolved
…thub.com/cloudoperators/juno into gjaskiewicz/refactor-appshellprovider-ts
It seems like a potential breaking change in apps to me. If type discrepency is problem in storybook I could just change a control type there. Otherwise it works when theme-light or theme-dark is entered with quotes. |
@gjaskiewicz Nice that it's just a Storybook issue. I think that the storybook documentation should stay unchanged though after the migration. At least to me, it's confusing why I can't just enter text and would have to use quotes, since |
packages/ui-components/src/components/AppShellProvider/AppShellProvider.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/AppShellProvider/AppShellProvider.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/CodeBlock/CodeBlock.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/StyleProvider/StyleProvider.component.tsx
Show resolved
Hide resolved
Agreed in this case. It is not a breaking change if we ensure that by default the prop is set to |
I removed null value as it resolves to "theme-dark" anyway. |
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.
Small comment on types in Storybook, but idk if necessary to change.
Otherwise Thank You for the type changes! Looks great. 🚀💪🤪
packages/ui-components/src/components/AppShellProvider/AppShellProvider.component.tsx
Show resolved
Hide resolved
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.
I left one comment that kinda nice to fix before we merge.
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.
LGTM from my side good job 🥇
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.
LGTM too! 🚀 Thank You!
Vacation time, the issues are addressed and fixed.
Summary
Migrate AppShellProvider and CodeBlock to TypeScript
Changes Made
Related Issues
Testing Instructions
npm i
npm run storybook
Checklist