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

chore: app router - /reschedule pages #18150

Merged
merged 7 commits into from
Dec 18, 2024
Merged

Conversation

hbjORbj
Copy link
Contributor

@hbjORbj hbjORbj commented Dec 13, 2024

What does this PR do?

  • Fixes CAL-4884

Tested

Screen.Recording.2024-12-17.at.11.19.15.PM.mov

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?

  • Make a booking, get its uid and go to /reschedule/[uid]

@hbjORbj hbjORbj marked this pull request as draft December 13, 2024 03:42
@graphite-app graphite-app bot requested a review from a team December 13, 2024 03:42
@dosubot dosubot bot added the foundation label Dec 13, 2024
@keithwillcode keithwillcode added consumer core area: core, team members only labels Dec 13, 2024
Copy link

vercel bot commented Dec 13, 2024

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 Dec 18, 2024 4:21am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Dec 18, 2024 4:21am

Copy link

graphite-app bot commented Dec 13, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (12/13/24)

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

"Add foundation team as reviewer" took an action on this PR • (12/18/24)

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

Copy link
Contributor

github-actions bot commented Dec 13, 2024

E2E results are ready!

Copy link

linear bot commented Dec 13, 2024

import { headers, cookies } from "next/headers";

import { buildLegacyCtx } from "@lib/buildLegacyCtx";
import { getServerSideProps } from "@lib/reschedule/[uid]/getServerSideProps";

export const generateMetadata = async () =>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The metadata generation would never be used since the user will be redirected before the page renders.

@hbjORbj hbjORbj marked this pull request as ready for review December 18, 2024 04:20
@graphite-app graphite-app bot requested a review from a team December 18, 2024 04:20
Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

@hbjORbj hbjORbj merged commit a7f24e7 into main Dec 18, 2024
38 checks passed
@hbjORbj hbjORbj deleted the chore/reschedule-app-router branch December 18, 2024 13:54
hbjORbj added a commit that referenced this pull request Dec 18, 2024
hbjORbj added a commit that referenced this pull request Dec 18, 2024
hbjORbj added a commit that referenced this pull request Dec 19, 2024
* app router - /reschedule pages

* add to config.matcher

* generateMetdata is not needed
hbjORbj added a commit that referenced this pull request Dec 19, 2024
* app router - /reschedule pages

* add to config.matcher

* generateMetdata is not needed
hbjORbj added a commit that referenced this pull request Dec 19, 2024
…schedule pages to App Router (#18261)

* chore: app router - /reschedule pages (#18150)

* app router - /reschedule pages

* add to config.matcher

* generateMetdata is not needed

* include app directory in rewrites generation logic

* make it more readable

* make code more elegant

* fix

* fix

* fix

* fix

* test and refactor
MuhammadAimanSulaiman pushed a commit to hit-pay/cal.com that referenced this pull request Jan 10, 2025
* app router - /reschedule pages

* add to config.matcher

* generateMetdata is not needed
MuhammadAimanSulaiman pushed a commit to hit-pay/cal.com that referenced this pull request Jan 10, 2025
MuhammadAimanSulaiman pushed a commit to hit-pay/cal.com that referenced this pull request Jan 10, 2025
…schedule pages to App Router (calcom#18261)

* chore: app router - /reschedule pages (calcom#18150)

* app router - /reschedule pages

* add to config.matcher

* generateMetdata is not needed

* include app directory in rewrites generation logic

* make it more readable

* make code more elegant

* fix

* fix

* fix

* fix

* test and refactor
MuhammadAimanSulaiman pushed a commit to hit-pay/cal.com that referenced this pull request Feb 20, 2025
* app router - /reschedule pages

* add to config.matcher

* generateMetdata is not needed
MuhammadAimanSulaiman pushed a commit to hit-pay/cal.com that referenced this pull request Feb 20, 2025
MuhammadAimanSulaiman pushed a commit to hit-pay/cal.com that referenced this pull request Feb 20, 2025
…schedule pages to App Router (calcom#18261)

* chore: app router - /reschedule pages (calcom#18150)

* app router - /reschedule pages

* add to config.matcher

* generateMetdata is not needed

* include app directory in rewrites generation logic

* make it more readable

* make code more elegant

* fix

* fix

* fix

* fix

* test and refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants