Skip to content

[feature] Realtime site lifecycle - #352

Closed
dwesh163 wants to merge 5 commits into
masterfrom
feat/realtime-site-lifecycle
Closed

dwesh163 wants to merge 5 commits into
masterfrom
feat/realtime-site-lifecycle

Conversation

@dwesh163

Copy link
Copy Markdown
Collaborator

No description provided.

dwesh163 added 5 commits June 30, 2026 08:02
Add `creating` (no status.wordpresssite yet) and `deletedAt` (deletionTimestamp
set) flags to the Site model, derived in mapKubernetesToSite. Introduce
watchKubernetesSites, a stateless K8s watch that streams declarative
added/modified/deleted SiteEvents carrying the full authoritative site.
Add a reusable createSSEStream helper (encoding, keep-alive, abort/cleanup,
typed connection) and a generic useServerEvents client hook with per-event
typed handlers. Wire them in a /api/sites/events route that streams site
lifecycle events from the Kubernetes watch.
Subscribe the site list to the SSE stream and reconcile rows from the
authoritative site flags. Show an animated indicator ("Creating" in blue,
"Deleting" in red, matching the unmanaged badge style) and keep action
buttons visible but disabled while a site is creating or deleting.
@dwesh163 dwesh163 changed the title [feature] Rrealtime site lifecycle [feature] Realtime site lifecycle Jun 30, 2026
@dwesh163

Copy link
Copy Markdown
Collaborator Author

Remplacée par #353 (branche renommée feat/ -> feature/, commits reformatés).

@dwesh163 dwesh163 closed this Jun 30, 2026
@dwesh163
dwesh163 deleted the feat/realtime-site-lifecycle branch June 30, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant