Skip to content

feat: #241 ⚙️ Perf | Non-Blocking Global Layout Suspense Isolation#345

Merged
Sadeequ merged 5 commits into
StellarFlow-Network:mainfrom
DammyAji:feat/241-suspense-isolation
Jun 2, 2026
Merged

feat: #241 ⚙️ Perf | Non-Blocking Global Layout Suspense Isolation#345
Sadeequ merged 5 commits into
StellarFlow-Network:mainfrom
DammyAji:feat/241-suspense-isolation

Conversation

@DammyAji

@DammyAji DammyAji commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #241

Resolves the issue where intensive client telemetry summaries were blocking initial server-side hydration pipelines for simple headers.

Changes

  • src/app/admin/page.tsx (new) — Admin dashboard with static header & AdminTabBar rendering immediately; intensive AdminStatsRows enclosed in a native React <Suspense> context slot with AdminStatsSkeleton as the static fallback card
  • src/components/skeletons/AdminStatsSkeleton.tsx (new) — Static fallback skeleton for admin stats rows
  • src/components/skeletons/StatsSkeleton.tsx (new) — Static fallback skeleton for dashboard stats
  • src/app/layout.tsx — Added SocketProvider to global layout
  • src/app/components/AdminTabBar.tsx — Fixed broken export and undefined activeTab
  • src/app/components/FloatingSidebar.tsx — Fixed duplicate handlePrefetch
  • src/app/components/nav.jsx — Fixed missing usePathname import and duplicate onMouseEnter
  • src/app/hooks/useSocket.ts — Fixed WebSocket protocol to use window.location.protocol

Technical Requirements Met

  • ✅ Intensive administrative statistics rows enclosed inside native React context slots (<Suspense>)
  • ✅ Fast, static asset fallback cards served immediately so users interact with text blocks without waiting

DammyAji added 4 commits June 2, 2026 10:09
…lation

- Add StatsSkeleton fallback component for stats rows Suspense boundary
- Add AdminStatsSkeleton fallback for admin telemetry rows
- Wrap SystemStats + ModularStatsCard sections in Suspense in page.jsx
- Export new skeletons from skeletons index

Intensive admin/stats rows are now isolated in native React Suspense
slots so the header and nav hydrate immediately without waiting for
complex client telemetry summaries to resolve.
…lation

- Add src/app/admin/page.tsx: wraps intensive AdminStatsRows in a
  Suspense boundary with AdminStatsSkeleton fallback so static header,
  nav, and tab bar are never blocked by telemetry resolution
- Update layout.tsx: add SocketProvider to global layout tree so
  WebSocket context is available app-wide without re-mounting
- Fix AdminTabBar.tsx: move export default outside function body and
  resolve undefined activeTab variable
- FloatingSidebar.tsx: remove duplicate handlePrefetch definition
- nav.jsx: add missing usePathname import, remove duplicate onMouseEnter
@drips-wave

drips-wave Bot commented Jun 2, 2026

Copy link
Copy Markdown

@DammyAji Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Sadeequ Sadeequ merged commit d44bc57 into StellarFlow-Network:main Jun 2, 2026
1 check failed
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.

⚙️ Perf | Non-Blocking Global Layout Suspense Isolation

2 participants