clipwright/dashboard
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
..
public feat(seo): canvas screenshot on the n8n page, and link it from the landing 2026-08-21 21:41:58 +02:00
seo feat(seo): canvas screenshot on the n8n page, and link it from the landing 2026-08-21 21:41:58 +02:00
src perf(dashboard): play clip previews from R2, not from the render box 2026-08-22 19:52:17 +02:00
.gitignore improve video preview 2025-12-21 01:59:15 +01:00
Dockerfile fix(analytics): make product analytics opt-in and host-scoped 2026-07-28 09:58:33 +02:00
eslint.config.js added front-end and backend 2025-12-19 17:59:03 +01:00
index.html fix(analytics): make product analytics opt-in and host-scoped 2026-07-28 09:58:33 +02:00
nginx.conf fix(seo): permanent apex redirect, real 404s, and gallery links that resolve 2026-07-27 11:48:33 +02:00
package-lock.json feat: Add Remotion integration for animated subtitles, hooks and effects 2026-04-10 14:00:11 +02:00
package.json feat: Add Remotion integration for animated subtitles, hooks and effects 2026-04-10 14:00:11 +02:00
postcss.config.js added front-end and backend 2025-12-19 17:59:03 +01:00
README.md added front-end and backend 2025-12-19 17:59:03 +01:00
tailwind.config.js redesign: Lumen design system across landing, app and paywall 2026-07-17 02:41:22 +02:00
vite-plugin-seo.js feat(legal): full legal corpus — Terms, Privacy, Legal Notice in EN+ES 2026-08-19 22:06:11 +02:00
vite.config.js feat(seo): make the site readable by AI crawlers 2026-07-27 10:56:15 +02:00

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.