feat(api): explain dashboard chargeability by chapter

This commit is contained in:
2026-03-31 23:34:03 +02:00
parent a8fcc4dacb
commit 703406a76b
7 changed files with 403 additions and 31 deletions
@@ -646,6 +646,7 @@ describe("dashboard use-cases", () => {
}),
}),
);
expect(result.rows).toHaveLength(1);
expect(result.top).toHaveLength(1);
expect(result.top[0]).toEqual(
expect.objectContaining({
@@ -778,6 +779,7 @@ describe("dashboard use-cases", () => {
watchlistThreshold: 15,
});
expect(result.rows).toHaveLength(1);
expect(result.top[0]?.actualChargeability).toBe(0);
expect(result.top[0]?.expectedChargeability).toBe(0);
expect(result.top[0]).toEqual(