Skip to content

Dashboard: full-screen loading overlay for scope and page navigation #484

Closed

Description

@unjica

Summary

Scope and page changes (app, environment, workspace, project, and in-app navigation) currently show loading feedback mainly on the control that triggered the change (e.g. spinner on the app/env switcher via useTransition). The rest of the dashboard stays interactive and looks stale until the new route/data lands.

We need a full-screen (main content) loading overlay while those navigations are in flight so it is obvious the UI is switching context.

Context

  • #419 / #421 shipped control-level pending states and some route loading.tsx skeletons — not a global overlay.
  • #210 covers list-page skeletons; this issue is about navigation/pending overlay for scope switches and page transitions.

Deliverables

  • Shared full-screen / content-area loading overlay (respect prefers-reduced-motion; block interaction while pending)
  • Wire to dashboard navigation pending state (useDashboardNavigation / useTransition) for:
    • App switcher
    • Environment selector
    • Workspace (org) switcher
    • Project switcher
    • Sidebar / in-dashboard page navigation (and other push/replace that change primary data)
  • Avoid stacking conflicting loaders (overlay vs control spinner — prefer overlay as primary signal; keep control disabled/aria-busy as needed)
  • Handle rapid successive switches without stuck overlay or racey UI

Suggested files

  • apps/dashboard/lib/use-dashboard-navigation.ts
  • apps/dashboard/app/components/dashboard/shell/TopNavAppSwitcher.tsx
  • apps/dashboard/app/components/dashboard/shell/DashboardEnvSelector.tsx
  • apps/dashboard/app/components/dashboard/shell/TopNavOrgSwitcher.tsx (and project switcher)
  • apps/dashboard/app/components/dashboard/shell/DashboardLoadingShell.tsx (reuse or extend if appropriate)
  • Dashboard layout / shell that wraps main content

Acceptance criteria

  • Changing app, env, workspace, project, or primary dashboard page shows a full content-area loader until navigation settles
  • Controls that triggered the change are non-interactive while pending
  • No flash of previous scope’s data presented as current after the switch starts
  • Works on desktop and mobile; accessible (aria-busy / live region)

Base branch

develop

Activity

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

    @unjica
    CollaboratorAuthor

    Implemented in #485

  4. added a commit that references 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

dashboardenhancementfrontendux

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions