Skip to content

Conversation

@aminjaoui
Copy link
Contributor

Fixes #26448

Previously, users could not delete the first time slot in their availability schedule. The trash icon only appeared on slots 2+, while the '+' button only appeared on the first slot.

Changes:

  • Show '+' button on all time slots for easier adding
  • Show delete button on all slots when there are 2+ slots
  • Prevent deletion when only 1 slot remains (must have at least one)

This improves UX by allowing users to remove any time slot they want, not just the ones after the first.

What does this PR do?

Allows users to delete the first time slot in their availability schedule when multiple slots exist.

Demo (For contributors especially)

Before:

  • Slots 2 and 3 have delete (trash) icons
  • Slot 1 has NO delete icon, only a '+' button

After:

  • All slots have both '+' and delete icons when there are 2+ slots
  • Cannot delete when only 1 slot remains

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. N/A - no docs changes needed.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works. Existing tests cover the component; manual testing performed.

How should this be tested?

  1. Go to Settings > Availability
  2. Select any schedule
  3. Add multiple time slots (e.g., 3 slots) for any day
  4. Verify ALL slots now show delete buttons
  5. Delete the first slot - should work
  6. Verify you cannot delete when only 1 slot remains

No special environment variables needed.

Checklist

  • I have read the contributing guide
  • My code follows the style guidelines of this project
  • N/A - simple conditional change, no complex logic needing comments
  • My changes generate no new warnings

@vercel
Copy link

vercel bot commented Jan 8, 2026

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

A member of the Team first needs to authorize it.

@CLAassistant
Copy link

CLAassistant commented Jan 8, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jan 8, 2026
@github-actions github-actions bot added Low priority Created by Linear-GitHub Sync 🧹 Improvements Improvements to existing features. Mostly UX/UI labels Jan 8, 2026
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.

No issues found across 1 file

Fixes calcom#26448

Previously, users could not delete the first time slot in their
availability schedule. The trash icon only appeared on slots 2+,
while the '+' button only appeared on the first slot.

Changes:
- Show '+' button on all time slots for easier adding
- Show delete button on all slots when there are 2+ slots
- Prevent deletion when only 1 slot remains (must have at least one)

This improves UX by allowing users to remove any time slot they want,
not just the ones after the first.
@aminjaoui aminjaoui force-pushed the fix/26448-allow-delete-first-time-slot branch from 467fa46 to 19d5d14 Compare January 8, 2026 08:47
@KRUPANIDHIBEHERA
Copy link

From a product and UX perspective, this change makes sense.

Allowing users to delete any time slot improves flexibility and reduces
confusion during availability setup. The guardrail of preventing deletion
when only one slot remains is a good balance between user control and
avoiding invalid states.

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 size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calendar override remove first time

3 participants