diff --git a/CLAUDE.md b/CLAUDE.md index cc244c8..ee005cc 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -91,7 +91,7 @@ Source of truth: `design-system/design.md`. Visual references: `design-system/IM - Incident evidence photos stay full colour. - New pattern needed? Check design.md first. If it isn't there, design it in the design tool, then add it to design.md in the same PR as the component. - Gotcha: never write `*/` inside a CSS comment in `globals.css`; it ends the comment and silently swallows the `@theme` block. -- Run `npm run check:design` before committing UI changes; it must print `design gates: clean`. Update `scripts/check-design-gates.mjs` first: allow `rounded-*`, flag `border-b-2`/`border-2`, flag Archivo and `#ec3013`. +- Run `npm run check:design` before committing UI changes; it must print `design gates: clean`. The gate flags 2px borders, `Archivo`, hard-coded hex, `bg-white`, `shadow-xl/2xl`, centered button labels and off-palette hues; rounded corners are allowed. Extend `scripts/check-design-gates.mjs` when design.md adds a rule. ## graphify When graphify-out/graph.json exists: diff --git a/app/(auth)/login/page.tsx b/app/(auth)/login/page.tsx index 22358ae..85c9bc4 100644 --- a/app/(auth)/login/page.tsx +++ b/app/(auth)/login/page.tsx @@ -10,11 +10,11 @@ export default async function LoginPage({ searchParams }: Props) { return (
{message === 'password_reset' && ( -
+
Password updated — sign in with your new password.
)} -
+
diff --git a/app/(protected)/hse/dashboard/page.tsx b/app/(protected)/hse/dashboard/page.tsx index f48eb95..0683fc5 100644 --- a/app/(protected)/hse/dashboard/page.tsx +++ b/app/(protected)/hse/dashboard/page.tsx @@ -187,8 +187,8 @@ export default async function HseDashboardPage({ {(tab === 'overview') && ( <> {now.getMonth() === 0 && ( -
-

+

+

JKKP 8 annual register due: the {now.getFullYear() - 1} register must be submitted to DOSH before 31 January {now.getFullYear()}.{' '} diff --git a/app/(protected)/reporter/incidents/[id]/page.tsx b/app/(protected)/reporter/incidents/[id]/page.tsx index 103f4d4..2c55ac3 100644 --- a/app/(protected)/reporter/incidents/[id]/page.tsx +++ b/app/(protected)/reporter/incidents/[id]/page.tsx @@ -106,9 +106,9 @@ export default async function ReporterIncidentDetail({

{c.description}

{c.status.replace(/_/g, ' ')}
))} diff --git a/components/auth/login-form.tsx b/components/auth/login-form.tsx index 1d386ac..26d1121 100644 --- a/components/auth/login-form.tsx +++ b/components/auth/login-form.tsx @@ -39,13 +39,13 @@ export function LoginForm() { return (
-
-

IMS

+
+

IMS

HSE Incident Management

{error && ( -

+

{error}

)} diff --git a/components/dashboard/risk-flags-panel.tsx b/components/dashboard/risk-flags-panel.tsx index 2e5a250..746d1dc 100644 --- a/components/dashboard/risk-flags-panel.tsx +++ b/components/dashboard/risk-flags-panel.tsx @@ -11,9 +11,9 @@ type RiskFlag = { } const LEVEL_COLORS: Record = { - low: 'bg-neutral-100 text-neutral-800 border-divider', - medium: 'bg-ground text-accent-700 border-accent', - high: 'bg-accent-100 text-accent-800 border-accent', + low: 'bg-st-grey-bg text-st-grey-fg border-transparent', + medium: 'bg-st-amber-bg text-st-amber-fg border-transparent', + high: 'bg-st-red-bg text-st-red-fg border-transparent', } export function RiskFlagsPanel() { @@ -71,7 +71,7 @@ export function RiskFlagsPanel() {

{summary}

{flags.map(f => ( -
+
{f.zone} · {f.site} {f.risk_level} diff --git a/components/incidents/investigation-panel.tsx b/components/incidents/investigation-panel.tsx index 58dfae4..2d8fea6 100644 --- a/components/incidents/investigation-panel.tsx +++ b/components/incidents/investigation-panel.tsx @@ -42,8 +42,8 @@ export function InvestigationPanel({ investigation: inv }: Props) { {METHOD_LABELS[inv.method] ?? inv.method} {inv.completed_at ? 'Completed' : 'In Progress'} diff --git a/components/incidents/offline-sync.tsx b/components/incidents/offline-sync.tsx index 9f915a2..ce4ed37 100644 --- a/components/incidents/offline-sync.tsx +++ b/components/incidents/offline-sync.tsx @@ -56,8 +56,8 @@ export function OfflineSync() { if (pendingCount === 0) return null return ( -
- +
+ {pendingCount} report{pendingCount > 1 ? 's' : ''} saved offline