feat(#42): FIX projects can't add scenes (studio + admin)
Build backend images / build content-svc (push) Failing after 57s
Build backend images / build file-svc (push) Failing after 56s
Build backend images / build gateway (push) Failing after 54s
Build backend images / build identity-svc (push) Failing after 1m0s
Build backend images / build notification-svc (push) Failing after 47s
Build backend images / build render-svc (push) Failing after 53s
Build backend images / build studio-svc (push) Failing after 57s

Template copy now carries choose_mode from the content project → studio store gets
chooseMode; AddSceneMenu returns null for FIX/MusicVisualizer. Admin ProjectScenes
hides '+ صحنهٔ جدید' (shows an 'scenes defined in AE' note) for fixed modes. Verified
choose_mode=FIX flows end-to-end. (Visible admin nav link added earlier.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-07 05:03:46 +03:30
parent bccebbd006
commit d56bcf1b23
6 changed files with 46 additions and 5 deletions
@@ -193,6 +193,14 @@ public class StudioService(StudioDbContext db)
FROM content.shared_colors sc
WHERE sc.project_id = {1};",
savedProjectId, originalProjectId);
// 5. carry the template's render mode (FIX/FLEXIBLE/…) so the studio knows whether
// adding scenes is allowed, plus a few useful project defaults.
await db.Database.ExecuteSqlRawAsync(@"
UPDATE studio.saved_projects sp
SET choose_mode = COALESCE((SELECT p.choose_mode::text FROM content.projects p WHERE p.id = {1}), sp.choose_mode)
WHERE sp.id = {0};",
savedProjectId, originalProjectId);
}
public async Task<SavedProjectFullResponse> UpdateProjectAsync(