Skip to content

Improve new schedule creation flow#4635

Merged
emrysal merged 4 commits into
calcom:mainfrom
afzalsayed96:impr/new-schedule-flow
Sep 21, 2022
Merged

Improve new schedule creation flow#4635
emrysal merged 4 commits into
calcom:mainfrom
afzalsayed96:impr/new-schedule-flow

Conversation

@afzalsayed96
Copy link
Copy Markdown
Contributor

What does this PR do?

Improves UX when creating a new schedule and going back to /availability page by updating the cache

Before

Screen.Recording.2022-09-20.at.8.18.24.PM.mov

After

Screen.Recording.2022-09-20.at.8.16.35.PM.mov

@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 20, 2022

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

A member of the Team first needs to authorize it.

@emrysal emrysal enabled auto-merge (squash) September 20, 2022 17:22
Copy link
Copy Markdown
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

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

Nice tweak, lgtm

@emrysal emrysal added ♻️ autoupdate tells kodiak to keep this branch up-to-date automerge labels Sep 21, 2022
await router.push("/availability/" + schedule.id);
showToast(t("schedule_created_successfully", { scheduleName: schedule.name }), "success");
utils.setQueryData(["viewer.availability.list"], (data) => {
const newSchedule = { ...schedule, isDefault: false, availability: [] };
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this hardcoding required?

@emrysal emrysal merged commit 7d2f87a into calcom:main Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge ♻️ autoupdate tells kodiak to keep this branch up-to-date

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants