Skip to content

improve(ui): show message reactions as one quiet tab on the bubble corner - #197823

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/crisp-claw-4
Nov 12, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/crisp-claw-4

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Reactions on a chat message sat in a row of bordered chips inside the sender's footer row, where they pushed the sender name aside and grew into several rows on busy messages.

User Impact

User impact: each message now shows its reactions as one small tab on the outer bottom corner of its bubble, so the sender name stays in place and no row is added.

  • One reaction shows only its emoji. More show the three most-used emoji and a total.
  • Hovering or focusing the tab names who reacted. Clicking it lists every reaction above the usual palette, and any of them toggles in place.
  • The hover toolbar keeps its add-reaction button before and after the first reaction.

Things to know:

  • Toggling one specific existing reaction is now two clicks (open the tab, press the reaction) instead of one.
  • Flat assistant text has no bubble edge, so its tab shares the hover footer row under the end of the text. Under a short reply the tab starts up to 240px in, capped at half the message column so narrow panes keep it reachable. A footer wider than that meets the tab on hover; this is an accepted edge case.
  • On touch, names stay hover/focus-only as before; tapping the tab opens the list with counts.

Why This Change Was Made

The bubble now owns the reactions anchor, so one placement replaces three (group footer, earlier-message action row, inline). That removes the picker hand-off between the action row and the chip row, and the compact picker variant that only the chip row used. A caption under images anchors the tab with CSS anchor positioning, so the tab hangs from the caption instead of the wider image box.

Evidence

Screenshots are from the mocked Control UI with one synthetic stress conversation, in Chromium on Linux. "Before" is the merge base with the same fixture.

Before After
Before, desktop: chip rows beside the sender name After, desktop: one tab on each bubble corner
Before, 390px: twelve reactions wrap into six rows After, 390px: one tab with a total

Dark theme, and odd content (image with a caption, image alone, right-to-left text, a long unbroken link):

Dark Odd content
After, dark theme After, images, right-to-left text and a long link

Hovering names who reacted; clicking lists every reaction above the palette:

Hover Click
Hover: who reacted, capped at eight kinds Click: existing reactions above the palette
  • Focused tests, all passing: chat-message-reactions.test.ts, chat-pane-offline-metadata.test.ts, chat-transcript-controller.test.tsx, chat-message-group.solid.test.tsx (78 tests), chat-message-reactions.browser.test.tsx (4, Chromium), and the E2E chat-flow.reactions.e2e.test.ts (4).
  • tsgo:ui, stylelint on both stylesheets, check:control-ui-controllers and ui:i18n:verify pass.
  • Visual QA covered light and dark, 1280px and 390px, bubble mode, RTL, counts from 1 to 1.25M, ZWJ, flag, skin-tone, keycap and text-presentation emoji, image with and without caption, code block, table, long unbroken text, a reply above the composer, hover, keyboard focus, and toggling from the opened tab.
  • Local review: autoreview (--mode branch --base origin/main --max-priority P2, base bbed5e958a8d, local head 42ae895c640e; the published head 73d885b46877 has the same tree) reported no actionable P0–P2 findings. It did not execute the code.
  • Delta against the merge base: production +386/−283, tests +140/−90, and one documentation sentence updated.

Gaps:

  • WebKit and Firefox were not run locally; no cross-browser coverage is claimed for this change.
  • Emoji alignment was measured with Noto Color Emoji only. The half-pixel lift on the tab's emoji is unverified with Apple Color Emoji.
  • No real Gateway was exercised; reactions came from the mock gateway.

Final validation

Read-only sessions can open the summary to inspect every emoji count, while mutation controls remain disabled and the add/search palette stays hidden. Removing write access while the popover is open also disables its existing controls. Flat assistant replies use their message column to size the footer clearance, preserving the tab on narrow and split panes.

  • Extended two existing reaction tests for nine reaction kinds and write-access removal; no new permanent test cases.
  • 78 focused reaction, group, transcript and offline-metadata tests passed. The final reaction file passed all 16 tests in 1.32 seconds.
  • All four existing Chromium browser tests passed in 3.61 seconds. All four original mocked-Gateway reaction E2E cases passed, plus a temporary read-only scenario (five total, 15.64 seconds).
  • Temporary production-build E2E proof also passed at 320px and 390px, and in a 320px message column on a 1280px desktop (three cases, 12.69 seconds). The pre-fix 320px tab extended to 354.23px; the repaired tab stays inside its column.
  • UI typecheck, targeted lint and stylelint, controller guards, English catalog verification and formatting passed. Fresh independent P0–P2 review of the staged candidate reported no actionable findings; it did not execute the code.
  • The rendered proof uses synthetic conversation data and a mocked Gateway. No real Gateway or external channel was exercised. CI run 43309084002 reports +1,183 B raw / +295 B gzip total CSS and +97 B gzip New-session boot JS versus its base. These budget overages are explicitly accepted for this design; they are not classified as inherited failures.
