Skip to content

Performance: slow routes and slow pages tables - #596

Merged
unjica merged 6 commits into
developfrom
feat/196-slow-routes-pages
Jul 19, 2026
Merged

unjica merged 6 commits into
developfrom
feat/196-slow-routes-pages

Conversation

@unjica

@unjica unjica commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add /api/performance/slow-routes and /api/performance/slow-pages aggregations (p50/p95 + error rate for $request; LCP p75 + CLS + samples for $web_vital), with deterministic sort, pagination, and small-sample flags
  • Surface both tables on /dashboard/performance with loading/empty/error states and scope-preserving deep links to Events
  • Closes Performance: slow routes and slow pages tables #196 (milestone v1.17.x — Performance Intelligence)

Test plan

  • Open Performance with $request data → Slow routes shows method/path/count/p50/p95/error rate, sorted by p95
  • Open Performance with $web_vital data → Slow pages shows path/LCP/CLS/samples; rows with n<5 show Low n
  • Paginate each table independently (routesPage / pagesPage) and confirm scope filters are preserved
  • Click a slow route → Events filtered to $request + method/path
  • Click a slow page → Events filtered to $web_vital + path
  • Empty states when no request/vital data; page still loads summary KPIs when present
  • pnpm lint && pnpm test && pnpm build

Made with Cursor

unjica and others added 2 commits July 19, 2026 11:52
Surface the slowest $request routes and $web_vital pages for the selected
dashboard scope so developers can spot latency regressions without leaving
Performance (#196).

Co-authored-by: Cursor <[email protected]>
Sessions free-text search does not match page paths, so route drill-downs
to `$web_vital` Events instead of a misleading Sessions `q` filter.

Co-authored-by: Cursor <[email protected]>
Comment thread apps/api/src/routes/api.ts Dismissed
Comment thread apps/api/src/routes/api.ts Dismissed
Events list filtering ignores compare params, so slow-route/page links now
use the table's resolved since/until as a custom range instead of forwarding
calendar compare modes that would show a mismatched window.

Co-authored-by: Cursor <[email protected]>
@unjica

unjica commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit cf773d0. Configure here.

Clear routesPage/pagesPage when the shared time-range picker changes
filters, and push slow-route/page sort+LIMIT into SQL so we no longer
materialize every aggregated path in Node for a single page.

Co-authored-by: Cursor <[email protected]>
@unjica

unjica commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator Author

bugbot run

@cursor

cursor Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_4c488e69-144d-4ffa-9742-b2454bcfafcb)

unjica and others added 2 commits July 19, 2026 12:44
Group absolute and relative $request URLs on the same path so hosts and query strings do not split slow-route rows.

Co-authored-by: Cursor <[email protected]>
Pick up BUGBOT_REVIEW_ENABLED=false no-op gate from #597.
@unjica
unjica merged commit fcca48d into develop Jul 19, 2026
7 checks passed
@unjica
unjica deleted the feat/196-slow-routes-pages branch July 19, 2026 10:52
@unjica unjica mentioned this pull request Jul 19, 2026
2 of 7 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.

Performance: slow routes and slow pages tables

2 participants