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

Fixed dark mode bugs in the availability section

Open MaheshB77 opened this issue 2 years ago • 16 comments

What does this PR do?

  • Fixed dark mode bugs in the availability section

Fixes #8628

  1. "Set as default" on hover was getting a white background, FIXED chrome-capture-2023-4-3

  2. Delete icon on hover was not showing the proper tooltip and background color, FIXED issue-2

  3. Delete icon on hover should be red, FIXED issue-3

Environment: Production

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

  • Can be tested by visiting /availability section

MaheshB77 avatar May 02 '23 20:05 MaheshB77

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 14, 2023 4:53pm
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2023 4:53pm

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

@MaheshB77 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 02 '23 20:05 vercel[bot]

📦 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! 🙌

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

Screen Shot 2023-05-03 at 4 00 27 PM @MaheshB77 I'm still seeing this message on the preview deployment.

keithwillcode avatar May 03 '23 19:05 keithwillcode

Looks like the message to delete a 2nd working hours is saying "You are required to have at least one schedule."

Yes @keithwillcode, I did remove that message in my 1st commit but reverted back as per @Udit-takkar 's suggestion to keep it as it is

MaheshB77 avatar May 03 '23 19:05 MaheshB77

@MaheshB77 actually we have to show this tooltip to tell the user why delete icon is disabled when you try to delete one and only availability. just add a condition if schedule?.isLastSchedule then show requires_at_least_one_schedule else delete tooltip message

Udit-takkar avatar May 03 '23 19:05 Udit-takkar

That makes sense @Udit-takkar , I will update the PR accordingly, Thanks 🥂.

MaheshB77 avatar May 03 '23 19:05 MaheshB77

@MaheshB77 actually we have to show this tooltip to tell the user why delete icon is disabled when you try to delete one and only availability. just add a condition if schedule?.isLastSchedule then show requires_at_least_one_schedule else delete tooltip message

@Udit-takkar @keithwillcode Can you guys check now, I have updated the tooltip based on schedule?.isLastSchedule flag

MaheshB77 avatar May 03 '23 19:05 MaheshB77

Just need to confirm one thing from @sean-brydon

Screenshot 2023-05-04 at 1 11 34 AM
  1. This is current ui when you hover over disabled delete button but i think 1 is better. was this intentional ?
Screenshot 2023-05-04 at 1 14 44 AM

Udit-takkar avatar May 03 '23 19:05 Udit-takkar

I have pushed this now

Screenshot 2023-05-04 at 1 43 54 AM

Udit-takkar avatar May 03 '23 20:05 Udit-takkar

@MaheshB77, @Udit-takkar Just a suggestion that don't you think the hover effect on the set as default button should be bg-subtle, I checked the toggle button in event-type/[id] it has a hover effect of bg-subtle and cursor pointer should stay there, that toggle should look like that it works on the title click as well

SS From event-type/[id] image

zeeshanbhati avatar May 05 '23 08:05 zeeshanbhati

@MaheshB77, @Udit-takkar Just a suggestion that don't you think the hover effect on the set as default button should be bg-subtle, I checked the toggle button in event-type/[id] it has a hover effect of bg-subtle and cursor pointer should stay there, that toggle should look like that it works on the title click as well

SS From event-type/[id] image

Ill fix this in a follow up PR thank you :)

sean-brydon avatar May 05 '23 09:05 sean-brydon

@MaheshB77, @Udit-takkar Just a suggestion that don't you think the hover effect on the set as default button should be bg-subtle, I checked the toggle button in event-type/[id] it has a hover effect of bg-subtle and cursor pointer should stay there, that toggle should look like that it works on the title click as well SS From event-type/[id] image

Ill fix this in a follow up PR thank you :)

@sean-brydon #8680 already does that, you can cherry-pick that commit into this PR :)

zeeshanbhati avatar May 05 '23 09:05 zeeshanbhati

@MaheshB77, @Udit-takkar Just a suggestion that don't you think the hover effect on the set as default button should be bg-subtle, I checked the toggle button in event-type/[id] it has a hover effect of bg-subtle and cursor pointer should stay there, that toggle should look like that it works on the title click as well SS From event-type/[id] image

Ill fix this in a follow up PR thank you :)

@sean-brydon #8680 already does that, you can cherry-pick that commit into this PR :)

Thank you! Me and @Jaibles are reworking the switch component so will likely keep this in a separate PR. Thanks again!

sean-brydon avatar May 05 '23 11:05 sean-brydon

@MaheshB77 can you fix merge conflicts ?

Udit-takkar avatar May 14 '23 12:05 Udit-takkar

@MaheshB77 can you fix merge conflicts ?

@Udit-takkar Done, can you please merge this PR now 🙂

MaheshB77 avatar May 14 '23 16:05 MaheshB77