Skip to content

feat: Add tp&sl lines to Perps chart#18005

Merged
gambinish merged 5 commits into
mainfrom
feat/perps-chart-improvements-v2
Aug 5, 2025
Merged

feat: Add tp&sl lines to Perps chart#18005
gambinish merged 5 commits into
mainfrom
feat/perps-chart-improvements-v2

Conversation

@gambinish

Copy link
Copy Markdown
Member

Description

Adds TP&SL lines to Perps chart

Changelog

CHANGELOG entry: Adds TP&SL lines to Perps chart

Related issues

Fixes:

Manual testing steps

Create multiple perps positions, add Take Profit, Stop Loss prices. Lines should reflect these data points.

Screenshots/Recordings

Screen.Recording.2025-08-05.at.1.33.22.PM.mov

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@github-actions

github-actions Bot commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@gambinish gambinish added QA Passed QA testing has been completed and passed No E2E Smoke Needed labels Aug 5, 2025
@gambinish gambinish marked this pull request as ready for review August 5, 2025 21:03
@gambinish gambinish requested a review from a team as a code owner August 5, 2025 21:03
cursor[bot]

This comment was marked as outdated.

@Matt561 Matt561 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see in your demo that the TP/SL lines don't render initial and appear after changing the candle period. Is this intentional?

Otherwise LGTM! 👍

@Matt561

Matt561 commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

@gambinish Let's also fix that one minor SonarCloud issue about the unnecessary fragment if it's legit

@gambinish gambinish added team-perps Perps team and removed team-assets labels Aug 5, 2025
@gambinish

Copy link
Copy Markdown
Member Author

I see in your demo that the TP/SL lines don't render initial and appear after changing the candle period. Is this intentional?

Otherwise LGTM! 👍

Yeah, so I'm not sure if we're going to find a way around this, unless we write a hack or something that sets and interval before rendering.

The grid lines and tp/sl lines are both handled outside of the wagmi chart library's context, so they inevitably render in different times. I'll spend some time looking into this to see if I can make it any smoother.

@gambinish gambinish requested a review from Matt561 August 5, 2025 22:32
@gambinish

Copy link
Copy Markdown
Member Author

@Matt561 I've added a small timeout to render the tpsl lines after the candles load in. Feels like better UX that way

Matt561
Matt561 previously approved these changes Aug 5, 2025
@gambinish gambinish enabled auto-merge August 5, 2025 22:38
@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2025

Copy link
Copy Markdown

@gambinish gambinish added this pull request to the merge queue Aug 5, 2025
Merged via the queue into main with commit 4bb4d0f Aug 5, 2025
44 checks passed
@gambinish gambinish deleted the feat/perps-chart-improvements-v2 branch August 5, 2025 23:35
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 5, 2025
@metamaskbot metamaskbot added the release-7.55.0 Issue or pull request that will be included in release 7.55.0 label Aug 5, 2025
@tommasini tommasini added release-7.54.0 Issue or pull request that will be included in release 7.54.0 and removed release-7.55.0 Issue or pull request that will be included in release 7.55.0 labels Aug 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

QA Passed QA testing has been completed and passed release-7.54.0 Issue or pull request that will be included in release 7.54.0 team-perps Perps team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants