introduces dydxNumberInputFormatter which can format numbers to nearest 0.1, .01, .001 etc as well as nearest 10, 100, 1000. This formatter can be used with SwiftUI TextField to format input more "swifty"
fixes an issue with TP/SL where the user's input is overwritten for existing orders due to combine publishers republishing same trigger order data. fix was to split out the publishers
updates TP/SL UI to use new slider amount input view
fixes an issue where button text area was empty for certain errors. fix was to add default behavior
Before/After Screenshots or Videos
Before
After
editing/creating tp/sl order
canceling tp/sl order
target leverage
Type of Change
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Links (dYdX Internal Use Only)
Linear Ticket: MOB-602 : Add Slider to Target Leverage Screen
Figma Design: https://www.figma.com/design/mKevZOfE9nj6MZpiolKYW1/dYdX-%E2%80%BA-Mobile?node-id=5621-14698&t=FfqZ4StoFfdqNtJe-4
Description / Intuition
dydxNumberInputFormatter
which can format numbers to nearest 0.1, .01, .001 etc as well as nearest 10, 100, 1000. This formatter can be used with SwiftUI TextField to format input more "swifty"Before/After Screenshots or Videos
Type of Change