Skip to content

lab status: print each device's Availability window beside its heartbeat state - #70

Open
joshuaswarren wants to merge 1 commit into
chriskearney:mainfrom
joshuaswarren:lab-status-availability
Open

joshuaswarren wants to merge 1 commit into
chriskearney:mainfrom
joshuaswarren:lab-status-availability

Conversation

@joshuaswarren

Copy link
Copy Markdown
Contributor

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:

  • window OPEN (with "until " when the end is scheduled)
  • window CLOSED, next opens
  • no availability window set (treated open)

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.

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant