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

Feat: Migrate react router from v3 to v6 #2828

Merged
merged 87 commits into from
Jul 3, 2023

Conversation

cballevre
Copy link
Member

@cballevre cballevre commented Jan 13, 2023

### ✨ Features

* Migrate react router from v3 to v6

Related PRs:

@cballevre cballevre force-pushed the feat/migrate-react-router-from-v3-to-v6 branch from bc8d182 to 6a5604a Compare February 17, 2023 14:07
@bundlemon
Copy link

bundlemon bot commented Feb 17, 2023

BundleMon

Files updated (5)
Status Path Size Limits
drive/intents/drive.(hash).js
151.29KB (-117B -0.08%) 171KB
drive/vendors/drive.(hash).js
1.35MB (-613B -0.04%) 1.6MB
drive/app/drive.(hash).js
244.42KB (-1.04KB -0.42%) 255KB
drive/public/drive.(hash).min.css
89.46KB (-4.81KB -5.1%) 100KB
drive/public/drive.(hash).js
1.57MB (-68.04KB -4.06%) 1.65MB
Unchanged files (14)
Status Path Size Limits
drive/public/pdf.worker.entry.(hash).worker.j
s
343.37KB 345KB
drive/services/dacc/drive.js
252.18KB 500KB
drive/services/qualificationMigration/drive.j
s
246.9KB 500KB
drive/public/cozy-client-js.js
158.97KB 160KB
drive/app-drive.(hash).min.css
55.96KB 56KB
drive/intents-drive.(hash).min.css
37.03KB 40KB
drive/onlyOffice/slide.pptx
24.82KB 25KB
drive/onlyOffice/text.docx
5.84KB 6KB
drive/onlyOffice/spreadsheet.xlsx
5.01KB 6KB
drive/manifest.webapp
1.77KB 2KB
drive/index.html
531B 1KB
drive/intents/index.html
516B 1KB
drive/img/app-icon.(hash).svg
419B 1KB
drive/manifest.json
184B 1KB

Total files change -74.6KB -1.59%

Groups updated (4)
Status Path Size Limits
drive/intents/**
151.79KB (-117B -0.08%) +2%
drive/vendors/**
1.35MB (-613B -0.04%) +6%
drive/app/**
244.42KB (-1.04KB -0.42%) +1%
drive/public/**
2.16MB (-72.85KB -3.19%) +7%
Unchanged groups (4)
Status Path Size Limits
drive/screenshots/**
2.13MB +0.4%
drive/services/**
499.08KB +1%
drive/onlyOffice/**
35.68KB +0.4%
drive/img/**
419B +0.4%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@cballevre cballevre force-pushed the feat/migrate-react-router-from-v3-to-v6 branch 7 times, most recently from cddded3 to 7babba1 Compare February 17, 2023 17:25
@cballevre cballevre force-pushed the feat/migrate-react-router-from-v3-to-v6 branch from 720e40a to 22c4a62 Compare March 10, 2023 16:36
@cballevre cballevre force-pushed the feat/migrate-react-router-from-v3-to-v6 branch 3 times, most recently from abcd0e3 to cd9397f Compare April 3, 2023 11:23
@cballevre cballevre force-pushed the feat/migrate-react-router-from-v3-to-v6 branch 2 times, most recently from 42f28f3 to ec57baa Compare May 23, 2023 08:46
@cballevre cballevre marked this pull request as ready for review May 23, 2023 08:49
@cballevre cballevre requested a review from zatteo as a code owner May 23, 2023 08:49
zatteo and others added 24 commits July 3, 2023 16:37
test: Remove deprecated todo. PR has been merged.
The notes back button access files route and this was creating an blank page
Album toolbar is render into cozy-bar which don't have access to react-router-dom. So we can't use hooks inside, we have to share it with props
Relative path doesn't work in this case instead I used the pathname from useLocation
react-router-dom is not available anymore in cozy-bar because we removed the context from Cozy Drive. However MoreMenu has been moved inside cozy-bar in the meantime and make extensives use of these hooks.

We did not find any better solution that  props drilling.
@cballevre cballevre force-pushed the feat/migrate-react-router-from-v3-to-v6 branch from ec57baa to 64ac6bd Compare July 3, 2023 14:48
@cballevre cballevre enabled auto-merge (rebase) July 3, 2023 15:19
@cballevre cballevre merged commit e517866 into master Jul 3, 2023
3 checks passed
@cballevre cballevre deleted the feat/migrate-react-router-from-v3-to-v6 branch July 3, 2023 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants