Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suisin/utkarsha/upm819/phone verification flow (#16326)
* chore: replace modal with quill-ui modal * chore: update test case to pass first for phone number verified modal * fix: test case * chore: update code base on comments * chore: resolve integration test failling * chore: update code based on comments * chore: add didnt get the code modal for phone verification * chore: update test case and files for didnt get the code modal * chore: update code based on comments * chore: update test case based on comments * chore: update helpers.ts based on comments * chore: update based on comments * chore: move convertPhoneTypeDisplay to correct folders * chore: update resend-code-timer test case to use jest.advanceTimer * chore: update show to show_otp_verification * chore: update to use localise function * chore: create verification-link-expired-modal * chore: update all quill-ui packages * chore: update test case title * chore: update package version for quill-ui * chore: create useGetEmailVerificationOTP hooks * chore: implement callback for hooks * chore: try to add InputGroupButton for phone-verification * chore: update code based on comments * chore: remove useGetEmailVerificationOTP and use useVerifyEmail instead * chore: remove Input field from component and use quill-ui TextField and InputGroupButton * chore: update scss * chore: fix test failing for resend-code-timer.spec.tsx * chore: implement phone number otp api hooks * chore: update test case for useSendOTPVerificationCode * chore: update otp-verification.spec.tsx * chore: update title for otp verification and add test for Phone number verified modal * chore: update naming to is_phone_number_verified based on comment * chore: update localize in hooks * fix: type error * chore: resolve build fail issue * chore: add localize at useSendOTPVerificationCode * chore: implement error status when phone number is invalid * chore: fix test case for confirm phone number * chore: rename test case title and hooks based on comment * chore: moved validePhoneNumber to a constant file * chore: add error screens for email otp invalid * chore: remove unused package in hooks * chore: added useSetSettings hooks and change logic using new implemented hooks * chore: update test case and localStorage setItem * chore: rename handleError to formatError * chore: change useSetSettings to useSettings and modify the hooks * chore: update based on comments * chore: remove conditional check for handleError and make it into 2 different formatError * chore: include comments in hooks for requestSMS and requestWhatsapp * chore: update useSEndOTPVerificationCode test case * chore: add routing from email verification link * chore: remove comments * chore: implement timer from BE * chore: update code based on comment * chore: use 1 useState for otp request * chore: move to 1 useState based on comment * chore: rename phone_number_verification and move setIsLoading in if else statement based on comment * chore: move setTimer useState into otp-verification * chore: need to use React.useCallback to solve blinking issue for reInitalizeGetSettings * chore: remove setIsButtonDisabled in validate next_email_otp_request function * chore: update code based on comments * chore: update to use is_email_verified * chore: add WS call when redirect from notification tray * chore: remove unused comment * chore: update quill-ui in package.json * chore: added Math.round for minutes timer * chore: update code to have better user flow * chore: realign code for BE integration * chore: add timer to personal-details, expired modal and notification * chore: remove unused dayjs in account package * chore: update quill-ui version and updated codes for expired-link-modal * chore: update verification link expired modal * chore: add timer countdown snackbar in confirm your phone number page * chore: update commented paragraph and remove TODOs * chore: update test case and remove ts-expect-error * chore: remove unused ...rest * chore: include !! to phone_number_verification.verified * chore: update verify button to clear all possible stored value * chore: update code to fix demo session bugs * chore: remove is_mobile from ui-store and update to latest useDevice * chore: fix test case failling and update code based on comments * chore: remove phone_number_verify?.verified logic check in personal details * chore: fix test case and remove unused imports * chore: update to fix test case * chore: update code based on comments * chore: update test case * chore: update code based on comments * chore: revert icons file * chore: update code based on comments * chore: update packages version and fix useSetting based on comments * chore: update code based on comments * chore: update verify-button.spec.tsx based on comment * chore: update quill-ui version and code based on comments * chore: update positions test case with scrollTo fix * chore: remove @ts-expected-error * fix: console log verified not found issue and clear otp after click resend code * chore: fix authorize issue * chore: update quill-ui version for console log fix * chore: fix verification link expired rerendering issue * fix: clicks on resend link or send via whatsapp redirect user back to confirm phone number page * chore: have to include color black in button so the underline will be black * chore: update quill-ui version * chore: update to include type number in InputGroupButton * chore: update useVerifyEmail hooks to fix button disabled issue * chore: should run timer also if error is returned from BE * fix: console error on clicking verify button in personal details section * chore: fix unmounted console log issue * chore: use useEffect directly from react package * chore: fix test case fail issue * chore: fix link-expired-modal cause added a boolean value in the hooks * chore: replace TextField with TextFieldAddOn for confirm your phone number page * chore: create new functional call in useVerifyEmail and remove deprecated tag * chore: fix console log issue after clicking on verify button * fix: legacywonicon not displaying properly by updating the version * chore: update quill-ui version to fix input validation issue * chore: update quill-ui verison to fix dark mode + issue * chore: use lazyLoading for phone number verification * chore: fix verify-button test case based on comment * chore: update codes based on comment * fix: resolve conflicts * chore: revert phone number verification changes with master * chore: make verify button disabled once user edit personal details and added growthbook * chore: scss changes to fix tablet view issue * chore: hide notification and show demo message when user is in demo account * chore: implement growthbook in AppContent and added client store for it * chore: change to redirect user back to personal details once they switch to demo * chore: move popover tablet view from right to top * chore: hide verify button when phone number changes * chore: update growthbook usage based on comment * chore: update useEffect in AppContent * Suisin/utkarsha/upm819/phone verification flow (#16157) * feat: move timer to diff component * refactor: replace timer code with component * test: testcase for resend-code-timer * chore: add test case on cancel phone verification modal and move to a seperate component * chore: update test case for phone-verification-page * chore: update codes based on comments * chore: update data testid * fix: change text for email and phone, add TODOs * chore: edit testcases * chore: change prop to text * test: update testcase * chore: use ReturnType instead of NodeJS.timer * chore: update quill-ui package and remove previous build config edits * feat: integrate phone number challenge api * chore: add comments * chore: add ThemeProvider in phone verification * chore: use states instead of useRef and update testcase * test: added testcases for the hook * chore: add phone otp screen * chore: update based on comments * chore: remove unused store in test case * chore: add sms and whatsapp to 1 constant file * chore: update code based on comments * test: add tescases for counter change and title change * chore: update code based on comments * test: use useRealTimers * test: mock useGetPhoneNumberOTP * chore: update TODO comments * chore: update code * chore: update function for WhatsApp display * chore: fix test case fail for confirm-phone-number * chore: resolve failling test case * chore: resolve conflicts otp-verification-component * fix: prettier issue scss format * chore: add phone verification successful modal * chore: edit classname for verified modal * chore: update test case describe name and ui store value * chore: move successful modal inside phone-number-verification-page * chore: update phone-number-verified-modal and remove ui store values * chore: revert unused changes * chore: add routes to personal details * chore: fix matchMedia failling in test case * chore: update test case title * chore: replace modal with quill-ui modal * chore: update test case to pass first for phone number verified modal * fix: test case * chore: update code base on comments * chore: resolve integration test failling * chore: update code based on comments * chore: add didnt get the code modal for phone verification * chore: update test case and files for didnt get the code modal * chore: update code based on comments * chore: update test case based on comments * chore: update helpers.ts based on comments * chore: update based on comments * chore: move convertPhoneTypeDisplay to correct folders * chore: update resend-code-timer test case to use jest.advanceTimer * chore: update show to show_otp_verification * chore: update to use localise function * chore: create verification-link-expired-modal * chore: update all quill-ui packages * chore: update test case title * chore: update package version for quill-ui * chore: create useGetEmailVerificationOTP hooks * chore: implement callback for hooks * chore: try to add InputGroupButton for phone-verification * chore: update code based on comments * chore: remove useGetEmailVerificationOTP and use useVerifyEmail instead * chore: remove Input field from component and use quill-ui TextField and InputGroupButton * chore: update scss * chore: fix test failing for resend-code-timer.spec.tsx * chore: implement phone number otp api hooks * chore: update test case for useSendOTPVerificationCode * chore: update otp-verification.spec.tsx * chore: update title for otp verification and add test for Phone number verified modal * chore: update naming to is_phone_number_verified based on comment * chore: update localize in hooks * fix: type error * chore: resolve build fail issue * chore: add localize at useSendOTPVerificationCode * chore: implement error status when phone number is invalid * chore: fix test case for confirm phone number * chore: rename test case title and hooks based on comment * chore: moved validePhoneNumber to a constant file * chore: add error screens for email otp invalid * chore: remove unused package in hooks * chore: added useSetSettings hooks and change logic using new implemented hooks * chore: update test case and localStorage setItem * chore: rename handleError to formatError * chore: change useSetSettings to useSettings and modify the hooks * chore: update based on comments * chore: remove conditional check for handleError and make it into 2 different formatError * chore: include comments in hooks for requestSMS and requestWhatsapp * chore: update useSEndOTPVerificationCode test case * chore: add routing from email verification link * chore: remove comments * chore: implement timer from BE * chore: update code based on comment * chore: use 1 useState for otp request * chore: move to 1 useState based on comment * chore: rename phone_number_verification and move setIsLoading in if else statement based on comment * chore: move setTimer useState into otp-verification * chore: need to use React.useCallback to solve blinking issue for reInitalizeGetSettings * chore: remove setIsButtonDisabled in validate next_email_otp_request function * chore: update code based on comments * chore: update to use is_email_verified * chore: add WS call when redirect from notification tray * chore: remove unused comment * chore: update quill-ui in package.json * chore: added Math.round for minutes timer * chore: update code to have better user flow * chore: realign code for BE integration * chore: add timer to personal-details, expired modal and notification * chore: remove unused dayjs in account package * chore: update quill-ui version and updated codes for expired-link-modal * chore: update verification link expired modal * chore: add timer countdown snackbar in confirm your phone number page * chore: update commented paragraph and remove TODOs * chore: update test case and remove ts-expect-error * chore: remove unused ...rest * chore: include !! to phone_number_verification.verified * chore: update verify button to clear all possible stored value * chore: update code to fix demo session bugs * chore: remove is_mobile from ui-store and update to latest useDevice * chore: fix test case failling and update code based on comments * chore: remove phone_number_verify?.verified logic check in personal details * chore: fix test case and remove unused imports * chore: update to fix test case * chore: update code based on comments * chore: update test case * chore: update code based on comments * chore: revert icons file * chore: update code based on comments * chore: update packages version and fix useSetting based on comments * chore: update code based on comments * chore: update verify-button.spec.tsx based on comment * chore: update quill-ui version and code based on comments * chore: update positions test case with scrollTo fix * chore: remove @ts-expected-error * fix: console log verified not found issue and clear otp after click resend code * chore: fix authorize issue * chore: update quill-ui version for console log fix * chore: fix verification link expired rerendering issue * fix: clicks on resend link or send via whatsapp redirect user back to confirm phone number page * chore: have to include color black in button so the underline will be black * chore: update quill-ui version * chore: update to include type number in InputGroupButton * chore: update useVerifyEmail hooks to fix button disabled issue * chore: should run timer also if error is returned from BE * fix: console error on clicking verify button in personal details section * chore: fix unmounted console log issue * chore: use useEffect directly from react package * chore: fix test case fail issue * chore: fix link-expired-modal cause added a boolean value in the hooks * chore: replace TextField with TextFieldAddOn for confirm your phone number page * chore: create new functional call in useVerifyEmail and remove deprecated tag * chore: fix console log issue after clicking on verify button * fix: legacywonicon not displaying properly by updating the version * chore: update quill-ui version to fix input validation issue * chore: update quill-ui verison to fix dark mode + issue * chore: use lazyLoading for phone number verification * chore: fix verify-button test case based on comment * chore: update codes based on comment * fix: resolve conflicts * chore: revert phone number verification changes with master * chore: make verify button disabled once user edit personal details and added growthbook * chore: scss changes to fix tablet view issue * chore: hide notification and show demo message when user is in demo account * chore: implement growthbook in AppContent and added client store for it * chore: change to redirect user back to personal details once they switch to demo * chore: move popover tablet view from right to top * chore: hide verify button when phone number changes * chore: update growthbook usage based on comment * chore: update useEffect in AppContent --------- Co-authored-by: utkarsha-deriv <[email protected]> Co-authored-by: amina-deriv <[email protected]> Co-authored-by: amina-deriv <[email protected]> * chore: update growthbook value in AppContent * chore: remove is_phone_number_verification_enabled * chore: solve redirect not working issue * chore: update packages for deriv-com/quill-ui * fix: removed clean urls from vercel dr json (#16249) * Revert "[WALL] george / WALL-4522 / Add ce_cashier_deposit_onboarding_form an…" (#16246) This reverts commit a10f85c. * [DTRA] Maryia/DTRA-1546/fix: [V2] style & animation for Digits Current spot price + active_symbols request (#16225) * fix: styles & animation for current spot for digit trade types * fix: active_symbols call for rise/fall and higher/lower * fix: useActiveSymbols usage * fix: active_symbols call with relevant barrier_category + error handling same like in prod * chore: replace localize import with new library (#16140) * chore: replace localize import with new library * chore: removed unused component * chore: update usePhoneNumberVerificationSetTimer to use useServerTime * [WALL] Lubega / WALL-4549 / Wallets initial translations setup (#16158) * feat: draft wallet translations * feat: initial wallets translations setup * chore: clean up code * fix: resolve error * fix: resolve error * chore: update text component * fix: env variables and language switcher * [WALL] Lubega/ WALL-4549 / Wallets multi language support (#16069) * feat: draft wallet translations * feat: initial wallets translations setup * chore: clean up code * fix: resolve error * fix: resolve error * chore: update text component * fix: env variables and language switcher * fix: update locked scenarios * [WALL] Lubega / Wallets translations update (#16112) * feat: draft wallet translations * feat: initial wallets translations setup * chore: clean up code * fix: resolve error * fix: resolve error * chore: update text component * fix: env variables and language switcher * Suisin/fix: text not bold in email and password page (#16094) * fix: text not bold in email and password page * chore: update package version to use specific version * Fasih/COJ-1275/ Implemented lazy load (#16020) * chore: implemented lazy load on financial assessment and trading assesment * chore: working on personal details * chore: removed lazy load from personal details --------- Co-authored-by: amina-deriv <[email protected]> * [WALL] george / WALL-4402 / feat(wallets): ✨ add analytics to track wallets events (#16004) * feat(wallets): ✨ add wallet migration analytic * chore: 🔇 suppress ts error * chore: align with master * fix: prettified code * chore: fix isOpen condition appear twice * fix: update locked scenarios --------- Co-authored-by: Sui Sin <[email protected]> Co-authored-by: fasihali-deriv <[email protected]> Co-authored-by: amina-deriv <[email protected]> Co-authored-by: George Usynin <[email protected]> * fix: update github workflow * fix: getWalletHeaderButtons format * Update index.js * Update index.js * Update index.js * Update index.js * Update index.js * chore: remove eslint auto format * chore: test remove line * chore: test remove line * chore: test remove line * chore: test remove line * chore: test remove line * chore: update deriv-com/translations version --------- Co-authored-by: Sui Sin <[email protected]> Co-authored-by: fasihali-deriv <[email protected]> Co-authored-by: amina-deriv <[email protected]> Co-authored-by: George Usynin <[email protected]> Co-authored-by: nijil-deriv <[email protected]> * translations: 📚 sync translations with crowdin (#16262) Co-authored-by: DerivFE <[email protected]> * ci: change env usage (#16264) * Ako/ override installCommand of vercel (#16257) * build: override installcommand of vercel * build: override installcommand of vercel (#16256) * ci: fix the staging vercel env * chore: update to use useGrowthbookGetFeatureFlag * fix: remove localize loader (#16268) * Rupato/BOT-1935/Handle-invalid-access-token (#16190) * fix: google drive issue * fix: goodle drive error * fix: renamed observables * fix: added localize * fix: added error message on the load modal popup * fix: added error message on the load modal popup * fix: removed google drive api call and handled with response of sign in * fix: handled local storage check * fix: handled naming * fix: removed css * fix: added file check * fix: added refresh token * fix: changed function return * [BOT] maryia/BOT-1479/[Test Coverage] Folder: bot-web-ui/src/components/self-exclusion (#16234) * test: folder self-exclusion * refactor: remove mock of modal component * translations: 📚 sync translations with crowdin (#16271) Co-authored-by: DerivFE <[email protected]> * translations: 📚 sync translations with crowdin (#16275) Co-authored-by: DerivFE <[email protected]> * chore: [UPM-613]/evgeniy/add passkey notification in tray / remove effortless modal (#15757) * chore: [UPM-613]/evgeniy/add passkey notification in tray / remove effortless modal * fix: remove notification on passkey creation * chore: added clear all tracking event * chore: add open/close event on notification tray * chore: added notification cta event, removed unnecessary TODOs * chore: added ts ignore for new events * chore: remove passkey notif when user goes to desktop mode * chore: remove extra ! from passkey notification heading * chore: remove comments * fix: remove passkeylist call on desktop * chore: resolve conflicts * Revert "chore: resolve conflicts" --------- Co-authored-by: utkarsha-deriv <[email protected]> Co-authored-by: amina-deriv <[email protected]> * translations: 📚 sync translations with crowdin (#16276) Co-authored-by: DerivFE <[email protected]> * [DTRA] Maryia/DTRA-1554/feat: [V2] add trade type tabs for Higher/Lower & Touch/No Touch (#16248) * feat: add trade type tabs for Higher/Lower & Touch/No Touch * test: setTradeTypeTab in trade-store * test: TradeTypeTabs * test: getTradeTypeTabsList * test: purchase-button * test: TradeParameters * chore: move setLoading to top of the function * [BOT] Farabi/bot-1499/dbot tours tutorials test coverage (#16254) * chore: add test coverage for all dbot tour files in tutorials folder * chore: added tour steps test case * fix: improved test coverage * translations: 📚 sync translations with crowdin (#16281) Co-authored-by: DerivFE <[email protected]> * chore: update to use WS instead of useServerTimer * chore: fix cd /Users/suisin/Documents/deriv-apppersonal-details-form test case * chore: update otp-verification test case * Suisin/chore: update workflows to have environment of staging (#16292) * chore: update workflows to have environment of staging * chore: update npm run build with a growthbook keys * Suisin/update workflow to have staging environment (#16293) * chore: update workflows to have environment of staging * chore: update npm run build with a growthbook keys * chore: update build_docker_image.yml file * fix: reponsive modal fix (#16286) * fix: google drive import issue (#16296) * dhruv/Fixed console errors in personal details/COJ-1334 (#16066) * fix: fixed console errors in personal details * fix: cleaned code * fix: implemnented useLocation() * fix: resolved testcases * fix: implemented useLocation but button-pop up issue not resolved * fix: fixed leave settings button * fix: fixed failed test cases * fix: fixed the module bug * fix: merged master to branch * fix: resolved github issues * fix: fixed merge issues4 * fix: fixed test case * fix: fixed security bug for github * fix: merged master * fix: fixed security bug for github2 * fix: cleaned code * fix: cleaned code2 * fix: cleaned code3 * fix: cleaned up code * fix: resolved comments1 * fix: resolved comment2 * fix: 🔥 updated file names (#16300) * feat: make 1 active_symbols API call for both contract types of Vanillas and Turbos trade types (#16279) * DTRA / Kate / DTRA-1475 / Implement Take profit trade param functionality (#16224) * feat: init take profit * feat: enable editing tp and fix carousel btn zindex * feat: add validation params * feat: alternative acc content * feat: add overlay for detecting clicks on disabled input * feat: add trap for ios focus * refactor: add tests for take profit * refactor: attempt to remove artificial focus * chore: typos * refactor: add tests for focusing function * refactor: carousel header, rename state constants * refactor: decomposite take profit trade param * refactor: extracted input for focus into a separate component * chore: remove forward ref * chore: refactor fake input * chore: rework * chore: rework * refactor: revert previous changes * refactor: apply design changes * [BOT] feature/server-side-bot (#15701) * [BOT] [Experemental]Maryia/bot-1230/feat: ui server-side bot MVP (#12985) * feat: add new Bot UI * feat: form for server side bot * feat: implement new UI with components * feat: add interface, type, etc for server side bot * chore: organize/sort files in a new way as in the master branch(2) * feat: ui bot list * refactor: move methods to the class, add ts * chore: fix sonar cloud code smell * feat: add api calls start_bot, stop_bot * feat: add @deriv/hooks to package.json * feat: notify bot * fix: comment setItem() * feat: apply handle submit for qs server side form, fix bugs, apply ts * feat: handle notification messages * refactor: naming * chore: resolve conflicts (part2) * chore: resolve conflicts (part3) * chore: resolve conflicts (part4) * chore: resolve conflicts (part5) * chore: revert a file * chore: revert a file * chore: revert a file * [BOT] [Server Side Bot]maryia/bot 1913/Test link bug fixing and improvements (#15719) * fix: integrate a toggle button which will switch to stop if the bot is running * feat: make available bot subscription after reloading the page * feat: 🔥 fixing server side bot bugs and ui issues * feat: 🔥 server side bot improvements after api update * fix: 🔥 style fix * fix: 🔥 fixing style issues * Feature/server side bot (#16067) * feat: 🔥 fixing server side bot bugs and ui issues * feat: 🔥 server side bot improvements after api update * fix: 🔥 style fix * fix: 🔥 fixing style issues * feat: removed dvh and added exceptions for temporary consoles * feat: 🔥 added mobile/desktop UI for server side bot * feat: server side bot adding functionalities * feat: 🔥 server bot journal implementation * fix: login and server bot (#16259) * feat: 🔥 working on journal/summary * chore: name validation and stop bot issue (#16273) * feat: 🚧 added performance, made minor improvements * feat: 🚧 fixed summary and made mobile improvements * feat: 🚧 tracking bot subscriptions * refactor: 🚧 fixed sonar cloud warnings * feat: 🚧 added download and reset feature * fix: server side bot test cases (#16289) * feat: ✨ added country check * feat: ✨ Cleanup and updated content messages * chore: 🧪 improved test coverage variables * refactor: remove extra line breaks * refactor: replace small localize with big Localize * refactor: replace small localize with big Localize * feat: 🚧 nit picks and file renaming * chore: 🔥 indentation and eslint suggestions * chore: 🔥 cleanup consoles --------- Co-authored-by: maryia-matskevich-deriv <[email protected]> Co-authored-by: rupato-deriv <[email protected]> Co-authored-by: Shafin Al Karim <[email protected]> Co-authored-by: Farabi <[email protected]> Co-authored-by: Maryia <[email protected]> * build: update analytics package to version 1.11.0 (#16298) * chore: fix notification tray not closing issue * chore: 🔥 typo fix (#16312) * chore: add checks for phone number * chore: add inputMode types to otp input fields * chore: update condition for phone number verification notification * [DTRA] Henry/dtra 1443/market closed message v2 (#16196) * fix: stop scrolling to center on symbol selection for all category * fix: flex-start tabs list * fix: market is closed message * fix: type error * fix: add tests * fix: add tests * fix: add a mock for closedmarketmessage * fix: remove unused import * fix: comment * translations: 📚 sync translations with crowdin (#16319) Co-authored-by: DerivFE <[email protected]> * fix: build failure (#16321) * chore: replace useGrowthbookIsOn with useGrowthbookGetFeatureValue --------- Co-authored-by: amina-deriv <[email protected]> Co-authored-by: amina-deriv <[email protected]> Co-authored-by: utkarsha-deriv <[email protected]> Co-authored-by: nada-deriv <[email protected]> Co-authored-by: Maryia <[email protected]> Co-authored-by: Likhith Kolayari <[email protected]> Co-authored-by: lubega-deriv <[email protected]> Co-authored-by: fasihali-deriv <[email protected]> Co-authored-by: George Usynin <[email protected]> Co-authored-by: nijil-deriv <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: DerivFE <[email protected]> Co-authored-by: Ali(Ako) Hosseini <[email protected]> Co-authored-by: rupato-deriv <[email protected]> Co-authored-by: maryia-matskevich-deriv <[email protected]> Co-authored-by: yauheni-deriv <[email protected]> Co-authored-by: Farabi <[email protected]> Co-authored-by: Dhruv Neb <[email protected]> Co-authored-by: Sandeep Rajput <[email protected]> Co-authored-by: kate-deriv <[email protected]> Co-authored-by: Shafin Al Karim <[email protected]> Co-authored-by: henry-deriv <[email protected]>
- Loading branch information