feat(platform): harden access scoping and delivery baseline

This commit is contained in:
2026-03-30 00:27:31 +02:00
parent 00b936fa1f
commit 819345acfa
109 changed files with 26142 additions and 8081 deletions
@@ -11,7 +11,7 @@ export function PublicHolidayBatch() {
const [replaceExisting, setReplaceExisting] = useState(false);
const [result, setResult] = useState<{ created: number; holidays?: number; resources?: number } | null>(null);
const { data: resources } = trpc.resource.list.useQuery(
const { data: resources } = trpc.resource.directory.useQuery(
{ isActive: true, limit: 500 },
{ staleTime: 60_000 },
);
@@ -25,7 +25,7 @@ export function TeamCalendar() {
const firstDay = new Date(Date.UTC(year, month, 1));
const daysInMonth = new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
const { data: resources } = trpc.resource.list.useQuery(
const { data: resources } = trpc.resource.directory.useQuery(
{ isActive: true, limit: 500, ...(chapter ? { chapter } : {}) },
{ staleTime: 60_000 },
);
@@ -44,7 +44,7 @@ export function VacationClient() {
{ staleTime: 15_000 },
);
const { data: resources } = trpc.resource.list.useQuery(
const { data: resources } = trpc.resource.directory.useQuery(
{ isActive: true, limit: 500 },
{ staleTime: 60_000 },
);
@@ -91,7 +91,7 @@ export function VacationModal({ resourceId: initialResourceId, onClose, onSucces
const debouncedStart = useDebounce(startDate, 400);
const debouncedEnd = useDebounce(endDate, 400);
const { data: resources } = trpc.resource.list.useQuery(
const { data: resources } = trpc.resource.directory.useQuery(
{ isActive: true, limit: 500 },
{ staleTime: 60_000 },
);