Files
homarr/.cursor/goal/scratchpad.md
T
Thomas Camlong b81b90875f fix: revert DB driver to static imports, fix test regressions
- Revert createRequire() for DB drivers — require() can't resolve .ts
  files in Vitest, breaking 49 test suites
- Make cache invalidation fail-safe via try-catch around revalidateTag
  (throws outside Next.js context: tests, tasks service, websocket)
- Fix 6 integration test imports: barrel no longer exports concrete
  classes, point tests at direct source paths
- Fix Redis cache handler lint errors: remove non-null assertions,
  suppress __NEXT_BUILD_ID underscore warning
2026-08-07 20:43:07 +02:00

38 lines
1.4 KiB
Markdown

---
iteration: 1
max_iterations: 30
status: active
goal: "Review, fix, benchmark, and verify every package in Phase 1 performance branch until perfect"
success_criteria:
- "[ ] pnpm typecheck passes across all packages"
- "[ ] pnpm test passes (all specs green)"
- "[ ] pnpm lint passes"
- "[ ] pnpm format passes"
- "[ ] All 91 changed files reviewed for correctness"
- "[ ] No dead code or unused imports"
- "[ ] Every mutation router has correct cache invalidation"
- "[ ] Redis cache handler is correct and tested"
- "[ ] Integration dynamic imports are complete and typed"
- "[ ] SVG sanitization is secure (XSS test corpus)"
- "[ ] Translation memoization is correct"
- "[ ] Memory channel fallback works correctly"
- "[ ] Redis client consolidation is correct"
- "[ ] Next.js config is optimal"
- "[ ] Board routes have proper Suspense boundaries"
- "[ ] No regressions in auth/permissions"
- "[ ] Benchmark shows measurable improvement"
- "[ ] All review rounds produce zero critical issues"
- "[ ] Code simplified where possible"
- "[ ] Documentation is accurate"
last_verdict: null
last_reason: null
last_next: "Run typecheck, tests, lint, format; then review all packages"
engine: cursor
---
## Progress log
### Iteration 1 — Baseline verification
- Starting comprehensive review of 91 changed files
- Running all verification commands in parallel