Skip to content

fix(builder): keep in-page navigation lists visible while a route loads - #1576

Merged
sung17 merged 1 commit into
mainfrom
fix/local-navigation-pending-lists
Oct 28, 2026
Merged

sung17 merged 1 commit into
mainfrom
fix/local-navigation-pending-lists

Conversation

@sung17

@sung17 sung17 commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #1574. Three in-page navigation lists link to sibling routes, and the workspace-wide pending boundary treated those clicks as page changes. The whole page, including the list itself, was covered by a skeleton:

  • Settings → Channels / Integrations accordion (RouteAccordionShell). For example, clicking Messenger / Instagram / TikTok on /settings/channels/whatsapp.
  • The Analytics side rail: Contacts / Conversations / Ads (AnalyticsNav).
  • The Ecommerce settings side list (EcommerceSettingsSidebar).

Changes

  • New LinkPendingSpinner in components/navigation-pending.tsx: rendered inside a <Link>, it shows a small spinner while that link's navigation is pending (useLinkStatus).
  • Each of the three lists is marked data-local-navigation-pending, so the workspace-wide boundary ignores its links. The clicked entry shows the spinner instead, and the list, tab strip and inbox cards stay in place.
  • Analytics rail links switch from block to flex so the spinner sits on the same line as the label.

I checked every workspace layout for sub-navigation. All other tab strips (Flows/Tags, Keywords, Coupons, Products, Appointment calendars, Mini-apps, Minigames, Messenger/Instagram/WhatsApp settings) use AppTab, which already handles this.

Public API

Exempt from invariant 23: this is UI-only plumbing (navigation loading state).

Test plan

  • pnpm lint
  • pnpm --filter builder check-types
  • vitest run in apps/builder: 1028 files pass
  • /settings/channels/whatsapp → click Messenger: the list stays and a spinner shows on the Messenger row
  • Analytics → Contacts / Conversations: the inbox cards and rail stay and a spinner shows on the clicked entry
  • Ecommerce settings → switch section: the side list stays and a spinner shows on the clicked entry

🤖 Generated with Claude Code

Settings channels/integrations accordion, the Analytics side rail and the
ecommerce settings side list each link to sibling routes. The workspace-wide
pending boundary treated those clicks as page changes and covered the whole
page, including the list itself, with a skeleton.

Each list is now marked data-local-navigation-pending so the boundary ignores
it, and shows a LinkPendingSpinner (useLinkStatus) on the clicked entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the bug Something isn't working as expected label Oct 28, 2026
@sung17
sung17 merged commit c2e5c6d into main Oct 28, 2026
15 checks passed
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
…ds (#1576)

Settings channels/integrations accordion, the Analytics side rail and the
ecommerce settings side list each link to sibling routes. The workspace-wide
pending boundary treated those clicks as page changes and covered the whole
page, including the list itself, with a skeleton.

Each list is now marked data-local-navigation-pending so the boundary ignores
it, and shows a LinkPendingSpinner (useLinkStatus) on the clicked entry.

Co-authored-by: Deathgiver <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant