fix:调整启动页布局,增加最小窗口尺寸限制,优化快捷操作菜单对齐方式,提升用户体验。#441
fix:调整启动页布局,增加最小窗口尺寸限制,优化快捷操作菜单对齐方式,提升用户体验。#441phantom5099 merged 4 commits into1024XEngineer:mainfrom
Conversation
|
@creatang is attempting to deploy a commit to the pionxe's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
| if docWidth < 73 || docHeight < 36 { | ||
| return strings.TrimRight(a.styles.doc.Render(lipgloss.Place(docWidth, docHeight, lipgloss.Left, lipgloss.Top, "Window too small.\nPlease resize to at least 60x20.")), "\n") |
There was a problem hiding this comment.
High: 这里把最小窗口阈值提升到 73x36,但提示文案仍写 60x20,会直接误导用户;同时该改动已导致现有测试场景(例如 100x30)被判定为 too small。若这是有意行为,请同步更新提示文案、测试与相关文档;若非有意,建议恢复原阈值或按启动页/正常页区分最小尺寸策略。
| {Key: "/", Label: "Open Command Palette"}, | ||
| {Key: "Ctrl+L", Label: "Open Log Viewer"}, | ||
| {Key: "Ctrl+U", Label: "Exit NeoCode"}, | ||
| {Key: "Ctrl+N", Label: "New Chat "}, |
There was a problem hiding this comment.
Medium: startupQuickActions 通过在数据里硬编码前后空格来做对齐(例如 " /"、"New Chat "),可维护性较差且在不同宽度/裁剪路径下容易出现异常显示。建议把对齐交给样式宽度或计算逻辑,而不是把空格写进业务文本。
ca7c3c3 to
bf5c7be
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
/code 补全internal/tui/core/app/startup_view.go这个文件的测试覆盖率至百分之九十五以上 |
|
已完成:补全 本次改动:
验证结果:
代码已提交并推送到 PR 源分支: |
Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: creatang <165447160+creatang@users.noreply.github.com>
No description provided.