chore: add commas to PnL#27815
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Since no E2E tags cover this specific UI component's price display functionality, and the change is a low-risk cosmetic fix, no E2E tags need to be run. Performance Test Selection: |
|




Description
Add commas to PnL
Changelog
CHANGELOG entry: add commas to PnL
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/ASSETS-2966
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI-only change to how the price difference (PnL) value is formatted and signed in
AssetOverview.Overview
Improves the
AssetOverviewprice-diff (PnL) label formatting by switching fromaddCurrencySymbol(diff, ...)toformatPriceWithSubscriptNotation(Math.abs(diff), ...), which adds thousands separators and consistent small-value formatting.Also fixes sign rendering so negative diffs show a leading
-(positive keeps+, zero shows no sign) while keeping the percentage calculation display unchanged.Written by Cursor Bugbot for commit 4055c10. This will update automatically on new commits. Configure here.