3. Status polling + reactive state #4
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Parent: PRD #1 (Tailscale Widget Plugin for Dank Bar)
Type: AFK
Blocked by: #3
Add periodic
tailscale status --jsonpolling and expose reactive properties for connection state, IP, and current exit node.Acceptance Criteria
Timerrunstailscale status --jsonat a fixed interval (e.g. 5 s)Process+StdioCollectorparses the JSON and updates:isConnected(BackendState === "Running")tailscaleIP(first entry of Self.TailscaleIPs)currentExitNode(hostname or empty string)isConnectedvalueToastService.showErrorand fall back to disconnected stateNotes
This slice provides the data foundation used by the popout and all later slices.
Slice #3 complete (Status polling + reactive state).
Implementation:
Timerwith 5s interval triggersstatusCheck.running = trueComponent.onCompletedBackendState→isConnectedSelf.TailscaleIPs[0]→tailscaleIPCurrentExitNode.HostName→currentExitNodeToastService.showError("tailscalectl", ...)and reset stateVerification:
PLUGIN_RELOAD_SUCCESS)loadedafter polling runsNext slice: #5 (Popout skeleton – header row).