Skip to content

AI Traffic: add CSV export for the visit log #607

Closed

Description

@gkhngyk

Problem

AI Traffic is the only data-heavy dashboard page with no CSV export. Insights, Prompts, Topics, Citations, and Shopping all ship an "Export CSV" button built on the shared toCsv helper; the Traffic header has only the date picker.

Evidence

Suggested scope

Add an "Export CSV" button to the page header exporting the visit log for the selected date window and active filters (timestamp, platform, page URL, referrer). getTrafficLogs already accepts the filters; the export should fetch with a high limit rather than the current page. Exporting the platform breakdown and top pages tables as additional files (like the Shopping page's multi-export) is a welcome bonus but not required.

Follow the existing ansvisor_${slug}_traffic_${date}.csv naming convention used by the other pages.

Acceptance criteria

  • Export CSV downloads the visit log matching the current date window and filters.
  • Button shows a spinner while exporting and a toast on failure, like the Citations implementation.

Activity

  1. added
    enhancement
    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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions