fix(ui-kit): render chart tooltip zero inside tabular-nums span - #10114
Conversation
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-31 07:54:23 UTC
Review summary Nits — 4 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. Scroll preview
A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show. 🟩 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.
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Replace the truthiness guard on ChartTooltipContent value with an explicit nullish check so 0 and empty string go through toLocaleString in the formatted span instead of a bare React text child. Closes JSONbored#10051 Co-authored-by: Cursor <cursoragent@cursor.com>


Summary
ChartTooltipContent's truthiness guard (item.value &&) with an explicit nullish check so numeric0renders inside thetabular-numsspan viatoLocaleString()instead of as a bare React text child.undefined/nullomit the value element.formatterbranch unchanged.Closes #10051
Test plan
npm --workspace @loopover/ui-kit run test -- src/components/chart.test.tsx(13 pass)span.tabular-nums(not a direct text child)undefined/nullomit the value span;""renders empty span