Skip to content

Fix/dashboard reclaimable picker#145

Merged
ShogyX merged 2 commits into
mainfrom
fix/dashboard-reclaimable-picker
May 27, 2026
Merged

Fix/dashboard reclaimable picker#145
ShogyX merged 2 commits into
mainfrom
fix/dashboard-reclaimable-picker

Conversation

@ShogyX
Copy link
Copy Markdown
Owner

@ShogyX ShogyX commented May 27, 2026

Summary

Test plan

  • make test
  • make lint
  • make typecheck
  • Manual verification:

Risk + rollout

Screenshots / recordings

root and others added 2 commits May 27, 2026 19:30
Two follow-up tweaks on top of the Reclaimable interactive picker:

1. **Hero copy gone.** The "N titles are doing X% of the
   transcoding" headline + bullet list on the Silently-costing
   card duplicated content that the new TranscodeInsightsBlock
   (top codecs / devices / reasons / bitrate split) already
   surfaces more usefully. Stripped the hero + HeroStats row +
   "Queue N optimization" CTA; kept the eyebrow header and
   moved the "Open playback report" link into a compact action
   row above the breakdown.

2. **Reclaimable pulse cell now shows the live estimate.** The
   old value was ``topTranscoded.transcode_count × 2.5 GB`` — a
   heuristic that diverged wildly from the actual reclaim a
   transcode would deliver on libraries dominated by smaller
   files. The cell now reads from the same
   ``/dashboard/reclaim-preview`` endpoint the drawer picker
   uses, with a default-params query (hevc / mkv / 6 Mbps,
   ≥10 GB / ≥15 Mbps source floors). New
   ``useDashboardReclaimEstimate`` hook wraps the POST in a
   ``useQuery`` keyed on the body so the value caches and
   shares with any other consumer that picks the same defaults.

Knock-on cleanup:

  * Removed the now-unused ``useTopTranscoded`` import + the
    ``topTranscoded`` query call.
  * Removed ``HeroStat`` / ``pctOfTotal`` / ``deriveMediaTitle``
    helpers — only the hero used them.

Tests: 40/40 dashboard vitest pass; ``tsc --noEmit`` clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
fix(dashboard): drop hero copy + wire Reclaimable pulse to live estimate
@ShogyX ShogyX merged commit 6c22edb into main May 27, 2026
7 checks passed
@ShogyX ShogyX deleted the fix/dashboard-reclaimable-picker branch May 29, 2026 08:20
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