-
Notifications
You must be signed in to change notification settings - Fork 122
feat(bridge): display combined fee in collapsed accordion #5921
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
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe changes introduce explicit Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant TradeRateDetails
participant useBridgeQuoteAmounts
participant getTotalCosts
User->>TradeRateDetails: Render component
TradeRateDetails->>useBridgeQuoteAmounts: Get bridge quote amounts
TradeRateDetails->>getTotalCosts: Calculate total costs (including bridgeFee)
getTotalCosts-->>TradeRateDetails: Return total costs
TradeRateDetails-->>User: Render with updated costs
sequenceDiagram
participant QuoteBridgeContent
participant useUsdAmount
participant TokenAmountDisplay
QuoteBridgeContent->>useUsdAmount: Convert bridgeFee to USD
QuoteBridgeContent->>TokenAmountDisplay: Render with bridgeFee and USD value
Suggested labels
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
yarn install v1.22.22 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (7)
🧰 Additional context used🧠 Learnings (7)📓 Common learnings
apps/cowswap-frontend/src/modules/bridge/pure/contents/QuoteBridgeContent/index.tsx (2)
apps/cowswap-frontend/src/modules/trade/utils/getReceiveAmountInfo.ts (1)
apps/cowswap-frontend/src/common/pure/TradeDetailsAccordion/index.tsx (1)
apps/cowswap-frontend/src/modules/trade/containers/TradeTotalCostsDetails/index.tsx (1)
apps/cowswap-frontend/src/modules/swap/containers/SwapRateDetails/index.tsx (6)
apps/cowswap-frontend/src/modules/tradeWidgetAddons/containers/TradeRateDetails/index.tsx (2)
🧬 Code Graph Analysis (3)apps/cowswap-frontend/src/modules/bridge/pure/contents/QuoteBridgeContent/index.tsx (1)
apps/cowswap-frontend/src/common/pure/TradeDetailsAccordion/index.tsx (1)
apps/cowswap-frontend/src/modules/swap/containers/SwapRateDetails/index.tsx (1)
🔇 Additional comments (19)
✨ 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 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, works fine now!
@coderabbitai review |
✅ Actions performedReview triggered.
|
Summary
Fixes https://www.notion.so/cownation/Fee-amount-is-wrong-on-the-collapsed-view-2238da5f04ca80ad941aec82a2b7c3ec?source=copy_link
To Test
See https://www.notion.so/cownation/Fee-amount-is-wrong-on-the-collapsed-view-2238da5f04ca80ad941aec82a2b7c3ec?source=copy_link
Summary by CodeRabbit
New Features
Refactor