Skip to content

[#856] Live USD token price + historical chart labeling#857

Merged
realproject7 merged 1 commit intomainfrom
task/856-price-semantics-usd
Apr 12, 2026
Merged

[#856] Live USD token price + historical chart labeling#857
realproject7 merged 1 commit intomainfrom
task/856-price-semantics-usd

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Renamed chart heading "Price" → "Price History" (3 instances) to clearly indicate historical data, not real-time
  • Created TokenPriceBox client component that shows live USD price as primary, PLOT as secondary — uses the same usePlotUsdPrice hook (Mint Club SDK → GeckoTerminal → CoinGecko fallback chain)
  • Replaced static PLOT-only token price in story header stats with TokenPriceBox
  • Patch version bump 0.1.21 → 0.1.22

Price semantics (documented for consistency)

  • Header "Token Price" = live current USD via usePlotUsdPrice — aligned with Mint Club
  • Chart "Price History" = historical trade-derived prices with optional USD toggle via stored reserve_usd_rate

Fixes #856

Test plan

  • Story page header: token price shows USD primary (e.g. "$0.0001"), PLOT secondary (e.g. "0.0052 PLOT")
  • Story page header: falls back to PLOT-only if USD price unavailable
  • Chart sidebar/mobile: heading reads "Price History" instead of "Price"
  • Chart USD/PLOT toggle still works correctly
  • No SSR hydration warnings (TokenPriceBox is a client component)

🤖 Generated with Claude Code

- Rename chart heading "Price" → "Price History" to clarify it shows
  historical trade data, not a real-time feed
- Add TokenPriceBox client component: shows live USD price as primary
  (via same Mint Club SDK/GeckoTerminal source), PLOT price as secondary
- Replace static PLOT-only price in story header stats with TokenPriceBox
- Patch version bump 0.1.21 → 0.1.22

Price semantics (for future reference):
  - Header "Token Price" = live current USD via usePlotUsdPrice hook
  - Chart "Price History" = historical trade-derived prices with USD toggle

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 12, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 12, 2026 6:03am

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 APPROVE — Verified all imports resolve, usePlotUsdPrice is the same hook used by MarketCapBox (confirmed price parity with Mint Club). Chart heading renamed in all 3 instances. TokenPriceBox gracefully falls back to PLOT-only when USD is unavailable. Clean and well-scoped.

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 PR cleanly separates the two price semantics requested in #856: the header token price now uses the live spot basis with USD as primary, while the chart is explicitly labeled as historical data.

Findings

  • [info] GitHub checks are still pending at review time (e2e, lint-and-typecheck, visual-regression)
    • File: PR #857
    • Suggestion: Let CI finish before merge.

Decision

Approved because the implementation is focused, uses the existing live price and USD-rate paths already present in the codebase, and matches the issue’s acceptance criteria without changing the historical chart logic.

@realproject7 realproject7 merged commit 7c112f3 into main Apr 12, 2026
5 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.

[Follow-up] Story token price semantics: live current USD price + historical chart labeling

2 participants