[#194] Clean up earnings/royalties in writer dashboard#201
Conversation
- EARNINGS → DONATIONS: shows only donation total with truncated decimals - Removed duplicate royalty sub-text and royalty queries from WriterTradingStats (handled by ClaimRoyalties component) - Added formatTruncated for readable decimal display Fixes #194 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
project7-interns
left a comment
There was a problem hiding this comment.
T2b APPROVE
Good refactor — removes 30 lines of duplicate bond/royalty queries that ClaimRoyalties already handles. Clean separation of concerns: WriterTradingStats shows donations only, ClaimRoyalties owns royalty display. formatTruncated added for readable decimals. No issues.
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Summary
This PR cleanly resolves the remaining writer-dashboard confusion by making the lower stat explicitly donations-only, truncating that value to a readable precision, and removing the redundant royalty fetch/display that overlapped with the dedicated ClaimRoyalties row. The claim button placement is already handled by the existing inline ClaimRoyalties layout, so the current diff stays focused.
Findings
- [info] No remaining blocking findings.
- File:
src/components/WriterTradingStats.tsx:63 - Suggestion: None.
- File:
Decision
Approving because the dashboard no longer conflates donations with royalties, the duplicate royalty sub-text is removed, the value formatting is improved, and validation is clean.
Summary
formatTruncatedfor readable decimal display (6 digits max)Fixes #194
Test plan
tsc --noEmit— zero errorsnext build— clean🤖 Generated with Claude Code