Repository navigation
lab status: print each device's Availability window beside its heartbeat state - #70
Open
joshuaswarren wants to merge 1 commit into
Open
joshuaswarren wants to merge 1 commit into
joshuaswarren wants to merge 1 commit into
Conversation
…eat state Drill d-0062 p2: on 2026-11-20 ryan-m3max answered its heartbeat while its owner's window was closed, and the row was read bookable. The devices table and the per-device detail now carry the window: OPEN (with its end when one is scheduled), CLOSED with the next opening's day and clock time, or 'no availability window set (treated open)' for a Mac whose Volunteer set none. The state is rendered once in the client (client.Device.WindowState), so every caller of lab status - CLI, table, detail - reads the same line.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lab status: print each device's Availability window beside its heartbeat state
A Volunteer Mac can answer its heartbeat while its Availability window is
closed - on 2026-11-20 ryan-m3max read ready and was booked as open. lab
status now carries the window beside the heartbeat state in the devices
table and the per-device detail:
The state is rendered once in the client (client.Device.WindowState) so
every caller of lab status - the table, the detail, tooling - reads the
same line. A device whose Volunteer set no window reads unchanged for
booking.
Tests, failing-first (cmd/lab/window_status_test.go): closed window names
the next opening; open inside the window; unset treated open; the table
carries the window beside the heartbeat state. cmd/lab, internal/client
and internal/window suites pass.