Merge v2.1-2.2.0 features onto SakaniUI base

Ports calendar, self-service, sorting, image descriptions, logo (2.1),
filename search (2.1.1), statistics page, collab option and bundled
invoice PDF delivery (2.2.0) onto the deployed SakaniUI portal.

Also fixes the statistics daily series, which ended yesterday and so
hid today's activity from the charts, and ignores Playwright
test-results/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Leon TonhäuserandClaude Opus 5.5 committed 2026-11-30 22:19:34 +01:00
commit c0c2425dda
106 files changed
+10000 -110

No files matched your search

+8 -3
View File
@@ -598,6 +598,7 @@ export type DownloadDialogUsage = {
export type EditorialDownloadOptions = {
priceCents: number;
collabEnabled: boolean;
priorUsagesByAsset: Record<string, DownloadDialogUsage[]>;
};
@@ -615,7 +616,10 @@ export function createEditorialDownloadOptionsLoader(
throw new UsageAccountingError("INVALID_INPUT");
}
const [editorial] = await database
.select({ currentPriceCents: editorialAccounts.currentPriceCents })
.select({
currentPriceCents: editorialAccounts.currentPriceCents,
collabEnabled: editorialAccounts.collabEnabled,
})
.from(editorialAccounts)
.where(
and(
@@ -628,8 +632,9 @@ export function createEditorialDownloadOptionsLoader(
if (!Number.isSafeInteger(priceCents) || (priceCents ?? 0) <= 0) {
throw new UsageAccountingError("INVALID_PRICE");
}
const collabEnabled = editorial?.collabEnabled === true;
if (normalizedAssets.length === 0) {
return { priceCents: priceCents!, priorUsagesByAsset: {} };
return { priceCents: priceCents!, collabEnabled, priorUsagesByAsset: {} };
}
const deliveredOriginal = database
@@ -669,7 +674,7 @@ export function createEditorialDownloadOptionsLoader(
createdAt: row.createdAt.toISOString(),
});
}
return { priceCents: priceCents!, priorUsagesByAsset };
return { priceCents: priceCents!, collabEnabled, priorUsagesByAsset };
};
}