chore: adds label for open feed rows with "Holding" / "Open"#33404
chore: adds label for open feed rows with "Holding" / "Open"#33404zone-live wants to merge 2 commits into
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
PR template — items to address before "Ready for review"Warnings — informational, address before merging:
See docs/readme/ready-for-review.md for the full Definition of Ready for Review. |
This comment was marked as off-topic.
This comment was marked as off-topic.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The SocialLeaderboard FeedView is part of the Trending tab, which is covered by SmokeWalletPlatform (Trending discovery tab, browsing content feeds including Tokens, Perps, Sites sections). No other areas are affected — no core controllers, navigation, shared infrastructure, or other feature areas are touched. The changes are self-contained UI enhancements with no performance implications. Performance Test Selection: |
Description
Open feed rows whose value/P&L data hasn't arrived yet, brand-new buy with no realized gain, rendered a blank right column, which read as broken. This adds an intentional empty-state label so the row looks deliberate:
bought→ "Holding"opened→ "Open"If a current value is present but only PnL is missing, the row still shows the value, so the label only appears on genuinely empty open rows.
Implements a suggestion from feed review to make the empty state read as intentional rather than missing data.
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TSA-894
Manual testing steps
Screenshots/Recordings
Before
NA
After
NA
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
UI-only empty-state copy in the social feed with tests; no auth, data, or trading logic changes.
Overview
Social leaderboard feed rows no longer leave the right column blank when value and P&L are both missing on open trades (
bought/opened).FeedItemRownow shows localized "Just bought" or "Just opened" in that case; sold / closed rows with no metrics still show nothing.English copy lives under
social_leaderboard.feed.new_position, with agetFeedNewPositionTestIdhelper and unit tests covering open vs closed and rows that still have value/P&L.Reviewed by Cursor Bugbot for commit 23bab61. Bugbot is set up for automated code reviews on this repo. Configure here.