Skip to content

feat(windows): add mac-style project tabs - #121

Merged
1lck merged 7 commits into
1lck:preview/0.3.0from
Mucheen:fix/windows-new-window-blank
Aug 17, 2026
Merged

feat(windows): add mac-style project tabs#121
1lck merged 7 commits into
1lck:preview/0.3.0from
Mucheen:fix/windows-new-window-blank

Conversation

@Mucheen

@Mucheen Mucheen commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a macOS-style project tab bar below the Windows title bar
  • show every project opened in the current window and allow one-click project switching
  • keep the existing title-bar project menu for project management actions

What changed

  • added a small project-tab model that preserves project order and normalizes the active state to a single project
  • added an accessible horizontal tab list using role=tablist, role=tab, and aria-selected
  • highlighted the active project, disabled tabs while a project switch is in progress, and exposed the full project path as a tooltip
  • mounted the tab bar directly below TitleBarWithSettings; it stays hidden when no project is open
  • added focused model and component contract tests plus implementation notes

Verification

  • bun test src/features/window/utils/project-tab-bar-model.test.ts src/features/window/components/project-tab-bar.test.ts
  • related project-switching regression tests: 9 passed
  • bun run typecheck
  • targeted Vite Plus lint
  • git diff --check
  • .\scripts\build-windows.ps1 -Configuration Release
  • WebView2 CDP check confirmed six project tabs render, clicking an inactive tab updates aria-selected, and the title-bar project label follows the active project

@Mucheen
Mucheen requested a review from 1lck as a code owner August 17, 2026 02:22
@Mucheen

Mucheen commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator Author

CI follow-up:

  • The first macOS run failed in LinuxDoAnonymousWebSessionTests.inactiveSessionReleasesItsWebView because the scheduled WebKit release had not completed before the test deadline.
  • The test and implementation are unchanged in preview/0.3.0; this was a parallel scheduling flake rather than a Windows project-tab regression.
  • The branch was updated with the latest preview/0.3.0 merge commit 2236acd8.
  • The synchronized rerun passed all macOS and Windows checks. Local validation also passed the Release build, Windows boundary check, Rust workspace tests, and Tauri host tests.

@1lck
1lck merged commit d1d0970 into 1lck:preview/0.3.0 Aug 17, 2026
7 checks passed
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