diff --git a/frontend/components/engine/results-grid.tsx b/frontend/components/engine/results-grid.tsx index 42a1895..35fae3c 100644 --- a/frontend/components/engine/results-grid.tsx +++ b/frontend/components/engine/results-grid.tsx @@ -135,10 +135,10 @@ export function ResultsGrid({ allocation, eventId, onPublished, onChanged }: Res return (
-
+
-

+

{isDraft ? "Draft preview" : "Published teams"}

@@ -157,25 +157,25 @@ export function ResultsGrid({ allocation, eventId, onPublished, onChanged }: Res { label: "Experience balance", value: pct(averageMetric(allocation.teams, "skill_score")) }, { label: "Strength balance", value: pct(averageMetric(allocation.teams, "role_balance_score")) }, ].map(item => ( -

+

{item.label}

-

{item.value}

+

{item.value}

))}
{note && ( -
+
{note}
)} {warningEntries.length > 0 && ( -
- +
+
-

Constraint warnings

-
    +

    Constraint warnings

    +
      {warningEntries.map(([team, warnings]) => (warnings as string[]).map((w, i) =>
    • {team}: {w}
    • ) )} diff --git a/frontend/components/engine/team-card.tsx b/frontend/components/engine/team-card.tsx index 862bd87..35c4151 100644 --- a/frontend/components/engine/team-card.tsx +++ b/frontend/components/engine/team-card.tsx @@ -3,13 +3,13 @@ import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import type { Team } from "@/hooks/use-allocation"; const strengthColor: Record = { - technical: "bg-blue-100 text-blue-800", - design: "bg-pink-100 text-pink-800", - planning: "bg-indigo-100 text-indigo-800", - coordination: "bg-green-100 text-green-800", - communication: "bg-orange-100 text-orange-800", - research: "bg-purple-100 text-purple-800", - domain_expert: "bg-teal-100 text-teal-800", + technical: "bg-blue-500/20 text-blue-100 border-blue-400/30", + design: "bg-pink-500/20 text-pink-100 border-pink-400/30", + planning: "bg-indigo-500/20 text-indigo-100 border-indigo-400/30", + coordination: "bg-green-500/20 text-green-100 border-green-400/30", + communication: "bg-orange-500/20 text-orange-100 border-orange-400/30", + research: "bg-purple-500/20 text-purple-100 border-purple-400/30", + domain_expert: "bg-teal-500/20 text-teal-100 border-teal-400/30", }; export function TeamCard({ @@ -54,7 +54,7 @@ export function TeamCard({ {onPayout && (
{team.rationale && ( -
-

{team.rationale.title}

-

{team.rationale.summary}

+
+

{team.rationale.title}

+

{team.rationale.summary}

{team.rationale.strengths.length > 0 && ( -
    +
      {team.rationale.strengths.map((s, i) =>
    • {s}
    • )}
    )} {team.rationale.gaps.length > 0 && ( -
      +
        {team.rationale.gaps.map((g, i) =>
      • {g}
      • )}
      )}
)} -
-

Why this team?

+
+

Why this team?

This draft keeps {team.members.length} member{team.members.length !== 1 ? "s" : ""} together with {experienceSummary || "mixed experience"} and {strengthSummary || "mixed strengths"}.

@@ -111,7 +111,7 @@ export function TeamCard({ ].map(({ label, value }) => (
{label} -
+