Files
skills/docs/requirements/026-widget-zoom.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

2.7 KiB

026 - Widget Zoom

User Story

As the operator, I want to zoom a widget's content in and out, so that a small tile shows more and a large one stays readable.

Decisions (operator-confirmed 2026-11-23; do not re-litigate)

  1. Per tile: each Home pin keeps a zoom of 50 to 200 % in 10 % steps, default 100 %, in the hub view store (like 017's legend state); it scales the tile body, never the head. Rejected: browser zoom (whole page); tile size (the resize handle exists).
  2. Keys: with a tile focused outside a text field, + zooms in, - out, 0 resets; Ctrl+wheel over the body zooms; ? lists them. Rejected: Ctrl+plus (browser zoom).
  3. Right-click: the tile's context menu gets Zoom in, Zoom out and Reset zoom with the current percent.
  4. Redraw: charts redraw at the zoomed size; above 100 % the body scrolls.
  5. Timing: 023 decision 5.

Approach

flowchart TD
    subgraph P["🧭 0 · Preparation"]
        P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
        P2 -- "✏️ corrections" --> P1
    end
    P2 -- "🤖 yes, after 025" --> A1
    subgraph A["🗄️ A · State"]
        A1["🧮 View store key for the tile zoom"] --> A2["✍️ Unit and integration tests written"]
    end
    A2 --> B1
    subgraph B["🔍 B · Zoom"]
        B1["⌨️ Keys and Ctrl+wheel"] --> B2["🖱️ Context menu entries"]
        B2 --> B3["📈 Charts redraw at the zoomed size"]
        B3 --> B4["✍️ E2E tests written"]
    end
    B4 --> 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

  • Three + on a focused tile set its body zoom to 130 %; the head keeps its size.
  • 0 resets to 100 %; - stops at 50 %, + at 200 %.
  • Ctrl+wheel up zooms in one step per notch; the plain wheel scrolls.
  • The context menu lists Zoom in, Zoom out and "Reset zoom (130 %)", each acting as its key.
  • The zoom survives a reload and shows in a second browser; the view store refuses values outside 50 to 200 or off the 10 % grid with 400.
  • A zoomed chart's SVG width equals the body width divided by the zoom.
  • The ? help lists the zoom keys.

Tests

  • Unit: view store validation of the zoom key; key handling.
  • Integration: the zoom persists across a hub restart.
  • E2E: keys, wheel, menu and persistence at 1920, 1366 and 390; screenshots.