feat: Shoring column in ProjectHealth widget + populate country data
Widget: added "Shoring" column with ShoringBadge per project showing offshore % with color indicator (green/yellow/red). Backend: added id field to ProjectHealthRow for badge queries. Database: assigned diverse countries to 11 resources for realistic shoring data (25 DE, 5 ES, 4 IN, 2 US instead of all-DE). Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
@@ -2,6 +2,7 @@ import type { PrismaClient } from "@planarchy/db";
|
||||
import { calculateInclusiveDays } from "./shared.js";
|
||||
|
||||
export interface ProjectHealthRow {
|
||||
id: string;
|
||||
projectName: string;
|
||||
shortCode: string;
|
||||
clientId: string | null;
|
||||
@@ -94,6 +95,7 @@ export async function getDashboardProjectHealth(
|
||||
);
|
||||
|
||||
return {
|
||||
id: p.id,
|
||||
projectName: p.name,
|
||||
shortCode: p.shortCode,
|
||||
clientId: p.clientId,
|
||||
|
||||
Reference in New Issue
Block a user