Skip to content

Add project grouping to dashboard#14

Closed
ClSlaid wants to merge 5 commits into
hueyexe:mainfrom
ClSlaid:feat/project-dashboard
Closed

Add project grouping to dashboard#14
ClSlaid wants to merge 5 commits into
hueyexe:mainfrom
ClSlaid:feat/project-dashboard

Conversation

@ClSlaid
Copy link
Copy Markdown

@ClSlaid ClSlaid commented May 12, 2026

Result

image

Problem

OpenCode Ensemble currently treats teams as globally scoped in the dashboard and several maintenance paths. That creates two practical issues once a user runs multiple OpenCode instances or works across multiple project directories:

  • The dashboard has no project grouping, so teams from different working directories appear in one flat list and same-name teams are hard to distinguish.
  • Recovery/cleanup code can accidentally operate across project boundaries because team names were globally unique assumptions in parts of the code.

Solution

  • Add a lightweight project layer keyed by the team lead's working directory.
  • Scope active team-name uniqueness to project_id instead of globally.
  • Return projects[].teams from /api/state while keeping the existing flat teams array for compatibility.
  • Add a collapsible docs-style project outline to the dashboard with coarse project/team status and hover details.
  • Scope recovery and purge safety checks so duplicate team names across projects do not cause ambiguous cleanup or branch deletion.
  • Allow team_create to accept an optional project_name; otherwise generate a short random display name.

Verification

  • bun run typecheck
  • bun test
  • bun run build

@ClSlaid ClSlaid requested a review from hueyexe as a code owner May 12, 2026 09:57
@ClSlaid ClSlaid marked this pull request as draft May 12, 2026 10:19
@ClSlaid ClSlaid marked this pull request as ready for review May 12, 2026 10:25
@hueyexe
Copy link
Copy Markdown
Owner

hueyexe commented May 14, 2026

Ignore the branch name failing check, it's not taking into account a fork.

@ClSlaid ClSlaid closed this May 16, 2026
@ClSlaid ClSlaid deleted the feat/project-dashboard branch May 16, 2026 01:29
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