feat(dashboard): tighten explainability detail views

This commit is contained in:
2026-03-31 22:50:47 +02:00
parent db50e2e555
commit 7ace137d16
11 changed files with 580 additions and 65 deletions
@@ -31,6 +31,8 @@ type TopValueResourceRow = {
displayName: string;
chapter: string | null;
valueScore: number | null;
valueScoreBreakdown: import("@capakraken/shared").ValueScoreBreakdown | null;
valueScoreUpdatedAt: Date | null;
lcrCents: number;
countryCode: string | null;
countryName: string | null;
@@ -238,6 +240,8 @@ export async function getDashboardDetail(ctx: DashboardProcedureContext, input:
totalHoursPerDay: round1(entry.totalHours),
capacityHours: round1(entry.capacityHours),
utilizationPct: entry.utilizationPct ?? null,
calendarContextCount: entry.derivation?.calendarContextCount ?? 0,
calendarLocations: entry.derivation?.calendarLocations ?? [],
}));
}
@@ -249,6 +253,8 @@ export async function getDashboardDetail(ctx: DashboardProcedureContext, input:
chapter: resource.chapter ?? null,
lcr: fmtEur(resource.lcrCents),
valueScore: resource.valueScore ?? null,
valueScoreBreakdown: resource.valueScoreBreakdown ?? null,
valueScoreUpdatedAt: resource.valueScoreUpdatedAt?.toISOString() ?? null,
countryCode: resource.countryCode ?? null,
countryName: resource.countryName ?? null,
federalState: resource.federalState ?? null,