Text chat 13: fluxer-core reactions #263

Closed
opened 2026-11-12 11:07:39 +00:00 by charles · 0 comments
Owner

Plan: docs/superpowers/plans/2026-11-12-textchat.md, section "Task 13". Spec: docs/superpowers/specs/2026-11-12-fluxer-native-textchat-design.md.

Task 13: fluxer-core reactions

Issue: #TBD

Files:

  • Modify: crates/fluxer-core/src/chat/reactions.rs, crates/fluxer-core/src/messages.rs (apply reaction events to records)
  • Test: crates/fluxer-core/tests/chat_reactions.rs

Interfaces:

  • Produces: spec §6.2 "Reactions"; selectors::reactions(&App, channel, message) -> Vec<ReactionModel { emoji: EmojiRef, count, me, tooltip_names: Vec<String> }>; reactors list state (OpenReactors, pages of 100 as the modal, LoadMoreReactors); selectors::quick_reactions(&App, n) -> Vec<EmojiRef> (frecency then thumbsup, ok_hand, tada, heart); permission checks (ADD_REACTIONS for a new emoji, external emoji rules, 30-emoji cap); 429 retry with Effect::Schedule.

  • Step 1: Write failing tests: toggle_adds_optimistically_and_sends_put, own_echo_not_double_counted (single and ADD_MANY), others_add_many_applies_each, remove_emoji_and_remove_all, failure_reverts, retry_429_backoff_then_revert, new_emoji_needs_add_reactions, existing_emoji_does_not, thirty_emoji_cap, reactors_paging, quick_reactions_defaults_and_frecency, proptest any_interleaving_converges_to_server_counts.

  • Step 2–5: FAIL → implement → PASS → commit feat(core): reactions.

🤖 Generated with Claude Code

Plan: `docs/superpowers/plans/2026-11-12-textchat.md`, section "Task 13". Spec: `docs/superpowers/specs/2026-11-12-fluxer-native-textchat-design.md`. ### Task 13: `fluxer-core` reactions **Issue:** #TBD **Files:** - Modify: `crates/fluxer-core/src/chat/reactions.rs`, `crates/fluxer-core/src/messages.rs` (apply reaction events to records) - Test: `crates/fluxer-core/tests/chat_reactions.rs` **Interfaces:** - Produces: spec §6.2 "Reactions"; `selectors::reactions(&App, channel, message) -> Vec<ReactionModel { emoji: EmojiRef, count, me, tooltip_names: Vec<String> }>`; reactors list state (`OpenReactors`, pages of 100 as the modal, `LoadMoreReactors`); `selectors::quick_reactions(&App, n) -> Vec<EmojiRef>` (frecency then `thumbsup, ok_hand, tada, heart`); permission checks (ADD_REACTIONS for a new emoji, external emoji rules, 30-emoji cap); 429 retry with `Effect::Schedule`. - [ ] **Step 1: Write failing tests**: `toggle_adds_optimistically_and_sends_put`, `own_echo_not_double_counted` (single and `ADD_MANY`), `others_add_many_applies_each`, `remove_emoji_and_remove_all`, `failure_reverts`, `retry_429_backoff_then_revert`, `new_emoji_needs_add_reactions`, `existing_emoji_does_not`, `thirty_emoji_cap`, `reactors_paging`, `quick_reactions_defaults_and_frecency`, proptest `any_interleaving_converges_to_server_counts`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): reactions`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
charles added this to the Text chat milestone 2026-11-12 11:07:39 +00:00
charles referenced this issue from a commit 2026-11-12 16:57:55 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#263
No description provided.