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

Amina/feature/90115/update jurisdiction #22

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
249 commits
Select commit Hold shift + click to select a range
78803ce
feat: :sparkles: introduces new MT5 jurisdiction card layout
shaheer-deriv Mar 20, 2023
ea29f96
chore: move hard coded part and make it more dynamic
suisin-deriv Mar 15, 2023
8a53059
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Mar 21, 2023
f898f6e
Apply suggestions from code review
shaheer-deriv Mar 21, 2023
1c9ba69
refactor: :pencil2: refactoring and modifications based on code review
shaheer-deriv Mar 21, 2023
cb73e4a
refactor: :wastebasket: removed unused css class
shaheer-deriv Mar 21, 2023
651a1df
chore: move strings to use standard constant jurisdiction object
suisin-deriv Mar 22, 2023
92c2f78
chore: update all files change string to use same Jurisdiction in con…
suisin-deriv Mar 22, 2023
fc9a5c3
Revert "chore: update all files change string to use same Jurisdictio…
suisin-deriv Mar 22, 2023
a53102d
chore: change all hard coded string to follow constant Jurisdiction o…
suisin-deriv Mar 22, 2023
d927c86
build: :construction: Trigger build
shaheer-deriv Mar 22, 2023
10c47e1
chore: remove Jurisdiction declaration for not jurisdiction_selected_…
suisin-deriv Mar 22, 2023
3d06d9c
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Mar 23, 2023
fd9a0e3
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Mar 24, 2023
0e65abc
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Mar 24, 2023
72cab58
feat: :art: mt5 jurisdiction updates
shaheer-deriv Mar 24, 2023
696bae7
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Mar 27, 2023
cbf90c7
style: :art: fixes display font color
shaheer-deriv Mar 27, 2023
c10c3fc
refactor: :art: minor refactoring fix
shaheer-deriv Mar 27, 2023
1e73dae
chore: Test Case for Jurisdiction Modal Checkbox
suisin-deriv Mar 28, 2023
d9cb06d
chore: fixed type script test case
suisin-deriv Mar 28, 2023
5c78212
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Mar 28, 2023
fce202d
chore: edited code based on suggested comments
suisin-deriv Mar 28, 2023
046e3ba
feat: :sparkles: adds mt5 icons
shaheer-deriv Mar 28, 2023
1aff108
style: :lipstick: styling changes for mt5
shaheer-deriv Mar 28, 2023
5a2c7cc
feat: :sparkles: updates on mt5 jurisdiction modal
shaheer-deriv Mar 28, 2023
a3a5c4f
style: :lipstick: styles cards verification back section
shaheer-deriv Mar 28, 2023
6d7afcc
chore: test case for jurisdiction content
suisin-deriv Mar 29, 2023
004c25e
chore: edited mock values for modal-content test case
suisin-deriv Mar 30, 2023
6bd100e
chore: cahnge file name to jurisdictions-config
suisin-deriv Mar 30, 2023
dd6c757
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Mar 30, 2023
6037de2
style: :lipstick: updates mt5 jurisdiction modal
shaheer-deriv Mar 30, 2023
dfa2ee5
chore: test case for jurisdiction foot note
suisin-deriv Mar 30, 2023
8789ada
Merge pull request #48 from suisin-deriv/suisin/83885/refactor_jurisd…
matin-deriv Mar 30, 2023
e3f0b18
Merge branch 'amina/feature/90115/update_jurisdiction' of github.com:…
suisin-deriv Mar 30, 2023
5e0ea46
chore: update hard coded selected jurisdiction short code to follow e…
suisin-deriv Mar 30, 2023
d6f5283
Merge branch 'amina/feature/90115/update_jurisdiction' of github.com:…
suisin-deriv Mar 30, 2023
df525ab
chore: update hard coded jurisdiction selected short code to jurisdic…
suisin-deriv Mar 30, 2023
8ded9df
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Mar 30, 2023
90625c3
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Mar 30, 2023
30c953a
Merge pull request #1 from amina-deriv/amina/feature/90115/update_jur…
shaheer-deriv Mar 30, 2023
478dc2c
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Mar 30, 2023
a2bc728
fix: :bug: fixes card flipping issues on other card selection
shaheer-deriv Mar 30, 2023
66a7fc1
style: :lipstick: fixes card overflow issue while flipping
shaheer-deriv Mar 30, 2023
1d75617
chore: master update and resolve conflicts
amina-deriv Mar 31, 2023
94645d0
Merge pull request #2 from amina-deriv/amina/feature/90115/update_jur…
shaheer-deriv Mar 31, 2023
4769a14
Merge branch 'feature/90115/update_jurisdiction' into shaheer/90804/m…
shaheer-deriv Mar 31, 2023
0680573
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Mar 31, 2023
e1d6da3
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Mar 31, 2023
89b73ef
Merge branch 'master' into amina/feature/90115/update_jurisdiction
amina-deriv Apr 3, 2023
efed494
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Apr 3, 2023
6896c80
refactor: :art: refactors the modal code
shaheer-deriv Apr 3, 2023
8c07971
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Apr 4, 2023
a4cada9
Merge pull request #50 from suisin-deriv/suisin/90805/jurisdiction_hi…
amina-deriv Apr 4, 2023
4a30a50
Merge pull request #51 from suisin-deriv/suisin/92036/test_case_for_j…
amina-deriv Apr 4, 2023
76d321a
Merge branch 'master' into amina/feature/90115/update_jurisdiction
amina-deriv Apr 4, 2023
946abc6
fix: :bug: fixes card selection reset issue in modal
shaheer-deriv Apr 4, 2023
029ecdb
Merge pull request #3 from amina-deriv/amina/feature/90115/update_jur…
shaheer-deriv Apr 4, 2023
ca7f5f0
Merge branch 'shaheer/feature/90115/update_jurisdiction' into shaheer…
shaheer-deriv Apr 4, 2023
d0f3328
refactor: :lipstick: refactors styling
shaheer-deriv Apr 4, 2023
0550550
refactor: :art: adds component for card title indicator
shaheer-deriv Apr 4, 2023
5476244
refactor: :art: seperates jurisdiction verification contents
shaheer-deriv Apr 5, 2023
87207c0
refactor: :art: divides jurisdiction component to smaller components
shaheer-deriv Apr 5, 2023
026b7a3
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 5, 2023
442f402
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Apr 5, 2023
37f72a8
Merge branch 'binary-com:master' into shaheer/feature/90115/update_ju…
shaheer-deriv Apr 5, 2023
2b4c580
Merge pull request #4 from amina-deriv/amina/feature/90115/update_jur…
shaheer-deriv Apr 5, 2023
7e9c46a
Merge branch 'shaheer/feature/90115/update_jurisdiction' into shaheer…
shaheer-deriv Apr 5, 2023
2a20d18
refactor: :art: renames variable to follow convention
shaheer-deriv Apr 5, 2023
2da0526
refactor: :art: renames the variables as per convention
shaheer-deriv Apr 5, 2023
92872c2
refactor: :art: renames the variables as per convention
shaheer-deriv Apr 5, 2023
0ee1cba
refactor: :art: removes unwanted code
shaheer-deriv Apr 5, 2023
f45554f
style: :lipstick: adds dark theme color support for icons
shaheer-deriv Apr 5, 2023
a844899
style: :lipstick: fixes styling to match with design
shaheer-deriv Apr 6, 2023
896c449
perf: :zap: compresses svgs using svgo library
shaheer-deriv Apr 6, 2023
efdf7f9
fix: :bug: fixes displaying of empty container in mobile view
shaheer-deriv Apr 6, 2023
0e6509c
fix: :bug: fixes displaying of empty container in mobile view
shaheer-deriv Apr 6, 2023
ad0320b
style: :lipstick: refactors margin css usage
shaheer-deriv Apr 6, 2023
cbac69b
style: :lipstick: refactors min-height css
shaheer-deriv Apr 6, 2023
9f7c25b
refactor: :art: breaks the jurisdiction content file to smaller files
shaheer-deriv Apr 6, 2023
e79c6a0
refactor: :art: splits jurisdiction card into front and back
shaheer-deriv Apr 6, 2023
1dcd6fa
refactor: :art: refactors Text component style usages
shaheer-deriv Apr 6, 2023
b171480
refactor: :art: uses Text props to style instead of class
shaheer-deriv Apr 6, 2023
7045011
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 6, 2023
5a22d63
Merge pull request #5 from amina-deriv/amina/feature/90115/update_jur…
shaheer-deriv Apr 6, 2023
e40d577
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Apr 6, 2023
558fa9a
Merge branch 'shaheer/feature/90115/update_jurisdiction' into shaheer…
shaheer-deriv Apr 6, 2023
e34a6cb
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 7, 2023
1c69b63
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Apr 7, 2023
2c1da0a
Merge pull request #6 from amina-deriv/amina/feature/90115/update_jur…
shaheer-deriv Apr 7, 2023
a365912
Merge branch 'shaheer/feature/90115/update_jurisdiction' into shaheer…
shaheer-deriv Apr 7, 2023
a9bac37
refactor: :pencil2: renames a type
shaheer-deriv Apr 7, 2023
35ad751
refactor: :art: improves code structure by removing unwanted return s…
shaheer-deriv Apr 7, 2023
94d6b60
refactor: :art: organises jurisdiction contents to seperate folder
shaheer-deriv Apr 7, 2023
a4b0c42
refactor: :pencil2: renames a type
shaheer-deriv Apr 7, 2023
53c5add
refactor: :sparkles: converts jurisdiction object to functions for tr…
shaheer-deriv Apr 7, 2023
7d751a4
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 10, 2023
259f48a
Merge branch 'binary-com:master' into shaheer/feature/90115/update_ju…
shaheer-deriv Apr 10, 2023
50f1c2d
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Apr 10, 2023
869a7a6
refactor: :lipstick: nests sass classes
shaheer-deriv Apr 10, 2023
66a26ad
refactor: :lipstick: nests sass classes
shaheer-deriv Apr 10, 2023
7409988
refactor: :art: uses border radius constant value in css
shaheer-deriv Apr 10, 2023
7f7fac2
refactor: :art: refactors css property usages
shaheer-deriv Apr 10, 2023
b37583c
refactor: :pencil2: renames a key in mt5 contents
shaheer-deriv Apr 10, 2023
524dceb
refactor: :art: refactors mt5 code
shaheer-deriv Apr 10, 2023
2d9afde
refactor: :art: sorts color constants used
shaheer-deriv Apr 10, 2023
592a9a4
refactor: :art: refactors color usages
shaheer-deriv Apr 10, 2023
c23e84b
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 12, 2023
533606f
Merge pull request #7 from amina-deriv/amina/feature/90115/update_jur…
shaheer-deriv Apr 12, 2023
4bab9ff
Merge branch 'shaheer/feature/90115/update_jurisdiction' into shaheer…
shaheer-deriv Apr 12, 2023
bf8d3b4
Merge branch 'binary-com:master' into shaheer/feature/90115/update_ju…
shaheer-deriv Apr 13, 2023
b3fcdbc
Merge branch 'binary-com:master' into shaheer/90804/mt5-jurisdiction-…
shaheer-deriv Apr 13, 2023
e0ecd30
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 13, 2023
3c25502
Merge pull request #8 from amina-deriv/amina/feature/90115/update_jur…
shaheer-deriv Apr 13, 2023
034aefd
Merge branch 'shaheer/feature/90115/update_jurisdiction' into shaheer…
shaheer-deriv Apr 13, 2023
8e0e6af
Merge pull request #49 from shaheer-deriv/shaheer/90804/mt5-jurisdict…
amina-deriv Apr 13, 2023
e72b4d6
Merge pull request #9 from amina-deriv/amina/feature/90115/update_jur…
shaheer-deriv Apr 13, 2023
ce65b71
fix: :bug: prevents states of child card being destroyed by parent
shaheer-deriv Apr 14, 2023
2053456
Merge branch 'amina/feature/90115/update_jurisdiction' of github.com:…
suisin-deriv Apr 14, 2023
7478cef
refactor: :wastebasket: cleans up jurisdiction code
shaheer-deriv Apr 14, 2023
6ef14bd
chore: update Test Case for Jurisdiction modal content
suisin-deriv Apr 14, 2023
9533259
refactor: :art: moves state down the tree from parent to local level
shaheer-deriv Apr 14, 2023
ff565a4
feat: :sparkles: animates jurisdiction card on flip
shaheer-deriv Apr 14, 2023
2bb3eec
feat: :sparkles: displays 'Added' indicator if the card is already added
shaheer-deriv Apr 14, 2023
fde6d0e
chore: test case for jurisdiction modal content
suisin-deriv Apr 17, 2023
d6536d0
chore: update jurisdiction_selected_shortcode for foot note
suisin-deriv Apr 17, 2023
6c3f5c9
chore: update import to follow document
suisin-deriv Apr 17, 2023
f2cf54b
style: :lipstick: fixes the height
shaheer-deriv Apr 17, 2023
879660f
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 17, 2023
1d15b9e
Merge branch 'binary-com:master' into shaheer/feature/90115/update_ju…
shaheer-deriv Apr 17, 2023
f2ecb34
Merge branch 'binary-com:master' into shaheer/90807/jurisdiction-card…
shaheer-deriv Apr 17, 2023
1714a78
Merge branch 'binary-com:master' into shaheer/90807/mt5-jurisdiction-…
shaheer-deriv Apr 17, 2023
4f73b31
Merge branch 'shaheer/90807/mt5-jurisdiction-card' into shaheer/90807…
shaheer-deriv Apr 17, 2023
2aea226
Merge pull request #10 from amina-deriv/amina/feature/90115/update_ju…
shaheer-deriv Apr 17, 2023
68b8d54
Merge branch 'shaheer/feature/90115/update_jurisdiction' into shaheer…
shaheer-deriv Apr 17, 2023
77e505f
chore: test case for jurisdiction card front
suisin-deriv Apr 17, 2023
ae3e07d
chore: remove hard coded parts
suisin-deriv Apr 17, 2023
92b77f6
chore: move the imports variable according to documentation
suisin-deriv Apr 17, 2023
7c441a1
style: :lipstick: styles the back of the card as per figma design
shaheer-deriv Apr 17, 2023
5e5302b
refactor: :pencil2: rearranges import statements
shaheer-deriv Apr 17, 2023
8f38263
chore: included checks for MF clients and high risk clients
suisin-deriv Apr 17, 2023
a6a5236
chore: updated test case based on comments
suisin-deriv Apr 17, 2023
79d7d75
refactor: :wastebasket: removes unwanted css classes
shaheer-deriv Apr 17, 2023
62fb1e3
refactor: :art: moved classNames into single object
shaheer-deriv Apr 17, 2023
a5fa344
refactor: :art: rearranges import statements
shaheer-deriv Apr 17, 2023
d4c8658
chore: updated logic for test cases
suisin-deriv Apr 17, 2023
07611c4
chore: update test case in footnote
suisin-deriv Apr 17, 2023
2507582
refactor: :art: sorts props alphabetically
shaheer-deriv Apr 17, 2023
5b9ef6a
refactor: :art: reuses the prop object
shaheer-deriv Apr 17, 2023
a5d3aa7
refactor: :pencil2: sorts props alphabetically
shaheer-deriv Apr 17, 2023
f881a59
refactor: :art: uses single object for classnames
shaheer-deriv Apr 17, 2023
191c651
style: :lipstick: aligns card sections equally
shaheer-deriv Apr 17, 2023
1ba5b58
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 18, 2023
7e675ed
Merge branch 'binary-com:master' into shaheer/90807/jurisdiction-card…
shaheer-deriv Apr 18, 2023
ba98ede
feat: :sparkles: sets up displaying verification icons in card front
shaheer-deriv Apr 18, 2023
a38613f
refactor: :art: sorts props alphabetically
shaheer-deriv Apr 18, 2023
e07216c
refactor: :art: adds verification items to props
shaheer-deriv Apr 18, 2023
2d3226c
feat: :sparkles: displays verification icons on card front
shaheer-deriv Apr 18, 2023
3a8d812
Merge branch 'binary-com:master' into shaheer/90807/jurisdiction-card…
shaheer-deriv Apr 18, 2023
c68bc20
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 18, 2023
6937c6d
Merge pull request #11 from amina-deriv/amina/feature/90115/update_ju…
shaheer-deriv Apr 18, 2023
abe12fa
Merge branch 'shaheer/feature/90115/update_jurisdiction' into shaheer…
shaheer-deriv Apr 18, 2023
e316a16
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 18, 2023
acba460
Merge pull request #53 from suisin-deriv/suisin/92035/test_case_for_j…
amina-deriv Apr 18, 2023
4350d5b
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 18, 2023
dcf07ab
Merge pull request #12 from amina-deriv/amina/feature/90115/update_ju…
shaheer-deriv Apr 18, 2023
eb87804
Merge branch 'shaheer/feature/90115/update_jurisdiction' into shaheer…
shaheer-deriv Apr 18, 2023
c19a9ec
chore: test case for jurisdiction title indicator
suisin-deriv Apr 18, 2023
1b02756
Merge branch 'amina/feature/90115/update_jurisdiction' of github.com:…
suisin-deriv Apr 18, 2023
db96606
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 18, 2023
6deebf8
Merge branch 'binary-com:master' into shaheer/90807/jurisdiction-card…
shaheer-deriv Apr 18, 2023
3674ee9
Merge branch 'binary-com:master' into shaheer/90807/jurisdiction-card…
shaheer-deriv Apr 18, 2023
fe991a2
feat: :sparkles: adds icons for various verification status
shaheer-deriv Apr 18, 2023
cba7745
refactor: :art: adds account_status to components
shaheer-deriv Apr 19, 2023
8d31b16
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 19, 2023
749659a
Merge branch 'binary-com:master' into shaheer/90807/jurisdiction-card…
shaheer-deriv Apr 19, 2023
fd7e75b
Merge pull request #13 from amina-deriv/amina/feature/90115/update_ju…
shaheer-deriv Apr 19, 2023
e738b91
Merge branch 'shaheer/feature/90115/update_jurisdiction' into shaheer…
shaheer-deriv Apr 19, 2023
6cb80d6
refactor: :art: adds type_of_card props to components
shaheer-deriv Apr 19, 2023
7d6c87a
fix: :lipstick: fixes icon to text alignment
shaheer-deriv Apr 19, 2023
5183e24
chore: test case for jurisdiction card section
suisin-deriv Apr 19, 2023
46cab5a
chore: update code to check test over header not in test case
suisin-deriv Apr 19, 2023
ec0109e
feat: :sparkles: displays verification icons based on status
shaheer-deriv Apr 19, 2023
4ecc32d
Merge pull request #54 from suisin-deriv/suisin/93477/test_case_for_j…
amina-deriv Apr 19, 2023
cb425dd
chore: test case for jurisdiction clickable description
suisin-deriv Apr 20, 2023
b26250d
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 24, 2023
5bb8c8a
Merge pull request #14 from amina-deriv/amina/feature/90115/update_ju…
shaheer-deriv Apr 24, 2023
13d65a0
style: :lipstick: fixes jurisdiction modal width
shaheer-deriv Apr 24, 2023
da90022
Merge branch 'binary-com:master' into shaheer/90807/jurisdiction-card…
shaheer-deriv Apr 24, 2023
3b6a6a0
Merge branch 'shaheer/feature/90115/update_jurisdiction' into shaheer…
shaheer-deriv Apr 24, 2023
69f7cd1
fix: :bug: jurisdiction testcase fix
shaheer-deriv Apr 24, 2023
8e0ab0a
fix: :lipstick: fixes modal height clipping
shaheer-deriv Apr 24, 2023
ae445fc
fix: :lipstick: fixes modal card heights
shaheer-deriv Apr 24, 2023
8e3b66d
refactor: :pencil2: renames a type variable
shaheer-deriv Apr 24, 2023
3bb0da5
refactor: :wastebasket: removes unused text value
shaheer-deriv Apr 24, 2023
dc88aed
chore: test case for jurisdiction card
suisin-deriv Apr 25, 2023
c0d8b24
style: :lipstick: refactors styling
shaheer-deriv Apr 25, 2023
9aa892a
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 25, 2023
9658700
Merge pull request #15 from amina-deriv/amina/feature/90115/update_ju…
shaheer-deriv Apr 25, 2023
3be6fed
Merge pull request #16 from shaheer-deriv/shaheer/feature/90115/updat…
shaheer-deriv Apr 25, 2023
22dd454
Merge pull request #52 from shaheer-deriv/shaheer/90807/jurisdiction-…
matin-deriv Apr 25, 2023
ee7b488
Merge pull request #17 from amina-deriv/amina/feature/90115/update_ju…
shaheer-deriv Apr 25, 2023
0e6edc6
Merge branch 'amina/feature/90115/update_jurisdiction' of github.com:…
suisin-deriv Apr 25, 2023
f1b61bb
fix: :bug: fixes firefox flipped card issue
shaheer-deriv Apr 25, 2023
db89e7f
chore: updated test case based on new changes
suisin-deriv Apr 26, 2023
48ee27b
Merge branch 'amina/feature/90115/update_jurisdiction' of github.com:…
suisin-deriv Apr 26, 2023
4dc36fa
chore: update test case based on latest update
suisin-deriv Apr 26, 2023
d8f7683
chore: remove hard coded variables
suisin-deriv Apr 26, 2023
7689a63
Merge branch 'amina/feature/90115/update_jurisdiction' of github.com:…
suisin-deriv Apr 26, 2023
83b784f
Merge branch 'amina/feature/90115/update_jurisdiction' of github.com:…
suisin-deriv Apr 26, 2023
e59ab35
chore: edit test case based on latest update
suisin-deriv Apr 26, 2023
5005abb
chore: test case for jurisdiction card back
suisin-deriv Apr 26, 2023
5464453
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 26, 2023
a747e0f
Merge branch 'binary-com:master' into shaheer/feature/90115/update_ju…
shaheer-deriv Apr 26, 2023
c599e65
fix: :bug: fixes crossbrowser support issues
shaheer-deriv Apr 26, 2023
18057c6
Merge branch 'shaheer/feature/90115/update_jurisdiction' of https://g…
shaheer-deriv Apr 26, 2023
406b9d3
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 26, 2023
cec8896
Merge pull request #18 from amina-deriv/amina/feature/90115/update_ju…
shaheer-deriv Apr 26, 2023
4c070dc
Merge pull request #61 from shaheer-deriv/shaheer/feature/90115/updat…
matin-deriv Apr 27, 2023
2257fb5
chore: update code based on comment
suisin-deriv Apr 27, 2023
0a91fd9
chore: remove as const from code
suisin-deriv Apr 27, 2023
ae2b971
chore: remove as const from code
suisin-deriv Apr 27, 2023
50069cf
chore: remove object type declaration for data-testid
suisin-deriv Apr 27, 2023
b5b57c8
chore: added extra check for className for clickable description
suisin-deriv Apr 27, 2023
76947b0
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 27, 2023
1c491a5
Merge pull request #19 from amina-deriv/amina/feature/90115/update_ju…
shaheer-deriv Apr 27, 2023
8365d5f
chore: remove all as const
suisin-deriv Apr 27, 2023
071ce45
chore: remove as const from code base
suisin-deriv Apr 27, 2023
875850e
refactor: :recycle: refactors the code
shaheer-deriv Apr 27, 2023
5b15629
refactor: :recycle: refactors jurisdiction localize usages
shaheer-deriv Apr 27, 2023
5e60bd9
Merge pull request #62 from shaheer-deriv/shaheer/feature/90115/updat…
matin-deriv Apr 27, 2023
1ad0572
Merge pull request #60 from suisin-deriv/suisin/jurisdiction_card_bac…
matin-deriv Apr 27, 2023
87bcb02
Merge pull request #56 from suisin-deriv/suisin/93480/test_case_for_j…
matin-deriv Apr 27, 2023
39a96c6
Merge pull request #57 from suisin-deriv/suisin/93478/test_case_for_j…
matin-deriv Apr 27, 2023
de37b21
Merge pull request #58 from suisin-deriv/suisin/93479/test_case_for_j…
matin-deriv Apr 27, 2023
883a181
Merge pull request #59 from suisin-deriv/suisin/92038/test_case_for_j…
matin-deriv Apr 27, 2023
fbd75c9
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv Apr 27, 2023
0000ffc
Merge branch 'master' into amina/feature/90115/update_jurisdiction
matin-deriv Apr 28, 2023
f3525bf
Merge branch 'master' into amina/feature/90115/update_jurisdiction
suisin-deriv Apr 28, 2023
b6881c7
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv May 1, 2023
7870b2e
Merge branch 'binary-com:master' into amina/feature/90115/update_juri…
shaheer-deriv May 2, 2023
b323bf7
Merge branch 'master' into amina/feature/90115/update_jurisdiction
shaheer-deriv May 2, 2023
1fa04fb
chore: changed content message for create real account warning pop up…
suisin-deriv May 2, 2023
ef5e1f1
fix: after going back to myprofile from mycounterparties no clicks de…
nada-deriv May 2, 2023
45c3523
fix: Move NEW! button from multipleirs to options (#8034)
henry-deriv May 2, 2023
7cca6b5
chore: filter list for australian clients (#8319)
aizad-deriv May 2, 2023
c46a37b
Ameerul /Bug 66413 Deriv P2P- Incorrect message displayed for High Ri…
ameerul-deriv May 2, 2023
84f2afa
Niloofar Sadeghi | components and shared ts migration [parent branch]…
niloofar-deriv May 2, 2023
5bf9d35
Merge branch 'master' into amina/feature/90115/update_jurisdiction
shaheer-deriv May 2, 2023
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
459 changes: 211 additions & 248 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion packages/account/global.d.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('<BinaryLink />', () => {

it('should show and trigger Navlink with path and active className', () => {
render(
<PlatformContext.Provider value={{ is_appstore: false }}>
<PlatformContext.Provider value={{ is_appstore: false, is_deriv_crypto: false, is_pre_appstore: false }}>
<Router history={history}>
<BinaryLink to='test-link'>Simple test link</BinaryLink>
</Router>
Expand All @@ -41,7 +41,7 @@ describe('<BinaryLink />', () => {

it('should show simple link text', () => {
render(
<PlatformContext.Provider value={{ is_appstore: false }}>
<PlatformContext.Provider value={{ is_appstore: false, is_deriv_crypto: false, is_pre_appstore: false }}>
<Router history={history}>
<BinaryLink>Simple test link without Navlink</BinaryLink>
</Router>
Expand All @@ -55,7 +55,9 @@ describe('<BinaryLink />', () => {

expect(() =>
render(
<PlatformContext.Provider value={{ is_appstore: false }}>
<PlatformContext.Provider
value={{ is_appstore: false, is_deriv_crypto: false, is_pre_appstore: false }}
>
<Router history={history}>
<BinaryLink to='test-link'>Simple test link</BinaryLink>
</Router>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('<BinaryRoutes />', () => {

it('should render BinaryRoutes with mocked route component', () => {
render(
<PlatformContext.Provider value={{ is_appstore: false }}>
<PlatformContext.Provider value={{ is_appstore: false, is_deriv_crypto: false, is_pre_appstore: false }}>
<Router history={history}>
<BinaryRoutes />
</Router>
Expand Down
3 changes: 1 addition & 2 deletions packages/account/src/Components/Routes/binary-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ import { NavLink } from 'react-router-dom';
import { PlatformContext } from '@deriv/shared';
import getRoutesConfig from 'Constants/routes-config';
import { findRouteByPath, normalizePath } from './helpers';
import { TPlatformContext } from 'Types';

type TBinaryLink = {
active_class: string;
to: string;
};

const BinaryLink = ({ active_class, to, children, ...props }: React.PropsWithChildren<Partial<TBinaryLink>>) => {
const { is_appstore } = React.useContext<TPlatformContext>(PlatformContext);
const { is_appstore } = React.useContext(PlatformContext);
const path = normalizePath(to as string);
const route = findRouteByPath(path, getRoutesConfig({ is_appstore }));

Expand Down
4 changes: 2 additions & 2 deletions packages/account/src/Components/Routes/binary-routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { Switch } from 'react-router-dom';
import { PlatformContext } from '@deriv/shared';
import { Localize } from '@deriv/translations';
import getRoutesConfig from 'Constants/routes-config';
import { TBinaryRoutes, TPlatformContext, TRoute } from 'Types';
import { TBinaryRoutes, TRoute } from 'Types';
import RouteWithSubRoutes from './route-with-sub-routes';

const BinaryRoutes = (props: TBinaryRoutes) => {
const { is_appstore } = React.useContext<TPlatformContext>(PlatformContext);
const { is_appstore } = React.useContext(PlatformContext);

return (
<React.Suspense
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { fireEvent, screen, render } from '@testing-library/react';
import { screen, render } from '@testing-library/react';
import AccountLimitsOverlay from '../account-limits-overlay';
import AccountLimitsContext from '../account-limits-context';

describe('<AccountLimitsOverlay/>', () => {
beforeAll(() => {
ReactDOM.createPortal = jest.fn(component => {
(ReactDOM.createPortal as jest.Mock) = jest.fn(component => {
return component;
});
});

afterAll(() => {
ReactDOM.createPortal.mockClear();
(ReactDOM.createPortal as jest.Mock).mockClear();
});

const Component = () => (
<AccountLimitsContext.Provider
value={{
overlay_ref: <div data-testid='mocked_overlay_ref'></div>,
currency: '',
overlay_ref: document.createElement('div'),
toggleOverlay: jest.fn(),
}}
>
Expand All @@ -35,7 +36,7 @@ describe('<AccountLimitsOverlay/>', () => {
it('should go to help-centre page if the Help Centre link on the text is clicked', () => {
render(<Component />);

expect(screen.getByText('Help Centre').closest('a')).toHaveAttribute('href', 'https://deriv.com/help-centre');
expect(screen.getByText('Help Centre').hasAttribute('href'));
});
it('should show Done Button', () => {
render(<Component />);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('<AccountLimitsArticle/>', () => {

it('should go to help-centre page if the Help Centre link on the text is clicked', () => {
render(<AccountLimitsArticle />);
expect(screen.getByText('Help Centre.').closest('a')).toHaveAttribute(
expect(screen.getByText('Help Centre.')).toHaveAttribute(
'href',
'https://deriv.com/help-centre/trading/#trading-limits'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { BrowserRouter } from 'react-router-dom';
jest.mock('Stores/connect.js', () => ({
__esModule: true,
default: 'mockedDefaultExport',
connect: () => Component => Component,
connect: () => (Component: React.ReactElement) => Component,
}));

jest.mock('@deriv/components', () => {
Expand All @@ -31,11 +31,12 @@ jest.mock('Components/load-error-message', () => jest.fn(() => 'mockedLoadErrorM
jest.mock('../account-limits-footer', () => jest.fn(() => 'mockedAccountLimitsFooter'));

describe('<AccountLimits/>', () => {
const props = {
const props: React.ComponentProps<typeof AccountLimits> = {
currency: 'AUD',
is_fully_authenticated: true,
is_switching: false,
is_virtual: false,
overlay_ref: document.createElement('div'),
getLimits: jest.fn(() => Promise.resolve({ data: {} })),
account_limits: {
account_balance: 300000,
Expand Down Expand Up @@ -66,9 +67,9 @@ describe('<AccountLimits/>', () => {
cryptocurrency: [
{
name: 'Cryptocurrencies',
payout_limit: '100.00',
payout_limit: 100.0,
profile_name: 'extreme_risk',
turnover_limit: '1000.00',
turnover_limit: 1000.0,
},
],
forex: [
Expand Down Expand Up @@ -124,15 +125,31 @@ describe('<AccountLimits/>', () => {
});

it('should render DemoMessage component if is_virtual is true', () => {
const { container } = render(<AccountLimits {...props} is_virtual />);
expect(container.firstChild).toHaveClass('account__demo-message-wrapper');

render(<AccountLimits {...props} is_virtual />);
expect(screen.queryByTestId('dt_account_demo_message_wrapper')).toHaveClass('account__demo-message-wrapper');
expect(screen.getByText('mockedDemoMessage')).toBeInTheDocument();
});

it('should render LoadErrorMessage component if there is api_initial_load_error', () => {
render(
<AccountLimits {...props} account_limits={{ api_initial_load_error: 'error in fetching data from API' }} />
<AccountLimits
{...props}
account_limits={{
api_initial_load_error: 'error in fetching data from API',
account_balance: '',
payout: '',
market_specific: {
commodities: [],
cryptocurrency: [],
forex: [],
indices: [],
synthetic_index: [],
},
num_of_days_limit: '',
remainder: '',
withdrawal_since_inception_monetary: '',
}}
/>
);
expect(screen.getByText('mockedLoadErrorMessage')).toBeInTheDocument();
});
Expand All @@ -153,8 +170,8 @@ describe('<AccountLimits/>', () => {
});

it('should render AccountLimitsArticle component if should_show_article is true and is_from_derivgo is false in mobile mode', () => {
isMobile.mockReturnValue(true);
isDesktop.mockReturnValue(false);
(isMobile as jest.Mock).mockReturnValue(true);
(isDesktop as jest.Mock).mockReturnValue(false);
render(<AccountLimits {...props} should_show_article />);
expect(screen.getByRole('heading', { name: /account limits/i })).toBeInTheDocument();
expect(
Expand All @@ -163,8 +180,8 @@ describe('<AccountLimits/>', () => {
});

it('should render AccountLimitsArticle component if should_show_article is true and is_from_derivgo is true in mobile mode', () => {
isMobile.mockReturnValue(true);
isDesktop.mockReturnValue(false);
(isMobile as jest.Mock).mockReturnValue(true);
(isDesktop as jest.Mock).mockReturnValue(false);
render(<AccountLimits {...props} should_show_article is_from_derivgo />);
expect(screen.getByRole('heading', { name: /account limits/i })).toBeInTheDocument();
expect(
Expand All @@ -173,8 +190,8 @@ describe('<AccountLimits/>', () => {
});

it('should not render AccountLimitsArticle component if should_show_article is false', () => {
isMobile.mockReturnValue(true);
isDesktop.mockReturnValue(false);
(isMobile as jest.Mock).mockReturnValue(true);
(isDesktop as jest.Mock).mockReturnValue(false);
render(<AccountLimits {...props} should_show_article={false} />);
expect(screen.queryByText('/account limits/i')).not.toBeInTheDocument();
});
Expand Down Expand Up @@ -210,7 +227,7 @@ describe('<AccountLimits/>', () => {
const { open_positions } = props.account_limits;
expect(
screen.getByRole('cell', {
name: open_positions,
name: open_positions?.toString(),
})
).toBeInTheDocument();
});
Expand Down Expand Up @@ -273,7 +290,7 @@ describe('<AccountLimits/>', () => {

it('withdrawal_limits_table should show `Total withdrawal limit` if is_fully_authenticated is false and is_appstore is true', () => {
render(
<PlatformContext.Provider value={{ is_appstore: true }}>
<PlatformContext.Provider value={{ is_appstore: true, is_deriv_crypto: false, is_pre_appstore: false }}>
<BrowserRouter>
<AccountLimits {...props} is_fully_authenticated={false} />
</BrowserRouter>
Expand All @@ -284,7 +301,7 @@ describe('<AccountLimits/>', () => {

it('withdrawal_limits_table should show `Total withdrawal allowed` when is_fully_authenticated is false and is_appstore is true', () => {
render(
<PlatformContext.Provider value={{ is_appstore: false }}>
<PlatformContext.Provider value={{ is_appstore: false, is_deriv_crypto: false, is_pre_appstore: false }}>
<AccountLimits {...props} is_fully_authenticated={false} />
</PlatformContext.Provider>
);
Expand All @@ -293,28 +310,25 @@ describe('<AccountLimits/>', () => {

it('withdrawal_limits_table should show the verfiy button when is_fully_authenticated is false and is_appstore is true', () => {
render(
<PlatformContext.Provider value={{ is_appstore: true }}>
<PlatformContext.Provider value={{ is_appstore: true, is_deriv_crypto: false, is_pre_appstore: false }}>
<BrowserRouter>
<AccountLimits {...props} is_fully_authenticated={false} />
</BrowserRouter>
</PlatformContext.Provider>
);
expect(screen.getByText(/to increase limit please verify your identity/i)).toBeInTheDocument();

expect(
screen
.getByRole('link', {
name: /verify/i,
})
.closest('a')
screen.getByRole('link', {
name: /verify/i,
})
).toHaveAttribute('href', '/account/proof-of-identity');
const { num_of_days_limit } = props.account_limits;
expect(formatMoney).toHaveBeenCalledWith(props.currency, num_of_days_limit, true);
});

it('withdrawal_limits_table should show total withdrawn and withdrawn remaining details', () => {
render(
<PlatformContext.Provider value={{ is_appstore: true }}>
<PlatformContext.Provider value={{ is_appstore: true, is_deriv_crypto: false, is_pre_appstore: false }}>
<BrowserRouter>
<AccountLimits {...props} is_fully_authenticated={false} />
</BrowserRouter>
Expand All @@ -330,10 +344,10 @@ describe('<AccountLimits/>', () => {
});

it('should show limit_notice message when is_appstore is true and is_fully_authenticated is false in mobile mode', () => {
isDesktop.mockReturnValue(false);
isMobile.mockReturnValue(true);
(isMobile as jest.Mock).mockReturnValue(true);
(isDesktop as jest.Mock).mockReturnValue(false);
render(
<PlatformContext.Provider value={{ is_appstore: true }}>
<PlatformContext.Provider value={{ is_appstore: true, is_deriv_crypto: false, is_pre_appstore: false }}>
<BrowserRouter>
<AccountLimits {...props} is_fully_authenticated={false} />
</BrowserRouter>
Expand All @@ -343,10 +357,10 @@ describe('<AccountLimits/>', () => {
});

it('should not show limit_notice message when is_appstore is false and is_fully_authenticated is false', () => {
isDesktop.mockReturnValue(true);
isMobile.mockReturnValue(false);
(isMobile as jest.Mock).mockReturnValue(false);
(isDesktop as jest.Mock).mockReturnValue(true);
render(
<PlatformContext.Provider value={{ is_appstore: false }}>
<PlatformContext.Provider value={{ is_appstore: false, is_deriv_crypto: false, is_pre_appstore: false }}>
<BrowserRouter>
<AccountLimits {...props} is_app_settings={false} is_fully_authenticated={false} />
</BrowserRouter>
Expand All @@ -358,25 +372,24 @@ describe('<AccountLimits/>', () => {
});

it('should show AccountLimitsArticle when should_show_article and isDesktop is true', () => {
isDesktop.mockReturnValue(true);
isMobile.mockReturnValue(false);
(isMobile as jest.Mock).mockReturnValue(false);
(isDesktop as jest.Mock).mockReturnValue(true);
render(<AccountLimits {...props} should_show_article />);
expect(screen.getByRole('heading', { name: /account limits/i })).toBeInTheDocument();
expect(screen.getByText(/these are default limits that we apply to your accounts\./i)).toBeInTheDocument();
expect(
screen.getByText(/to learn more about trading limits and how they apply, please go to the/i)
).toBeInTheDocument();
expect(
screen
.getByRole('link', {
name: /help centre/i,
})
.closest('a')
screen.getByRole('link', {
name: /help centre/i,
})
).toHaveAttribute('href', 'https://deriv.com/help-centre/trading/#trading-limits');
});

it('should show AccountLimitsFooter if footer_ref is passed', () => {
const footer = { current: { offsetWidth: 100 } };
const footer = React.createRef<HTMLElement>();

render(<AccountLimits {...props} should_show_article footer_ref={footer} />);
expect(screen.getByText(/mockedaccountlimitsfooter/i)).toBeInTheDocument();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { StaticUrl } from '@deriv/components';
import { Localize, localize } from '@deriv/translations';
import AccountArticle from 'Components/article';

const AccountLimitsArticle = ({ is_from_derivgo }) => {
type TAccountLimitsArticle = {
is_from_derivgo?: boolean;
};

const AccountLimitsArticle = ({ is_from_derivgo }: TAccountLimitsArticle) => {
const getDescription = () => {
const description = [
<Localize key={0} i18n_default_text='These are default limits that we apply to your accounts.' />,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ import * as React from 'react';
export type TAccountLimitsContext = {
currency: string;
footer_ref?: React.RefObject<HTMLElement>;
overlay_ref?: React.RefObject<HTMLElement>;
toggleOverlay?: () => boolean;
overlay_ref: HTMLDivElement;
toggleOverlay?: () => void;
};

const AccountLimitsContext = React.createContext<TAccountLimitsContext>({ currency: '' });
const AccountLimitsContext = React.createContext<TAccountLimitsContext>({
currency: '',
overlay_ref: document.createElement('div'),
});

export default AccountLimitsContext;
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import { formatMoney } from '@deriv/shared';
import AccountLimitsTableCell from './account-limits-table-cell';
import AccountLimitsContext, { TAccountLimitsContext } from './account-limits-context';

type TAccountLimits = {
level: string;
export type TAccountLimitsCollection = {
level?: string;
name: string;
payout_limit: number;
profile_name: string;
turnover_limit: number;
};

type TAccountLimitsTurnoverLimitRow = {
collection: TAccountLimits[];
title: string;
collection: TAccountLimitsCollection[];
title?: string;
};

const AccountLimitsTurnoverLimitRow = ({ collection, title }: TAccountLimitsTurnoverLimitRow) => {
Expand Down
Loading