Skip to content

fix(ui): count people instead of emoji in reaction badges - #207235

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/tide-prawn-e26d2e
Nov 30, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/tide-prawn-e26d2e

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

When one person reacts to a chat message with two emoji, the reaction badge shows 2. That looks like two people reacted when only one did.

User Impact

The badge shows a number only when at least two people react. Each person counts once across all emoji. Agent reactions still show but do not affect the people count. The per-emoji counts inside the picker are unchanged.

Why This Change Was Made

The badge now counts distinct human reactor IDs from the existing reaction data. The picker, hover details, and Gateway contract are unchanged.

Evidence

  • Four focused Chromium tests passed on the built Control UI with a mocked Gateway, covering multiple emoji from one person, two distinct people, and an agent reaction that does not raise the count.
  • Control UI typecheck, targeted lint, formatting, and diff checks passed. The bound automated local reviewer was unavailable. No live Gateway or hosted CI result is claimed.
  • Before/after screenshots were captured with the same 1280×900 desktop viewport, light theme, and synthetic message and reaction data; before: 0edb7c507f918, after: a9d38c1f37634.

Clean comparison

Before After
Before: two emoji from one person display a count of 2 After: the same two emoji display without a count

Annotated comparison

Before

The badge shows 2 even though only one person reacted

After

Both emoji remain visible; the badge has no count for one person

Requested and co-authored by @vyctorbrzezowski.

Work sessions

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

Worked on by

roboclaw-bot and others added 2 commits November 28, 2026 04:35
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 31c204c3-f5f8-4f86-a6a7-8af3ae7aa49f
@clawsweeper

clawsweeper Bot commented Nov 28, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XS labels Nov 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Reaction badges count distinct people across emoji and exclude agent reactions from that count.

Example: Avery adds 🎉 and 🦞 to the same message.

  • Before: The badge displays 🎉🦞2.
  • After: The badge displays 🎉🦞 without a number.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused implementation and inspectable visual proof, with one source-established renderer-test regression to repair.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the changed badge in the built Control UI at a declared 1280×900 light-theme viewport with synthetic Gateway data; one person’s two emoji remain visible while the count disappears, using the repository’s supported visual-proof path.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: A reaction total can look like the number of people who reacted, overstating participation when someone uses several emoji.
Reason: The earlier design intentionally displayed a reaction total; this maintainer-authored PR supplies the owner decision to show human participation instead.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored PR makes a useful, focused badge change, but leaves an existing renderer assertion incompatible with the new output.

Reviewed head: 2fd8872de774fd478e27e85ee730b0444771ec19

Before merge

  • [P2] Update the existing renderer assertion for the new count (P2) - The renderer suite still supplies { emoji: "👀", count: 2, identities: [{ id: "peer" }] } and expects 👀2 in chat-message-reactions.test.ts:178–181. With this hunk, peopleCount() is one, so the rendered text is 👀 and that existing assertion fails. Update its badge expectation for the approved semantics while retaining the independent 👀 peer and 1 other accessible-label check, then run the affected renderer suite alongside the changed browser scenario.

Findings

  • [P2] [P2] Update the existing renderer assertion for the new count — ui/src/pages/chat/components/chat-message-reaction-chips-view.tsx:91-92
Agent review details

How this fits together

The Control UI receives per-emoji reaction summaries from the Gateway and renders a compact badge, hover details, and a reaction picker.

flowchart LR
  A[Gateway reaction store] --> B[Reaction summaries]
  B --> C[Chat reaction state]
  C --> D[Message reaction component]
  D --> E[Distinct human count]
  E --> F[Compact badge]
  D --> G[Hover details and picker]
Loading

Technical review

Best possible solution:

Keep the existing component’s distinct-person derivation and update the affected renderer expectation without weakening its hover-detail coverage.

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

Current main’s sum of per-emoji counts establishes the reported case directly, and the supplied before screenshot shows it; no target code was executed during this review.

Is this the best way to solve the issue?

The existing presentation owner can derive the requested count from complete identity summaries without changing the Gateway contract, storage, or picker counts.

Full review comments:

  • [P2] [P2] Update the existing renderer assertion for the new count — ui/src/pages/chat/components/chat-message-reaction-chips-view.tsx:91-92
    The renderer suite still supplies { emoji: "👀", count: 2, identities: [{ id: "peer" }] } and expects 👀2 in chat-message-reactions.test.ts:178–181. With this hunk, peopleCount() is one, so the rendered text is 👀 and that existing assertion fails. Update its badge expectation for the approved semantics while retaining the independent 👀 peer and 1 other accessible-label check, then run the affected renderer suite alongside the changed browser scenario.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/pages/chat/components/chat-message-reactions.test.ts --maxWorkers=1
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-flow.reactions.e2e.test.ts
  • git diff --check

What I checked:

Likely related people:

  • RoboClaw: Raw commit 0d602b3 adds ui/src/pages/chat/components/chat-message-reaction-chips-view.tsx:56 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0d602b36cb3f; files: ui/src/pages/chat/components/chat-message-reaction-chips-view.tsx)

PR surface

Source +11, Tests +9, Docs 0. Total +20 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 15 4 +11
Tests 1 14 5 +9
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 30 10 +20

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.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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.

Reviewed November 27, 2026, 11:51 PM ET / November 28, 2026, 04:51 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 30, 2026 07:18
@vyctorbrzezowski
vyctorbrzezowski merged commit 64940b9 into main Nov 30, 2026
97 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/tide-prawn-e26d2e branch November 30, 2026 07:18
vincentkoc added a commit that referenced this pull request Nov 30, 2026
…ogic

* commit 'f7ccd914102ab408606c45c0aa3adbd8427051eb': (1290 commits)
  refactor(ios): remove unreachable settings and automation controls (#208958)
  fix: verify deferred activation in package recovery acceptance (#208901)
  improve(ci): avoid unused adaptive scoring work (#208926)
  chore(ui): refresh control ui locales (#208959)
  test(agents): verify user recall and file state across OpenAI compactions (#208909)
  fix(ui): update the sidebar on startup and recovery screens (#207967)
  fix(whatsapp): quote the first queued swipe-reply answer (#208791)
  test(memory-wiki): generate metadata replacement transitions (#208932)
  fix(ui): hide Claude injected context from chat (#207234)
  fix(ui): count people instead of emoji in reaction badges (#207235)
  fix: keep Daybreak when another provider's model list fails (#208883)
  test(telegram): check the registered preload at polling worker startup (#208936)
  fix(qa): test Slack verbosity with one direct shell call (#208023)
  fix(qa): wait for Telegram messages before checking their formatting (#208024)
  feat(ios): show build details at the bottom of Settings (#208944)
  chore(ui): refresh control ui locales (#208937)
  fix: goals stop after native child-result handoffs (#193024)
  fix(ui): show current tool actions in collapsed chat activity (#208925)
  improve(ios): put About last in Settings (#208928)
  test(memory-wiki): generate human-note preservation regressions (#208921)
  ...
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 impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants