Skip to content

Add RCON connection status indicator to admin dashboard#69

Draft
Copilot wants to merge 3 commits into
masterfrom
copilot/show-error-message-server-offline
Draft

Add RCON connection status indicator to admin dashboard#69
Copilot wants to merge 3 commits into
masterfrom
copilot/show-error-message-server-offline

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 23, 2026

Admin panel lacked visibility into RCON server connectivity, leaving admins uncertain why whitelist approvals might silently fail when the Minecraft server is unreachable.

Changes

Backend

  • Added GET /api/status/rcon endpoint that attempts RCON connection and returns status
  • Protected with authMiddleware (admin-only access)
  • Returns {status, connected, message} payload

Frontend

  • Status indicator positioned above user table in Dashboard
  • Polls endpoint every 5s (matches existing Home component pattern)
  • Visual states:
    • 🟩 Green: "Server is running"
    • 🟥 Red: "Server is offline - Entries cannot be approved"

Implementation Notes

  • Connection test uses existing connectRcon()/disconnectRcon() helpers
  • Gracefully handles connection failures (returns 200 with connected: false)
  • Status check creates ephemeral connection; does not maintain persistent state
Original prompt

This section details on the original issue you should resolve

<issue_title>Admin Panel - Show Error Message when Server is Offline</issue_title>
<issue_description>Display an error message that the rcon server is not connected and, therefore, no entries can be approved.
Or add an icon somewhere in the adminpannel.

Bildschirmfoto 2023-09-18 um 15 07 44 Bildschirmfoto 2023-09-18 um 15 08 37

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
convitelist Ready Ready Preview, Comment Jan 23, 2026 1:17pm

Co-authored-by: maxonary <62939182+maxonary@users.noreply.github.com>
Co-authored-by: maxonary <62939182+maxonary@users.noreply.github.com>
Copilot AI changed the title [WIP] Add error message for offline rcon server in admin panel Add RCON connection status indicator to admin dashboard Jan 23, 2026
Copilot AI requested a review from maxonary January 23, 2026 13:19
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 Panel - Show Error Message when Server is Offline

2 participants