feat: complete UI design system refactoring and fix TS build errors

This commit is contained in:
Leon Tonhäuser committed 2026-08-11 03:38:34 +02:00
1 parent 0b1ffdfdfc
commit 8728308fc6
27 files changed
+847 -370

No files matched your search

+6
View File
@@ -24,6 +24,7 @@ const validSelection = {
usageIds: ["u1", "u2"],
period,
adminUserId: "a1",
flatrateCentsSnapshot: null,
};
const address: BillingReportAddress = {
@@ -69,6 +70,10 @@ function createMockRepo() {
return address;
},
async getEditorialFlatrate() {
return { flatrateActive: false, flatratePriceCents: null, flatrateAssetLimit: null };
},
async getSelectedUsages(_editorialId, usageIds) {
return usageIds.map((id) => selectedUsage(id, usageStatuses.get(id) as "open" | "reopened"));
},
@@ -233,6 +238,7 @@ test("previewReport returns PDF bytes without persisting or billing", async () =
editorialId: validSelection.editorialId,
usageIds: validSelection.usageIds,
period: validSelection.period,
flatrateCentsSnapshot: null,
});
expect(bytes).toBeInstanceOf(Buffer);