Fix/dashboard reclaimable picker#145
Merged
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>
fix(dashboard): drop hero copy + wire Reclaimable pulse to live estimate
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
Test plan
make testmake lintmake typecheckRisk + rollout
Screenshots / recordings