Skip to content

Citations page: CSV export for Top Domains / Top URLs #436

Closed

Description

@gkhngyk

Motivation

Insights, Topics and the prompts list all have a CSV export button, but the Citations page — the one agencies most often need to hand to a client — has none.

Proposal

Add an Export CSV button to the Citations page (https://github.com/ansvisor/ansvisor/blob/main/web/src/app/%5Blocale%5D/(dashboard)/dashboard/citations/page.tsx) that downloads the currently filtered Top Domains or Top URLs table (whichever tab is active).

Everything you need already exists:

  • CSV serializer: web/src/lib/csv.ts (unit-tested in csv.test.ts)
  • Button + download pattern: the Insights page header's export button (web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx, look for the Download icon usage)

Suggested columns — Domains tab: domain, category, total_citations, results_citing, usage_pct, models; URLs tab: url, domain, category, title, total_citations, results_citing, usage_pct.

Acceptance criteria

  • Export respects the active filters (date range, platform, topic, own-domain toggles) and the active tab.
  • Empty tables export headers only (no crash).
  • File name includes the brand and date range, matching the Insights export convention.

Good first issue: the serializer and the UI pattern are both in place — this is wiring, not invention.

Activity

  1. added
    enhancement
    good first issue
    on Jul 15, 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

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions