Skip to content

feat(examples): Next.js booking page template - #38

Merged
vkpdeveloper merged 1 commit into
mainfrom
feat/booking-template
Nov 5, 2026
Merged

vkpdeveloper merged 1 commit into
mainfrom
feat/booking-template

Conversation

@vkpdeveloper

Copy link
Copy Markdown
Owner

calsdk has no app-sized example: the README and playground show single calls, not what a real product built on them looks like.

This adds examples/nextjs-booking, a one-person booking page (Next.js 16, Tailwind 4):

  • findFreeTime lists open slots in the owner's working hours for the next 14 days.
  • A server action re-checks the slot against the live calendar, then books it with createEvent (invite plus Meet link).
  • Without Google credentials it runs on a demo calendar, so the Deploy to Vercel button works before any setup.
  • The README covers getting a refresh token and the env vars. The root README links to it.

The demo events use UTC times, so the page is correct on the published 0.1.0 packages too (the offset-less time bug is fixed separately in #37).

Verified with next build, Biome, typecheck and a Playwright run at 1280 and 390 px: busy times are excluded, a booking succeeds, the booked slot disappears on reload, no horizontal overflow, no console errors.

Desktop Phone
pick pick
booked booked

A one-person booking page on findFreeTime and createEvent with a Deploy
to Vercel button. Runs on a demo calendar until Google credentials are set.
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
calsdk Ready Ready Preview Nov 5, 2026 7:58pm UTC

@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 482c5880-8e97-4f91-9304-8351bf055e43
Commits

Reviewing files that changed from the base of the PR and between e919a96 and 7d7b5b8.

Files ignored due to path filters: 1

  • bun.lock is excluded by !**/*.lock
Files selected for processing: 15

  • README.md
  • examples/nextjs-booking/.env.example
  • examples/nextjs-booking/.gitignore
  • examples/nextjs-booking/README.md
  • examples/nextjs-booking/app/actions.ts
  • examples/nextjs-booking/app/globals.css
  • examples/nextjs-booking/app/layout.tsx
  • examples/nextjs-booking/app/page.tsx
  • examples/nextjs-booking/app/picker.tsx
  • examples/nextjs-booking/lib/calendar.ts
  • examples/nextjs-booking/lib/config.ts
  • examples/nextjs-booking/lib/slots.ts
  • examples/nextjs-booking/package.json
  • examples/nextjs-booking/postcss.config.mjs
  • examples/nextjs-booking/tsconfig.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@vkpdeveloper
vkpdeveloper merged commit 1d9108d into main Nov 5, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 7d7b5b87 Deployed Nov 5, 2026 by vercel[bot]
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