mirror of
https://github.com/netbirdio/dashboard.git
synced 2026-09-23 00:30:43 -07:00
Adopts the new Agent Network settings contract: - The management API replaced the implicit settings bootstrap — a `bootstrap_cluster` hint on the first provider create — with an explicit POST /agent-network/settings carrying the proxy cluster address. The settings response now carries endpoint + proxy_address + dedicated instead of cluster + subdomain. - The provider wizard keeps its UX (auto-picking a validated cluster, gating the first create on having one) but now bootstraps the settings row with the explicit POST right before the first provider create. A bootstrap failure keeps the wizard open and surfaces the error — previously a failed bootstrap was swallowed server-side and the account silently ended up with a provider but no endpoint. A 409 (concurrent bootstrap won) is treated as success, since the row exists either way. - Types updated accordingly; bootstrapAgentNetworkSettings is exposed on the providers context. The onboarding provider step reuses the same wizard, so it is covered by the same change. Without this, the dashboard against a new management silently stops bootstrapping accounts: provider create succeeds (the old hint is an ignored unknown field), but no endpoint is ever assigned.