Skip to content

Add a Visits page for session behavior - #663

Merged
cursor[bot] merged 1 commit into
developfrom
cursor/visits-page-f4fb
Sep 25, 2026
Merged

cursor[bot] merged 1 commit into
developfrom
cursor/visits-page-f4fb

Conversation

@unjica

@unjica unjica commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Base branch: open feature and fix PRs against develop. Milestone releases promote develop → main — see docs/RELEASE.md.

Summary

Adds Visits at /dashboard/visits. A visit is one session. The page shows how many visits and visitors there were, how long they stayed, which screens and custom actions they used, and breakdowns by country, platform, browser, and operating system. The latest visits link through to the existing session detail.

The SDK does not send city or referrer, so those are not on the page. Country and device come from the session row. Screens come from $screen, page_view, and screen_view.

How to test

  • pnpm --filter api exec vitest run src/lib/visits-summary.test.ts
  • pnpm --filter dashboard exec vitest run lib/dashboard-nav.test.ts
  • Open /dashboard/visits with a project that has sessions. Confirm counts, screens, actions, and the four breakdowns. Apply country or environment filters and confirm the numbers change. Open a row in Latest visits and confirm it lands on that session.

Code review (Bugbot)

Paused: GitHub bugbot-review is currently a no-op. /review-bugbot is optional.

  • For notification, alert, billing, ingest, or auth changes: considered running /review-bugbot in Cursor (optional while the gate is paused)
  • If Bugbot comments appear anyway: addressed or replied

Checklist

  • Tests pass for the new unit coverage
  • Lint passes on the edited files
  • CHANGELOG.md updated under [Unreleased]
  • No breaking API changes
  • No database migration

Security / privacy

Reads existing project-scoped session and event rows through the dashboard API. No new fields are stored.

Open in Web Open in Cursor 

Show visit and visitor counts, duration, screens, custom actions, and country, platform, browser, and OS breakdowns from existing session and event data.

Co-authored-by: Sanja Malovic <[email protected]>
@unjica
unjica marked this pull request as ready for review September 25, 2026 08:31
@cursor
cursor Bot merged commit 4d071ff into develop Sep 25, 2026
9 checks passed
@unjica unjica mentioned this pull request Sep 25, 2026
7 of 14 tasks
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.

2 participants