Soundboard 60: Entrance sound section in Settings → Voice & video; "Entrance sound" participant submenu #389

Closed
opened 2026-11-13 01:40:53 +00:00 by charles · 0 comments
Owner

Plan: docs/superpowers/plans/2026-11-12-textchat.md, section "Task 60" (Soundboard and entrance sounds, added 2026-11-12, high priority per Charles).

Task 60: Entrance sound section in Settings → Voice & video; "Entrance sound" participant submenu

Issue: (to be created)
Closes: none by itself: it finishes #142's entrance-sound items; the PR says so on #142, which stays open for its other items (or is closed by Charles if he moves those to sub-project 7).

Files:

  • Create: crates/fluxer-ui/src/screens/settings/voice_video/entrance.rs
  • Modify: crates/fluxer-ui/src/screens/settings/voice_video/{soundboard.rs,mod.rs} (remove ENTRANCE_PENDING and entrance_view), crates/fluxer-ui/src/screens/settings/mod.rs (outcomes for the file dialog, read, trimmer), crates/fluxer-ui/src/screens/main/participant_menu.rs (drop "entrance sound submenu" from the left-out list in the module doc), crates/fluxer-ui/src/widgets/context_menu.rs only if a slider cannot sit in a submenu yet, crates/fluxer-ui/README.md
  • Test: crates/fluxer-ui/tests/settings_voice.rs, crates/fluxer-ui/tests/participant_menu.rs, crates/fluxer-ui/tests/screenshots.rs

Interfaces:

  • Consumes: Task 57 (entrance_settings, EntranceSettingsModel, the entrance UserActions, entrance_listeners), Task 59 (trimmer with trimmer::ENTRANCE, SoundFileReader::{outline, trim}, confirm).

  • Produces (settings, EntranceSoundSection.tsx, every string from that file and useEntranceSound.ts): opening the page sends LoadEntranceSounds; "Applies to" with the scope hint, the tiles ("All communities and DMs", "All communities", "Direct messages", the current guild with its icon) and "Community overrides" (compact tiles of the other guilds); "Sound for this scope" dropdown ("None" + library names with their durations) → SetEntranceSound; the resolved-sound card (preview button, name, duration, badge "Set here" / "Inherited", "Inherited from {label}") or "No entrance sound set here"; "Upload new" (dialog → read ≤ 20 MiB → trimmer ENTRANCE → UploadEntranceSound { select_for: scope }), disabled with "Library full ({max} sounds max). Delete one before adding another." when full; "Library: {count} of {max}"; library rows with preview (PreviewEntranceSound), name, duration and " · Active here", and "Delete from library" (confirm, then DeleteEntranceSound); toasts/messages "Entrance sound saved", "Entrance sound removed", "Couldn't save entrance sound", "Couldn't remove entrance sound"; without the feature limit, only "Custom entrance sounds are not enabled on this instance.". entrance::model(app, &EntranceViewState) -> EntranceSectionModel is the testable half; the selected scope is view state, starting at the current guild's scope (else global), as the original.

  • Produces (participant menu, VoiceParticipantMenuData.tsx:423-440,886): for another user, right after "Mute": Entry::Submenu "Entrance sound" with Item::Toggle "Mute entrance sound" (SetEntranceListenerMute) and the slider "Entrance sound volume" 0–200 %, default 100, the 100 % detent (SetEntranceListenerVolume); in DM calls too (the original adds it regardless of guild, unlike "Mute soundboard").

  • Step 1: Write failing tests: opening_the_page_loads_the_library, scope_tiles_and_community_overrides, scope_starts_at_the_current_guild, dropdown_lists_none_and_library_with_durations, choosing_a_sound_sends_set_entrance_sound, choosing_none_clears_the_scope, resolved_card_shows_set_here_or_inherited_from, empty_scope_says_no_entrance_sound_set_here, upload_new_goes_through_the_entrance_trimmer, library_full_disables_upload_with_the_message, library_rows_preview_and_delete_with_confirmation,

🤖 Generated with Claude Code

