Skip to content
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

feat(limit): move to open orders after limit placed #3889

Merged

Conversation

alfetopito
Copy link
Collaborator

Summary

Addressing comment #3845 (comment)

Move to open orders tab after limit order is placed.

In the process did a big refactor on ordersTable module

To Test

  1. Got to limit orders history tab
  2. Place limit order
  • Should switch to open orders tab
  1. Recreate a limit order from history tab
  2. Place recreation order
  • Should switch to open orders tab

@alfetopito alfetopito self-assigned this Feb 20, 2024
Copy link

vercel bot commented Feb 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cosmos ✅ Ready (Inspect) Visit Preview Feb 20, 2024 1:52pm
explorer-dev ✅ Ready (Inspect) Visit Preview Feb 20, 2024 1:52pm
swap-dev ✅ Ready (Inspect) Visit Preview Feb 20, 2024 1:52pm
widget-configurator ✅ Ready (Inspect) Visit Preview Feb 20, 2024 1:52pm

@@ -89,6 +91,8 @@ export function useHandleOrderPlacement(
setPartiallyFillableOverride(undefined)
// Reset alternative mode if any
hideAlternativeOrderModal()
// Navigate to open orders
navigateToOpenOrdersTable()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main change/feature

Copy link
Contributor

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@alfetopito
Copy link
Collaborator Author

I'll merge to parent PR to consolidate.
If there are any further feedback I'll address in a separated PR.

@alfetopito alfetopito merged commit defe7d8 into feat/recreate-v2 Feb 21, 2024
11 checks passed
@alfetopito alfetopito deleted the feat/move-to-open-orders-after-limit-placed branch February 21, 2024 15:47
@github-actions github-actions bot locked and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants