◐ Shell
clean mode source ↗

feat: Task 1D — engineConfig singleton + mediaAsset + automatedVideo v2 by codercatdev · Pull Request #665 · CodingCatDev/codingcat.dev

and others added 2 commits

March 14, 2026 09:52
…+ config module rewrite

Consolidates 6 config singletons + dashboardSettings into single engineConfig.
Adds mediaAsset schema for shared image assets with source tracking.
Updates automatedVideo with v2 status flow (12 states), quality gate,
shorts, thumbnails, social posts, workflowId, r2Prefix.
Rewrites lib/config.ts for single-document fetch.
…emove old singletons

Co-authored-by: content <content@miriad.systems>
…wrappers

1. Add legacy v1 status values to automatedVideo options list so existing
   production documents display correctly in Studio (script_ready, audio_gen,
   video_gen, rendering, uploading, flagged, infographics_generating, enriching)

2. Add comments on audioUrl/videoUrl/shortUrl explaining string type is
   intentional — R2/CDN paths may include query params that Sanity url
   validator rejects

3. Replace misleading getConfig alias with real wrapper functions that
   accept and ignore the old table name parameter. Also adds getConfigValue
   wrapper. Both marked for removal in Task 1F.

Co-authored-by: content <content@miriad.systems>

This was referenced

Mar 14, 2026

codercatdev added a commit that referenced this pull request

Mar 14, 2026
Task 1D: engineConfig singleton + mediaAsset + automatedVideo v2 (PR #665, 6ab3833). Task 1E: Review dashboard with fail-closed auth on all server actions (PR #666, 18dee75). All code reviewed by @pm + workers.