-
Notifications
You must be signed in to change notification settings - Fork 43
Add connection status indicator to web UI #1194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add connection status monitoring to HTTP requests - Display connection indicator in header with visual status - Show connected/disconnected states with color-coded dot - Hide status text on smaller screens for responsive design - Provide user feedback when server connection is lost Addresses #1191 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Show the exact time when connection was lost in the tooltip as "Connection lost at [time] - Updates paused" for better user awareness. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
| function removeConnectionStatusListener (callback) { | ||
| connectionStatus.listeners.delete(callback) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is never used as far as I can see. Remove?
| @@ -1,3 +1,30 @@ | |||
| const connectionStatus = { | |||
| isConnected: true, | |||
| lastSuccess: Date.now(), | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lastSuccess is never used, right? same functionality seems to be handled by disconnectedAt in layout.js
|
Saw a couple of things that didn't look to be used. Looks good besides that! 👍 |


Summary
Changes
static/js/http.jsto track connection status and notify listenersstatic/js/layout.jsto implement the connection status indicator componentstatic/main.cssfor the indicator with theme supportTest plan
Closes #1191
🤖 Generated with Claude Code