Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

[CRO] MyAffiliate signup form #5923

Closed
wants to merge 80 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
0cd7dbb
feat: cellxpert registration form
NikitK-deriv Jul 13, 2023
6a8fd65
chore: console.log for residence_list debug
NikitK-deriv Jul 13, 2023
ecb0d3a
fix: send ws
NikitK-deriv Jul 13, 2023
891264b
fix: add file instead of ws connection
NikitK-deriv Jul 13, 2023
1d5a3f1
fix: add file instead of ws connection
NikitK-deriv Jul 13, 2023
c61e13c
fix: placement of residence_list
NikitK-deriv Jul 13, 2023
3d7486e
fix: residence_list issue import in vercel
NikitK-deriv Jul 14, 2023
51ca54b
refactor: cosmetic job
NikitK-deriv Jul 24, 2023
c43970c
chore: change disable for sign up
NikitK-deriv Jul 24, 2023
02e07a9
chore: validation job
NikitK-deriv Jul 24, 2023
dd569e6
feat: dinamyc prefix
NikitK-deriv Jul 25, 2023
d9cb040
feat: username + modals
NikitK-deriv Jul 25, 2023
cf28518
refactor: username
NikitK-deriv Jul 27, 2023
5aca407
chore: make second type unclickable
NikitK-deriv Jul 27, 2023
ba0f252
chore: add correct link
NikitK-deriv Jul 27, 2023
d082287
feat: add connection between frontend and backedn
NikitK-deriv Sep 12, 2023
15bb4d0
refactor: code-splitting part 1
NikitK-deriv Sep 12, 2023
5f333a9
chore: add suspense and make project work with dependencies
NikitK-deriv Sep 12, 2023
d2bb168
refactor: wizard
NikitK-deriv Sep 13, 2023
c691418
chore: merge with latest master
NikitK-deriv Sep 13, 2023
532b1f6
feat: add correct account plan and type
NikitK-deriv Sep 13, 2023
edaa20a
refactor: replace local store of residence_list
NikitK-deriv Sep 13, 2023
67e86ce
fix: type of account
NikitK-deriv Sep 14, 2023
3681b25
Merge branch 'master' into cellxpert-continue
NikitK-deriv Sep 14, 2023
64bb1d0
chore: merge with latest master
NikitK-deriv Sep 14, 2023
4038c98
fix: issue with suspense
NikitK-deriv Sep 14, 2023
59973a9
fix: resolve vercel issue
NikitK-deriv Sep 14, 2023
e557a18
refactor: change validation and add types
NikitK-deriv Sep 15, 2023
b07a0aa
fix: ui, logic and validation fix
NikitK-deriv Sep 18, 2023
3a9ade1
feat: add tracking feature
NikitK-deriv Sep 18, 2023
a507ad5
fix: dependencies
NikitK-deriv Sep 18, 2023
b8f9336
fix: navbar call ws connection
NikitK-deriv Sep 18, 2023
46727cf
chore: move navigation to layout
NikitK-deriv Sep 18, 2023
0a5791c
chore: cleanup
NikitK-deriv Sep 18, 2023
cfc2fec
refactor: cleanup
NikitK-deriv Sep 21, 2023
3a7aa95
refactor: move repeatable input props
NikitK-deriv Sep 21, 2023
e831f6a
chore: merge with latest master
NikitK-deriv Sep 21, 2023
e8a3228
chore: remove recaptcha and update dependencies
NikitK-deriv Sep 21, 2023
71b97c3
chore: update name of api call
NikitK-deriv Sep 21, 2023
8b1bbf3
chore: resolve comments
NikitK-deriv Sep 22, 2023
971e444
chore: add types to ws send callback
NikitK-deriv Sep 25, 2023
ec571b2
refactor: ts errors and some fixes
NikitK-deriv Sep 27, 2023
f4ea34a
chore: merge with latest master
NikitK-deriv Sep 27, 2023
6f79576
fix: terms of use and types text
NikitK-deriv Sep 28, 2023
f0c7113
refactor: add loader on submit, cleanup
NikitK-deriv Sep 29, 2023
2999441
refactor: resolve issues with state names, redirection and spells
NikitK-deriv Oct 2, 2023
ff45d77
chore: merge with latest master
NikitK-deriv Oct 5, 2023
d077e7a
feat: add validatio for empty spaces
NikitK-deriv Oct 5, 2023
1b1a7b6
chore: make regex for company name
NikitK-deriv Oct 17, 2023
01b2733
fix: phone input
NikitK-deriv Oct 17, 2023
e633da0
chore: make regex for company name
NikitK-deriv Oct 17, 2023
128fe6e
fix: insupported charackers
NikitK-deriv Oct 17, 2023
0997ba0
feat: add extra regex for username
NikitK-deriv Oct 17, 2023
ae94edf
fix: disable insupported character
NikitK-deriv Oct 17, 2023
61ced3e
feat: add tracking with local implementation of package
NikitK-deriv Oct 18, 2023
0eea6d6
Merge branch 'master' into cellxpert-continue
NikitK-deriv Oct 19, 2023
76b1129
refactor: use package from npm
NikitK-deriv Oct 19, 2023
af54cd1
refactor: repsonsive design
NikitK-deriv Oct 26, 2023
1b59bae
refactor: new UI
NikitK-deriv Nov 10, 2023
fa2db23
chore: resvole merge conflicts
NikitK-deriv Nov 10, 2023
5d4f058
refactor: finish refactoring, add events actions with new package
NikitK-deriv Nov 11, 2023
90723bd
fix: change nav to layout to reach ws connection
NikitK-deriv Nov 11, 2023
1e89843
fix: layout background color
NikitK-deriv Nov 11, 2023
1373c26
fix: some minor changes from department
NikitK-deriv Nov 13, 2023
3641136
fix: some minor changes from department
NikitK-deriv Nov 13, 2023
d553b49
refactor: ui update and refactor wizard set approach
NikitK-deriv Nov 17, 2023
5c90e43
refactor: tracking and minor changes
NikitK-deriv Nov 17, 2023
009c8d5
refactor: file names and implement some minor fixes
NikitK-deriv Nov 21, 2023
a28d98a
fix: modal view
NikitK-deriv Nov 21, 2023
3191873
chore: resolve merge conflicts
NikitK-deriv Nov 21, 2023
e3a5336
chore: resolve deployment issue
NikitK-deriv Nov 21, 2023
dee235b
fix: deployment issue
NikitK-deriv Nov 22, 2023
eda331c
fix: wizard for mobile
NikitK-deriv Nov 23, 2023
5fca77e
fix: wizard ui, sroll and api call
NikitK-deriv Nov 23, 2023
5c97ee5
fix: misspell
NikitK-deriv Nov 23, 2023
5b7ac77
fix: trying to fix inputs placement in real mobile device
NikitK-deriv Nov 23, 2023
dd65f10
fix: fatf, ui and tracking fixes
NikitK-deriv Nov 29, 2023
7809b07
chore: merge with latest master
NikitK-deriv Nov 30, 2023
43c0670
chore: update the package
NikitK-deriv Nov 30, 2023
e84a4fe
chore: add react-date-picker
NikitK-deriv Nov 30, 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
94 changes: 94 additions & 0 deletions crowdin/messages.json

