Voice 6: fluxer-core::voice voice-state store and selectors #67

Closed
opened 2026-11-11 12:17:33 +00:00 by charles · 0 comments
Owner

Files:

  • Create: crates/fluxer-core/src/voice/{mod.rs,states.rs}, crates/fluxer-core/src/selectors/voice.rs
  • Modify: crates/fluxer-core/src/{app.rs,lib.rs}, guild/ready reducers to ingest voice_states
  • Test: crates/fluxer-core/tests/voice_states.rs

Interfaces:

  • Produces: App.voice: Voice (spec §5.1; fields added by later tasks start as Default); VoiceStates::{apply(&VoiceState), in_channel(channel_id) -> impl Iterator<Item=&VoiceState>, of_user(user_id), by_connection(&str), remove_guild}; selectors voice_channel_participants(&App, channel_id) -> Vec<VoiceParticipantRow { user_id, connection_id, display_name, avatar, self_mute, self_deaf, server_mute, server_deaf, suppress, video, stream, is_mobile, speaking, devices: u8 }> (sorted as the original's sidebar; devices of one user grouped) and voice_channel_user_count.

  • Step 1: Write failing tests: ready_seeds_states, update_moves_user_between_channels, channel_null_removes_connection, two_devices_of_one_user_group, unknown_user_or_channel_does_not_panic_or_appear_elsewhere, guild_delete_drops_states, proptest any_sequence_of_updates_keeps_indexes_consistent.

  • Step 2–5: FAIL → implement → PASS → commit feat(core): voice states and sidebar selectors.

Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-voice.md
Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-voice-design.md

**Files:** - Create: `crates/fluxer-core/src/voice/{mod.rs,states.rs}`, `crates/fluxer-core/src/selectors/voice.rs` - Modify: `crates/fluxer-core/src/{app.rs,lib.rs}`, guild/ready reducers to ingest `voice_states` - Test: `crates/fluxer-core/tests/voice_states.rs` **Interfaces:** - Produces: `App.voice: Voice` (spec §5.1; fields added by later tasks start as `Default`); `VoiceStates::{apply(&VoiceState), in_channel(channel_id) -> impl Iterator<Item=&VoiceState>, of_user(user_id), by_connection(&str), remove_guild}`; selectors `voice_channel_participants(&App, channel_id) -> Vec<VoiceParticipantRow { user_id, connection_id, display_name, avatar, self_mute, self_deaf, server_mute, server_deaf, suppress, video, stream, is_mobile, speaking, devices: u8 }>` (sorted as the original's sidebar; devices of one user grouped) and `voice_channel_user_count`. - [ ] **Step 1: Write failing tests**: `ready_seeds_states`, `update_moves_user_between_channels`, `channel_null_removes_connection`, `two_devices_of_one_user_group`, `unknown_user_or_channel_does_not_panic_or_appear_elsewhere`, `guild_delete_drops_states`, proptest `any_sequence_of_updates_keeps_indexes_consistent`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): voice states and sidebar selectors`. Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-voice.md Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-voice-design.md
charles added this to the Voice milestone 2026-11-11 12:17:33 +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#67
No description provided.