bhursey
cb5976edb2
feat(training): rich-text lessons with inline images and 25 MB manuals
...
CI / build (push) Has been cancelled
Admins were authoring plain-text lessons, which made illustrated tutorials
and reordering images impossible. Lesson bodies are now sanitized HTML from a
Tiptap editor with alignment, sizing, drag-reorder and alt text, and inline
images reuse the training_resources table so no migration is needed.
Attachments grow to 25 MB, PDFs stream inline, and SVG is rejected because it
can execute as a document. Legacy plain-text bodies are normalized on read.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com >
2026-11-20 12:18:24 +00:00
bhursey
3fd8ffb0f9
ci: target the main branch
...
CI / build (push) Has been cancelled
The repository moved from master to main, but the workflow still only triggered on master, so pushes and pull requests ran no CI. Update the trigger and the current-state docs to match.
2026-11-20 05:17:13 +00:00
Tiel Coder
5adf1cef1f
push to maple-street
2026-11-20 04:07:02 +00:00
Tiel Coder
2cec220a24
docs(D8): mark D8 complete — all checks green
2026-11-18 22:09:18 +00:00
Tiel Coder
d0a696167f
fix(D8): grid slots render, per-cell optimistic revert, shared E2E helpers, admin reset endpoint
...
- src/db/grid.ts: key role map by ID (was slug, causing all cells to show '—')
- src/components/app/schedule-grid-editor.tsx: revert only failed cell, not entire grid
- src/db/audit.ts: fix import path ./db → @/db
- src/db/seed.ts: add resetAndSeed(), assign Audio only (leave Livestream/Slides open)
- src/auth/config.ts: carry id/email on JWT for audit actor
- e2e/dev.ts: shared signInAs + resetDb helpers
- e2e/schedule-grid.spec.ts: use shared helpers, reset DB beforeAll
- e2e/assign-mutations.spec.ts: E2E for assign/clear with optimistic update + rollback
- src/app/api/dev/reset/route.ts: admin-only DB reset endpoint
- playwright.config.ts: workers: 1 (serial, suites share one Postgres)
2026-11-18 21:51:04 +00:00
Tiel Coder
3cd932e1a1
A3: auth (magic-link sign-in, requirePermission chokepoint, role enum)
...
- Auth.js v5 Credentials provider (magic-link) + JWT session carrying systemRole
- src/auth: roles, permissions (feature-scoped matrix), magic-link dev console transport
- requirePermission(user, perm) chokepoint -> AuthError(401/403)
- Routes: /api/auth/[...nextauth], /api/dev/magic-link, /api/dev/complete, /api/admin, /login
- Auto-activate new emails in dev (AUTO_ACTIVATE_NEW_USERS, flip to require approval)
- Acceptance pnpm test src/auth green: 401 anonymous, 403 volunteer on /admin, 200 admin
- Verified at runtime against Postgres on :5433
2026-11-17 19:34:06 +00:00
Tiel Coder
c595865496
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)
2026-11-17 18:09:24 +00:00