Repository navigation
Repository picker: GitHub App setup maps the installation; people pick repositories, a queued job makes them projects (sc-9027) - #153
Merged
Conversation
ndbroadbent
force-pushed
the
repository-picker
branch
from
December 3, 2026 22:37
db2a8ce to
dd33062
Compare
VisualCIdocspring/visualci · build #270 · 20 added, 341 unchanged · approved by visualci features agent for Nathan Broadbent
This PR vs base: 1 changed since #240, across 4 builds
docspring/visualci · journeys · build #272 · 14 added, 14 unchanged · approved by visualci features agent for Nathan Broadbent
This PR vs base: nothing since #238, across 4 builds
Updated as builds change. Agents can review with VisualCI's MCP tools. |
…r and a queued job make the ones people choose
…eople pick the repositories, a queued job makes them into projects (sc-9027)
… unquote it before building the setup URL
…and keep a long name's badge on its row on a phone
…router's JSON-quoted %225002%22; the journey checks the picker's address is plain
…" with a tooltip), pick all on a page, "Add repositories" when nothing is picked; an empty org shows one install button
ndbroadbent
force-pushed
the
repository-picker
branch
from
December 3, 2026 23:58
c612b99 to
db175ea
Compare
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.
Nathan's design after the 3 Dec setup incident. Setting up DocSpring's "all repositories" installation made a project per repository inside the
/github/setuprequest. It made 7 before the request hit the app's 30 s limit and returned 503.What changes
set_uponly maps the installation to its organization. That's a few GitHub calls at most, so it answers at once. The reinstall match (by account) and the claim checks are unchanged./{org}/repositories, where setup now lands). It lists every repository the person can reach through the org's installations, with checkboxes, search, 50 a page, and the ones already linked marked "Already a project". Repositories they can't add say why ("You're write", "Archived").?installation=), with account tabs when there are several./user/installations/{id}/repositorieswith permissions. It now keeps the result inuser_repositories, so the picker makes no GitHub calls. When an installation is known only from the webhook,/github/setupsends the person through sign-in once. "Refresh from GitHub" does the same on demand.ImportRepositories, arepository_importsrow). It takes at most 50 per pick, links them one by one throughlink_repository's checks, and saves progress after each. The page polls and shows it, then "Next: add VisualCI to CI"./statusgainsstalled_repository_import_seconds.installation_repositorieswebhook no longer creates projects.repositoriesis now a reserved slug, because of the new route.Tests (
app/tests/installations.rs)Journeys. The GitHub stub now plays the App's side: install with an account choice, signed webhooks, the redirect to the Setup URL, installation tokens, repositories and permissions. The runner configures a throwaway App key and webhook secret. New journeys:
Screenshots. The seed adds Acme's installation with 60 repositories, and a half-made pick in side-project. New screenshots:
app/repositories,app/repositories/searchandapp/repositories/progress.Docs. The quick start, the docs index, the visualci skill (plugin 0.1.53) and
docs/design.md.Not covered: a guard across every request handler (rather than these onboarding ones) that bounds GitHub calls. It needs a per-request counter in the GitHub client: sc-9124.
Plain search values in addresses. TanStack Router's default serialiser JSON-quotes a string that looks like a number. So the setup landing (
/acme/repositories?installation=7) was rewritten to?installation=%227%22, and so was the org page's?installation=. The router now writes plain values (frontend/src/search.ts, with tests), and only objects and arrays go through JSON. Routes already convert what they read (String(search.installation),Number(search.page)). The journey now fails if the picker's address isn't a plain number. It doesn't read the old quoted form: no released link ever had it (the server always redirects with a plain id), and we don't keep compatibility shims before launch.