Repository navigation
refactor(ui): read container view update state from the operations store - #1448
Conversation
DR-89 slice 4. useContainerActions resolves operations through the store
selector (group and bulk update guards, pending-update settling, update
in-progress and queued checks), and cancelUpdate takes {id, identityKey,
name} and looks the operation id up in the store. ContainersView reads
transient group membership from the selector and drops the operation
segment from the row fingerprint.
The display hold no longer reads the prop: reconcile takes a resolver
from the caller (the composable must not import the store) that ignores
the hold itself, applyUpdateOperationSseToHold builds from a resolved
store operation, and getDisplayUpdateOperation drops the prop fallback.
The 1.5 s settle window is unchanged.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedWe couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Change: Refactor Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
DR-89 slice 4. ContainersView and useContainerActions read update state from the operations store.
cancelUpdateresolves the operation id from the store, so it can't target a stale row prop. Hold reconcile asks the store whether a container is still active, ignoring the hold itself so a held row can still release, and the 1.5 s settle window is unchanged. The hold composable still doesn't import the store; callers pass resolvers in.New tests cover cancel mid-update, refresh mid-update, an agent-owned container matched only by identityKey, and a missed SSE terminal clearing 1.5 s after reconcile. The prop and the SSE bridge are still there; removing them is slice 5.
Changelog
cancelUpdateto use current store operation IDs.Concerns