Files
skills/docs/requirements/023-box-heads.md
T
Kevin Veen-BirkenbachandClaude Opus 5.5 2722cda1b5 feat(hub): requirements 023 to 031 and line comments on grant-time code
023 box heads: one head band per box under its top border; in widget mode
its controls join the widget title band.
024 Match card content: merge cards show their diff (the runner previews a
review's tree against its worktree HEAD), every card carries legal and
architecture scores, the null under command cards is gone.
025 Radio speak card: no hint text, a rounder flowing card, a MAYDAY toggle
beside push to talk.
026 widget zoom: zoom a widget's content by keyboard and the context menu.
027 slash skill suggestions: every field that messages agents suggests
skills after a slash, from a skills index the tree timer writes.
028 Resources accounts: an Accounts panel (provider, renewal, resets, usage
and remaining, host-local, emails never in git) and panel checkboxes.
029 Controls layout: Rules and Groups pages laid out.
030 Yes/No answers as buttons, and nothing hides: rows the runner cannot
run stay greyed with the reason.
031 mic in fields.
Line comments (operator 2026-11-24): wherever code waits for a grant
(Waits on Operator, the stream, the review overlay) selected lines or a
right-clicked row take a comment that marks its lines and collects on the
card; Deny opens with them as the reason and Call preselected, Grant sends
them after the signed grant as one post. Requirement 003 decision 4 and
its contract follow.

Tests are written for every requirement and run once on this head.

🎯 Fix: 80 %
💥 Break: 20 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: ~95 %
🏆 Score: 61
🚦 Gate: ⛔ fix 80 % < 90, break 20 % > 5; security ~95 % < 100: ask the operator before the commit

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 01:22:03 +00:00

87 lines
3.4 KiB
Markdown

# 023 - Box Heads
## User Story
As the operator, I want every view's controls in one head band right under
its box's top border, the way Home widget title bars sit today, so that
controls never float as a separate card and a widget shows one head.
## Decisions (operator-confirmed 2026-11-23; do not re-litigate)
1. **Head band**: every view whose controls sit in a `.card.controls` box
today (Match, Tasks, Resources, Agents, Artifacts, Kanban, Controls)
gets a `.box-head` band instead: first child of the view's box, flush
with its top and side borders, one line below it, height, padding and
button size of `.home-head`. Rejected: title and controls on one line
without a band (operator: a separate section like the widgets); a sticky
bar inside the box (two bars in widget mode).
2. **Widget mode**: on a Home tile the band's controls move into the tile's
`.home-head`, as Match does today, so a tile has one head; a control
that does not fit stays reachable through the tile's context menu.
3. **Card top edge**: the Match card's gradient bar and head pattern reach
the card's top edge and both rounded corners, with no plain strip.
4. **One helper**: one function builds the band for every view (SPOT).
5. **Timing**: 023 to 031 are implemented serially in number order; tests
are written per requirement and run once after 031 (operator
2026-11-23).
## Approach
```mermaid
flowchart TD
subgraph P["🧭 0 · Preparation"]
P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
P2 -- "✏️ corrections" --> P1
end
P2 -- "🤖 yes" --> A1
subgraph A["🧱 A · Band"]
A1["🧩 Band helper"] --> A2["🪟 Every view uses it"]
A2 --> A3["✍️ Unit and E2E tests written"]
end
A3 --> B1
subgraph B["🏠 B · Widgets and card edge"]
B1["🧩 Tile heads take the controls"] --> B2["🎨 Card top edge flush"]
B2 --> B3["✍️ Tests written"]
end
B3 --> C1
subgraph C["🧪 C · After 030"]
C1["🧪 All tests of 023 to 030 once"] --> C2{"🟢 Green?"}
C2 -- "🔴 no: fix" --> C1
C2 -- "🟢 yes" --> CF{"💬 Operator feedback on screenshots?"}
CF -- "✏️ changes" --> A1
end
CF -- "👍 fits" --> D1["🏁 Review, commit with operator OK, hand-over"]
```
## Acceptance Criteria
### Band
- [ ] A DOM scan of Match, Tasks, Resources, Agents, Artifacts, Kanban and
Controls finds one `.box-head` per view as the first child of its box
and no `.card.controls`.
- [ ] Per view the band's top, left and right edges equal the box's inner
edges (0 px apart) at 1920, 1366 and 390.
- [ ] At 1920 a one-row band's height and its button size equal
`.home-head`'s within 1 px; at narrower widths the band wraps into
rows of that height.
### Widget mode
- [ ] Each of these views pinned to Home has no `.box-head` inside
`.home-body`; its controls sit in `.home-head` or its context menu.
### Card edge
- [ ] A computed-style probe of the front Match card finds, for all five
patterns, a 0 px top border, the 6 px bar as the card's own first
background layer, the head flush with the card top and the hatch
mask starting at 6 px.
### Tests
- [ ] Unit: the band helper renders title, count and controls in order.
- [ ] Integration: n/a: client layout only, no server change.
- [ ] E2E: Chromium and Firefox at 1920, 1366 and 390: the scans and the
probe; screenshots per view and tile.