Skip to content

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

Closed

Description

@unjica

Summary

Speed up first paint on errors / events / sessions (and performance if it fits) by loading only above-the-fold data on the server, then fetching below-the-fold analytics right after ATF paint (not scroll-gated).

Approach

  • SSR / first paint (parallel where independent): page chrome, filters, summary KPIs, and the primary list (first page).
  • After paint (client): analytics panels / heavier secondary charts via existing endpoints (same ones currently in Promise.all with the list).
  • Prefer streaming / idle / useEffect+SWR (or equivalent) after hydration — do not wait for IntersectionObserver / scroll.

Current state

List pages already fan out in parallel, e.g. errors:

Promise.all([getFilterOptions, getErrors, getErrorsSummary, getErrorsAnalytics])

Summary + analytics are soft-null on failure; the list/filters are the critical path. Analytics panels render below the summary/list region.

Deliverables

  • Split SSR load so analytics is not awaited before first paint
  • Client fetch analytics after ATF paint with loading skeleton in the panels slot
  • Keep filter/list behavior and SWR list refetch intact
  • Apply consistently to errors, events, sessions (performance if same shape)
  • No layout jump / CLS where avoidable; respect prefers-reduced-motion

Out of scope

Overview ATF + API split — tracked separately.

Base branch

develop

Related

  • Overview follow-up (API work) — see linked issue

Activity

  1. self-assigned this
    on Jul 16, 2026
  2. added
    enhancement
    dashboard
    frontend
    performance
    on Jul 16, 2026
  3. unjica commented on Jul 16, 2026

    @unjica
    CollaboratorAuthor

    Follow-up (Overview / API): #487

  4. unjica commented on Jul 16, 2026

    @unjica
    CollaboratorAuthor

    Implementation on `feature/atf-list-analytics`:

    • SSR `Promise.all` for filters + summary + list only (errors / events / sessions)
    • `DeferredAnalyticsSlot` + `useDeferredAnalytics` fetch analytics after paint (`requestIdleCallback` / timeout)
    • Performance page unchanged (no separate analytics endpoint)
    • Overview remains #487
  5. unjica commented on Jul 16, 2026

    @unjica
    CollaboratorAuthor

    PR: #488

  6. added 2 commits that reference this issue on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dashboardenhancementfrontendperformance

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions