Repository navigation
fix(mobile,web,server): 修复移动端菜单布局、Gemini 速度统计与侧栏多余返回箭头 - #370
Merged
Merged
Conversation
修复本轮反馈的多项交互与统计问题: - 需求管理页 Android 右上角菜单移除冗余的「设置」,仅保留「需求设置」 - 合并请求页排序菜单标题固定为「排序」并补充排序图标(arrow.up.arrow.down / IconArrowsSort) - 移动端模型选择弹层将「选项」区块移至收藏上方,保留「模型目录」在底部 - Android 会话页项目筛选移除「完成」按钮,勾选或清空即刻生效 - 修复 Antigravity Gemini 模型带思考级别后缀(如 gemini-4-neon-high)时无法匹配用量基础模型名导致速度统计缺失的问题 - 移除 Web 侧栏底部在工具页渲染的多余左箭头返回按钮,并补充回归测试
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.
Problem
本轮排查并修复了移动端、Web 侧栏及用量速度统计中的 6 项问题:
ThreadSettingsSheet将思考强度/运行时等模型选项放在模型列表底部,调整模型参数需要先滑过长列表。AndroidHomeListFilters使用本地草稿状态,勾选/取消项目后还必须再点「完成」才生效。.db扫描写入基础模型名(如gemini-4-neon、gemini-4-carbon、gemini-4-hydrogen),而orchestration_v2_projection_provider_turns记录带思考级别后缀的模型名(如gemini-4-neon-high、gemini-4-hydrogen-tiered-xhigh),导致速度样本无法与用量模型对齐。/requirements、/pull-requests等工具页,侧栏左下角快捷区仍渲染了一个遗留的Back(ArrowLeftIcon)按钮,与顶部导航返回及侧栏会话列表重复。Change
apps/mobile/src/features/requirements/RequirementsScreen.tsx):移除UnifiedRequirementBoardmoreMenu中仅 Android 添加的app-settings(「设置」)项,仅保留「需求设置」等需求相关操作。apps/mobile/src/features/pull-requests/PullRequestListFilters.tsx、apps/mobile/src/components/ui/AppSymbol.android.tsx):将sortAction.title改为gt({ context: "noun, sort order menu" })\Sort`(中文「排序」),补充image: "arrow.up.arrow.down",并在 Android 符号映射中接入IconArrowsSort`。apps/mobile/src/features/threads/ThreadSettingsSheet.tsx):拆分ThreadSettingsOptionsItem与ThreadSettingsCatalogFooterItem,新增kind: "catalog"列表项,将列表顺序调整为「选项 → 收藏与模型列表 → 模型目录」,并保留底部安全区留白。apps/mobile/src/features/home/AndroidHomeListFilters.android.tsx、apps/mobile/src/features/layout/workspace/WorkspaceListHeader.android.test.tsx):移除PROJECT_DONE菜单项与projectDraft草稿状态;点击具体项目立即回调onProjectsChange并保持菜单展开,点击「全部项目」立即清空可见项目筛选并关闭菜单;同步更新单测覆盖即时勾选、取消与清空。apps/server/src/provider/Drivers/antigravityUsageReader.ts、apps/server/src/usage/UsageService.ts、apps/server/src/usage/usageOutputThroughput.ts、apps/server/src/usage/usageOutputThroughput.test.ts):扩展antigravityRateModel以剥离组合思考/档位后缀;readUsageOutputThroughput接收scanned.buckets,在保留claude-opus-5-5-high等原样精确匹配模型的前提下,将带后缀的 Antigravity turn 模型归并到对应的已知基础模型(兼容modelAliases与modelFilter),并补充单测验证。apps/web/src/components/sidebar/SidebarChrome.tsx、apps/web/src/components/sidebar/mainAppLocation.ts、apps/web/src/components/sidebar/SidebarUpdatePill.browser.test.tsx):移除SidebarUtilityMenu中的isOnUtilityPage左箭头按钮,取消导出不再对外使用的isSidebarUtilityPage,并补充浏览器回归测试确认工具页底部不再渲染Back按钮。Scope
针对本轮用户在同一工作流中提出并确认的 UI 交互与用量统计缺陷集中修复;未引入新协议字段或破坏性变更。
Verification
vp run i18n:check:通过(apps/web、apps/mobile、apps/desktop翻译目录与源码一致)。vp run check:changed(变基到最新origin/main7c9432658f后运行):全部 8 项检查通过:format、lint(0 warnings / 0 errors)、knip、graphql (apps/server)、typecheck (5 packages)SidebarUpdatePill.browser.test.tsx(含新增工具页无返回按钮回归用例)、mainAppLocation.browser.test.tsxWorkspaceListHeader.android.test.tsx、UsageService.test.ts、usageOutputThroughput.test.ts、antigravityUsageReader.test.ts、AgentContextBudget.test.tsstatev2.sqlite验证gemini-4-neon、gemini-4-carbon、claude-opus-5-5-high均可正常输出速度统计。由 Antigravity(Gemini)完成。