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

refactor: event advanced web wrapper #16711

Merged
merged 28 commits into from
Sep 30, 2024
Merged

Conversation

SomayChauhan
Copy link
Member

@SomayChauhan SomayChauhan commented Sep 19, 2024

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)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • N/A I have added a Docs issue here 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.

Copy link

vercel bot commented Sep 19, 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 Sep 30, 2024 8:31am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 8:31am

Copy link
Contributor

github-actions bot commented Sep 19, 2024

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:

No release type found in pull request title "Event advanced web wrapper". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

@keithwillcode keithwillcode added core area: core, team members only platform Anything related to our platform plan labels Sep 19, 2024
@SomayChauhan SomayChauhan changed the title Event advanced web wrapper refactor: event advanced web wrapper Sep 19, 2024
@SomayChauhan SomayChauhan marked this pull request as ready for review September 19, 2024 06:46
@graphite-app graphite-app bot requested review from a team September 19, 2024 06:47
@dosubot dosubot bot added event-types area: event types, event-types 💻 refactor labels Sep 19, 2024
Copy link
Contributor

github-actions bot commented Sep 20, 2024

E2E results are ready!

@@ -304,6 +304,7 @@ const AppearanceView = ({
description={t("bookerlayout_user_settings_description")}
isDisabled={isBookerLayoutFormSubmitting || !isBookerLayoutFormDirty}
isLoading={mutation.isPending}
user={user}
Copy link
Contributor

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 ?

Copy link
Member Author

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();
Copy link
Member Author

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@SomayChauhan SomayChauhan enabled auto-merge (squash) September 30, 2024 07:53
@ThyMinimalDev ThyMinimalDev merged commit c834b92 into main Sep 30, 2024
43 checks passed
@ThyMinimalDev ThyMinimalDev deleted the event-advanced-web-wrapper branch September 30, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core area: core, team members only event-types area: event types, event-types platform Anything related to our platform plan ready-for-e2e 💻 refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants