Skip to content

Commit

Permalink
Merge pull request #128 from likhith-deriv/likhith/shaheer/COJ-506/in…
Browse files Browse the repository at this point in the history
…tegrate-manual-upload-flow

Likhith/shaheer/coj 506/integrate manual upload flow
  • Loading branch information
shaheer-deriv authored Feb 26, 2024
2 parents 3c49222 + 07a3a6d commit 9ab087b
Show file tree
Hide file tree
Showing 532 changed files with 9,398 additions and 5,707 deletions.
15 changes: 11 additions & 4 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
# maryia-deriv
# matin-deriv
# nijil-deriv
# prince-deriv
# sandeep-deriv
# yashim-deriv
# wojciech-deriv

######################################################################################################
#
Expand Down Expand Up @@ -94,9 +94,9 @@
# deriv-app/bot
# ==============================================================

/packages/bot-skeleton/**/* @prince-deriv @sandeep-deriv @vinu-deriv
/packages/bot-web-ui/**/* @prince-deriv @sandeep-deriv @vinu-deriv
/packages/indicators/**/* @prince-deriv @sandeep-deriv @vinu-deriv
/packages/bot-skeleton/**/* @sandeep-deriv @vinu-deriv
/packages/bot-web-ui/**/* @sandeep-deriv @vinu-deriv
/packages/indicators/**/* @sandeep-deriv @vinu-deriv


# ==============================================================
Expand Down Expand Up @@ -155,6 +155,13 @@
/packages/trader/**/* @matin-deriv @maryia-deriv


# ==============================================================
# deriv-app/tradershub
# ==============================================================

/packages/tradershub/**/* @matin-deriv @mahdiyeh-deriv @thisyahlen-deriv


# ==============================================================
# deriv-app/wallets
# ==============================================================
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Download Remote Config Backup File
uses: ./.github/actions/download_remote_config_backup
with:
REMOTE_CONFIG_URL: ${{ env.REMOTE_CONFIG_URL }}
REMOTE_CONFIG_URL: ${{ vars.REMOTE_CONFIG_URL }}
- name: Build
uses: "./.github/actions/build"
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Download Remote Config Backup File
uses: ./.github/actions/download_remote_config_backup
with:
REMOTE_CONFIG_URL: ${{ env.REMOTE_CONFIG_URL }}
REMOTE_CONFIG_URL: ${{ vars.REMOTE_CONFIG_URL }}
- name: Build
uses: "./.github/actions/build"
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_uat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Download Remote Config Backup File
uses: ./.github/actions/download_remote_config_backup
with:
REMOTE_CONFIG_URL: ${{ env.REMOTE_CONFIG_URL }}
REMOTE_CONFIG_URL: ${{ vars.REMOTE_CONFIG_URL }}
- name: Build
uses: "./.github/actions/build"
with:
Expand Down
8 changes: 8 additions & 0 deletions __mocks__/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ jest.mock('@deriv-com/analytics', () => ({
pageView: jest.fn(),
reset: jest.fn(),
setAttributes: jest.fn(),
getFeatureValue: jest.fn(),
getInstances: jest.fn().mockReturnValue({
ab: {
GrowthBook: {
setRenderer: jest.fn(),
},
},
}),
},
}));

