Repository navigation
fix(dashboard): real metrics only, on the shared metric block - #630
Merged
Merged
Conversation
Phase 3, screen 3 (#622) — the worker dashboard. Moves the Analytics widget onto MetricRow/MetricBlock so a figure reads the same here as it does on the ATS, and removes two pieces of invented data found on the way. THE TRENDS WERE MOSTLY FAKE. Of the three stat cards, only Profile views carried a real trend. Search appearances was `trend={5}` and Post impressions `trend={0}` — literal numbers rendered through the same TrendBadge as the live one, so two thirds of the movement shown on this widget was made up. A metric with no trend now renders no delta line at all, which is honest and reads fine. THE SPARKLINES WERE ENTIRELY FAKE. All three were hardcoded SVG path strings, and all three were DIFFERENT — so each metric appeared to have its own history when none of them had any. That is worse than a missing chart: a trend line is a specific claim about the past, and these were drawn from nothing. Removed until the endpoint returns a series. Both are the same failure as the placeholder legal copy (§12 #14) and the permanently-0 score filter (§12 #5): something rendered convincingly enough that nobody questioned it. A zero is fine; a fabricated shape is not. Deltas keep their tone explicit rather than inferring it from direction. For these three, up IS good — but MetricBlock also serves ghost rate, where up is bad, so sentiment is stated at the call site. Dropped StatCard, TrendBadge and an unused `isMobile` along with them; the metric block handles wrap and stacking itself. Verified: typecheck and lint clean; /dashboard rendered through the authenticated harness; the ATS move menu still reports 9 triggers / 2 menuitems / 0 after Escape. Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Aug 22, 2026
Closed
4 tasks
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.
Phase 3, screen 3 (#622) — the worker dashboard. Moves the Analytics widget onto
MetricRow/MetricBlockso a figure reads the same here as it does on the ATS, and removes two pieces of invented data found on the way.The trends were mostly fake
Of the three stat cards, only Profile views carried a real trend. Search appearances was
trend={5}and Post impressionstrend={0}— literal numbers rendered through the sameTrendBadgeas the live one, so two thirds of the movement shown on this widget was made up.A metric with no trend now renders no delta line at all. Honest, and it reads fine.
The sparklines were entirely fake
All three were hardcoded SVG path strings, and all three were different — so each metric appeared to have its own history when none of them had any.
That is worse than a missing chart. A trend line is a specific claim about the past, and these were drawn from nothing. Removed until the endpoint returns a series.
Why this keeps happening
Both are the same failure as the placeholder legal copy (§12 #14) and the permanently-0 score filter (§12 #5): something rendered convincingly enough that nobody questioned it. A zero is fine. A fabricated shape is not — it actively teaches the reader something false.
Details
Deltas keep their tone explicit rather than inferring it from direction. For these three, up is good — but
MetricBlockalso serves ghost rate, where up is bad, so sentiment is stated at the call site rather than assumed in the component.Dropped
StatCard,TrendBadgeand an unusedisMobile; the metric block handles wrap and stacking itself.Verification
Typecheck and lint clean;
/dashboardrendered through the authenticated harness; the ATS move menu still reports 9 triggers / 2 menuitems / 0 after Escape;pnpm prepushgreen.🤖 Generated with Claude Code