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

chore: migrated progress-slider-stream to tsx #35

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
7ea8e5a
Merge branch 'master' of github.com:binary-com/deriv-app
aizad-deriv Dec 7, 2022
8176397
Merge branch 'master' of github.com:binary-com/deriv-app
aizad-deriv Dec 8, 2022
9c77dc1
Merge branch 'master' of github.com:binary-com/deriv-app
aizad-deriv Dec 8, 2022
a3cbdcd
Merge branch 'master' of github.com:binary-com/deriv-app
aizad-deriv Dec 9, 2022
f5d33bc
Merge branch 'master' of github.com:binary-com/deriv-app
aizad-deriv Dec 12, 2022
f7e14b4
Merge branch 'master' of github.com:binary-com/deriv-app
aizad-deriv Dec 14, 2022
84a8f49
chore: updated push-woosh (#7297)
aizad-deriv Jan 5, 2023
469a0a9
fix: added the missing dependency incase of first render after signnu…
hamza-deriv Jan 5, 2023
1abb7de
fix: dbot performance issue -- unified websocket connection and moved…
sandeep-deriv Jan 6, 2023
37266a2
translations: 📚 sync translations with crowdin (#7316)
github-actions[bot] Jan 6, 2023
1c7953a
Merge branch 'develop' of github.com:binary-com/deriv-app into develop
jim-deriv Jan 6, 2023
b134c88
fix: summary panel flickering (#7321)
sandeep-deriv Jan 7, 2023
84a83d9
Merge branch 'master' of github.com:binary-com/deriv-app into develop
jim-deriv Jan 9, 2023
cd56d96
fix: Spacing between lines in 2FA page (#7275)
hamza-deriv Jan 9, 2023
ab7fa63
chore: fix translation issue on acuity modal (#7318)
aizad-deriv Jan 9, 2023
7da7e1a
Revert "fix: summary panel flickering (#7321)"
Jan 9, 2023
289d0fe
Revert "translations: 📚 sync translations with crowdin (#7316)"
Jan 9, 2023
8a647fc
Revert "fix: dbot performance issue -- unified websocket connection a…
Jan 9, 2023
e8989c0
Merge branch 'develop' of github.com:binary-com/deriv-app into revert…
Jan 9, 2023
69825d3
Revert V20230106_0 (#7334)
carolsachdeva Jan 9, 2023
3cd1f98
Niloofar Sadeghi / Refactor tests in the route-with-sub-routes.spec.t…
niloofar-deriv Jan 9, 2023
a44342b
refactor: login-button test file (#7245)
niloofar-deriv Jan 9, 2023
fe8cc3f
refactor: account-info test file (#7244)
niloofar-deriv Jan 9, 2023
773ece1
Niloofar Sadeghi / Refactor tests in the network-status.spec.tsx file…
niloofar-deriv Jan 9, 2023
67881ea
Farzin/67865/Add an option in BackOffice for clients to update their …
farzin-deriv Jan 9, 2023
a232823
bahar/83538/feat: deriv-ez-fund-transfer-web-page-development (#7220)
Jan 9, 2023
11d3eb6
Niloofar / Task - Refactor tests in the toggle-fullscreen.spec.tsx fi…
niloofar-deriv Jan 9, 2023
f67451a
fix: description should be called from general_store, not my_ads (#7236)
ameerul-deriv Jan 9, 2023
1d755fe
fix: fixed the overflowed text in buy/sell order instruction details …
ameerul-deriv Jan 9, 2023
3473fb3
kate/80180/Update_DP2P_content_on_cashier_page (#7233)
kate-deriv Jan 9, 2023
c9dd30a
fix: add hook useCallback for topWidgets component to avoid rerender …
kate-deriv Jan 9, 2023
4a84b45
Merge branch 'develop' of github.com:binary-com/deriv-app into develop
jim-deriv Jan 10, 2023
81b7d84
Tib|Bala/No 404 during cloudflare pages routing (#7280)
balakrishna-deriv Jan 10, 2023
c95beaf
Amina/feat: milestone_2_dbvi (#6935)
amina-deriv Jan 11, 2023
b79e4be
translations: 📚 sync translations with crowdin (#7349)
github-actions[bot] Jan 11, 2023
5a902f7
translations: 📚 sync translations with crowdin (#7361)
github-actions[bot] Jan 12, 2023
c886eea
chore: migrated progress-slider-stream to tsx
aizad-deriv Jan 13, 2023
229a5b1
Shayan/52349/react17 migration (#6908)
shayan-deriv Jan 10, 2023
abd9e25
fix: add optional chaining in getMinDuration function (#7344)
kate-deriv Jan 11, 2023
6de2aae
fix: :bug: resolved issue with trade. odal (#7291)
likhith-deriv Jan 11, 2023
ec5b85f
Revert "fix: :bug: resolved issue with trade. odal (#7291)" (#7364)
matin-deriv Jan 13, 2023
551a3c4
Farzin/85054/Call `resetWithrawForm` on `CryptoWithdrawForm` componen…
farzin-deriv Jan 16, 2023
b032a72
Niloofar Sadeghi / Task - Refactor tests in the language.spec.js file…
niloofar-deriv Jan 16, 2023
6f4c2ac
refactor: proposal tests (#7327)
niloofar-deriv Jan 16, 2023
3c3772e
Niloofar Sadeghi / Task - Refactor tests in the error.spec.js file (#…
niloofar-deriv Jan 16, 2023
14490b4
Niloofar Sadeghi / Task - Refactor tests in the binary-link.spec.tsx …
niloofar-deriv Jan 16, 2023
0680ab0
refactor: money tests (#7353)
niloofar-deriv Jan 16, 2023
df2d2da
refactor: toggle-positions tests (#7287)
niloofar-deriv Jan 16, 2023
80b1c6f
refactor: toggle-button tests (#7328)
niloofar-deriv Jan 16, 2023
5926d59
Niloofar Sadeghi / Task - Refactor tests in the toggle-button-group.s…
niloofar-deriv Jan 16, 2023
f4f7ef0
refactor: open-positions-table tests (#7374)
niloofar-deriv Jan 16, 2023
9b80f6f
Niloofar Sadeghi / Task - Refactor tests in the marker-spot-label.spe…
niloofar-deriv Jan 16, 2023
50f7282
Niloofar Sadeghi / Task - Refactor tests in the binary-link.spec.tsx …
niloofar-deriv Jan 16, 2023
858fa72
Niloofar Sadeghi / Task - Refactor tests in the contract-type-dialog.…
niloofar-deriv Jan 16, 2023
dc008d3
Niloofar Sadeghi / Task - Refactor tests in the platform-dropdown.spe…
niloofar-deriv Jan 16, 2023
b824dac
Farzin/76563/Replace `DepositStore` with hooks (#7180)
farzin-deriv Jan 17, 2023
4888c77
Adrienne / Github actions Lighthouse report workflow (#7317)
adrienne-deriv Jan 17, 2023
6f91be9
likhith/POI status fix (#6792)
likhith-deriv Jan 17, 2023
6cf02fb
translations: 📚 sync translations with crowdin (#7383)
github-actions[bot] Jan 17, 2023
d634ba1
Suisin/chore: Notifications for gathering users POI and POA (#7381)
suisin-deriv Jan 18, 2023
b5f0f75
Shayan/86260/fix collapsable panel placeholder alignment (#7389)
shayan-deriv Jan 18, 2023
022cbc9
Merge branch 'Improvement/72232/Reports_TS_migration' of github.com:m…
aizad-deriv Jan 19, 2023
415b5f8
fix: yml script (#7398)
rupato-deriv Jan 19, 2023
fe21100
fix: added TODO for rootstore
aizad-deriv Jan 19, 2023
cc8aee7
sandeep/fix: dbot-slowness issue v2 (#7345)
sandeep-deriv Jan 19, 2023
341d1ec
Revert "sandeep/fix: dbot-slowness issue v2 (#7345)" (#7407)
farrah-deriv Jan 20, 2023
f3af598
Hamza/85369/clear button for notifications (#7348)
hamza-deriv Jan 20, 2023
572db5b
chore: textual change 85884 (#7409)
hamza-deriv Jan 20, 2023
aaca77c
fix: Higher/Lower Trade type contracts Rise/Fall is shown (#7346)
sergei-deriv Jan 20, 2023
6ea7c91
Akmal / fix position drawer background (#7178)
akmal-deriv Jan 20, 2023
c28ab14
likhith/fix: :bug: resolved flickering issue in platform switcher (#7…
likhith-deriv Jan 20, 2023
e059e62
carol/P2P: Fix recommendation bug (#6712)
carolsachdeva Jan 20, 2023
ec3e201
fix: replaced old text with new one for modal title (#7337)
ameerul-deriv Jan 20, 2023
5b22d4b
Kate/ 84149/ getting error after changing language from account setti…
kate-deriv Jan 20, 2023
2d85729
Ameerul /Task 84193 Deriv P2P - Encourage/Initiate Users to Create Ad…
ameerul-deriv Jan 20, 2023
9c156b7
chore: changed css styling for currency dropdown (#7221)
ameerul-deriv Jan 20, 2023
de08f20
Rostislav / 82947 / Task remove Changelly and Xanpool from Fiat Onra…
rostislav-deriv Jan 20, 2023
e1ea255
Sandeep/85441/dbot performance fix 2 clone (#7408)
sandeep-deriv Jan 20, 2023
e143c65
Merge branch 'develop' of https://github.com/binary-com/deriv-app
farrah-deriv Jan 20, 2023
7ac8c6f
Merge remote-tracking branch 'upstream/master' into develop
farrah-deriv Jan 20, 2023
d0a1b6e
translations: 📚 sync translations with crowdin (#7411)
github-actions[bot] Jan 20, 2023
492a35b
Add permissions to GITHUB_TOKEN (#7422)
thibault-deriv Jan 23, 2023
d93e54e
chore: github_token permissions (#7423)
farrah-deriv Jan 23, 2023
1e3b236
Specify GITHUB_TOKEN permissions for lighthouse.yml (#7424)
thibault-deriv Jan 23, 2023
52b7ac0
fix: clear all button in notifications dialog (#7425)
farrah-deriv Jan 23, 2023
137c3d7
Suisin/84164/wrong fe request format (#7227)
suisin-deriv Jan 24, 2023
39c7fa5
Merge remote-tracking branch 'upstream/master' into develop
farrah-deriv Jan 24, 2023
89696d1
hamza/hotfix: dp2p notification comming incase of 2 accounts (#7433)
hamza-deriv Jan 25, 2023
1b95990
fix: missing dropdown menu (#7420)
farrah-deriv Jan 25, 2023
e27145d
translations: 📚 sync translations with crowdin (#7439)
github-actions[bot] Jan 25, 2023
f9f735e
Farzin/85855/Refactor `ToggleMenuDrawer` component to use `useStore` …
farzin-deriv Jan 26, 2023
4830948
Ameerul /Feature 82816 Block User Phase 2 (#7153)
ameerul-deriv Jan 27, 2023
12b9d4b
Merge remote-tracking branch 'upstream/master' into develop
farrah-deriv Jan 27, 2023
f0821b0
translations: 📚 sync translations with crowdin (#7446)
github-actions[bot] Jan 27, 2023
61adb3d
Farzin/85472/R&D/Remove `CashierStore` initialization from core packa…
farzin-deriv Jan 27, 2023
20977a2
Merge remote-tracking branch 'upstream/master' into develop
farrah-deriv Jan 27, 2023
c4aa8f7
fix: change text in frame for creation a new MF account (#7234)
kate-deriv Jan 31, 2023
4540ad2
fix: delete defaultchecked property in order to make component contro…
kate-deriv Jan 31, 2023
2b7f96f
Kate/86838/ add one more available proptype for component DigitDispla…
kate-deriv Jan 31, 2023
fc74351
Merge branch 'develop' of github.com:binary-com/deriv-app into develop
Feb 1, 2023
518a342
Merge branch 'Improvement/72232/Reports_TS_migration' of github.com:m…
aizad-deriv Feb 1, 2023
1efa860
Merge branch 'aizad/73994/progress-slider-ts' of github.com:aizad-der…
aizad-deriv Feb 1, 2023
acc3d69
fix: replace any with TRootStore
aizad-deriv Feb 1, 2023
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
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .github/lighthouse/lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"ci": {
"assert": {
"assertions": {
"categories:performance": ["warn", { "minScore": 0.5 }],
"categories:accessibility": ["warn", { "minScore": 0.5 }],
"categories:best-practices": ["warn", { "minScore": 0.5 }],
"categories:seo": ["warn", { "minScore": 0.5 }],
"categories:pwa": ["warn", { "minScore": 0.5 }]
}
}
}
}
9 changes: 9 additions & 0 deletions .github/workflows/generate_app_id.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
name: Deriv App ID Generator

permissions:
actions: write
checks: write
contents: write
deployments: write
pull-requests: write
statuses: write

on:
issue_comment:
types: [edited]
Expand All @@ -14,6 +22,7 @@ jobs:
uses: binary-com/vercel-preview-url-action@v1.0.5
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
preview_url_regexp: \[Visit Preview\]\((.*?.sx)\)
- name: Generate Deriv App ID for deployment Preview URL
id: generate_app_id
uses: binary-com/deriv-app-id-action@v1
Expand Down
94 changes: 94 additions & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Generate Lighthouse report

permissions:
actions: write
checks: write
contents: write
deployments: write
pull-requests: write
statuses: write

on:
issue_comment:
types: [edited]

jobs:
generate_lighthouse_report:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout to repo
uses: actions/checkout@v3
with:
fetch-depth: 1
ref: master

- name: Add Lighthouse progress comment
id: generate_lighthouse_comment
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
number: ${{github.event.issue.number}}
header: generate_lighthouse_comment
message: "⏳ **Generating Lighthouse report...**"

- name: Capture Vercel preview URL
id: vercel_preview_url
uses: binary-com/vercel-preview-url-action@v1.0.5
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
preview_url_regexp: \[Visit Preview\]\((.*?.sx)\)

- name: Generate Lighthouse report
uses: treosh/lighthouse-ci-action@v9
id: lighthouse_report
with:
temporaryPublicStorage: true
urls: |
${{ steps.vercel_preview_url.outputs.vercel_preview_url }}
uploadArtifacts: true
# configure Lighthouse score assertions in this file
# configPath: .github/lighthouse/lighthouserc.json

- name: Retrieve Lighthouse score
id: lighthouse_score
uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const result = ${{ steps.lighthouse_report.outputs.manifest }}[0].summary
const links = ${{ steps.lighthouse_report.outputs.links }}
const score = res => res >= 90 ? '🟢' : res >= 50 ? '🟧' : '🔺'
const formatResult = (res) => Math.round((res * 100))

Object.keys(result).forEach(key => result[key] = formatResult(result[key]))

const comment = [
`🚨 [Lighthouse report](${Object.values(links)[0]}) for the changes in this PR:`,
'| Category | Score |',
'| --- | --- |',
`| ${score(result.performance)} Performance | ${result.performance} |`,
`| ${score(result.accessibility)} Accessibility | ${result.accessibility} |`,
`| ${score(result['best-practices'])} Best practices | ${result['best-practices']} |`,
`| ${score(result.seo)} SEO | ${result.seo} |`,
`| ${score(result.pwa)} PWA | ${result.pwa} |`,
' ',
`*Lighthouse ran with [${Object.keys(links)[0]}](${Object.keys(links)[0]})*`
].join('\n')
core.setOutput("comment", comment);

- name: Post Lighthouse report
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
header: Lighthouse report
number: ${{github.event.issue.number}}
message: ${{steps.lighthouse_score.outputs.comment}}

- name: Clear Lighthouse progress comment
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
number: ${{github.event.issue.number}}
header: generate_lighthouse_comment
delete: true
8 changes: 8 additions & 0 deletions .github/workflows/push_and_pull_crowdin_translations.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
name: Push and pull Crowdin translations

permissions:
actions: write
checks: write
contents: write
deployments: write
pull-requests: write
statuses: write

on:
workflow_dispatch:
push:
Expand Down
2 changes: 1 addition & 1 deletion default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ server {

charset UTF-8;

error_page 404 /404.html;
error_page 404 /custom404.html;

location @custom_error_503 {
return 503;
Expand Down
2 changes: 1 addition & 1 deletion e2e_tests/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ module.exports = {
},
},
},
transformIgnorePatterns: ['/node_modules/(?!react-virtualized).+\\.js$', '_utils/websocket.js'],
transformIgnorePatterns: ['/node_modules/(?!@enykeev/react-virtualized).+\\.js$', '_utils/websocket.js'],
reporters: ['default', './src/_utils/cli_reporter.js'],
};
2 changes: 1 addition & 1 deletion jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
coverageDirectory: './coverage/',
testRegex: '(/__tests__/.*|(\\.)(test|spec))\\.(js|tsx)?$',
// This is needed to transform es modules imported from node_modules of the target component.
transformIgnorePatterns: ['/node_modules/(?!react-virtualized).+\\.js$'],
transformIgnorePatterns: ['/node_modules/(?!@enykeev/react-virtualized).+\\.js$'],
setupFiles: ['<rootDir>/../../jest.setup.js'],
setupFilesAfterEnv: ['<rootDir>/../../setupTests.js'],
};
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ module.exports = {
'^.+\\.(ts|tsx)?$': 'ts-jest',
},
testRegex: ['__tests__', '.*.spec.js'],
transformIgnorePatterns: ['/node_modules/(?!react-virtualized).+\\.js$'],
transformIgnorePatterns: ['/node_modules/(?!@enykeev/react-virtualized).+\\.js$'],
};
Loading