-
Notifications
You must be signed in to change notification settings - Fork 44
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
Migrate move app and document files to root layout, migrate meet the team page and create test of the page #1064
base: develop
Are you sure you want to change the base?
Conversation
So they can be loaded for pages and app router
createTheme can not be imported in a server component that is what has been moved
…nt side and using next/navigation
… client side as needed
…odes interacting with cookies
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@boodland thanks so much for this. Thanks for putting so much time into this and your comments have been super helpful in navigating the PR. There are a couple things it would be good to address initially:
@annarhughes can do an indepth review. |
Hey @boodland thanks for such a huge effort on this migration so far 🌟 I saw the comments re challenges on dynamic routes and the integrations (MUI etc) and agree there are some tricky bits to this! For that reason and for reviewing purposes, I'd suggest we break down this work into smaller PRs, so we can review and support on each piece. We can merge each minor PR into a parent We could break down PRs in this order, roughly following the order of steps from the nextjs guide:
Apologies for not being more explicit about these steps, hoping they can help us move faster going forward 🙏 |
Hi @annarhughes, I completely agree, I wasn't aware of the complexity of the migration as I wasn't familiar with the codebase. I think your suggestion of using a parent app-router-migration PR to have the changes is mandatory as I don't see an easy (probably very very difficult) way of having both router versions (Pages and App) working together with i18n due to the current complexity, so having this parent PR is going to allow us to progressively migrate the logic and the pages without having to support both approaches, the idea is to have working App router with i18n routing which is very easy to achieve while Pages router wouldn't work, once all pages are migrated the PR should be able to be merged within dev. Let me know if I should consider anything else. |
Thanks for the quick response @boodland ! Thanks so much and look forward to seeing this working! |
Hi @annarhughes, no problem, very happy to contribute with the project. I have already followed the example you mention as well as other that combines i18n with and without routing for App router without any success for the moment. Those are toy examples with no dependencies or complexity (no dynamic routing) and that uses routing approach ([locale] dynamic route) which force us to move almost everything within pages into the [locale] dynamic route with the consequent overhead. I am going to start the parent PR with the sub PRs leaving the i18n migration for the last before the pages migration. I will work in the i18n migration sub PR to get it working for both router approaches, for the app one the implementation is straight forward and works smoothly, if I can't get it working for the Pages router we could consider the following solution:
Let's get the migration done 💪 . |
@boodland I like these suggestions, the 2 parent PRs sounds like a good approach too 🌟 i'm also hoping the pages don't take too long, and if its 2-3 days we can hold off all other merges for that time, no problem! |
@annarhughes perfect then. I am in the middle of a selection process for a position so maybe I won't be able to do any work until next week or later but I will take into account your availability and organise myself to do the work when can be reviewed. |
@boodland Anna is off for a bit so i will start picking this up. Here is a new parent branch to work off |
@boodland is this PR okay to be closed? |
Hi @eleanorreem, it is okay to close it but do not remove it as I am using it as reference for the subtasks. |
Migrated _document.tsx and _app.tsx to app router with a root layout
Migrated Meet The Team page to app router in order to test the root layout and added test
Issue link / number:
#1040 sub issue of #702
What changes did you make?
Migrated _document.tsx and _app.tsx configuration which implies to:
Why did you make the changes?
In order to be able to migrate the product from pages router to app router and benefits of all the new features available in the app router
Did you run tests?
Yes