Skip to content

Add API request log viewer with filtering and export #255

Description

@Kingsman-99

Description

src/app/settings/api-keys/page.tsx manages API keys but there's no visibility into actual API request history (which endpoint, when, by which key, success/failure). This issue adds a request log viewer.

Technical Context

New src/app/settings/api-logs/page.tsx. Assumes src/app/api/* route handlers log each request (endpoint, key ID, timestamp, status code) to a queryable store; this issue covers the viewer UI with filtering by key, endpoint, and date range, plus CSV export reusing csvExport.ts.

Acceptance Criteria

  • Log table shows timestamp, endpoint, key (by name, not full secret), status code
  • Filterable by key, endpoint, and date range simultaneously
  • CSV export respects the currently applied filters, not the full unfiltered log
  • Paginates for large log volumes rather than rendering everything at once
  • Unit tests: combined filter correctness, filtered export content matches visible filtered rows

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions