cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

fix: update button fix

Open VinoV1999 opened this issue 2 years ago • 3 comments

What does this PR do?

Reset the default values once the updation done successfully.

Fixes #9073

Type of change

  • Reset the defaultValues.
  • Return values to be reset from updateProfileHandler.

ScreehRecord :-

https://github.com/calcom/cal.com/assets/123581387/6f6fb028-d568-4b25-9237-af9eb5a220c6

Since all the values to be reset with the updated values and the input of updateProfileHandler is same. I have get the input as a response and pass it as an argument of reset.

The reason for returning values from server is to prevent reset when server is down. Also it won't affect app Theme enhancement.

VinoV1999 avatar May 25 '23 02:05 VinoV1999

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

Name Status Preview Comments Updated (UTC)
cal ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2023 2:02pm
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2023 2:02pm

vercel[bot] avatar May 25 '23 02:05 vercel[bot]

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

A member of the Team first needs to authorize it.

vercel[bot] avatar May 25 '23 02:05 vercel[bot]

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Ten Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/[user]/book 255.74 KB 406.69 KB 116.20% (🟢 -0.14%)
/apps/[slug]/[...pages] 458.89 KB 609.84 KB 174.24% (🟡 +0.25%)
/auth/setup 174.82 KB 325.78 KB 93.08% (🟡 +0.16%)
/d/[link]/book 255.39 KB 406.34 KB 116.10% (🟢 -0.14%)
/event-types/[type] 480.11 KB 631.06 KB 180.30% (🟡 +0.19%)
/getting-started/[[...step]] 426.17 KB 577.12 KB 164.89% (🟢 -0.22%)
/new-booker/[user]/[type] 290.96 KB 441.91 KB 126.26% (🟢 -0.14%)
/new-booker/team/[slug]/[type] 290.96 KB 441.92 KB 126.26% (🟢 -0.14%)
/settings/my-account/calendars 252.25 KB 403.2 KB 115.20% (🟢 -0.23%)
/team/[slug]/book 255.39 KB 406.34 KB 116.10% (🟢 -0.14%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/-

github-actions[bot] avatar May 25 '23 02:05 github-actions[bot]

@VinoV1999 Thanks for your contribution; apologies for the delay we had some issues with the pipeline 🙏

emrysal avatar May 30 '23 14:05 emrysal