Repository navigation
fix(console): show a repository its installation no longer reaches, and correct Git copy - #15043
Conversation
…nd correct Git copy A site or function whose Git installation can no longer reach its repository - deleted, removed from the installation, or moved to another installation, as when an Entire mirror is detached - got a 404 provider_repository_not_found that no error kind matched. The Repository card then rendered nothing: no row, no Disconnect, no way to reconnect. That error is now its own kind, `missing`: the card keeps the row with Disconnect and explains the next step, and the branch and directory pickers show it instead of an empty result. Silent mode skips pull request comments, checks and deployment reports, but its copy said checks were unchanged and named only GitHub. The build trigger summary read an exclusion such as "!functions/**" as "only paths matching"; exclusions now read as such. The function wizard's repository hint now matches the site wizard's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review complete. 🟡 1 medium 💬 Inline comments (1)
🧹 Nitpicks (2) — 🟢 2 low
This change improves error messaging and trigger-pattern copy for Git-connected resources in the console. The VCS installation error component gains a new
Risk is contained to console UI copy and error rendering; the notable edge is a display/server mismatch in how Reviewed commit: c71c226 |
New ConsoleProject ID: Tip Our Discord community has grown to 24K developers, and counting |
🟢 Tier S · Ready to merge
The Console now classifies unreachable Git repositories and keeps affected site and function repository controls available with guidance to reconnect through the correct installation. It also updates silent-mode and repository-permission copy, describes build-trigger rules using the server’s matching precedence, and adds Hebrew/Japanese translations and unit coverage. Latest changes: The newest commits align trigger summaries with Globstar precedence, including exclusions before inclusions, later wildcard overrides, literal inclusions, and untrimmed exclusion text, with regression tests for those cases.
📂 Walkthrough · 18
Reviewed the commits since |
There was a problem hiding this comment.
The PR refines Git-connected function/site flows in the console: adds a dedicated missing repository error kind, restructures the permissions CTA in the function create flow, and reworks build-trigger summary copy for include/exclude patterns, with he/ja translation updates.
Key findings
- 🟡 Display trims
! srccore but server exclusion does not — git-build-triggers.ts:82
… applies them
Globstar is order-sensitive: with an inclusion present, literal inclusions
always match and the last matching pattern decides among the rest, so an
exclusion before any inclusion changes nothing. The summary split
inclusions from exclusions and showed every exclusion overriding every
inclusion; it now walks the patterns in order ("…, except …, but
including …", and "always" for literal inclusions). An exclusion reads as
the server reads it, without trimming what follows the "!".
Co-Authored-By: Claude Opus 5.5 <[email protected]>

What does this PR do?
From Cloud QA of Entire's detach flow, plus related copy fixes:
provider_repository_not_found.getVcsInstallationErrorKind()matched no kind for it, so the Repository card rendered nothing: no row, no Disconnect, no Connect.missing.GitAction::run(),check()anddeployment()all return early). The settings card said deployments, checks and builds were unchanged and named only GitHub. The card, the toggle and both wizards now say what is skipped, without naming a provider.describeTriggerBehavior()listed exclusions as inclusions ("only paths matching "!functions/""). It now splits them, following the server's Globstar rules. Exclusions alone read as "changes outside "functions/"", and mixed lists read "…matching "src/", except "src/legacy/"".Hebrew and Japanese entries are added for the new strings; the replaced keys are removed.
Test Plan
bun test tests/unit: 731 pass, including newgit-build-triggers.test.ts(inclusion, exclusion and mixed summaries) andvcs-installation-error-kind.test.ts.bun run i18n:audit:heandi18n:audit:ja: clean.bun run lint:types --against origin/main: no new errors, on a full dependency install.!functions/**;🤖 Generated with Claude Code