🎨 Palette: Add visual status spinner for recording and transcription#52
🎨 Palette: Add visual status spinner for recording and transcription#52
Conversation
This commit adds a `rich` status spinner to the CLI interface. - Displays "Recording..." when recording starts. - Displays "Transcribing..." when recording stops. - Stops the spinner when transcription finishes or fails. - Adds `tests/test_ui_status.py` to verify the UI logic. Co-authored-by: Whamp <1115485+Whamp@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
User description
Implemented a visual status indicator using
rich.console.Statusto provide feedback during recording and transcription phases. This improves the user experience by clarifying the application state (Recording vs Transcribing vs Idle). Added unit tests to verify the behavior.PR created automatically by Jules for task 1523845753990020326 started by @Whamp
PR Type
Enhancement, Tests
Description
Add visual status spinner for recording and transcription phases
Display "Recording..." during audio capture, "Transcribing..." during processing
Stop spinner when transcription completes or fails
Add comprehensive unit tests for UI status indicator behavior
Diagram Walkthrough
File Walkthrough
main.py
Integrate status spinner into recording workflowsrc/chirp/main.py
consoleandstatus_indicatorin__init__method_start_recording()is called andstart spinner
_stop_recording()is called_transcribe_and_inject()to stop spinner oncompletion or error
regardless of outcome
test_ui_status.py
Add unit tests for UI status indicatortests/test_ui_status.py
indicator
ends
modules
audio_feedback.py
Clean up unused type importssrc/chirp/audio_feedback.py
TupleandUnionfrom typing moduletest_audio_feedback_cache.py
Remove unused importtests/test_audio_feedback_cache.py
Pathimport from pathlib module