Skip to content

fix(windows): avoid dead project switcher in new-window mode - #99

Merged
1lck merged 4 commits into
1lck:preview/0.3.0from
Mucheen:fix/project-switcher-new-window
Aug 16, 2026
Merged

1lck merged 4 commits into
1lck:preview/0.3.0from
Mucheen:fix/project-switcher-new-window

Conversation

@Mucheen

@Mucheen Mucheen commented Aug 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Hide the activity-bar project switcher when Open Projects In New Window is enabled.
  • Keep the existing Open project... entry available for opening projects in a separate window.
  • Add regression coverage for the project-switcher visibility rule.

Root cause

The default Windows setting enables opening projects in a new window. In that mode, activity-bar project switching is intentionally disabled by main-sidebar.tsx, but the project switcher control was still rendered. Selecting a project therefore called a handler that returned immediately, making the UI appear unresponsive.

Conflict resolution

Merged the latest preview/0.3.0 into this branch and resolved the main-sidebar.tsx import conflict by retaining the upstream sidebar simplification together with the project-switcher visibility rule.

Verification

  • bun test (12 passed)
  • bun run typecheck
  • bun run build
  • bun run lint (passes; existing warnings remain in src/mocks/tauri-api-mock.ts)

This PR does not include the pre-existing configuration changes or local planning/build artifacts in the worktree.

@Mucheen
Mucheen requested a review from 1lck as a code owner August 15, 2026 16:05
Mucheen and others added 2 commits August 16, 2026 09:27
…switcher-new-window

# Conflicts:
#	windows/tauri/src/features/layout/components/sidebar/main-sidebar.tsx
@1lck
1lck merged commit 6fd3ab3 into 1lck:preview/0.3.0 Aug 16, 2026
5 of 6 checks passed
xiaoyumuxi added a commit that referenced this pull request Nov 18, 2026
- 分组页改为目录页:列出「工具链」「调试器」和插件声明的构建工具、编译器页,带状态摘要
- 插件页按种类聚合,同一种类满 3 个折叠成侧栏文件夹,展开列 6 个并以「全部 N 个…」打开可筛选的文件夹页
- 插件自己的设置位置不变:插件详情的「设置」标签照样列出全部设置,聚合页和它共用同一份表单与草稿(新增回归测试)
- 工具链页按 docs/design/build-execution-settings.html 重做:全局默认 / 当前项目两个作用域、按类别或插件分组、需要处理与已手动指定过滤、列表与详情两栏、安装列表与来源标签、未信任项目的信任提示
- 筛选、分组和计数改用 Core 设置投影(Core #99 已合入;问题项带分组在 Core #102,先固定 6712596),一个插件可注册多个 SDK;固定值不再单独算一个来源标签
- 单步过滤从 Build 页移到「调试器」子页,插件没有声明名称时按调试器名绘制图标
- 只有 Build 页或有草稿时页脚才显示「应用」,没有草稿时「好」直接关闭
- 侧栏搜索覆盖目录页、工具链和调试器
- 新增 build-settings 词条,更新设置页分类笔记、新增已实现与剩余契约缺口两篇笔记,更新功能矩阵
- 截图放在 docs/assets/build-execution-settings/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants