The detail pass has always returned a predicted_score per clip and the dashboard threw it away, rendering the clips in transcript order. That buries the strongest clip wherever it happens to fall in the video, and the first card is the one people actually watch, publish and judge the product by. The cards are now ordered by score, and each one carries its number. The ORIGINAL array position is what still travels down as `index`: it is the clip's identity in clip_index on /api/subtitle, /api/edit and publishing, in the clip-N.mp4 download name and in the saved per-clip project state. Sorting the array itself would have repointed all of that at the wrong clip, silently. So the badge keeps saying "Clip 4" at the top of the list rather than "Clip 1" — the number identifies the file you download, the position tells you what to post first. Ties and clips with no score keep transcript order. Claude-Session: https://claude.ai/code/session_01KeQYCfUX2E9Q2fDgZMKEaJ |
||
|---|---|---|
| .. | ||
| public | ||
| seo | ||
| src | ||
| .gitignore | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| vite-plugin-seo.js | ||
| vite.config.js | ||
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:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
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.