Repository navigation
Conversation
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.
Collaborator
Author
|
Remplacée par #353 (branche renommée feat/ -> feature/, commits reformatés). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.