Updates and improvements on hifi-endpoint#288
Conversation
…oken price and native token search on top of the search list
WalkthroughThis set of changes updates error messages and UI behaviors in the TokenAtlas application's graph and token information components. It introduces clearer error messaging for unavailable graph data, adds new logic for displaying the latest token price based on graph data, and incorporates a loading state for the graph. The Redux selector and local state management are enhanced, and tests are updated to reflect these changes. Additionally, the graph data resolution for the "DAY" period is changed to 1 minute, the skeleton loader component now supports a margin-top prop, and the order of token search results is adjusted to prioritize Fuse.js matches. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant TokenGraphColumn
participant ReduxStore
participant TokenGraph
User->>TokenGraphColumn: Selects token or changes period
TokenGraphColumn->>ReduxStore: Dispatches actions (e.g., setIsGraphLoading)
ReduxStore-->>TokenGraphColumn: Updates graph loading state and token data
TokenGraphColumn->>TokenGraph: Passes props (data, loading, error)
TokenGraph-->>TokenGraphColumn: Renders graph or error message
TokenGraphColumn-->>User: Displays latest price, skeleton loader, or error
Possibly related PRs
Suggested reviewers
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (5)
📒 Files selected for processing (7)
🧰 Additional context used🧬 Code Graph Analysis (2)src/components/SkeletonLoader.tsx (1)
src/apps/token-atlas/components/TokenGraphColumn/test/TokenGraphColumn.test.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (17)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Deploying x with
|
| Latest commit: |
6c72619
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4f00990b.x-e62.pages.dev |
| Branch Preview URL: | https://fix-pro-3190-hifi-endpoint-r.x-e62.pages.dev |
Description
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Summary by CodeRabbit
New Features
Bug Fixes
Improvements
Tests