feat(enrich): field reordering, required-fields progress bar, and no-PDF upload state #267

Merged
marcel merged 20 commits from feat/issue-261-enrich-field-reorder-progress-bar-upload into main 2026-04-18 23:36:33 +02:00
Showing only changes of commit 44c7adbc24 - Show all commits

View File

@@ -6,11 +6,13 @@ import { getErrorMessage, parseBackendError } from '$lib/errors';
export async function load({ export async function load({
params, params,
fetch, fetch,
locals locals,
depends
}: { }: {
params: { id: string }; params: { id: string };
fetch: typeof globalThis.fetch; fetch: typeof globalThis.fetch;
locals: App.Locals; locals: App.Locals;
depends: (dep: string) => void;
}) { }) {
const canWrite = const canWrite =
locals.user?.groups?.some((g: { permissions: string[] }) => locals.user?.groups?.some((g: { permissions: string[] }) =>
@@ -18,6 +20,8 @@ export async function load({
) ?? false; ) ?? false;
if (!canWrite) throw redirect(303, '/'); if (!canWrite) throw redirect(303, '/');
depends('app:document');
const { id } = params; const { id } = params;
const api = createApiClient(fetch); const api = createApiClient(fetch);