-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 - /event-types pages #18181
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
@@ -281,7 +240,7 @@ const EventTypeWeb = ({ | |||
} as const; | |||
|
|||
useHandleRouteChange({ | |||
watchTrigger: isAppDir ? pageRouter : pathname, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like we used an opposite conditional here
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (12/14/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/20/24)1 reviewer was added to this PR based on Keith Williams's automation. |
E2E results are ready! |
export type { | ||
FormValues, | ||
CustomInputParsed, | ||
EventTypeSetup, | ||
EventTypeSetupProps, | ||
Host, | ||
} from "@calcom/features/eventtypes/lib/types"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed that these are not imported from this file anywhere
const EventTypeAppWrapper = ({ id, ...rest }: EventTypeSetupProps & { id: number }) => { | ||
const pathname = usePathname(); | ||
const router = useAppRouter(); | ||
return ( | ||
<EventTypeWeb | ||
{...rest} | ||
id={id} | ||
isAppDir={true} | ||
pathname={pathname ?? ""} | ||
pageRouter={null} | ||
appRouter={router} | ||
/> | ||
); | ||
return <EventTypeWeb {...rest} id={id} pathname={pathname ?? ""} appRouter={router} />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can shift this logic in EventTypeWebWrapper directly and remove this component completely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
@@ -258,8 +258,6 @@ test.describe("Manage Booking Questions", () => { | |||
|
|||
await test.step("Go to First Team Event", async () => { | |||
await page.getByTestId(`horizontal-tab-${team?.name}`).click(); | |||
await page.waitForLoadState("networkidle"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await page.waitForLoadState("networkidle");
is likely to never resolve in App Router because there are constantly likely to be network activities in App Router (e.g., streaming server components)
What does this PR do?
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?