Skip to content

refactor(ui): read container view update state from the operations store - #1448

Merged
scttbnsn merged 1 commit into
dev/v1.8from
feat/v1.8-dr89-containers-view
Oct 21, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.8from
feat/v1.8-dr89-containers-view

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

DR-89 slice 4. ContainersView and useContainerActions read update state from the operations store. cancelUpdate resolves 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

  • ✨ Added operations-store resolution for container update, group, bulk-update, queued, and pending states.
  • 🔧 Changed cancelUpdate to use current store operation IDs.
  • 🔧 Changed hold reconciliation to use injected resolvers.
  • 🔧 Changed active-operation checks to ignore display holds.
  • 🔧 Removed operation metadata from container row fingerprints.
  • 🐛 Fixed hold release after missed terminal SSE events.
  • 🔧 Preserved the 1.5-second settle window and existing operation prop/SSE bridge.

Concerns

  • Test execution results are not provided.
  • Review finding counts are not provided.

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.
@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 21, 2026 9:47pm UTC
drydockdemo-website Ready Ready Preview Oct 21, 2026 9:47pm UTC

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

We 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 @coderabbitai full review.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: CodesWhat/drydock/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a3ef3c80-8003-438e-a1f3-439418be9422
📥 Commits

Reviewing files that changed from the base of the PR and between 2d0b10b and 05addbb.

⛔ Files ignored due to path filters: 1
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing: 11
  • ui/src/composables/useOperationDisplayHold.ts
  • ui/src/stores/operations.ts
  • ui/src/views/ContainersView.vue
  • ui/src/views/DashboardView.vue
  • ui/src/views/containers/useContainerActions.ts
  • ui/src/views/containers/useContainerSsePatchPipeline.ts
  • ui/tests/composables/useOperationDisplayHold.spec.ts
  • ui/tests/stores/operationStore.seed.spec.ts
  • ui/tests/views/ContainersView.applyContainerPatch.spec.ts
  • ui/tests/views/ContainersView.spec.ts
  • ui/tests/views/containers/useContainerActions.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

📝 Walkthrough

The UI now resolves update-operation state through the operation store. Display-hold reconciliation accepts an active-state resolver, and SSE handling can obtain a matching previous operation through a caller-provided resolver. Container actions use store-resolved operation state, while row fingerprints no longer include operation metadata. Tests cover hold reconciliation, refreshed rows, identity-key matching, and cancellation.

Priority: ⬇️ Low

Change: Refactor

Merge Risk: ⚪ Minimal · up to 05add

This refactor moves container update state to the operations store and keeps the 1.5-second hold release behavior. No concrete merge-blocking risk was found, and the change is covered by new tests for cancel, refresh and missed-terminal cases.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch was successfully deployed

2 active deployments
Preview – drydockdemo-website — 05addbb9 Deployed Oct 21, 2026 by vercel[bot]
Preview – drydock-website — 05addbb9 Deployed Oct 21, 2026 by vercel[bot]
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