Repository navigation
feat: Redesign Git repository link and browser as dialogs - #698
Conversation
…ositories - Replaced the GitRepositoryPicker component with GitRepositoryBrowserDialog for improved UX. - Implemented a dialog that allows users to browse repositories without search functionality. - Updated the repository list to load as the user scrolls, enhancing performance and usability. - Adjusted the UI to provide better feedback and error handling when loading repositories. - Modified tests to accommodate the new dialog structure and ensure functionality remains intact. - Updated translations for new dialog titles and descriptions across multiple languages.
There was a problem hiding this comment.
Important
The dialog refactor and the nested modal behave correctly, but the checked-in Playwright specs still drive the old inline form, and the new Retry button is wired to the wrong query action for a failed background refresh.
Reviewed changes
- Link form is now a dialog —
Repositoriesrenders the form inside a modal opened from the empty-state "Link a repository" button or the section header, and reopens it with the pending input restored after an access grant. - Repository browser is now a dialog —
GitRepositoryPickerbecameGitRepositoryBrowserDialogwithIntersectionObserverpaging, a Retry affordance, and the search box removed. - Project App install starts automatically —
GitSetupCallbackcallsbeginGitAccessas soon as aproject-identityApp is created (tokens skip it) instead of returning to the form. - i18n and CI — new dialog/picker strings in all nine locales with the three old picker keys removed; four GitHub Action major-version bumps.
⚠️ Stale references to the old inline form
The form now lives behind the "Link a repository" button, but the Playwright specs and the feature file still expect the Repository input to be on the page as soon as Git settings opens. Seven tests fail before reaching their assertions, and this stays invisible to PR checks because e2e-ci.yml only runs on apps/e2e/** changes while e2e-tests.yml is manual-dispatch.
Technical details
apps/e2e/tests/projects/git-settings.spec.ts:162-163— "An administrator links a repository" fillsRepositoryand clicksLinkwithout opening the dialog.apps/e2e/tests/projects/git-settings.spec.ts:243-244— "A writer gets the form once a connection is available" asserts theRepositorylabel is visible on load.apps/e2e/tests/projects/git-automation.spec.ts:212-213— the four parameterized "A<CODE>answer is explained" tests fillRepositorywithout opening the dialog.apps/e2e/tests/projects/git-automation.spec.ts:229-231— "A repository the identity cannot see offers the install".apps/e2e/features/projects/git-settings.feature:25,46— the scenario wording still says theRepositoryfield is shown on open.apps/web/src/components/projects/settings/GitSettings.tsx:100— the JSDoc still says "the form is open while there are none".
Each failing spec should open the link dialog (getByRole("button", { name: "Link a repository" })) before filling the field. Note getByRole("button", { name: "Link" }) is a substring match by default, so it also matches the new "Link a repository" trigger; use exact: true for the submit button. The unit tests were updated (openLink()), but the Playwright specs were not; the e2e stack stubs the endpoints, so the failure is purely the missing dialog step.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed the delta since the prior Pullfrog review (a3d35a7).
- Retry now retries the failed action — the repository browser calls
fetchNextPage()after a failed page andrefetch()after a failed background refresh, disabling the button while either request is in flight. - Playwright specs updated for the dialog — the Git settings and automation specs open the "Link a repository" dialog before filling the field and use
exact: truefor the submit button; the feature scenarios were renamed and given the dialog step. - Retry test now exercises the button — the failed-page unit test clicks Retry and asserts a new request instead of only checking that it is enabled.
- Stale JSDoc corrected — the settings docstring now describes the dialog trigger rather than the removed inline form.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Summary
Redesigns the repository flows in a project's Git settings so both are dialogs instead of inline panels.
Link a repository
Repository browser
GitRepositoryPickerbecomesGitRepositoryBrowserDialog, opened from the link dialog with "Browse repositories".IntersectionObserversentinel at the end of the list); the "Load more" button is gone.Also in this PR
GitSetupCallback: after creating a project App connection, start the install on the owner's account right away (as already done for agent Apps), falling back to the repository form's install prompt if that can't start.setup-helmv5,setup-orasv2,setup-buildx-actionv4,upload-artifactv6.Behaviour changes to be aware of
i18n
New dialog strings added to all 9 locales; removed
picker.hide,picker.searchandpicker.loadMore. The translations are machine-written and worth a native-speaker check.Test plan
tsc -b, biome, and the web tests forcomponents/projects,components/git,i18nandlibpass.GitSettings.test.tsxupdated: tests open the dialog first; paging tests stubIntersectionObserver; a new test covers Retry after a failed page.