The Office (/office): work the Outbox one item at a time, read-only (#306) #313

Closed
matou-build-agent wants to merge 1 commit from agent/issue-306 into main

closes #306

Slice 1 of 5 of the Office (#306): a read-only /office screen to work the Outbox one item at a time.

What this adds

A third route beside the Floor (/) and the Board (/board) in fleet-tui/floor/'s Vue app, reached from the same Floor · Board · Office header toggle — one page, one socket, the banner never reloads. Three panes:

  • Pile — the Outbox grouped by verb in the order merge → unstick → answer (finished work first, chain-unblockers next, long reads last), longest-wait-first within a verb, with the repo facet + find the Floor uses. Per-verb counts.
  • Item — the selected item: verb, repo#n, title, waited / opened ages, overdue when labelled, the ask (the open ask, else the dash fallback) and the evidence (state, host, opened-by, the PR link for a merge).
  • Decide — the per-verb action set rendered disabled (the writes land in #307), with the one live action — the docked #296 Claude thread — and [o] open in tracker.

A keyboard loop works the pile without the mouse: j/k next/prev across verb groups, t the thread, o the tracker, / find, Esc clears / closes, ? the key sheet. The selection lives in the URL (/office?item=<owner>/<repo>#<n>) so a reload keeps your place; an item that left the Outbox falls back to the next with a one-line note.

Design

Pure model, the Floor/Board pattern: web/office.js (buildOffice, built on buildOutbox / outboxVerb now exported from web/floor.js — no second definition of "what is an outbox item") and web/office-filter.js (filter / find / selection + the URL round-trip of the scalar item key). OfficeApp.vue only lays the model out. Read-only: no server route writes; the Floor's posture is unchanged.

Vocabulary: Office added to CONTEXT.md and a section to fleet-tui/README.md. Not vendored (fleet-tui is vendor-excluded).

Acceptance

  1. /office paints from the replay fixture, pile grouped merge → unstick → answer, counts matching the Floor's Outbox — see screenshots + server/office.test.js.
  2. j/k walk the pile across verb groups; the URL tracks the selection; a reload restores it; a gone item falls back with a note — web/src/office.test.js.
  3. t opens the docked thread for an unheld ticket; a slot-held ticket shows the held note — web/src/office.test.js.
  4. Unit tests: buildOffice / office-filter cases (grouping, order, ask fallback, missing → —) in the node suite; component tests in Vitest. node --test server/*.test.js 149/150 (the lone failure, #126 SIGTERM collector-child, is a pre-existing sandbox-environment flake that fails on unmodified files too); vitest run 43/43.
  5. Screenshots below: /office at desktop and phone width, light and dark.

Follow-ups (filed together)

#307 writes + ADR 0008 (posture ruling) · #308 merge from the Office · #309 stacks + possibly-resolved flags · #310 clerk briefs.

closes #306 Slice 1 of 5 of the Office (#306): a **read-only** `/office` screen to work the Outbox one item at a time. ## What this adds A third route beside the Floor (`/`) and the Board (`/board`) in `fleet-tui/floor/`'s Vue app, reached from the same **Floor · Board · Office** header toggle — one page, one socket, the banner never reloads. Three panes: - **Pile** — the Outbox grouped by verb in the order **merge → unstick → answer** (finished work first, chain-unblockers next, long reads last), longest-wait-first within a verb, with the repo facet + find the Floor uses. Per-verb counts. - **Item** — the selected item: verb, `repo#n`, title, waited / opened ages, `overdue` when labelled, the **ask** (the open ask, else the dash fallback) and the **evidence** (state, host, opened-by, the PR link for a merge). - **Decide** — the per-verb action set rendered *disabled* (the writes land in #307), with the one live action — the docked #296 Claude thread — and `[o] open in tracker`. A keyboard loop works the pile without the mouse: `j`/`k` next/prev across verb groups, `t` the thread, `o` the tracker, `/` find, `Esc` clears / closes, `?` the key sheet. The selection lives in the URL (`/office?item=<owner>/<repo>#<n>`) so a reload keeps your place; an item that left the Outbox falls back to the next with a one-line note. ## Design Pure model, the Floor/Board pattern: `web/office.js` (`buildOffice`, built on `buildOutbox` / `outboxVerb` now exported from `web/floor.js` — no second definition of "what is an outbox item") and `web/office-filter.js` (filter / find / selection + the URL round-trip of the scalar `item` key). `OfficeApp.vue` only lays the model out. **Read-only**: no server route writes; the Floor's posture is unchanged. Vocabulary: **Office** added to `CONTEXT.md` and a section to `fleet-tui/README.md`. Not vendored (fleet-tui is vendor-excluded). ## Acceptance 1. `/office` paints from the replay fixture, pile grouped merge → unstick → answer, counts matching the Floor's Outbox — see screenshots + `server/office.test.js`. 2. `j`/`k` walk the pile across verb groups; the URL tracks the selection; a reload restores it; a gone item falls back with a note — `web/src/office.test.js`. 3. `t` opens the docked thread for an unheld ticket; a slot-held ticket shows the held note — `web/src/office.test.js`. 4. Unit tests: `buildOffice` / `office-filter` cases (grouping, order, ask fallback, missing → `—`) in the node suite; component tests in Vitest. `node --test server/*.test.js` 149/150 (the lone failure, #126 SIGTERM collector-child, is a pre-existing sandbox-environment flake that fails on unmodified files too); `vitest run` 43/43. 5. Screenshots below: `/office` at desktop and phone width, light and dark. ## Follow-ups (filed together) #307 writes + ADR 0008 (posture ruling) · #308 merge from the Office · #309 stacks + possibly-resolved flags · #310 clerk briefs.
sandcastle: #306 — the Office (/office), a read-only screen to work the Outbox one item at a time (slice 1/5)
All checks were successful
ci / static (pull_request) Successful in 3m12s
ci / test (pull_request) Successful in 6m28s
25b7c4db75
A third route beside the Floor (/) and the Board (/board) in fleet-tui's Vue
app, reached from the same Floor · Board · Office header toggle — one page,
one socket, the banner never reloads. Three panes: the pile (the Outbox
grouped by verb merge → unstick → answer, longest-wait-first within a verb,
repo facet + find), the item (verb, repo#n, title, waited/opened, overdue,
the ask with a dash fallback, evidence — state/host/opened-by/PR), and the
decide column (the per-verb action set rendered DISABLED — writes land in
#307 — with the one live action, the docked #296 Claude thread). Keyboard
loop: j/k next/prev across verb groups, t thread, o tracker, / find, Esc, ?.
The selection lives in the URL (/office?item=<owner>/<repo>#<n>) so a reload
keeps the place; an item that left the Outbox falls back to the next with a
one-line note. Read-only: no server route writes, the Floor's posture is
unchanged.

Key decisions:
- Pure model split: web/office.js (buildOffice, built on buildOutbox /
  outboxVerb now exported from web/floor.js — no second definition of "what
  is an outbox item") and web/office-filter.js (filter/find/selection + the
  URL round-trip of the scalar item key). OfficeApp.vue only lays the model
  out, the Floor/Board pattern.
- overdue is a labelled ticket; the ask falls back to the dash when asks[]
  has none (the snapshot carries no question text yet); evidence is what the
  snapshot already has (state, run host, pr_url).
- Office added to CONTEXT.md and fleet-tui/README.md.

Files: fleet-tui/floor/web/office.js, office-filter.js, floor.js (export
buildOutbox/outboxVerb); web/src/components/OfficeApp.vue, AppHeader.vue;
web/src/router.js, main.js, styles/office.css; server/server.js (the /office
page route). Tests: server/office.test.js, server/office-filter.test.js,
web/src/office.test.js; server/server.test.js + web/src/app.test.js updated
for the new route/link. Docs: CONTEXT.md, fleet-tui/README.md, STATUS.md
self-consumer row + docs/journal/2026-10-28-306.md.

Suites: node --test server/*.test.js 149/150 (the one failure, #126 SIGTERM
collector-child, is a pre-existing sandbox-environment flake — fails on
unmodified files too); vitest 43/43 green. Not vendored (fleet-tui is
vendor-excluded).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Factory-Account: d631bd58e1e9
Author
Member

📷 Evidence for #306 — taken after the fix unless the name says otherwise.

office-desktop-light.png
office-desktop-light.png

office-desktop-dark.png
office-desktop-dark.png

office-phone-light.png
office-phone-light.png

office-phone-dark.png
office-phone-dark.png

:camera: **Evidence for #306** — taken after the fix unless the name says otherwise. **office-desktop-light.png** ![office-desktop-light.png](https://git.matou.nz/attachments/05fa8362-ec26-4dd1-ab34-c79e361c2fce) **office-desktop-dark.png** ![office-desktop-dark.png](https://git.matou.nz/attachments/d1d47a89-fc20-4d6e-8409-42dba2297b25) **office-phone-light.png** ![office-phone-light.png](https://git.matou.nz/attachments/94c73bab-e0a7-4fa7-9372-c4bc54487034) **office-phone-dark.png** ![office-phone-dark.png](https://git.matou.nz/attachments/78303ebe-6f62-4d3c-bf58-736b9c029d43)
Author
Member
close-report gates passed for #306 — every claim verified; this PR is cleared for merge.
<!-- close-report: gates-passed --> close-report gates passed for #306 — every claim verified; this PR is cleared for merge.
Owner

Landed on main directly as 507c654 on Ben's instruction (2026-11-04), rebased over the 22 commits main gained since this PR opened. The only conflict was the STATUS.md self-consumer row (kept main's text, added a short Office note within the 2048-byte line budget). Floor suites 150/150 + vitest 43/43 + build green on the rebased commit; repo test loop green. Closing this PR unmerged since its branch head (25b7c4d) is the pre-rebase commit; the content is identical apart from that STATUS row.

Landed on `main` directly as **507c654** on Ben's instruction (2026-11-04), rebased over the 22 commits `main` gained since this PR opened. The only conflict was the `STATUS.md` self-consumer row (kept main's text, added a short Office note within the 2048-byte line budget). Floor suites 150/150 + vitest 43/43 + build green on the rebased commit; repo test loop green. Closing this PR unmerged since its branch head (25b7c4d) is the pre-rebase commit; the content is identical apart from that STATUS row.
ben closed this pull request 2026-11-04 18:50:44 +00:00
All checks were successful
ci / static (pull_request) Successful in 3m12s
ci / test (pull_request) Successful in 6m28s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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!313
No description provided.