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

perf: create (use-page-wrapper) route group and replace WithLayout from /bookings/[status] page + 8 low-risk single pages #18737

Merged
merged 9 commits into from
Jan 22, 2025

Conversation

hbjORbj
Copy link
Contributor

@hbjORbj hbjORbj commented Jan 17, 2025

What does this PR do?

  • Step towards removing usage of WithLayout and relying on a single layout file. We need to migrate all routes that use WithLayout into (use-page-wrapper) route group.
  • Made /bookings/[status] + 8 single pages below to use a common layout (all the pages migrated in this PR do not have getServerSideProps, so they are lower-risk pages)
Screenshot 2025-01-18 at 5 36 28 PM of the GitHub issue description)

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • N/A - I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Please use the latest Vercel preview and test please 🙏.

Copy link

vercel bot commented Jan 17, 2025

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Jan 20, 2025 10:27pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Jan 20, 2025 10:27pm

@graphite-app graphite-app bot requested a review from a team January 17, 2025 18:35
@keithwillcode keithwillcode added consumer core area: core, team members only labels Jan 17, 2025
@hbjORbj hbjORbj marked this pull request as draft January 17, 2025 18:36
@hbjORbj hbjORbj changed the title chore: removing withlayout from bookings status page chore: removing WithLayout from /bookings/[status] page Jan 17, 2025
@hbjORbj hbjORbj changed the title chore: removing WithLayout from /bookings/[status] page chore: create (use-page-wrapper) route group and replace WithLayout from /bookings/[status] page Jan 17, 2025
@dosubot dosubot bot added the bookings area: bookings, availability, timezones, double booking label Jan 17, 2025
Copy link

graphite-app bot commented Jan 17, 2025

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (01/17/25)

1 reviewer was added to this PR based on Keith Williams's automation.

@@ -3,10 +3,10 @@ const { nextJsOrgRewriteConfig } = require("./getNextjsOrgRewriteConfig");
/** Needed to rewrite public booking page, gets all static pages but [user] */
// Pages found here are excluded from redirects in beforeFiles in next.config.js
let pages = (exports.pages = glob
.sync("{pages,app}/**/[^_]*.{tsx,js,ts}", { cwd: __dirname })
.sync("{pages,app,app/(use-page-wrapper)}/**/[^_]*.{tsx,js,ts}", { cwd: __dirname })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

including dirs inside app/(use-page-wrapper)

Copy link
Contributor

github-actions bot commented Jan 17, 2025

E2E results are ready!

* move /403 and /500

* move /auth/error

* move /connect-and-join

* move /enterprise

* move /maintenance

* move /more

* move /upgrade
@hbjORbj hbjORbj changed the title chore: create (use-page-wrapper) route group and replace WithLayout from /bookings/[status] page chore: create (use-page-wrapper) route group and replace WithLayout from /bookings/[status] page + 8 low-risk single pages Jan 18, 2025
@@ -27,4 +26,4 @@ async function Error403() {
);
}

export default WithLayout({ ServerPage: Error403 });
export default Error403;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

all the pages migrated in this PR do not have getServerSideProps, so they are lower-risk pages

@hbjORbj hbjORbj changed the title chore: create (use-page-wrapper) route group and replace WithLayout from /bookings/[status] page + 8 low-risk single pages perf: create (use-page-wrapper) route group and replace WithLayout from /bookings/[status] page + 8 low-risk single pages Jan 19, 2025
@hbjORbj hbjORbj added performance area: performance, page load, slow, slow endpoints, loading screen, unresponsive ready-for-e2e and removed ready-for-e2e labels Jan 19, 2025
Copy link
Contributor

@joeauyeung joeauyeung left a comment

Choose a reason for hiding this comment

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

Pages are working as expected

@hbjORbj hbjORbj merged commit f0d1c92 into main Jan 22, 2025
40 checks passed
@hbjORbj hbjORbj deleted the chore/removing-WithLayout-from-bookings-status-page branch January 22, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bookings area: bookings, availability, timezones, double booking consumer core area: core, team members only performance area: performance, page load, slow, slow endpoints, loading screen, unresponsive ready-for-e2e
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants