Skip to content

feat: add WebSocket connection status indicator to footer#570

Open
garrappachc wants to merge 4 commits intomasterfrom
feat/ws-status-indicator
Open

feat: add WebSocket connection status indicator to footer#570
garrappachc wants to merge 4 commits intomasterfrom
feat/ws-status-indicator

Conversation

@garrappachc
Copy link
Copy Markdown
Member

Summary

  • Adds a small colored ball in the footer showing WebSocket connection state: yellow+pulsing (connecting), green (connected), red (disconnected)
  • State is driven by data-ws-status attribute updated via a new client module listening to htmx:wsConnecting, htmx:wsOpen, and htmx:wsClose events
  • Includes a tooltip on hover and ARIA role="status" + aria-label for accessibility

Test Plan

  • Visit the site and verify the footer shows a yellow pulsing ball initially
  • After the WebSocket connects, the ball turns green with tooltip "Connected"
  • Simulate a network disconnect (e.g. disable Wi-Fi) — ball turns red "Disconnected"
  • Reconnect — ball returns to yellow "Connecting..." then green "Connected"
  • Verify tooltip appears on hover and renders above the ball (not clipped by viewport)

🤖 Generated with Claude Code

garrappachc and others added 3 commits March 30, 2026 22:46
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

Playwright test results

passed  198 passed
flaky  1 flaky

Details

stats  199 tests across 29 suites
duration  17 minutes, 5 seconds
commit  1d49f34

Flaky tests

chromium › 20-game/02-free-players.spec.ts › free players when the game ends @6v6 @9v9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant