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

feat: Autofill feature #15437

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Amit91848
Copy link
Contributor

What does this PR do?

Recording.2024-06-14.204324.mp4

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected)
  • I have added a Docs issue here if this PR makes changes that would require a documentation change
  • I have added or modified automated tests that prove my fix is effective or that my feature works (PRs might be rejected if logical changes are not properly tested)

Copy link

vercel bot commented Jun 14, 2024

@Amit91848 is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jun 14, 2024
@graphite-app graphite-app bot requested a review from a team June 14, 2024 15:25
@github-actions github-actions bot added consumer Medium priority Created by Linear-GitHub Sync ✨ feature New feature or request ❗️ migrations contains migration files and removed ✨ feature New feature or request Medium priority Created by Linear-GitHub Sync consumer labels Jun 14, 2024
Copy link

graphite-app bot commented Jun 14, 2024

Graphite Automations

"Add community label" took an action on this PR • (06/14/24)

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

"Add consumer team as reviewer" took an action on this PR • (06/14/24)

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

@dosubot dosubot bot added bookings area: bookings, availability, timezones, double booking event-types area: event types, event-types ✨ feature New feature or request labels Jun 14, 2024
@dosubot dosubot bot added this to the v4.4 milestone Jun 14, 2024
]);

// When initialValues is available(after doing async schema parsing) or session is available(so that we can prefill logged-in user email and name), we need to reset the form with the initialValues
// We also need the key to change if the bookingId changes, so that the form is reset and rerendered with the new initialValues
const key = `${Object.keys(initialValues).length}_${hasSession ? 1 : 0}_${initialValues?.bookingId ?? 0}`;
const key = `${prevResponse ? JSON.stringify(initialValues).length : Object.keys(initialValues).length}_${
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When previous responses were fetched, key was immediately updated and useEffect was executed before the initalValues could update. Not sure if this is the best way

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 community Created by Linear-GitHub Sync event-types area: event types, event-types ✨ feature New feature or request ❗️ migrations contains migration files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-3843] Autofill feature
1 participant