Skip to content

fix(dashboard): real metrics only, on the shared metric block - #630

Merged
thinkclay merged 1 commit into
mainfrom
redesign/worker-home
Aug 22, 2026
Merged

thinkclay merged 1 commit into
mainfrom
redesign/worker-home

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

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. 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 MetricBlock also serves ghost rate, where up is bad, so sentiment is stated at the call site rather than assumed in the component.

Dropped StatCard, TrendBadge and an unused isMobile; the metric block handles wrap and stacking itself.

Verification

Typecheck and lint clean; /dashboard rendered through the authenticated harness; the ATS move menu still reports 9 triggers / 2 menuitems / 0 after Escape; pnpm prepush green.

🤖 Generated with Claude Code

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]>
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