mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 05:24:49 +09:00
Closes the inconsistency where the workspace switcher filtered apps/servers but not the WordPress hub. - WP sites carry no workspace_id of their own, so get_sites(workspace_id=...) scopes join-based through the site's parent Application.workspace_id; list_sites resolves the active workspace and passes it. - The hub is global today, so with no workspace context behavior is unchanged (additive, narrow-only). - No frontend change: the WP hub already fetches through the header-injecting api.request, so it auto-scopes on the ambient X-Workspace-Id. Verified: a new API test (global vs workspace-scoped), full suite 123 passed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>