Skip to content

feat(dashboard): full-screen loading overlay for navigation (#484) - #485

Merged
unjica merged 6 commits into
developfrom
feature/nav-fullscreen-loader
Jul 17, 2026
Merged

unjica merged 6 commits into
developfrom
feature/nav-fullscreen-loader

Conversation

@unjica

@unjica unjica commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Implements #484.

  • Shared DashboardNavigationProvider with a blurred full-viewport loader while navigation is pending
  • Wired for app, env, workspace, project, section tabs, settings nav, time range, command palette, and keyboard goto
  • Org/project switches keep the overlay through replaceAndRefresh; mount-time query sanitization uses replaceSilent (no flash)
  • Overlay locks scroll, marks the page inert, and sits above shell popovers

Test plan

  • Switch app / env — full-screen blurred loader; trigger spinner still ok
  • Switch workspace / project — loader stays until content refreshes; no stale interactive UI underneath
  • Change section tabs, settings pages, time range, ⌘K / g shortcuts — same overlay
  • Invalid ?app= / ?environment= cleanup does not flash the overlay
  • prefers-reduced-motion uses solid dim without blur animation

Closes #484

Made with Cursor

unjica and others added 2 commits July 17, 2026 01:17
…ation

Share pending navigation state across switchers and in-dashboard links so
context switches show a blurred full-viewport loader, not only a control spinner.

Co-authored-by: Cursor <[email protected]>
Address Bugbot findings: replaceAndRefresh for org/project, silent URL
sanitization, and inert/scroll-lock overlay above popovers.

Co-authored-by: Cursor <[email protected]>
bugbot-review was failing when api.github.com returned HTML 503 pages
instead of JSON. Enable github-script retries and poll through transient errors.

Co-authored-by: Cursor <[email protected]>
unjica and others added 2 commits July 17, 2026 02:35
Keep full-screen navigation overlay wiring and develop’s workspace
rename deep-link; combine Unreleased CHANGELOG entries.

Co-authored-by: Cursor <[email protected]>
⌘K / ? / g handlers still ran during fullscreen navigation because they
listen on document/window; gate on isPending and dismiss open UI.

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

unjica commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

Re-checked Bugbot Shortcuts fire during overlay (thread was resolved, but the bug was still present).

Fixed: command palette and keyboard shortcuts now no-op while `isPending`, and dismiss open palette / shortcuts / “Go to…” state when navigation starts.

@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 2 potential issues.

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 56e21de. Configure here.

Guard disabled nav-link clicks, keep async pending through
replaceAndRefresh settle, and close portaled popovers while pending.

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

unjica commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator Author

Addressed the review note + the two open Bugbot findings on `56e21de`:

  1. `useDashboardNavLinkProps` — `onClick` now no-ops (and `preventDefault`) while `isPending`, matching `aria-disabled`.
  2. Workspace switch overlay ends early — `replaceAndRefresh` returns a Promise, holds the async pending counter until the transition settles (with a fallback hold when `useTransition` never goes pending through `router.refresh()`), and org/project switchers `await` it inside `runPending`.
  3. Popover stays keyboard active — `DashboardPopover` closes (and won’t re-open) while navigation is pending, so body-portaled menus can’t stay interactive under the overlay.

@unjica
unjica merged commit 734a87b into develop Jul 17, 2026
5 of 6 checks passed
@unjica
unjica deleted the feature/nav-fullscreen-loader branch July 17, 2026 00:44
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: full-screen loading overlay for scope and page navigation

1 participant