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

Header #59

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
288 commits
Select commit Hold shift + click to select a range
261fb21
[coj]/likhith/wall-4066/locked onfido version to prevent unintended c…
likhith-deriv May 17, 2024
e2c0041
[WALL]Hasan/WALL-3823/Incorrect field highlighting (#15049)
hasan-deriv May 17, 2024
550acf2
[coj]/likhith/coj-795/install deriv sharable libs to account package …
likhith-deriv May 17, 2024
e877ce1
[WALL] Test case for TransferReceipt (#15010)
adrienne-deriv May 17, 2024
2f11105
[DTRA] Maryia/build: update quill-ui library version to 1.9.27 + util…
maryia-deriv May 20, 2024
14d82b2
feat: contract details v2 initial setup
akmal-deriv May 20, 2024
e07bbcf
Merge branch 'master' into contract-details-v2
akmal-deriv May 20, 2024
bc80c9d
translations: 📚 sync translations with crowdin (#15240)
github-actions[bot] May 20, 2024
4421cb0
chore: placeholder
ahmadtaimoor-deriv May 20, 2024
cd58cd0
fix: min height
ahmadtaimoor-deriv May 20, 2024
bdf57f0
chore: placeholder
ahmadtaimoor-deriv May 20, 2024
c1a7862
fix: min height
ahmadtaimoor-deriv May 20, 2024
5c56436
fix: earn payout bottom modal
henry-deriv May 20, 2024
d06e58c
fix: merge with branch
henry-deriv May 20, 2024
7b03dc2
[TRAH-3259]: chore: add comment to pull requests with bundle size inf…
markw-deriv May 20, 2024
ee0c735
Merge pull request #40 from henry-deriv/henry/how-to-earn-payout-comp…
akmal-deriv May 20, 2024
52ba11e
fix: make it single responsibility component
henry-deriv May 20, 2024
0d0b274
Merge branch 'contract-details-v2' of github.com:akmal-deriv/deriv-ap…
henry-deriv May 20, 2024
b86dc09
fix: remove unnecessary brackets
henry-deriv May 20, 2024
0917f77
[WALL] Aizad/WALL-4096/Skip Step Add More Wallets (#15249)
aizad-deriv May 20, 2024
4fcb3b8
fix: make body content reusable
henry-deriv May 20, 2024
dd4c2d7
feat: add entry-exit-details component skeleton
akmal-deriv May 20, 2024
d5ff269
feat: resolve conflicts
akmal-deriv May 20, 2024
eea953b
chore: pulled changes
ahmadtaimoor-deriv May 20, 2024
46196d5
chore: transactions unit test (#15250)
lubega-deriv May 20, 2024
d17c974
[CFDS] shontzu/CFDS-3502/unexpected-behaviour-upon-clicking-dynamic-l…
shontzu-deriv May 20, 2024
ffcafe9
fix(wallets): :ambulance: fix demo cfd balance (#15230)
heorhi-deriv May 20, 2024
2b4ecab
fix(wallets): :ambulance: fix deposit iframe loading (#15252)
heorhi-deriv May 20, 2024
b31bfde
fix: fix routing to wallet transfer on clicking manage funds button i…
aum-deriv May 20, 2024
5fdf2bd
chore: get the last successful master artifact (#15253)
markw-deriv May 20, 2024
b88f5c4
Jim/wall 4000/too many attempts modal doesnt appear new (#15220)
jim-deriv May 20, 2024
4da6b8a
[WALL] Jim/WALL-4121/Split modals and move modal titles to the header…
jim-deriv May 20, 2024
cc7f6d0
chore: transfer message unit test (#15222)
lubega-deriv May 20, 2024
5725ddf
build: add quill-tokens lib + update quill-ui lib (#15266)
maryia-deriv May 21, 2024
b11a33e
fix: update branch
henry-deriv May 21, 2024
77a3a52
[DTRA] Maryia/DTRA-1206/fix: request contract history in Contract det…
maryia-deriv May 21, 2024
bf39e6d
[DTRA]Ahmad WEBREL-21/Reports.tsx Coverage (#15164)
ahmadtaimoor-deriv May 21, 2024
20c1155
Merge branch 'master' into contract-details-v2
akmal-deriv May 21, 2024
c33cc0f
translations: 📚 sync translations with crowdin (#15271)
github-actions[bot] May 21, 2024
92ef310
feat: update quill-ui version
akmal-deriv May 21, 2024
c0c7c95
Merge branch 'contract-details-v2' of github.com:akmal-deriv/deriv-ap…
henry-deriv May 21, 2024
f025aa2
feat: update quill-ui version in core
akmal-deriv May 21, 2024
7713658
chore: update @deriv/deriv-charts to 2.1.17 (#15273)
DerivFE May 21, 2024
3604f17
fix: market closed (#15157)
balakrishna-deriv May 21, 2024
98b38b4
feat: add scroll
akmal-deriv May 21, 2024
c3ecc88
[TRAH-3380] shahzaib / remove authorization and loader from options &…
shahzaib-deriv May 21, 2024
7e49062
[TRAH-3250] thisyahlen / shahzaib - remove disclaimers from real acco…
thisyahlen-deriv May 21, 2024
48ba2f1
[TRAH]/MITRA/TRAH-3395/ Update descriptions on Wallets (#15121)
mitra-deriv May 21, 2024
bfdadf6
fix: :bug: change options & mulitpliers to options (#15244)
mitra-deriv May 21, 2024
0ee6ce6
chore: fix bottom nav scroll (#15279)
balakrishna-deriv May 21, 2024
29d8f63
Aizad/WALL-4039/Resize Logo in Transfer Summary Details on Transactio…
aizad-deriv May 21, 2024
294411e
[TRAH]/Mitra/TRAH-3230/Show real sign up modal once demo creation is …
mitra-deriv May 21, 2024
cf20505
Hirad/wall-4006/ Terminal button will call the token and redirect use…
hirad-deriv May 21, 2024
7efac63
chore: card wrapper
ahmadtaimoor-deriv May 21, 2024
43c7ba0
Merge branch 'contract-details-v2' of github.com:akmal-deriv/deriv-ap…
henry-deriv May 21, 2024
e1c29b6
chore: card wrapper
ahmadtaimoor-deriv May 21, 2024
0d02466
chore: card wrapper
ahmadtaimoor-deriv May 21, 2024
5587368
Merge pull request #43 from ahmadtaimoor-deriv/f_contract_details
akmal-deriv May 21, 2024
3ea2da0
Merge branch 'master' into contract-details-v2
akmal-deriv May 21, 2024
7568de9
Merge branch 'contract-details-v2' of github.com:akmal-deriv/deriv-ap…
henry-deriv May 21, 2024
4d23adc
fix: remove extra return statements (#15286)
ali-hosseini-deriv May 21, 2024
488058e
chore: remove comment posting for analyze job (#15264)
markw-deriv May 21, 2024
5a18bec
[P2PS] farrah/P2PS-1953/feat: ad terms (#13636)
farrah-deriv May 21, 2024
e31d88c
Aizad/WALL-3825/Date picker in Wallets following production (#14940)
aizad-deriv May 21, 2024
fc70c3f
[WALL] Rostislav / WALL-3456 / Wallets post-migration UX (successful …
rostislav-deriv May 21, 2024
6caa9ed
[WALL] [Fix] Rostislav / WALL-3923 / ATM input "select & type in frac…
rostislav-deriv May 21, 2024
d3811f7
fix: create risk management tool
henry-deriv May 22, 2024
f44c5a9
fix: clean up contract details page
henry-deriv May 22, 2024
b2496c9
fix: add contract details footer and add deal cancellation to risk ma…
henry-deriv May 22, 2024
1ea8294
translations: 📚 sync translations with crowdin (#15297)
github-actions[bot] May 22, 2024
4595165
translations: 📚 sync translations with crowdin (#15299)
github-actions[bot] May 22, 2024
34dcfd5
[BOT] Farabi/bot-1601/dbot bugs and improvements (#15086)
farabi-deriv May 22, 2024
0908a38
fix: add a case for when take profit is disabled for ongoing contract
henry-deriv May 22, 2024
a560f57
fix: remove unncessary code
henry-deriv May 22, 2024
b1dcc16
translations: 📚 sync translations with crowdin (#15300)
github-actions[bot] May 22, 2024
2397814
[WALL] Lubega / WALL-4133 / Refactor withdrawal and deposit error han…
lubega-deriv May 22, 2024
82e21c9
chore: bump quill-ui version
henry-deriv May 22, 2024
59573b7
[WALL] [Fix] Rostislav / WALL-4135 / Fix wallet name in wallet accoun…
rostislav-deriv May 22, 2024
f0eefa5
fix: add tag component to deal cancellation widget
henry-deriv May 22, 2024
d4ef53d
[BOT]test: added missing test case in qs folder (#15304)
vinu-deriv May 22, 2024
d447edd
translations: 📚 sync translations with crowdin (#15306)
github-actions[bot] May 22, 2024
c2e4abe
fix: translation not handled for header fix (#15310)
nada-deriv May 22, 2024
98d9795
[COJ]/likhith/coj-1123/chore: remove unused dependencies in account p…
likhith-deriv May 22, 2024
6e2d309
[WALL] [Jest] Rostislav / WALL-3047 / Unit test for Tooltip component…
rostislav-deriv May 22, 2024
8a0aaf9
[WEBREL]/Mitra/[WEBREL-2748] Remove the condition as we use the compo…
mitra-deriv May 22, 2024
b06205a
Merge pull request #42 from henry-deriv/henry/how-to-earn-payout-comp…
akmal-deriv May 23, 2024
439d8a8
Revert "[WEBREL]/Mitra/[WEBREL-2748] Remove the condition as we use t…
farabi-deriv May 23, 2024
ae72dd9
Revert "[TRAH-3380] shahzaib / remove authorization and loader from o…
farabi-deriv May 23, 2024
d0d16fa
[WEBREL]/Mitra/[WEBREL-2753] remove crypto subheader (#15316)
mitra-deriv May 23, 2024
aad794a
translations: 📚 sync translations with crowdin (#15324)
github-actions[bot] May 23, 2024
d64fe86
chore: useContractDetail hook
ahmadtaimoor-deriv May 23, 2024
47e463a
chore: useContractDetail hook
ahmadtaimoor-deriv May 23, 2024
7e113c5
Merge pull request #44 from ahmadtaimoor-deriv/f_contract_details
akmal-deriv May 23, 2024
b76031e
fix: user_id attribute missing on rudderstack (#15305)
amir-deriv May 23, 2024
4bfe68c
Aswathy/CRO-566/Tradershub trackevent dashboard updated (#15134)
aswathy-deriv May 23, 2024
f222b35
chore: update @deriv/deriv-charts to 2.1.18 (#15319)
DerivFE May 23, 2024
1663883
fix: add defaultFile (#15292)
rostislav-deriv May 23, 2024
b9dd104
[WALL] aum / WALL-3614 / fix-reopening-file-upload-poi-poa-for-bvi-ac…
aum-deriv May 23, 2024
dc6aa1c
[WALL] Fix button not disabled upload and added error screen for dupl…
adrienne-deriv May 23, 2024
699f41d
[WALL] aum / WALL-4029 / fix-CFDs-password-flows (#15122)
aum-deriv May 23, 2024
d72e9bc
[COJ]/likhith/[coj-1131]chore: remove account-v2 checks from CI (#15320)
likhith-deriv May 23, 2024
d4109f8
Fasih/Removed unused code and unused imported variables (#15039)
fasihali-deriv May 23, 2024
013bcd7
[WALL] george / WALL-4126 / If the wallet balance is less than the mi…
heorhi-deriv May 23, 2024
87f5f66
[WALL] [Jest] Rostislav / WALL-3050 / Unit tests for `<WalletClipboar…
rostislav-deriv May 23, 2024
0c81d7c
fix: compare accounts and jurisdiction fixes (#15338)
lubega-deriv May 23, 2024
8dc70da
[WALL] aum / WALL-4145 / next-button-not-disabled-if-missing-file-for…
aum-deriv May 23, 2024
8a9b60a
translations: 📚 sync translations with crowdin (#15343)
github-actions[bot] May 24, 2024
fbedb3e
feat(wallets): :art: add poipoadocssubmitted screen, fix logic for re…
heorhi-deriv May 24, 2024
3f0efe3
[WALL] Lubega / WALL-4175 / POA and personal details validations and …
lubega-deriv May 24, 2024
89db9ec
[WALL] [Fix] Rostislav / WALL-4132 / CFD Trade modal appearance issue…
rostislav-deriv May 24, 2024
c446c6c
[WALL] Lubega / WALL-4162 / Account creation success message fix (#15…
lubega-deriv May 24, 2024
1ce1de3
[WALL] aum / WALL-4049/ wallet-crypto-withdrawal-age-verification-err…
aum-deriv May 24, 2024
f505fd1
[TRAH] Sergei / TRAH 3229 / Making Traders Hub the landing page and i…
sergei-deriv May 27, 2024
501a935
feat: add card wrapper to entry/exit details
akmal-deriv May 27, 2024
bae582e
feat: merge with master
akmal-deriv May 27, 2024
19e9cb9
[WALL] aum / WALL-4181 / withdrawal-no-balance-not-showing-on-balance…
aum-deriv May 27, 2024
78f2d10
translations: 📚 sync translations with crowdin (#15355)
github-actions[bot] May 27, 2024
6b5a0fb
translations: 📚 sync translations with crowdin (#15359)
github-actions[bot] May 27, 2024
8abe7b6
chore: reduce personal-details-example.svg size (#15082)
markw-deriv May 27, 2024
ec6ea96
translations: 📚 sync translations with crowdin (#15361)
github-actions[bot] May 27, 2024
a324d62
feat: add static payout info
akmal-deriv May 27, 2024
8fab53f
feat: small css improvements
akmal-deriv May 27, 2024
474c9d6
[WALL] Aizad/WALL-4204/Border Radius Fix (#15352)
aizad-deriv May 27, 2024
19daa95
chore: add missing modal (#15366)
jim-deriv May 27, 2024
56b8188
[DTRA] Maryia/WEBREL-14/test: MarketSymbolIconRow + migrate formatSta…
maryia-deriv May 27, 2024
7ddd20e
feat: button mock content
akmal-deriv May 28, 2024
2f4292d
[DTRA]/Ahmad/Update Dtrader Url (#14558)
ahmadtaimoor-deriv May 28, 2024
a7db5c2
fix: mt5 modal iphone issue (#15371)
lubega-deriv May 28, 2024
b73dbc2
[WALL] [Fix] Rostislav / WALL-4065 / Fix wallets onboarding button wh…
rostislav-deriv May 28, 2024
890c12f
chore: added unit tests for wallet components (#15370)
lubega-deriv May 28, 2024
5c37c0e
feat: add tp history layout
akmal-deriv May 28, 2024
9f87d02
feat: add dynamic values and pagination for tp
akmal-deriv May 28, 2024
1b34634
fix: connect deal cancellation widget to store
henry-deriv May 28, 2024
bc3025d
fix: remove unused import
henry-deriv May 28, 2024
5bd8021
fix: merge conflict
henry-deriv May 28, 2024
60d227a
fix: unused prop
henry-deriv May 28, 2024
5f8345c
Merge pull request #46 from henry-deriv/henry/how-to-earn-payout-comp…
akmal-deriv May 28, 2024
021b2c4
[WALL] Aizad/WALL-4205/Fix Layout Trade Modal (#15364)
aizad-deriv May 28, 2024
3239d67
[WALL] Aizad/WALL-4223/Error When Receiving Demo Derived & Financial …
aizad-deriv May 28, 2024
602fed4
chore: useOrderDetails hook with order details
ahmadtaimoor-deriv May 28, 2024
d5a23e0
translations: 📚 sync translations with crowdin (#15392)
github-actions[bot] May 28, 2024
bf4d570
build: pin the packages that are breaking the build (#15390)
ali-hosseini-deriv May 28, 2024
bcbaae8
Merge pull request #47 from ahmadtaimoor-deriv/f_contract_details
akmal-deriv May 28, 2024
9d0f726
fix: styling and css
henry-deriv May 29, 2024
1212aae
Merge pull request #48 from henry-deriv/henry/how-to-earn-payout-comp…
akmal-deriv May 29, 2024
096a683
fix: temp type
akmal-deriv May 29, 2024
d278669
[COJ]/likhith/Amina/COJ-1124/chore: reduce size of account package (#…
likhith-deriv May 29, 2024
0b1a152
WEBREL/Mitra/[WEBREL-2776]/Remove platform switcher from tradershub r…
mitra-deriv May 28, 2024
dc37f8d
[WEBREL] Sergei / WEBREL - 2770, 2771, 2772 / AR language, Get Starte…
sergei-deriv May 28, 2024
84def82
feat: extend card wrapper
akmal-deriv May 29, 2024
61e7ccc
feat: use longcode in payout info
akmal-deriv May 29, 2024
66a2b08
[P2PS] / Ameerul / P2PS-2819 Unable to click on save button upon gett…
ameerul-deriv May 29, 2024
ae0f0ac
chore: entry exit details
ahmadtaimoor-deriv May 29, 2024
e11167d
chore: entry exit details
ahmadtaimoor-deriv May 29, 2024
cf14487
Merge pull request #49 from ahmadtaimoor-deriv/f_contract_details
akmal-deriv May 29, 2024
33087b5
chore: changing name from shared contract type
ahmadtaimoor-deriv May 29, 2024
89fb350
chore: remove cashier and trade from tradershub menu (#15401)
aizad-deriv May 29, 2024
f2cff90
fix: add contract details page config for showing sections
henry-deriv May 29, 2024
706285c
fix: merge conflict
henry-deriv May 29, 2024
ca2941b
Merge pull request #50 from henry-deriv/henry/how-to-earn-payout-comp…
akmal-deriv May 29, 2024
91dc5da
[P2PS] Nada/P2PS-2779/fix: error message not translated for same rate…
nada-deriv May 29, 2024
29fca75
Aswathy/CRO-608/Binary_id fix in analytical package (#15396)
aswathy-deriv May 29, 2024
af9d31c
[WALL] aum / WALL-4169 / personal-details-form-in-onfido-flow (#15350)
aum-deriv May 29, 2024
6a42152
chore: resolve merge conflict (#14748)
shontzu-deriv May 30, 2024
c062372
chore: merge with master
akmal-deriv May 30, 2024
8462177
[DTRA] henry/dtra-1281/fix: integrate Notification banners (#15242)
henry-deriv May 30, 2024
cce989b
chore: updated quill
ahmadtaimoor-deriv May 30, 2024
53c3aa0
chore: merge base
ahmadtaimoor-deriv May 30, 2024
97161f3
translations: 📚 sync translations with crowdin (#15421)
github-actions[bot] May 30, 2024
8eda5a0
chore: resolve conflict
akmal-deriv May 30, 2024
beb9078
chore: test
ahmadtaimoor-deriv May 30, 2024
c9b7b10
Amina/COJ-602/Triggering POI POA on new expiring status (#14831)
amina-deriv May 30, 2024
914267e
feat: added custom format param to unixToDateString and displayFormat…
aum-deriv May 30, 2024
78d9d96
[WALL] aum / WALL-4232 / poa-supp-docs-content-alignment-fix (#15414)
aum-deriv May 30, 2024
d892a95
Nijil / wall-4221 / Fix rapid button click issues (#15391)
nijil-deriv May 30, 2024
a4e709c
fix: handle all cases of risk management items display
henry-deriv May 30, 2024
f3eb9ab
[TRAH] Sergei / TRAH - 3558 / Add TRUSTPILOT_API_KEY secret for 3 wor…
sergei-deriv May 30, 2024
2bd1327
[WALL] Rostislav / WALL-3496 / Remove `next_wallet` flag for release …
rostislav-deriv May 30, 2024
e755e85
fix: change from onfocus to onclick
henry-deriv May 31, 2024
dfcde7d
fix: replace with stepper
henry-deriv May 31, 2024
349496e
[BOT] Farabi/bot-1809/update rudderstack events (#15426)
farabi-deriv May 31, 2024
2fa68bb
[BOT]maryia/FEQ-828/fix: trackJS error Cannot read properties of null…
maryia-matskevich-deriv May 31, 2024
6dc3af9
Merge pull request #52 from henry-deriv/henry/how-to-earn-payout-comp…
akmal-deriv May 31, 2024
193e546
chore: created common chunk (#15374)
likhith-deriv May 31, 2024
8d1dace
Ako/ FEQ-2254 / Initialise GrowthBook before init render and use Pass…
ali-hosseini-deriv May 31, 2024
4a6933c
Suisin/chore: include swahili translation into deriv-app (#14869)
suisin-deriv May 31, 2024
5ef7632
chore: merge with master
akmal-deriv May 31, 2024
d92b035
chore: merge with master
akmal-deriv May 31, 2024
43b0d5a
chore: button
ahmadtaimoor-deriv May 31, 2024
0744a84
chore: remove comments
ahmadtaimoor-deriv May 31, 2024
d49c1ca
[WEBREL] nada/fix: issue with duplicate PM (#15432)
nada-deriv May 31, 2024
0f1e4ec
chore: test
ahmadtaimoor-deriv May 31, 2024
b1a7efb
chore: add notification
ahmadtaimoor-deriv May 31, 2024
b7afcb1
chore: add notification
ahmadtaimoor-deriv May 31, 2024
f93a88d
[WALL] [Fix] Rostislav / WALL-4233 / Fix cTrader acc balance not show…
rostislav-deriv May 31, 2024
e3b4984
[WALL] aum / [ WALL-4253 / 4273 / 4231 ] / POI-POA-minor-ui-fixes (#1…
aum-deriv Jun 3, 2024
7a10d33
[WALL-3660] re enabled bundle analysis comment (#15419)
wojciech-deriv Jun 3, 2024
eedd294
Update smoketests.yml (#15428)
markodonnell-deriv Jun 3, 2024
a68c2a0
[WALL] aum / WALL-4272/ poa-showing-after-2nd-attempt-of-poi (#15458)
aum-deriv Jun 3, 2024
6e8fc27
[TRAH]/MITRA/KYC-1852/Update the validation to accept 1 to 50 charact…
mitra-deriv Jun 4, 2024
f1f74af
[P2PS-3015]/Nada/fix: cannot access t before initialization (#15452)
nada-deriv Jun 4, 2024
6e74994
Hirad/CFDs-3960/Standard accounts (#15325)
hirad-deriv Jun 4, 2024
d25de90
Nijil / WALL-4236/ Wallet overlay lock and error screen UI updates (#…
nijil-deriv Jun 4, 2024
61424ee
[TRAH]/Mitra/CSIT-774/Real account creation banner (#14623)
mitra-deriv Jun 4, 2024
43f74a6
[WALL] shontzu/WALL-4007/update-ui-for-seamless-mt5-mobile-login-inte…
shontzu-deriv Jun 4, 2024
7f6d3b1
translations: 📚 sync translations with crowdin (#15473)
github-actions[bot] Jun 4, 2024
d5416f8
chore: update @deriv/deriv-charts to 2.1.19 (#15468)
DerivFE Jun 4, 2024
2bde847
[DTRA] Farhan/WEBREL-6/Test coverage: src/Stores/Modules/Profit/Helpe…
farhan-nurzi-deriv Jun 4, 2024
e9bdf4d
Aswathy/CRO-615/Binary id userid (#15460)
aswathy-deriv Jun 4, 2024
b2eef6e
Sergei / Add Trustpilot api key to 2 more github actions (#15463)
sergei-deriv Jun 4, 2024
3ac16ac
fix: color of the button text in mobile for DatePicker (#15475)
aum-deriv Jun 4, 2024
83adf48
fix: broken onboarding (#15434)
rostislav-deriv Jun 4, 2024
672615a
[DTRA] Kate/Maryia/DTRA-1279/Redesign: Positions page (#15234)
maryia-deriv Jun 5, 2024
a69be65
fix: :bug: replace images with smaller size (#15477)
mitra-deriv Jun 5, 2024
92ba3bd
WEBREL/Mitra/WEBREL-2796/Platform toggle issue (#15492)
mitra-deriv Jun 5, 2024
b7dfdb8
fix: :bug: set currency type on account creation from backend (#15431)
mitra-deriv Jun 5, 2024
159e489
[TRAH-3031] shahzaib / duplicate account (Name + DOB) (#15247)
shahzaib-deriv Jun 5, 2024
957d4fb
fix: :bug: should not show banner to eu client (#15503)
mitra-deriv Jun 5, 2024
8f8365b
[WALL] Jim/WALL-4214/ Account balance is not updated in tradershub af…
jim-deriv Jun 5, 2024
2aacdf0
chore: TP and SL toggle
ahmadtaimoor-deriv Jun 5, 2024
0b3eb80
chore: localize order detail
ahmadtaimoor-deriv Jun 5, 2024
1804b43
Merge pull request #53 from ahmadtaimoor-deriv/f_contract_details
akmal-deriv Jun 5, 2024
1855373
feat: added p2p standalone iframe + setup localstorage synchronisatio…
shayan-deriv Jun 5, 2024
8ca875f
Update smoketests.yml (#15491)
markodonnell-deriv Jun 5, 2024
630659b
[WALL] AIzad/WALL-4188/Fix Currency Dropdownlist not updated in Real …
aizad-deriv Jun 5, 2024
dc78fdc
[WALL-3660] feature/switch to total size (#15483)
wojciech-deriv Jun 5, 2024
2b154a3
chore: merge with master
akmal-deriv Jun 6, 2024
cbe7efc
chore: replace contract card
ahmadtaimoor-deriv Jun 6, 2024
ee67a9d
Merge pull request #54 from ahmadtaimoor-deriv/f_contract_details
akmal-deriv Jun 6, 2024
90fa05b
feat: add take profit history
akmal-deriv Jun 6, 2024
cd7246d
Merge branch 'contract-details-v2' of https://github.com/akmal-binary…
akmal-deriv Jun 6, 2024
1251f50
fix: main page scrolling issue
akmal-deriv Jun 7, 2024
0cd8542
feat: take profit, take profit history and contract card improvements
akmal-deriv Jun 7, 2024
de7dc73
chore: fix
ahmadtaimoor-deriv Jun 10, 2024
80946dd
feat: add test cases
akmal-deriv Jun 11, 2024
2333e49
chore: merge upstream
ahmadtaimoor-deriv Jun 11, 2024
a22d71d
chore: test cases
ahmadtaimoor-deriv Jun 12, 2024
962fb3f
Merge pull request #55 from ahmadtaimoor-deriv/f_contract_details
akmal-deriv Jun 12, 2024
da4023c
helper fix
ahmadtaimoor-deriv Jun 12, 2024
19324d1
Merge pull request #56 from ahmadtaimoor-deriv/f_contract_details
akmal-deriv Jun 12, 2024
4e1cd07
ts fix
ahmadtaimoor-deriv Jun 12, 2024
cdc0bd3
entry exit details fix
ahmadtaimoor-deriv Jun 12, 2024
6579f13
entry exit details fix
ahmadtaimoor-deriv Jun 12, 2024
2102921
entry exit details fix
ahmadtaimoor-deriv Jun 12, 2024
de8140e
Merge pull request #57 from ahmadtaimoor-deriv/f_contract_details
akmal-deriv Jun 12, 2024
a9893b8
feat: fixes and improvements
akmal-deriv Jun 12, 2024
adb21db
chore: remove console log
akmal-deriv Jun 12, 2024
94ab335
feat: fixes and improvements
akmal-deriv Jun 12, 2024
093e5dd
chore: contract details test case
ahmadtaimoor-deriv Jun 12, 2024
c716a1b
chore: header
ahmadtaimoor-deriv Jun 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = {
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:react/jsx-runtime', // Enables the new JSX transform runtime
],
parserOptions: {
ecmaversion: 2018,
Expand Down
119 changes: 112 additions & 7 deletions .github/actions/analyze/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ inputs:
DATADOG_SESSION_SAMPLE_RATE:
description: 'Datadog session sample rate'
required: false
GITHUB_TOKEN:
description: 'Github token for downloading artifacts'
required: true
GD_API_KEY:
description: 'Google drive api key'
required: false
Expand Down Expand Up @@ -54,10 +57,51 @@ inputs:
IS_GROWTHBOOK_ENABLED:
description: 'Is growthbook enabled'
required: true
ISSUE_NUMBER:
description: 'Issue to post a comment to'
required: false
TRUSTPILOT_API_KEY:
description: 'Trustpilot api key'
required: false

runs:
using: composite
steps:
- name: Get artifact URL
id: get_artifact_url
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
shell: bash
run: |
RESPONSE=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
"https://api.github.com/repos/${{ github.repository }}/actions/artifacts?name=analyse")

ARTIFACT_URL=$(echo $RESPONSE | jq -r '.artifacts[0].archive_download_url')

if [[ -z "$ARTIFACT_URL" ]]; then
echo "Error: No artifact URL found for the master branch with prefix 'analyse'."
exit 1
else
echo "Artifact URL: $ARTIFACT_URL"
fi

echo "artifact_url=$ARTIFACT_URL" >> $GITHUB_OUTPUT
echo "artifact_url=$ARTIFACT_URL"

- name: Download artifact
if: steps.get_artifact_url.outputs.artifact_url != 'null'
env:
ARTIFACT_URL: ${{ steps.get_artifact_url.outputs.artifact_url }}
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
shell: bash
run: |
curl -L -H "Authorization: Bearer $GITHUB_TOKEN" \
"$ARTIFACT_URL" \
-o artifact.zip
unzip artifact.zip -d old
cd old
unzip analyse.zip

- name: Analyze all packages
env:
NODE_ENV: ${{ inputs.NODE_ENV }}
Expand All @@ -77,18 +121,79 @@ runs:
GROWTHBOOK_DECRYPTION_KEY: ${{ inputs.GROWTHBOOK_DECRYPTION_KEY }}
REF_NAME: ${{ inputs.REF_NAME }}
REMOTE_CONFIG_URL: ${{ inputs.REMOTE_CONFIG_URL }}
TRUSTPILOT_API_KEY: ${{ inputs.TRUSTPILOT_API_KEY }}
NODE_OPTIONS: "--max_old_space_size=4096"
run: npm run build:prod && npm run analyze:stats
shell: bash
run: npm run build:prod && npm run analyze:stats && npm run analyze:build

- name: Compare report to master
id: diff
if: steps.get_artifact_url.outputs.artifact_url != 'null'
shell: bash
run: |
DIFF_OUTPUT_HTML=$(node .github/actions/analyze/compareReports.js --format=html)
ABOVE_THRESHOLD=$(node .github/actions/analyze/compareReports.js --format=boolean) || { echo "Threshold check failed"; exit 1; }

# Output results to GITHUB_OUTPUT
echo "diff_output_html=$DIFF_OUTPUT_HTML" >> $GITHUB_OUTPUT
echo "above_threshold=$ABOVE_THRESHOLD" >> $GITHUB_OUTPUT

- name: Comment on PR with Diff Output
if: steps.get_artifact_url.outputs.artifact_url != 'null' && inputs.ISSUE_NUMBER
uses: actions/github-script@v5
env:
DIFF_OUTPUT_HTML: ${{ steps.diff.outputs.diff_output_html }}
ISSUE_NUMBER: ${{ inputs.ISSUE_NUMBER }}
with:
script: |
const diffOutputHtml = process.env.DIFF_OUTPUT_HTML; // Removed Buffer.from and base64 decoding
const issueNumber = process.env.ISSUE_NUMBER;
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issueNumber,
body: `${diffOutputHtml}`
});
continue-on-error: true

- name: Print out differences on console
id: print_diff
if: steps.get_artifact_url.outputs.artifact_url != 'null'
shell: bash
run: |
node .github/actions/analyze/compareReports.js --format=console

- name: Zip all stats.json files
- name: Validate size changes
if: ${{ steps.diff.outputs.above_threshold == 'true' }}
uses: actions/github-script@v5
with:
script: |
core.setFailed('Size changes exceed the defined threshold. Check above logs for details.');

- name: Zip all report.json files
shell: bash
run: |
zip -r stats.zip packages/*/stats.json
zip -r analyse.zip packages/*/report.json

- name: Upload analyse.zip for Master Branch
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v4
with:
name: analyse
path: analyse.zip
retention-days: 20

- name: Set sanitized branch name
id: sanitize
shell: bash
run: |
SANITIZED_REF_NAME=$(echo "${{ github.ref_name }}" | sed 's/[^a-zA-Z0-9]/-/g')
echo "SANITIZED_REF_NAME=${SANITIZED_REF_NAME}" >> $GITHUB_ENV

- name: Upload stats.zip
- name: Upload analyse.zip for Feature Branches
if: github.ref != 'refs/heads/master'
uses: actions/upload-artifact@v4
with:
name: stats-${{ github.sha }}
path: stats.zip
retention-days: 1
name: analyse-${{ env.SANITIZED_REF_NAME }}
path: analyse.zip
retention-days: 5
170 changes: 170 additions & 0 deletions .github/actions/analyze/compareReports.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
const fs = require('fs');
const path = require('path');

// read and use parameters from command line
const args = process.argv.slice(2); // Skip the first two elements
let format = args.find(arg => arg.startsWith('--format='))?.split('=')[1] || 'html';
let orangeThreshold = +(args.find(arg => arg.startsWith('--orangeThreshold='))?.split('=')[1] || 0.5);
let redThreshold = +(args.find(arg => arg.startsWith('--redThreshold='))?.split('=')[1] || 5);

// main function execution
main();

function main() {
// format: [package]: { oldSize, newSize, diff, percentage }
const sizes = analyse();

// format to different output based on the format parameter
// nice table in html if its for comment, nice table in console if its for console, or just true/false if its just to check validity
if (format === 'html') {
let formattedOutput = formatToTable(sizes);
console.log(formattedOutput);
} else if (format === 'console') {
let formattedOutput = formatToConsole(sizes);
console.table(formattedOutput, ['oldSize', 'newSize', 'diff', 'percentage', 'alert']);
} else if (format === 'boolean') {
const aboveRedThreshold = Object.values(sizes).some(pkg => pkg.percentage > redThreshold);
if (aboveRedThreshold) {
console.log('true');
} else {
console.log('false');
}
}
}

function analyse() {
const packagesDir = './packages';
const oldPackagesDir = './old/packages';

const packages = [...new Set([...fs.readdirSync(packagesDir), ...fs.readdirSync(oldPackagesDir)])];

const result = {};

for (const pkg of packages) {
const oldReport = readJsonFile(path.join(oldPackagesDir, pkg, 'report.json'));
const newReport = readJsonFile(path.join(packagesDir, pkg, 'report.json'));

if (!newReport) {
continue;
}

const oldSize = oldReport ? oldReport.reduce((acc, item) => acc + item.gzipSize, 0) : null;
const newSize = newReport ? newReport.reduce((acc, item) => acc + item.gzipSize, 0) : null;

let diff = oldSize && newSize ? newSize - oldSize : oldSize || newSize;
let percentage = oldSize && newSize ? calculatePercentage(oldSize, newSize) : null;

result[pkg] = {
oldSize,
newSize,
diff,
percentage,
};
}

return result;
}

function formatToTable(sizes) {
const GREEN_SIGN = '🟢';
const YELLOW_SIGN = '🟡';
const RED_SIGN = '🔴';

let tableRows = '';
for (const [pkg, { oldSize, newSize, diff, percentage }] of Object.entries(sizes)) {
const formattedPercentage = formatPercentageWithSign(percentage);
const lightSign =
percentage > redThreshold ? RED_SIGN : percentage > orangeThreshold ? YELLOW_SIGN : GREEN_SIGN;

tableRows += `
<tr>
<td>${pkg}</td>
<td>${formatBytes(oldSize)}</td>
<td>${formatBytes(newSize)}</td>
<td>${formatBytes(diff, true)}</td>
<td>${formattedPercentage} ${lightSign}</td>
</tr>
`.trim();
}

return `
<table>
<thead>
<th>package</th>
<th>old</th>
<th>new</th>
<th>diff</th>
<th>pct change</th>
</thead>
<tbody>
${tableRows}
</tbody>
</table>`
.replace(/[\n\t]/g, '')
.trim();
}

function formatToConsole(sizes) {
Object.keys(sizes).forEach(key => {
const pkg = sizes[key];
pkg.oldSize = formatBytes(pkg.oldSize);
pkg.newSize = formatBytes(pkg.newSize);
pkg.diff = formatBytes(pkg.diff, true);
pkg.alert = pkg.percentage > redThreshold ? 'FAIL' : pkg.percentage > orangeThreshold ? 'WARN' : 'OK';
pkg.percentage = formatPercentageWithSign(pkg.percentage);
});
return sizes;
}

function readJsonFile(filePath) {
if (fs.existsSync(filePath)) {
const data = fs.readFileSync(filePath, 'utf-8');
return JSON.parse(data);
}
return null;
}

function calculatePercentage(oldSize, newSize) {
return ((newSize - oldSize) / oldSize) * 100;
}

function formatBytes(bytes, sign = false) {
if (bytes === null || isNaN(bytes)) {
return 'n/a';
}

let formattedValue = '';

if (bytes < 1024) {
formattedValue = bytes + ' B'; // Bytes
} else if (bytes < 1048576) {
formattedValue = Math.round(bytes / 1024) + ' KB'; // Kilobytes
} else {
formattedValue = (bytes / 1048576).toFixed(1) + ' MB'; // Megabytes
}

if (sign) {
if (bytes === 0) {
return '0 B';
}
formattedValue = bytes >= 0 ? '+' + formattedValue : '-' + formattedValue;
}

return formattedValue;
}

function formatPercentageWithSign(percentage) {
if (percentage === null || isNaN(percentage)) {
return 'n/a';
}

const absPercentage = Math.abs(percentage);
const decimalPoints = absPercentage < 10 ? 1 : 2;
let formattedValue = percentage.toFixed(decimalPoints) + '%';

if (percentage === 0) {
return '0%';
}

return percentage >= 0 ? '+' + formattedValue : '−' + formattedValue;
}
4 changes: 4 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ inputs:
IS_GROWTHBOOK_ENABLED:
description: 'Is growthbook enabled'
required: true
TRUSTPILOT_API_KEY:
description: 'Trustpilot api key'
required: false

runs:
using: composite
Expand All @@ -77,5 +80,6 @@ runs:
GROWTHBOOK_DECRYPTION_KEY: ${{ inputs.GROWTHBOOK_DECRYPTION_KEY }}
REF_NAME: ${{ inputs.REF_NAME }}
REMOTE_CONFIG_URL: ${{ inputs.REMOTE_CONFIG_URL }}
TRUSTPILOT_API_KEY: ${{ inputs.TRUSTPILOT_API_KEY }}
run: npm run build:all
shell: bash
8 changes: 8 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ on:
branches:
- master


jobs:
build_and_test:
name: Analyze Bundle
runs-on: Runner_16cores_Deriv-app
environment: Preview
permissions:
contents: read
pull-requests: write
actions: read
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
Expand All @@ -31,6 +36,7 @@ jobs:
DATADOG_SESSION_REPLAY_SAMPLE_RATE: ${{ vars.DATADOG_SESSION_REPLAY_SAMPLE_RATE }}
DATADOG_SESSION_SAMPLE_RATE: ${{ vars.DATADOG_SESSION_SAMPLE_RATE }}
DATADOG_SESSION_SAMPLE_RATE_LOGS: ${{ vars.DATADOG_SESSION_SAMPLE_RATE_LOGS }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GD_API_KEY: ${{ secrets.GD_API_KEY }}
GD_APP_ID: ${{ secrets.GD_APP_ID }}
GD_CLIENT_ID: ${{ secrets.GD_CLIENT_ID }}
Expand All @@ -39,3 +45,5 @@ jobs:
GROWTHBOOK_DECRYPTION_KEY: ${{ vars.GROWTHBOOK_DECRYPTION_KEY }}
REF_NAME: ${{ github.ref_name }}
REMOTE_CONFIG_URL: ${{ vars.REMOTE_CONFIG_URL }}
ISSUE_NUMBER: ${{ github.event.pull_request.number }}
TRUSTPILOT_API_KEY: ${{ secrets.TRUSTPILOT_API_KEY }}
1 change: 1 addition & 0 deletions .github/workflows/release_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
GROWTHBOOK_DECRYPTION_KEY: ${{ vars.GROWTHBOOK_DECRYPTION_KEY }}
REF_NAME: ${{ github.ref_name }}
REMOTE_CONFIG_URL: ${{ vars.REMOTE_CONFIG_URL }}
TRUSTPILOT_API_KEY: ${{ secrets.TRUSTPILOT_API_KEY }}
- name: Run tests
run: npm test
- name: Versioning
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
GROWTHBOOK_DECRYPTION_KEY: ${{ vars.GROWTHBOOK_DECRYPTION_KEY }}
REF_NAME: ${{ github.ref_name }}
REMOTE_CONFIG_URL: ${{ vars.REMOTE_CONFIG_URL }}
TRUSTPILOT_API_KEY: ${{ secrets.TRUSTPILOT_API_KEY }}
- name: Run tests
run: npm test
- name: Versioning
Expand Down
Loading
Loading