Read-only summary before Read-only counts after
Read-only summary before Read-only counts after

Read-only counts in a 320px pane

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

roboclaw-bot and others added 2 commits November 12, 2026 16:13
…rner

Reactions no longer take a chip row beside the sender name. Each message gets one summary tab hanging off its bubble's outer bottom corner: the most-used emoji, a total past one, names on hover, and the full list plus the palette on click. The toolbar keeps its add-reaction picker before and after the first reaction.

Co-authored-by: vyctorbrzezowski <[email protected]>
…rner

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 6096be3d-1956-40f7-b5cc-1ad38949102b
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Replace reaction chip rows with one compact message-corner tab that opens individual counts and the existing reaction picker.

Example: A message has twelve reaction kinds totaling 406 reactions in a 390px viewport.

  • Before: Reaction chips wrap into six rows beside the sender metadata.
  • After: One tab shows 👀✅👍406, with individual counts available when opened.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent presentation change with inspected browser evidence and resolved prior findings; broad current-head validation is still running.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium Control UI screenshots with synthetic Gateway data demonstrate desktop/mobile chip replacement and the repaired nine-count read-only popover at 320px; this proves the changed presentation without claiming live Gateway behavior, and local WebKit/Firefox coverage remains unclaimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Busy messages accumulate wrapping reaction chips that crowd sender metadata.
Reason: Maintainer authorship supplies direction approval, and the inspected before/after presentation demonstrates useful space savings with explicitly recorded interaction tradeoffs.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored redesign addresses visible reaction clutter, repairs the prior read-only finding, and explicitly accepts the budget tradeoffs; no actionable code defects remain, with current-head CI still pending.

Priority: P2
Reviewed head: 8db6a184a036c2f3641b07981f828290dc6d44b3

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI receives reaction summaries from its existing session state, renders them beside messages, and sends user selections through the existing reaction callback.

flowchart TD
A[Session reaction state] --> B[Message group]
B --> C[Message bubble]
C --> D[Reaction summary tab]
D --> E[Existing reaction picker]
E --> F[Existing reaction callback]
Loading

Technical review

Best possible solution:

Keep the bubble-owned summary and existing picker, preserving read-only details and the accepted presentation tradeoffs.

Do we have a high-confidence way to reproduce the issue?

The base renderer creates one chip per reaction kind, and inspected mobile evidence shows twelve kinds wrapping into six rows; no target code was executed during this review.

Is this the best way to solve the issue?

The change uses the existing bubble and picker owners, removes superseded placements, and preserves reaction callbacks without introducing another state owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 097e6484ae5d.

Provenance checked

  • Reaction visibility and mutation controls keeps the original intent (139d7ab: Shared-session reactions provide lightweight feedback while viewers can inspect reactions without mutation controls.)
  • Toolbar-to-chip picker handoff changes intended behavior with a stated reason (e20f553: Avoid showing two add-reaction buttons after a message receives reactions.)
  • Reaction layout reservation changes intended behavior with a stated reason (04aaba0: Keep reaction arrival from moving message metadata and transcript geometry.)
  • Picker rendering and lazy emoji search keeps the original intent (4f8cf06: Keep quick reactions immediately available while loading the complete emoji catalog only on search intent.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +103, Tests +50, Docs 0. Total +153 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 10 386 283 +103
Tests 4 140 90 +50
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 527 374 +153

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test LOC Production +386/−283; tests +140/−90 Growth implements summary rendering, attribution, picker details, and placement while removing the three previous reaction placements and compact picker variant.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded usability improvement for busy chat messages, without an established urgent workflow failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-12T16:34:26.150Z sha 73d885b :: needs changes before merge. :: [P2] Keep the reaction details accessible without write permission | [P2] Bring the added reaction styles within the CSS growth allowance

Reviewed November 12, 2026, 4:26 PM ET / 21:26 UTC (Revision 2).

Keep the summary operable while disabling mutations, and fit flat-message reaction clearance to the message column.

Co-authored-by: vyctorbrzezowski <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Nov 12, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 12, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 0d602b3 into main Nov 12, 2026
114 of 118 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/crisp-claw-4 branch November 12, 2026 21:32
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
…rner (openclaw#197823)

Display message reactions as one compact tab anchored to the message bubble. Keep the toolbar picker available and let read-only viewers inspect all emoji counts without exposing mutations. Size flat-message clearance to the message column so the tab remains reachable in narrow panes.

Co-authored-by: vyctorbrzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants