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

style: Provide Visual Feedback to Users Upon Button Click to Indicate Processing Time #13553 #14137

Merged
merged 5 commits into from Mar 19, 2024

Conversation

murtaza030
Copy link
Contributor

@murtaza030 murtaza030 commented Mar 19, 2024

What does this PR do?
This pull request enhances the user experience by adding visual feedback to the button component. Specifically, it modifies the button to display a "Processing..." message when clicked, providing users with immediate feedback that their action is being processed. This change addresses the issue of user uncertainty after interacting with certain buttons, ensuring a smoother and more intuitive user experience.

Summary of Change:
Modified the button component to include a visual feedback mechanism indicating processing status. This change ensures that users receive immediate feedback upon clicking the button.

Fixes #13553

Desktop.2024.03.19.-.10.47.32.04.mp4

Type of change


{mutation.isPending ? (

Processing...

) : (
<>
{t("next_step_text")}

</>
)}

How should this be tested?

i am only yarn dev for testing ui of button

Mandatory Tasks

  • [yes ] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

i am trying to solve Processing button
Copy link

vercel bot commented Mar 19, 2024

@murtaza030 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 Mar 19, 2024
@graphite-app graphite-app bot requested a review from a team March 19, 2024 05:55
@github-actions github-actions bot added Low priority Created by Linear-GitHub Sync ui area: UI, frontend, button, form, input 🧹 Improvements Improvements to existing features. Mostly UX/UI labels Mar 19, 2024
Copy link
Contributor

github-actions bot commented Mar 19, 2024

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.

Copy link

graphite-app bot commented Mar 19, 2024

Graphite Automations

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

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

"Add community label" took an action on this PR • (03/19/24)

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

Copy link
Contributor

github-actions bot commented Mar 19, 2024

📦 Next.js Bundle Analysis for @calcom/web

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

This PR introduced no changes to the JavaScript bundle! 🙌

Comment on lines 117 to 124
{mutation.isPending ? (
<div className="cursor-wait px-[220px] py-2 "> Processing...</div>
) : (
<>
{t("next_step_text")}
<ArrowRight className="ml-2 h-4 w-4 self-center" aria-hidden="true" />
</>
)}
Copy link
Contributor

Choose a reason for hiding this comment

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

you just have to use loading property in Button as mentioned by peer here #14028 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes sir "use loading={mutaiton.isPending}" i am only using this property not use "usestate"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
i am working on these things

Copy link
Contributor

Choose a reason for hiding this comment

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

@murtaza030 you have to pass loading property to Button and don't use this

{mutation.isPending ? (

Processing...

) : (
<>
{t("next_step_text")}

</>
)}

Copy link
Contributor

Choose a reason for hiding this comment

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

never mind i have fixed it now

@Udit-takkar Udit-takkar changed the title [CAL-3117] [ENHANCEMENT] Provide Visual Feedback to Users Upon Button Click to Indicate Processing Time #13553 style: Provide Visual Feedback to Users Upon Button Click to Indicate Processing Time #13553 Mar 19, 2024
@CLAassistant
Copy link

CLAassistant commented Mar 19, 2024

CLA assistant check
All committers have signed the CLA.

@Udit-takkar
Copy link
Contributor

@murtaza030 could you please sign CLA #14137 (comment) ?

@murtaza030
Copy link
Contributor Author

yes i am signup github CLA

@Udit-takkar Udit-takkar enabled auto-merge (squash) March 19, 2024 11:03
@Udit-takkar Udit-takkar merged commit b1d3161 into calcom:main Mar 19, 2024
28 of 36 checks passed
@dosubot dosubot bot modified the milestones: v4.1, v4.0 Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Created by Linear-GitHub Sync 🧹 Improvements Improvements to existing features. Mostly UX/UI Low priority Created by Linear-GitHub Sync ui area: UI, frontend, button, form, input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-3117] [ENHANCEMENT] Provide Visual Feedback to Users Upon Button Click to Indicate Processing Time
3 participants