Skip to content

feat: add resources view in react - #40

Merged
Phantom-VK merged 2 commits into
mainfrom
feat/rebuild-10-resources
Aug 20, 2026
Merged

feat: add resources view in react#40
Phantom-VK merged 2 commits into
mainfrom
feat/rebuild-10-resources

Conversation

@Phantom-VK

Copy link
Copy Markdown
Owner

Summary

  • Ports the Resources view to React: tokenizer inventory, sequential download queue, per-directory storage stats, and gated-HF-repo hints pointing at Settings.
  • Cancel now works reliably in both directions: disabled until the download's job id actually exists, and HF downloads (a single blocking call with no chunked hook) poll cancellation on a background thread instead of always reporting success.
  • A running scan and a running download can no longer overlap, so neither silently overwrites the other's state; refresh failures, open-folder failures, and the per-cache storage totals all stay consistent instead of going stale or disagreeing with each other.
  • Minor polish: gated-repo wording points at Settings, font smoothing normalized across themes, tokenizer cache paths no longer rendered as uppercase labels.

Test plan

  • npx tsc --noEmit clean
  • npx vitest run — 97 passing
  • npm run build clean
  • pytest — 325 passing (new HF-cancel-mid-download test)
  • Verified live in the built app under Xvfb: scan, download, rapid download-then-cancel, no stuck "Cancelling…" state

Ports the Resources view to React: tokenizer inventory, sequential
download queue (Download all queues every uncached tokenizer, a failure
doesn't clear the queue, only Cancel does), and per-directory storage
stats, backed by the app's only sanctioned network path.

Makes Cancel actually reliable in both directions: the button is now
disabled until the async job id it needs actually exists, and HF
downloads (a single opaque blocking call with no chunked progress hook)
now poll cancellation on a background thread instead of always reporting
success regardless of a cancel request.

A running scan and a running download can no longer overlap in either
direction, so neither can silently revert the other's state. Refresh
failures surface after the first successful scan instead of going
silent, a stale open-folder failure clears once a later one succeeds,
and the completed-download splice keeps the per-cache storage figures
in step with the aggregate total instead of only updating one of them.

Also fixes the gated-HF-repo hint to point at Settings, normalizes font
smoothing so small muted text doesn't read heavier in light theme than
dark, and stops treating a tokenizer's cache path as an uppercase label
instead of a file path.
@Phantom-VK Phantom-VK self-assigned this Aug 20, 2026
@Phantom-VK Phantom-VK changed the title Add Resources view (Phase 10) feat: add resources view in react Aug 20, 2026
@Phantom-VK
Phantom-VK merged commit 0443154 into main Aug 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant