Skip to content

B3: Composer, Mention, MentionPicker, and the public plate tokens (DECISIONS 265) - #115

Merged
bmjcoding merged 3 commits into
mainfrom
claude/gaps-b3-composer
Nov 22, 2026
Merged

bmjcoding merged 3 commits into
mainfrom
claude/gaps-b3-composer

Conversation

@bmjcoding

Copy link
Copy Markdown
Owner

What

Batch B3 of the CIMIP gaps stream (cimip-gaps-2, DECISIONS 265).

  • Composer:
    • Basalt's Textarea, two rows growing to eight, with the app's actions, Send last, and a one-line polite status line under it.
    • Enter sends, or sendKey="Mod+Enter", through Send's waitForAnswer. An input method's Enter never sends.
    • mentions={(field) => <MentionPicker field={field} … />}: the app imports the picker, so a plain composer doesn't carry it.
  • typingStatus(names): the who-is-typing line.
  • Mention: "@" plus the name at 500 in primary ink. you adds the level's plate.
  • MentionPicker:
    • Combobox's rows and plate. Focus stays in the field, with aria-activedescendant.
    • A pick goes in through execCommand, so undo works.
    • It re-reads the live field before a pick, opens nothing on a read-only field, and is placed against the visual viewport (above the software keyboard).
    • It restores the caller's ARIA when it closes.
  • Tokens: plate-0 to plate-3 and --basalt-plate, which follows the level. They replace the private --_plate-solid. Swift is regenerated.
  • No 160 space step: size-description-label is the answer.

Review

  • Astra (code): 6/10, with four blocking findings:

    • a stale query overwrote a controlled draft;
    • an input method's Enter picked a row;
    • a read-only field could be written;
    • the picker could open behind the phone keyboard.

    All four and the three polish findings are fixed in d9815ca7. The lead checked them.

  • Pixels: the lead checked the picker and mention shots.

  • No council round (DECISIONS 226).

  • Review round: renumbered from 56 to 57 at merge, because B0 took 56.

Checks

  • Before the owner paused tests (DECISIONS 271):
    • composer-mentions: 25 of 25;
    • bundle: 98 of 98;
    • server-modules, modules;
    • token tests: 232 of 232.
  • On the merged tree (origin/main f0ef4d97): build, the React and review typechecks, and lint. export-sizes.json is re-recorded. No tests ran on the merged tree.
  • Not checked:
    • Swift was not built.
    • The HTML skill's core grew from 33.7 to 34.1 KB because the plate tokens reach the core CSS. Its cap test did not run.

Size

Composer is 51,932 bytes and MentionPicker 13,737. The package grew 1.6% minified.

🤖 Generated with Claude Code

bmjcoding and others added 3 commits November 22, 2026 16:40
A message field with no visible label, the app's actions and Send under it, and a status line
that keeps its height (typingStatus); Enter or Mod+Enter press Send, so the button's own wait
guards a key and a press alike; the field grows from rows to maxRows, then scrolls. A mention is
the trigger and the name at 500 in primary ink; one that calls on the reader sits on the plate.
The picker reuses Combobox's popup rows, group labels and glide with focus left in the field
(aria-activedescendant). The lit row's plate is public: tokens plate-0 to plate-3 (both themes,
Swift) and --basalt-plate, which follows data-level and replaces the private --_plate-solid with
the same pixels. No space step above space-32: the 160 asked for is size-description-label.
Decided and built by Opus on the no-council path (DECISIONS 226, 265); not yet reviewed.
Review round 56.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A stale query never writes: the picker re-reads the live field before a key or a pick, on every render
  and on selectionchange, and closes without writing when the mention it showed is gone (an Enter meant
  for its rows is still its own, so it neither writes nor sends).
- An input method's Enter (isComposing or keyCode 229) is ignored by the picker as by the composer, one
  shared helper (isComposingKey in keyboard.ts).
- A read-only or disabled field: the picker does not open there and checks again as it writes.
- Placement uses the visual viewport (offsetTop, offsetLeft, height, width) where there is one, and follows
  its scroll as well as its resize, so a phone's keyboard counts (WebKit keeps innerHeight whole).
- The typing line is one line: nowrap and an ellipsis; the live region keeps the whole text.
- The field's own aria-controls, aria-activedescendant, aria-autocomplete and aria-haspopup are kept and
  put back on close and on release.
- Composer's mentions is a render function, (field) => <MentionPicker field={field} … />, so a composer
  without names never carries the picker: Composer 64,670 -> 51,932 bytes. Two keys in one task each move
  the plate once. Round 56's picker states wait for the picker to take the field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	packages/react/test/export-sizes.json
#	tools/review/round56.tsx
@bmjcoding
bmjcoding merged commit fbbd795 into main Nov 22, 2026
1 of 2 checks passed
@bmjcoding
bmjcoding deleted the claude/gaps-b3-composer branch November 22, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant