Add GitHub repository dropdown for workspace creation#48
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
github.listReposAPI endpoint that queries GitHub API using configured PATRepoSelectorcomponent for web (GitHub search with dropdown, toggle to manual)RepoSelectorcomponent for mobile (GitHub search modal, toggle to manual)WorkspaceList(web) andHomeScreen(mobile) to use the new selectorTest plan
🤖 Generated with Claude Code