Skip to content

Writer Stats: rename to 'Donations Received' + add 'Royalties Claimed' row #750

@realproject7

Description

@realproject7

Changes to Writer Stats dashboard (Image 248)

1. Rename donation info

Current: `Received: 150.00 PLOT ($2.49)`
After: `Donations Received: 150.00 PLOT ($2.49)`

2. Add Royalties Claimed total below

Add a new row showing the sum of all claimed royalties across all storylines:

```
Donations Received: 150.00 PLOT ($2.49)
Royalties Claimed: 4.23 PLOT ($0.070)
```

This is the cumulative total of royalties the writer has claimed so far (already available from the `claimedRoyalties` query on the profile page — it reads `getRoyaltyInfo` which returns both unclaimed and total claimed).

Keep it simple: just display the existing `claimedRoyalties` value that's already fetched. No new queries needed — the data is already on the page (used in the wallet card).

Files to modify

  • `src/app/profile/[address]/page.tsx` — Writer Stats section

Branch

`task/750-writer-stats-labels`

Self-Verification (T3)

  • "Received" renamed to "Donations Received"
  • "Royalties Claimed" row added with PLOT + USD value
  • Uses existing `claimedRoyalties` data (no new queries)
  • Mobile: doesn't overflow
  • `npm run build` passes

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/T3Assigned to T3 builder agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions