From 537a58f38b78c071df780c042791eb9d56879da6 Mon Sep 17 00:00:00 2001 From: "[._.]/ Adam Eivy" Date: Tue, 21 Jul 2026 18:23:47 -0700 Subject: [PATCH 1/3] refactor: extract helpers from generateManagedAppImprovementTaskForType (#2836) --- .changelog/NEXT.md | 1 + server/services/cosTaskGenerator.js | 740 ++++++++++++++-------------- 2 files changed, 373 insertions(+), 368 deletions(-) diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md index 766bc5e51..2097a8d10 100644 --- a/.changelog/NEXT.md +++ b/.changelog/NEXT.md @@ -38,3 +38,4 @@ - **[issue-2832] Split the boot-schema DDL into per-domain modules** — the ~1265-line inline `CREATE TABLE`/`CREATE INDEX`/trigger block in `ensureSchemaImpl()` (`server/lib/db.js`) is extracted into per-domain modules under `server/lib/db/schema/` (catalog, media, universes, writers-room, pipeline, privacy, tribe, audit, …), each exporting a statement array; `ensureSchemaImpl` is now a thin composer. Statement text and order are byte-identical, so the composed schema is unchanged. - **[issue-2834] Split the ~1990-line `VideoGen.jsx` into hooks + subcomponents** — the client-side batch-queue orchestration moves into `useVideoGenQueue`, the pure model-memory / FFLF frame-budget / mode-compat helpers into `lib/videoGenParams.js`, and four presentational blocks into `components/videoGen/` (`RuntimeFingerprint`, `ModelRepairBanner`, `VideoPreviewPanel`, `VideoGenGallery`). The inline runtime-status `fetch()` now routes through a `getVideoGenRuntimeStatus` service wrapper, and the Seed input gains a proper `