Skip to content

cluster monitor upd: autorefresh and transfer progress - #452

Draft
trean wants to merge 7 commits into
masterfrom
cluster-monitor-autorefresh
Draft

trean wants to merge 7 commits into
masterfrom
cluster-monitor-autorefresh

Conversation

@trean

@trean trean commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@trean
trean requested review from generall and a lite review from Copilot September 24, 2026 16:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Two moderate issues remain in polling visibility handling and mock replica placement.

Review effort: Lite
Findings: None

What changed in this PR

Adds opt-in persistent auto-refresh polling to the Cluster Monitor with visibility handling, request cancellation, race protection, tests, and a live MSW scenario.

Changes:

  • Adds the reusable usePolling hook and polling tests.
  • Integrates auto-refresh and persistent controls into the Cluster Monitor.
  • Adds dynamic live cluster mock data.
File Description
src/​mocks/​scenarios.js Registers the live cluster scenario.
src/​mocks/​handlers/​cluster-live.js Provides changing cluster topology data; shard 4 incorrectly appears on an extra peer.
src/​hooks/​usePolling.test.js Tests polling behavior and lifecycle handling.
src/​hooks/​usePolling.js Implements cancellable, visibility-aware polling; a pending visible refresh may be missed after an in-flight request settles.
src/​components/​Collections/​ClusterMonitor/​ClusterMonitor.jsx Integrates polling and stale-response protection.
src/​components/​Collections/​ClusterMonitor/​AutoRefreshControl.jsx Adds the persistent auto-refresh control.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@trean
trean requested a lite review from Copilot September 28, 2026 16:19
@trean trean changed the title auto refreshing cluster monitor cluster monitor upd: autorefresh and transfer progress Sep 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Four unresolved review findings remain, including one critical issue.

Review effort: Lite
Findings: 1 High severity · 1 Medium severity

Open (2)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Address the collection cache key issue and ensure visibility-triggered polling runs promptly after an in-flight request settles.

Review effort: Lite
Findings: 1 High severity

Open (1)
Resolved since last review (2)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Refresh error handling, visibility-triggered polling, touch tooltips, and mock replica topology still have unresolved issues.

Review effort: Lite
Findings: None

Resolved since last review (1)

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.

2 participants