Voice 21: Settings → Voice & Video (#82) #145
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "voice-21-ui-voice-settings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Settings → Voice & video → Audio (
crates/fluxer-ui/src/screens/settings/voice_video/), cloned from the fork'sUserVoiceTab.tsx:571-756, sections in the original's order:SetInputDevice/SetOutputDevicevoice.input_level, brand colour while the gate is open) and play/stop button →StartMicTest/StopMicTest.voiceyet.Video stays a placeholder for sub-project 3.
PTT recorder: a small custom widget. Click it, press a key, and that key is stored as
VoiceSettingChange::PttKey(Some(code)), spelled like the web'sKeyboardEvent.code("KeyF"). Escape or a click cancels. The shell (app.rs) now sendsUserAction::PttKey { down }for that key when the window has focus and no widget took the key. No other code sent it, so push-to-talk could not work without this.Tests
tests/settings_voice.rs:sections_in_original_order,custom_mode_reveals_extra_controls,device_dropdown_lists_devices_and_marks_default,ptt_recorder_captures_key(drives the widget headless with click + key events),mic_test_button_and_level_meter,parity_check_passes. There are also unit tests for the meter's dB mapping and the release-delay snapping.settings_voice(goldenfixtures/golden/settings_voice.png, copy atdocs/screenshots/settings-voice.png): custom profile, PTT on with F, devices listed. The 720 px frame shows the page down to push-to-talk.FLUXER_SCREENSHOT_TESTS=1 cargo xtask cigreen locally.cargo xtask parity-checkalso passes against the fork checkout.No Electron reference screenshot exists in the fork's assets. Dimensions come from
UserVoiceTab.tsx,MicTestSection.module.cssandKeybindRecorder.tsx.Deviations
xtask parity-checkonly acceptsdone/planned/dropped, and the skeleton test pins audio entries to owner 2. So "partial" is written asdonewith a note starting "Partial:", and "later" asplannedwith a note. I added section entriessection-voice_video-*(as companion-apps did). AGC is nowdone. New-device alerts and connection volume controls stayplannedwith notes.settings::Messageis no longerCopy, because it carriesDeviceId/VoiceSettingChange.section,body_textandborderare now generic over the message type.app.rsandmessage.rs(WindowEvent::Key, PTT key dispatch; Escape is ignored when a widget captured it so the recorder can cancel),theme/icons.rsplusplay-fill/stop-fillSVGs (Phosphor path data written from memory, please check), andsettings_nav.rs(its Voice & video page expectation now that Audio is built).Stacked on: voice-17-ui-voice-panel
Closes #82
🤖 Generated with Claude Code