From 8eec70a3ab1ae26a7306bc9ee3f1d94e345d0307 Mon Sep 17 00:00:00 2001 From: hugocasa Date: Thu, 8 Oct 2026 11:19:04 +0200 Subject: [PATCH] fix: point the sync note at the hub sync button only Co-Authored-By: Claude Opus 5.5 --- cli/src/commands/resource-type/resource-type.ts | 2 +- frontend/src/lib/components/copilot/chat/shared.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/commands/resource-type/resource-type.ts b/cli/src/commands/resource-type/resource-type.ts index 2661b0143d..e8e03757e5 100644 --- a/cli/src/commands/resource-type/resource-type.ts +++ b/cli/src/commands/resource-type/resource-type.ts @@ -99,7 +99,7 @@ function warnIfNotSyncedWithHub(resourceTypes: ResourceType[]) { const count = new Set(resourceTypes.map((rt) => rt.name)).size; if (count < UNSYNCED_RESOURCE_TYPE_COUNT) { log.warnAlways( - `Only ${count} resource types exist on this instance, so it has most likely never synced with the Windmill Hub, which has types for most services. A superadmin can sync resource types from the hub with "Sync resource types with Hub" in the Add resource dialog of the Resources page, or by running the u/admin/hub_sync script in the admins workspace.` + `Only ${count} resource types exist on this instance, so it has most likely never synced with the Windmill Hub, which has types for most services. A superadmin can sync resource types from the hub with "Sync resource types with Hub" in the Add resource dialog of the Resources page.` ); } } diff --git a/frontend/src/lib/components/copilot/chat/shared.ts b/frontend/src/lib/components/copilot/chat/shared.ts index 0a85e7674d..0817767c02 100644 --- a/frontend/src/lib/components/copilot/chat/shared.ts +++ b/frontend/src/lib/components/copilot/chat/shared.ts @@ -1712,7 +1712,7 @@ function parseResourceTypeSchema(schema: unknown): unknown { } export const HUB_SYNC_INSTRUCTIONS = - 'A superadmin can sync resource types from the hub with "Sync resource types with Hub" in the Add resource dialog of the Resources page, or by running the u/admin/hub_sync script in the admins workspace.' + 'A superadmin can sync resource types from the hub with "Sync resource types with Hub" in the Add resource dialog of the Resources page.' async function missingResourceTypesNote( workspace: string,