A1: foundation scaffold (Next.js 15, shadcn/Radix, Drizzle+Postgres, Vitest, Docker)

- Next.js 15 + TS strict + Tailwind 4 + ESLint 9
- shadcn/ui initialized (Radix, CSS variables); cn() util
- Drizzle + postgres driver + Zod; db client + schema placeholder (A2)
- Vitest with passing cn() test; GitHub Actions CI
- Portable container stack: multi-stage non-root Dockerfile, docker-compose (app + Postgres on host 5433)
- Verified: typecheck, lint, test (3), build, docker build, HTTP 200 on :3000
- Records the 5 pre-build decisions (email-only launch, SMS deferred)
This commit is contained in:
Tiel Coder
2026-11-17 18:09:24 +00:00
commit c595865496
39 changed files with 10908 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
# PROGRESS
Build log for Media Team Hub. One unit per commit, top to bottom. Append after each passing check.
---
## A1 — Foundation scaffold — DONE 2026-11-17
**Scope (from BUILD-PLAN.md):** Next.js 15 + TS strict, Tailwind 4, shadcn/ui (Radix), Drizzle, Zod, Vitest, lint, CI.
**Delivered:**
- Next.js 15, React 19, TypeScript strict, Tailwind 4, ESLint 9
- shadcn/ui initialized manually (Radix + CSS variables) — `components.json`, `src/lib/utils.ts`, theme in `globals.css`
- Drizzle + `postgres` driver + Zod; `src/db/index.ts` client, `src/db/schema.ts` placeholder (A2 fills it)
- Vitest (jsdom-capable) with a passing `cn()` test
- GitHub Actions CI (typecheck → lint → test → build)
- **Portable container stack** (user request): multi-stage Dockerfile (non-root, pnpm), `docker-compose.yml` (app + Postgres), `.dockerignore`
**Verification (all exit 0):**
- `pnpm typecheck` ✓
- `pnpm lint` ✓
- `pnpm test` ✓ (3 tests)
- `pnpm build` ✓
- `docker compose build app` ✓
- Container serves HTTP 200 on :3000, title "Media Team Hub" ✓
**Port audit (nothing else touched):** app → host **3000**; Postgres → host **5433** (local 5432 already taken). Confirmed free before binding.
**Decisions recorded in README.md ("Decisions recorded from your answers"):**
- Services: Sun 10:30 AM + 5:30 PM, `America/New_York` (DST-safe, changeable as data)
- One person per role
- Admin = full control; Coordinator = everything except design/theme + admin/settings
- CSV-only migration
- **Email-only at launch; SMS (Twilio + 10DLC) deferred**
**Stack change from docs:** docs target Cloudflare Workers (D1/R2/Cron Triggers — not portable). For portability we use standard Next.js Node container + Postgres + local media volume + node cron worker. Domain logic, data model, and UI are unchanged.
**Next: A2 — schema core.**