-
Notifications
You must be signed in to change notification settings - Fork 3
Add pods market action menu #292
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
✅ Deploy Preview for pintomoney ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
copying feedback for @burr-nim's visibility: remaining features to add:
Otherwise, this is heading in the right direction. Good work. |
Remove slide animation while pod hover animation
|
closed in favor of #303 |
This pull request adds a context menu feature to the Market page, enabling users to right-click or click on empty space in the scatter chart to quickly create orders or listings with prefilled values. It also refactors the chart click handling to provide richer payloads and updates the CreateOrder and CreateListing pages to accept and process prefilled form values. The main changes are grouped below:
Market chart context menu feature:
ContextMenucomponent (src/components/MarketContextMenu.tsx) that displays options at the click location and closes on outside click or Escape.src/pages/Market.tsx) to show the context menu when the user clicks on empty space in the scatter chart, passing clicked coordinates, and to handle option selection for creating orders or listings with prefilled values. [1] [2] [3] [4]Chart click payload improvements:
ScatterChartto emit aPointClickPayloadobject on click, containing chart coordinates, scale ranges, and active element info if a data point is clicked. Updated the chart interaction mode to improve point detection and click handling. [1] [2] [3] [4]Prefill support in order/listing creation flows:
CreateOrderandCreateListingpages to accept prefill values via React Router location state, and automatically fill form fields (price, place in line, expiration) when arriving from the context menu. Cleans up location state after use. [1] [2] [3] [4] [5] [6]Miscellaneous chart improvements: