From 6200d30a8770511b74468d676ed2770fa635f668 Mon Sep 17 00:00:00 2001 From: Sandeep Date: Tue, 3 Sep 2024 14:59:17 +0800 Subject: [PATCH 1/5] fix: :fire: fixed the footer icon --- src/assets/gray-logo.svg | 13 +++++++++++++ src/components/Footer/index.tsx | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/assets/gray-logo.svg diff --git a/src/assets/gray-logo.svg b/src/assets/gray-logo.svg new file mode 100644 index 000000000..0ae29bacb --- /dev/null +++ b/src/assets/gray-logo.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index b946f10d5..76763e254 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -9,6 +9,8 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import CustomAccordion from '../CustomAccordion'; import styles from './Footer.module.scss'; +import GrayLogo from '../../assets/gray-logo.svg'; + const Footer = () => { const { i18n: { currentLocale }, @@ -91,7 +93,9 @@ const Footer = () => {
- Deriv API Logo +
+ +
From 7711a13615901701cb38982811536bcddb696c3b Mon Sep 17 00:00:00 2001 From: Sandeep Date: Tue, 3 Sep 2024 15:44:37 +0800 Subject: [PATCH 2/5] fix: :fire: added svg mock --- jest.config.js | 1 + src/__mocks__/file.mock.ts | 1 + 2 files changed, 2 insertions(+) create mode 100644 src/__mocks__/file.mock.ts diff --git a/jest.config.js b/jest.config.js index b2e090aaa..c59c23c6d 100644 --- a/jest.config.js +++ b/jest.config.js @@ -33,6 +33,7 @@ module.exports = { '@docusaurus/plugin-content-docs/client': '@docusaurus/plugin-content-docs/src/client/index.ts', '@site/(.*)': '/$1', '\\.(css|scss|sass|less)$': 'identity-obj-proxy', + '\\.(svg)$': '/src/__mocks__/file.mock.ts', }, moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'mjs', 'json'], rootDir: '.', diff --git a/src/__mocks__/file.mock.ts b/src/__mocks__/file.mock.ts new file mode 100644 index 000000000..533beda47 --- /dev/null +++ b/src/__mocks__/file.mock.ts @@ -0,0 +1 @@ +module.exports = 'SVGMock'; From 1a5e24380aa52e60c11c8e787fcc03599d135250 Mon Sep 17 00:00:00 2001 From: shafin-deriv Date: Thu, 5 Sep 2024 11:22:49 +0800 Subject: [PATCH 3/5] chore: fix github action for DR slack notification failure --- .github/workflows/release_production.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_production.yml b/.github/workflows/release_production.yml index 5cf2eb166..be8f93f76 100644 --- a/.github/workflows/release_production.yml +++ b/.github/workflows/release_production.yml @@ -93,8 +93,8 @@ jobs: VERCEL_SCOPE: deriv ALIAS_DOMAIN_URL: 'api-docs-dr.binary.sx' - name: Send Slack Notification - if: always() && ${{ steps.publish_to_vercel.outcome != 'success'}} + if: ${{ steps.publish_to_vercel.outcome != 'success'}} uses: ./.github/actions/notify_slack with: - RELEASE_TYPE: ${{ env.RELEASE_TYPE }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} MESSAGE: "Publish to vercel failed for '${{ env.RELEASE_TYPE }}' release on api.deriv.com with version *'${{ needs.build_and_publish.outputs.RELEASE_VERSION }}" From 66d6043812aced960bcfc14acc377d0c3407edf9 Mon Sep 17 00:00:00 2001 From: shafin-deriv Date: Thu, 5 Sep 2024 12:15:02 +0800 Subject: [PATCH 4/5] chore: revert back condition --- .github/workflows/release_production.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release_production.yml b/.github/workflows/release_production.yml index be8f93f76..0602cf2bf 100644 --- a/.github/workflows/release_production.yml +++ b/.github/workflows/release_production.yml @@ -93,7 +93,7 @@ jobs: VERCEL_SCOPE: deriv ALIAS_DOMAIN_URL: 'api-docs-dr.binary.sx' - name: Send Slack Notification - if: ${{ steps.publish_to_vercel.outcome != 'success'}} + if: always() && ${{ steps.publish_to_vercel.outcome != 'success'}} uses: ./.github/actions/notify_slack with: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From 76c57a6bd403a2b1acb2c516e474a9ee4b9b3294 Mon Sep 17 00:00:00 2001 From: nobody Date: Thu, 5 Sep 2024 06:00:19 +0000 Subject: [PATCH 5/5] JSON Schema Update --- config/v3/proposal/receive.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/v3/proposal/receive.json b/config/v3/proposal/receive.json index 336f90f9d..c38afc530 100644 --- a/config/v3/proposal/receive.json +++ b/config/v3/proposal/receive.json @@ -363,6 +363,18 @@ "type": "integer", "examples": 75 }, + "payout": { + "description": "Contains information for minimum and maximum payout amount for the contract.", + "type": "object", + "additionalProperties": false, + "properties": { + "max": { + "description": "Maximum payout allowed", + "type": "string", + "examples": "1000.00" + } + } + }, "stake": { "description": "Contains information for minimum and maximum stake amount for the contract.", "type": "object",