-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Description
Introduce the ability for organization admins/owners to set booking limits for individual members, regardless of whether the bookings come from personal event types or team event types.
Current booking limits
- We currently support booking limits per event type (applies individually to each event type).
- We also support team-wide booking limits, but these only count bookings from team event types and cannot be customized per member.
What we want:
Limit the total number of bookings a specific member can receive across all their event types (both personal and team).
-
Setting should be added in the organization member's table (
/settings/organizations/<slug>/members
) in the slide over when editing a member. It should be added below "Attributes" (see rough designs below) -
This limit applies to all bookings associated with the member, regardless of the event type origin (personal or team or dynamic).
-
If multiple limits are set (per-event-type, team-wide, or member-based), all limits are enforced. Once any limit is reached, no further bookings are allowed.
Implementation Notes
DB schema changes
- Same as for
EventType
andTeam
, addbookingLimits Json?
to theMembership
table
UI Components:
- Reuse existing booking limits components from event type settings packages/features/eventtypes/components/tabs/limits/EventLimitsTab.tsx
- Add new section titled "Booking Limits"
- Include same time interval options (daily, weekly, monthly, yearly)
- Show explanatory text: "These limits apply to all bookings for this member across personal and team event types"
Rough Designs: