-
Notifications
You must be signed in to change notification settings - Fork 559
Fix: Universal Bridge Analytics Parsing and Team Analytics Loading State #7288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
• Refactor analytics page into smaller async components with proper loading states • Add Promise.allSettled for better error handling in analytics data fetching • Fix date comparison logic using ISO string comparison for Universal Bridge metrics • Add infinity check for trend values to prevent display issues • Replace generic loading page with specific chart loading skeleton states 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Warning Rate limit exceeded@github-actions[bot] has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 7 minutes and 45 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (84)
WalkthroughThis update introduces BridgeEmbed 2.0, a comprehensive cross-platform payment and bridge widget for React and React Native. It adds a modular state machine-driven UI, hooks, adapters, error handling, and Storybook stories for multi-step blockchain payment flows. The PR also refactors dashboard analytics, updates bridge/pay conversion logic, and enhances documentation and testing. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant BridgeEmbed
participant StateMachine
participant Hooks
participant Adapters
participant SDK
participant Wallet
User->>BridgeEmbed: Initiate payment/bridge flow
BridgeEmbed->>StateMachine: Initialize with mode and adapters
StateMachine->>Hooks: Fetch payment methods, routes, quotes
Hooks->>SDK: Request bridge/payment data
SDK-->>Hooks: Return data (routes, quotes, tokens)
Hooks-->>StateMachine: Provide payment methods/quotes
StateMachine->>BridgeEmbed: Update UI state (selection, preview, execution)
User->>BridgeEmbed: Select payment method, confirm details
BridgeEmbed->>StateMachine: Dispatch events (selection, confirm, execute)
StateMachine->>Hooks: Prepare and execute steps
Hooks->>Wallet: Send transactions, sign, switch chain
Wallet-->>Hooks: Return transaction status/receipts
Hooks-->>StateMachine: Report execution progress/completion/errors
StateMachine->>BridgeEmbed: Update UI (progress, success, error)
User->>BridgeEmbed: Retry/cancel as needed
Possibly related PRs
Suggested reviewers
✨ 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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
size-limit report 📦
|
PR-Codex overview
This PR introduces several enhancements and new features across various components in the
thirdweb
package, including type definitions, UI adjustments, and error handling improvements.Detailed summary
Action
type inBridgeAction.ts
.modalMaxWidthCompact
inconstants.ts
.getQueryOptions
inuseChainQuery.ts
.WindowAdapter
interface for platform-specific functionality.mapBridgeError.ts
.useBridgeRoutes
anduseBridgeError
hooks.FiatProviderSelection
component for selecting payment providers.TokenBalanceRow
,ErrorBanner
, andSuccessScreen
.WalletRow
.Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Style
Tests
Chores