Skip to content

feat: add day-calendar component for AI event scheduling#390

Open
mkazantsev wants to merge 5 commits intovercel:mainfrom
mkazantsev:feature/day-calendar
Open

feat: add day-calendar component for AI event scheduling#390
mkazantsev wants to merge 5 commits intovercel:mainfrom
mkazantsev:feature/day-calendar

Conversation

@mkazantsev
Copy link

Adds a read-only DayCalendar compound component for visualizing a single day's events on a time grid. Designed for AI agents to confirm scheduled events to users.

  • Auto-computes visible window from event times (±2h padding, clamped 0–24, defaults 9am–5pm)
  • Current time indicator when viewing today
  • Compound pattern: DayCalendar, DayCalendarHeader, DayCalendarContent, DayCalendarEvent
  • CalendarEvent type designed to be shared with future week-calendar/month-calendar
  • No new dependencies — Tailwind + React + lucide-react
  • 11 tests, all 954 pass

Adds a read-only DayCalendar compound component that renders a single-day
time grid with positioned event blocks. Designed for AI agents to visually
confirm scheduled events to users.

- Auto-computes visible time window from event times (±2 hour padding)
- Current time indicator line when viewing today
- Percentage-based event block positioning
- DayCalendar, DayCalendarHeader, DayCalendarContent, DayCalendarEvent
- CalendarEvent shared type (start, end, title, description)
- Dark mode support via Tailwind CSS variables
- Docs page and example (Team Standup 4–5pm)
@vercel
Copy link
Contributor

vercel bot commented Feb 28, 2026

@mkazantsev is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant