feat(miner-ui): adopt chart and pagination on the ledgers route (#6832)#6920
Conversation
…nce pagination in ledgers view (JSONbored#6832) - Added recharts dependency for visualizing claims status with a bar chart. - Implemented pagination for event count tables and recent events feed in the LedgersView component. - Introduced a new setup file for Vitest to handle ResizeObserver stubbing for chart rendering in tests. - Updated tests to verify the rendering of the claims status chart and pagination functionality. Closes JSONbored#6832
|
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 #6920 +/- ##
=======================================
Coverage 93.70% 93.70%
=======================================
Files 685 685
Lines 68331 68331
Branches 18723 18723
=======================================
Hits 64032 64032
Misses 3302 3302
Partials 997 997
Flags with carried forward coverage won't be shown. Click here to find out more. |
- Consolidated import statements for ChartContainer, ChartTooltip, and ChartTooltipContent from the ui-kit components to improve code readability.
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-17 13:35:11 UTC
Review summary Nits — 5 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. Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. 🟩 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.
|

Summary
Restyles the miner-ui Ledgers route (#6832) to finish the visual/ui-kit track on top of the #6512 StateBoundary/Skeleton work: claims cards get a ui-kit
ChartContainerbar chart, and both event count-tables plus the recent-events feed paginate client-side viaPaginationonce they exceed 20 rows — matching the run-history restyle (#6510).Behavior
ChartContainer+ recharts) shows the Active / Released / Expired breakdown. Loading skeleton includes a chart-shaped block.StateBoundary(already from Redesign: Ledgers route — StateBoundary + skeletons + governor section restyle #6512) kept for both independent ledger-summary and governor-control flows.lib/ledgers.ts,lib/governor.ts, both fetch loops, and pause/resume Button wiring — presentation-only.Scope
type(scope): short summaryConventional Commit formatCONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAMEValidation
git diff --checknpm run actionlint(not run — no workflow changes)npm run typecheck(root; miner-ui typecheck has a pre-existingvite-chat-api.tscast issue unrelated to this diff)npm run test:coverage(N/A —apps/**is outside Codecovcoverage.include)npm run test:workers/ MCP / ui:* (N/A — miner-ui-only change)npm --workspace @loopover/ui-miner run testgreen (coverage floors met)If any required check was skipped, explain why:
Miner-ui-only restyle under
apps/loopover-miner-ui/**(outside Codecovsrc/**). Local verification is the workspace vitest suite + UI screenshots below.Safety
UI Evidencesection — fill with hosted JPG/PNG before openingsite//CNAMEeditsUI Evidence
Notes
Closes #6832. Epic #6504.