Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Migrate Routes To App Router #440

Merged
merged 17 commits into from
Jul 2, 2024
Merged

Migrate Routes To App Router #440

merged 17 commits into from
Jul 2, 2024

Conversation

AdrianAndersen
Copy link
Member

@AdrianAndersen AdrianAndersen commented Jun 25, 2024

This turned out to be a bit more chonky than I foresaw....

However, this PR migrates us to the latest and greatest in the world of Next js. Now all routes are on the app router! 💯

I switched out Redux with Zustand for simplicity, seems like it is what the cool kids use these days. We might discuss the global state handling at a later stage.

The big thing here is that I have deleted a lot or dead code. A few years ago i coded up some ugly meant-to-be replacements for bl-web stuff. However, most of that is terrible terrible code, and even worse design. Therefore, I just opted to chuck it, as I want to rewrite it all when we actually want to prod those pages. I kept what seemed nice, and put it under the "under-construction" route. From there, we can move them out when we feel ready to move them into production.

This PR is super chonky, so I would mainly appreciate it if you helped test the info and /matches routes, as these are the only ones currently in production.

Copy link

vercel bot commented Jun 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bl-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2024 10:05pm

@AdrianAndersen AdrianAndersen self-assigned this Jun 25, 2024
@AdrianAndersen
Copy link
Member Author

Migrer til app router

@AdrianAndersen AdrianAndersen marked this pull request as ready for review July 1, 2024 21:11
Copy link
Contributor

@LarsSelbekk LarsSelbekk left a comment

Choose a reason for hiding this comment

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

Leaving an extremely first-glance review so you have something to do, haven't gotten past the first page of reimplementation so more review is coming

next.config.js Show resolved Hide resolved
.eslintrc.js Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
src/utils/bl-config.ts Outdated Show resolved Hide resolved
src/utils/useGlobalState.ts Outdated Show resolved Hide resolved
@LarsSelbekk LarsSelbekk self-requested a review July 1, 2024 22:28
src/app/layout.tsx Outdated Show resolved Hide resolved
src/components/AuthLinker.tsx Outdated Show resolved Hide resolved
src/components/AuthLinker.tsx Outdated Show resolved Hide resolved
src/components/BranchSelect.tsx Outdated Show resolved Hide resolved
src/components/BranchSelect.tsx Outdated Show resolved Hide resolved
src/pages/index.tsx Show resolved Hide resolved
Copy link
Contributor

@LarsSelbekk LarsSelbekk left a comment

Choose a reason for hiding this comment

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

🤠🤡

@AdrianAndersen AdrianAndersen merged commit ef151b2 into main Jul 2, 2024
8 checks passed
@AdrianAndersen AdrianAndersen deleted the app-router branch July 2, 2024 22:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants