UI8 deferred deleting the legacy global classes (.surface-card, .surface-muted, .input-shell, .badge) because 69+ call sites in UI6/UI7 territory (dashboard, search, workspaces, notes detail, chat, palace) still depend on them. Removing the globals before those screens migrate would visually break the app. Instead, ship a one-way ratchet that solves the actually-important problem: prevent NEW legacy usage from creeping in while existing sites get migrated. - scripts/ui-drift-ratchet.sh — reads scripts/ui-drift-baseline.json and FAILS if any of the four UI drift categories regress above the tracked baseline. Pure bash, no jq required, works with grep or ripgrep. Uses the same patterns as scripts/ui-drift-audit.sh. - scripts/ui-drift-baseline.json — checked-in baseline captured today: raw controls 38, legacy classes 92, hardcoded colors 0, direct imports 0. - package.json — adds pnpm run audit:ui:ratchet and audit:ui:ratchet:update scripts. - .github/workflows/ci.yml release-guards job — runs the ratchet as a required step plus the existing audit in report mode. - docs/UI_UX_PLATFORM_CORE_ROADMAP.md — marks the CI-guard checklist item complete, documents the path to fully strict mode (drive baseline to zero, then delete globals.css legacy classes, then flip audit:ui:strict from advisory to required). Verified: - Ratchet at baseline: exits 0 - Synthetic regression (added a file with surface-card + raw <input>): ratchet correctly exits 1, reporting +1 in each affected category - pnpm run verify: backend 380/380, web 96/96, mobile 97/97 (no behavior change)
33 lines
1.4 KiB
JSON
33 lines
1.4 KiB
JSON
{
|
|
"name": "notelett-workspace",
|
|
"private": true,
|
|
"packageManager": "pnpm@10.6.5",
|
|
"scripts": {
|
|
"typecheck": "pnpm --filter @notelett/backend run typecheck && pnpm --filter @notelett/web run typecheck && pnpm --filter @notelett/mobile run typecheck",
|
|
"test": "pnpm --filter @notelett/backend run test && pnpm --filter @notelett/web run test && pnpm --filter @notelett/mobile run test",
|
|
"build": "pnpm --filter @notelett/backend run build && pnpm --filter @notelett/web run build",
|
|
"install:common-plat": "BYTELYST_PACKAGE_SOURCE=common-plat pnpm install -r",
|
|
"install:gitea": "BYTELYST_PACKAGE_SOURCE=gitea pnpm install -r",
|
|
"smoke:local": "bash scripts/local-smoke.sh",
|
|
"smoke:compose": "bash scripts/compose-smoke.sh",
|
|
"seed:bootstrap": "pnpm --filter @notelett/backend run bootstrap:seed",
|
|
"audit:release-guards": "bash scripts/release-guard-audit.sh",
|
|
"audit:ui": "bash scripts/ui-drift-audit.sh",
|
|
"audit:ui:strict": "bash scripts/ui-drift-audit.sh --strict",
|
|
"audit:ui:ratchet": "bash scripts/ui-drift-ratchet.sh",
|
|
"audit:ui:ratchet:update": "bash scripts/ui-drift-ratchet.sh --update",
|
|
"dependency:health": "bash scripts/dependency-health.sh",
|
|
"verify": "pnpm run typecheck && pnpm run test && pnpm run build",
|
|
"prepare": "husky"
|
|
},
|
|
"devDependencies": {
|
|
"husky": "^9.0.0"
|
|
},
|
|
"pnpm": {
|
|
"overrides": {
|
|
"react": "19.2.0",
|
|
"react-dom": "19.2.0"
|
|
}
|
|
}
|
|
}
|