feat: 快捷键录入交互重构 + ASR 模型体系升级(6 项按职责拆分) - #884
Merged
Merged
Conversation
Contributor
PR Reviewer Guide 🔍(Review updated until commit 938d52f)Here are some key observations to aid the review process:
|
added 4 commits
August 3, 2026 10:37
- 未展开主行只留键帽 + 下拉箭头,录入入口统一在展开菜单里(录制快捷键/重置/停用) - 箭头恒靠最右;菜单展开/收起高度改为固定值动画,多次切换不再卡顿 - ShortcutRecorder 支持 value=null(问答/切风格/唤起 App 未启用时直接录入即启用) - 菜单支持 Esc / 点击外部收起;滑动方向统一向右 - 新增 defaultDictationHotkey()(RightControl,与 mock/Rust 默认一致)
- ol-spin 改为逆时针,与 refresh(ccw)图标方向一致 - 按钮固定宽度 + 内容居中;图标固定 14x14 容器,check/refresh 切换与旋转时不再跳动
统一三平台下拉观感,替换原生 <select>(issue #418 同类问题);模型下拉保留 「默认」选项,可选回 CLI 默认模型
- 百炼:qwen3-asr-flash(-realtime)、fun-asr 系列新版本、paraformer 预设 (filetrans 官方只接受公网 URL、后端显式拒绝,不放预设) - Whisper 兼容厂商(whisper/groq/siliconflow/openrouter):通用预设下拉 - CredentialField 支持 options 下拉,含「自定义模型…」逃生口(切回输入框), 与既有 unifiedBailian 协议提示/onValueChange 机制融合
appergb
force-pushed
the
feat/hotkey-menu-and-asr-models
branch
from
August 3, 2026 02:37
44733ac to
0a1a8ad
Compare
Contributor
|
Persistent review updated to latest commit 0a1a8ad |
added 2 commits
August 3, 2026 10:51
- 新增「模型选择」板块:SelectLite 下拉直接选用已下载模型(选择即激活) - 板块重排:模型选择 / 下载与管理 / 其他(存储位置、Apple 语音) - 新增 sherpa-onnx Whisper Large V3 多语模型(Rust 下载配置 + TS 目录 + mock) - 同步 static_catalog_preserves_ui_order 期望列表
- 快捷键:comboResetBtn / comboMenuToggle / comboDisableHint - 本地模型:sherpaModelWhisperLargeV3(+Desc)、modelSelect*、groupDownload/Other - 模型预设:customModelLabel / presetListLabel
appergb
force-pushed
the
feat/hotkey-menu-and-asr-models
branch
from
August 3, 2026 02:51
0a1a8ad to
938d52f
Compare
Contributor
|
Persistent review updated to latest commit 938d52f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
目标(一个 PR,六项按单一职责拆分)
兼容性影响
测试命令与结果
npx tsc --noEmit✅(beta 基线 + 本分支)npm run build(tsc + vite)✅cargo check --manifest-path src-tauri/Cargo.toml✅(无新增 warning)npm run check:hotkey-side-modifiers✅证据
链接
PR Type
Enhancement, Bug fix
Description
Refactor ShortcutRecorder to a dropdown menu with record/reset/disable.
Add ASR model presets for Bailian and Whisper-compatible providers.
Restructure local ASR page and add Whisper Large V3.
Switch coding agent selects to SelectLite; fix update button spin.
Diagram Walkthrough
File Walkthrough
8 files
Add Whisper Large V3 multilingual model to catalogRewrite shortcut recorder with dropdown menu and animationsAdd default dictation hotkey helperRegister Whisper Large V3 in local model catalogRestructure local ASR page into three sectionsAdd ASR model presets with custom model optionAdd reset and disabled-disable for dictation shortcutUnify nullable shortcut editing with ShortcutRecorder5 files
Add English strings for shortcut and ASR UIAdd Japanese strings for shortcut and ASR UIAdd Korean strings for shortcut and ASR UIAdd Simplified Chinese strings for new UI labelsAdd Traditional Chinese strings for new UI labels2 files
Stabilize update button and fix spin directionReverse update spinner rotation direction1 files
Replace native selects with SelectLite