-
Notifications
You must be signed in to change notification settings - Fork 35
CUMULUS-3862: Upgrade React Router to v6 #1148
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
Open
jjmccoy
wants to merge
51
commits into
develop
Choose a base branch
from
CUMULUS-3862
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 46 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
a66abd6
init PR
jjmccoy 739d0f4
upgrade react router to v6.26.2
jjmccoy 2c0ed05
update App.js routing syntax
jjmccoy 293cc57
establish withRouter wrapper
jjmccoy 53d8d78
replace switch with routes syntax
jjmccoy 610f753
upgrade history dependency
jjmccoy 5d44d14
correct root reference for router
jjmccoy 3d1d72d
create search query params wrapper for React hook
jjmccoy 34b8594
establish new queryparams and useselector hooks
jjmccoy e4ce414
rework nested routes with login and auth to react router v6
jjmccoy 2eb453f
establish new UrlHelper HOC for query params
jjmccoy cc6b48d
fix router and location for auth to home page
jjmccoy f9cfced
consolidate HOC wrappers into one
jjmccoy 271d4dc
parent pages params to state routed
jjmccoy a5e31c3
initial routing updates for child pages
jjmccoy e232f64
link parent and child page routes for top navigation
jjmccoy 7a2b8f8
initial table config link and button params
jjmccoy 689dffe
refactor SortableTable and select table-configs
jjmccoy aa7e3ed
more table routing for links and buttons
jjmccoy 0ddab3f
addtl routing updates
jjmccoy c43285c
more routing updates and console error fixes
jjmccoy 34f4bfa
Merge branch 'develop' into CUMULUS-3862
jjmccoy 3010f1d
update changelog
jjmccoy 77ce9ab
update packages with --legacy-peer-deps for react router work
jjmccoy 1f39ea4
finalize routes
jjmccoy 538f684
fix rendering issues
jjmccoy 8d769d8
fix render routing for edit collection
jjmccoy df34d89
clean up notes and comment outs
jjmccoy 212fe1d
fix code to show stats in sidebar
jjmccoy d0f7ef6
fix table.js re-rendering useEffect issues
jjmccoy d54710b
clean up code and update util file
jjmccoy 2ecd9b6
Merge branch 'develop' into CUMULUS-3862
jjmccoy e12654d
--legacy-peer-deps for connected-react-router
jjmccoy bfeef94
apply createRoot import to index.js
jjmccoy 8cd4e44
address unit test failures for updated components
jjmccoy fb84511
replace url-helper with withUrlHelper in components to use router hooks
jjmccoy 27256e6
finalize withUrlHelper.js
jjmccoy e0458d1
unit test updates with react router hooks
jjmccoy fd274ac
update eslint for import circular dependency
jjmccoy 7207573
add eslint directive to withUrlHelper
jjmccoy 840f537
update changelog
jjmccoy 28ebd1c
Merge branch 'develop' into CUMULUS-3862
jjmccoy 57939ac
Merge branch 'develop' into CUMULUS-3862
jjmccoy 904bdfb
fix main_page_spec test errors
jjmccoy e06c9f4
Merge branch 'develop' into CUMULUS-3862
jjmccoy adfe826
fix lint error
jjmccoy 175ef09
pr feedback code cleanup
jjmccoy 8a5dc12
pr feedback code update
jjmccoy 12590a4
remove unnecessary code
jjmccoy 1c7dfba
Merge branch 'develop' into CUMULUS-3862
Nnaga1 aadd37e
Merge branch 'develop' into CUMULUS-3862
Nnaga1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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 |
|---|---|---|
|
|
@@ -11,20 +11,11 @@ This version of the dashboard requires Cumulus API >= v19.2.0-alpha.1 (TBD API r | |
|
|
||
| ### Changed | ||
|
|
||
| - **CUMULUS-3862** | ||
| - Updated documentation to account for short term React upgrade version dependency issues that arise using npm. | ||
|
|
||
| - **GitHub Issue 1162** | ||
| - Added documentation for beginners starting from scratch. | ||
|
|
||
| ### Changed | ||
|
|
||
| - **CUMULUS-3861** | ||
| - Updated React 17 to React 18 | ||
| - Removed test script references to Enzyme and replaced them with React compliant testing components | ||
|
|
||
| ### Changed | ||
|
|
||
| - **CUMULUS-3860/3870** | ||
| - Updated React and dependencies | ||
| - react 17.0.2 ⇒ 18.3.1 | ||
|
|
@@ -39,6 +30,13 @@ This version of the dashboard requires Cumulus API >= v19.2.0-alpha.1 (TBD API r | |
| `@cumulus/[email protected]` | ||
| - Updated the integration tests to work with updated API | ||
| - Updated packages to address [CVE-2024-21538] (https://github.com/advisories/GHSA-3xgq-45jj-v275) | ||
| - **CUMULUS-3862** | ||
| - Updated React Router v5.2.0 to v6.26.2 | ||
| - Updated routes and hooks for app navigation | ||
| - Established new router with withRouter.js HOC | ||
npauzenga marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - Established withUrlHelper.js HOC to later replace URL params utility | ||
| - Updated unit tests to accommodate component changes | ||
npauzenga marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - Updated documentation to account for short term React upgrade version dependency issues that arise using npm. | ||
| - **CUMULUS-3870** | ||
| - Remove launchpad security key information from cypress fixture for `valid-execution.json` | ||
| - Add placeholders for security information with `fakePassword` and `userName` | ||
|
|
||
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
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
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
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
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
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
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
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
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
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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.