Skip to content

fix(ui): track stats stream state and retire stale connections - #1245

Closed
scttbnsn wants to merge 1 commit into
dev/v1.8from
fix/v1.8-stats-stream-lifecycle
Closed

scttbnsn wants to merge 1 commit into
dev/v1.8from
fix/v1.8-stats-stream-lifecycle

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • Show Live only after the Stats stream opens. While loading or reconnecting, show the existing translated loading label; a failed initial read shows Disconnected with Pause disabled.
  • Retire the old stream immediately when changing containers. Ignore its queued callbacks and prevent pending reads from reopening streams after unmount.
  • Preserve explicit Pause/Resume, snapshot history and the existing service-owned reconnect policy.

Verification

  • Six failing real-service component regressions reproduced before implementation, plus one existing-behavior preservation pass.
  • 50 focused tests across five files pass, including connection transitions, stale reads/events, unmount cleanup, translated French/Arabic feedback and status-key presence in every locale.
  • Vue typecheck and diff checks pass.
  • Browser fixture checks in French and Arabic exercised actual Pause/Resume controls and connection transitions with real component/service code and fixture HTTP/EventSource transports. One credentialed GET per mount, no writes or unexpected requests, all opened sources closed on unmount. Screenshot capture timed out; semantic browser checks passed, not pixel QA or backend E2E.
  • Full normal pre-push passed in 358 seconds: configured backend/UI coverage, both builds, lint, Knip, Qlty, script/workflow tests, Vue typecheck, website script tests and Zizmor. UI: 6,963 tests across 298 files. Backend: 16,642 passed plus one existing skip across 518 files. No changed thresholds or bypassed hooks.

Threat model: the authenticated frontend displays one selected container's stats. This changes read-only presentation and resource cleanup, not permissions, triggers or container actions. No Greptile request needed.

@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

Deployment failed for project drydock-website with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/codeswhat?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
drydockdemo-website Ready Ready Preview Sep 16, 2026 9:39pm UTC

@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 32 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 2f926a5c-4e75-48c0-8bb6-369ff24cc991

📥 Commits

Reviewing files that changed from the base of the PR and between 3663e3f and 231a921.

⛔ Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing (2)
  • ui/src/components/containers/ContainerStats.vue
  • ui/tests/components/containers/ContainerStats.lifecycle.spec.ts

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 Sep 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn

Copy link
Copy Markdown
Contributor Author

Consolidated into #1243 at ac1dbe0. Original commit and authorship are preserved. Combined stats retry and stream lifecycle passed focused tests, the full normal pre-push gate, and French/Arabic browser fixture recovery checks. Closing this duplicate review entry, not claiming the fix merged. Branch preserved.

@scttbnsn scttbnsn closed this Sep 18, 2026
@scttbnsn
scttbnsn deleted the fix/v1.8-stats-stream-lifecycle branch October 3, 2026 13:04

This branch was successfully deployed

1 active deployment
Preview – drydockdemo-website — 231a921f Deployed Sep 16, 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