Skip to content

feat(dashboard): defer list analytics until after first paint (#486) - #488

Merged
unjica merged 5 commits into
developfrom
feature/atf-list-analytics
Jul 17, 2026
Merged

unjica merged 5 commits into
developfrom
feature/atf-list-analytics

Conversation

@unjica

@unjica unjica commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Implements #486.

  • SSR errors / events / sessions with filters + summary + list only (parallel)
  • Analytics panels load after paint via DeferredAnalyticsSlot / useDeferredAnalytics
  • Proxy /api/telemetry/[...path] allows */analytics nested paths used by the client fetch
  • Sessions chart bucket keeps using live URL params after client list updates
  • Overview ATF/API split remains #487; performance unchanged (no separate analytics endpoint)

Test plan

  • Errors / Events / Sessions: summary + table appear quickly; analytics skeleton then panels
  • Filter / time-range change reloads ATF and refetches analytics for the new scope
  • Sessions: change sort/page client-side, then chart bucket — sort/page preserved in navigation URL
  • Analytics soft-fails cleanly if the endpoint errors (no blank page)

Closes #486

Made with Cursor

unjica and others added 2 commits July 17, 2026 01:54
SSR errors/events/sessions with filters, summary, and list only; load
analytics panels client-side after paint so ATF is not blocked (#486).

Co-authored-by: Cursor <[email protected]>
Extend /api/telemetry catch-all to errors|events|sessions/analytics, and
pass live URL params into sessions chart bucket controls.

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

@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.

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 f05372c. Configure here.

Reset loading state synchronously on apiPath/queryString change so filter
navigations do not briefly show charts from the previous scope.

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

unjica commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

Fixed Bugbot finding: deferred analytics now resets synchronously when the query scope changes (no stale charts vs new summary).

unjica and others added 2 commits July 17, 2026 02:04
Keep ATF as summary + table; move analytics skeletons/panels under the
list on errors, events, and sessions (#486).

Co-authored-by: Cursor <[email protected]>
Server pages cannot pass function children into DeferredAnalyticsSlot.
Use dedicated client wrappers for errors/events/sessions analytics instead.

Co-authored-by: Cursor <[email protected]>
@unjica
unjica merged commit 610cee3 into develop Jul 17, 2026
5 of 6 checks passed
@unjica
unjica deleted the feature/atf-list-analytics branch July 17, 2026 00:11
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.

Dashboard: ATF-first load for list pages (defer analytics after paint)

1 participant