-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wb1670.1.react18] Upgrade to React 18 (#2380)
## Summary: This builds off @jandrade's second attempt (that was PR #2372). The first commit is @jandrade's work from that PR, the subsequent commits are my additional changes to get us over the finish line. Issue: WB-1670 ### Dropdown fixes The `SingleSelect` virtualization was having an issue initially. The focus was not being shown on the first item on the list as it should. In investigation, I discovered a related issue where in virtualized lists, the first and last item could get skipped over when navigating with the keyboard. The following videos show the behavior for virtualized and non-virtualized variants to show that the issue has been fixed without breaking non-virtualized use. This video shows the before behavior, with the missing focus (a bug introduced with the React 18 update) and the skipped focus during navigation (a long term bug). https://github.com/user-attachments/assets/e7d3308e-33ed-4ed3-a9e7-5462404ae69c This video shows things after fixing them as part of this PR. https://github.com/user-attachments/assets/766dfb46-3358-474e-8718-e819e97c35e2 ## Test plan: `yarn test` `yarn typecheck` Author: somewhatabstract Reviewers: jandrade, beaesguerra, somewhatabstract Required Reviewers: Approved By: jandrade, beaesguerra Checks: ✅ Chromatic - Get results on regular PRs (ubuntu-latest, 20.x), ✅ Test / Test (ubuntu-latest, 20.x, 2/2), ✅ Test / Test (ubuntu-latest, 20.x, 1/2), ✅ Lint / Lint (ubuntu-latest, 20.x), ✅ Check build sizes (ubuntu-latest, 20.x), ✅ Chromatic - Build on regular PRs / chromatic (ubuntu-latest, 20.x), ✅ Publish npm snapshot (ubuntu-latest, 20.x), ⏭️ Chromatic - Skip on Release PR (changesets), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ gerald, ✅ Prime node_modules cache for primary configuration (ubuntu-latest, 20.x), ⏭️ dependabot Pull Request URL: #2380
- Loading branch information
1 parent
d67761d
commit e6abdd1
Showing
84 changed files
with
2,648 additions
and
907 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
"@khanacademy/wonder-blocks-birthday-picker": major | ||
"@khanacademy/wonder-blocks-testing-core": major | ||
"@khanacademy/wonder-blocks-accordion": major | ||
"@khanacademy/wonder-blocks-dropdown": major | ||
"@khanacademy/wonder-blocks-popover": major | ||
"@khanacademy/wonder-blocks-testing": major | ||
"@khanacademy/wonder-blocks-theming": major | ||
"@khanacademy/wonder-blocks-tooltip": major | ||
"@khanacademy/wonder-blocks-timing": major | ||
"@khanacademy/wonder-blocks-core": major | ||
"@khanacademy/wonder-blocks-data": major | ||
"@khanacademy/wonder-blocks-form": major | ||
"@khanacademy/wonder-blocks-i18n": major | ||
"@khanacademy/wb-dev-build-settings": major | ||
"@khanacademy/wonder-blocks-banner": major | ||
"@khanacademy/wonder-blocks-breadcrumbs": major | ||
"@khanacademy/wonder-blocks-button": major | ||
"@khanacademy/wonder-blocks-cell": major | ||
"@khanacademy/wonder-blocks-clickable": major | ||
"@khanacademy/wonder-blocks-grid": major | ||
"@khanacademy/wonder-blocks-icon": major | ||
"@khanacademy/wonder-blocks-icon-button": major | ||
"@khanacademy/wonder-blocks-labeled-field": major | ||
"@khanacademy/wonder-blocks-layout": major | ||
"@khanacademy/wonder-blocks-link": major | ||
"@khanacademy/wonder-blocks-modal": major | ||
"@khanacademy/wonder-blocks-pill": major | ||
"@khanacademy/wonder-blocks-progress-spinner": major | ||
"@khanacademy/wonder-blocks-search-field": major | ||
"@khanacademy/wonder-blocks-switch": major | ||
"@khanacademy/wonder-blocks-tokens": major | ||
"@khanacademy/wonder-blocks-toolbar": major | ||
"@khanacademy/wonder-blocks-typography": major | ||
"@khanacademy/wb-codemod": major | ||
--- | ||
|
||
Upgrade to React 18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.