Repository navigation
B3: Composer, Mention, MentionPicker, and the public plate tokens (DECISIONS 265) - #115
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Batch B3 of the CIMIP gaps stream (
cimip-gaps-2, DECISIONS 265).Composer:Textarea, two rows growing to eight, with the app's actions, Send last, and a one-line polite status line under it.sendKey="Mod+Enter", through Send'swaitForAnswer. 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.youadds the level's plate.MentionPicker:aria-activedescendant.execCommand, so undo works.plate-0toplate-3and--basalt-plate, which follows the level. They replace the private--_plate-solid. Swift is regenerated.size-description-labelis the answer.Review
Astra (code): 6/10, with four blocking findings:
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
composer-mentions: 25 of 25;bundle: 98 of 98;server-modules,modules;origin/mainf0ef4d97): build, the React and review typechecks, and lint.export-sizes.jsonis re-recorded. No tests ran on the merged tree.Size
Composeris 51,932 bytes andMentionPicker13,737. The package grew 1.6% minified.🤖 Generated with Claude Code