fix: point the sync note at the hub sync button only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
hugocasa
2026-10-08 11:19:04 +02:00
co-authored by Claude Opus 5.5
parent 985c08f78e
commit 8eec70a3ab
2 changed files with 2 additions and 2 deletions
@@ -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.`
);
}
}
@@ -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,