Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traders hub beta #7000

Merged
merged 285 commits into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
285 commits
Select commit Hold shift + click to select a range
a1ac026
Merge branch 'master' into pre-appstore
balakrishna-deriv Sep 2, 2022
98d488a
Hirad/74908/trigger animation (#6344)
hirad-deriv Sep 5, 2022
e5de8ae
Hirad/ Onboarding progress bar (#6345)
hirad-deriv Sep 5, 2022
889d19e
add more derived acounts component (#6341)
mahdiyeh-deriv Sep 5, 2022
b781963
Bala/Fix wallet test case (#6372)
balakrishna-deriv Sep 5, 2022
d7ced88
Mahdiyeh/Feature: add more options accounts component (#6304)
mahdiyeh-deriv Sep 7, 2022
fe1b958
Ashraf pre appstore (#6297)
ashraf-deriv Sep 7, 2022
6315ed0
Ashraf/74903/pre app store account (#6367)
ashraf-deriv Sep 7, 2022
a66af00
Hirad/75012/CFD Account Manager component (#6370)
hirad-deriv Sep 11, 2022
b79f372
Hirad/ Total Assets Component (#6369)
hirad-deriv Sep 11, 2022
3f74796
thisyahlen/Trading hub changes (#6279)
thisyahlen-deriv Sep 15, 2022
e2d58f1
Hirad/ Onboarding component (#6309)
hirad-deriv Sep 19, 2022
30e46d6
thisyahlen/create an options account component (#6537)
thisyahlen-deriv Sep 21, 2022
9b52725
Mahdiyeh/ fix: convert cfd-account-manager to account-manager (#6552)
mahdiyeh-deriv Sep 21, 2022
0dbf945
CFD accounts (#6439)
mahdiyeh-deriv Sep 28, 2022
a1bb80e
Mahdiyeh/Update pre_appstore with master (#6659)
mahdiyeh-deriv Oct 3, 2022
e731d8b
thisyahlen/ added tour guide component (#6573)
thisyahlen-deriv Oct 4, 2022
88ca6df
add CFDStore to modules store of core (#6676)
mahdiyeh-deriv Oct 4, 2022
d964489
Hirad/76734/onboarding static dashboard (#6579)
hirad-deriv Oct 6, 2022
54edd31
Pulled from main branch
hirad-deriv Oct 7, 2022
fff7e6d
update with master (#6722)
mahdiyeh-deriv Oct 10, 2022
52a81c3
Pulled from main branch
hirad-deriv Oct 10, 2022
350813f
Mahdiyeh/73628/compare account modal (#6721)
mahdiyeh-deriv Oct 11, 2022
9604c47
Merge branch 'pre-appstore' of https://github.com/binary-com/deriv-ap…
hirad-deriv Oct 11, 2022
f0eca1e
Mahdiyeh/Update pre appstore with master (#6749)
mahdiyeh-deriv Oct 13, 2022
8dfff4d
thisyahlen/ redirect new users to trading hub (#6670)
thisyahlen-deriv Oct 13, 2022
8102a8c
thisyahlen/ add total assets (#6754)
thisyahlen-deriv Oct 17, 2022
55f4b86
Hirad/73608/CFD Flows (#6732)
hirad-deriv Oct 18, 2022
a25764b
Merge branch 'pre-appstore' of https://github.com/binary-com/deriv-ap…
hirad-deriv Oct 18, 2022
a5f9d29
Merge branch 'master' of https://github.com/binary-com/deriv-app
hirad-deriv Oct 18, 2022
7f74d48
Ashraf/73649/craete options component (#6525)
ashraf-deriv Oct 19, 2022
753263e
Fixed translation files
hirad-deriv Oct 20, 2022
153a137
Fixed translation files
hirad-deriv Oct 20, 2022
bc20e74
Hirad/78837/compare-accounts-account-creation-flow (#6783)
hirad-deriv Oct 20, 2022
a0b0a66
Merge branch 'pre-appstore' of https://github.com/binary-com/deriv-ap…
hirad-deriv Oct 20, 2022
14bde8c
Hirad/78900/add derived functionality (#6788)
hirad-deriv Oct 20, 2022
64c5d96
Merge branch 'pre-appstore' of https://github.com/binary-com/deriv-ap…
hirad-deriv Oct 20, 2022
b2b0023
Hirad/79281/disable available accounts (#6793)
hirad-deriv Oct 20, 2022
a33db7c
Merge branch 'pre-appstore' of https://github.com/binary-com/deriv-ap…
hirad-deriv Oct 20, 2022
a1de453
Fixed the issue
hirad-deriv Oct 20, 2022
a9b2e25
Hirad/79288/get changeable fields error (#6794)
hirad-deriv Oct 20, 2022
bc6ea27
Mahdiyeh/73607/trading hub dashboard (#6755)
mahdiyeh-deriv Oct 20, 2022
812bdac
Synching Trading Hub Dashboard with master
mahdiyeh-deriv Oct 20, 2022
0d14692
Merge branch 'master' of github.com:binary-com/deriv-app into Trading…
mahdiyeh-deriv Oct 24, 2022
fab11a4
fix code smells
mahdiyeh-deriv Oct 24, 2022
e2716ad
Merge branch 'master' of github.com:binary-com/deriv-app into Trading…
mahdiyeh-deriv Oct 25, 2022
acf08cc
remove redundant icons
mahdiyeh-deriv Oct 25, 2022
f9ba140
minify icon
mahdiyeh-deriv Oct 25, 2022
5678377
remove appstore components which are not used in pre-appstore
mahdiyeh-deriv Oct 25, 2022
49118b3
remove myapps.deriv, fix walletIcon typescript, add gap to css, repla…
mahdiyeh-deriv Oct 25, 2022
08d25c0
Merge branch 'pre-appstore' of https://github.com/binary-com/deriv-ap…
hirad-deriv Oct 26, 2022
0e2c262
Merge branch 'master' of github.com:binary-com/deriv-app into Trading…
mahdiyeh-deriv Oct 26, 2022
6593039
Pulled from main branch
hirad-deriv Oct 26, 2022
7b938c3
fix tour guide issue
mahdiyeh-deriv Oct 26, 2022
8b5c221
Fixed the redundant line in onboarding dashboard
hirad-deriv Oct 26, 2022
667defc
Pulled from main branch
hirad-deriv Oct 26, 2022
0109f82
remove getChangeableFields from CFDPersonalDetails
mahdiyeh-deriv Oct 26, 2022
769de4a
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
mahdiyeh-deriv Oct 26, 2022
fbfa250
fix cfd components width, fix loading
mahdiyeh-deriv Oct 27, 2022
a3d85ae
Merge branch 'master' of github.com:binary-com/deriv-app into Trading…
mahdiyeh-deriv Oct 30, 2022
9b3e207
fix new aliases
mahdiyeh-deriv Oct 30, 2022
7f5adf0
remove TempAppSettings component
mahdiyeh-deriv Oct 30, 2022
aa9bea3
remove decoratores
mahdiyeh-deriv Oct 30, 2022
1d36fcb
change trading-hub title/ change enable-disable trading-hub buttons
mahdiyeh-deriv Oct 30, 2022
6abc866
added redirection for login pre-appstore
thisyahlen-deriv Oct 31, 2022
2942e0a
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
thisyahlen-deriv Oct 31, 2022
e982cf0
remove cfd parent div if that account is not visible
mahdiyeh-deriv Oct 31, 2022
759b233
redirect to login for trading hub users
thisyahlen-deriv Nov 1, 2022
efb94e9
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
thisyahlen-deriv Nov 1, 2022
b850924
get options account word change and dark mode fix
thisyahlen-deriv Nov 1, 2022
c0ffebe
Fixed options titles
hirad-deriv Nov 1, 2022
a67ee7a
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 1, 2022
c49c818
added beta tag to all 3 headers
thisyahlen-deriv Nov 1, 2022
95555cc
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
thisyahlen-deriv Nov 1, 2022
d56f992
Merge branch 'master' of github.com:binary-com/deriv-app into Trading…
mahdiyeh-deriv Nov 1, 2022
8d7b021
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
mahdiyeh-deriv Nov 1, 2022
03c1431
remove welcome modal after signup
mahdiyeh-deriv Nov 1, 2022
f0fc105
revert deleted files
mahdiyeh-deriv Nov 2, 2022
0a298e5
total assets blur if user has no real account
Nov 2, 2022
ab5ee31
fix conflicts
mahdiyeh-deriv Nov 2, 2022
f6d1f09
fix overflow
mahdiyeh-deriv Nov 2, 2022
9f9fe60
add spacing between amount and currency
Nov 3, 2022
a8e3434
code refactoring from comments
Nov 3, 2022
27252a4
code refactor
Nov 4, 2022
5568c30
Merge branch 'master' of https://github.com/binary-com/deriv-app into…
Nov 4, 2022
984ca42
onboarding css fix
Nov 4, 2022
544c93f
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 6, 2022
6f0fcf0
Merge branch 'master' of github.com:binary-com/deriv-app into Trading…
mahdiyeh-deriv Nov 6, 2022
7c0d8ba
remove translation
mahdiyeh-deriv Nov 6, 2022
7c82576
comments fix and refactor
Nov 7, 2022
823d306
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
Nov 7, 2022
001dbfb
yashim comments fix part 1
Nov 7, 2022
d1ef13b
yashim & bala comments fix part 2
Nov 7, 2022
74558b4
change to staticurl
Nov 7, 2022
4cf9122
Merge branch 'master' into Trading_Hub_Dashboard
yashim-deriv Nov 7, 2022
9f9cbac
update package.lock
Nov 7, 2022
9cd54d6
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
Nov 7, 2022
d30b18a
Merge branch 'master' of github.com:binary-com/deriv-app into Trading…
mahdiyeh-deriv Nov 7, 2022
42bec35
change mt5 to deriv mt5
Nov 8, 2022
3434ea8
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
mahdiyeh-deriv Nov 8, 2022
aacb5c4
fixed languages not appearing in responsive
Nov 8, 2022
ac960db
fix account switcher not appearing
Nov 8, 2022
1fa8832
fix deriv-go redirection
mahdiyeh-deriv Nov 8, 2022
2f664d4
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
mahdiyeh-deriv Nov 8, 2022
b1fe80e
Onboarding styling fix
hirad-deriv Nov 8, 2022
d5d92f7
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 8, 2022
315c8b3
Pulled from master
hirad-deriv Nov 8, 2022
1de9462
open a new page when clicking on the trade button for different platform
mahdiyeh-deriv Nov 8, 2022
7d4514c
Removed animation of get button in the last steps
hirad-deriv Nov 8, 2022
c2421ca
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 8, 2022
691fa87
Fixed the issue where all of the platform launcher options were shown
hirad-deriv Nov 8, 2022
fd4b024
open app according to chosen account type
Nov 9, 2022
7c635fd
fix options and multipliers definition
Nov 9, 2022
0f22355
fixed account type redirection
Nov 9, 2022
8fc93fe
fix overlapping
mahdiyeh-deriv Nov 9, 2022
7873ab3
fixed to show add a real account first in CFD accounts if the user do…
Nov 10, 2022
8f0c0e2
Fixed next button visibility and options change in mobile mode
hirad-deriv Nov 10, 2022
395f740
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 10, 2022
f7dfbe9
Fixed mobile view of onboarding
hirad-deriv Nov 10, 2022
a312388
Fixed design differences
hirad-deriv Nov 10, 2022
623488c
Undefined loginid error fixed
hirad-deriv Nov 10, 2022
d78cd83
Compare accounts need fix fix in responsive
hirad-deriv Nov 10, 2022
f70c761
dark mode ui fix
Nov 11, 2022
cf8b214
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
Nov 11, 2022
5262cc8
demo account currency fix
Nov 11, 2022
e7edeef
fix demo account balance in top up modal
Nov 11, 2022
afe01f9
fix trade button to appear for demo accounts
Nov 11, 2022
5550ac2
add 'Exit Trader hub' button
mahdiyeh-deriv Nov 13, 2022
8d8a5f8
fix social signup
mahdiyeh-deriv Nov 13, 2022
53d65c4
Merge branch 'master' of github.com:binary-com/deriv-app into Trading…
mahdiyeh-deriv Nov 13, 2022
920c93c
real account signup title change
Nov 14, 2022
4903cdd
fix get button for demo mf account
Nov 14, 2022
7d11c56
disabled get button if user has no real account
Nov 14, 2022
2f6be60
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 14, 2022
6d94e8b
fix deriv x demo account creation
Nov 15, 2022
510b938
use CFD_PLATFORMS.MT5 instead of mt5
mahdiyeh-deriv Nov 15, 2022
b09131c
fix options and multipliers wording in onboarding
Nov 15, 2022
2e53f67
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
Nov 15, 2022
c8744dc
fix compare accounts responsive
mahdiyeh-deriv Nov 15, 2022
1e32ea4
Fixed onboarding eu issue
hirad-deriv Nov 15, 2022
bf2d230
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 15, 2022
6e62bc3
Fixed the conflict
hirad-deriv Nov 15, 2022
fcd4c74
Fixed the conflict
hirad-deriv Nov 15, 2022
be6b414
Fixed the Exit and Explore issue of Traders Hub
hirad-deriv Nov 15, 2022
20ac5c5
fix rows for CompareAccountsModal
mahdiyeh-deriv Nov 15, 2022
e5ce188
Merge branch 'master' of https://github.com/binary-com/deriv-app into…
Nov 16, 2022
79233e2
fix: fix total assets popover text for eu clients
Nov 16, 2022
4b4d9e4
fix: fix for deriv x demo current balance
Nov 16, 2022
7767b4e
fix: account launcher css for real
Nov 16, 2022
9ab302c
bugfix: remove CompareAccountsModal for demo
mahdiyeh-deriv Nov 16, 2022
fc1c2c9
bugfix: fix real total assets
Nov 16, 2022
77aca2a
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
Nov 16, 2022
2d9d972
fix: initial commit on 81112
ashraf-deriv Nov 16, 2022
2bef589
bugfix: bug 80682
ashraf-deriv Nov 16, 2022
17a160b
chore: pulled from main branch
hirad-deriv Nov 16, 2022
aaa4354
fix: handling the svg size
ashraf-deriv Nov 16, 2022
ed6ca40
bugfix: bug80682 try 2
ashraf-deriv Nov 16, 2022
c6908ed
fix: fixed the issue where wrong redirection of trader hub was shown
hirad-deriv Nov 16, 2022
a332456
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 16, 2022
535eb92
bugfix: cfd accounts not getting added in total assets
Nov 16, 2022
0cd4ab3
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
Nov 16, 2022
c6b2904
fix: made changes according to suggestions
hirad-deriv Nov 16, 2022
609cd27
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 16, 2022
a5ba07e
redeploy: pull from remote
ashraf-deriv Nov 16, 2022
d403639
revert: revert cfd accounts fix in real total assets
Nov 16, 2022
87466bd
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
Nov 16, 2022
32e45a2
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
ashraf-deriv Nov 16, 2022
73953a9
fix: fixed mf users onboarding behavior
hirad-deriv Nov 16, 2022
7ee22fb
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 16, 2022
2672af2
fix: made some changes to the onboarding design
hirad-deriv Nov 16, 2022
815ec43
fix: fixed mf account showing more options
hirad-deriv Nov 16, 2022
2ee1926
bugfix: 81112 fix in demo section
ashraf-deriv Nov 17, 2022
09b36af
bugfix: 81112 fetch lates code from remote btanch
ashraf-deriv Nov 17, 2022
6ec7227
bugfix: total assets real
Nov 17, 2022
6895506
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
Nov 17, 2022
6e0d762
fix: removed is_eu_country from onboarding conditions
hirad-deriv Nov 17, 2022
1e43cbd
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 17, 2022
1610414
fix: next button visibility fix
hirad-deriv Nov 17, 2022
baec97d
bugfix: 81112 and 80600
ashraf-deriv Nov 17, 2022
39f002f
bugfix: latest code from remote branch
ashraf-deriv Nov 17, 2022
20f8f72
fix: options title and description for non eu
Nov 17, 2022
70a23ba
bugfix: cfds logo issue
ashraf-deriv Nov 17, 2022
566828b
fix: cfd to cfds in onboarding
Nov 17, 2022
2058f1e
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
Nov 17, 2022
d328dba
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 17, 2022
aebd3e3
fix: livechat error
mahdiyeh-deriv Nov 17, 2022
ad4a79d
fix: onboarding repeat tour
hirad-deriv Nov 17, 2022
d59d853
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 17, 2022
1f81c34
fix: remove shorcode from title for EU clients
mahdiyeh-deriv Nov 17, 2022
eea258d
Merge branch 'master' of github.com:binary-com/deriv-app into Trading…
mahdiyeh-deriv Nov 17, 2022
5e3141d
fix: live_chat error
mahdiyeh-deriv Nov 17, 2022
38d6f9c
refactor: clean code
mahdiyeh-deriv Nov 17, 2022
5804a0f
fix: onboarding tour last button fix
hirad-deriv Nov 17, 2022
3e4ba17
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
hirad-deriv Nov 17, 2022
a679001
fix: fixed the redirection issue of trader's hub
hirad-deriv Nov 21, 2022
a5edc6a
Merge branch 'master' of https://github.com/binary-com/deriv-app
hirad-deriv Nov 21, 2022
3426666
Merge branch 'master' of https://github.com/binary-com/deriv-app
hirad-deriv Nov 21, 2022
41c7bdf
Merge branch 'master' of https://github.com/binary-com/deriv-app
hirad-deriv Nov 23, 2022
71fa668
fix: hitfixes
mahdiyeh-deriv Nov 23, 2022
901d96c
fix: pulled from main branch
hirad-deriv Nov 23, 2022
7a1f269
fix: fixed text issues of onboarding and account manager
hirad-deriv Nov 23, 2022
0ca2c8b
fix: active class for dashboard index toggler is fixed
hirad-deriv Nov 23, 2022
bea020c
fix: manage account font size
Nov 24, 2022
c08a6bb
fix: signup for eu
Nov 24, 2022
052dac2
fix: add whatsapp and livechat in trader hub menu drawer
Nov 24, 2022
5be01ec
fix: language console error
Nov 24, 2022
6b1880f
chore: change reset to reset balance
jim-deriv Nov 24, 2022
fdc3718
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
jim-deriv Nov 24, 2022
c24a709
fix: account toggle overlap
Nov 24, 2022
36aefb9
chore: toggle reset balance button based on account balance
jim-deriv Nov 24, 2022
68debf5
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
jim-deriv Nov 24, 2022
ab0a413
feat: beta release
mahdiyeh-deriv Nov 24, 2022
2ea5468
Merge branch 'master' of github.com:binary-com/deriv-app into traders…
mahdiyeh-deriv Nov 24, 2022
5e65862
refactor: code refactor
Nov 24, 2022
331cf2e
Merge branch 'Trading_Hub_Dashboard' of github.com:mahdiyeh-fs/deriv-…
Nov 24, 2022
1f5fd29
Merge branch 'traders_hub_beta' of github.com:mahdiyeh-fs/deriv-app i…
Nov 24, 2022
992f761
refactor: code refactor
Nov 24, 2022
4c73835
Merge branch 'master' of https://github.com/binary-com/deriv-app
hirad-deriv Nov 24, 2022
c3927ff
Merge branch 'traders_hub_beta' of github.com:mahdiyeh-fs/deriv-app i…
hirad-deriv Nov 24, 2022
c0517b0
fix: fixed the add button of financial accounts
hirad-deriv Nov 24, 2022
538abfb
fix: overflow bug in trading-hub-body
mahdiyeh-deriv Nov 24, 2022
06c4ef1
fix: padding/margin issue
mahdiyeh-deriv Nov 24, 2022
1c83618
bugfix: 80674
ashraf-deriv Nov 25, 2022
82f5a15
fix: onboarding for eu and non eu
Nov 25, 2022
8869051
Merge branch 'traders_hub_beta' of github.com:mahdiyeh-fs/deriv-app i…
Nov 25, 2022
e2f2791
bugfix: 80610
ashraf-deriv Nov 25, 2022
9be2f8f
fix: country autoselect and code refactor
Nov 25, 2022
5d3cdb7
Merge branch 'traders_hub_beta' of github.com:mahdiyeh-fs/deriv-app i…
Nov 25, 2022
ee8cc7e
feat: account_switcher traders hub
amina-deriv Nov 25, 2022
c093485
fix: typo_fix
amina-deriv Nov 25, 2022
e86ad10
Merge remote-tracking branch 'origin/82217_account_switcher_trading_h…
amina-deriv Nov 25, 2022
65ff99d
Merge branch 'traders_hub_beta' of github.com:mahdiyeh-fs/deriv-app i…
jim-deriv Nov 26, 2022
ddb2a36
fix: showing More Derived accounts button
mahdiyeh-deriv Nov 27, 2022
6331e62
fix: eu mismatch in onboarding
mahdiyeh-deriv Nov 27, 2022
5354233
fix: jim/overlap of reset blance button
mahdiyeh-deriv Nov 27, 2022
5eba475
refactor: remove redundant parts
mahdiyeh-deriv Nov 27, 2022
5f53f48
fix: update account status in mt5 compare account
amina-deriv Nov 28, 2022
f1b70f9
fix: resolve conflicts
mahdiyeh-deriv Nov 28, 2022
fd261c7
fix: repeat tour for eu
Nov 29, 2022
d4ce0df
fix: whatsapp for all
Nov 29, 2022
0168471
Merge branch 'master' into traders_hub_beta
thisyahlen-deriv Nov 29, 2022
9057f4c
fix: onboarding eu step 3
Nov 29, 2022
1ad7240
Merge branch 'traders_hub_beta' of github.com:mahdiyeh-fs/deriv-app i…
Nov 29, 2022
6b8dc40
refactor: code fix
Nov 29, 2022
7226151
refactor: code fix
Nov 29, 2022
872eeea
fix: add is_eu_country
Nov 29, 2022
c18c8b1
refactor: code fix v3
Nov 29, 2022
1d9c908
fix: derivx not showing once we skip onboarding
amina-deriv Nov 29, 2022
9ec59b7
chore: fix conflicts
Nov 30, 2022
350e526
chore: fix conflicts
Dec 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ packages/account/lib/
packages/components/.out
packages/components/src/components/icon/icons-manifest.js
packages/p2p/lib/
packages/appstore/dist/
packages/appstore/lib/
packages/appstore/.out
.env
nx-cloud.env

1 change: 1 addition & 0 deletions __mocks__/fileMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = 'file-mock-stub';
99,917 changes: 27,390 additions & 72,527 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion packages/account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0"
"react-router-dom": "^5.2.0",
"react-i18next": "^11.11.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.17.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/account/src/Components/Routes/binary-routes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import getRoutesConfig from 'Constants/routes-config';
import RouteWithSubRoutes from './route-with-sub-routes.jsx';

const BinaryRoutes = props => {
const { is_appstore } = React.useContext(PlatformContext);
const { is_appstore, is_pre_appstore } = React.useContext(PlatformContext);
return (
<React.Suspense
fallback={() => {
Expand All @@ -17,7 +17,7 @@ const BinaryRoutes = props => {
}}
>
<Switch>
{getRoutesConfig({ is_appstore }).map((route, idx) => (
{getRoutesConfig({ is_appstore, is_pre_appstore }).map((route, idx) => (
<RouteWithSubRoutes key={idx} {...route} {...props} />
))}
</Switch>
Expand Down
16 changes: 13 additions & 3 deletions packages/account/src/Constants/routes-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ import {
LoginHistory,
AccountClosed,
DeactivateAccount,
LanguageSettings,
} from 'Sections';

// Error Routes
const Page404 = React.lazy(() => moduleLoader(() => import(/* webpackChunkName: "404" */ 'Modules/Page404')));

// Order matters
const initRoutesConfig = ({ is_appstore }) => [
const initRoutesConfig = ({ is_appstore, is_pre_appstore }) => [
{
path: routes.account_closed,
component: AccountClosed,
Expand Down Expand Up @@ -70,6 +71,15 @@ const initRoutesConfig = ({ is_appstore }) => [
component: FinancialAssessment,
getTitle: () => localize('Financial assessment'),
},
...(is_pre_appstore
? [
{
path: routes.languages,
component: LanguageSettings,
getTitle: () => localize('Languages'),
},
]
: []),
],
},
{
Expand Down Expand Up @@ -159,9 +169,9 @@ let routesConfig;
// For default page route if page/path is not found, must be kept at the end of routes_config array
const route_default = { component: Page404, getTitle: () => localize('Error 404') };

const getRoutesConfig = ({ is_appstore }) => {
const getRoutesConfig = ({ is_appstore, is_pre_appstore }) => {
if (!routesConfig) {
routesConfig = initRoutesConfig({ is_appstore });
routesConfig = initRoutesConfig({ is_appstore, is_pre_appstore });
routesConfig.push(route_default);
}
return routesConfig;
Expand Down
32 changes: 29 additions & 3 deletions packages/account/src/Containers/account.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import PropTypes from 'prop-types';
import React from 'react';
import { withRouter } from 'react-router-dom';
import { VerticalTab, FadeWrapper, PageOverlay, Loading, Text } from '@deriv/components';
import { VerticalTab, FadeWrapper, PageOverlay, Loading, Text, Icon } from '@deriv/components';
import { routes as shared_routes, isMobile, matchRoute, getSelectedRoute, PlatformContext } from '@deriv/shared';
import { localize } from '@deriv/translations';
import { connect } from 'Stores/connect';
import { flatten } from '../Helpers/flatten';
import AccountLimitInfo from '../Sections/Security/AccountLimits/account-limits-info.jsx';
import 'Styles/account.scss';
import { useHistory } from 'react-router';

const AccountLogout = ({ logout, history }) => {
return (
Expand All @@ -19,7 +20,27 @@ const AccountLogout = ({ logout, history }) => {
}}
>
<div className='dc-vertical-tab__header-group account__logout-tab'>
<Text color='general' size='xxs' weight='normal'>
<Text size='xxs' weight='normal'>
{localize('Log out')}
</Text>
</div>
</div>
);
};

const TradingHubLogout = ({ logout }) => {
const history = useHistory();
return (
<div
className='dc-vertical-tab__header-account__logout-tab'
onClick={() => {
logout();
history.push(shared_routes.index);
}}
>
<div className='dc-vertical-tab__header-account__logout'>
<Icon icon='IcLogout' className='dc-vertical-tab__header-account__logout--icon' />
<Text size='xs' weight='bold'>
{localize('Log out')}
</Text>
</div>
Expand All @@ -30,11 +51,13 @@ const AccountLogout = ({ logout, history }) => {
const PageOverlayWrapper = ({
is_from_derivgo,
is_appstore,
is_pre_appstore,
list_groups,
logout,
onClickClose,
selected_route,
subroutes,
history,
}) => {
if (isMobile() && selected_route) {
return (
Expand Down Expand Up @@ -74,6 +97,7 @@ const PageOverlayWrapper = ({
is_full_width
list={subroutes}
list_groups={list_groups}
extra_content={is_pre_appstore && <TradingHubLogout logout={logout} />}
/>
</PageOverlay>
);
Expand All @@ -97,7 +121,7 @@ const Account = ({
should_allow_authentication,
toggleAccount,
}) => {
const { is_appstore } = React.useContext(PlatformContext);
const { is_appstore, is_pre_appstore } = React.useContext(PlatformContext);
const subroutes = flatten(routes.map(i => i.subroutes));
let list_groups = [...routes];
list_groups = list_groups.map(route_group => ({
Expand Down Expand Up @@ -165,12 +189,14 @@ const Account = ({
<PageOverlayWrapper
is_from_derivgo={is_from_derivgo}
is_appstore={is_appstore}
is_pre_appstore={is_pre_appstore}
list_groups={list_groups}
logout={logout}
onClickClose={onClickClose}
platform={platform}
selected_route={selected_route}
subroutes={subroutes}
history={history}
/>
</div>
</FadeWrapper>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import LanguageSettings from './language-settings';

export default LanguageSettings;
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { useTranslation } from 'react-i18next';
import { DesktopWrapper, Icon } from '@deriv/components';
import { localize, getAllowedLanguages } from '@deriv/translations';
import { connect } from 'Stores/connect';
import FormSubHeader from 'Components/form-sub-header';

const isCurrentLanguage = (lang, current_language) => lang === current_language;

const NonClickableLink = ({ children, lang }) => (
<div
id={`dt_settings_${lang}_button`}
className={classNames('settings-language__language-link', {
'settings-language__language-link--active': isCurrentLanguage(lang),
})}
>
{children}
</div>
);

const LanguageLink = ({ lang }) => (
<React.Fragment>
<Icon
icon={`IcFlag${lang.replace('_', '-')}`}
className={'settings-language__language-link-flag settings-language__language-flag'}
type={lang.replace(/(\s|_)/, '-').toLowerCase()}
/>
<span
className={classNames('settings-language__language-name', {
'settings-language__language-name--active': isCurrentLanguage(lang),
})}
>
{getAllowedLanguages()[lang]}
</span>
</React.Fragment>
);

const LanguageSettings = ({ changeCurrentLanguage, current_language, toggleSettingsModal, changeLanguage }) => {
const { i18n } = useTranslation();

return (
<div className='settings-language'>
<DesktopWrapper>
<FormSubHeader title={localize('Languages')} />
</DesktopWrapper>
<div className='settings-language__language-container'>
{Object.keys(getAllowedLanguages()).map(key =>
isCurrentLanguage(key) ? (
<NonClickableLink lang={key} key={key}>
<LanguageLink lang={key} />
</NonClickableLink>
) : (
<span
id={`dt_settings_${key}_button`}
key={key}
onClick={async () => {
await changeLanguage(key, changeCurrentLanguage);
await i18n.changeLanguage?.(key);
toggleSettingsModal();
}}
className={classNames('settings-language__language-link', {
'settings-language__language-link--active': isCurrentLanguage(key, current_language),
})}
>
<LanguageLink lang={key} key={key} />
</span>
)
)}
</div>
</div>
);
};

LanguageLink.propTypes = {
lang: PropTypes.string,
};

NonClickableLink.propTypes = {
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
lang: PropTypes.string,
};

export default connect(({ common, ui }) => ({
changeCurrentLanguage: common.changeCurrentLanguage,
current_language: common.current_language,
toggleSettingsModal: ui.toggleSettingsModal,
changeLanguage: common.changeLanguage,
}))(LanguageSettings);
2 changes: 2 additions & 0 deletions packages/account/src/Sections/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import ConnectedApps from 'Sections/Security/ConnectedApps';
import LoginHistory from 'Sections/Security/LoginHistory';
import AccountClosed from 'Sections/Security/AccountClosed';
import DeactivateAccount from 'Sections/Security/DeactivateAccount'; // TODO: Remove once mobile team has changed this link
import LanguageSettings from 'Sections/Profile/LanguageSettings';

export {
AccountLimits,
Expand All @@ -32,4 +33,5 @@ export {
LoginHistory,
AccountClosed,
DeactivateAccount,
LanguageSettings,
};
16 changes: 16 additions & 0 deletions packages/account/src/Styles/account.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,22 @@ $MIN_HEIGHT_FLOATING: calc(
padding-left: 4.4rem;
background-color: var(--general-main-1);
}
&__header {
&-account__logout {
margin-top: 1rem;
align-items: center;
justify-content: center;
display: flex;
border: 2px solid var(--border-normal-1);
padding: 1rem;
border-radius: 0.5rem;
cursor: pointer;

&--icon {
margin-right: 0.8rem;
}
}
}
}

.dc-vertical-tab--dashboard {
Expand Down
48 changes: 48 additions & 0 deletions packages/appstore/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const svg_loaders = [
{
loader: 'babel-loader',
options: {
cacheDirectory: true,
rootMode: 'upward',
},
},
{
loader: 'react-svg-loader',
options: {
jsx: true,
svgo: {
plugins: [
{ removeTitle: false },
{ removeUselessStrokeAndFill: false },
{ removeUknownsAndDefaults: false },
],
floatPrecision: 2,
},
},
},
];

module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(ts|tsx|mdx)'],
addons: ['@storybook/addon-essentials', '@storybook/addon-docs', '@storybook/addon-links'],
framework: '@storybook/react',
core: {
builder: 'webpack5',
},
webpackFinal: async config => {
config.module.rules.forEach(rule => {
const regex_string = rule.test.toString();
if (regex_string.includes('svg')) {
rule.test = new RegExp(regex_string.replace('svg', ''));
}
});

config.module.rules.push({
test: /\.svg$/,
exclude: /node_modules|public\//,
use: svg_loaders,
});

return config;
},
};
1 change: 1 addition & 0 deletions packages/appstore/.storybook/preview-body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div id="root" class="theme theme--light"></div>
1 change: 1 addition & 0 deletions packages/appstore/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '!style-loader!css-loader!sass-loader!./scss-loader.scss';
11 changes: 11 additions & 0 deletions packages/appstore/.storybook/scss-loader.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@import '~@deriv/shared/src/styles/reset.scss';
@import '~@deriv/shared/src/styles/constants.scss';
@import '~@deriv/shared/src/styles/themes.scss';

body {
font-family: 'IBM Plex Sans', sans-serif;
margin: 0;
padding: 1rem;
display: block;
box-sizing: border-box;
}
Loading