# Phase 5: Integration & Polish **Status:** ⬜ Not Started **Parent plan:** [PLAN.md](./PLAN.md) **Domain:** fullstack ## Objective Integrate all Phase 2 features, fix all build/type/lint errors, write tests, and ensure everything works together. ## Tasks - [ ] Task 1: Fix all TypeScript/build errors across the codebase - [ ] Task 2: Verify `npm run build` succeeds - [ ] Task 3: Verify `npm run check` passes - [ ] Task 4: Verify `npm run lint` passes - [ ] Task 5: Write tests for oauthService - [ ] Task 6: Write tests for new widget types (validators, rendering logic) - [ ] Task 7: Write tests for reorder APIs - [ ] Task 8: Write tests for board permissions API - [ ] Task 9: Update seed script with example data for new widget types - [ ] Task 10: Verify all existing tests still pass - [ ] Task 11: Update `.env.example` with all new env vars documented ## Files to Modify/Create - Various source files — fix build errors - New test files for Phase 2 features - `prisma/seed.ts` — update - `.env.example` — update ## Acceptance Criteria - `npm run build` succeeds - `npm run check` passes - `npm run lint` passes - `npm test` passes (existing + new tests) - All Phase 2 features work together - OAuth flow works end-to-end (when configured) - DnD reordering persists correctly - All widget types render and edit correctly - Board access control UI works with permission system ## Notes - Big Bang convergence — fix everything here - Priority: build errors → type errors → lint → tests ## Review Checklist - [ ] All tasks completed - [ ] Code follows project conventions - [ ] No unintended side effects - [ ] Build passes - [ ] Tests pass (new + existing) ## Handoff