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

+20 -3
View File
@@ -12,6 +12,10 @@ import { startPostgres } from "./postgres";
const testDb = await startPostgres({
through: "0001_editorial_approval_notice.sql",
migrationsDir: "drizzle-history/pre-squash-2026-08",
alsoApply: [
"drizzle/0002_release_notes_calendar.sql",
"drizzle/0003_collab_invoice_activity.sql",
],
});
afterAll(() => testDb.stop());
@@ -199,10 +203,23 @@ test("0002 preserves dirty rows and reconstructs only provable legacy intents",
await testDb.applyRemainingMigrations();
// The retry path refreshes the upstream snapshot before resolving the
// persisted intent, so the mock must answer with the legacy-clean ids.
const immich = {
getAlbum: vi.fn(),
getAsset: vi.fn(),
searchPhotos: vi.fn(),
getAlbum: vi.fn().mockResolvedValue({ id: validAlbumId, albumName: "Presse 2026" }),
getAsset: vi.fn().mockResolvedValue({
id: validAssetId,
type: "IMAGE",
originalFileName: "jubel.jpg",
originalMimeType: "image/jpeg",
albums: [{ id: validAlbumId }],
}),
searchPhotos: vi.fn().mockResolvedValue({
items: [{ id: validAssetId }],
total: 1,
nextPage: null,
previousPage: null,
}),
};
const usageService = createUsageService({
repository: createUsageServiceRepository(testDb.database),