Add guest support for events and RSVP system
All checks were successful
Build And Push Image / docker (push) Successful in 3m52s

- Add guest settings to event creation with configurable max guests per person
- Implement guest selection in RSVP form when guests are permitted
- Update API endpoints to handle guest count in RSVP requests
- Extend event and RSVP types to support guest-related fields
This commit is contained in:
2025-08-13 15:14:43 +02:00
parent 234c939dcd
commit 62fb84d25e
6 changed files with 306 additions and 64 deletions

View File

@@ -455,6 +455,8 @@ export interface Event {
cost_members?: string;
cost_non_members?: string;
member_pricing_enabled: string; // 'true' or 'false' as string
guests_permitted?: string; // 'true' or 'false' as string
max_guests_permitted?: string; // Maximum guests per person
visibility: 'public' | 'board-only' | 'admin-only';
status: 'active' | 'cancelled' | 'completed' | 'draft';
creator: string; // member_id who created event
@@ -476,6 +478,7 @@ export interface EventRSVP {
payment_reference: string; // EVT-{member_id}-{date}
attended: string; // 'true' or 'false' as string
rsvp_notes?: string;
extra_guests?: string; // Number of additional guests as string
created_time: string; // Updated to match database schema
updated_time: string; // Updated to match database schema
@@ -505,6 +508,8 @@ export interface EventCreateRequest {
cost_members?: string;
cost_non_members?: string;
member_pricing_enabled: string;
guests_permitted?: string;
max_guests_permitted?: string;
visibility: string;
status?: string;
}
@@ -512,8 +517,9 @@ export interface EventCreateRequest {
export interface EventRSVPRequest {
event_id: string;
member_id: string;
rsvp_status: 'confirmed' | 'declined' | 'pending';
rsvp_status: 'confirmed' | 'declined' | 'pending' | 'waitlist';
rsvp_notes?: string;
extra_guests?: string; // Number of additional guests as string
}
export interface EventAttendanceRequest {