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

Migrate index page to app router #341

Merged
merged 8 commits into from
Feb 7, 2024
Merged

Conversation

bklaing2
Copy link
Member

@bklaing2 bklaing2 commented Feb 5, 2024

Purpose

Migrate the current index page from the pages router to the app router

closes: Add github issue that originated this PR

Approach

Open Questions and Pre-Merge TODOs

  • For many of the components that are used in multiple pages, I created a Server version in cases that they were using features supported only in the pages router (e.g. useRouter). These are meant to be temporary until all of the pages are migrated
  • The current version of react-bootstrap isn't supported in server components. I created a 'use client' wrapper for the Grid, Row, Col, and Alert components because they are commonly used in server components.
  • Cypress injects a <script> tag into <head> when it runs it's tests, leading to hydration errors. I wrapped the contents of <head> in a <Suspense> boundary per this comment
  • I removed the Source Sans Pro <link> in favor of importing using next/font/google. Of course, it is now called Source Sans 3, so I had to remove references to Source Sans Pro in doi.css
  • I updated next-plausible, and moved its Provider into the <head> per its documentation

Learning

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

  • New feature (non-breaking change which adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to change)

Reviewer, please remember our guidelines:

  • Be humble in the language and feedback you give, ask don't tell.
  • Consider using positive language as opposed to neutral when offering feedback. This is to avoid the negative bias that can occur with neutral language appearing negative.
  • Offer suggestions on how to improve code e.g. simplification or expanding clarity.
  • Ensure you give reasons for the changes you are proposing.

@bklaing2 bklaing2 marked this pull request as ready for review February 5, 2024 18:24
@bklaing2 bklaing2 self-assigned this Feb 5, 2024
@bklaing2 bklaing2 requested a review from jrhoads February 5, 2024 18:24
Copy link

cypress bot commented Feb 5, 2024

1 flaky test on run #1047 ↗︎

0 64 0 0 Flakiness 1

Details:

Merge 8f84074 into cb3320a...
Project: akita Commit: b6b476349f ℹ️
Status: Passed Duration: 02:44 💡
Started: Feb 7, 2024 10:57 AM Ended: Feb 7, 2024 11:00 AM
Flakiness  cypress/e2e/statistics.test.ts • 1 flaky test • Tests

View Output

Test Artifacts
Overview > header Test Replay Screenshots

Review all test suite changes for PR #341 ↗︎

Copy link
Member Author

Choose a reason for hiding this comment

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

This was changed to accommodate the renaming of Source Sans Pro to Source Sans 3

@bklaing2 bklaing2 merged commit aaab84d into master Feb 7, 2024
11 checks passed
@bklaing2 bklaing2 deleted the migrate-index-page-to-app-router branch February 7, 2024 15:22
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.

None yet

2 participants