Skip to content

the product dashboard was still locked at 30d - #2885

Merged
Flotapponnier merged 1 commit into
mainfrom
hotfix/product-timeframe
Oct 8, 2026
Merged

Flotapponnier merged 1 commit into
mainfrom
hotfix/product-timeframe

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Cherry-picks #2884. The other half of the boss's "we need a way to iterate on the timeframe (right now it seems locked at 30D)" — /hyperliquid got its control in #2869, the per-frontend dashboard at /products/<slug>#hl did not, and that is the page with six cards all reading 30d.

The harness has published 24h, 7d and 30d for revenue, volume, users and the delta all along. For fomo right now: $53,687 / $299,844 / $1,153,166 of revenue, and 2,995 / 8,874 / 24,682 users.

Two cards do not simply follow the control and say so, rather than reusing a 30d number under a "feed day" heading: Annualised scales the window's revenue to a year so its multiplier moves with it, and % cohort 24h vol stays 24h because the harness publishes no 7d or 30d cohort share and deriving one would be inventing it. The users card gains a tip for the multi-day windows, since those are a union of the daily sets and not a sum.

bun test src/, tsc --noEmit, eslint, pnpm build clean.

🤖 Generated with Claude Code

The hub got its timeframe control, the per-frontend dashboard did not, and
that is the page the complaint was actually about: six cards all reading 30d
with no way to ask what a frontend did yesterday.

The harness has published 24h, 7d and 30d for revenue, volume, users and the
period-over-period delta all along. Only the page was pinned.

Two of the six cards do not simply follow the control, and say so rather than
quietly reusing a 30d number under a "feed day" heading. Annualised scales
the window's revenue to a year, so its multiplier moves with the window and
the tip names it. Cohort share is defined as a share of the cohort's 24h
notional; the harness publishes no 7d or 30d version and deriving one here
would be inventing a number, so it stays 24h and the tip says why.

The strip moves to its own client component because the dashboard is a
server component. A stats object cached before byWindow existed falls back
to the flat 30d fields rather than rendering a row of zeros for a cache
cycle.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Flotapponnier
Flotapponnier merged commit ab77d2c into main Oct 8, 2026
2 checks passed
@Flotapponnier
Flotapponnier deleted the hotfix/product-timeframe branch October 8, 2026 11:15
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