Closed kacpergumieniuk closed 3 months 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 | Jul 21, 2024 4:12pm |
The changes introduce a significant enhancement to the charting functionality across multiple components, allowing the Chart
, TradingHub
, and TradingHubChart
to handle distinct datasets for market and oracle prices. This results in improved data management, user interaction through toggling visibility of datasets, and a more structured approach to API queries and type definitions. The overall goal is to create a richer, more comprehensive trading experience.
Files | Change Summary |
---|---|
components/Chart/Chart.tsx , components/Market/TradingHub/TradingHub.tsx , components/Market/TradingHub/TradingHubChart/TradingHubChart.tsx |
Updated components to support separate marketPriceData and oraclePriceData , enhancing interactivity and user control in chart rendering with new state management and toggling functionality. |
components/Market/TradingHub/TradingHubContentContainer.tsx |
Removed the unused CHART_FEED_QUERY import, simplifying dependencies while keeping core functionalities intact. |
requests/endpoints.ts |
Updated endpoint URLs to include versioning, enhancing API structure and management without altering functionality. |
requests/queries.ts |
Renamed CHART_FEED_QUERY to MARKET_PRICE_FEED_QUERY and added ORACLE_PRICE_FEED_QUERY , improving clarity and specificity in market data retrieval. |
types/chartTypes.ts |
Refactored chart-related types, renaming and introducing new interfaces for market and oracle price data, enhancing type safety and clarity in the codebase. |
sequenceDiagram
participant User
participant TradingHub
participant TradingHubChart
participant Chart
User->>TradingHub: Interacts with UI
TradingHub->>TradingHubChart: Passes marketPriceData and oraclePriceData
TradingHubChart->>Chart: Renders chart with data
Chart-->>User: Displays chart with toggled datasets
🐰 In a garden lush, where prices bloom,
The charts now dance, dispelling gloom.
With toggles bright and data clear,
A trader's joy, we hold so dear!
Hopping with glee, we chart the way,
To brighter trades, come what may! 🌼
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?
122
Summary by CodeRabbit
New Features
Improvements
Chores