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

Merge master into dynamic leverage branch #402

Conversation

arshad-rao-deriv
Copy link

Changes:

Please provide a summary of the change.

Screenshots:

Please provide some screenshots of the change.

prince-deriv and others added 30 commits August 10, 2023 17:26
* chore: updated slack webhook URL

* chore: updated slack webhook URL
Co-authored-by: DerivFE <80095553+DerivFE@users.noreply.github.com>
…age (deriv-com#9464)

* feat: add unit tests

* refactor: incapsulated trade providers
…com#8398)

* refactor: add integr and unit tests for loader

* refactor: removed hardcoded test id
* fix: 🐛 display onfido error message

* fix: reverted change

* test: ✅ added testcases

* fix: test case names

* fix: added testcases
deriv-com#8483)

* fix: test coverage and ts migration for asset/trading/categories

* fix: codecov issues

* fix: codecov issues

* test: dynamic test component import

* fix: code smell add error handling

* fix: change from FC to componenttype

* fix: circleCi

* fix: circleCI

* fix: circleCi

* fix: failing test

* fix: circleCI
* chore: adding Korean language

* chore: changed Korean short form to KO from KR

* chore: fix translation issue in login history table

* chore: update all flags to follow the latest design system

* chore: Korean language on P2P

* chore: update deriv-charts to v1.3.2

* chore: empty

* translations: 📚 sync translations with crowdin (deriv-com#9607)

Co-authored-by: DerivFE <80095553+DerivFE@users.noreply.github.com>

* chore: empty

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: DerivFE <80095553+DerivFE@users.noreply.github.com>
* fix: disable account when proof failed

* fix: disable account when proof failed

* fix: flag

* fix: import

* fix: update with master
…m#9336)

* fix: 🐛 translation of IDV documents dropdown option

* fix: 🐛 translation of default config

* fix: 🐛 translation of default config

* fix: 🐛 removed unused-import

* fix: 🐛 refactored code

* fix: ♻️ incorporated review comments

* fix: 🐛 added missing function
…itionsMobile (deriv-com#9610)

* feat: handle displayed positions locally in mobile TogglePositions

* test: added a test

* chore: refactoring

* test: fix tests after conflict resolution
…bile browsers (deriv-com#9620)

* fix: completed order modal is not showing in mobile

* fix: add test case, fix error in chat component upon creating order

* refactor: destructure order in handleResponse
…ods in buy/sell page (deriv-com#8544)

* Create codeql.yml

* Create codeql-test.yml

* chore: removed codeql workflows

* chore: removed dccache

* chore: added escapeHtml function to login

* feat: added new flow for filter modal

* chore: removed old commits

* fix: fixed ui issues regarding requirements

* feat: changed reset flow

* feat: changed flow for reset, added status for filter modal icon

* chore: incorporated reviews

* chore: applied code review changes
…com#9064)

* fix: notifications_in_cashier_and_accounts

* fix: notification for maintenance

* fix: notification_filter

* fix: notification_filter

* fix: filter notifications in mobile

* fix: code_review_suggestions

* chore: merge master

* chore: resolve conflict

* fix: showing notification in mobile
* feat: ✨ adds financial assessment notification

* refactor: 🎨 sorts the object block

* feat: ✨ displays financial assessment notification on trigger from backend

* chore: 🚑 resolves merge conflict with master

* test: 🧪 adds test case for app-notification

* test: 🧪 adds test cases for notification
* chore: change text

* chore: apply suggestion
* feat: add video for vanilla

* refactor: add tests and change file structure

* refactor: video component and test

* refactor: change folders name and add more videos

* refactor: apply suggestions

* chore: rename data test id

* chore: correct spelling

* chore: remove optional data test id

* refactor: add backup

* fix: tests
… data (deriv-com#9618)

* chore: incorporated the API response to save the opt-out user data

* chore: incorporated the API response to save the opt-out user data

* chore: incorporated the API response to save the opt-out user data

* chore: incorporated the API response to save the opt-out user data

* chore: incorporated review comments

* chore: incorporated review comments

* chore: incorporated review comments

* fix: error displayed for MF account creation

* Merge branch 'master' into likhith/KYC-362/track-idv-opt-out-during-account-creation
Co-authored-by: DerivFE <80095553+DerivFE@users.noreply.github.com>
* chore: fix Oneall social unlinking from Apple accounts

* Revert "chore: fix Oneall social unlinking from Apple accounts"

This reverts commit 84009b0.

* chore: remove eslint ignore
Co-authored-by: DerivFE <80095553+DerivFE@users.noreply.github.com>
* feat: transaction details modal

* feat: complete test cases for TransactionDetails modal

* chore: fix code smells

* chore: fix code smells

* chore: remove code smells

* chore: redeploy

* chore: move transaction details types to types folder

* chore: show enrty and exit tick if available

* fix: transaction scroll css issue fix

* fix: update key with data for divider inside transaction details modal

* fix: update buy price to have decimal value

* fix: css issue on modal height and fixed decimal profit/loss

* fix: fix style for modal getting cut

* fix: modal css issue after build

* fix: decrease the modal height for edge cutting issue

* fix: hide download button on mobile
* fix: registration flow in buy/sell tab

* fix: added unit test
* Merge branch 'master' into farzin/wall-252/replace_the_use_of_cashier_store_in_other_packages_with_shared_hooks

* Merge branch 'farzin/wall-252/replace_the_use_of_cashier_store_in_other_packages_with_shared_hooks' into farzin/wall-434/separate_cashier_onboarding_to_a_new_route

* fix(cashier): 📝 resolve conflict

* feat(cashier): 🔥 remove `AccountPromptDialogStore`

* fix(cashier): ✅ fix failing tests

* feat(cashier): 🔥 remove `onMountCashierOnboarding`

* fix(cashier): ✅ fix `CashierOnboardingP2PCard`

* Merge branch 'master' into farzin/wall-434/separate_cashier_onboarding_to_a_new_route

* Merge branch 'master' into farzin/wall-434/separate_cashier_onboarding_to_a_new_route

* fix(cashier): 🐛 fix dialog issue

* fix(cashier): 📝 resolve PR comments

* refactor(cashier): ♻️ `CashierOnboardingModule` clean-up

* feat(cashier): ✨ add `useDepositCryptoAddress` hook

* feat(cashier): ✨ add `DepositCryptoWalletAddress`

* feat(cashier): ✨ add `DepositCryptoTryFiatOnRamp`

* feat(cashier): ✨ add `DepositCryptoModule`

* feat(cashier): ✨ add `PageContainer`

* refactor(cashier): 🚚 change folder structure

* feat(cashier): ✨ add `PageContainer`

* style(cashier): 💄 update the styles to match with the desing

* fix(cashier): 📝 resolve PR comments

* fix(cashier): 📝 resolve PR comments

* fix(cashier): ✅ fix failing tests

* feat(cashier): ♻️ move `CashierBreadcrumb` to `PageContainer`

* feat(cashier): ✨ add `DepositCryptoCurrencyDetails`

* feat(cashier): ✨ add `DepositCryptoWalletAddress`

* refactor(cashier): 🚚 change folder structure

* style(cashier): 💄 update the styles to match with the design

* feat(cashier): ✨ add `DepositCryptoDisclaimers`

* feat(components): ✨ add `InlineMessage`

* feat(cashier): ♻️ render `RecentTransaction` in `DepositCrypto`

* ci: 💚 trigger build

* refactor(cashier): ♻️ `CashierOnboardingModule` clean-up

* refactor(cashier): ♻️ `CashierOnboardingModule` clean-up

* fix(cashier): 🐛 fix double loader issue while switching accounts

* fix(cashier): ✅ fix failing test

* fix: 🔧 fix `jest.config.js` issue

* ci: 👷 set jest `maxWorkers` to `8`

* ci: 👷 set jest `maxWorkers` to `2`

* refactor(components): 💄 refactor `InlineMessage` component with the new design

* refactor(components): 💄 refactor `InlineMessage` component with the new design

* refactor(components): 🚚 move `SideNote` to components package

* feat(components): ✨ add `InlineMessage` component

* feat(components): ✨ add `SideNote` component

* feat(hooks): ✨ add `useInputDecimalFormatter` hook

* feat(hooks): ✨ add `useInputATMFormatter` hook

* feat(hooks): ✨ add `useCurrencyConfig` hook

* feat(hooks): ✨ add `useDepositCryptoAddress` hook

* fix: 🔧 fix `jest.config.js`

* feat: 🏷️ add `Prettify<T>` utility type

* fix(hooks): ✅ fix failing test

* fix(hooks): ✅ fix failing test

* feat(cashier): ✨ show transaction confirmations number

* feat(cashier): ✨ add `useUnsafeCashierRouteHandler` hook

* feat(cashier): ✨ use `useUnsafeCashierRouteHandler` hook in `AppContent`

* fix(appstore): 🚚 update deposit link in trader hub page

* refactor(cashier): ♻️ refactor cashier onboarding side notes

* feat(cashier): ✨ add `DepositCryptoResentTransactionSideNote`

* fix(cashier): ♻️ replace `is_crypto` with `useCurrencyConfig` hook

* style(cashier): 💄 update the styles

* style(cashier): 💄 update the styles

* style(cashier): 💄 update the styles

* refactor(cashier): 🚚 move components

* Merge branch 'master' into farzin/deposit_crypto_module

* feat(cashier): ✨ add `Confirmations` column to crypto transactions history

* refactor(cashier): ♻️ improve `CashierBreadcrumb`

* refactor(cashier): ♻️ improve `PageContainer`

* refactor(cashier): 🚚 move `SwitchToFiatAccountDialog` to components

* refactor(cashier): ♻️ clean-up cashier onboarding components

* feat(cashier): ✨ add `Confirmations` to recent transaction side note

* fix(cashier): ✅ fix failing test

* fix(cashier): ✅ fix failing test

* Merge remote-tracking branch 'aum-deriv/aum/WALL-297/deposit-fiat-module' into farzin/deposit_crypto_module

* refactor(cashier): 🔥 remove `containers` constant

* refactor(cashier): 🔥 remove `ErrorDialogStore`

* refactor(cashier): 🔥 remove `DepositStore`

* fix(cashier): 📝 resolve conflicts

* fix(cashier): 📝 resolve conflicts

* fix(cashier): 📝 resolve conflicts

* fix(cashier): 📝 resolve conflicts

* fix(cashier): 🐛 fix reaise issues

* refactor(cashier): 🎨 improvements on `CashierOnboardingModule`

* refactor(cashier): 🚚 move cashier `EmptyState` to components package

* fix(cashier): 🐛 fix raised issues

* chore: ⬆️ update `@deriv/api-types` to `1.0.111`

* feat(api): 🏷️ add types for `cashier_payments` private call

* style(cashier): 💄 update deposit crypto page style to match the design

* feat(hooks): ✨ add `useCurrentCurrencyConfig` hook

* fix(cashier): ✅ fix failing tests

* fix(cashier): 🐛 fix raised issues

* fix(cashier): 🐛 fix raised issues

* fix(cashier): 🐛 fix raised issues

* fix(cashier): 🐛 fix raised issues

* fix(cashier): 🐛 fix raised issues

* feat(hooks): ✨ add `useCryptoTransactions` hook

* fix(cashier): 🐛 fix raised issues

* style(cashier): 💄 update `CryptoTransactionsSideNoteResentTransaction` style

* style(cashier): 💄 update `DepositCryptoSideNoteUSDT` style

* fix(cashier): 🐛 fix raised issues

* fix(cashier): 🐛 fix raised issues

* fix(cashier): 📝 resolve conflicts

* fix(cashier): 📝 resolve conflicts

* fix(cashier): 📝 resolve comments

* fix(cashier): 📝 resolve comments

* Merge branch 'master' into farzin/wall-852/show_pending_crypto_deposit_transaction_even_if_0_confirmation

* fix(cashier): 📝 resolve PR comments

* fix(cashier): 📝 resolve PR comments

* fix(cashier): 📝 resolve PR comments

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* Merge branch 'master' into farzin/deposit_crypto_module

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

* fix(cashier): 📝 fix raised issues

---------

Co-authored-by: Farzin Mirzaie <farzin@deriv.com>
shafin-deriv and others added 23 commits August 29, 2023 06:21
* feat: transaction details modal

* feat: complete test cases for TransactionDetails modal

* chore: fix code smells

* chore: fix code smells

* chore: remove code smells

* chore: redeploy

* chore: move transaction details types to types folder

* feat: add draggable modal component

* chore: finish test cases for draggable component

* chore: add header props to draggable

* chore: show enrty and exit tick if available

* fix: transaction scroll css issue fix

* fix: update key with data for divider inside transaction details modal

* fix: update buy price to have decimal value

* fix: css issue on modal height and fixed decimal profit/loss

* fix: fix style for modal getting cut

* fix: modal css issue after build

* fix: decrease the modal height for edge cutting issue

* fix: test case

* Merge branch 'master' into shafin/BOT-368/feat--draggable-transaction-modal

* fix: not closing on responsive view issue

* fix: test case

* fix: reduce preview workspace control z-index
* fix: added new attributes for hotjar

* refactor: separated hotjar script to a function in utils

* fix: updated attribute

* fix: added optional for client login id

* chore: added comment for attribution code
…eriv-com#9680)

* fix: show correct platform on trader's hub onboarding

* test: ✅ added onboarding test for financial restricted countries

* fix: fixed cfd restricted countries
* chore: use sass instead of node-sass

* docs: remove node-sass from readme file

* docs: fix typo in readme file

* chore: retrigger ci tests

* fix: ci test failed

---------

Co-authored-by: Ali(Ako) Hosseini <ali.hosseini@deriv.com>
…w incorrect expiry time (deriv-com#9732)

* chore: draft

* feat: expant function and hardcoded date

* refactor: add usage moment library

* chore: remove extra space
* fix: sending empty payload to non idv countries

* fix: sending empty payload to non idv countries
* fix: removed bot too risky modal and updated stop icon

* fix: added toast notification when user stops bot

* fix: fixed snack bar for quick strategy run

* fix: added close function on snackbar

* fix: added clear and reset timeout on hovering on toast

* fix: added test case for bot-stop-notification

* fix: stop bot snack bar appearing with no trade again
Co-authored-by: DerivFE <80095553+DerivFE@users.noreply.github.com>
…pi (deriv-com#9786)

* feat: added use-authorize hook taken from sergei pr

Co-authored-by: Sergei Baranovski <120570511+sergei-deriv@users.noreply.github.com>

* chore: sorted imports for use-authorize

Co-authored-by: Sergei Baranovski <120570511+sergei-deriv@users.noreply.github.com>

* chore: moved default empty string in use-authorize

* chore: incorporated code reviews

* chore: added useLandingCompany into api package

* chore: added useLandingCompany into api package

* chore: added useAvailableAccounts and useAccountTypes hooks into api package

* chore: added useSettings to @deriv/api

* chore: get country_code from user settings instead of authorize

* chore: combine get_settings with set_settings

* fix: change request type for landing_company

* chore: combine get_settings with set_settings

* refactor: change function name

* chore: add landing_company field to each account types

* chore: add missing dependencies for useLandingCompany return data

* chore: return all mutation data

* chore: export hook

* refactor: types and mutation function name

* refactor: use-landing-company-hook

* fix: remove dependency

* fix: remove dependency

* refactor: use-available-accounts hook

* fix: review comments, remove gaming accounts

* refactor: separate accounts usememo

---------

Co-authored-by: adrienne-rio <adrienne@deriv.com>
Co-authored-by: Sergei Baranovski <120570511+sergei-deriv@users.noreply.github.com>
deriv-com#9810)

* chore: add useTradingPlatformAvailableAccounts to deriv api

* fix: type repetition annd fallback

* refactor: repetition

* fix: empty commit

* fix: empty commit

* fix: comment
* fix(cashier): 🐛 fix unable to access CFD-DerivX transfer

* feat(wallets): 📦 add `@deriv/wallets` workspace

* fix(wallets): 💚 fix CI build

* feat(api): ✨ share a single instance of `QueryClient` in `APIProvider`

* Merge branch 'master' into farzin/next

* chore: add wallet header list data for desktop

---------

Co-authored-by: Farzin Mirzaie <farzin@deriv.com>
* fix(cashier): 🐛 fix unable to access CFD-DerivX transfer

* feat(wallets): 📦 add `@deriv/wallets` workspace

* fix(wallets): 💚 fix CI build

* feat(api): ✨ share a single instance of `QueryClient` in `APIProvider`

* Merge branch 'master' into farzin/next

* chore: created mobile wallets carousel

Co-authored-by: Sergei Baranovski <120570511+sergei-deriv@users.noreply.github.com>

---------

Co-authored-by: Farzin Mirzaie <farzin@deriv.com>
Co-authored-by: Sergei Baranovski <120570511+sergei-deriv@users.noreply.github.com>
Co-authored-by: Farzin Mirzaie <farzin@deriv.com>
* feat: added svg bundling for wallets

* chore: removed assets folder in wallets
* fix: space issue dropdown

* fix: resolve comment

* fix: comment

* Update packages/components/src/components/dropdown/dropdown.scss

* fix: empty commit

---------

Co-authored-by: Maryia <103177211+maryia-deriv@users.noreply.github.com>
* fix: overwritten styles

* fix: overwritten styles
… off (deriv-com#9876)

* chore: fixed sort dropdown alignment

* chore: changed styling for dropdown
…#9908)

* fix: 🚑 fix active container for TH transfer, fix insufficient balance check

* test: 🐛 fix tests

* fix: 🚑 fix 'Insufficient balance' condition
Co-authored-by: DerivFE <80095553+DerivFE@users.noreply.github.com>
Co-authored-by: DerivFE <80095553+DerivFE@users.noreply.github.com>
…iv-com#9611)

* feat: initializing the compare account implementation

* feat: icon reusable component v1.0

* feat: icon reusable component v1.1

* feat: icon reusable component v1.1.1

* feat: initialize compare cfd account page (todo:css)

* feat: blank compare cfd accounts page & navi done

* feat: mobile view

* fix: compare-accounts naming convention

* fix: updated path import

* fix: reverted icons.js changes

* fix: compare-cfds -> compare-accounts

* feat: reusable component v1.2

* feat: reusable component v1.2.1

* feat: icon reusable component added v1.3

* feat: reusable component for Icons

* feat: reusable component for Icons refactor

* feat: reusable component for Icons refactor v1.2

* feat: description div added

* feat: description with title +icon is added

* feat: platform label + icon component padding added

* chore: labuan leverage updated

* chore: css issue fixed for Cards

* feat: carousel added with sorting o f MT5 accounts

* feat: carousel arrow background and container added

* chore: added dxtrade in the card for dynamic rendering with type fixes

* chore: changes in platform label header with respect to props data

* chore: icons updated because of white line issue in icons

* chore: change the components css name and other naming convention tweaks

* refactor: suggestions implemented

* refactor: convert carousel button into one

* feat: initial commit for starting collaboration

* feat: added the button placeholder

* feat: added new banner to cfd cards

* refactor: make the banner smaller

* fix: added condition to show banner for derivez and ctrader only

* refactor: changed the types and applied suggestions

* refactor: removed the invalide shortcode for dxtrade

* refactor: round up patches based on reviews

* fix: round up patch 2 based on review

* Update packages/cfd/src/Containers/cfd-compare-accounts/cfd-compare-accounts.scss

Co-authored-by: Muhammad Hamza <120543468+hamza-deriv@users.noreply.github.com>

* refactor: button width

* refactor: button classname

* chore: fix css of underline

* chore: added redirection to homepage in case of modals

* fix: circle ci failed due to wrong type of client function

* chore: added the disabled property for the Added accounts

* chore: added condition for the dxtrade

* chore: rearrange block scoped variables

* chore: fix css of labuan tooltip with removal of commented code

* chore: responsive view fixes

* feat: demo accounts added for low risk

* feat: demo accounts label added and swap-free account creation fixed

* chore: added derivx account creation flow

* refactor: replace ternary operators with if-else

* chore: remove unused jurisdiction

* feat: demo account compare implemetation tweaks as per design

* feat: rectified the Demo title as per design

* chore: font weigth of instruments as per design

* feat: Eu flow for DIEL

* feat: changes in the icons label and correction in EU flow

* chore: addded translations demo title and rename baskets

* chore: rename icon type

* chore: final changes prop drilling instead of observer EU flow finalized

* fix: hidding deriv ez

* fix: EU flow platform label change

* feat: test case for description added

* feat: platform label test case added

* feat: title icon test case added

* feat: title icon test case added

* chore: fix test case description + instruments icon test added

* refactor: blank spaces removed

* chore: cfd-instruments-label test added

* chore: test file added cfd-instrument-label

* feat: button partial test case added

* chore: added more test case for Button component

* feat: added test case for compare-account-card

* chore: merge conflicts

* chore: test for cfd-compare-accounts added

* feat: derivX demo

* chore: added testcase for dxtrade in button

* fix: dxtrade for australian clients

* fix: swapfree account creation added

* fix: comapre account fixes first round

* fix: remove the css because scroll not working

* fix: renamed variable + icons

* fix: cursor not allowed on instrument icons

* fix: fixed the circle ci issue

* fix: fixed one of our test issues

* refactor: review comments resolved

* fix: changing the text of mf accounts to pass the tests

* fix: made changes according to suggestions

* fix: made changes according to suggestions

* fix: fixed the test case issues

* chore: added s to spread(s)

* chore: fixed capitalization

* chore: line split

* fix: failing test case

* fix: updated markets offerings for MT5 Financial Labuan

* fix: Other CFDs --> Other CFDs Platform

* fix: removed standard/micro from DerivX Forex label

* refactor: optimised code

* fix: icon size inconsistencyn mobile VP

* refactor: css refactoring to reflect figma as much as possible

* refactor: minor css fixes

* fix: fixed

* style: added bottom padding for mobile

* fix: fixed the build issue

* chore: re running the tests

* fix: subtasks

* chore: typo

* style: position the tooltip to be center within the card

* style: resize width for word-wrap

* chore: d and r should be lowercase dispute and resolution

* fix: fixing sonar cloud issues

* fix: making changes to pass the tests

---------

Co-authored-by: hamza-deriv <hamza.muhammad@regentmarkets.com>
Co-authored-by: shontzu-deriv <shon.tzu@regentmarkets.com>
Co-authored-by: shontzu <108507236+shontzu-deriv@users.noreply.github.com>
Co-authored-by: Muhammad Hamza <120543468+hamza-deriv@users.noreply.github.com>
@matin-deriv matin-deriv merged commit d021ad3 into matin-deriv:dynamic_leverage Sep 1, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.