Skip to content

Commit

Permalink
chore: test case for JournalTools (#10656)
Browse files Browse the repository at this point in the history
* Sync with master to get latest update (#9750)

* translations: 📚 sync translations with crowdin (#9672)

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

* chore: translation workflow trigger (#9684)

* Revert "chore: translation workflow trigger (#9684)" (#9686)

This reverts commit cfacd85ac179ad00340d7ef7430be22f7d8d18f2.

* Kate / WEBREL-51 / Test coverage: ProgressSliderStream in Trader package (#9464)

* feat: add unit tests

* refactor: incapsulated trade providers

* Kate / Test coverage:  ChartLoader + Loading in Trader package (#8398)

* refactor: add integr and unit tests for loader

* refactor: removed hardcoded test id

* likhith/fix: :bug: display onfido error message (#9401)

* fix: :bug: display onfido error message

* fix: reverted change

* test: :white_check_mark: added testcases

* fix: test case names

* fix: added testcases

* Henry/fix: test coverage and ts migration for asset/trading/categories (#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

* Matin/WALL-1308/Adding Korean language (#9426)

* 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 (#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>

* Amina/fix: disable account when proof failed (#9555)

* fix: disable account when proof failed

* fix: disable account when proof failed

* fix: flag

* fix: import

* fix: update with master

* fix: duplicate_types (#9691)

* likhith/fix: :bug: translation of IDV documents dropdown option (#9336)

* fix: :bug: translation of IDV documents dropdown option

* fix: :bug: translation of default config

* fix: :bug: translation of default config

* fix: :bug: removed unused-import

* fix: :bug: refactored code

* fix: :recycle: incorporated review comments

* fix: :bug: added missing function

* maryia/DTRA-350/feat: handle displayed positions locally in TogglePositionsMobile (#9610)

* feat: handle displayed positions locally in mobile TogglePositions

* test: added a test

* chore: refactoring

* test: fix tests after conflict resolution

* FarhanNurzi/P2PS-1417/2FA order confirm modal is not showing up on mobile browsers (#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

* Adrienne / Implemented new navigation flow for filtering payment methods in buy/sell page (#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

* Amina/wall 575/maintenance notifications for site and cashier (#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

* Shaheer/wall 1229 (#9240)

* feat: :sparkles: adds financial assessment notification

* refactor: :art: sorts the object block

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

* chore: :ambulance: resolves merge conflict with master

* test: :test_tube: adds test case for app-notification

* test: :test_tube: adds test cases for notification

* Kate / OPT-306 / Update Accumulator to Accumulators  (#9577)

* chore: change text

* chore: apply suggestion

* Kate / Add video for Vanillas description (#9622)

* 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

* likhith/chore: incorporated the API response to save the opt-out user data (#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

* translations: 📚 sync translations with crowdin (#9702)

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

* Matin / Remove ESLint Ignore (#9707)

* chore: fix Oneall social unlinking from Apple accounts

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

This reverts commit 84009b09da4eb9ffe2164ef62d3e98acfd707b17.

* chore: remove eslint ignore

* translations: 📚 sync translations with crowdin (#9709)

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

* fix: set dbot as external in platform config for authorize logout isssue (#9711)

* feat: transaction details modal (#9032)

* 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: gtm issue (#9551)

* fix: registration flow in buy/sell tab (#9573)

* fix: registration flow in buy/sell tab

* fix: added unit test

* Farzin/WALL-460/DepositCrypto module (#8867)

* 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): :memo: resolve conflict

* feat(cashier): :fire: remove `AccountPromptDialogStore`

* fix(cashier): :white_check_mark: fix failing tests

* feat(cashier): :fire: remove `onMountCashierOnboarding`

* fix(cashier): :white_check_mark: 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): :bug: fix dialog issue

* fix(cashier): :memo: resolve PR comments

* refactor(cashier): :recycle: `CashierOnboardingModule` clean-up

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

* feat(cashier): :sparkles: add `DepositCryptoWalletAddress`

* feat(cashier): :sparkles: add `DepositCryptoTryFiatOnRamp`

* feat(cashier): :sparkles: add `DepositCryptoModule`

* feat(cashier): :sparkles: add `PageContainer`

* refactor(cashier): :truck: change folder structure

* feat(cashier): :sparkles: add `PageContainer`

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

* fix(cashier): :memo: resolve PR comments

* fix(cashier): :memo: resolve PR comments

* fix(cashier): :white_check_mark: fix failing tests

* feat(cashier): :recycle: move `CashierBreadcrumb` to `PageContainer`

* feat(cashier): :sparkles: add `DepositCryptoCurrencyDetails`

* feat(cashier): :sparkles: add `DepositCryptoWalletAddress`

* refactor(cashier): :truck: change folder structure

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

* feat(cashier): :sparkles: add `DepositCryptoDisclaimers`

* feat(components): :sparkles: add `InlineMessage`

* feat(cashier): :recycle: render `RecentTransaction` in `DepositCrypto`

* ci: :green_heart: trigger build

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

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

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

* fix(cashier): :white_check_mark: fix failing test

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

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

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

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

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

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

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

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

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

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

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

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

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

* feat: :label: add `Prettify<T>` utility type

* fix(hooks): :white_check_mark: fix failing test

* fix(hooks): :white_check_mark: fix failing test

* feat(cashier): :sparkles: show transaction confirmations number

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

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

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

* refactor(cashier): :recycle: refactor cashier onboarding side notes

* feat(cashier): :sparkles: add `DepositCryptoResentTransactionSideNote`

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

* style(cashier): :lipstick: update the styles

* style(cashier): :lipstick: update the styles

* style(cashier): :lipstick: update the styles

* refactor(cashier): :truck: move components

* Merge branch 'master' into farzin/deposit_crypto_module

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

* refactor(cashier): :recycle: improve `CashierBreadcrumb`

* refactor(cashier): :recycle: improve `PageContainer`

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

* refactor(cashier): :recycle: clean-up cashier onboarding components

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

* fix(cashier): :white_check_mark: fix failing test

* fix(cashier): :white_check_mark: fix failing test

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

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

* refactor(cashier): :fire: remove `ErrorDialogStore`

* refactor(cashier): :fire: remove `DepositStore`

* fix(cashier): :memo: resolve conflicts

* fix(cashier): :memo: resolve conflicts

* fix(cashier): :memo: resolve conflicts

* fix(cashier): :memo: resolve conflicts

* fix(cashier): :bug: fix reaise issues

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

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

* fix(cashier): :bug: fix raised issues

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

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

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

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

* fix(cashier): :white_check_mark: fix failing tests

* fix(cashier): :bug: fix raised issues

* fix(cashier): :bug: fix raised issues

* fix(cashier): :bug: fix raised issues

* fix(cashier): :bug: fix raised issues

* fix(cashier): :bug: fix raised issues

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

* fix(cashier): :bug: fix raised issues

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

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

* fix(cashier): :bug: fix raised issues

* fix(cashier): :bug: fix raised issues

* fix(cashier): :memo: resolve conflicts

* fix(cashier): :memo: resolve conflicts

* fix(cashier): :memo: resolve comments

* fix(cashier): :memo: resolve comments

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

* fix(cashier): :memo: resolve PR comments

* fix(cashier): :memo: resolve PR comments

* fix(cashier): :memo: resolve PR comments

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* Merge branch 'master' into farzin/deposit_crypto_module

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

* fix(cashier): :memo: fix raised issues

---------

Co-authored-by: Farzin Mirzaie <farzin@deriv.com>

* fix: fix quick add modal's height bug (#8574)

* Farabi/bot 296/update responsive of tour in light mode (#9315)

* fix: tour responsive on light mode

* chore: updated PR

* fix: highlighted target issue on tour

* fix: added back data-testid

* Maryia/Bot-303/feat: add crash/boom to markets list (#9098)

* feat: add cryptocurrencies to markets list

* feat: crash/boom, step indices

* feat: take profit, stop loss disable when equal 0 to skip definition, add progress slider for crypta

* refactor: currency definition, fix type of variable

* fix: is_mobile

* chore: remove cryptocurrency and step index

* chore: remove cryptocurrency and step index(2)

* fix: Hide Crash & Boom from quick strategy form

* fix: DBot doesn't allow to run mutlipliers with take profit <=0 and stop loss > 0

* Kate / DTRA-166 / Implement Contract pages for Ends/ Stays contracts (#8998)

* refactor: move trade type from un to supported

* feat: ad contract type check func and add to contract details

* feat: add chart markers settings for contract type

* chore: add style for mobile

* chore: remove gradient

* chore: empty commit

* chore: add gradient for contract details card for desktop

* feat: add chart markers setings and update style

* refactor: apply suggestions

* chore: empty commit

* feat: enable smart trader contract

* refactor: remove rounding for barrier value

* refactor: add swipble component for contract audit mobile and fix style

* refactor: applied suggestions from review

* fix: change trade type icons

* chore: empty commit

* fix: conflicts

* Henry/dtra 282/rewrite contract type info component (#9352)

* fix: initialize

* fix: ts migrate and add test coverage to ContractType folder

* fix: remove unused import

* fix: TS Error due to name and value not being intrinsic attribute to span element

* fix: add test cases

* fix: code smells

* fix: consistency issue

* fix: code smell

* fix: minor change

* fix: rewrite contract-type-info to get rid of visual bug when switching between tabs

* fix: remove unused import

* fix: remove unused css

* fix: refactor component

* fix: small word change

* fix: resolve comments

* fix: resolve comments

* fix: empty commit

* fix: code smells

* fix: circleCI

* fix: resolve comments

* fix: missing import

* fix: remove scroll for contract-type-info

* fix: resolve conflicts and merge master

* fix: remove useeffect as per comment

* fix: remove css styling

* fix: circleCI

* farabi/bot-228/fix-step-5-modal-alignment (#9377)

* fix: removed for loop of loader in dashboard scss

* fix: step 5 content

* Niloofar Sadeghi / useP2PAdvertList custom hook (#9704)

* feat: create a custom hook for handling p2p-advert-list endpoint

* fix: review comments

* fix: review comments

* test: add test case for usepaginatedfetch custom hook

* fix: circle/ci error

---------

Co-authored-by: niloofar sadeghi <niloofar.sadeghi@re-work.dev>

* chore: test case for dbot-providers (#9583)

* henry/test: add test coverage and ts migration for successdialog (#8432)

* test: add test coverage and ts migration for successdialog

* fix: code smell

* fix: switch to userEvent from fireEvent

* fix: make something reusuable variable

* fix: remove unused file

* test: :white_check_mark: add test case for Audio component (#9572)

* test: :white_check_mark: add test case for Audio component

* test: add test case in audio component to check src attribute

* fix: fixed type in audio test file bot-web-ui

* translations: 📚 sync translations with crowdin (#9730)

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

* chore: fixed orders failing test case (#9735)

* translations: 📚 sync translations with crowdin (#9741)

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

* chore: update code owners (#9678)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: DerivFE <80095553+DerivFE@users.noreply.github.com>
Co-authored-by: prince-deriv <82309725+prince-deriv@users.noreply.github.com>
Co-authored-by: kate-deriv <121025168+kate-deriv@users.noreply.github.com>
Co-authored-by: Likhith Kolayari <98398322+likhith-deriv@users.noreply.github.com>
Co-authored-by: henry-deriv <118344354+henry-deriv@users.noreply.github.com>
Co-authored-by: Matin shafiei <matin@deriv.com>
Co-authored-by: amina-deriv <84661147+amina-deriv@users.noreply.github.com>
Co-authored-by: Maryia <103177211+maryia-deriv@users.noreply.github.com>
Co-authored-by: Farhan Ahmad Nurzi <125247833+farhan-nurzi-deriv@users.noreply.github.com>
Co-authored-by: adrienne-deriv <103016120+adrienne-deriv@users.noreply.github.com>
Co-authored-by: Shaheer <122449658+shaheer-deriv@users.noreply.github.com>
Co-authored-by: Shafin Al Karim <129021108+shafin-deriv@users.noreply.github.com>
Co-authored-by: nada-deriv <122768621+nada-deriv@users.noreply.github.com>
Co-authored-by: Farzin Mirzaie <72082844+farzin-deriv@users.noreply.github.com>
Co-authored-by: Farzin Mirzaie <farzin@deriv.com>
Co-authored-by: Farabi <102643568+farabi-deriv@users.noreply.github.com>
Co-authored-by: maryia-matskevich-deriv <103181650+maryia-matskevich-deriv@users.noreply.github.com>
Co-authored-by: Niloofar Sadeghi <93518187+niloofar-deriv@users.noreply.github.com>
Co-authored-by: niloofar sadeghi <niloofar.sadeghi@re-work.dev>
Co-authored-by: vinu-deriv <100689171+vinu-deriv@users.noreply.github.com>
Co-authored-by: ameerul-deriv <103412909+ameerul-deriv@users.noreply.github.com>

* Revert "Sync with master to get latest update (#9750)"

This reverts commit 0dcb820af2806f51fc91ac27ecd2ead7062bda67.

* Shafin/bot 531/chore  toolbar widget test (#9883)

* chore: test case for ToolbarWidgets

* chore: remove act

* chore: empty commit

* chore: contract card loading tests (#9884)

* Farabi/bot 533/contract result overlay test case (#9886)

* fix: added test case for contract result overlay

* fix: using mock_ws from utils/mock

* Maryia/Bot-535/test: react-joyride-wrapper component (#9893)

* test: react-joyride-wrapper

* refactor: react-joyride-wrapper

* Update packages/bot-web-ui/src/components/dashboard/__tests__/react-joyride-wrapper.spec.tsx

* chore: empty commit

* refactor: test for react-joyride-wrapper

* test: search-icon (#9891)

* Maryia/BOT-537/test: RunStrategy (#9892)

* test: RunStrategy

* refactor: test for run strategy

* Farabi/bot 536/test case for icon button (#9888)

* fix: added test case for icon-button.tsx

* fix: removed test for popovercd

* fix: removed icon-button and test case as its no longer used

* Vinu/bot 519/bot notification messages test case (#9881)

* test: add test case for bot-notification-messages component

* fix: fixed any type in bot-notification-messages.spec

* fix: added actions in bot-notification-messages spec file insted of changing store value directly

* fix: empty commit to trigger build

* fix: removed unused component (#9873)

* chore: test case for BotPreview (#9951)

* chore: test case for BotPreview

* chore: change type for reference

* chore: write test case for icon-radio.tsx (#10185)

* chore: dashboard local footer test (#10234)

* chore: test case for recent-footer (#10260)

* Farabi/bot 634/test case for bot stop modal (#10112)

* updating branch with master (#10070)

* henry/webrel-1160/hotfix: space issue dropdown (#9898)

* 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 (#9899)

* fix: overwritten styles

* fix: overwritten styles

* Ameerul /WEBREL-1159 Sort by column alignment in P2P Buy/Sell page is off (#9876)

* chore: fixed sort dropdown alignment

* chore: changed styling for dropdown

* george / PRODQA-1316 / Transfer from Tradershub validation (#9908)

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

* test: :bug: fix tests

* fix: :ambulance: fix 'Insufficient balance' condition

* translations: 📚 sync translations with crowdin (#9912)

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

* translations: 📚 sync translations with crowdin (#9917)

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

* Hirad-Hamza-ShonTzu/Feature revamp compare account re-deployment (#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>

* adrienne/chore: added eslint and stylelint for wallets and renamed css variables (#9877)

* feat: added stylelint for wallets for bem convention

* feat: added stylelint for wallets for bem convention

* chore: added import sorts for wallets and bem convention checking

* chore: removed unused dependencies in wallets

* Arshad/Matin/WALL-1226/Dynamic leverage for MT5 financial accounts (#9314)

* chore: Dynamic leverage for MT5 financial accounts initial commit

* feat: :construction: dynamic leverage modal

* test: unit tests

* feat: :white_check_mark: added unit tests and refactoring

* feat: :recycle: fixed UI

* feat: :recycle: review changes for dynamic leverage

* chore: item name update

* feat: :bug: passed string to localize instead of a variable

* test: :recycle:

* refactor: :recycle: refactored column header to new component

* refactor: refactored code

* fix: fixed styling and refactored code

* style: formatted code

* test: updated test mock component

* refactor: refactored styling and unit tests

* fix: fixed text content for dynamic leverage

* fix: fixed localize component usage

* refactor: used strong instead of span styling

* fix: jurisdiction card layout

---------

Co-authored-by: arshad-rao-deriv <muhammad.arshad@deriv.com>
Co-authored-by: mahdiyeh-deriv <82078941+mahdiyeh-deriv@users.noreply.github.com>

* translations: 📚 sync translations with crowdin (#9924)

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

* translations: 📚 sync translations with crowdin (#9925)

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

* translations: 📚 sync translations with crowdin (#9930)

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

* Ako/remove docker k8s config (#9933)

* ci: remove k8s workflow

* ci: remove docker build and  push workflow

* fix: regression bug regarding market offerings (#9936)

* FarhanNurzi/WALL-1657/Link the Wallet carousel with real data in Responsive (#9895)

* chore: use hook to get wallet list in mobile carousel

* chore: add components/index.ts

* thisyahlen/refactor: add useAvailableWallets in deriv/api (#9818)

* chore: add useAvailableWallets in deriv/api

* fix: empty

* refactor(api): :recycle: clean-up

* fix: latest code for available wallets

* fix: rename useGetAccountTypes

* fix: comments

* chore: split function and refactor

* fix: sonarcloud

---------

Co-authored-by: Farzin Mirzaie <farzin@deriv.com>

* thisyahlen/chore: update ui for wallet header (#9870)

* chore: update ui for wallet header

* chore: add more styles

* chore: add more styles v2

* fix: lint errors

* chore: split components

* chore: split v2

* chore: split v3

* chore: add svg for header button actions

* fix: format balance and css styles

* fix: landing company name uppercase

* fix: comments

* chore: split moreeeee

* fix: rename css

* fix: lint styles

* fix: styles

* fix: comments

* fix: comments v3

* fix: comments v4

* fix: comments v5

* Hamza/ hotfix: compare account text size difference (#9950)

* chore: compare account text size difference

* chore: compare account text size difference on mobile

* translations: 📚 sync translations with crowdin (#9945)

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

* Mahdiyeh/fix: change market price movements to market movements (#9341)

* fix: change market price movements to market movements

* fix: resolve issue

---------

Co-authored-by: Mahdiyeh Amirkhani <mahdiyehamirkhani@Mahdiyeh-Amirkhanis-Mac-J79XQHKXVJ.local>

* fix:  cashier page height in iphone (#9779)

* shahzaib / KYC-304 / additional kyc questions in the real account creation (#9501)

* chore: additional information section for real accounts creation

* chore: hide additional details for high risk client

* chore: refactor to pass classname conditionally and removed disposable props

* chore: removed unused props

* chore: renamed className to class_name

* chore: update test case for personal-details component

* Update packages/account/src/Components/personal-details/__tests__/personal-details.spec.js

Co-authored-by: yauheni-deriv <103182683+yauheni-deriv@users.noreply.github.com>

* Update onfido-container.scss

Co-authored-by: yauheni-deriv <103182683+yauheni-deriv@users.noreply.github.com>

* chore: update props

Co-authored-by: yauheni-deriv <103182683+yauheni-deriv@users.noreply.github.com>

* chore: update props

Co-authored-by: yauheni-deriv <103182683+yauheni-deriv@users.noreply.github.com>

* chore: remove unused imports

* chore: update fragment useage

* chore: remove high_risk conditiono to hide the additional fields

* chore: empty commit

* fix(props): removed unused is_high_risk prop

* chore: renamed TaxResidentField

* chore: update tax residence validation message for TIN number

* chore: update config to include additional details if the client is not high risk for mt5

* chore: added test case for high risk condition in personal details config

* chore: refactored test case

* chore: disble additional information fields if user has already filled the details

* feat(hooks): created hooks to get if a user is high risk for MT5

* chore: updated comment for personal details config

* fix: remove unused variable

* fix(test): update test cases to reflect hook change

* test: update test cases to use store provider

* chore: removed unused logic from cfd & traders hub store

* test: update description

* test: mock hook for returned value

* fix: TIN validation in personal-details-config

* fix: added additional field check for diel accounts

---------

Co-authored-by: yauheni-deriv <103182683+yauheni-deriv@users.noreply.github.com>

* Rupato/PRODQA-1167/fix: updated error handling for dbot skeleton (#9576)

* fix: updated error handling for dbot skeleton

* fix: changed method naming

* fix: changed comment

* fix: changed error config

* fix: changed error config

* fix: review comments

* fix: changed keycode

* fix: assigned const

* fix: bug fixes

* fix: for multipliers block

* fix: removed extra space

* fix: added parameter

* fix: for localize

* fix: sentence

* fix: updated error messages

* fix: removed fallback

* fix: removed check for mandatory block

* fix: review comments

* fix: empty trigger

* fix: code refactored and added disabled check

* fix: removed key

* fix: removed key

* fix: changed error message

* fix: reverted changes for disabled block and misplaced

* fix: removed commented code

* fix: review comments

* fix: review comments

* fix: review comments

* chore: updated z-index for language switcher (#9461)

* farabi/bot-512/tour content sizing and responsiveness on small screen (#9472)

* fix: updated content size according to design

* refactor: reverted classname changes

* fix: tour is made responsive on smaller screen

* Shafin/bot 301/fix  preview delete save edit issue (#9549)

* chore: investigation on strategy save, edit, delete issue

* chore: finalize save-delete-edit issue for preview strategies

* fix: don't load if workspace is not present

* fix: pass parent element to mutation observer for least computation

* fix: issues on quick strategy run

* Vinu/bot 92/ticks history refactor (#9547)

* fix: ticks_history call outside the run

* fix: remove console error and make ticks_history call on load

* refactor: remove unecessary code

* fix: added condition to make ticks_history call

* fix: disable run button untill ticks_history call is received

* fix: change trade_type_category,trade_type_category_field in trade_definition_tradetype onchange

* fix: fix ticks_history error when market is closed

* fix: fix the ticks_history call when bot is terminated

* fix: change file accept format (#9812)

* fix: change file accept format

* fix: update file acceptance for dashboard file input

* Hamza/chore: useCreateOtherCFDAccount and useCreateMT5Account hooks added (#9941)

* chore: useCreateOtherCFDAccount and useCreateMT5Account hooks added

* chore: added comments for explanantion purpose

* fix: allow custom variables and function values for limit order (#9490)

* chore: fix language not correct when redirect from deriv-com (#9632)

* chore: fix language not correct when redirect from deriv-com

* chore: fix language redirection from deriv-com

* chore: add optional chaining

* chore: update code base on comments

* Rupato/509/fix--for-blockly-alignment (#9460)

* fix: merge latest

* fix: trigger circle ci

* fix: removed unused icons

* fix: reverted icon file changes

* fix: reverted icon file changes

* Improvement/dbot tutorials (#9896)

* Farabi/rupato/bot 313  update tour step (#9885)

* fix: updated tour guide

* fix: refactor last joyride step and last pop up modal

* fix: start for both tours

* fix: added check for onboard tour action bar

* fix: reverted changes for tour dialog

* fix: fixed review comments

* fix: added localize component check

* fix: for id on localize

* fix: for the margin bottom on the last step of joyride

* fix: made font size xs for tour

* fix: made font size xs for tour

---------

Co-authored-by: Rupato Braganza <rupatobraganza@Rupato-Braganzas-Mac-L2R5WHGD9W.local>
Co-authored-by: Farabi Chowdhury <farabi@deriv.com>
Co-authored-by: rupato-deriv <rupato@regentmarkets.com>

* Farabi/bot 444/highlight the tutorials tab (#9887)

* fix: higlighted tutorials on mobile onboarding and replaced gif with mp4

* fix: changes related to code review

* fix: added width for mobile view of tour

* fix: width for images and videos

* fix: width adjustment on responsive

* fix: disabled picture in picture and download for videos

* fix: change step 5 video to updated one

* fix: fix last step button

---------

Co-authored-by: Farabi Chowdhury <farabi@deriv.com>

* Sandeep/bot 404/onboarding tour improvements 1 (#9894)

* fix: higlighted tutorials on mobile onboarding and replaced gif with mp4

* fix: changes related to code review

* fix: added width for mobile view of tour

* fix: width for images and videos

* fix: width adjustment on responsive

* fix: disabled picture in picture and download for videos

* fix: change step 5 video to updated one

* fix: :pencil: Updated content for bot tutorials

* fix: fix last step button

* fix: :construction: updated content for start tour dialog

---------

Co-authored-by: Farabi Chowdhury <farabi@deriv.com>
Co-authored-by: Sandeep <sandeepsingh@Sandeeps-Mac-CX9PCJX3L9.local>

* Sandeep/bot 404/onboarding tour improvements 1 (#9982)

* fix: higlighted tutorials on mobile onboarding and replaced gif with mp4

* fix: changes related to code review

* fix: added width for mobile view of tour

* fix: width for images and videos

* fix: width adjustment on responsive

* fix: disabled picture in picture and download for videos

* fix: change step 5 video to updated one

* fix: :pencil: Updated content for bot tutorials

* fix: fix last step button

* fix: :construction: updated content for start tour dialog

* henry/webrel-1160/hotfix: space issue dropdown (#9898)

* 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 (#9899)

* fix: overwritten styles

* fix: overwritten styles

* Ameerul /WEBREL-1159 Sort by column alignment in P2P Buy/Sell page is off (#9876)

* chore: fixed sort dropdown alignment

* chore: changed styling for dropdown

* george / PRODQA-1316 / Transfer from Tradershub validation (#9908)

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

* test: :bug: fix tests

* fix: :ambulance: fix 'Insufficient balance' condition

* translations: 📚 sync translations with crowdin (#9912)

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

* translations: 📚 sync translations with crowdin (#9917)

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

* Hirad-Hamza-ShonTzu/Feature revamp compare account re-deployment (#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>

* adrienne/chore: added eslint and stylelint for wallets and renamed css variables (#9877)

* feat: added stylelint for wallets for bem convention

* feat: added stylelint for wallets for bem convention

* chore: added import sorts for wallets and bem convention checking

* chore: removed unused dependencies in wallets

* Arshad/Matin/WALL-1226/Dynamic leverage for MT5 financial accounts (#9314)

* chore: Dynamic leverage for MT5 financial accounts initial commit

* feat: :construction: dynamic leverage modal

* test: unit tests

* feat: :white_check_mark: added unit tests and refactoring

* feat: :recycle: fixed UI

* feat: :recycle: review changes for dynamic leverage

* chore: item name update

* feat: :bug: passed string to localize instead of a variable

* test: :recycle:

* refactor: :recycle: refactored column header to new component

* refactor: refactored code

* fix: fixed styling and refactored code

* style: formatted code

* test: updated test mock component

* refactor: refactored styling and unit tests

* fix: fixed text content for dynamic leverage

* fix: fixed localize component usage

* refactor: used strong instead of span styling

* fix: jurisdiction card layout

---------

Co-authored-by: arshad-rao-deriv <muhammad.arshad@deriv.com>
Co-authored-by: mahdiyeh-deriv <82078941+mahdiyeh-deriv@users.noreply.github.com>

* translations: 📚 sync translations with crowdin (#9924)

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

* translations: 📚 sync translations with crowdin (#9925)

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

* translations: 📚 sync translations with crowdin (#9930)

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

* Ako/remove docker k8s config (#9933)

* ci: remove k8s workflow

* ci: remove docker build and  push workflow

* fix: regression bug regarding market offerings (#9936)

* FarhanNurzi/WALL-1657/Link the Wallet carousel with real data in Responsive (#9895)

* chore: use hook to get wallet list in mobile carousel

* chore: add components/index.ts

* thisyahlen/refactor: add useAvailableWallets in deriv/api (#9818)

* chore: add useAvailableWallets in deriv/api

* fix: empty

* refactor(api): :recycle: clean-up

* fix: latest code for available wallets

* fix: rename useGetAccountTypes

* fix: comments

* chore: split function and refactor

* fix: sonarcloud

---------

Co-authored-by: Farzin Mirzaie <farzin@deriv.com>

* thisyahlen/chore: update ui for wallet header (#9870)

* chore: update ui for wallet header

* chore: add more styles

* chore: add more styles v2

* fix: lint errors

* chore: split components

* chore: split v2

* chore: split v3

* chore: add svg for header button actions

* fix: format balance and css styles

* fix: landing company name uppercase

* fix: comments

* chore: split moreeeee

* fix: rename css

* fix: lint styles

* fix: styles

* fix: comments

* fix: comments v3

* fix: comments v4

* fix: comments v5

* Hamza/ hotfix: compare account text size difference (#9950)

* chore: compare account text size difference

* chore: compare account text size difference on mobile

* translations: 📚 sync translations with crowdin (#9945)

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

* Mahdiyeh/fix: change market price movements to market movements (#9341)

* fix: change market price movements to market movements

* fix: resolve issue

---------

Co-authored-by: Mahdiyeh Amirkhani <mahdiyehamirkhani@Mahdiyeh-Amirkhanis-Mac-J79XQHKXVJ.local>

* fix:  cashier page height in iphone (#9779)

* shahzaib / KYC-304 / additional kyc questions in the real account creation (#9501)

* chore: additional information section for real accounts creation

* chore: hide additional details for high risk client

* chore: refactor to pass classname conditionally and removed disposable props

* chore: removed unused props

* chore: renamed className to class_name

* chore: update test case for personal-details component

* Update packages/account/src/Components/personal-details/__tests__/personal-details.spec.js

Co-authored-by: yauheni-deriv <103182683+yauheni-deriv@users.noreply.github.com>

* Update onfido-container.scss

Co-authored-by: yauheni-deriv <103182683+yauheni-deriv@users.noreply.github.com>

* chore: update props

Co-authored-by: yauheni-deriv <103182683+yauheni-deriv@users.noreply.github.com>

* chore: update props

Co-authored-by: yauheni-deriv <103182683+yauheni-deriv@users.noreply.github.com>

* chore: remove unused imports

* chore: update fragment useage

* chore: remove high_risk conditiono to hide the additional fields

* chore: empty commit

* fix(props): removed unused is_high_risk prop

* chore: renamed TaxResidentField

* chore: update tax residence validation message for TIN number

* chore: update config to include additional details if the client is not high risk for mt5

* chore: added test case for high risk condition in personal details config

* chore: refactored test case

* chore: disble additional information fields if user has already filled the details

* feat(hooks): created hooks to get if a user is high risk for MT5

* chore: updated comment for personal details config

* fix: remove unused variable

* fix(test): update test cases to reflect hook change

* test: update test cases to use store provider

* chore: removed unused logic from cfd & traders hub store

* test: update description

* test: mock hook for returned value

* fix: TIN validation in personal-details-config

* fix: added additional field check for diel accounts

---------

Co-authored-by: yauheni-deriv <103182683+yauheni-deriv@users.noreply.github.com>

* Rupato/PRODQA-1167/fix: updated error handling for dbot skeleton (#9576)

* fix: updated error handling for dbot skeleton

* fix: changed method naming

* fix: changed comment

* fix: changed error config

* fix: changed error config

* fix: review comments

* fix: changed keycode

* fix: assigned const

* fix: bug fixes

* fix: for multipliers block

* fix: removed extra space

* fix: added parameter

* fix: for localize

* fix: sentence

* fix: updated error messages

* fix: removed fallback

* fix: removed check for mandatory block

* fix: review comments

* fix: empty trigger

* fix: code refactored and added disabled check

* fix: removed key

* fix: removed key

* fix: changed error message

* fix: reverted changes for disabled block and misplaced

* fix: removed commented code

* fix: review comments

* fix: review comments

* fix: review comments

* chore: updated z-index for language switcher (#9461)

* farabi/bot-512/tour content sizing and responsiveness on small screen (#9472)

* fix: updated content size according to design

* refactor: reverted classname changes

* fix: tour is made responsive on smaller screen

* Shafin/bot 301/fix  preview delete save edit issue (#9549)

* chore: investigation on strategy save, edit, delete issue

* chore: finalize save-delete-edit issue for preview strategies

* fix: don't load if workspace is not present

* fix: pass parent element to mutation observer for least computation

* fix: issues on quick strategy run

* Vinu/bot 92/ticks history refactor (#9547)

* fix: ticks_history call outside the run

* fix: remove console error and make ticks_history call on load

* refactor: remove unecessary code

* fix: added condition to make ticks_history call

* fix: disable run button untill ticks_history call is received

* fix: change trade_type_category,trade_type_category_field in trade_definition_tradetype onchange

* fix: fix ticks_history error when market is closed

* fix: fix the ticks_history call when bot is terminated

* fix: change file accept format (#9812)

* fix: change file accept format

* fix: update file acceptance for dashboard file input

* Hamza/chore: useCreateOtherCFDAccount and useCreateMT5Account hooks added (#9941)

* chore: useCreateOtherCFDAccount and useCreateMT5Account hooks added

* chore: added comments for explanantion purpose

* fix: allow custom variables and function values for limit order (#9490)

* chore: fix language not correct when redirect from deriv-com (#9632)

* chore: fix language not correct when redirect from deriv-com

* chore: fix language redirection from deriv-com

* chore: add optional chaining

* chore: update code base on comments

---------

Co-authored-by: Farabi Chowdhury <farabi@deriv.com>
Co-authored-by: Sandeep <sandeepsingh@Sandeeps-Mac-CX9PCJX3L9.local>
Co-authored-by: henry-deriv <118344354+henry-deriv@users.noreply.github.com>
Co-authored-by: Maryia <103177211+maryia-deriv@users.noreply.github.com>
Co-authored-by: Hamid <hamid@regentmarkets.com>
Co-authored-by: ameerul-deriv <103412909+ameerul-deriv@users.noreply.github.com>
Co-authored-by: George Usynin <103181646+heorhi-deriv@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: DerivFE <80095553+DerivFE@users.noreply.github.com>
Co-authored-by: hirad-deriv <hirad@re-work.dev>
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>
Co-authored-by: adrienne-deriv <103016120+adrienne-deriv@users.noreply.github.com>
Co-authored-by: Matin shafiei <matin@deriv.com>
Co-authored-by: arshad-rao-deriv <muhammad.arshad@deriv.com>
Co-authored-by: mahdiyeh-deriv <82078941+mahdiyeh-deriv@users.noreply.github.com>
Co-authored-by: Ali(Ako) Hosseini <ali.hosseini@deriv.com>
Co-authored-by: Farhan Ahmad Nurzi <125247833+farhan-nurzi-deriv@users.noreply.github.com>
Co-authored-by: thisyahlen <104053934+thisyahlen-deriv@users.noreply.github.com>
Co-authored-by: Farzin Mirzaie <farzin@deriv.com>
Co-authored-by: Mahdiyeh Amirkhani <mahdiyehamirkhani@Mahdiyeh-Amirkhanis-Mac-J79XQHKXVJ.local>
Co-authored-by: Shahzaib <shahzaib@deriv.com>
Co-authored-by: yauheni-deriv <103182683+yauheni-deriv@users.noreply.github.com>
Co-authored-by: rupato-deriv <97010868+rupato-deriv@users.noreply.github.com>
Co-authored-by: Sui Sin <103026762+suisin-deriv@users.noreply.github.com>
Co-authored-by: Farabi <102643568+farabi-deriv@users.noreply.github.com>
Co-authored-by: Shafin Al Karim <129021108+shafin-deriv@users.noreply.github.com>
Co-authored-by: vinu-deriv <100689171+vinu-deriv@users.noreply.github.com>
Co-authored-by: prince-deriv <82309725+prince-deriv@users.noreply.github.com>

* Resolve conflicts improvement dbot tutorials (#9983)

* henry/webrel-1160/hotfix: space issue dropdown (#9898)

* 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 (#9899)

* fix: overwritten styles

* fix: overwritten styles

* Ameerul /WEBREL-1159 Sort by column alignment in P2P Buy/Sell page is off (#9876)

* chore: fixed sort dropdown alignment

* chore: changed styling for dropdown

* george / PRODQA-1316 / Transfer from Tradershub validation (#9908)

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

* test: :bug: fix tests

* fix: :ambulance: fix 'Insufficient balance' condition

* translations: 📚 sync translations with crowdin (#9912)

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

* translations: 📚 sync translations with crowdin (#9917)

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

* Hirad-Hamza-ShonTzu/Feature revamp compare account re-deployment (#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>

* adr…
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const mockProps = {
toggleFilterDialog: jest.fn(),
};

describe('Draggable', () => {
describe('FilterDialog', () => {
let wrapper: ({ children }: { children: JSX.Element }) => JSX.Element, mock_DBot_store: RootStore | undefined;

beforeAll(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import React from 'react';
import { mockStore, StoreProvider } from '@deriv/stores';
// eslint-disable-next-line import/no-extraneous-dependencies
import { render, screen } from '@testing-library/react';
// eslint-disable-next-line import/no-extraneous-dependencies
import { mock_ws } from 'Utils/mock';
import { DBotStoreProvider, mockDBotStore } from 'Stores/useDBotStore';
import JournalTools from '../journal-tools';

jest.mock('@deriv/bot-skeleton/src/scratch/blockly', () => jest.fn());
jest.mock('@deriv/bot-skeleton/src/scratch/dbot', () => ({
saveRecentWorkspace: jest.fn(),
unHighlightAllBlocks: jest.fn(),
}));
jest.mock('@deriv/bot-skeleton/src/scratch/hooks/block_svg', () => jest.fn());

const mockProps = {
toggle_ref: { current: null },
checked_filters: { error: ['test error'], notify: ['test notify'], success: ['test success'] },
filters: [
{ id: 'error', label: 'Errors' },
{ id: 'notify', label: 'Notifications' },
{ id: 'success', label: 'System' },
],
is_filter_dialog_visible: true,
filterMessage: jest.fn(),
toggleFilterDialog: jest.fn(),
};

describe('JournalTools', () => {
let wrapper: ({ children }: { children: JSX.Element }) => JSX.Element;
const mock_store = mockStore({});
const mock_DBot_store = mockDBotStore(mock_store, mock_ws);

beforeAll(() => {
wrapper = ({ children }: { children: JSX.Element }) => (
<StoreProvider store={mock_store}>
<DBotStoreProvider ws={mock_ws} mock={mock_DBot_store}>
{children}
</DBotStoreProvider>
</StoreProvider>
);
});

test('should renders JournalTools', () => {
const { container } = render(<JournalTools {...mockProps} />, {
wrapper,
});
expect(container).toBeInTheDocument();
});

test('should renders filter options that is passed as prop', () => {
render(<JournalTools {...mockProps} />, {
wrapper,
});
expect(screen.getByText('Notifications')).toBeInTheDocument();
});
});

1 comment on commit 8704e14

@vercel
Copy link

@vercel vercel bot commented on 8704e14 Oct 20, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.vercel.app
binary.sx
deriv-app-git-master.binary.sx
deriv-app.binary.sx

Please sign in to comment.