clipwright/dashboard/src
juancarlos.cavero e0fa3fd591 perf(dashboard): play clip previews from R2, not from the render box
Each result card streamed its clip from /videos, which is served by the
same single-worker API process that is running the renders, while the
same clip was already archived to R2 (free egress, edge-served). The
durable URL was in the browser the whole time and was only used as an
error fallback.

It becomes the playback source, but only while R2 holds exactly the file
the server considers current: a server-side edit rewrites the clip and the
re-archive behind it is fire-and-forget, so preferring the durable copy
blindly would show the clip from BEFORE the edit. /api/history therefore
returns the archived filename, and the card compares it against its own
serverVideoFile.

The map is chased after each edit and again once the job completes, since
a job is marked completed before _archive_managed_job finishes uploading
and the first read otherwise lands empty and never retries. The effect
that reads it is keyed on the clip count instead of the results object, so
it no longer re-reads the history on every status poll. The durable copy
is never adopted under a player the user already started, because swapping
src restarts playback.

Display only: currentVideoUrl still drives the download button and every
server operation (all of which pass input_filename, never a URL), so no
edit can be routed to the wrong file by this.
2026-08-22 19:52:17 +02:00
..
assets added front-end and backend 2025-12-19 17:59:03 +01:00
components perf(dashboard): play clip previews from R2, not from the render box 2026-08-22 19:52:17 +02:00
contexts feat: raise the self-host job retention default to 24h and surface it in the UI 2026-08-20 19:29:55 +02:00
lib feat(dashboard): social-connect nudge at the results peak 2026-08-21 04:36:05 +02:00
remotion feat(hook): auto-burn AI hooks on generated clips + working emoji + editor polish 2026-08-19 14:28:19 +02:00
App.css added front-end and backend 2025-12-19 17:59:03 +01:00
App.jsx perf(dashboard): play clip previews from R2, not from the render box 2026-08-22 19:52:17 +02:00
config.js fix some things for deploy to pro 2025-12-19 21:20:10 +01:00
index.css feat(conversion): vender el plan (no top-ups) en el momento del muro de cuota 2026-07-25 02:14:58 +02:00
landing.css redesign: Lumen design system across landing, app and paywall 2026-07-17 02:41:22 +02:00
Landing.jsx feat(seo): canvas screenshot on the n8n page, and link it from the landing 2026-08-21 21:41:58 +02:00
Legal.jsx feat(legal): full legal corpus — Terms, Privacy, Legal Notice in EN+ES 2026-08-19 22:06:11 +02:00
main.jsx feat(attribution): record where each new account came from 2026-07-27 10:39:24 +02:00
tokens.css redesign: Lumen design system across landing, app and paywall 2026-07-17 02:41:22 +02:00