Add run percent and approved-runs modal

Introduce a percent field for runs and surface approved runs in the video modal. UI: add a numeric Percent input to the run submission form and show percent in submission lists and admin detail view (default 100%). Video modal: refactor openVideo to accept an item, add renderApprovedRunsForLevel to load and display approved runs for the same level with player, percent and video link, plus related modal HTML. Server: normalize and validate percent on run create/update (required), returning 400 when missing. Styles: add CSS for modal runs layout and responsive tweaks.
This commit is contained in:
miles committed 2026-04-01 00:11:13 -05:00
1 parent cdc65ec881
commit 52531abcc7
4 files changed
+59 -7

No files matched your search

+5
View File
@@ -49,6 +49,11 @@
<input id="run-video-url" name="videoUrl" type="url" placeholder="https://youtu.be/..." required />
</label>
<label class="control-block" for="run-percent">
<span>Percent</span>
<input id="run-percent" name="percent" type="number" min="1" max="100" placeholder="100" required />
</label>
<label class="control-block" for="run-raw-footage-url">
<span>Raw Footage URL</span>
<input id="run-raw-footage-url" name="rawFootageUrl" type="url" placeholder="Optional raw footage link" />