Skip to content
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

[C-5579] Upgrade react router to v6 #10879

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

dylanjeffers
Copy link
Contributor

@dylanjeffers dylanjeffers commented Jan 2, 2025

Description

Upgrades us from react-router v5 to v6. The primary goal here is to reimplement tabs using router logic and Outlets which are introduced in v6. Additionally, moving to v7 can help us improve bundle-size which im interested in as well.

I'd also like to remove the router from our redux store, which we can do safely using saga context.

Copy link

changeset-bot bot commented Jan 2, 2025

⚠️ No Changeset found

Latest commit: 16a478d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

gitguardian bot commented Jan 2, 2025

⚠️ GitGuardian has uncovered 5 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
11648676 Triggered Generic High Entropy Secret 16a478d cmd/core/infra/dev_config/discovery-one.docker.env View secret
11648678 Triggered Generic High Entropy Secret 16a478d cmd/core/infra/dev_config/content-three.docker.env View secret
11648679 Triggered Generic High Entropy Secret 16a478d cmd/core/infra/dev_config/content-two.docker.env View secret
11648680 Triggered Generic High Entropy Secret 16a478d cmd/core/infra/dev_config/content-one.docker.env View secret
9412812 Triggered Generic Password 16a478d dev-tools/compose/docker-compose.blockchain.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@dylanjeffers dylanjeffers requested review from a team and amendelsohn and removed request for a team January 2, 2025 20:26
Copy link
Contributor

@amendelsohn amendelsohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on 1st skim pass

lmk if there's any part you're nervous about and want a deeper review

@@ -499,7 +498,7 @@ function mapStateToProps(state: AppState, ownProps: OwnProps) {

function mapDispatchToProps(dispatch: Dispatch) {
return {
goToRoute: (route: string, state?: LocationState) =>
goToRoute: (route: string, state?: any) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there not a type we can use here?

@@ -159,11 +158,11 @@ class CollectionPage extends Component<
updatingRoute: false
}

unlisten!: UnregisterCallback
unlisten!: () => void
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this just not a thing anymore? can we remove unlisten or is it required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants