feat(dashboard): tighten explainability detail views
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user