Large diffs are not rendered by default.

153 changes: 149 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"@artsy/fresnel": "^6.1.0",
"@builder.io/partytown": "^0.8.1",
"@deriv/analytics": "^1.3.4",
"@deriv/analytics": "^1.4.4",
"@deriv/deriv-api": "^1.0.11",
"@hookform/resolvers": "^3.0.1",
"@livechat/customer-sdk": "^3.1.0",
Expand Down Expand Up @@ -57,6 +57,7 @@
"prompt-sync": "^4.2.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-date-picker": "8.4.0",
"react-device-detect": "^2.2.2",
"react-dom": "^18.2.0",
"react-hook-form": "^7.43.9",
Expand Down
4 changes: 2 additions & 2 deletions src/components/custom/signup.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { useState } from 'react'
import { graphql, useStaticQuery, navigate } from 'gatsby'
import { graphql, navigate, useStaticQuery } from 'gatsby'
import styled from 'styled-components'
import Cookies from 'js-cookie'
import { getLanguage } from '../../common/utility'
import { getCookiesObject, getCookiesFields, getDataObjFromCookies } from 'common/cookies'
import { getCookiesFields, getCookiesObject, getDataObjFromCookies } from 'common/cookies'
import { Flex } from 'components/containers'
import Login, { TSocialProvider } from 'common/login'
import validation from 'common/validation'
Expand Down
4 changes: 4 additions & 0 deletions src/components/elements/dropdown-search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ const DropdownSearch = ({
}
}, [selected_item])

useEffect(() => {
setDropdownItems([...items])
}, [items])

