Closed kacpergumieniuk closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
market-frontend | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 7, 2024 4:31pm |
Your organization has reached the subscribed usage limit. You can upgrade your account by purchasing a subscription at Stripe payment link
The recent changes significantly enhance the charting capabilities of the application by integrating new data sources and improving user interactivity. Users can effortlessly toggle between market and oracle data, select chart intervals, and visualize time-series data, resulting in a more engaging experience. These updates optimize data rendering and state management, enriching the overall user experience through improved visual feedback and functionality.
Files and Paths | Change Summary |
---|---|
components/Chart/Chart.tsx |
Added oracleData prop, introduced state for chartVariant , and modified rendering logic for conditional chart displays. |
components/Chart/ChartIntervalTab.tsx |
New component for managing chart interval selection, utilizing jotai for global state management. |
components/Chart/ChartVariantTab.tsx |
New component for selecting chart variants ('oracle' or 'market'), enhancing user interaction with visual feedback. |
components/Market/TradingHub/TradingHub.tsx |
Integrated new queries for oracle data, introduced chartInterval state, and modified rendering logic to accommodate the new data sources. |
components/Market/TradingHub/TradingHubChart.tsx |
Enhanced data handling for oracleData , introduced ConvertedOracleFeed interface for structured data representation. |
requests/endpoints.ts |
Updated API endpoint URLs to a versioned path, ensuring compatibility with the backend. |
requests/queries.ts |
Added new GraphQL queries for fetching hourly and 15-minute oracle chart data, expanding data availability for analysis. |
store/store.ts |
Introduced chartIntervalAtom for managing chart interval states. |
types/chartTypes.ts |
Defined new interfaces for data structures (CandleFeed , OracleFeed1HResponse , OracleFeed15MinResponse ) to enhance data modeling capabilities. |
sequenceDiagram
participant User
participant ChartInterface
participant TradingHub
participant Chart
User->>ChartInterface: Selects chart variant
ChartInterface->>TradingHub: Updates chosen variant
TradingHub->>Chart: Passes new data (market/oracle)
Chart->>User: Displays updated chart
🐰 In fields of green, the data flows,
A chart that dances, a tale that grows.
With buttons to press and intervals to see,
A rabbit's delight in the data spree!
Hops of joy, oh what a sight,
A world of numbers, pure delight! 📈✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
139
Summary by CodeRabbit
New Features
Enhancements