learning_ai_notes/docs
saravanakumardb1 78433b0e45 feat(ci): one-way UI drift ratchet to prevent regressions
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)
2026-05-23 00:13:50 -07:00
..
archive docs(cleanup): move historical roadmaps to docs/archive/ and update AGENTS.md 2026-05-22 23:23:50 -07:00
roadmaps docs(cleanup): move historical roadmaps to docs/archive/ and update AGENTS.md 2026-05-22 23:23:50 -07:00
runbooks docs(runbooks): add MEK rotation and secret-management runbooks 2026-05-22 23:23:38 -07:00
BACKEND_LLM_ROUTER_DECISION.md docs(backend): defer llm router adoption 2026-05-05 09:37:22 -07:00
COSMOS_DATA_OPERATIONS.md docs(data): add migration backfill plan 2026-05-05 13:48:52 -07:00
COSMOS_QUERY_REVIEW.md docs(data): add cosmos operations runbook 2026-05-05 13:38:58 -07:00
DATA_MIGRATION_AND_BACKFILL_PLAN.md docs(data): add migration backfill plan 2026-05-05 13:48:52 -07:00
DEEP_LINKS.md feat: implement WEB_AI_FAST_ROADMAP (web + backend + docs) 2026-03-31 13:00:36 -07:00
FIELD_ENCRYPTION_COVERAGE.md docs(data): add migration backfill plan 2026-05-05 13:48:52 -07:00
IMPLEMENTATION_TRACKER.md docs(cleanup): move historical roadmaps to docs/archive/ and update AGENTS.md 2026-05-22 23:23:50 -07:00
IMPORT_EXPORT_READINESS.md feat(notes): harden import export readiness 2026-05-05 12:15:11 -07:00
MEMPALACE_INTEGRATION_ROADMAP.md docs(palace): update roadmap — mark all phases complete with commit hashes + test counts 2026-04-10 10:22:42 -07:00
MOBILE_DELEGATION_ROADMAP.md docs(mobile): defer sync engine adoption 2026-05-05 09:35:47 -07:00
MOBILE_PLATFORM_SDK_DECISION.md docs(mobile): defer react native platform sdk 2026-05-05 09:34:34 -07:00
MOBILE_PRODUCTION_BUILD_AND_SMOKE.md docs(mobile): add production build smoke checklist 2026-05-05 13:23:47 -07:00
MOBILE_SYNC_DECISION.md docs(mobile): defer sync engine adoption 2026-05-05 09:35:47 -07:00
NEXT_SPRINT_ROADMAP.md docs(sprint-a): record build restoration and refreshed sprint plan 2026-05-22 15:08:42 -07:00
OPERATOR_RUNBOOK.md docs(ops): add operator runbook 2026-05-05 13:53:59 -07:00
PLATFORM_SMOKE_CHECKS.md chore(platform): add local smoke script 2026-05-05 09:29:42 -07:00
PRD.md feat(identity): lock NoteLett product identity across all surfaces 2026-03-10 18:47:01 -07:00
PRODUCTION_READINESS_HANDOFF_ROADMAP.md docs(sprint-a): record build restoration and refreshed sprint plan 2026-05-22 15:08:42 -07:00
RELEASE_CHECKLIST.md docs(ops): add operator runbook 2026-05-05 13:53:59 -07:00
ROADMAP.md docs(release): record final handoff status 2026-05-05 14:20:15 -07:00
SEED_BOOTSTRAP_STRATEGY.md docs(data): add migration backfill plan 2026-05-05 13:48:52 -07:00
SMART_ACTIONS_ROADMAP.md docs: update AGENTS.md test counts and SMART_ACTIONS_ROADMAP Phase 6 status (G20) 2026-04-06 13:44:41 -07:00
SMART_ACTIONS_USER_GUIDE.md feat(smart-actions): add run-stream SSE, history endpoint, weekly-digest template, web client functions (G1-G5) 2026-04-06 13:27:02 -07:00
TELEMETRY_AND_DIAGNOSTICS_TAXONOMY.md docs(ops): define telemetry taxonomy 2026-05-05 13:51:28 -07:00
UI_UX_PLATFORM_CORE_ROADMAP.md feat(ci): one-way UI drift ratchet to prevent regressions 2026-05-23 00:13:50 -07:00
UX_TESTING_SETUP_GUIDE.md feat(ux): add UX testing setup guide and common platform integration 2026-05-09 22:09:43 +00:00
WEB_AI_FAST_ROADMAP.md feat: implement WEB_AI_FAST_ROADMAP (web + backend + docs) 2026-03-31 13:00:36 -07:00