Skip to content

Group menu bar pending sessions by project path#5

Merged
Jing-yilin merged 2 commits into
issue-2-onboarding-raycast-releasefrom
worktree-issue-3-group-sessions-by-project
May 19, 2026
Merged

Group menu bar pending sessions by project path#5
Jing-yilin merged 2 commits into
issue-2-onboarding-raycast-releasefrom
worktree-issue-3-group-sessions-by-project

Conversation

@Jing-yilin
Copy link
Copy Markdown
Contributor

Summary

  • Adds StatusMenuLogic.projectLabel(from:) to extract the last path component of workingDir as a concise project label
  • Adds StatusMenuLogic.groupedByProject(from:) to group sessions by project, preserving the existing date-descending sort order within each group
  • Updates rebuildMenu() to render a section header per project group when pending sessions span multiple projects; single-project lists are visually unchanged
  • Adds makeProjectHeader(_:) helper that matches the existing "Completed" header style (11 pt medium, secondary label colour, non-interactive)

Test plan

  • swift test --package-path App — 32 tests, 0 failures (5 new tests cover projectLabel, groupedByProject, multi-project header rendering, and single-project no-header behaviour)
  • Manually confirmed project headers appear in the menu bar when sessions from multiple workingDir paths are present
  • Confirmed no headers shown when all pending sessions share one project

Closes #3

🤖 Generated with Claude Code

Jing-yilin and others added 2 commits May 19, 2026 22:22
Adds project-level section headers to the pending sessions list in the
macOS menu bar. When sessions span multiple projects, each group gets a
header showing the project folder name; single-project lists are
unchanged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Jing-yilin Jing-yilin merged commit eed84b1 into issue-2-onboarding-raycast-release May 19, 2026
@Jing-yilin Jing-yilin deleted the worktree-issue-3-group-sessions-by-project branch May 19, 2026 14:30
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.

1 participant