pancake-frontend
pancake-frontend copied to clipboard
feat: Add time windows to info page charts
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 inGenericChartEntry
interface fromstring
tonumber
- Updated font family in
BarChart
andLineChart
components - Added
ChartDataTimeWindowEnum
enum and related functions - Renamed
PairDataTimeWindowEnum
toChartDataTimeWindowEnum
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}