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(bonsai-ui): migrate position action cell and triggers dialog, delete some old stuff #1465

Merged
merged 6 commits into from
Jan 27, 2025

Conversation

tyleroooo
Copy link
Contributor

No description provided.

@tyleroooo tyleroooo requested a review from a team as a code owner January 24, 2025 01:33
Copy link

vercel bot commented Jan 24, 2025

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

Name Status Preview Comments Updated (UTC)
v4-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 27, 2025 6:39pm
v4-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 27, 2025 6:39pm

Copy link
Contributor Author

@tyleroooo tyleroooo left a comment

Choose a reason for hiding this comment

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

notes to self, but I don't think these issues are blocking

);
},
});
const tpslOrdersByPositionUniqueId = useParameterizedSelector(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

more renders here

Copy link
Contributor

Choose a reason for hiding this comment

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

if we are using parameterized selector here, should we update getSubaccountConditionalOrders and remove the arrow function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

need it for the paramaterized to work

const { asset, entryPrice, size, stepSizeDecimals, tickSizeDecimals, oraclePrice } =
useParameterizedSelector(getPositionDetails, marketId) ?? {};
const { stopLossOrders, takeProfitOrders } = orEmptyObj(
useParameterizedSelector(getSubaccountConditionalOrders, isSlTpLimitOrdersEnabled)[
Copy link
Contributor Author

Choose a reason for hiding this comment

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

more renders here

src/lib/orders.ts Outdated Show resolved Hide resolved
src/lib/orders.ts Outdated Show resolved Hide resolved
src/lib/orders.ts Outdated Show resolved Hide resolved
@tyleroooo tyleroooo merged commit 505ba24 into main Jan 27, 2025
8 of 9 checks passed
@tyleroooo tyleroooo deleted the tu/take-profit branch January 27, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants