-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Conversation
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:
|
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. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
E2E results are ready! |
…Confirm" button should be hidden
return slotsForDates; | ||
|
||
setSlotsPerDay(updatedSlots); | ||
}, [JSON.stringify(dates), JSON.stringify(slots)]); |
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.
This could cause some performance issue if slots array is bug
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.
causing infinite re-render without it -- slots reference is changing
tried useMemo
Fixes - Verify Email Dialog Not Displaying When Skipping Confirmation - https://www.loom.com/share/9ccd703b79a6414287e0d294739bbd53?sid=ed676db9-b03b-4120-b7d1-b4eaed57924c |
…ping confirm step
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.
Instant meeting aren't working.
Screen.Recording.2025-02-21.at.3.08.05.PM.mov
* 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]>
What does this PR do?
This PR fixes the following issues in the Booker flow when skipping the confirmation step:
Ensuring Users Are Notified of Submission Errors
Fixing the Double Click Issue on the Confirm Button
Before, users had to click the Confirm button twice in the Booker Atom for the submission to proceed.
This PR resolves the issue, ensuring a single click properly triggers the submission.
before: https://github.com/user-attachments/assets/d3d5909b-469b-4802-94be-5d0eac408ece
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.
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)