fix(dashboard): drop hero copy + wire Reclaimable pulse to live estimate#144
Merged
ShogyX merged 1 commit intoMay 27, 2026
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on top of #143 — two follow-up tweaks that depend on the new
/dashboard/reclaim-previewendpoint.TranscodeInsightsBlock(top codecs / devices / reasons / bitrate split) already surfaces more usefully. Kept the eyebrow header and moved the "Open playback report" link into a compact action row above the breakdown.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-previewendpoint the drawer picker uses, with a default-params query (hevc / mkv / 6 Mbps, ≥10 GB / ≥15 Mbps source floors). NewuseDashboardReclaimEstimatehook wraps the POST in auseQuerykeyed on the body so the value caches and shares with any other consumer.Knock-on cleanup: removed the now-unused
useTopTranscodedimport +topTranscodedquery call, plusHeroStat/pctOfTotal/deriveMediaTitlehelpers (only the hero used them).GitHub will auto-retarget this PR to
mainonce #143 merges.Test plan
pnpm tsc --noEmitcleanpnpm vitest run src/features/dashboard— 40/40 pass🤖 Generated with Claude Code