Skip to content

feat(insights): Reports shortcut button next to Export CSV - #567

Merged
gkhngyk merged 1 commit into
mainfrom
feature/insights-reports-button
Jul 31, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
feature/insights-reports-button

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a primary (solid) Reports button to the right of Export CSV in the Insights page header, linking to /dashboard/reports. Report generation is fed by the same Insights data, so this gives the natural next step a visible entry point right where users are looking at the numbers.

Uses the existing Link + buttonVariants() pattern (the repo's Button has no asChild), with the FileText icon.

Related issue

—

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Open Insights for any brand.
  2. A solid Reports button appears to the right of Export CSV; clicking it navigates to the Reports page.
  3. Locale-prefixed routing works (button uses the i18n Link).

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

@gkhngyk
gkhngyk merged commit c331a21 into main Jul 31, 2026
4 checks passed
@gkhngyk
gkhngyk deleted the feature/insights-reports-button branch July 31, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant