Skip to content

🩺 Diagnostic-Page | App Diagnostics & RPC Node Performance Debug Panel - #671

Merged
Sadeequ merged 1 commit into
StellarFlow-Network:mainfrom
milah-247:feat/628-debug-dashboard
Aug 1, 2026
Merged

🩺 Diagnostic-Page | App Diagnostics & RPC Node Performance Debug Panel#671
Sadeequ merged 1 commit into
StellarFlow-Network:mainfrom
milah-247:feat/628-debug-dashboard

Conversation

@milah-247

Copy link
Copy Markdown
Contributor

Summary

  • Adds /diagnostics (src/app/diagnostics/page.tsx): an internal debug dashboard with commit SHA, SDK versions (Next.js, React, @stellar/stellar-sdk, @stellar/freighter-api, read from package.json), and the active network target/passphrase.
  • Commit SHA is resolved in next.config.ts at build time — VERCEL_GIT_COMMIT_SHA when present, otherwise git rev-parse --short HEAD, falling back to "dev" — and exposed via NEXT_PUBLIC_COMMIT_SHA.
  • A ping test suite for Horizon and Soroban RPC, built on the existing useRpcHealth hook (no new ping logic needed).
  • Live WebSocket connection status sourced from the app's real WebSocketManager singleton (subscribeToStatus/getConnectedStatus) rather than guessing at global WebSocket instances.
  • A localStorage inspector listing keys and sizes.
  • A one-click "Clear App Cache & Reset State" action (clear() from src/utils/storage.ts) that wipes storage and reloads.

Technical Requirements Addressed

  • Display current commit SHA, SDK versions, and active network target details
  • Ping test suite evaluating response times across public Horizon and Soroban nodes
  • One-click "Clear App Cache & Reset State" utility for troubleshooting

Files Changed

  • src/app/diagnostics/page.tsx (new)
  • next.config.ts
  • src/config/env.ts

Testing

  • npx tsc --noEmit — no new type errors introduced.
  • npx eslint on all changed files — clean.
  • npx next build currently fails on main for unrelated pre-existing reasons (src/lib/queryClient/src/lib/persister missing, ErrorBoundary not exported from @/components/ui) — not touched by this PR; verified via tsc/eslint instead.

Closes #628

Adds /diagnostics: commit SHA (resolved at build time via git or
VERCEL_GIT_COMMIT_SHA), SDK versions, and the active network target;
a ping test suite for Horizon and Soroban RPC built on the existing
useRpcHealth hook; live WebSocket status from the shared
WebSocketManager singleton; a localStorage inspector; and a one-click
Clear App Cache & Reset State action.
@drips-wave

drips-wave Bot commented Aug 1, 2026

Copy link
Copy Markdown

@milah-247 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 73e3289 into StellarFlow-Network:main Aug 1, 2026
3 of 7 checks passed
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.

🩺 Diagnostic-Page | App Diagnostics & RPC Node Performance Debug Panel

2 participants