Skip to content

feat(tray): show every app in the tray, with add-only menus for additive apps - #9061

Merged
farion1231 merged 1 commit into
farion1231:mainfrom
funkpopo:fix/tray-show-all-apps
Dec 2, 2026
Merged

farion1231 merged 1 commit into
farion1231:mainfrom
funkpopo:fix/tray-show-all-apps

Conversation

@funkpopo

@funkpopo funkpopo commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Human Note / 本人说明

fix review found

Summary / 概述

托盘从固定的 5 个应用扩展为跟随 AppType::ALL 的全部 17 个应用,并继续按「可见应用」设置过滤。累加式应用显示「已添加」,Antigravity 卡片以及 Copilot、WorkBuddy、CodeBuddy 的官方登录卡跳转应用页操作。

  • 普通累加式卡片沿用主界面的配置写入流程;点击已添加卡片保持不变。Kimi 和 Copilot 的添加不修改默认模型,移除操作仍在主界面完成。
  • 损坏的供应商记录不再阻断正常供应商添加;客户端配置无法读取时禁用对应写入操作。OMO / OMO Slim 按类别判断启用状态,避免与原生配置同名 ID 混淆或重复计数。
  • 托盘添加后刷新主界面的配置和 OMO 缓存;停用 OMO、修改应用可见性以及外部配置变化后刷新原生菜单。可见应用默认值与前端保持一致。
  • 面板主列表和子列表最大高度均为 480px;滚动条沿用全局样式。补齐八种语言的托盘文案,其中新增的韩、德、俄、土文案为 AI 辅助翻译。
  • 更新跨端契约数据,补充官方卡导航、坏记录隔离、重复点击不移除、OMO 状态及外部配置刷新回归测试。

变基

基于 main@0d7f6e37e80e8437524e2d4a3a2da329d569657a 解决冲突,保留主分支的设置保存流程、应用能力表和独立测试模块。原 PR 的 5 个提交与本次审计修复整理为一个提交,保留原作者署名。

验证(macOS)

  • 前端完整测试:342 个文件、4491 项通过;更新契约数据后,对应的 86 项测试复测通过。
  • 后端:5406 项通过(含失败项复测),12 项跳过。回环网络测试使用 NO_PROXY=127.0.0.1,localhost,::1,配置隔离在已创建的 CC_SWITCH_TEST_HOME 临时目录。
  • pnpm typecheck、pnpm format:check、pnpm knip、pnpm build:renderer 通过。
  • cargo fmt --check、cargo clippy --all-targets -- -D warnings 通过。

Screenshots / 截图

保留原 PR 截图:

image

Checklist / 检查清单

  • TypeScript、格式和前端测试通过
  • Rust 格式、Clippy 和后端测试通过
  • 用户可见托盘文案覆盖八种语言
  • 本人说明保留用户原文

@github-actions github-actions Bot added frontend Frontend (React/TypeScript) backend Backend (Rust/Tauri) labels Oct 30, 2026
@funkpopo
funkpopo force-pushed the fix/tray-show-all-apps branch 2 times, most recently from bce196d to a6fd96b Compare November 7, 2026 16:34
@funkpopo funkpopo changed the title feat(tray): add support for additive apps and update tray menu handling feat(tray): show every app in the tray, with add-only menus for additive apps Nov 7, 2026
@funkpopo
funkpopo marked this pull request as ready for review November 7, 2026 16:47
@funkpopo
funkpopo requested a review from farion1231 as a code owner November 7, 2026 16:47
@jiong-nba

Copy link
Copy Markdown

@farion1231 麻烦有空帮忙 review 一下这个 PR,谢谢!

背景:授权中心已经能管理多个 Antigravity(Google)账号的登录和额度,但托盘面板的 TRAY_APPS 写死了 5 个应用,Antigravity 进不来,想快速看额度或切号每次都要打开主窗口。这个 PR 正好补上这块,已经挂了半个多月,如有需要调整的地方请指出,谢谢!

allenxu09
allenxu09 previously approved these changes Nov 27, 2026

@allenxu09 allenxu09 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Merged latest main and resolved conflicts in src-tauri/src/tray.rs and src-tauri/src/tray/tests.rs:\n- Reconciled TRAY_APPS = AppType::ALL with main's Antigravity official account section (is_account_section / agy_snapshot) inside collect_snapshots in sidebar order, avoiding duplicate Antigravity entries and removing the superseded TrayMode::Cards path.\n- Updated CodeBuddy Code -> CodeBuddy in tray_lists_every_app_in_sidebar_order.\n- Verified with cargo fmt --check, cargo clippy --all-targets -- -D warnings, tray::tests, settings::tests, frontend_parity_tests, pnpm typecheck, pnpm format:check, and Vitest (TrayPanel, App, backendConstants).

allenxu09
allenxu09 previously approved these changes Nov 27, 2026
@allenxu09

Copy link
Copy Markdown
Collaborator

@SaladDay

@funkpopo
funkpopo force-pushed the fix/tray-show-all-apps branch 2 times, most recently from 314f991 to 7996a42 Compare November 27, 2026 07:00
@YUZHEthefool
YUZHEthefool force-pushed the fix/tray-show-all-apps branch from 7996a42 to 6174f68 Compare November 30, 2026 06:00
@funkpopo
funkpopo force-pushed the fix/tray-show-all-apps branch from 6174f68 to 066e992 Compare December 2, 2026 08:54
@funkpopo
funkpopo force-pushed the fix/tray-show-all-apps branch from 066e992 to 85a1fa9 Compare December 2, 2026 09:11
@farion1231

Copy link
Copy Markdown
Owner

感谢 @funkpopo 的持续投入!这个 PR 前后跨了一个多月、rebase 了好几轮,每次都跟上了主干的变化(ZCode、托盘按应用页排序等),回归测试也补得很扎实。已合并,会随下个版本发布。

@farion1231
farion1231 merged commit 7685e26 into farion1231:main Dec 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend (Rust/Tauri) frontend Frontend (React/TypeScript)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants