Skip to content

refactor(ui): read dashboard update state from the operations store - #1446

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

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

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

DR-89 slice 3. The dashboard reads update state from the operations store through the hold-aware selector: status, from/to versions, batch and queue fields, and the pending-row filter. applyDashboardOperationPatch and its window listener are gone, and DashboardView reconciles holds after every fetch instead of watching a row fingerprint.

Codex found that a retry after a failed batch update could inherit the old batch id and queue position from the list-seeded row and show Queued instead of Updating. Fixed: the hold only reuses the previous operation when its id matches the incoming event. There's a regression test for that sequence.

Changelog

  • ✨ Read dashboard operation state from useOperationStore.
  • ✨ Added store-backed status, version, batch, queue, and pending-row handling.
  • ✨ Added retry and stale-hold regression coverage.
  • 🔧 Reconciled operation holds after container refreshes.
  • 🗑️ Removed applyDashboardOperationPatch.
  • 🗑️ Removed dd:sse-update-operation-changed listener handling.
  • 🐛 Prevented retries from inheriting stale batch IDs or queue positions.
  • 🐛 Cleared stale holds after resync when no operation remains.
  • ⚠️ Review findings: unavailable.
  • ⚠️ Test results: unavailable.

Concerns

  • Verify all dashboard consumers use useOperationStore instead of container.updateOperation.
  • Verify operation-store changes recompute rows without the removed SSE listener.
  • Verify no remaining references require applyDashboardOperationPatch or dd:sse-update-operation-changed.

@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 7:54pm UTC
drydockdemo-website Ready Ready Preview Oct 21, 2026 7:54pm UTC

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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: 6c949b19-f0d3-4567-ac93-45b65e19f184
📥 Commits

Reviewing files that changed from the base of the PR and between 1620930 and 176960a.

⛔ Files ignored due to path filters: 1
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing: 6
  • ui/src/views/DashboardView.vue
  • ui/src/views/dashboard/useDashboardComputed.ts
  • ui/src/views/dashboard/useDashboardData.ts
  • ui/tests/views/DashboardView.spec.ts
  • ui/tests/views/dashboard/useDashboardComputed.spec.ts
  • ui/tests/views/dashboard/useDashboardData.spec.ts
💤 Files with no reviewable changes: 1
  • ui/src/views/dashboard/useDashboardData.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

Recent-update rows and SSE display holds now resolve operation data through the operation store. The dashboard no longer listens for operation-change events to patch container rows. Tests seed operation records in Pinia and cover queue metadata, retry holds, and hold reconciliation after a resync fetch.

Priority: ➖ Normal

Change: Refactor

Merge Risk: ⚪ Minimal · up to 17696

The dashboard now reads update state from the operations store, which is fed by the app-level SSE connection, so live update status should keep working. No actionable merge-blocking risk was found in this review.

Pre-merge checks: Passed 2
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
📝 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

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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 – drydock-website — 176960aa Deployed Oct 21, 2026 by vercel[bot]
Preview – drydockdemo-website — 176960aa 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