Replaces the full depth-first "scan everything, then render once + expandAll + selectAll" walk (which looked stalled and was a render bomb on a large network drive) with a progressive, breadth-first scan: - Walks level-by-level behind a bounded worker pool (6), rendering as it goes — the top folder levels appear immediately, deeper levels fill in the background. Workers await between directories so the UI stays responsive. - Live status line under the tree header: "Scanning… N folders · M files — <current path>", ending "Scanned … in Ts." - Per-folder state machine (pending → scanning → children → done) with immediate subfolder/file counts; the row is greyed (with a faint pulse) until its whole subtree is scanned, then turns solid — the at-a-glance signal. - Opening a folder jumps its subtree to the front of the scan (ensureScanned), so an opened folder always shows complete contents; idempotent vs the background walk. - No more auto-expand/auto-select-all (that loaded the entire drive up front); the root is selected so the grid shows its files immediately. - ZIPs stay expandable, scanned inline into virtual nodes (already in memory once read); whole zip subtree marked done at once. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app.js | ||
| excel.js | ||
| filter.js | ||
| preview.js | ||
| resize.js | ||
| scanner.js | ||
| selection.js | ||
| sort.js | ||
| spreadsheet.js | ||
| store.js | ||
| tree.js | ||
| utils.js | ||
| validator.js | ||