diff --git a/AGENTS.md b/AGENTS.md index d7866807..e595e950 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -458,7 +458,7 @@ The recipe (each piece is separable; use subsets, do not feel obliged to use all 4. **Military status language**: squared pill (`rounded-sm`) or plain colored text, uppercase relabels (e.g. Concept โ†’ Planning, In Progress โ†’ Active Deployment, Completed โ†’ Concluded). The status color renders as **text** (`text-blue-400` / `text-emerald-400` / `text-muted-foreground`); do not duplicate status in two places on one card. 5. **Readout footer**: a permanent (not hover-only) single-line bar (`border-t border-white/15 bg-black/60 py-1.5 backdrop-blur-sm`), cells `flex-1` separated by hairline `border-r border-white/15`, each cell a `font-mono text-xs tabular-nums text-white/80` value plus a 9px uppercase `text-white/50` label (e.g. `3 MSNS`, `4h 0m DURATION`). No owner/DIR cell unless the user wants it. 6. **Darkened cover imagery**: image at `opacity-15` (hover 25) under a heavy gradient (`from-black/85 via-black/60 to-black/25`) so text stays readable. -7. **Faint grid texture**: 1px white grid lines, 28px cells, `opacity-[0.04]` (hover 0.07), `motion-reduce` honored. +7. **Faint grid texture**: 1px white grid lines, 28px cells, `opacity-[0.04]`. Constant opacity: it does NOT brighten on hover (only borders/brackets/imagery highlight). 8. **One-shot glitch hover** (only with explicit user opt-in; it is extra motion): every layer fires instantly at 0% then decays; steps-based chaos only in the first ~15-20% of the animation; title/soft text restore to readable within ~25-35%; chromatic aberration via paired cyan/rose `text-shadow`; title shards are duplicated absolutely-positioned `aria-hidden` spans clipped by slanted `clip-path` polygons (cyan `#22d3ee`, rose `#f43f5e`, white); image tears use two ghost `` copies clipped to horizontal bands so pieces shift but nothing ever disappears (never animate `opacity: inherit` on an image, it flashes to full brightness). Image band decay may run longer (2s) than text (1s). Everything is one-shot (no `infinite`) and fully disabled under `prefers-reduced-motion`. Where it fits: large feature/hero cards, section headers, showcase surfaces. Where it does not: dense data UI, tables, forms, dialogs, buttons, or anything shadcn-styled (the shadcn rule above still governs those). Consistency rule: within one page, secondary surfaces stay conventional so the tactical surface stands out. diff --git a/src/components/frontend/baseManagement/EmploymentCard.tsx b/src/components/frontend/baseManagement/EmploymentCard.tsx index 2a51e6cd..90936153 100644 --- a/src/components/frontend/baseManagement/EmploymentCard.tsx +++ b/src/components/frontend/baseManagement/EmploymentCard.tsx @@ -1,10 +1,11 @@ "use client"; -import { BadgeCheckIcon } from "lucide-react"; +import { Building2Icon } from "lucide-react"; import type { CurrencyConfig } from "@/lib/banking/format"; import { CurrencyAmount } from "@/components/frontend/banking/CurrencyAmount"; -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; +import { StrategicSummary } from "@/components/frontend/operations"; import { HireStaffDialog } from "@/components/frontend/baseManagement/HireStaffDialog"; +import { cn } from "@/lib/utils"; import type { LaborClassificationOption, StructureStaffingOption } from "@/lib/base"; interface EmploymentCardProps { @@ -24,6 +25,28 @@ interface EmploymentCardProps { readonly currencyConfig: CurrencyConfig; } +/** Squared tactical chip colors per staffing position type. */ +const POSITION_TYPE_STYLES: Record = { + labor: "border-amber-500/40 bg-amber-500/20 text-amber-400", + administrative: "border-blue-500/40 bg-blue-500/20 text-blue-400", + technical: "border-violet-500/40 bg-violet-500/20 text-violet-400", + other: "border-white/25 bg-white/10 text-white/70", +}; + +function PositionTypeChip({ type }: { type: string }) { + const style = POSITION_TYPE_STYLES[type] ?? POSITION_TYPE_STYLES.other; + return ( + + {type} + + ); +} + export function EmploymentCard({ employment, structures, @@ -36,50 +59,46 @@ export function EmploymentCard({ currencyConfig, }: EmploymentCardProps) { return ( - - - - - Employment - - Current base assignment and compensation. - - - {employment ? ( -
-

{employment.positionTitle}

-

- {employment.positionType} ยท {employment.structureName} -

-

- /tick -

+ + {employment ? ( +
+
+

{employment.positionTitle}

+
- ) : canManage && hiringEnabled ? ( -
-

Not currently employed.

- +
+ + {employment.structureName}
- ) : canManage ? ( -
-

Not currently employed.

-

- {hiringDisabledMessage || "Staff hiring is currently disabled."} -

+
+ + /tick
- ) : ( -

Not currently employed.

- )} - - +
+ ) : canManage && hiringEnabled ? ( +
+

Not currently employed.

+ +
+ ) : canManage ? ( +
+

Not currently employed.

+

+ {hiringDisabledMessage || "Staff hiring is currently disabled."} +

+
+ ) : ( +

Not currently employed.

+ )} + ); } diff --git a/src/components/frontend/intelligence/CampaignCard.tsx b/src/components/frontend/intelligence/CampaignCard.tsx index baccc569..85faae25 100644 --- a/src/components/frontend/intelligence/CampaignCard.tsx +++ b/src/components/frontend/intelligence/CampaignCard.tsx @@ -143,7 +143,7 @@ export function CampaignCard({ campaign, size = "lg" }: CampaignCardProps) { {!isSmall && (