factory-floor: pixel-art rooms, break room, queue room, click-through detail panels #152

Merged
cherese merged 1 commit from factory-floor-visual-rework into main 2026-09-16 22:46:52 +00:00
Owner

Reworks the browser factory floor (fleet-tui/floor/) from a text-box layout into a top-down pixel-art scene.

Summary

  • FLOOR: one desk per host, one computer per heavy slot on that desk (doc.hosts is one row per host+slot pair, grouped client-side), a seated worker sprite when a slot is busy, an empty chair when it's free.
  • BREAK ROOM: session-runner agents not currently holding a slot — free and waiting for their next ~30 min tick. New collector field session_runners, cross-referenced against the same slot-holder truth the desks read so an agent is never drawn in two places at once.
  • QUEUE: one storage rack per repo, one folder per ticket actually waiting on an agent (ready-for-agent + ready-for-session — awaiting-merge and ready-for-human wait on a person, a different room's story). New collector field queue, individual ticket rows the collector already computed internally but previously discarded after aggregating into repos. Folders render as thin strips stored on edge, matching a real desk-tray file organizer viewed from above.
  • Click any computer, agent, or queue folder for a slide-over detail panel; hover shows just its name. Detail panels for anything with a repo+issue link straight to the ticket's Forgejo page (tracker_web, derived from fleet.conf's existing api directive — no new config).
  • Custom hover-tooltip implementation replaces the native SVG <title> element, which turned out unreliable for dynamically-created SVG nodes.

collector.py's SNAPSHOT_VERSION bumped 1 -> 4 across four shape changes this session; floor/server/protocol.js's EXPECTED_SNAPSHOT_VERSION and the test fixture kept in lockstep each time.

Test plan

  • fleet-tui/.venv/bin/python -m pytest tests/test_collector.py — 11 passed
  • node --test server/*.test.js (in fleet-tui/floor/) — 6 passed
  • Manually verified in browser against live hosts: desks/computers/agents render and click through correctly, break room shows idle agents, queue room shows real tracker tickets grouped by repo, issue links resolve to real Forgejo issue pages

🤖 Generated with Claude Code

Reworks the browser factory floor (`fleet-tui/floor/`) from a text-box layout into a top-down pixel-art scene. ## Summary - **FLOOR**: one desk per host, one computer per heavy slot on that desk (`doc.hosts` is one row per host+slot pair, grouped client-side), a seated worker sprite when a slot is busy, an empty chair when it's free. - **BREAK ROOM**: session-runner agents not currently holding a slot — free and waiting for their next ~30 min tick. New collector field `session_runners`, cross-referenced against the same slot-holder truth the desks read so an agent is never drawn in two places at once. - **QUEUE**: one storage rack per repo, one folder per ticket actually waiting on an agent (`ready-for-agent` + `ready-for-session` — `awaiting-merge` and `ready-for-human` wait on a person, a different room's story). New collector field `queue`, individual ticket rows the collector already computed internally but previously discarded after aggregating into `repos`. Folders render as thin strips stored on edge, matching a real desk-tray file organizer viewed from above. - Click any computer, agent, or queue folder for a slide-over detail panel; hover shows just its name. Detail panels for anything with a repo+issue link straight to the ticket's Forgejo page (`tracker_web`, derived from `fleet.conf`'s existing `api` directive — no new config). - Custom hover-tooltip implementation replaces the native SVG `<title>` element, which turned out unreliable for dynamically-created SVG nodes. `collector.py`'s `SNAPSHOT_VERSION` bumped 1 -> 4 across four shape changes this session; `floor/server/protocol.js`'s `EXPECTED_SNAPSHOT_VERSION` and the test fixture kept in lockstep each time. ## Test plan - [x] `fleet-tui/.venv/bin/python -m pytest tests/test_collector.py` — 11 passed - [x] `node --test server/*.test.js` (in `fleet-tui/floor/`) — 6 passed - [x] Manually verified in browser against live hosts: desks/computers/agents render and click through correctly, break room shows idle agents, queue room shows real tracker tickets grouped by repo, issue links resolve to real Forgejo issue pages 🤖 Generated with [Claude Code](https://claude.com/claude-code)
factory-floor: pixel-art rooms, break room, queue room, click-through detail panels
Some checks failed
ci / test (pull_request) Failing after 8m59s
ac4943e082
Reworks the browser factory floor (fleet-tui/floor/) from a text-box layout
into a top-down pixel-art scene:

- FLOOR: one desk per host, one computer per heavy slot on that desk
  (doc.hosts is one row per host+slot pair, grouped here), a seated worker
  sprite when a slot is busy, an empty chair when it's free.
- BREAK ROOM: session-runner agents not currently holding a slot — free and
  waiting for their next ~30 min tick. New collector.py field
  (`session_runners`), cross-referenced against the same slot-holder truth
  the desks read so an agent is never drawn in two places at once.
- QUEUE: one storage rack per repo, one folder per ticket actually waiting
  on an agent (ready-for-agent + ready-for-session — awaiting-merge and
  ready-for-human wait on a person, a different room's story). New
  collector.py field (`queue`), individual ticket rows the collector
  computed but previously discarded after aggregating into `repos`.
  Folders render as thin strips stored on edge, matching a real desk-tray
  file organizer viewed from above.
- Click any computer, agent, or queue folder for a slide-over detail panel;
  hover shows just its name. Detail panels for anything with a repo+issue
  link straight to the ticket's Forgejo page (`tracker_web`, derived from
  fleet.conf's existing `api` directive — no new config).
- Custom hover-tooltip implementation replaces the native SVG <title>
  element, which turned out unreliable for dynamically-created SVG nodes.

collector.py's SNAPSHOT_VERSION bumped 1 -> 4 across the session's four
shape changes; floor/server/protocol.js's EXPECTED_SNAPSHOT_VERSION and the
test fixture kept in lockstep each time.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory!152
No description provided.