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:
2026-03-26 11:49:28 +01:00
parent 92a982b151
commit be2d2c0d56
2 changed files with 9 additions and 0 deletions
@@ -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,