Skip to content

Reports: evidence drill-down for mention/citation KPIs and clearer metric naming #429

Closed

Description

@gkhngyk

Motivation

Direct user feedback on a generated report: the KPI header says e.g. "68 mentions / 25 citations", and the reader immediately asks — which answers mentioned me, in which prompts, and how? Which URLs are those citations? A report consumer has to defend these numbers to their client or leadership; aggregates without evidence don't build trust.

A second confusion compounds it: "citations" means two different things in the same report. The KPI counts citation_count (citations of the brand's own site), while the citations section counts every source URL the answers cited — the numbers differ by orders of magnitude with no explanation.

Proposal

1. Evidence sections in the report payload (bounded, PDF-friendly)

Two new pickable sections following the existing payload-presence render pattern (web/src/lib/reports/templates.ts, gatherers in web/src/lib/actions/reports.ts):

  • Mention evidence — the top ~10 results by mention count in the window: prompt text, platform, date, and a short excerpt of the answer around the brand mention.
  • Citation evidence — the top ~10 cited URLs with the prompts whose answers cited them.

Bounded so the immutable JSONB stays small; both render in the detail page and the PDF (which is where evidence matters most — PDFs get forwarded to people without dashboard access).

2. Drill-down links in the web report view

KPI cards link to the live dashboard pages (Insights results, Citations) pre-filtered to the report's date window. Web-only affordance; no PDF equivalent needed once (1) exists.

3. Metric naming

  • KPI label becomes "Brand citations" with a one-line explanation of what it counts.
  • The citations section gets a one-line header note ("All sources cited in answers about your brand").

Acceptance criteria

  • A report with the new sections answers "which prompts/answers produced these mentions" and "which URLs are the citations" without leaving the report (including in the exported PDF).
  • The two citation metrics are visually distinct and each explains itself.
  • Payload growth is bounded (top-N caps) and older reports without the new fields keep rendering unchanged.

Activity

  1. added
    enhancement
    on Jul 15, 2026
  2. self-assigned this
    on Jul 16, 2026
  3. added a commit that references this issue on Jul 16, 2026
    3db8c2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions