Skip to content

feat: add full-featured repo configuration modal and extract RepoConfigForm#474

Merged
matt2e merged 5 commits intomainfrom
full-featured-add-repo
Mar 26, 2026
Merged

feat: add full-featured repo configuration modal and extract RepoConfigForm#474
matt2e merged 5 commits intomainfrom
full-featured-add-repo

Conversation

@matt2e
Copy link
Contributor

@matt2e matt2e commented Mar 25, 2026

Summary

  • Extract shared RepoConfigForm component from NewProjectForm to enable reuse across project creation and repo addition flows
  • Create AddRepoModal with full repo configuration (branch, path filters, file size limit) for adding repos to existing projects
  • Replace the GitHubRepoPicker dropdown in ProjectSection with the new AddRepoModal
  • Remove the now-unused GitHubRepoPicker component

Test plan

  • Verify creating a new project still works correctly with the extracted RepoConfigForm
  • Verify adding a repo to an existing project opens the AddRepoModal with all configuration options
  • Verify repo search, selection, and configuration fields work in both flows
  • Verify the removed GitHubRepoPicker is no longer referenced anywhere

🤖 Generated with Claude Code

matt2e and others added 5 commits March 26, 2026 15:41
Extracts repo search, selected repo display, recent repos list, subpath
input, and branch/PR picker into a reusable RepoConfigForm component.
Also adds excludeRepos filtering support to RepoSearchInput.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ProjectSection

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
No remaining consumers after ProjectSection was updated to use AddRepoModal.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matt2e matt2e force-pushed the full-featured-add-repo branch from a45fe0e to a914af1 Compare March 26, 2026 04:43
@matt2e matt2e marked this pull request as ready for review March 26, 2026 05:55
@matt2e matt2e requested review from baxen and wesbillman as code owners March 26, 2026 05:55
@matt2e matt2e merged commit ecdc32f into main Mar 26, 2026
4 checks passed
@matt2e matt2e deleted the full-featured-add-repo branch March 26, 2026 05:55
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a914af1d71

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +68 to +70
const normalizedSubpath = subpath.trim().replace(/^\/+|\/+$/g, '') || undefined;
const normalizedBranch = branchName.trim() || undefined;
const prNumber = matchedPr?.number ?? undefined;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Carry pending PR number through Add Repository submission

When a user pastes a PR URL, RepoConfigForm initially stores that PR as pending state until BranchPicker finishes loading, but handleAdd only reads matchedPr and branchName. If the user clicks Add Repository before that async hydration completes (or if PR fetch fails), this submits with neither prNumber nor the PR head branch, so add_project_repo falls back to an inferred branch name instead of the intended PR branch. This is a functional regression from the previous picker flow, which forwarded the PR number immediately.

Useful? React with 👍 / 👎.

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