Files
skills/docs/requirements/031-mic-in-fields.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

3.8 KiB

031 - Mic in Fields

User Story

As the operator, I want the microphone joined into every text field it serves, so that field and mic read as one control instead of a loose button beside or below it.

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

  1. One-line fields: the mic is a segment at the right end inside the field's frame, the field's height, divided from the text by a 1 px line; field and segment share one border and radius. Applies to every one-line field with a mic, among them the Stream search, the command line, rule and group forms and choice "Other" answers.
  2. Textareas: footer strip (operator pick 2026-11-23): the textarea and a slim footer row share one frame, divided by a 1 px line; the mic sits at the footer's right end; the footer's left side holds what belongs to the field (Record in the radio composer, a character count where a limit exists). Rejected: a floating corner button (covers text next to the resize handle); a top-right corner button (collides with the first line); the mic in the label line (no longer joined); a full-height side segment (clunky when tall).
  3. One helper: the shared mic component (page-mic.js) builds both frames for every field it serves, the automatic sweep included; no field places its mic by hand. 025's composer footer and 029's forms use it.
  4. States: the segment and the footer button keep the mic's idle, recording and transcribing looks; the frame's focus ring covers field and mic together.
  5. Timing: implemented after 030, before the one test run of 023 to 031.

Approach

flowchart TD
    subgraph P["🧭 0 · Preparation"]
        P1["📋 Write requirement"] --> P2{"✅ Operator approves?"}
        P2 -- "✏️ corrections" --> P1
    end
    P2 -- "🤖 yes, after 030" --> A1
    subgraph A["🎙️ A · Frames"]
        A1["🧩 Mic helper builds the one-line frame"] --> A2["🧩 Footer strip frame for textareas"]
        A2 --> A3["🔗 Every mic field uses the helper"]
        A3 --> A4["✍️ Unit and E2E tests written"]
    end
    A4 --> C1
    subgraph C["🧪 C · All of 023 to 031"]
        C1["🧪 All tests of 023 to 031 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

One-line fields

  • A DOM scan finds every mic of a one-line field inside the same frame element as its field, as its last child.
  • Per one-line field the mic segment's top and bottom equal the field frame's inner edges (within 1 px), its right edge the frame's inner right edge, and a 1 px divider sits between text and mic.
  • Typed text never runs under the mic segment (text box right edge left of the divider).

Textareas

  • Every textarea with a mic sits in a frame with a footer row below it, divided by a 1 px line; the mic is the footer's last child.
  • The radio composer's footer holds Record on the left and the mic on the right (025).
  • Resizing the textarea by its handle keeps the footer attached and the mic visible.

States

  • Recording shows the recording look on the segment or footer button; focus in the field draws one ring around the whole frame.
  • grep -nE "micButton\(" orchestrator/templates/*.js finds no caller outside page-mic.js that inserts the button itself.

Tests

  • Unit: the helper builds the one-line frame and the footer frame and keeps the button state.
  • Integration: n/a: no server change.
  • E2E: the scans and geometry probes on Stream, Match, radio, agent page, Controls and the command line at 1920, 1366 and 390; screenshots.