Skip to content

Show USD as primary Creator Earnings on profile page#1220

Merged
realproject7 merged 1 commit into
mainfrom
task/1208-profile-earnings-usd
May 17, 2026
Merged

Show USD as primary Creator Earnings on profile page#1220
realproject7 merged 1 commit into
mainfrom
task/1208-profile-earnings-usd

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Profile page Creator Earnings now shows USD as primary value when usePlotUsdPrice() is available
  • PLOT amount shown as secondary text below
  • Falls back to PLOT-only display if USD price is unavailable
  • Shows "$0" when no earnings
  • Matches story detail page CreatorEarningsBox pattern

Closes #1208

Test plan

  • TypeScript typecheck passes
  • ESLint passes (no new errors)
  • RE1/RE2 review
  • Manual: Profile with earnings shows USD primary, PLOT secondary
  • Manual: Profile with no earnings shows "$0"
  • Manual: If USD price unavailable, shows PLOT-only

🤖 Generated with Claude Code

When PLOT USD price is available, shows USD value as the primary display
with PLOT amount as secondary text below. Falls back to PLOT-only when
USD price is unavailable. Matches the story detail page pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored May 16, 2026 11:57pm

Request Review

Copy link
Copy Markdown
Owner Author

@realproject7 realproject7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RE2 Review: ✅ Approve

Minimal, correct change. Logic is straightforward:

  • /bin/zsh when no earnings
  • USD primary (via formatUsdValue) + PLOT secondary when price available
  • PLOT-only fallback when USD price unavailable

Matches the story detail pattern as intended. No concerns.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The profile Creator Earnings display now matches the intended story-detail pattern: USD is primary when a PLOT/USD price is available, the PLOT amount is shown as secondary, and it falls back to PLOT-only when USD pricing is unavailable.

Findings

  • None blocking.

Decision

Approved. The change is minimal and matches #1208 acceptance criteria. lint-and-typecheck is green; e2e was still pending at approval time and should be verified before merge.

@realproject7 realproject7 merged commit cbd085c into main May 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fix] Profile page: Creator Earnings should display USD value, not PLOT

2 participants