learning_ai_invt_trdg/.windsurf/workflows/trading-ui-remediation.md

1.8 KiB

description
Trading UI remediation verification with turbo-safe checks

Trading UI Remediation Verification

Use this workflow after each UI remediation slice in learning_ai_invt_trdg.

  1. Review current working tree status.

// turbo 2. Run git status --short --branch.

  1. Inspect the pending diff and confirm only intended files changed.

// turbo 4. Run git diff --stat.

// turbo 5. Run git diff --check.

  1. Run the UI drift audit.

// turbo 7. Run pnpm run audit:ui.

// turbo 8. Run pnpm run audit:ui:strict.

  1. Run trading web static verification.

// turbo 10. Run pnpm --filter @bytelyst/trading-web typecheck.

// turbo 11. Run pnpm --filter @bytelyst/trading-web lint.

// turbo 12. Run pnpm --filter @bytelyst/trading-web build.

  1. Run targeted tests for the changed surface. Prefer one of these commands based on the slice:

// turbo 14. For app shell/layout changes, run TMPDIR="$PWD/.tmp/vitest" pnpm --filter @bytelyst/trading-web exec vitest run src/components/layout/Header.dom.test.tsx src/components/layout/AppShell.dom.test.tsx src/App.dom.test.tsx.

// turbo 15. For Trade Plans changes, run TMPDIR="$PWD/.tmp/vitest" pnpm --filter @bytelyst/trading-web exec vitest run src/views/SimpleView.test.ts src/views/tradePlansState.test.ts.

// turbo 16. For primitive adapter changes, run TMPDIR="$PWD/.tmp/vitest" pnpm --filter @bytelyst/trading-web exec vitest run src/components/ComponentsSmoke.test.ts.

  1. If all verification passes, update docs/PRODUCTION_GRADE_UX_REMEDIATION_ROADMAP.md with the slice summary, verification commands, and commit hash.

  2. Commit the implementation slice with a scoped message such as refactor(ui): polish app shell right rail.

  3. Commit the roadmap update with a scoped message such as docs(ui): record app shell remediation.

  4. Push to origin main.