-
Notifications
You must be signed in to change notification settings - Fork 8k
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
refactor: event advanced web wrapper #16711
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Details:
|
E2E results are ready! |
packages/platform/atoms/event-types/wrappers/EventAdvancedWebWrapper.tsx
Outdated
Show resolved
Hide resolved
@@ -304,6 +304,7 @@ const AppearanceView = ({ | |||
description={t("bookerlayout_user_settings_description")} | |||
isDisabled={isBookerLayoutFormSubmitting || !isBookerLayoutFormDirty} | |||
isLoading={mutation.isPending} | |||
user={user} |
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.
can you give some context on this change ?
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.
|
||
const EventAdvancedWebWrapper = (props: EventAdvancedWebWrapperProps) => { | ||
const connectedCalendarsQuery = trpc.viewer.connectedCalendars.useQuery(); | ||
const { data: user, isPending } = trpc.viewer.me.useQuery(); |
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.
will move further up the tree after #16808 (comment) is merged
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.
What does this PR do?
Introduced a new EventAdvancedWebWrapper component to centralize all TRPC endpoint calls, improving data handling and separation of concerns.
Refactored the existing EventAdvancedTab and all its children components into (dumb) components, shifting all TRPC calls and logic to the newly created parent wrapper (EventAvailabilityTabWebWrapper). It now solely handles UI rendering, receiving data and callbacks as props from its parent.
Fixes #XXXX (GitHub issue number)
Fixes CAL-XXXX (Linear issue number - should be visible at the bottom of the GitHub issue description)
Mandatory Tasks (DO NOT REMOVE)