feat: reflect server mode in client UI #8
Reference in New Issue
Block a user
Delete Branch "feature/server-mode-ui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add server mode awareness so the client reflects the state of the silo server (normal, read-only, degraded, offline).
Changes
Server mode tracking
_server_modemodule-level variable tracks current mode_fetch_server_mode()queriesGET /readyendpoint and maps the response status to a mode string ("normal","read-only","degraded","offline")SSE real-time updates
server_mode_changedsignal onSiloEventListener_dispatch()handlesserver.stateSSE events, updating_server_modeimmediatelyMode banner in auth dock widget
normal_refresh_status()and in real-time via SSEWrite commands disabled by mode
Silo_New,Silo_Save,Silo_Commit,Silo_Push—IsActive()now checks_server_mode == "normal"Silo_Open,Silo_Pull,Silo_Info) remain enabledMode behavior matrix
Closes #4