docs: document plan review and voice-to-text features + UI fixes#6
docs: document plan review and voice-to-text features + UI fixes#6
Conversation
- Add single-instance detection to prevent duplicate tray icons - Implement window lifecycle management (hide instead of destroy) - Add microphone permission validation and audio stream checking - Move command invocation to Rust for global shortcut independence Fixes issues: global shortcut only working with window open, window not reopening after close, CLI creating duplicate instances, and blank audio transcription with model loaded.
- Add http-server dependency for serving static files - Configure beforeDevCommand to auto-start dev server - Remove center positioning from recording window
- Add list_audio_devices() to enumerate available microphones - Modify AudioRecorder to accept device_name parameter - Add RMS validation (threshold 0.001) to detect silent audio - Add 50ms delay before stopping stream to prevent sample loss - Persist selected device in WhisperSettings - Add Tauri commands: list_audio_devices, set_audio_device - Add window permissions: allow-hide, allow-show, allow-set-focus - Restore onCloseRequested behavior for minimize-to-tray
- Add microphone dropdown in Settings modal - Load and display available audio devices - Persist device selection on change - Add CSS styling for device selector - Add diagnostic logging for window close handlers
- Add button mode and shortcut mode for recording - Add cancel_recording command for better control - Add write_clipboard command for transcription results - Add long_recording_threshold setting (default 60s) - Enable macOS private API for better integration - Update recording window size and config
- Simplify toolbar to horizontal layout (file name on left, actions on right) - Add close file button (X) next to filename - Remove 'Arandu' label from toolbar for cleaner look - Add components.css for reusable component styles - Improve toolbar spacing and button consistency - Add closeFile() function to clear current file state
- Replace horizontal bar with diamond/losango shape - Make apex more pointed (sharper top) - Use thinner stroke for refined appearance - Icon now matches the Arandu logo design
# Conflicts: # apps/tauri/src-tauri/Cargo.lock # apps/tauri/src-tauri/Cargo.toml # apps/tauri/src-tauri/capabilities/default.json # apps/tauri/src-tauri/src/lib.rs # apps/tauri/src-tauri/tauri.conf.json # apps/tauri/src/app.css # apps/tauri/src/index.html # apps/tauri/src/main.js
- Reset selectedBlocks and commentsData - Hide bottom-bar (comments panel) - Hide stale comments banner - Prevents UI state from persisting after file close
- Revert padding from merge conflict resolution - Keep consistent with other toolbar buttons
- Check if apps/shared/scripts changed before creating tag - Skip release build for website/README updates only - Reduces unnecessary CI runs and costs
…tures # Conflicts: # apps/tauri/src/app.css # apps/tauri/src/index.html
- Increase modal width to match review modal (700px) - Add max-height and scroll to block preview - Normalize whitespace in preview text (remove line breaks, collapse spaces)
Add overflow-wrap, word-wrap, and word-break properties to inline code elements to prevent horizontal overflow when displaying long paths or identifiers. Changes: - shared/style.css: add word-break properties to code blocks - website/css/site.css: add word-break properties to mockup code elements
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughAdds plan-review UI/design assets and voice-to-text documentation; updates README and website content; adjusts CSS for wrapping and comment layout; sets Tauri pre-build hook to null and adds Changes
Sequence Diagram(s)(Skipped — changes are primarily UI/CSS/docs and do not introduce multi-component control-flow changes requiring a sequence diagram.) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…eadme-features # Conflicts: # .github/workflows/auto-tag.yml # apps/tauri/src-tauri/src/lib.rs # apps/tauri/src-tauri/src/tray.rs # apps/tauri/src-tauri/src/whisper/audio.rs # apps/tauri/src-tauri/src/whisper/commands.rs # apps/tauri/src-tauri/src/whisper/model_manager.rs # apps/tauri/src-tauri/src/whisper/transcriber.rs # apps/tauri/src/main.js # apps/tauri/src/recording.html
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
website/css/site.css (1)
356-366:⚠️ Potential issue | 🟡 MinorRemove redundant
word-wrapproperty;overflow-wrapis the modern standard.
word-wrapis a legacy alias foroverflow-wrapand adds no additional behavior in modern browsers.🔧 Proposed fix
.mockup-content.markdown-body code { font-family: var(--font-mono); font-size: 0.85em; background: var(--code-bg); color: var(--code-text); padding: 0.15em 0.4em; border-radius: 3px; border: 1px solid var(--border); overflow-wrap: break-word; - word-wrap: break-word; word-break: break-all; }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@website/css/site.css` around lines 356 - 366, The CSS rule .mockup-content.markdown-body code contains the legacy word-wrap property which is redundant with overflow-wrap; remove the "word-wrap: break-word;" line and keep "overflow-wrap: break-word;" (and other properties like word-break if still needed) so the selector relies on the modern standard only.apps/tauri/src/app.css (1)
836-848:⚠️ Potential issue | 🟡 MinorRemove
word-wrapto comply with Stylelint'sproperty-no-deprecatedrule.
Stylelint flagsword-wrapas deprecated in favor of the standardoverflow-wrapproperty, which already provides the same behavior.🔧 Proposed fix
`#comment-context` { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); background: var(--code-bg); padding: 8px; border-radius: 4px; margin-bottom: 10px; max-height: 80px; overflow-y: auto; - word-wrap: break-word; overflow-wrap: break-word; }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/tauri/src/app.css` around lines 836 - 848, The `#comment-context` rule contains the deprecated property word-wrap; remove the word-wrap declaration and rely on the existing overflow-wrap: break-word to satisfy Stylelint's property-no-deprecated rule while preserving the same behavior for long words in the `#comment-context` selector.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@apps/tauri/src-tauri/tauri.conf.json`:
- Line 8: The tauri configuration currently sets beforeBuildCommand to an empty
string which semantically signals a command; change this to either remove the
beforeBuildCommand field or set it explicitly to null so it represents "no hook"
per the Tauri schema—update the tauri configuration JSON by removing the
"beforeBuildCommand" entry or replacing its value with null (look for the
"beforeBuildCommand" key in the tauri config to make the change).
---
Outside diff comments:
In `@apps/tauri/src/app.css`:
- Around line 836-848: The `#comment-context` rule contains the deprecated
property word-wrap; remove the word-wrap declaration and rely on the existing
overflow-wrap: break-word to satisfy Stylelint's property-no-deprecated rule
while preserving the same behavior for long words in the `#comment-context`
selector.
In `@website/css/site.css`:
- Around line 356-366: The CSS rule .mockup-content.markdown-body code contains
the legacy word-wrap property which is redundant with overflow-wrap; remove the
"word-wrap: break-word;" line and keep "overflow-wrap: break-word;" (and other
properties like word-break if still needed) so the selector relies on the modern
standard only.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
shared/style.css (1)
89-90: Reconsiderword-break: break-all;for inline code readability.Using
word-break: break-all;will break inline code at any character, including mid-identifier, which can significantly hurt readability. For example,thisIsALongVariableNamemight render asthisIsALongVari\nableName.For inline code elements, consider using only
overflow-wrap: break-word;(which you already have on line 89), or adding the non-standard but widely-supportedword-break: break-word;instead. These approaches break only when necessary and attempt to preserve word boundaries, making code snippets more readable.📖 Proposed refactor for better code readability
Option 1 (Recommended): Remove
word-break: break-all;and keep onlyoverflow-wrapcode { font-family: var(--font-mono); font-size: 0.875em; background: var(--code-bg); color: var(--code-text); padding: 0.15em 0.4em; border-radius: 3px; border: 1px solid var(--border); overflow-wrap: break-word; - word-break: break-all; }Option 2: Use the less aggressive
break-wordvaluecode { font-family: var(--font-mono); font-size: 0.875em; background: var(--code-bg); color: var(--code-text); padding: 0.15em 0.4em; border-radius: 3px; border: 1px solid var(--border); overflow-wrap: break-word; - word-break: break-all; + word-break: break-word; }Both options will still prevent horizontal overflow but will preserve readability by avoiding breaks in the middle of identifiers when possible.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@shared/style.css` around lines 89 - 90, Remove the aggressive word-breaking rule: replace or remove the line setting word-break: break-all; in the CSS where overflow-wrap: break-word; is already applied so inline code and identifiers aren't split mid-word; either delete the word-break declaration altogether or change it to the less aggressive word-break: break-word; while keeping overflow-wrap: break-word; to prevent horizontal overflow.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@shared/style.css`:
- Around line 89-90: Remove the aggressive word-breaking rule: replace or remove
the line setting word-break: break-all; in the CSS where overflow-wrap:
break-word; is already applied so inline code and identifiers aren't split
mid-word; either delete the word-break declaration altogether or change it to
the less aggressive word-break: break-word; while keeping overflow-wrap:
break-word; to prevent horizontal overflow.
overflow-wrap: break-word alone prevents overflow while preserving readability by not splitting identifiers mid-word.
|
Re: nitpick from review #3839037476 ( Removed Fixed in 09c3928. |
Summary
📚 Documentation Updates
🐛 UI Fixes
🔧 Housekeeping
examples/folder to gitignore for private reference files (plan examples, test documents)Test plan
Website
README
UI Fixes
Examples Folder
examples/folder is ignored by gitSummary by CodeRabbit
New Features
Documentation
Style
Chores