Skip to content

fix(dashboard): clean up reconnects, report control failures, and add CI - #18

Merged
kclaka merged 1 commit into
loadgen-rate-limitsfrom
dashboard-connection-lifecycle
Sep 16, 2026
Merged

kclaka merged 1 commit into
loadgen-rate-limitsfrom
dashboard-connection-lifecycle

Conversation

@kclaka

@kclaka kclaka commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

Closing an unmounted metrics socket could schedule a new reconnect, including during React StrictMode remounts. Each effect now owns its socket/timer, ignores stale callbacks, validates incoming snapshots, bounds history, and resets history after policy changes or server restarts.

Show failed mode-change requests, disable duplicate/inapplicable submissions, use runtime policy labels, fix negative advantage formatting, and label the alpha slider. Add dashboard lint/test/build CI and apply compatible dependency security updates; npm audit now reports zero vulnerabilities.

Validation: six Vitest/Testing Library tests covering StrictMode, stale close callbacks, reconnection cleanup, malformed metrics, bounded history, and failed mode requests; npm run lint; npm run build; npm audit. The production build retains a non-fatal bundle-size advisory.

This PR is stacked on #14 because the current CI Rust compiler rejects the original load-generator division code. Merge #14 first; the diff here contains only this improvement family.

Replaces #12 after removing the codex/ branch prefix. Commit contents are preserved; the original PR retains prior discussion and review history.

@kclaka
kclaka merged commit cfed98e into loadgen-rate-limits Sep 16, 2026
8 checks passed
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