Repository navigation
fix(topics): hide zero KPI delta - #410
Conversation
There was a problem hiding this comment.
Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.
In the meantime, two things that make review faster:
- A short description of why the change matters, not just what it does — most of our PRs link a
Fixes #...to the issue that explains the why. - A quick local test note if there's anything worth eyeballing in the browser.
If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.
gkhngyk
left a comment
There was a problem hiding this comment.
Exactly the fix #360 asked for — zero deltas no longer render, and positive/negative deltas keep their arrow/sign/color behavior. I approved the first-contributor CI run and everything is green (format, lint, typecheck); prettier on the changed file checks out too, so no worries about not being able to run it locally. Thanks for the contribution!
Summary
change === 0.0pts/0display on KPI cards.Related issue
Closes #360
Type of change
fix— Bug fixChecklist
feature/,fix/,chore/,docs/)yarn lintpasses (couldn't run locally)yarn typecheckpasses (couldn't run locally)yarn format:checkpasses (couldn't run locally)Note
I wasn't able to run the project locally due to environment setup constraints. The change is limited to the conditional rendering logic described in the issue.