You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: my feature nameScenario: user [verb for user action]Given [describe expected initial app state]
When user [verb for user action]
Then [describe expected outcome]
I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
Note
Low Risk
Low risk UI formatting change limited to OndoActivityRow display logic, with added test coverage; no business logic, persistence, or security-sensitive code impacted.
Overview
Updates Ondo campaign activity rows so REBALANCE entries display USD amounts without the leading + sign, while deposits/withdrawals/outflows continue to use signed USD formatting.
Adds a small helper (formatActivityUsd) to special-case rebalance values (returning — for null/non-numeric inputs) and extends the unit test suite to assert the new rebalance formatting behavior.
Reviewed by Cursor Bugbot for commit 0ea01cd. Bugbot is set up for automated code reviews on this repo. Configure here.
Selected Performance tags: None (no tests recommended)
Risk Level: low
AI Confidence: 95%
click to see 🤖 AI reasoning details
E2E Test Selection:
The changes are limited to two files in the Rewards/Campaigns UI component area:
OndoActivityRow.tsx: A small, focused bug fix that introduces a formatActivityUsd helper to handle REBALANCE activity entries differently — using formatUsd (no sign prefix) instead of formatSignedUsd (which adds '+' for positive values). The change only affects the display of USD amounts for REBALANCE-type activity entries in the Ondo campaign portfolio view.
OndoActivityRow.test.tsx: Adds a unit test to verify the new REBALANCE formatting behavior.
Why no E2E tags are needed:
The change is purely a display/formatting fix in a narrow, isolated UI component (OndoActivityRow) within the Rewards/Campaigns feature
The component is only consumed by OndoCampaignPortfolioView.tsx — no shared components, navigation, or core infrastructure are affected
No available E2E test tags cover the Ondo/Rewards campaign portfolio activity view specifically
The fix is well-covered by the added unit test
No changes to controllers, state management, navigation, or any shared components that could cause regressions in other flows
Risk of regression to other features is essentially zero
Performance Test Selection:
The change is a pure display formatting fix (string formatting logic for USD amounts in activity rows). There is no impact on rendering performance, data loading, state management, or any performance-sensitive code paths. No performance tests are warranted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
https://consensyssoftware.atlassian.net/browse/RWDS-1264
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI formatting change limited to
OndoActivityRowdisplay logic, with added test coverage; no business logic, persistence, or security-sensitive code impacted.Overview
Updates Ondo campaign activity rows so
REBALANCEentries display USD amounts without the leading+sign, while deposits/withdrawals/outflows continue to use signed USD formatting.Adds a small helper (
formatActivityUsd) to special-case rebalance values (returning—fornull/non-numeric inputs) and extends the unit test suite to assert the new rebalance formatting behavior.Reviewed by Cursor Bugbot for commit 0ea01cd. Bugbot is set up for automated code reviews on this repo. Configure here.