Skip to content

fix(console): show a repository its installation no longer reaches, and correct Git copy - #15043

Merged
Meldiron merged 2 commits into
mainfrom
fix/console-vcs-missing-repository
Oct 27, 2026
Merged

Meldiron merged 2 commits into
mainfrom
fix/console-vcs-missing-repository

Conversation

@Meldiron

@Meldiron Meldiron commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

From Cloud QA of Entire's detach flow, plus related copy fixes:

  • Missing repository. When a site's or function's 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), the API answers 404 provider_repository_not_found. getVcsInstallationErrorKind() matched no kind for it, so the Repository card rendered nothing: no row, no Disconnect, no Connect.
    • It is now its own kind, missing.
    • The site and function cards keep the repository row with Disconnect, and show a warning that tells the user to disconnect and connect again through the installation that has the repository now.
    • The branch and root-directory pickers show it too, instead of an empty result. The branch picker keeps a free-text field, and inside the settings cards it defers to the card's alert.
  • Silent mode copy. Silent mode skips pull request comments, checks and deployment reports (GitAction::run(), check() and deployment() 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.
  • Trigger summary. 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/"".
  • Function wizard. Its repository hint ("Missing a repository? Check your permissions") now matches the site wizard's ("Can't find a repository? Update Entire permissions").

Hebrew and Japanese entries are added for the new strings; the replaced keys are removed.

Test Plan

  • bun test tests/unit: 731 pass, including new git-build-triggers.test.ts (inclusion, exclusion and mixed summaries) and vcs-installation-error-kind.test.ts.
  • bun run i18n:audit:he and i18n:audit:ja: clean.
  • bun run lint:types --against origin/main: no new errors, on a full dependency install.
  • Local Console against a local stack (Entire dev plugin), with screenshots:
    • a site and a function pointed at a repository their installation can't reach show the row, Disconnect and the warning;
    • Disconnect then brings back the connect picker;
    • the Silent mode copy on the card and in the function wizard;
    • the trigger summary with !functions/**;
    • the function wizard's repository hint.

🤖 Generated with Claude Code

…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]>
@luxor-code-review

luxor-code-review Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Review complete. 🟡 1 medium

💬 Inline comments (1)

🧹 Nitpicks (2) — 🟢 2 low
  • 🟢 missing kind still offers Reconnect installation (VcsInstallationError.tsx:141) — The new missing kind renders the standard action row, and VcsInstallationErrorActions shows the "Reconnect installation" button for every kind except locked (apps/console/src/components/global/shared/VcsInstallationError.tsx:141-155).
  • 🟢 Dynamic t() key never translates for non-GitHub providers (CreateFunctionView.tsx:867) — CreateFunctionView.tsx:867 calls t(Update ${knownProvider.label} permissions), but translateText does an exact-string dictionary lookup with no interpolation, so a dynamically composed key can never match a catalog entry (apps/console/src/lib/i18n/translate.ts:22).

This change improves error messaging and trigger-pattern copy for Git-connected resources in the console. The VCS installation error component gains a new missing kind classified from repository-not-found API errors, shown as a warning with dedicated body copy in both the functions and sites Git settings cards. Build-trigger summaries now distinguish exclusions (!-prefixed patterns) with an "except ..." phrasing, backed by a new splitTriggerPatterns helper and unit tests. The function create flow restructures the permissions CTA around the provider label, and he/ja dictionaries gain/adjust matching keys.

Files Change
src/lib/utils/error-formatting.ts, global/shared/VcsInstallationError.tsx, tests Adds missing classification and its warning-alert rendering path for repository-not-found errors
functions/GitSettingsCard.tsx, sites/settings/GitRepositoryCard.tsx Thread repositoryErrorKind into the Git settings cards and adjust error copy
functions/GitSilentModeCard.tsx, sites/settings/GitSilentModeCard.tsx Rework silent-mode copy shared across function/site flows
functions/create/CreateFunctionView.tsx, both RepositoryConfigView.tsx Restructure permissions CTA and repository-config copy in create flows
src/lib/git-build-triggers.ts, tests/unit/git-build-triggers.test.ts Add exclusion-aware trigger summary formatting with tests
he/ja i18n dictionaries (functions.ts, sites.ts, shared-ui.ts) Add and adjust translation keys, including wrapping-only edits in ja/sites.ts

Risk is contained to console UI copy and error rendering; the notable edge is a display/server mismatch in how !-prefixed exclusion patterns are trimmed, plus a dynamically composed t() key that never resolves outside the English catalog.

Reviewed commit: c71c226

@appwrite

appwrite Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

New Console

Project ID: new-console

Sites (1)
Site Status Logs Preview QR
 New Console
new-console
Ready Ready View Logs Preview URL QR Code

Tip

Our Discord community has grown to 24K developers, and counting

@ghost

ghost commented Oct 27, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The latest trigger-summary changes match the server’s Globstar handling, and I found no remaining issue in the reviewed changes.

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.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 18
File Change
apps/console/src/lib/utils/error-formatting.ts Classifies provider-repository-not-found errors as the missing-repository kind.
apps/console/src/components/global/shared/VcsInstallationError.tsx Adds warning copy for repositories an installation can no longer reach.
apps/console/src/components/pages/projects/$projectId/functions/GitSettingsCard.tsx Keeps the function repository row and disconnect action available for missing repositories.
apps/console/src/components/pages/projects/$projectId/sites/settings/GitRepositoryCard.tsx Keeps the site repository row and disconnect action available for missing repositories.
apps/console/src/lib/git-build-triggers.ts Describes trigger inclusion and exclusion behavior according to Globstar matching precedence.
apps/console/src/components/pages/projects/$projectId/functions/GitSilentModeCard.tsx Clarifies which Git reports and checks silent mode skips.
apps/console/src/components/pages/projects/$projectId/sites/settings/GitSilentModeCard.tsx Clarifies which Git reports and checks silent mode skips.
apps/console/src/components/pages/projects/$projectId/functions/create/CreateFunctionView.tsx Updates the repository-permissions hint in the function wizard.
apps/console/src/components/pages/projects/$projectId/functions/create/RepositoryConfigView.tsx Updates silent-mode toggle copy in the function wizard.
apps/console/src/components/pages/projects/$projectId/sites/create/RepositoryConfigView.tsx Updates silent-mode toggle copy in the site wizard.
apps/console/src/lib/i18n/dictionaries/he/functions.ts Updates Hebrew function copy for silent mode and missing repositories.
apps/console/src/lib/i18n/dictionaries/he/sites.ts Updates Hebrew site copy for silent mode and missing repositories.
apps/console/src/lib/i18n/dictionaries/he/shared-ui.ts Adds Hebrew shared warning strings for missing repositories.
apps/console/src/lib/i18n/dictionaries/ja/functions.ts Updates Japanese function copy for silent mode and missing repositories.
apps/console/src/lib/i18n/dictionaries/ja/sites.ts Updates Japanese site copy for silent mode and missing repositories.
apps/console/src/lib/i18n/dictionaries/ja/shared-ui.ts Adds Japanese shared warning strings for missing repositories.
apps/console/tests/unit/git-build-triggers.test.ts Covers trigger summary output for inclusion, exclusion, precedence, and literal patterns.
apps/console/tests/unit/vcs-installation-error-kind.test.ts Covers missing-repository error classification.

Reviewed the commits since c71c226 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Tier A · See the inline comments. Summary

@luxor-code-review luxor-code-review Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

… 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]>

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Tier S · Looks good to merge. Summary

@Meldiron
Meldiron merged commit 4bd8931 into main Oct 27, 2026
42 checks passed
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