- New projects table (job_id, metadata_r2_key, state JSONB) — created via create_all
- archive_job also uploads the metadata JSON (transcript) and upserts the
Project row + user_videos (no more duplicate rows on re-archive)
- archive_clip_edit re-archives a clip after each server-side edit, keeping
only the pristine original + current version per clip in R2
- fix /api/edit: persist new video_url in job result + metadata.json (the
other edit endpoints already did)
- POST /api/projects/{job_id}/restore re-hydrates R2 files into output/{job_id}
(per-job lock, temp-dir download, .owner sidecar, idempotent fast path)
- GET /api/projects + PUT /api/projects/{job_id}/state (debounced Remotion
layer sync from the frontend)
- History tab groups clips by project with a reopen button; App restores
jobId/results/project state; ResultCard seeds serverVideoFile/activeLayers
from the restored state and reports changes upward
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| alerts.py | ||
| auth.py | ||
| billing.py | ||
| config.py | ||
| database.py | ||
| emails.py | ||
| LICENSE | ||
| managed_keys.py | ||
| metering.py | ||
| models.py | ||
| oauth.py | ||
| social_profiles.py | ||
| storage.py | ||
| videos.py | ||