Text chat 16: fluxer-core navigation, read markers and media playback #266

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

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

Task 16: fluxer-core navigation, read markers and media playback

Issue: #TBD

Files:

  • Modify: crates/fluxer-core/src/chat/{navigation.rs,media.rs}, crates/fluxer-core/src/{messages.rs,read_state.rs}
  • Test: crates/fluxer-core/tests/{chat_navigation.rs,chat_media.rs}

Interfaces:

  • Produces: spec §6.2 "Navigation and read" (#60); selectors::timeline gains new_messages_marker and highlighted rows; selectors::new_messages_bar(&App, channel) -> Option<NewMessagesBar { count, since }>; selectors::jump_to_present(&App, channel) -> bool; messages.rs loads around a target (FetchMessages { around }) and keeps ≤200 per channel (truncate to 100 away from the view); media playback: PlayAttachment emits Effect::Audio(AudioCommand::PlayClip { source: PlaybackSource::Attachment(url), .. }) (fetched by the runtime), one at a time, selectors::media_playback(&App) -> Option<PlaybackModel { message_id, attachment_id, position_ms, playing }>; OpenMedia/CloseMedia lightbox state (index within the message's media).

  • Step 1: Write failing tests: ack_only_when_bottom_visible_and_focused, no_ack_for_unselected_channel, marker_set_from_read_state_on_open, mark_unread_moves_marker, jump_loads_around_and_highlights_2000ms, jump_to_present_reloads_newest, history_capped_at_200_trim_to_100, new_messages_bar_count, play_attachment_one_at_a_time, lightbox_index_navigation.

  • Step 2–5: FAIL → implement → PASS → commit feat(core): navigation, read markers and media playback.

🤖 Generated with Claude Code

Plan: `docs/superpowers/plans/2026-11-12-textchat.md`, section "Task 16". Spec: `docs/superpowers/specs/2026-11-12-fluxer-native-textchat-design.md`. ### Task 16: `fluxer-core` navigation, read markers and media playback **Issue:** #TBD **Files:** - Modify: `crates/fluxer-core/src/chat/{navigation.rs,media.rs}`, `crates/fluxer-core/src/{messages.rs,read_state.rs}` - Test: `crates/fluxer-core/tests/{chat_navigation.rs,chat_media.rs}` **Interfaces:** - Produces: spec §6.2 "Navigation and read" (#60); `selectors::timeline` gains `new_messages_marker` and `highlighted` rows; `selectors::new_messages_bar(&App, channel) -> Option<NewMessagesBar { count, since }>`; `selectors::jump_to_present(&App, channel) -> bool`; `messages.rs` loads around a target (`FetchMessages { around }`) and keeps ≤200 per channel (truncate to 100 away from the view); media playback: `PlayAttachment` emits `Effect::Audio(AudioCommand::PlayClip { source: PlaybackSource::Attachment(url), .. })` (fetched by the runtime), one at a time, `selectors::media_playback(&App) -> Option<PlaybackModel { message_id, attachment_id, position_ms, playing }>`; `OpenMedia`/`CloseMedia` lightbox state (index within the message's media). - [ ] **Step 1: Write failing tests**: `ack_only_when_bottom_visible_and_focused`, `no_ack_for_unselected_channel`, `marker_set_from_read_state_on_open`, `mark_unread_moves_marker`, `jump_loads_around_and_highlights_2000ms`, `jump_to_present_reloads_newest`, `history_capped_at_200_trim_to_100`, `new_messages_bar_count`, `play_attachment_one_at_a_time`, `lightbox_index_navigation`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): navigation, read markers and media playback`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
charles added this to the Text chat milestone 2026-11-12 11:07:40 +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#266
No description provided.