diff --git a/AGENTS.md b/AGENTS.md index 5845b686..bbb4953d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -411,3 +411,8 @@ decoders before BLE/Wi-Fi/data-session evidence exists. - Recover actual settings from retained JSON/records before considering manual reconstruction. Distinguish a proven storage defect from an unproven deletion trigger, and state the timestamp/fidelity limit of any recovered source. + + +## Enforced compact typography + +Operational values/section headings use md (13 px), explanatory/status/error copy uses Description/sm (12 px). Only canonical window/page title roles use title (18 px). Do not add browser-default paragraphs, local larger sizes, font shorthand or inline fontSize. Typography checks are mandatory build gates; never extend the frozen compact legacy baseline or generalize scene/display exceptions to satisfy a feature. Run the typography contract tests and verify computed sizes in centered/floating and narrow windows. See Design Guideline docs/OPERATIONAL_TYPOGRAPHY.md. diff --git a/apps/control-station/package.json b/apps/control-station/package.json index 83a8e467..c2caf7e6 100644 --- a/apps/control-station/package.json +++ b/apps/control-station/package.json @@ -6,11 +6,12 @@ "scripts": { "dev": "vite", "postinstall": "node scripts/install-rerun-navigation.mjs", - "prebuild": "node scripts/install-rerun-navigation.mjs", + "prebuild": "npm run check:typography && node scripts/install-rerun-navigation.mjs", "build": "tsc -b && vite build", "preview": "vite preview", "test:unit": "node --test --test-concurrency=1 test/*.test.mjs", - "typecheck": "tsc -b --pretty false" + "typecheck": "tsc -b --pretty false", + "check:typography": "node --test test/operationalTypography.test.mjs" }, "dependencies": { "@noble/hashes": "^2.2.0", diff --git a/apps/control-station/src/App.tsx b/apps/control-station/src/App.tsx index cc0fecfa..79ccfce5 100644 --- a/apps/control-station/src/App.tsx +++ b/apps/control-station/src/App.tsx @@ -1,7 +1,7 @@ import {SceneDisplayControls} from "../../../packages/spatial-ui/src/SceneDisplayControls"; import {SceneLayerControls} from "../../../packages/spatial-ui/src/SceneLayerControls"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; -import { +import { Description, AdminNavigationPanel, AppHeader, ApplicationPanel, @@ -1110,7 +1110,7 @@ export default function App() {