const handleInputChange = (e) => {
setInputValue(e.target.value)
toggleListVisibility(e)
Expand Down
3 changes: 1 addition & 2 deletions src/components/elements/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ const UnorderedList = styled.ul<DropdownStyledProps>`
position: absolute;
left: 0;
top: 0.8rem;
border-radius: 4px;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.16);
transition: opacity 0.1s cubic-bezier(0, 0, 0.38, 0.9),
max-height 0.25s cubic-bezier(0, 0, 0.38, 0.9);
Expand Down Expand Up @@ -313,7 +312,7 @@ export const StyledLabel = styled.label<DropdownStyledProps>`
color: var(--color-green);
transform: translate(-0.6rem, -2.2rem) scale(0.7);
@media ${device.tabletL} {
top: 9px;
top: 15px;
}
`
}}
Expand Down
20 changes: 10 additions & 10 deletions src/components/form/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface ReactInput extends React.ComponentPropsWithoutRef<'input'> {
) => void
}

type InputProps = ReactInput & InputWrapperProps & StyledInputProps & StyledLabelProps
export type InputProps = ReactInput & InputWrapperProps & StyledInputProps & StyledLabelProps

type InputWrapperProps = {
border?: string
Expand Down Expand Up @@ -53,10 +53,10 @@ type StyledLabelProps = {
htmlFor?: string
}

const RelativeWrapper = styled.div`
export const RelativeWrapper = styled.div`
position: relative;
`
const InputWrapper = styled.div<InputWrapperProps>`
export const InputWrapper = styled.div<InputWrapperProps>`
/* prettier-ignore */
width: 100%;
border: ${(props) => props.border || '1px solid var(--color-grey-2)'};
Expand Down Expand Up @@ -96,7 +96,7 @@ const InputWrapper = styled.div<InputWrapperProps>`
`}
`

const StyledError = styled.img`
export const StyledError = styled.img`
position: absolute;
right: 0.8rem;
top: 1.2rem;
Expand All @@ -112,7 +112,7 @@ const StyledError = styled.img`
}
`

const StyledInput = styled.input<StyledInputProps>`
export const StyledInput = styled.input<StyledInputProps>`
color: ${({ inputColor }) =>
inputColor ? `var(--color-${inputColor})` : 'var(--color-black)'};
font-size: var(--text-size-s);
Expand All @@ -130,7 +130,7 @@ const StyledInput = styled.input<StyledInputProps>`

& ~ label {
font-size: 1.75rem;
top: 1.95rem;
top: 15px;
}
}
@media ${device.mobileL} {
Expand All @@ -154,7 +154,7 @@ const StyledInput = styled.input<StyledInputProps>`
background-color: ${({ background }) =>
background ? `var(--color-${background})` : 'var(--color-grey-1)'};

@media ${device.mobileL} {
@media ${device.tablet} {
transform: translate(-0.6rem, -20px) scale(0.7);
}
}
Expand All @@ -179,21 +179,21 @@ const StyledInput = styled.input<StyledInputProps>`
background ? `var(--color-${background})` : 'var(--color-grey-1)'};

@media ${device.tabletL} {
top: 9px;
top: 15px;
}
}
`}
}
`

const ErrorMessages = styled(Text)`
export const ErrorMessages = styled(Text)`
padding: 6px;
font-size: 1.2rem;
min-height: 16px;
color: var(--color-red-1);
`

const StyledLabel = styled.label<StyledLabelProps>`
export const StyledLabel = styled.label<StyledLabelProps>`
color: ${({ label_color }) =>
label_color ? `var(--color-${label_color})` : 'var(--color-grey)'};
font-size: var(--text-size-xs);
Expand Down
2 changes: 2 additions & 0 deletions src/components/layout/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import BugBountyNav from 'features/components/templates/navigation/bug-bounty-na
import CareerNav from 'features/components/templates/navigation/career-nav'
import MarketNav from 'features/components/templates/navigation/market-nav'
import PpcProvider from 'features/contexts/ppc-campaign/ppc.provider'
import AffiliateNav from 'features/components/templates/navigation/affiliates'
import BannerAlert from 'components/custom/_banner-alert'
import { bannerTypes } from 'common/constants'

Expand Down Expand Up @@ -80,6 +81,7 @@ const Navs = {
careers: <CareerNav />,

'payment-methods': <MainNav />,
affiliates: <AffiliateNav />,
}

const Layout = ({
Expand Down
Loading
Loading