forked from binary-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Likhith | Akmal / Vanilla options feature (binary-com#7033)
* Initial commit * added mobile view * feat: ✨ added info hints and mobile view * feat: ➕ displays vanilla options under trade types * feat: 🚧 incorporated mobile view * feat: 💄 added icons * feat: 💄 incorporated new UI changes * feat: 💄 added required styling * feat: 🎨 incorporated the changes for report section (#34) * feat: ✨ description changes * feat: ✨ incorporated strike field changes * feat: 🎨 fixed the title for mobile view stake field * feat: ✨ incorporated mobile view * feat: 🔥 removed master changes * feat: 🎨 incorporated payout button change * feat: purchase button text css * feat: ✨ disabled barrier drag for vanilla * fix: 🐛 strike field design fix * feat: 💄 incorporated info hint message for Payout button * fix: 🐛 title change * fix: 🐛 payout per point value fix * feat: ✨ incorporated barrier validation condition for vanilla * feat: ✨ computing min-max stake values * refactor: ♻️ incorporated review comments * feat: add vanilla contract card for desktop * feat: add vanilla contract card for contract details * feat: change label to strike for vanilla contracts in contract details * feat: use bid price for contract value * feat: add vanilla option card for recent positions * feat: ✨ incorporated condition to show contract audit * feat: ✨ incorporated strike and Payout per point values in open position * feat: ✨ incorporated chart floating message change for vanilla trade * fix: enable collapsible button for vanilla contracts * feat: 🎨 incorporated chart long code message for vanilla * feat: ⚡ incorporated contract card for mobile * feat: ✨ incorporated chart markers for mobile and desktop * feat: ✨ incorporated currency unit for Payout per point * feat: 🎨 color refactor * feat: add responsive vanilla options card * fix: strike formatting * feat: add vanilla trade types component * feat: implement new design for vanilla trade types * fix: sort ui store * fix: sort trade store * fix: UI changes for vanilla option trade params * feat: new design for trade parameters on mobile * fix: remove unused variable * fix: strike spot area * feat: change design for vanilla option open positions for mobile * fix: refactor code * fix: merge issue * feat: ♻️ incorporated review comments * fix: review comments * refactor: ♻️ incorporated review comments * refactor: ♻️ incorporated view port sizes * fix: remove comments * fix: unlocalized strings * fix: populate barrier options on error response * fix: 🐛 report title fix * fix: daily VO contracts to show in recent positions * fix: update to latest content * fix: content issues * feat: add sorting logic for trade types * fix: 🐛 resolved input validation failed error * fix: incorrect label for vanilla calls * fix: the icon is incorrect for some of the trades * fix: 🐛 strike price is empty when there is duration change * fix: 🐛 strike price dropdown is empty for day duration change * fix: 🐛 modified stake boundary calculation for vanilla opts * fix: callout not showing in contract details * fix: 🐛 removed unused code snip * fix: 🐛 capture stake boundary on error * fix: merge conflicts * fix: 🐛 ensuring correct boundary is set based on type of Vanilla contract * fix: 🐛 set strike vlaue and list on error response * fix: remove currency based rounding for usd amounts * fix: payout rounding value * fix: format numbers based on currency in p&l callout * fix: change colors for vanilla closed contracts * fix: 🐛 call proposal API on strike change * feat: changed vanilla trade description * feat: content change * fix: 🐛 added missing label * fix: align profit label only when it appears on the screen * fix: 🐛 corrected field name * fix: 🐛 refactored code to support additional configs * fix: change icon colors in dark mode * fix: 🐛 incorporated + sign in reports * fix: 🐛 resolved issue with double error message * fix: exit spot placement on y-axis * feat: modified the content as per figma * fix: tooltip alignment for strike description * fix: size units * feat: change content everywhere according to latest design * feat: 🎨 added tooltip for stake * feat: incorporated styles to stake tooltip * fix: 🐛 fixed the type issue * chore: ♻️ incorporated naming conventions * feat: change paddings and profit/loss label positioning in mobile * feat: content update as per figma * fix: incorrect profit logic for prematurely sold contracts * feat: change mobile modal to tooltip * feat: 💄 set the layout for vanilla trade --------- Co-authored-by: Likhith Kolayari <likhith@regentmarkets.com> Co-authored-by: Likhith Kolayari <98398322+likhith-deriv@users.noreply.github.com>
- Loading branch information
1 parent
c80dba7
commit bd1b72b
Showing
80 changed files
with
2,218 additions
and
765 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
packages/components/src/components/contract-card/contract-card-items/contract-type-cell.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
packages/components/src/components/data-list/data-list-cell.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/components/src/components/icon/contract/ic-contract-payout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
packages/components/src/components/icon/contract/ic-contract-strike.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ges/components/src/components/icon/tradetype/ic-tradetype-vanilla-long-call.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
...ages/components/src/components/icon/tradetype/ic-tradetype-vanilla-long-put.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.