export const fixMedium = {
    name: "fix-medium",
    description: "Fix MEDIUM severity issues — data access layer, logging, code organization",
    content: `Read AUDIT.md in the repo root. Fix every issue under the MEDIUM section.

Round A: Data Access Layer
- If Supabase calls are scattered, create lib/db/ with typed functions per table
- Each function handles its own error handling and returns typed results
- Replace all direct supabase.from() calls with these functions

Round B: Structured Logging
- Replace console.log with a lightweight structured logger in lib/logger.ts
- Levels: info, warn, error. Dev: console with context. Prod: structured JSON.
- Every API route logs: request received, success/failure, duration
- Every error catch logs with context (route, user id, input)

Round C: Code Organization
- Break components over 300 lines into smaller composable components
- Extract duplicated logic into shared utilities
- Remove dead code: unused imports, commented-out blocks, unreachable branches

Round D: Error Boundaries
- Add root-level React Error Boundary if none exists
- Add boundaries around major data-fetching sections
- Each shows user-friendly fallback with retry

After all fixes: git commit "fix: resolve medium priority tech debt", update AUDIT.md.`
};
//# sourceMappingURL=fix-medium.js.map