-
Notifications
You must be signed in to change notification settings - Fork 102
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
Fix TWAP and Limit Order Status Display #5305
Conversation
* feat: hide orders table widget * feat: hide orders table widget for limit and twap
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
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.
Hey @fairlighteth , great, but there are still some issues;
- Partially filled TWAP parent order does not show this message in the Fills at column
- No status is displayed for a parent TWAP order when it is cancelled+expired:
'Order filled' is displayed for a 'Signing' stateFixed in Enhance iOS UI, Unify Styling, and Disable Global USD Mode #5309
(nitpick) I've found an order where a percentage looks glued to the Status columnFixed in Enhance iOS UI, Unify Styling, and Disable Global USD Mode #5309
- "Order cancelled" is not displayed at "fills at" column for a partially filled limit order
Thanks!
…col/cowswap into feat/limit-ui-upgrade-15 # Conflicts: # apps/cowswap-frontend/src/common/updaters/orders/SpotPricesUpdater.ts
<> | ||
{getIsFinalizedOrder(order) ? ( | ||
order.executionData.partiallyFilled || order.status === OrderStatus.FULFILLED ? ( | ||
const renderFillsAt = () => { |
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.
It must be a separate component
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.
The whole OrderRow
component needs to be decomposed into small pure components.
Please, try to keep component files up to ~200 lines of code.
This is the problem of prototype mode is we end up with this situation. If we need, let's take a moment to cleanup now (if it doesn't impact the date) or right after to keep the tech debt in line |
@anxolin yes, I just realised that. |
…l/cowswap into feat/limit-ui-upgrade-15 # Conflicts: # apps/cowswap-frontend/src/common/updaters/orders/SpotPricesUpdater.ts
Addressed comments in #5320 |
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.
Approving as all cases are fixed in #5320 PR
As for this case
Order cancelled" is not displayed at "fills at" column for a partially filled limit order
it looks good to me in the current implementation.
Thanks
Fix TWAP and Limit Order Status Display
This PR improves how order statuses are displayed in the "fills at" column for both TWAP parent orders and limit orders.
Changes
TWAP Parent Orders
Limit Orders
Testing
Verified display for various order states:
Visual Examples