Repository navigation
Conversation
A React button comes first in a message's action bar and opens a menu of the six reactions (the composer's PopupMenu, ocs__menu). setReactions draws a message's chips after what it shows and before the action bar; picking your own reaction, or clicking your chip, takes it back. While a change is saving, that message's reaction controls wait. A message without an id, a deleted one and a pin note take none, and deleting a message or clearing the log closes its menu. The new words are in the UI Builder's text.chat.
Once a conversation's history is drawn, the thread asks Spring for its reactions and draws each message's chips, and asks again after the socket reconnects, so reactions left or taken back while offline show. A reactions frame redraws one message's chips, and a message a frame or your own change redrew since the load began keeps that newer state. Picking a reaction sends PUT, picking yours again sends DELETE, and a failure says "Could not save your reaction. Try again." A read-only pane, or a host whose API has no reaction calls, asks for none.
… the log's foot As a column of six named items it was taller than a phone's log has room for beside a message, so its first items were cut off. Now it is one row of the six emoji, with each name kept as its button's name but not drawn. Where there still isn't room under the action bar, it opens above.
The Messages README gets a Reactions section, the reaction routes and frames under Endpoints, and reactions.js in its file list. AGENTS.md and AGENTS_MD_DOCUMENTATION.md get the same Messages bullet: how reactions look and load, that Spring keeps them (Open-Coding-Society/spring#302), and that the reaction keys change together with Spring's Reaction enum.
…and Open-Coding-Society#2078 change The calls page (Open-Coding-Society#2070) adds its frame case after the error case, and the push-note PR (Open-Coding-Society#2078) edits the Shared panel bullet in both AGENTS files. The reactions frame case now follows the delete case, and the reactions bullet follows the GitHub cards bullet, so this merges cleanly with either in any order.
The rows' fade kept itself in effect after it ended (fill mode both), which made each row its own layer, and the action bar is its own layer while it fades in. Either way the next message covered the open menu and took its clicks, even on that message's Delete. The fade now fills only backwards, and a row with focus in it (an open menu always has it) sits above the rows after it. The menu's emoji stand upright in Chrome, and your own reactions wear the grammar's hover tint.
A chip that had focus keeps it when its row is redrawn, and after a reaction saves, focus that fell off the page goes back to that chip or the React button. A click elsewhere closes a menu without taking focus back to its button, which also scrolled the log up to it. The reaction menu is a horizontal menu (Left and Right step through it) and marks yours as checked items, and the chip row is left out of the log's live announcements.
One set of messages changed since a load began was shared by every load, so a catch-up for a chat you had left reset it and the open chat's older answer could undo a newer frame. Each change now counts, and a load or your own PUT's answer that started before a message's last change leaves that message as it is; a load for a chat that's no longer open asks for nothing. Read-only panes ignore reaction frames, and a saved reaction clears only its own failure notice.
This was referenced Nov 26, 2026
Contributor
Author
|
Combined into #2091 with the same commits. |
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.
You can react to a message in a DM or a group chat with one of six emoji. Spring keeps the reactions, so this needs Open-Coding-Society/spring#302 deployed first.
ocs__menuand the chips areocs__btn small pill, with yoursaccent fill. I added a few.dmstyles (the Messages page's own Sass) to lay the menu out as one row, open it above the action bar when it wouldn't fit below and there's more room above, and space the chips.ui_builder.ymllists the new chat words because a test requires it to name every word the chat embed uses.Other notes:
git merge-treethat this merges with Calls: a page for group and DM video calls, and a Call link in Messages #2070 (the calls page) and Messages: the AGENTS docs say pushes keep raw markers until spring#293 #2078 (the push note) with no conflicts, alone or together._projects/systems/messages/tests/thread.test.mjs, where both PRs add tests at the end of the file. Keeping both blocks fixes it, and then all 718 tests pass. Whichever PR merges second does that.Picking a reaction on a laptop:
A DM with two reactions, yours filled:
The row of emoji on a phone:
Chips in the Midnight theme on a phone:
How to try it:
/dm, open a group chat, hover a message and press the smiley. Pick 🎉.node --test _projects/systems/messages/tests/*.test.mjs tests/chat_reply.test.mjs tests/ui_builder.test.mjs.