style(13-03): apply Prettier formatting across repo

Mechanical reformat — no logic changes. 398 files changed, 19125
insertions(+), 16457 deletions(-). Prettier 3.8.4 with .prettierrc
(singleQuote:true, semi:true, tabWidth:2, trailingComma:all,
printWidth:100). Isolated per D-13-08 for reviewability.
This commit is contained in:
Lucas Berger
2026-06-11 20:35:18 -04:00
parent 4bc0445173
commit 982438dc10
398 changed files with 19050 additions and 16382 deletions
+16 -13
View File
@@ -18,10 +18,10 @@ affects: [08-03, 08-04, phase-09, phase-10, phase-11, phase-12]
tech-stack:
added: []
patterns:
- "Docker-executor services: mariadb (not docker-run) — confirmed by 08-01 probe"
- "Node mysql2 poll for MariaDB readiness (no mysql CLI in runner image)"
- "drizzle-kit migrate (never db:push) on single squashed baseline migration"
- "pnpm -r --if-present lint as auto-gate (exits 0 until a package lint script lands)"
- 'Docker-executor services: mariadb (not docker-run) — confirmed by 08-01 probe'
- 'Node mysql2 poll for MariaDB readiness (no mysql CLI in runner image)'
- 'drizzle-kit migrate (never db:push) on single squashed baseline migration'
- 'pnpm -r --if-present lint as auto-gate (exits 0 until a package lint script lands)'
key-files:
created:
@@ -31,15 +31,15 @@ key-files:
- package.json
key-decisions:
- "D-PROBE-01/02 honored: runs-on ubuntu-latest (not self-hosted), DB_HOST=mariadb (Docker-executor services:)"
- "Cache DISABLED — actions/cache@v4 timed out in 08-01 probe (D-PROBE-04)"
- "Readiness: Node mysql2 poll (90s deadline) — no mysql CLI available in runner image (D-PROBE-03)"
- "Migration squash: all migrations collapsed to 0000_baseline.sql to fix broken cold drizzle-kit migrate"
- "Lint is a documented no-op placeholder; root script changed to pnpm -r --if-present lint; real ESLint deferred to BACKLOG 999.16"
- 'D-PROBE-01/02 honored: runs-on ubuntu-latest (not self-hosted), DB_HOST=mariadb (Docker-executor services:)'
- 'Cache DISABLED — actions/cache@v4 timed out in 08-01 probe (D-PROBE-04)'
- 'Readiness: Node mysql2 poll (90s deadline) — no mysql CLI available in runner image (D-PROBE-03)'
- 'Migration squash: all migrations collapsed to 0000_baseline.sql to fix broken cold drizzle-kit migrate'
- 'Lint is a documented no-op placeholder; root script changed to pnpm -r --if-present lint; real ESLint deferred to BACKLOG 999.16'
patterns-established:
- "PR-gate pattern: parallel fast-checks (no DB) + api (MariaDB services:) jobs both gated on pull_request"
- "Readiness poll pattern: Node mysql2 script with 90s deadline before drizzle-kit migrate"
- 'PR-gate pattern: parallel fast-checks (no DB) + api (MariaDB services:) jobs both gated on pull_request'
- 'Readiness poll pattern: Node mysql2 script with 90s deadline before drizzle-kit migrate'
requirements-completed: [CI-01]
@@ -99,6 +99,7 @@ completed: 2026-06-11
### Auto-fixed Issues
**1. [Rule 1 - Bug] Squashed fragmented drizzle-kit migrations to fix broken cold migrate**
- **Found during:** Task 3 (PR cold-run verification)
- **Issue:** Cold `drizzle-kit migrate` failed with "table already exists" — migration 0001_lists_schema recreated `lists`, `list_shares`, `list_items`, and the `calendars` unique-constraint that migration 0000 had already created. An orphaned migration `0001_calendars_user_url_unique` also existed. Cold migration was impossible on a fresh DB.
- **Fix:** Squashed all migrations into a single `apps/api/src/db/migrations/0000_baseline.sql` regenerated from `schema.ts` via `drizzle-kit generate`. Verified: fresh `db:migrate` succeeds, schema is structurally identical to dev DB, `drizzle-kit generate` reports no drift, 238 API tests pass. Local dev DBs must be rebuilt (drop + `db:migrate`); no production DB exists.
@@ -107,6 +108,7 @@ completed: 2026-06-11
- **Committed in:** `c0f892c`
**2. [Rule 1 - Bug] Fixed root lint script to exit 0 on no-script workspaces**
- **Found during:** Task 1/2 (fast-checks job authoring)
- **Issue:** `pnpm -r lint` emits `ERR_PNPM_RECURSIVE_RUN_NO_SCRIPT` and exits non-zero when no package has a `lint` script. This would immediately block the CI gate even though ESLint is not yet wired.
- **Fix:** Changed root `package.json` lint script from `pnpm -r lint` to `pnpm -r --if-present lint`. The `--if-present` flag silently skips packages without the script; exits 0. When any package adds a lint script, it is auto-gated. ESLint wiring deferred to BACKLOG 999.16.
@@ -140,5 +142,6 @@ None — this plan produces CI workflow config only.
- **BACKLOG 999.16:** ESLint wiring is explicitly deferred. The `--if-present` lint gate in ci.yml will auto-activate once any package adds a `lint` script — no ci.yml change needed.
---
*Phase: 08-gitea-ci*
*Completed: 2026-06-11*
_Phase: 08-gitea-ci_
_Completed: 2026-06-11_