Skip to content

Add GitHub repository dropdown for workspace creation#48

Merged
gricha merged 4 commits intomainfrom
feature/github-repo-dropdown
Jan 8, 2026
Merged

Add GitHub repository dropdown for workspace creation#48
gricha merged 4 commits intomainfrom
feature/github-repo-dropdown

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 8, 2026

Summary

  • When GitHub PAT is configured, shows a searchable GitHub repo selector when creating a new workspace
  • Toggle between GitHub search and manual URL input with clearly clickable links
  • Falls back to plain text input when GitHub token is not configured
  • Works on both web UI and mobile app

Changes

  • Add github.listRepos API endpoint that queries GitHub API using configured PAT
  • Add RepoSelector component for web (GitHub search with dropdown, toggle to manual)
  • Add RepoSelector component for mobile (GitHub search modal, toggle to manual)
  • Update WorkspaceList (web) and HomeScreen (mobile) to use the new selector
  • Add Playwright tests for create workspace form

Test plan

  • Configure GitHub PAT in settings
  • Open create workspace form on web, verify GitHub search shows
  • Search repos, select one, verify URL populates
  • Click "or type in any repository URL" to switch to manual mode
  • Click "or select from GitHub" to switch back
  • Test without PAT configured, verify plain text input works
  • Test on mobile

🤖 Generated with Claude Code

gricha and others added 4 commits January 8, 2026 07:37
When GitHub PAT is configured, shows a searchable dropdown of user's
repositories when creating a new workspace. Falls back to plain text
input when GitHub is not configured.

Changes:
- Add github.listRepos API endpoint that queries GitHub API
- Add RepoSelector component for web (searchable dropdown)
- Add RepoSelector component for mobile (modal-based picker)
- Update WorkspaceList (web) and HomeScreen (mobile) to use selector
- Add Playwright tests for create workspace form

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
When GitHub PAT is set, shows two separate fields:
- GitHub search with GitHub icon for searching user's repos
- Freeform URL input for any repository URL

When GitHub is not configured, shows only the freeform URL input.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Shows one input at a time with a toggle link:
- Default: GitHub search with GH icon (when configured)
- Click "or type in any repository URL" to switch to manual input
- Click "or select from GitHub" to switch back

Includes the "Repository (optional)" label in the component itself.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Use primary/accent color for toggle links so they're clearly clickable:
- Web: text-primary with hover:underline
- Mobile: accent color

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gricha gricha merged commit a227263 into main Jan 8, 2026
7 checks passed
@gricha gricha deleted the feature/github-repo-dropdown branch January 8, 2026 17:05
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