You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Insights: metric breakdown sheet reads "Last 1 days vs previous 1 days" on the default 24h view #586
The metric breakdown sheet (opened by clicking a KPI card on the Insights page) interpolates the window length into hardcoded plural strings. The page's default date preset is 24h, which resolves to windowDays === 1, so the first thing most users see is:
Last 1 days vs previous 1 days
The same file has a second instance: the mentions delta sentence renders "lost 1 mentions" / "gained 1 mentions".
Singularize when the count is 1. The pattern already exists on the same page: page.tsx#L773 uses `prompt${count !== 1 ? 's' : ''}`. For the window label, "Last 24 hours vs previous 24 hours" would read even better than "Last 1 day" when windowDays === 1 — either is acceptable.
Acceptance criteria
With the 24h preset, the sheet subtitle no longer reads "1 days".
A delta of exactly 1 renders "gained 1 mention" / "lost 1 mention".
Activity