-
Notifications
You must be signed in to change notification settings - Fork 10
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
WB-1617: Remove Icon component #2128
Conversation
🦋 Changeset detectedLatest commit: f19069e The changes in this PR will be included in the next version bump. This PR includes changesets to release 15 packages
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 |
GeraldRequired Reviewers
Don't want to be involved in this pull request? Comment |
Size Change: -2.1 kB (-2%) Total Size: 90.8 kB
ℹ️ View Unchanged
|
npm Snapshot: Published🎉 Good news!! We've packaged up the latest commit from this PR (14d4d83) and published all packages with changesets to npm. You can install the packages in webapp by running: ./services/static/dev/tools/deploy_wonder_blocks.js --tag="PR2128" Packages can also be installed manually by running: yarn add @khanacademy/wonder-blocks-<package-name>@PR2128 |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2128 +/- ##
==========================================
- Coverage 97.06% 97.04% -0.02%
==========================================
Files 243 241 -2
Lines 28233 27989 -244
Branches 2469 2377 -92
==========================================
- Hits 27404 27163 -241
+ Misses 829 826 -3
Continue to review full report in Codecov by Sentry.
|
A new build was pushed to Chromatic! 🚀https://5e1bf4b385e3fb0020b7073c-uuksgpxsyu.chromatic.com/ Chromatic results:
|
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.
Awesome! Congrats!
My review uses Conventional Comments to add context and set expectations for the comments I am leaving.
"@khanacademy/wonder-blocks-icon": major | ||
--- | ||
|
||
Delete Icon component in favor of PhosphorIcon |
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.
praise: ❗ 😮 ❗
/** | ||
* All the possible icon sizes. | ||
*/ | ||
export type IconSize = "small" | "medium" | "large" | "xlarge"; |
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.
question: Since in TypeScript 5, all enums are union enums, I wonder if we should do an enum here instead of a string union? 🤷🏻 I don't feel strongly about it. Just asking the question.
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.
That's fair, I'll make the change. Thanks for the suggestion!
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.
After quickly making the change, I realized that this would mean that we'd have to replace a bunch of callers to make it compatible with this change. (same would happen with Button
, IconButton
, etc).
I've filed a ticket to evaluate this later: https://khanacademy.atlassian.net/browse/WB-1639
Summary:
This removes the Icon component from Wonder Blocks. This is possible now that we
have fully migrated to the new icon system! (Phosphor).
Issue: WB-1617
Test plan:
Verify that the tests pass and the docs look good.