Skip to content

feat(calendar): add token rescheduling, invites and paid booking holds - #352

Merged
olliethedev merged 1 commit into
mainfrom
feat/issue-341-after-v6
Nov 6, 2026
Merged

olliethedev merged 1 commit into
mainfrom
feat/issue-341-after-v6

Conversation

@olliethedev

Copy link
Copy Markdown
Collaborator

Summary

Closes #341. Attendees can move an upcoming booking with their private token and download calendar invites. External calendar occupancy is checked on reads and again under the host lock during writes. Paid event types create capacity-holding pending_payment bookings.

booking token -> replacement slots -> host transaction -> move -> reschedule/confirmation hooks
paid booking -> pending_payment -> verified trusted payment handler -> confirmed

Evidence

  • Before: Calendar exposed booking/cancellation only; all new bookings were confirmed and external busy time was not consulted.
    After: 21 calendar API/unit tests pass, including concurrent rescheduling/paid holds, failed-move preservation, token protection, DST folds, external provider failure, payment transition, price validation and RFC 5545 output.
  • Two focused Chromium E2E tests pass against the production Next.js codegen app: book, download, reschedule in another timezone, download updated invite, cancel/release; paid holds in guest/host views.
  • Calendar build/typecheck, focused Biome, documentation build and generated Next.js production build pass. Required app workspace dependencies were built. Calendar registry regenerated. Local full-suite, all-framework E2E and full registry installation tests were left to CI.
  • Eight captioned demo beats completed; every frame was inspected. Booking in both themes, rescheduling and management fit a 390px viewport with no overflow or page errors. Keyboard Enter selects a time and Tab advances focus.

All screenshots, video and verification evidence · Captioned MP4 · WebM

These archive links require the owner's website login and LAN/private Tailscale access. They are durable owner-accessible evidence, not public GitHub uploads. Archive verification passed for the report and all 18 attachments.

Token-based rescheduling

Host payment holds and invite downloads

Merge Danger

Door: one-way while pending-payment holds exist

Existing persistent databases need nullable price and currency columns on calendarEventType. Before rolling back to an older runtime that ignores pending_payment, drain or cancel those holds. The host application owns payment processing, verified webhook calls to trusted-only confirmBookingPayment, and abandoned hold cancellation; no automatic expiry is included. External provider changes cannot be locked by the BTST transaction. Invites are manual snapshots.

Blast Radius: calendar

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
better-stack-docs Ready Ready Preview Nov 6, 2026 3:31am UTC
better-stack-playground Ready Ready Preview Nov 6, 2026 3:31am UTC

Request Review

@olliethedev

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T03:35:02.223112Z 4b39cc5 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 4b39cc566c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Bundle size

6 of 194 bundles changed.

Module Gzip base → PR Gzip change Minified change
@btst/plugin-calendar/client 137562 → 139442 B +1880 B (+1.4%) +6727 B (+1.1%)
@btst/plugin-calendar/client/components 135965 → 137695 B +1730 B (+1.3%) +6344 B (+1.1%)
@btst/plugin-calendar/api 103683 → 104921 B +1238 B (+1.2%) +4780 B (+1.0%)
@btst/plugin-calendar/client/hooks 19962 → 20433 B +471 B (+2.4%) +1422 B (+2.2%)
@btst/plugin-calendar/query-keys 2475 → 2524 B +49 B (+2.0%) +508 B (+8.8%)
@btst/plugin-calendar/permissions 93480 → 93503 B +23 B (+0.0%) +88 B (+0.0%)

10ef1f7 → 4b39cc5. Standalone costs; rows overlap. Moved paths appear as new/removed entries, not application savings.

Measured 22 packed archives separately; full report includes their compressed bytes without installed dependencies.

Full report and measurements

@olliethedev
olliethedev merged commit 7f8a254 into main Nov 6, 2026
62 checks passed

This branch was successfully deployed

2 active deployments
Preview – better-stack-docs — 4b39cc56 Deployed Nov 6, 2026 by vercel[bot]
Preview – better-stack-playground — 4b39cc56 Deployed Nov 6, 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.

Calendar: token-based rescheduling, .ics invite download, external busy-time hook, and paid booking states

1 participant