Skip to content

Remove price change percentage display from chart tooltips - #2130

Merged
MusabShakeel576 merged 1 commit into
qafrom
claude/brave-wright-g1cwwj
Jun 9, 2026
Merged

Remove price change percentage display from chart tooltips#2130
MusabShakeel576 merged 1 commit into
qafrom
claude/brave-wright-g1cwwj

Conversation

@MusabShakeel576

Copy link
Copy Markdown
Contributor

Summary

This PR removes the price change percentage feature from chart tooltips across all chart components. The percentage change calculation and conditional rendering logic has been stripped out, simplifying the tooltip UI to display only the price and date information.

Key Changes

  • ChartTooltip.tsx:

    • Removed isPriceChange prop from component interface
    • Removed cn utility import (no longer needed)
    • Removed selectedPriceChange from store subscription
    • Removed conditional rendering of percentage change text with color styling
    • Simplified tooltip layout to show only price and date
  • AreaChart.tsx:

    • Removed priceChange field from tooltip data state
    • Removed percentage change calculation logic (calculatePercentageChange call)
    • Removed conditional rendering of price change percentage in native tooltip UI
    • Simplified tooltip data structure to only track price and date
  • AreaChart.web.tsx:

    • Removed isPriceChange prop when passing to ChartTooltip component

Implementation Details

The changes maintain the core tooltip functionality while reducing visual complexity. The percentage change calculation logic remains exported from ChartTooltip.tsx but is no longer used by any components. The tooltip now consistently displays only the formatted price and formatted date across both web and native implementations.

https://claude.ai/code/session_01KE3gjUzyjkEN8ntFCkDTNC

The savings rate chart (savings page) and token price chart (coins/[id]
page) tooltips showed a period-over-period percentage change next to the
date. Remove that change indicator from both the web (recharts
ChartTooltip) and native (AreaChart) tooltips so they only display the
value and the date.

The selectedPriceChange store update is kept so the coin detail header's
price-change indicator continues to work.

https://claude.ai/code/session_01KE3gjUzyjkEN8ntFCkDTNC
@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

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

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
solid-app Ignored Ignored Jun 9, 2026 9:26am
solid-app-staging Ignored Ignored Jun 9, 2026 9:26am

Request Review

@MusabShakeel576
MusabShakeel576 merged commit 55bc772 into qa Jun 9, 2026
4 of 5 checks passed
@MusabShakeel576
MusabShakeel576 deleted the claude/brave-wright-g1cwwj branch June 9, 2026 09:27
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.

2 participants