-
Notifications
You must be signed in to change notification settings - Fork 122
fix(progress-bar): combinatory auctions #5866
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
WalkthroughThe code was updated to improve data normalization and filtering for solver competition data in the order progress bar hooks. Solver names are now consistently lowercased, invalid entries are filtered out, and merging is performed to ensure unique, valid solver entries. Minor import order and function signature adjustments were also made. Changes
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 (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
✨ 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 (
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apps/cowswap-frontend/src/modules/orderProgressBar/hooks/useOrderProgressBarProps.ts
(4 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
apps/cowswap-frontend/src/modules/orderProgressBar/hooks/useOrderProgressBarProps.ts (3)
apps/cowswap-frontend/src/modules/orderProgressBar/types.ts (1)
SolverCompetition
(38-38)libs/widget-lib/src/types.ts (1)
SupportedChainId
(4-4)apps/cowswap-frontend/src/modules/orderProgressBar/state/atoms.ts (1)
updateOrderProgressBarBackendInfo
(110-145)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Setup
- GitHub Check: Cypress
🔇 Additional comments (4)
apps/cowswap-frontend/src/modules/orderProgressBar/hooks/useOrderProgressBarProps.ts (4)
29-29
: Import order change looks good.The swapped import order has no functional impact and maintains readability.
487-487
: Good addition of explicit return type.Adding the explicit
void
return type improves code clarity and type safety.
489-500
: Solver name normalization implementation looks solid.The renaming from
solverCompetition
tovalue
improves clarity, and the lowercase transformation addresses case inconsistency issues between the API and CMS data. The effect dependency array is correctly updated.
531-531
: Consistent lowercase normalization in lookup.This change aligns with the lowercase normalization applied in the data transformation, ensuring consistent behavior across the codebase.
apps/cowswap-frontend/src/modules/orderProgressBar/hooks/useOrderProgressBarProps.ts
Show resolved
Hide resolved
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.
I've done tests on all networks, works as expected everywhere.
However, I have not faced the case where solver's amount is null. Will keep my eye on it
68539fb
to
26c08f0
Compare
Summary
This fix addresses the new reality which arrived with combinatory auctions:
So this change:
To Test
status
executedAmounts
isnull
. Those should not show up in the UIexecutedAmounts
filled in the networks consoleSummary by CodeRabbit