test(ui): add coverage for use-latency-history rolling localStorage history#7948
Conversation
…istory Extracts the merge/dedup step of useLatencyHistory into an exported mergeLatencyHistory and exports the useSyncExternalStore snapshot getter so the module's dedup-by-minute, 30-day retention pruning, endpoint-count cap, and referential-stability behavior (the fix for a real infinite-render bug) can all be tested directly, in line with this repo's no-jsdom convention of testing a hook's pure functions rather than renderHook. Closes JSONbored#7904
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7948 +/- ##
=======================================
Coverage 97.58% 97.58%
=======================================
Files 204 204
Lines 26365 26365
Branches 10452 10452
=======================================
Hits 25729 25729
Misses 150 150
Partials 486 486 🚀 New features to boost your workflow:
|
|
Warning ⏸️ LoopOver review result - manual review recommendedReview updated: 2026-07-24 16:13:38 UTC
Review summary Nits — 6 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
…istory (JSONbored#7948) Extracts the merge/dedup step of useLatencyHistory into an exported mergeLatencyHistory and exports the useSyncExternalStore snapshot getter so the module's dedup-by-minute, 30-day retention pruning, endpoint-count cap, and referential-stability behavior (the fix for a real infinite-render bug) can all be tested directly, in line with this repo's no-jsdom convention of testing a hook's pure functions rather than renderHook. Closes JSONbored#7904 Co-authored-by: bitfathers94 <237535319+bitfathers94@users.noreply.github.com>
Closes #7904
Adds unit-test coverage for the rolling localStorage latency-history hook.
Screenshots
before
after
before
after
before
after
before
after
before
after
before
after