Repository navigation
Commit 7c1d72a
Stop auto-loading the first video from a folder/multi-select pick
Her real-world finding: after a hard reset, a folder pick that only
populated the roster (without auto-loading anything) felt immediate,
while the normal auto-load-the-first-one path had read as stuck. Likely
cause - auto-loading fired a full video-load cascade (decode, frame
render, metrics panels appearing) at the same moment OpenCV.js might
still be mid-download, competing for attention and making an unrelated
few-seconds wait look like the whole app hanging.
Open folder/Select videos now just populate the roster and stop; the
status line says how many were found and to click one. Better default
regardless of the OpenCV theory - a batch pick is "here's what's here,"
not "open this one specifically."
Also: "Select videos" already filters to video files (accept=
"video/mp4,.mp4"), unlike "Open folder" which walks a whole directory
tree by design and can't be filtered by type - a real browser
limitation, not something this app can route around. Updated the button
row's copy to say so directly, since pointing "Open folder" at a folder
with mixed file types is exactly what triggers the browser's own scary
"upload N files?" warning before any of our own filtering ever runs.
Tested end to end: selecting two videos via Select videos populates the
roster with both marked "Not opened yet," loads neither automatically,
and clicking one loads it correctly. 75/75 tests pass.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 1845f7d commit 7c1d72a
2 files changed
Lines changed: 23 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
| |||
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
200 | | - | |
| 206 | + | |
201 | 207 | | |
202 | | - | |
| 208 | + | |
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
| |||
661 | 667 | | |
662 | 668 | | |
663 | 669 | | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
| 670 | + | |
669 | 671 | | |
670 | 672 | | |
671 | 673 | | |
| |||
704 | 706 | | |
705 | 707 | | |
706 | 708 | | |
707 | | - | |
| 709 | + | |
708 | 710 | | |
709 | 711 | | |
710 | 712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1428 | 1428 | | |
1429 | 1429 | | |
1430 | 1430 | | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
1431 | 1440 | | |
1432 | 1441 | | |
1433 | | - | |
1434 | | - | |
1435 | | - | |
1436 | | - | |
1437 | | - | |
1438 | | - | |
1439 | | - | |
1440 | | - | |
1441 | | - | |
| 1442 | + | |
1442 | 1443 | | |
1443 | | - | |
1444 | | - | |
| 1444 | + | |
1445 | 1445 | | |
1446 | 1446 | | |
1447 | 1447 | | |
| |||
0 commit comments