Skip to content

feat: add gateway status indicator and controls to admin UI#216

Open
isaacrowntree wants to merge 1 commit intocloudflare:mainfrom
isaacrowntree:feat/gateway-status-ui
Open

feat: add gateway status indicator and controls to admin UI#216
isaacrowntree wants to merge 1 commit intocloudflare:mainfrom
isaacrowntree:feat/gateway-status-ui

Conversation

@isaacrowntree
Copy link

Summary

Fixes #213

  • New GET /api/admin/gateway/status endpoint returns running, starting, or stopped based on process existence and port responsiveness
  • Status badge in admin UI: green dot "Running", yellow pulsing dot "Starting", red dot "Stopped"
  • Button changes to "Start Gateway" (green) when stopped, "Restart Gateway" (red) when running
  • After restart, polls status every 2s until running or 60s timeout (replaces alert dialog)
  • "Backup Now" button disabled when gateway is not running (sync requires it)
  • Skips confirmation dialog when starting a stopped gateway

Test plan

  • 6 new tests for gateway status endpoint (stopped, running, starting, non-200 response, CLI process filtering, listProcesses failure)
  • All existing tests pass (90 total)
  • Build succeeds
  • Manual test: verify status badge updates correctly after restart

🤖 Generated with Claude Code

…re#213)

Add GET /api/admin/gateway/status endpoint that checks process status
and port responsiveness to determine running/starting/stopped state.

Admin UI changes:
- Status badge next to "Gateway Controls" (green/yellow/red dot)
- Always "Restart Gateway" (gateway auto-starts on deploy)
- Post-restart polling until gateway is running or 60s timeout
- Background polling every 15s to keep status badge current
- "Backup Now" disabled when gateway not running

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@isaacrowntree isaacrowntree force-pushed the feat/gateway-status-ui branch from 7271870 to df7b80d Compare February 9, 2026 00:03
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.

Admin UI: show gateway status and improve controls

1 participant