Integrate LiveKit SFU and harden booking workflow

This commit is contained in:
2026-09-16 19:38:28 +02:00
parent f1cd07b3ad
commit d0864e2911
55 changed files with 1648 additions and 1234 deletions
+6
View File
@@ -11,6 +11,7 @@ export type AdminCalendarItem = {
endTime: string;
status: string; // booking status, or "public" for a standalone Event
appointmentType?: "onsite" | "online";
callEventSlug?: string;
href: string;
};
@@ -61,6 +62,10 @@ export async function getAdminCalendarItems(
endTime: b.endTime,
status: b.status,
appointmentType: b.appointmentType,
callEventSlug:
b.appointmentType === "online" && typeof b.linkedEvent === "object" && b.linkedEvent?.slug
? b.linkedEvent.slug
: undefined,
href: `/admin/collections/booking-requests/${b.id}`,
};
});
@@ -74,6 +79,7 @@ export async function getAdminCalendarItems(
endTime: e.endTime ?? e.date,
status: "public",
appointmentType: e.isOnline ? "online" : "onsite",
callEventSlug: e.isOnline && e.slug ? e.slug : undefined,
href: `/admin/collections/events/${e.id}`,
}));