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

fix: skip confirm step followup #19076

Merged
merged 28 commits into from
Feb 21, 2025
Merged

fix: skip confirm step followup #19076

merged 28 commits into from
Feb 21, 2025

Conversation

SomayChauhan
Copy link
Member

@SomayChauhan SomayChauhan commented Feb 4, 2025

What does this PR do?

This PR fixes the following issues in the Booker flow when skipping the confirmation step:

  1. Ensuring Users Are Notified of Submission Errors

  2. Fixing the Double Click Issue on the Confirm Button

  3. When a user clicks on a new timeslot, any previously displayed "Confirm" button should be hidden.
    This ensures only one confirm button is visible at a time, improving clarity and avoiding confusion.

  4. Clicking on a timeslot that already has the "Confirm" button visible should hide the button instead of confirming the booking.
    This provides a more intuitive and user-friendly experience, aligning with natural user behavior. Since our "Confirm" button is large and clearly visible, it shouldn't be a problem

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • 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.

@graphite-app graphite-app bot requested a review from a team February 4, 2025 09:44
Copy link
Contributor

github-actions bot commented Feb 4, 2025

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 "Followup/skip confirm step". 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 Feb 4, 2025
@graphite-app graphite-app bot requested a review from a team February 4, 2025 09:45
@dosubot dosubot bot added bookings area: bookings, availability, timezones, double booking consumer labels Feb 4, 2025
Copy link

graphite-app bot commented Feb 4, 2025

Graphite Automations

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

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

"Add platform team as reviewer" took an action on this PR • (02/04/25)

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

@SomayChauhan SomayChauhan changed the title Followup/skip confirm step fix: skip confirm step followup Feb 4, 2025
Copy link

vercel bot commented Feb 4, 2025

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

Name Status Preview Comments Updated (UTC)
cal-com-ui-playground ❌ Failed (Inspect) Feb 21, 2025 11:06am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Feb 21, 2025 11:06am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Feb 21, 2025 11:06am

Copy link
Contributor

github-actions bot commented Feb 4, 2025

E2E results are ready!

@SomayChauhan SomayChauhan marked this pull request as ready for review February 6, 2025 12:53
@dosubot dosubot bot added the 🐛 bug Something isn't working label Feb 6, 2025
return slotsForDates;

setSlotsPerDay(updatedSlots);
}, [JSON.stringify(dates), JSON.stringify(slots)]);
Copy link
Contributor

Choose a reason for hiding this comment

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

This could cause some performance issue if slots array is bug

Copy link
Member Author

Choose a reason for hiding this comment

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

causing infinite re-render without it -- slots reference is changing
tried useMemo

Udit-takkar
Udit-takkar previously approved these changes Feb 20, 2025
@SomayChauhan
Copy link
Member Author

SomayChauhan commented Feb 21, 2025

Fixes - Verify Email Dialog Not Displaying When Skipping Confirmation -

https://www.loom.com/share/9ccd703b79a6414287e0d294739bbd53?sid=ed676db9-b03b-4120-b7d1-b4eaed57924c

Copy link
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

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

Instant meeting aren't working.

Screen.Recording.2025-02-21.at.3.08.05.PM.mov

@github-actions github-actions bot marked this pull request as draft February 21, 2025 09:39
@SomayChauhan
Copy link
Member Author

@SomayChauhan SomayChauhan marked this pull request as ready for review February 21, 2025 11:05
@SomayChauhan SomayChauhan merged commit 829bb63 into main Feb 21, 2025
41 checks passed
@SomayChauhan SomayChauhan deleted the followup/skip-confirm-step branch February 21, 2025 13:37
MuhammadAimanSulaiman pushed a commit to hit-pay/cal.com that referenced this pull request Feb 25, 2025
* Fix: Resolved double-click issue on timeSlot in Booker Atom

* fix: show toast on booking error

* fix: type error

* Prevent the automatic change of bookerState when all fields are filled.

* fix: when a user clicks on a new timeslot, any previously displayed "Confirm" button should be hidden

* Update useSkipConfirmStep.ts

* fix: remove 2 states for slots

* Update useSlotsForDate.ts

* fix types

* use common types

* fix: show VerifyCodeDialog and RedirectToInstantMeetingModal when skiping confirm step

* fix for instant bookings

---------

Co-authored-by: Udit Takkar <[email protected]>
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 🐛 bug Something isn't working consumer core area: core, team members only High priority Created by Linear-GitHub Sync platform Anything related to our platform plan ready-for-e2e
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants