pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

feat: Add time windows to info page charts

Open memoyil opened this issue 7 months ago • 2 comments


PR-Codex overview

The focus of this PR is to update time-related data structures and functions across various components for consistency and clarity.

Detailed summary

  • Updated time field in GenericChartEntry interface from string to number
  • Updated font family in BarChart and LineChart components
  • Added ChartDataTimeWindowEnum enum and related functions
  • Renamed PairDataTimeWindowEnum to ChartDataTimeWindowEnum in multiple components
  • Updated time window handling in various hooks and components

The following files were skipped due to too many changes: apps/web/src/views/V3Info/data/protocol/chart.ts, apps/web/src/state/swap/hooks.ts, apps/web/src/views/Info/Pools/PoolPage.tsx, apps/web/src/views/V3Info/components/LineChart/alt.tsx, packages/uikit/src/components/Chart/PairPriceChart.tsx, apps/web/src/views/Info/Tokens/TokenPage.tsx, apps/web/src/views/V3Info/components/BarChart/alt.tsx, apps/web/src/views/Info/components/InfoCharts/BarChart/index.tsx, apps/web/src/views/Info/components/InfoCharts/CandleChart/index.tsx, apps/web/src/views/Info/components/InfoCharts/LineChart/index.tsx, apps/web/src/views/V3Info/index.tsx, apps/web/src/views/V3Info/hooks/index.ts, apps/web/src/views/V3Info/views/TokenPage.tsx, apps/web/src/state/info/hooks.ts, apps/web/src/views/V3Info/views/PoolPage.tsx, apps/web/src/views/Info/components/InfoCharts/ChartCard/index.tsx, apps/web/src/views/V3Info/components/CandleChart/index.tsx

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

memoyil avatar Jul 04 '24 13:07 memoyil