Skip to content

Insights: metric breakdown sheet reads "Last 1 days vs previous 1 days" on the default 24h view #586

Closed

Description

@gkhngyk

Problem

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".

Evidence

Suggested fix

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

  1. added
    bug
    good first issue
    on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions