Skip to content

Conversation

ddoemonn
Copy link
Contributor

@ddoemonn ddoemonn commented Jul 2, 2025

What does this PR do?

Improves timezone buddy cell highlight animation responsiveness and fixes visual glitches
fixes #22206

  • Reduced animation timeout from 1000ms to 300ms for snappier hover responses
  • Fixed highlight position jumping when navigating between dates by resetting animation state
  • Corrected CSS typo (opcaity-0opacity-0) and improved container overflow handling
  • Enhanced UX by clearing hover state when browsing date changes

The changes make the timezone comparison interface feel more responsive and prevent jarring visual transitions when users navigate between different dates.

Video Demo (if applicable):

Screen.Recording.2025-07-02.at.15.02.04.mov

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

Copy link

vercel bot commented Jul 2, 2025

@ddoemonn 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 requested a review from a team July 2, 2025 12:03
@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jul 2, 2025
@github-actions github-actions bot added ui area: UI, frontend, button, form, input 🐛 bug Something isn't working labels Jul 2, 2025
@dosubot dosubot bot added the 🧹 Improvements Improvements to existing features. Mostly UX/UI label Jul 2, 2025
Copy link

graphite-app bot commented Jul 2, 2025

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (07/02/25)

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

"Add community label" took an action on this PR • (07/02/25)

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

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

cubic reviewed 1 file and found no issues. Review PR in cubic.dev.

@keithwillcode keithwillcode enabled auto-merge (squash) July 2, 2025 15:36
@keithwillcode keithwillcode disabled auto-merge July 2, 2025 15:36
@anikdhabal anikdhabal added the Low priority Created by Linear-GitHub Sync label Jul 4, 2025
Copy link
Contributor

@Devanshusharma2005 Devanshusharma2005 left a comment

Choose a reason for hiding this comment

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

Okay , but lets wait for @CarinaWolli review as well.

Copy link
Contributor

This PR is being marked as stale due to inactivity.

@github-actions github-actions bot added the Stale label Jul 21, 2025
Copy link
Contributor

coderabbitai bot commented Jul 21, 2025

Walkthrough

The CellHighlightContainer component was updated to extract browsingDate and emitCellPosition from the store and to track the previous browsing date using a ref. The animation timeout for hover end was reduced from 1000ms to 300ms. An effect was added to reset the animation and clear the hover position by calling emitCellPosition(-1) whenever browsingDate changes. The container's CSS classes now include overflow-hidden in addition to overflow-x-scroll, and the highlight div's opacity logic and animation were adjusted to use values between 0 and 1, correcting a previous typo. No changes were made to the component's exported signature.

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

packages/features/timezone-buddy/components/CellHighlightContainer.tsx

Oops! Something went wrong! :(

ESLint: 8.57.1

ESLint couldn't find the plugin "eslint-plugin-playwright".

(The package "eslint-plugin-playwright" was not found when loaded as a Node module from the directory "".)

It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

npm install eslint-plugin-playwright@latest --save-dev

The plugin "eslint-plugin-playwright" was referenced from the config file in ".eslintrc.js".

If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.

✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
packages/features/timezone-buddy/components/CellHighlightContainer.tsx (1)

33-41: Consider optimizing the initial render behavior.

The date change detection logic is well-implemented and correctly prevents animation jumps. However, consider adding a guard to prevent unnecessary execution on the initial render:

  useEffect(() => {
+   if (prevBrowsingDateRef.current === null) {
+     prevBrowsingDateRef.current = browsingDate;
+     return;
+   }
    if (prevBrowsingDateRef.current?.getTime() !== browsingDate.getTime()) {
      setIsAnimating(false);
      // Clear hover state and position when date changes
      emitCellPosition(-1);
      prevBrowsingDateRef.current = browsingDate;
    }
  }, [browsingDate, emitCellPosition]);

And initialize the ref with null:

- const prevBrowsingDateRef = useRef(browsingDate);
+ const prevBrowsingDateRef = useRef<Date | null>(null);
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b599ce4 and 74193fd.

📒 Files selected for processing (1)
  • packages/features/timezone-buddy/components/CellHighlightContainer.tsx (2 hunks)
🔇 Additional comments (4)
packages/features/timezone-buddy/components/CellHighlightContainer.tsx (4)

16-18: LGTM: Proper store properties extraction and ref initialization.

The addition of browsingDate and emitCellPosition from the store and the initialization of prevBrowsingDateRef are correctly implemented to support the date change detection functionality.


25-26: LGTM: Improved animation responsiveness.

The reduction from 1000ms to 300ms creates a more responsive user experience while maintaining smooth animations. The explanatory comment is helpful for future maintainers.


66-66: LGTM: Improved overflow handling.

Adding overflow-hidden alongside overflow-x-scroll correctly prevents vertical overflow issues while maintaining the horizontal scrolling functionality.


71-75: LGTM: Fixed typo and improved animation logic.

The changes correctly address multiple issues:

  • Fixed the CSS typo from opcaity-0 to opacity-0
  • Simplified the opacity animation to a clean 0-to-1 transition
  • The conditional opacity logic properly responds to both animation and hover states

@github-actions github-actions bot removed the Stale label Jul 22, 2025
@anikdhabal anikdhabal enabled auto-merge (squash) September 2, 2025 13:04
@anikdhabal anikdhabal merged commit 87331f0 into calcom:main Sep 2, 2025
52 of 58 checks passed
Copy link
Contributor

github-actions bot commented Sep 2, 2025

E2E results are ready!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working community Created by Linear-GitHub Sync 🧹 Improvements Improvements to existing features. Mostly UX/UI Low priority Created by Linear-GitHub Sync ready-for-e2e ui area: UI, frontend, button, form, input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Animation jumps and visual artifacts on team availability page when switching days during hover
3 participants