Commit Graph

  • b42700a943 fix(seed): one seat per role per instance main bhursey 2026-11-22 22:11:21 +00:00
  • f71952f838 fix(seed): never run the demo seed as part of a deploy bhursey 2026-11-22 21:34:02 +00:00
  • ade21425d4 fix(schedule): use the instance title on every schedule surface bhursey 2026-11-22 18:21:09 +00:00
  • aaa3fd9ed1 feat(schedule): add one-off services with chosen positions bhursey 2026-11-22 18:08:59 +00:00
  • 7bad1e8293 merge: bring the host WIP branch together with the invite-link fix bhursey 2026-11-22 17:43:19 +00:00
  • 55239ef1e9 wip: checkpoint host working tree host-wip-20261121 bhursey 2026-11-22 17:42:51 +00:00
  • f75178de69 fix(auth): give invite links a lifetime that fits an inbox bhursey 2026-11-22 17:38:15 +00:00
  • fac9b96cca feat(events): show every photo on the event page without folders bhursey 2026-11-21 14:37:57 +00:00
  • ebe0c77f7e feat(editor): finish the quick/advanced editor handoff bhursey 2026-11-21 06:35:24 +00:00
  • ab4a07a40f fix(editor): decode camera raws to PNG so previews and thumbs render gold bhursey 2026-11-21 02:36:59 +00:00
  • 0cb315ea88 feat(editor): bridge the advanced photo editor into the event workflow bhursey 2026-11-21 01:34:20 +00:00
  • 982f9048e1 fix(media): refuse local disk when a NAS share is configured bhursey 2026-11-21 00:45:36 +00:00
  • 2fc71883d7 feat(auth): sign out from the app header bhursey 2026-11-21 00:45:36 +00:00
  • 8601a6014f feat(training): captions under lesson images bhursey 2026-11-21 00:45:32 +00:00
  • f7a0c8618f feat(media): primary media storage, growth goals, retention and delivery tools bhursey 2026-11-20 23:21:34 +00:00
  • cb5976edb2 feat(training): rich-text lessons with inline images and 25 MB manuals bhursey 2026-11-20 12:18:24 +00:00
  • e8759cdee8 docs: rebuild the migrate image before running it bhursey 2026-11-20 05:39:46 +00:00
  • 8018718487 deploy: harden Docker stack and add Ubuntu production guide bhursey 2026-11-20 05:32:28 +00:00
  • 3fd8ffb0f9 ci: target the main branch bhursey 2026-11-20 05:17:13 +00:00
  • 872d1cb29e docs: rewrite README for the shipped application bhursey 2026-11-20 05:14:57 +00:00
  • 5adf1cef1f push to maple-street Tiel Coder 2026-11-20 04:07:02 +00:00
  • 2cec220a24 docs(D8): mark D8 complete — all checks green Tiel Coder 2026-11-18 22:09:18 +00:00
  • d0a696167f fix(D8): grid slots render, per-cell optimistic revert, shared E2E helpers, admin reset endpoint Tiel Coder 2026-11-18 21:51:04 +00:00
  • 137a135a5e unit(D8): optimistic grid editor + toast (assign/clear reverts on failure) Tiel Coder 2026-11-18 18:44:22 +00:00
  • 71b993e663 unit(D8): assign/clear route (schedule.publish guard, rule-1 gate, audit) + active-assignment-in-instance query Tiel Coder 2026-11-18 18:35:53 +00:00
  • e47ef839a7 fix(uuid): place version nibble in byte 6 (RFC 9562) — was random, making uuidv7 ids non-compliant Tiel Coder 2026-11-18 18:35:53 +00:00
  • e1895079ff unit(D8): assign conflict gate (rule 1 duplicate-in-instance) Tiel Coder 2026-11-18 18:26:04 +00:00
  • b664de65f5 unit(D8): audit_log table + migration + audit-row builder (rule 12) Tiel Coder 2026-11-18 18:25:30 +00:00
  • 6982a8040d D7: read-only schedule grid UI (rows=instances, cols=positions, week nav) Tiel Coder 2026-11-18 16:19:17 +00:00
  • 13aafc231f unit(D6): candidate ranking service (availability -> readiness -> score) Tiel Coder 2026-11-18 11:53:54 +00:00
  • 467f193389 unit(D5): conflict engine (pure function, hard vs soft) Tiel Coder 2026-11-18 11:41:51 +00:00
  • deb4f35fb8 unit(D4): blackout CRUD + isUnavailable(user, date) Tiel Coder 2026-11-18 11:25:43 +00:00
  • 8ee339b235 unit(D3): slot materialization (headcount, call time) Tiel Coder 2026-11-18 05:27:36 +00:00
  • 8fb6459b0d unit(D2): idempotent instance generator (16-week window) on cron route Tiel Coder 2026-11-18 05:17:11 +00:00
  • 6a778aa2f6 unit(D1): service CRUD + expandRRULE() Tiel Coder 2026-11-18 05:07:42 +00:00
  • 995b88e5ec docs: record C4-C6 units as done Tiel Coder 2026-11-18 04:44:02 +00:00
  • 676751c489 unit(C6): growth goals + shadow pairing validation Tiel Coder 2026-11-18 04:43:07 +00:00
  • 371524b33e unit(C5): per-skill mentor designation Tiel Coder 2026-11-18 04:43:02 +00:00
  • a09705e83a unit(C4): readiness scoring Tiel Coder 2026-11-18 04:42:57 +00:00
  • 47b847e89f docs: remove third-party auth vendor mention from Auth row Tiel Coder 2026-11-18 04:24:34 +00:00
  • 50cb9b6044 docs: record C3 matrix + verify-level unit as done Captures the 42-check smoke result and why the assessment row serves as the audit trail for level changes. Tiel Coder 2026-11-18 04:19:07 +00:00
  • bc1dc91e35 C3 — Admin skills matrix + verify-level modal Adds the append-only skill_assessments history and the verify path, so a level can only move together with the row recording who moved it, from what level, and the comfort they saw. Tiel Coder 2026-11-18 04:19:04 +00:00
  • a915e4236c docs: mark C2 done and document the pi-web kill trap Records the corrected app start procedure so a future session does not kill its own host process when the app looks stuck. Tiel Coder 2026-11-18 04:14:10 +00:00
  • a77f47d5bd C2 — Volunteer profile sliders (self_comfort; verified_level untouched) Adds the user_skills record and slider save path so a volunteer can rate their own comfort without ever moving the verified level, which stays C3's to write. Tiel Coder 2026-11-18 04:14:06 +00:00
  • d74232de60 docs: C2 session handoff (app down, C2 written-not-committed, next C3) Tiel Coder 2026-11-18 04:04:39 +00:00
  • e9168def6c C1 — Skills composer (name composition + dedupe_key preview) Skills composer: category (required) + optional technology + optional function -> composed name prefill + dedupe_key. Governing rule: a null technology yields a generic (technology-agnostic) skill; a duplicate (category, tech, function) is rejected. Delivered: - src/domain/skills.ts — pure composeSkillName (no DB, no src/db imports). Rule: function+technology -> '<fn> on <tech>'; function only -> '<fn>'; technology only -> '<tech>'; neither -> category. Null technology -> generic skill (name never names a specific piece of gear). - src/domain/skills.test.ts — 6 tests named after the composition behaviors. - src/app/api/dev/skills/compose/route.ts — POST /api/dev/skills/compose returns { name, dedupeKey } for prefilling the form; writes no row. The admin edits the name, then submits to POST /api/dev/skills, which generates slug + dedupe_key and enforces the unique constraint (409 on duplicate). No schema change, no migration: the skills table, data-layer CRUD, and dedupeKey were delivered in B4; C1 adds only the composition rule + composer endpoint (matching the isPublishable/validateRequirements domain pattern). Verification: typecheck lint test (50, +6) build all green; runtime smoke /tmp/c1.sh (13 checks): compose fn+tech -> '<fn> on <tech>', compose function-only -> generic, create composed skill (slug frozen, dedupe_key persisted), duplicate -> 409, null-tech generic skill, dangling FK -> 400. Tiel Coder 2026-11-18 03:08:25 +00:00
  • 5c789f63cc B4 — Positions + skills + requirements editor Positions (schedulable seats) CRUD + requirements editor. Governing rule: a position with no is_core skill refuses to save as publishable. Schema (src/db/schema.ts): - skills table (B4 prerequisite of position_skills): id, slug (unique), name, category_id/technology_id/function_id FKs, dedupe_key (category|technology|function, NULLs -> ''), mentor_min_level (default 'expert'), stale_after_days (default 120), recert_required, sort_order, active, created_at, updated_at. All FKs ON DELETE RESTRICT. - position_skills join: position_id, skill_id, weight, required_level, is_core; PK (position_id, skill_id). - roles (positions) gained active (default true) + updated_at for soft-delete/pickers/audit. Data layer (src/db/positions.ts): list/create/update/deactivate for positions and skills; getPositionSkills (skills merged into position_skills in JS); setPositionSkills (replaces the whole set); dedupeKey() helper. Domain (src/domain/positions.ts + .test.ts): pure publishability rule — isPublishable(skills) = has >=1 is_core skill. 8 tests named after the rule. API: - src/app/api/dev/skills/route.ts — GET/POST/PATCH (slug + dedupe_key generated at create; slug frozen on update). - src/app/api/dev/positions/route.ts — GET/POST/PATCH (rename/edit or deactivate via active:false). - src/app/api/dev/positions/requirements/route.ts — GET (list a position's requirements) + POST (set requirements; enforces the publishability gate: published:true with no core skill -> 400). Migration drizzle/0004_hesitant_ezekiel.sql. Verification: typecheck ✓ lint ✓ test ✓ (44, +8) build ✓ db:migrate ✓; runtime smoke /tmp/b4.sh (24 checks) — publish-with-core 200, publish-without-core 400, weight-out-of-range 400, rename slug frozen, deactivate hides from picker but row persists. Decisions: skills table is a B4 prerequisite; requirements editor takes positionId in the body (Next 15.5.29 rejects an explicitly-typed { params: { id } } route-handler second arg); publishability gate lives in the domain and is enforced in the route; join resolved in JS (drizzle 0.45.4 exports no join). Tiel Coder 2026-11-18 01:34:24 +00:00
  • 9f7a65b136 B3: catalog taxonomy CRUD (categories, vendors, technologies, functions) Create/rename/deactivate for the four taxonomy tables. Deactivate not delete; slug frozen after creation; FKs ON DELETE RESTRICT. - src/db/schema.ts: four tables + relations (ON DELETE RESTRICT FKs) - src/lib/slug.ts: slugify (lowercase, ASCII-fold, collapse runs) + 6 tests - src/db/catalog.ts: listCatalog (active filter), deactivateCatalog (soft delete), per-entity create*/update* (slug generated at create, frozen on update; update patches only present fields) - src/app/api/dev/catalog/route.ts: GET/POST/PATCH; Zod per entity; DB constraint errors mapped to 409 (dup slug) / 400 (dangling FK) via cause chain - drizzle/0003_whole_crystal.sql Verification: typecheck, lint, 36 unit tests (+6), build, db:migrate all exit 0. Runtime smoke: create -> rename keeps slug -> deactivate hides from pickers but row persists (all four types); partial PATCH preserves omitted fields; validation 400/400/400/409. Tiel Coder 2026-11-18 01:00:10 +00:00
  • 26b31978e2 B2: profile + notification_preferences + SMS consent capture (TCPA) - notification_preferences table (user_id PK->users, email/sms toggles, sms_consent_at/source/ip evidence, quiet hours, digest) + migration 0002 - src/domain/consent.ts: pure TCPA rule (phoneChanged/buildConsent/resetConsent) - src/db/profile.ts: updateProfile (partial update; resets consent on phone change) + setSmsConsent (opt-in) + getProfile - PATCH/POST /api/dev/profile routes - seed: per-user prefs row (email on, SMS off) - 6 unit tests named after the rules Tiel Coder 2026-11-18 00:09:05 +00:00
  • 5f0b94af6a unit(B1): invite -> pending -> approve/deny with console outbox Admin-invite lifecycle (BUILD-PLAN Phase B, depends A3): - src/auth/invites.ts: pure nextUserStatus() rule (invite->pending_approval, approve->active, deny->denied) + isSignInEligible() mirroring the Auth.js authorize guard; thin DB wrappers inviteUser/approveUser/denyUser; enqueueOutbox() console transport (launch, ARCHITECTURE 3.4). - Routes: /api/dev/invite, /api/dev/approve, /api/dev/deny. - src/auth/invites.test.ts: 7 tests named after the rules. - magic-link.ts exports APP_ORIGIN. No migration: users.status already carries the enum (A2). Verify: typecheck, lint, 24 unit tests (+7), build, 4 e2e all green; runtime smoke test confirms invite->pending, approve->active signs in, deny->denied gets no session. Tiel Coder 2026-11-17 23:46:07 +00:00
  • 3451bced82 A4: app shell (layout, nav, tokens, error/empty states, /api/health) Fixes the A4 blocker: /api/dev/complete now establishes the Auth.js session. Root cause was UntrustedHost (trustHost defaulted false in pnpm start / production because setEnvDefaults derives it from AUTH_URL, not NEXTAUTH_URL, and assertConfig checks it before that default applies). Added trustHost: true to the auth config; rebuilt. Complete response now sets authjs.session-token, /schedule returns 200, and all 4 e2e shell tests pass. Also ignores test-results/ artifacts. Tiel Coder 2026-11-17 23:35:45 +00:00
  • 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 Tiel Coder 2026-11-17 19:34:06 +00:00
  • a68e1c6277 A2: schema core (6 tables, migration, idempotent seed) - users/roles/services/service_instances/slots/assignments with spec rules: - chk_slots_single_parent (Rule 26): slot has exactly one parent - uq_active_assignment (Rule 27): partial unique, one active assignment per slot - slug immutability, deactivate-only, UTC storage, America/New_York default - uuidv7 (src/lib/uuid.ts), DST-safe tz helpers (src/lib/tz.ts) - idempotent seed: 3 roles, 2 services, next 2 Sundays x services, 12 slots, 6 users - migration drizzle/0000 + 0001 Verified: typecheck/lint/test/build + db:migrate + db:seed all exit 0; service_instances=4; re-run seed idempotent; CHECK + partial unique enforced. Tiel Coder 2026-11-17 18:52:35 +00:00
  • 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) Tiel Coder 2026-11-17 18:09:24 +00:00