Skip to content

Dashboard loading state UX improvements#6480

Merged
RobertJoonas merged 4 commits into
masterfrom
dashboard-loading-states
Jul 7, 2026
Merged

Dashboard loading state UX improvements#6480
RobertJoonas merged 4 commits into
masterfrom
dashboard-loading-states

Conversation

@RobertJoonas

@RobertJoonas RobertJoonas commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Enable the fade-in animation when switching between IndexBreakdown tabs (e.g. Sources -> Channels) -- done by passing a key={selectedTabKey} to the IndexBreakdown components
    • Note: the animation does not trigger when changing dashboard state to something that has already been visited (i.e. the results are cached)
  • WorldMap component improvements
    • initital state (data is fetching) -- render loading spinner instead of blank world map without colors
    • wrap with LazyLoader like any other IndexBreakdown (fetches data only after scrolled into view)
    • add fade-in animation when transitioning from loading -> data (or showing cached results after tab change) -- basically do the same as IndexBreakdowns
    • code organization: separate SVG rendering into a new component (world-map-svg.tsx) that assumes the presence of data

Tests

  • This PR does not require tests

Changelog

  • This PR does not make a user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • The UI has been tested both in dark and light mode

Also separates SVG rendering from loading state handling and adds a fade-in
animation to the map appearing (like all other IndexBreakdowns)
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Preview environment👷🏼‍♀️🏗️
PR-6480

@RobertJoonas RobertJoonas requested a review from apata July 2, 2026 15:28
Comment thread assets/js/dashboard/stats/locations/world-map-svg.tsx
Comment thread assets/js/dashboard/stats/locations/map.tsx Outdated
Comment thread assets/js/dashboard/stats/locations/map.tsx Outdated
@RobertJoonas RobertJoonas force-pushed the dashboard-loading-states branch from 0f39924 to 5df6e11 Compare July 7, 2026 11:41
@RobertJoonas RobertJoonas added this pull request to the merge queue Jul 7, 2026
Merged via the queue into master with commit 7c6fd4a Jul 7, 2026
22 checks passed
@RobertJoonas RobertJoonas deleted the dashboard-loading-states branch July 7, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants