Problem
PR #201 ([#194]) introduced regressions in the writer dashboard storyline cards:
1. Donations duplicated
The top-level 3-column grid (Plots / Created / Donations) already shows donations via DonationCount.
But WriterTradingStats also renders a "Donations" column as its first item.
Fix: Remove the Donations column from WriterTradingStats.tsx — it should only show Token Price and TVL (2-col grid or keep 3-col with something else).
2. Royalties in wrong location
Currently ClaimRoyalties renders as a separate block below WriterTradingStats.
Fix: Royalties should appear on the bottom-left of the card, integrated into the stats area. When unclaimed > 0, the amount text should be green (text-accent), not default color.
3. Tiny royalty amounts show as "0 WETH"
formatUnits with 18 decimals truncates tiny values like 324500000000 wei (0.0000003245 WETH) to "0".
Fix: Use the formatTruncated helper (already in WriterTradingStats.tsx) with enough decimal digits (e.g. 10) to display tiny amounts. Never show "0" when the actual value is nonzero.
4. Claim button disconnected from royalties
The Claim button is on the far right, visually separated from the royalty amount.
Fix: Place the Claim button directly below or immediately next to the royalty amount, not on the opposite side of the card.
Files
src/components/WriterTradingStats.tsx — remove duplicate Donations column
src/components/ClaimRoyalties.tsx — fix tiny amount display (use formatTruncated), adjust layout so claim button is adjacent to royalty amount, green text when > 0
src/app/dashboard/writer/page.tsx — may need layout adjustment for royalties placement
Acceptance Criteria
Problem
PR #201 ([#194]) introduced regressions in the writer dashboard storyline cards:
1. Donations duplicated
The top-level 3-column grid (Plots / Created / Donations) already shows donations via
DonationCount.But
WriterTradingStatsalso renders a "Donations" column as its first item.Fix: Remove the Donations column from
WriterTradingStats.tsx— it should only show Token Price and TVL (2-col grid or keep 3-col with something else).2. Royalties in wrong location
Currently
ClaimRoyaltiesrenders as a separate block belowWriterTradingStats.Fix: Royalties should appear on the bottom-left of the card, integrated into the stats area. When unclaimed > 0, the amount text should be green (
text-accent), not default color.3. Tiny royalty amounts show as "0 WETH"
formatUnitswith 18 decimals truncates tiny values like324500000000wei (0.0000003245 WETH) to "0".Fix: Use the
formatTruncatedhelper (already in WriterTradingStats.tsx) with enough decimal digits (e.g. 10) to display tiny amounts. Never show "0" when the actual value is nonzero.4. Claim button disconnected from royalties
The Claim button is on the far right, visually separated from the royalty amount.
Fix: Place the Claim button directly below or immediately next to the royalty amount, not on the opposite side of the card.
Files
src/components/WriterTradingStats.tsx— remove duplicate Donations columnsrc/components/ClaimRoyalties.tsx— fix tiny amount display (use formatTruncated), adjust layout so claim button is adjacent to royalty amount, green text when > 0src/app/dashboard/writer/page.tsx— may need layout adjustment for royalties placementAcceptance Criteria