Skip to content

Comments

fix: contact support button overlap#22952

Merged
anikdhabal merged 5 commits intocalcom:mainfrom
bandhan-majumder:fix-22929
Aug 7, 2025
Merged

fix: contact support button overlap#22952
anikdhabal merged 5 commits intocalcom:mainfrom
bandhan-majumder:fix-22929

Conversation

@bandhan-majumder
Copy link
Contributor

What does this PR do?

Fixes the overlap of the customer support button

Visual Demo (For contributors especially)

A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).

Video Demo (if applicable):

  • Show screen recordings of the issue or feature.
  • Demonstrate how to reproduce the issue, the behavior before and after the change.

Image Demo (if applicable):

Prev Bug - Chat Button on the left top overlapping :

image

Fix Now - Chat button in the right bottom:

image

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.

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my changes generate no new warnings

@vercel
Copy link

vercel bot commented Aug 7, 2025

@bandhan-majumder is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 7, 2025

Walkthrough

This change set includes four files with minor updates. The order of CSS utility classes in the PopoverContent component within PlainContactForm.tsx was adjusted. The import path for the PlainContactForm component in its test file was updated. The dynamic import path in dynamicProvider.tsx was modified to point to a different directory. The Tailwind CSS configuration was updated to include an additional directory for content scanning. No changes were made to component logic, exported entities, or test logic.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Assessment against linked issues

Objective Addressed Explanation
Prevent overlapping of contact and new event add buttons on the bottom right (#22929, CAL-6207)

Assessment against linked issues: Out-of-scope changes

No out-of-scope changes detected.

Possibly related PRs

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 44b8b17 and ecff67f.

📒 Files selected for processing (4)
  • apps/web/components/plain/PlainContactForm.tsx (1 hunks)
  • apps/web/components/plain/__tests__/PlainContactForm.test.tsx (1 hunks)
  • apps/web/lib/plain/dynamicProvider.tsx (1 hunks)
  • packages/config/tailwind-preset.js (1 hunks)
✅ Files skipped from review due to trivial changes (4)
  • apps/web/components/plain/tests/PlainContactForm.test.tsx
  • apps/web/lib/plain/dynamicProvider.tsx
  • apps/web/components/plain/PlainContactForm.tsx
  • packages/config/tailwind-preset.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Install dependencies / Yarn install & cache
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 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.
  • 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.

Support

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

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 generate unit tests to generate unit tests for 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.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Aug 7, 2025
@graphite-app graphite-app bot requested a review from a team August 7, 2025 09:32
@github-actions github-actions bot added ui area: UI, frontend, button, form, input 🐛 bug Something isn't working labels Aug 7, 2025
@bandhan-majumder
Copy link
Contributor Author

@volnei @Devanshusharma2005

can I get a review? have added the screen shots of prev and after the addition

@graphite-app
Copy link

graphite-app bot commented Aug 7, 2025

Graphite Automations

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

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

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

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

@dosubot dosubot bot added the 🧹 Improvements Improvements to existing features. Mostly UX/UI label Aug 7, 2025
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)
apps/web/tailwind.config.js (1)

5-9: Confirm glob path; current pattern is likely redundant & may slow the Tailwind scanner

"../../apps/web/lib/**/*.{js,ts,jsx,tsx}" resolves back to the same folder the config file already sits in (apps/web/lib).

  1. If base.content already covers apps/web/**/*, this addition duplicates work.
  2. Even if it is missing, the same folder can be picked up with the simpler relative pattern ./lib/**/*.{js,ts,jsx,tsx}, avoiding two unnecessary directory hops and keeping the glob OS-agnostic.

Consider replacing it to reduce build IO and avoid future path-drift:

-    "../../apps/web/lib/**/*.{js,ts,jsx,tsx}",
+    "./lib/**/*.{js,ts,jsx,tsx}",

Please verify that no other preset/content entry already includes this directory to prevent double scanning.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 33aedba and 44b8b17.

📒 Files selected for processing (1)
  • apps/web/tailwind.config.js (1 hunks)

@anikdhabal anikdhabal requested a review from Amit91848 August 7, 2025 12:46
@Amit91848
Copy link
Member

Huh that's weird

@bandhan-majumder
Copy link
Contributor Author

@Amit91848
sorry didn't get you. Actually the folder where the button was, was not in the tailwind content list

Copy link
Member

@Amit91848 Amit91848 left a comment

Choose a reason for hiding this comment

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

content: [
"../../apps/web/pages/**/*.{js,ts,jsx,tsx}",
"../../apps/web/app/**/*.{js,ts,jsx,tsx}",
"../../apps/web/modules/**/*.{js,ts,jsx,tsx}",
"../../apps/web/components/**/*.{js,ts,jsx,tsx}",
"../../packages/app-store/!(node_modules)/**/*{components,pages}/**/*.{js,ts,jsx,tsx}",
"../../packages/features/!(node_modules)/**/*.{js,ts,jsx,tsx}",
"../../packages/ui/!(node_modules)/**/*.{js,ts,jsx,tsx}",
"../../packages/platform/atoms/!(node_modules)/**/*.{js,ts,jsx,tsx}",
],

let's add it to contents itself so it is together with other paths

@Amit91848
Copy link
Member

I meant it was working before and now stopped. Not your pr

@bandhan-majumder
Copy link
Contributor Author

ok ok. Adding those in the content

@bandhan-majumder
Copy link
Contributor Author

@volnei should I also change the content as suggested by @Amit91848 ? or keep it as it was before

@bandhan-majumder bandhan-majumder requested a review from a team as a code owner August 7, 2025 13:29
@Amit91848
Copy link
Member

Moving it should resolve the issue as well. That's fine

@volnei
Copy link
Contributor

volnei commented Aug 7, 2025

@bandhan-majumder Appreciate the update and your responsiveness, will approve once tests are green!

Copy link
Contributor

@volnei volnei left a comment

Choose a reason for hiding this comment

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

LGTM

@anikdhabal anikdhabal enabled auto-merge (squash) August 7, 2025 13:59
@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2025

E2E results are ready!

@anikdhabal anikdhabal merged commit 7c8dbb3 into calcom:main Aug 7, 2025
75 of 82 checks passed
emrysal pushed a commit that referenced this pull request Aug 7, 2025
* add: lib folder in tailwind config

* move plainChat and contactForm from lib to components

* Update tailwind-preset.js
pallava-joshi pushed a commit to pallava-joshi/cal.com that referenced this pull request Aug 8, 2025
* add: lib folder in tailwind config

* move plainChat and contactForm from lib to components

* Update tailwind-preset.js
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 ready-for-e2e ui area: UI, frontend, button, form, input

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] : Overlapping contact button over new button

5 participants