Expand Down
227 changes: 111 additions & 116 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/account-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "rimraf dist && npm run test && npm run serve"
},
"dependencies": {
"@deriv-com/ui": "1.8.1",
"@deriv-com/ui": "1.8.8",
"@deriv/api": "^1.0.0",
"@deriv/library": "^1.0.0",
"@deriv/quill-design": "^1.3.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('ManualForm', () => {
it('should render the header texts correctly for the document NIMC slip', () => {
const newProps = { ...mockProps, selectedDocument: MANUAL_DOCUMENT_TYPES.NIMC_SLIP };
renderComponent(newProps);
expect(screen.getByText(/First, enter your NIMC slip number and the expiry date./)).toBeInTheDocument();
expect(screen.getByText(/First, enter your NIMC slip number./)).toBeInTheDocument();
expect(
screen.getByText(/Next, upload the page of your NIMC slip that contains your photo./)
).toBeInTheDocument();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const DocumentSubmission: React.FC = () => {
descriptionSize='2xs'
fileFormats={['image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'application/pdf']}
hoverMessage='Upload your file here'
icon={<StandaloneArrowUpFromBracketBoldIcon fill='#C7E5E5' iconSize='lg' />}
icon={<StandaloneArrowUpFromBracketBoldIcon className='fill-solid-green-2' iconSize='lg' />}
maxSize={8388608}
name='document'
title='Drag and drop a file or click to browse your files.'
Expand Down
4 changes: 0 additions & 4 deletions packages/account-v2/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
@tailwind components;
@tailwind utilities;

@import '@deriv/quill-design/dist/quill-design.css';
@import '@deriv/quill-design/quill-tailwind/styles.css';
@import '@deriv/quill-design/quill-tailwind/fonts.css';

svg {
display: inline;
vertical-align: middle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ export const ManualUploadContainer = ({ selectedDocument, setSelectedDocument }:
formData={formData}
isExpiryDateRequired={isExpiryDateRequired}
onCancel={() => {
console.log('Called on Cancel');
// TODO: Implement manual cancel
setSelectedDocument(null);
}}
onSubmit={values => {
console.log('Called submit');
// TODO: Implement manual submit
setFormData(prev => ({ ...prev, ...values }));
setShouldUploadSelfie(true);
}}
Expand All @@ -76,7 +76,7 @@ export const ManualUploadContainer = ({ selectedDocument, setSelectedDocument }:
country='ng'
isEnabledByDefault
onOnfidoSubmit={() => {
console.log('Called Onfido submit');
// TODO: Implement onfido submit
}}
selectedDocument={selectedDocument as TManualDocumentTypes}
/>
Expand Down
124 changes: 124 additions & 0 deletions packages/account-v2/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,43 @@ export default {
presets: [QuillTailwindConfig],
theme: {
extend: {
borderRadius: {
none: '0',
xs: '4px',
sm: '6px',
default: '8px',
lg: '12px',
xl: '16px',
full: '50%',
},
borderWidth: {
0: '0',
1: '1px',
2: '2px',
3: '3px',
4: '4px',
5: '5px',
6: '6px',
7: '7px',
8: '8px',
9: '9px',
10: '10px',
},
fontSize: {
'2xs': '8px',
xs: '10px',
sm: '12px',
default: '14px',
lg: '16px',
xl: '18px',
'2xl': '20px',
'3xl': '22px',
'4xl': '24px',
'5xl': '26px',
'6xl': '28px',
'7xl': '30px',
'8xl': '32px',
},
colors: {
solid: {
grey: {
Expand All @@ -25,8 +62,95 @@ export default {
},
green: {
'1': '#4bb4b3',
'2': '#C7E5E5',
},
},
status: {
dark: {
danger: '#cc2e3d',
general: '#ffffff',
information: '#377cfc',
success: '#00a79e',
warning: '#ffad3a',
},
light: {
danger: '#ec3f3f',
information: '#377cfc',
success: '#4bb4b3',
warning: '#ffad3a',
},
},
system: {
dark: {
'active-background': '#323738',
'disabled-text': '#3e3e3e',
'general-text': '#c2c2c2',
'hover-background': '#242828',
'less-prominent': '#6e6e6e',
'less-prominent-text': '#6e6e6e',
'primary-background': '#0e0e0e',
'prominent-text': '#ffffff',
'secondary-background': '#151717',
'text-info-blue-background': '#182130',
},
light: {
'active-background': '#d6dadb',
'disabled-text': '#d6d6d6',
'general-text': '#333333',
'hover-background': '#e6e9e9',
'less-prominent': '#999999',
'less-prominent-text': '#999999',
'primary-background': '#ffffff',
'prominent-text': '#333333',
'secondary-background': '#f2f3f4',
'text-info-blue-background': '#dfeaff',
},
},
},
screens: {
sm: { max: '600px' },
md: { min: '601px' },
lg: { min: '1280px' },
xl: { min: '1440px' },
},
spacing: {
0: '0px',
1: '1px',
2: '2px',
3: '3px',
4: '4px',
5: '5px',
6: '6px',
7: '7px',
8: '8px',
9: '9px',
10: '10px',
11: '11px',
12: '12px',
14: '14px',
16: '16px',
18: '18px',
20: '20px',
22: '22px',
24: '24px',
26: '26px',
28: '28px',
30: '30px',
32: '32px',
34: '34px',
36: '36px',
38: '38px',
40: '40px',
42: '42px',
44: '44px',
46: '46px',
48: '48px',
50: '50px',
52: '52px',
54: '54px',
56: '56px',
58: '58px',
60: '60px',
},
},
},
Expand Down
Loading

0 comments on commit 9ab087b

Please sign in to comment.