feat: complete UI design system refactoring and fix TS build errors
This commit is contained in:
1 parent
0b1ffdfdfc
commit
8728308fc6
27 files changed
+847
-370
No files matched your search
@@ -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);
|
||||
|
||||
@@ -55,6 +55,7 @@ export type ReportSelection = {
|
||||
editorialId: string;
|
||||
usageIds: string[];
|
||||
period: BillingPeriod;
|
||||
flatrateCentsSnapshot: number | null;
|
||||
};
|
||||
|
||||
export type FinalizeReportInput = ReportSelection & {
|
||||
|
||||
Reference in new issue
Block a user