feat: unify provider scheduling workspace

This commit is contained in:
elky
2026-10-07 00:34:18 +08:00
parent e7de935e61
commit 466c7918a1
69 changed files with 5810 additions and 2666 deletions
@@ -1228,6 +1228,15 @@ function applyProviderSnapshot(updated: ProviderWithEndpointsSummary): void {
provider.value = updated
}
// A provider opened from scheduling may not belong to the resource page's loaded slice.
// Apply edits supplied by the parent even when the drawer loaded its own initial snapshot.
watch(() => props.initialProvider, (updated) => {
if (!props.open || !updated || updated.id !== props.providerId) return
providerLoadRequestId += 1
applyProviderSnapshot(updated)
loading.value = false
})
function getProviderKeysPageSize(providerType?: string | null): number {
return (providerType || '').trim().toLowerCase() === 'custom'
? CUSTOM_PROVIDER_KEYS_PAGE_SIZE