Skip to content

[Website] Autocomplete connected repositories in GitHub import - #4418

Open
akirk wants to merge 1 commit into
trunkfrom
add/github-import-repository-autocomplete
Open

akirk wants to merge 1 commit into
trunkfrom
add/github-import-repository-autocomplete

Conversation

@akirk

@akirk akirk commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

The GitHub import URL field now suggests repositories available to the connected GitHub account. Choosing a suggestion fills in the repository URL, while the field continues to accept pasted repository, branch, folder, and pull request URLs. Suggestions use the browser’s native autocomplete dropdown to keep the existing input styling.

Repositories load in pages of 100, sorted by recent updates. Suggestions clear when the account changes or disconnects, and pending responses from the previous account are ignored. A failed repository listing leaves manual URL entry available.

Validation passed:

  • npm exec -- nx test playground-website --testFile=src/github/github-import-form/form.spec.tsx (3 tests)
  • npm exec -- nx run playground-website:lint --files=packages/playground/website/src/github/github-import-form/form.tsx,packages/playground/website/src/github/github-import-form/form.spec.tsx
  • npm exec -- nx run playground-website:typecheck

Summary by CodeRabbit

  • New Features
    • GitHub import now suggests repositories from your connected account, with repository names and URLs. Suggestions prioritize recently updated repositories.
    • Repository suggestions are cleared when your account is disconnected.

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cebcc783-ae75-49fa-97d3-e6fb3f83b95b

📥 Commits

Reviewing files that changed from the base of the PR and between ea9ab2b and 2691c01.


📒 Files selected for processing (2)
  • packages/playground/website/src/github/github-import-form/form.spec.tsx
  • packages/playground/website/src/github/github-import-form/form.tsx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.



📝 Walkthrough

Walkthrough

GitHubImportForm now loads authenticated repositories in pages of up to 100, sorted by update time, and displays their URLs as suggestions. It skips loading without an OAuth token and does not apply results after the effect is cancelled.

Changes

Repository Suggestions

Layer / File(s) Summary
Load and render repository suggestions
packages/playground/website/src/github/github-import-form/form.tsx, packages/playground/website/src/github/github-import-form/form.spec.tsx
The form paginates through authenticated repositories when a token is present and displays their URLs with full names as labels. Tests check pagination settings, behavior without a token, and a response that arrives after disconnect.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant GitHubImportForm
  participant oAuthState
  participant GitHubClient
  GitHubImportForm->>oAuthState: Read OAuth token
  GitHubImportForm->>GitHubClient: Request authenticated repository pages
  GitHubClient-->>GitHubImportForm: Return repository names and URLs
  GitHubImportForm->>GitHubImportForm: Render repository URLs in the datalist
Loading

Suggested reviewers: adamziel


Merge Risk: ⚪ Minimal · up to 2691c

Repository suggestions appear mergeable after the normal checks; manual URL entry remains available.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: adding autocomplete suggestions for connected GitHub repositories in the website import form.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant