-
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 Message component to Typescript #511
Conversation
- Change file extensions - Add ts types - Refactor code - Remove legacy code - Change tests to vitest
🦋 Changeset detectedLatest commit: 7f5411a 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 |
|
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.
Bug found: A timeout of zero or a negative number initiates a message dismissal. Mentioned in main issue.
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.
Good Job Guoda 👍. However, I found a couple of issues.
Did you fix it? |
packages/ui-components/src/components/Message/Message.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/Message/Message.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/Message/Message.component.tsx
Outdated
Show resolved
Hide resolved
Hey, @andypf and @edda. I made the changes and added comments for everything else. Thank You for the review. 🚀 Requested changes made:
Additional:
|
- Add Message component comment - Add "to do" notes for externalisation - Change variable names
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
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.
Good job! I have few comments left, lets jump on a call and discuss :) 🔢
packages/ui-components/src/components/Message/Message.component.tsx
Outdated
Show resolved
Hide resolved
- Remove unnecessary comments, use describe in tests instead - Remove test.each, separate tests and remove some variant tests - Remove .setup() from tests - Use waitFor instead of new Promise
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.
Getting close :) Few comments left
packages/ui-components/src/components/Message/Message.component.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.
Great! 🥇
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.
👍
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.
🚀
Summary
Message
component toTypeScript
, enhancing code quality, maintainability, and scalability.Changes Made
TypeScript Migration:
Message
component files toTypeScript
.Bug Fix:
Refactoring:
Testing:
Storybook
.vitest
.Cleanup:
.js
components.Documentation:
Storybook
documentation.Screenshot: Deprecated
.js
code on the left, migrated.ts
code on the right (see notes)Release:
changeset
file, mentioning the migration and bug fix.Related Issues
Testing Instructions
Storybook
Message
testsChecklist