-
Notifications
You must be signed in to change notification settings - Fork 65
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
Upgrade react-router to v6 #3337
Merged
Merged
Changes from 7 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
3c977e2
Upgrade react-router to v6
nickclyde 1f24239
Merge branch 'main' into nick/upgrade-react-router
nickclyde 0cda207
Fix tests
nickclyde 5007567
Merge branch 'main' into nick/upgrade-react-router
nickclyde 86e9268
Merge branch 'main' into nick/upgrade-react-router
nickclyde 6bb30ac
Code smells
nickclyde 7997852
Fix various TypeScript errors
nickclyde b57c3c4
Add missing useEffect dependency
nickclyde 3daf66c
Fix QueueItem storybook story
nickclyde 4fe9c77
Undo stupid change where I confused path params with URL search params
nickclyde 713319f
Forgot a few wildcards
nickclyde b60ef2d
Add test for Prompt
nickclyde 45db92a
Fix <Navigate> to props in AccountCreationApp
nickclyde 3a5e30c
Merge branch 'main' into nick/upgrade-react-router
nickclyde 414ab98
Make all navigation relative
nickclyde 93a2988
Fix tests
nickclyde d0ad467
Use absolute paths in places where it makes more sense
nickclyde ce65cdc
A few navigation bugfixes
nickclyde 66a434d
Code smells
nickclyde a2e0772
Add /reload-app path for reloading whoami query for TenantDataAccess
nickclyde 33c7d5f
A little more test coverage for <Prompt>
nickclyde 20256f8
Merge branch 'main' into nick/upgrade-react-router
nickclyde 6a3a4ab
Merge branch 'main' into nick/upgrade-react-router
nickclyde fda9951
DRY up App component
nickclyde 294d217
Apply style to active-nav-item class instead of using style prop
nickclyde 594b6b6
Revert App changes
nickclyde 7d43416
Merge branch 'main' into nick/upgrade-react-router
nickclyde 008ed0e
Merge branch 'main' into nick/upgrade-react-router
nickclyde 67789de
Merge branch 'main' into nick/upgrade-react-router
nickclyde 090742e
Fix self-reg link bug
nickclyde f1be9fc
Fix patients pagination bug
nickclyde c4e0aa4
Fix facility form bug
nickclyde dbc6dea
Fix tests
nickclyde de4ded2
Add test for pagination on patients view
nickclyde 2090d00
Move FacilityForm.test.tsx to proper directory
nickclyde 093a59c
Merge branch 'main' into nick/upgrade-react-router
nickclyde 1afbec1
Fix settings nav bug
nickclyde 7ab6b91
Merge branch 'main' into nick/upgrade-react-router
nickclyde 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 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
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.
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.
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.
Any reason why is this being grabed from query params and not the props
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.
this is what the url look like in test
https://test.simplereport.gov/app/settings/facility/7f1d9789-37b0-4a83-99fa-824403e95e90?facility=08ea10c8-a767-4d72-a60a-46dca51228bc
I see key of
facility
and notfacilityId
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.
So in that case, the uuid after
/facility
is the id of the facility being edited in the form, whereas thefacility
query param refers to the currently selected facility in the nav bar. We want the id from the url params because that's the one we actually want to edit in the form.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 makes sense, I wish it was a bit clearer which facility is which, but that could be addressed in a future refactor.