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

Finish App Router Migration #615

Merged
merged 11 commits into from
Nov 11, 2024
Merged

Finish App Router Migration #615

merged 11 commits into from
Nov 11, 2024

Conversation

lukemun
Copy link
Contributor

@lukemun lukemun commented Oct 30, 2024

  • Migrate product page to app router
  • Refactor router to use dynamic app router
  • Refactor Product Card to clicking to stop click bubbling
  • Added new endpoint to query by product id

* * Create app router directory structure
* Added pages and root layout
* Temp made all components client as 1st migration step
* Renamed conflicting pages from pages router to *2

Ran locally and checked all pages load.

migrate all linked pages to app router

* Create a SC route for products (#602)

* Uploaded hardware db to vercel postgres
* Created producs-sc page with SC

Co-authored-by: Luke Munro <[email protected]>

* added vercel tracing target

* added vercel tracing target

* updated sentry import to nextjs

* removed withProfiler from about page

* Reconfigure layout (#606)

* Migrate layout to server

* fix a bunch of crap (#607)

* upgrade to next 15

* commented out session storage

* commented out crasher

* Moved some files and implemented naming conventions

* moved some css around to fix styling

* more refactor

* accidently removed dynamic export

* trying to disable vercel cache

---------

Co-authored-by: Luke Munro <[email protected]>
Co-authored-by: Luca Forstner <[email protected]>
Co-authored-by: Aidan Landen <[email protected]>

---------

Co-authored-by: Luke Munro <[email protected]>
Co-authored-by: Aidan Landen <[email protected]>
Co-authored-by: Luca Forstner <[email protected]>
Co-authored-by: Aidan Landen <[email protected]>
@lukemun lukemun requested a review from realkosty as a code owner October 30, 2024 21:00
Copy link

vercel bot commented Oct 30, 2024

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
empower ⬜️ Ignored (Inspect) Visit Preview Nov 11, 2024 5:46pm

next/src/pages/product2.jsx Fixed Show resolved Hide resolved
next/src/pages/product2.jsx Fixed Show fixed Hide fixed
@lukemun
Copy link
Contributor Author

lukemun commented Oct 30, 2024

Accidentally amended instead of creating a new commit :/

next/src/app/product/page.jsx Fixed Show fixed Hide fixed
next/src/app/product/page.jsx Fixed Show fixed Hide fixed
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.21%. Comparing base (89d9e8f) to head (6e332f6).
Report is 1 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #615      +/-   ##
==========================================
- Coverage   36.30%   36.21%   -0.09%     
==========================================
  Files          37       37              
  Lines         865      867       +2     
  Branches      109      111       +2     
==========================================
  Hits          314      314              
- Misses        532      536       +4     
+ Partials       19       17       -2     
Flag Coverage Δ
api 7.62% <ø> (ø)
frontend 54.75% <ø> (-0.21%) ⬇️
Components Coverage Δ
checkout_module 7.62% <ø> (ø)
product_component 56.41% <ø> (-0.37%) ⬇️

see 2 files with indirect coverage changes

- Reorganize files
- Call the flask backend from server side to show external spans
- Remove unused code
- Refactor directory structure to next js standards
- Add json.config for navigation
- Created server component for checkout with client form that accepts a server action
- Configured backend checkout to always throw out of inventory error
@landenai landenai merged commit 4082b48 into master Nov 11, 2024
18 of 19 checks passed
@landenai landenai deleted the finish-migrating-app-router branch November 11, 2024 17:48
Copy link

sentry-io bot commented Nov 11, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ Error: Not enough inventory for product incomplete-app-router-transaction View Issue

Did you find this useful? React with a 👍 or 👎

lukemun added a commit that referenced this pull request Dec 4, 2024
* Migrate to App Router (#600)

* * Create app router directory structure
* Added pages and root layout
* Temp made all components client as 1st migration step
* Renamed conflicting pages from pages router to *2

Ran locally and checked all pages load.

migrate all linked pages to app router

* Create a SC route for products (#602)

* Uploaded hardware db to vercel postgres
* Created producs-sc page with SC

Co-authored-by: Luke Munro <[email protected]>

* added vercel tracing target

* added vercel tracing target

* updated sentry import to nextjs

* removed withProfiler from about page

* Reconfigure layout (#606)

* Migrate layout to server

* fix a bunch of crap (#607)

* upgrade to next 15

* commented out session storage

* commented out crasher

* Moved some files and implemented naming conventions

* moved some css around to fix styling

* more refactor

* accidently removed dynamic export

* trying to disable vercel cache

---------

Co-authored-by: Luke Munro <[email protected]>
Co-authored-by: Luca Forstner <[email protected]>
Co-authored-by: Aidan Landen <[email protected]>

---------

Co-authored-by: Luke Munro <[email protected]>
Co-authored-by: Aidan Landen <[email protected]>
Co-authored-by: Luca Forstner <[email protected]>
Co-authored-by: Aidan Landen <[email protected]>

* Migrate about to app router
- Reorganize files
- Call the flask backend from server side to show external spans
- Remove unused code

* Migrate checkout flow to server actions (#617)

- Refactor directory structure to next js standards
- Add json.config for navigation
- Created server component for checkout with client form that accepts a server action
- Configured backend checkout to always throw out of inventory error

* fixed loader

* added logging statement for test

* testing sentry sdk

* testing sentry sdk

* ugraded sdk version

* added server action instrumentation

---------

Co-authored-by: Luke Munro <[email protected]>
Co-authored-by: Aidan Landen <[email protected]>
Co-authored-by: Luca Forstner <[email protected]>
Co-authored-by: Aidan Landen <[email protected]>
Co-authored-by: Aidan Landen <[email protected]>
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