- Notifications
You must be signed in to change notification settings - Fork928
Upgrade frontend to React 18#3353
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
20 commits Select commitHold shift + click to select a range
d889b18
Upgrade to React 18
ammario7c5c2a1
Update react-dom
ammario54d5cce
Replace react-helmet with react-helmet-async
ammario6676cb3
Chase down errors
ammario8a0a73f
Simplify FC defs
ammario4928cf7
Run prettier
ammario8358053
Pin all new deps
ammario25d747d
Import PropsWithChildren in a few components
ammario5495f83
Fix remaining errors and most tests
ammario78448c4
Resolve more tests
ammariofafff02
Things are borked
ammariodab2f24
removing act; cleaning up tests
Kira-Pilotdf998c2
fixed UsersPage tests
Kira-Pilot876e740
fixed CreateWorkspacePage tests
Kira-Pilota5dc090
Wait for permissions too be loaded as well
BrunoQuaresma5fa1c0e
added cancelation test back
Kira-Pilot8cb1cd3
fixed workspacebuild test
Kira-Pilot087ebc2
disable floating promises in test file
Kira-Pilot29aedc6
fixing up lint
Kira-Pilotbc8a14d
resolving conflicts
Kira-PilotFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
19 changes: 10 additions & 9 deletionssite/package.json
This file contains hidden or 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 |
---|---|---|
@@ -39,16 +39,17 @@ | ||
"cron-parser": "4.5.0", | ||
"cronstrue": "2.11.0", | ||
"dayjs": "1.11.4", | ||
"formik": "^2.2.9", | ||
"front-matter": "4.0.2", | ||
"history": "5.3.0", | ||
"just-debounce-it": "3.0.1", | ||
"react": "^18.2.0", | ||
ammario marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
"react-dom": "18.2.0", | ||
"react-helmet-async": "1.3.0", | ||
"react-markdown": "8.0.3", | ||
"react-router-dom": "6.3.0", | ||
"sourcemapped-stacktrace": "1.1.11", | ||
"swr": "1.3.0", | ||
"tzdata": "1.0.30", | ||
"uuid": "8.3.2", | ||
"xstate": "4.32.1", | ||
@@ -70,13 +71,13 @@ | ||
"@storybook/addon-links": "6.5.9", | ||
"@storybook/react": "6.4.22", | ||
"@testing-library/jest-dom": "5.16.4", | ||
"@testing-library/react": "^13.3.0", | ||
"@testing-library/user-event": "^14.4.3", | ||
"@types/express": "4.17.13", | ||
"@types/jest": "27.4.1", | ||
"@types/node": "14.18.22", | ||
"@types/react": "18.0.15", | ||
"@types/react-dom": "18.0.6", | ||
"@types/react-helmet": "6.1.5", | ||
"@types/superagent": "4.1.15", | ||
"@types/uuid": "8.3.4", | ||
@@ -105,7 +106,7 @@ | ||
"jest-runner-eslint": "1.0.0", | ||
"jest-websocket-mock": "2.3.0", | ||
"mini-css-extract-plugin": "2.6.1", | ||
"msw": "^0.44.2", | ||
"prettier": "2.7.1", | ||
"prettier-plugin-organize-imports": "3.0.0", | ||
"react-hot-loader": "4.13.0", | ||
1 change: 0 additions & 1 deletionsite/src/AppRouter.tsx
This file contains hidden or 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
8 changes: 6 additions & 2 deletionssite/src/Main.tsx
This file contains hidden or 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
4 changes: 2 additions & 2 deletionssite/src/__mocks__/react-markdown.tsx
This file contains hidden or 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
21 changes: 12 additions & 9 deletionssite/src/app.tsx
This file contains hidden or 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
9 changes: 7 additions & 2 deletionssite/src/components/AppLink/AppLink.tsx
This file contains hidden or 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
4 changes: 2 additions & 2 deletionssite/src/components/AvatarData/AvatarData.tsx
This file contains hidden or 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
8 changes: 6 additions & 2 deletionssite/src/components/BorderedMenu/BorderedMenu.tsx
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsite/src/components/BorderedMenuRow/BorderedMenuRow.tsx
This file contains hidden or 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
5 changes: 4 additions & 1 deletionsite/src/components/BuildsTable/BuildsTable.tsx
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsite/src/components/CliAuthToken/CliAuthToken.tsx
This file contains hidden or 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
6 changes: 5 additions & 1 deletionsite/src/components/CodeBlock/CodeBlock.tsx
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsite/src/components/CodeExample/CodeExample.tsx
This file contains hidden or 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
13 changes: 5 additions & 8 deletionssite/src/components/ConfirmDialog/ConfirmDialog.test.tsx
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsite/src/components/ConfirmDialog/ConfirmDialog.tsx
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsite/src/components/CopyButton/CopyButton.tsx
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsite/src/components/CreateUserForm/CreateUserForm.tsx
This file contains hidden or 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
8 changes: 3 additions & 5 deletionssite/src/components/DeleteWorkspaceDialog/DeleteWorkspaceDialog.tsx
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsite/src/components/EmptyState/EmptyState.tsx
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsite/src/components/EnterpriseSnackbar/EnterpriseSnackbar.tsx
This file contains hidden or 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
4 changes: 2 additions & 2 deletionssite/src/components/ErrorBoundary/ErrorBoundary.tsx
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsite/src/components/ErrorSummary/ErrorSummary.tsx
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsite/src/components/Footer/Footer.tsx
This file contains hidden or 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
4 changes: 3 additions & 1 deletionsite/src/components/FormCloseButton/FormCloseButton.tsx
This file contains hidden or 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
2 changes: 1 addition & 1 deletionsite/src/components/FormFooter/FormFooter.tsx
This file contains hidden or 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
6 changes: 5 additions & 1 deletionsite/src/components/FormSection/FormSection.tsx
This file contains hidden or 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.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.