Plan: `docs/superpowers/plans/2026-11-12-textchat.md`, section "Task 60" (Soundboard and entrance sounds, added 2026-11-12, high priority per Charles). ### Task 60: Entrance sound section in Settings → Voice & video; "Entrance sound" participant submenu **Issue:** (to be created) **Closes:** none by itself: it finishes #142's entrance-sound items; the PR says so on #142, which stays open for its other items (or is closed by Charles if he moves those to sub-project 7). **Files:** - Create: `crates/fluxer-ui/src/screens/settings/voice_video/entrance.rs` - Modify: `crates/fluxer-ui/src/screens/settings/voice_video/{soundboard.rs,mod.rs}` (remove `ENTRANCE_PENDING` and `entrance_view`), `crates/fluxer-ui/src/screens/settings/mod.rs` (outcomes for the file dialog, read, trimmer), `crates/fluxer-ui/src/screens/main/participant_menu.rs` (drop "entrance sound submenu" from the left-out list in the module doc), `crates/fluxer-ui/src/widgets/context_menu.rs` only if a slider cannot sit in a submenu yet, `crates/fluxer-ui/README.md` - Test: `crates/fluxer-ui/tests/settings_voice.rs`, `crates/fluxer-ui/tests/participant_menu.rs`, `crates/fluxer-ui/tests/screenshots.rs` **Interfaces:** - Consumes: Task 57 (`entrance_settings`, `EntranceSettingsModel`, the entrance `UserAction`s, `entrance_listeners`), Task 59 (`trimmer` with `trimmer::ENTRANCE`, `SoundFileReader::{outline, trim}`, `confirm`). - Produces (settings, `EntranceSoundSection.tsx`, every string from that file and `useEntranceSound.ts`): opening the page sends `LoadEntranceSounds`; "Applies to" with the scope hint, the tiles ("All communities and DMs", "All communities", "Direct messages", the current guild with its icon) and "Community overrides" (compact tiles of the other guilds); "Sound for this scope" dropdown ("None" + library names with their durations) → `SetEntranceSound`; the resolved-sound card (preview button, name, duration, badge "Set here" / "Inherited", "Inherited from {label}") or "No entrance sound set here"; "Upload new" (dialog → read ≤ 20 MiB → trimmer `ENTRANCE` → `UploadEntranceSound { select_for: scope }`), disabled with "Library full ({max} sounds max). Delete one before adding another." when full; "Library: {count} of {max}"; library rows with preview (`PreviewEntranceSound`), name, duration and " · Active here", and "Delete from library" (confirm, then `DeleteEntranceSound`); toasts/messages "Entrance sound saved", "Entrance sound removed", "Couldn't save entrance sound", "Couldn't remove entrance sound"; without the feature limit, only "Custom entrance sounds are not enabled on this instance.". `entrance::model(app, &EntranceViewState) -> EntranceSectionModel` is the testable half; the selected scope is view state, starting at the current guild's scope (else global), as the original. - Produces (participant menu, `VoiceParticipantMenuData.tsx:423-440,886`): for another user, right after "Mute": `Entry::Submenu` "Entrance sound" with `Item::Toggle` "Mute entrance sound" (`SetEntranceListenerMute`) and the slider "Entrance sound volume" 0–200 %, default 100, the 100 % detent (`SetEntranceListenerVolume`); in DM calls too (the original adds it regardless of guild, unlike "Mute soundboard"). - [ ] **Step 1: Write failing tests**: `opening_the_page_loads_the_library`, `scope_tiles_and_community_overrides`, `scope_starts_at_the_current_guild`, `dropdown_lists_none_and_library_with_durations`, `choosing_a_sound_sends_set_entrance_sound`, `choosing_none_clears_the_scope`, `resolved_card_shows_set_here_or_inherited_from`, `empty_scope_says_no_entrance_sound_set_here`, `upload_new_goes_through_the_entrance_trimmer`, `library_full_disables_upload_with_the_message`, `library_rows_preview_and_delete_with_confirmation`, 🤖 Generated with [Claude Code](https://claude.com/claude-code)
charles added this to the Text chat milestone 2026-11-13 01:40:53 +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#389
No description provided.