Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
c68772d
Merge pull request #901 from topcoder-platform/hotfix_update-skill-se…
vas3a Aug 15, 2023
f5df4e1
Merge pull request #903 from topcoder-platform/dev
jmgasper Aug 18, 2023
be1000a
HOTFIX - Force RESTRICT_TALENT_SEARCH to false because it somehow got…
jmgasper Aug 18, 2023
8f3387a
Merge pull request #904 from topcoder-platform/justin_fixes
jmgasper Aug 18, 2023
ab699ae
Merge pull request #906 from topcoder-platform/dev
jmgasper Aug 29, 2023
c43b7b0
Merge pull request #910 from topcoder-platform/dev
jmgasper Sep 6, 2023
26f84e5
Merge pull request #912 from topcoder-platform/dev
jmgasper Sep 18, 2023
d0becff
Merge pull request #918 from topcoder-platform/MP-355_profile-updates
kkartunov Sep 25, 2023
7e91607
Merge pull request #920 from topcoder-platform/MP-355_profile-updates
kkartunov Sep 27, 2023
aa85b61
Merge pull request #922 from topcoder-platform/dev
jmgasper Oct 4, 2023
5439ea7
Revert "Revert "Merge pull request #916 from topcoder-platform/TAL-84…
vas3a Oct 5, 2023
079bce4
TSJR-111 implement skills category UI
kkartunov Oct 11, 2023
8e5b918
ci: on dev
kkartunov Oct 11, 2023
138f279
TSJR-111 responsive skills UI
kkartunov Oct 12, 2023
f587205
TSJR-111 clean up talent-search view
kkartunov Oct 12, 2023
5ed2ac6
Merge branch 'TSJR-14_update-skill-selector-standardized-skills' into…
vas3a Oct 12, 2023
bba03bc
update circleci
vas3a Oct 12, 2023
3ed5bf2
Merge branch 'dev' into TSJR-111
kkartunov Oct 16, 2023
2e23333
TSJR-111 add new skills model & clean uplegacy
kkartunov Oct 16, 2023
71d7676
TSJR-111 clen up EMSIskill definitions
kkartunov Oct 16, 2023
c887e34
TSJR-111 move skill components to shared
kkartunov Oct 16, 2023
3c21eb5
Merge branch 'feature/standardized-skills' into TSJR-111
kkartunov Oct 16, 2023
040ce2b
Resolve merge conflicts 2
kkartunov Oct 16, 2023
4226cca
feat: update dice connection api
eisbilir Oct 16, 2023
a617ee8
Update search handler types for talent-serach app
vas3a Oct 16, 2023
9d3106e
Merge pull request #927 from topcoder-platform/TSJR-111
kkartunov Oct 17, 2023
1410318
TSJR-14 - update api endpoints for skills
vas3a Oct 17, 2023
3baa835
Fix popular skill IDs for new database
jmgasper Oct 17, 2023
82e4c11
Merge pull request #929 from topcoder-platform/fix_popular_skill_ids
vas3a Oct 17, 2023
1a8cb24
TSJR-14 - update calls to standardized skills api to send correct pay…
vas3a Oct 17, 2023
84a2d1b
Merge pull request #928 from topcoder-platform/TSJR-14_standardized-s…
vas3a Oct 17, 2023
519ed3f
Update to use non-deleted IDs
jmgasper Oct 17, 2023
36b790f
Fix names
jmgasper Oct 17, 2023
7e1250c
Merge pull request #930 from topcoder-platform/fix_popular_skill_ids
jmgasper Oct 17, 2023
bc11f31
TSJR-159rbetter mobile responsive
kkartunov Oct 18, 2023
126d369
TSJR-158 better collapse skills UI
kkartunov Oct 18, 2023
4b72b46
TSJR-111 updates
kkartunov Oct 19, 2023
43010b9
TSJR-169 columns layout
kkartunov Oct 20, 2023
c9a8d4a
remove react-responsive-masonry lib as not used
kkartunov Oct 20, 2023
bac25fc
Merge pull request #931 from topcoder-platform/TSJR-111-skills-UI-upd…
kkartunov Oct 20, 2023
f711889
Merge pull request #932 from topcoder-platform/dev
jmgasper Oct 25, 2023
7ffe3bc
Removing parantheses from skill names (TSJR-192)
jmgasper Oct 26, 2023
24a9635
allow to disable dice, remove verification step
eisbilir Oct 26, 2023
81f455c
ci: deploy to dev
eisbilir Oct 26, 2023
3f610f7
update credential offer step
eisbilir Oct 26, 2023
530617e
fix image class
eisbilir Oct 26, 2023
7f96684
fix image class
eisbilir Oct 27, 2023
98c013c
Merge pull request #934 from topcoder-platform/PROD-4406_new-dice
eisbilir Oct 30, 2023
682844d
Update Apple Store link
eisbilir Oct 30, 2023
8d67cc9
Revert "Prod 4406 new dice -> dev"
eisbilir Oct 30, 2023
bddc0c2
Merge pull request #935 from topcoder-platform/revert-934-PROD-4406_n…
eisbilir Oct 30, 2023
ebf0f7f
Merge pull request #936 from topcoder-platform/feature/standardized-s…
vas3a Nov 8, 2023
0527499
Revert "Revert "Prod 4406 new dice -> dev""
eisbilir Nov 10, 2023
dab18bf
Merge pull request #937 from topcoder-platform/revert-935-revert-934-…
eisbilir Nov 10, 2023
8c08928
Merge branch 'master' into dev
eisbilir Nov 10, 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
4 changes: 1 addition & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,13 @@ workflows:
ignore:
- master
- qa
- profiles-app

- build-qa:
context: org-global
filters:
branches:
only:
- qa
- profiles-app

- build-prod:
context: org-global
Expand All @@ -261,7 +259,7 @@ workflows:
- dev
- justin_fixes
- talent_search_fixes
- PROD-4398_integrate-userflow-remove-sprig
- feature/standardized-skills

- deployQa:
context: org-global
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,9 @@
}
}
]
},
"volta": {
"node": "16.15.0",
"yarn": "1.22.19"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/apps/accounts/src/lib/assets/security/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { ReactComponent as MFAImage } from './mfa.svg'
import { ReactComponent as AppleStore } from './apple-store.svg'
import { ReactComponent as UnSuccessfullDiceVerificationIcon } from './unsuccessful.svg'
import credentialImage from './credential.png'
import diceIdLogo from './dicelogo.png'
import diceIdLogoBig from './dicelogobig.png'
import diceIdLogoSmall from './dicelogosmall.png'
import googlePlay from './google-play.png'

export {
AppleStore,
credentialImage,
diceIdLogo,
diceIdLogoBig,
diceIdLogoSmall,
googlePlay,
MFAImage,
UnSuccessfullDiceVerificationIcon,
}
46 changes: 29 additions & 17 deletions src/apps/accounts/src/settings/tabs/account/security/Security.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Dispatch, FC, SetStateAction, useEffect, useState } from 'react'
import { toast } from 'react-toastify'
import { KeyedMutator } from 'swr'
import { noop } from 'lodash'

import { Button, Collapsible, FormToggleSwitch, IconSolid, Tooltip } from '~/libs/ui'
import { Button, Collapsible, FormToggleSwitch } from '~/libs/ui'
import { diceIdLogo, MFAImage, SettingSection, triggerSurvey } from '~/apps/accounts/src/lib'
import { MemberMFAStatus, updateMemberMFAStatusAsync, useMemberMFAStatus, UserProfile } from '~/libs/core'

Expand All @@ -23,10 +22,12 @@ const Security: FC<SecurityProps> = (props: SecurityProps) => {
} = useMemberMFAStatus(props.profile.userId)

const [mfaEnabled, setMFAEnabled]: [boolean, Dispatch<SetStateAction<boolean>>] = useState(false)
const [diceEnabled, setDiceEnabled]: [boolean, Dispatch<SetStateAction<boolean>>] = useState(false)

useEffect(() => {
if (mfaStatusData) {
setMFAEnabled(mfaStatusData.mfaEnabled)
setDiceEnabled(mfaStatusData.diceEnabled)
}
}, [mfaStatusData])

Expand All @@ -36,8 +37,9 @@ const Security: FC<SecurityProps> = (props: SecurityProps) => {
mfaEnabled: !mfaEnabled,
},
})
.then(() => {
setMFAEnabled(!mfaEnabled)
.then(response => {
setMFAEnabled(response.result.content.mfaEnabled)
setDiceEnabled(response.result.content.diceEnabled)
toast.success('Your Multi Factor Authentication (MFA) status was updated.')
triggerSurvey()
})
Expand All @@ -46,6 +48,27 @@ const Security: FC<SecurityProps> = (props: SecurityProps) => {
})
}

function handleUserDiceChange(): void {
if (!diceEnabled) {
return
}

updateMemberMFAStatusAsync(props.profile.userId, {
param: {
diceEnabled: !diceEnabled,
},
})
.then(response => {
setMFAEnabled(response.result.content.mfaEnabled)
setDiceEnabled(response.result.content.diceEnabled)
toast.success('Your DICE credential was disabled.')
triggerSurvey()
})
.catch(() => {
toast.error('Something went wrong. Please try again later.')
})
}

function handleDiceModalStatus(): void {
setSetupDiceModalOpen(!setupDiceModalOpen)
}
Expand All @@ -70,7 +93,6 @@ const Security: FC<SecurityProps> = (props: SecurityProps) => {
name='mfaStatus'
onChange={handleUserMFAChange}
value={mfaEnabled}
disabled={mfaStatusData?.diceEnabled}
/>
)}
/>
Expand All @@ -86,12 +108,11 @@ const Security: FC<SecurityProps> = (props: SecurityProps) => {
actionElement={(
<div className={styles.diceBtnWrap}>
{
mfaStatusData?.diceEnabled ? (
diceEnabled ? (
<FormToggleSwitch
name='diceEnabled'
onChange={noop}
onChange={handleUserDiceChange}
value={mfaStatusData?.diceEnabled as boolean}
disabled={mfaStatusData?.diceEnabled}
/>
) : (
<Button
Expand All @@ -104,15 +125,6 @@ const Security: FC<SecurityProps> = (props: SecurityProps) => {
/>
)
}
{
mfaStatusData?.diceEnabled && (
<Tooltip
content='Please reach out to support@topcoder.com for deactivating Dice ID.'
>
<IconSolid.InformationCircleIcon />
</Tooltip>
)
}
</div>
)}
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { FC, useEffect } from 'react'

import { DiceConnectionStatus, useDiceIdConnection } from '~/libs/core'

interface ConnectionHandlerProps {
onChange: (newStatus: DiceConnectionStatus) => void;
userId: number;
}

export const ConnectionHandler: FC<ConnectionHandlerProps> = (
props: ConnectionHandlerProps,
) => {
const diceConnection: DiceConnectionStatus | undefined = useDiceIdConnection(props.userId)

useEffect(() => {
if (diceConnection) {
props.onChange(diceConnection)
}
}, [diceConnection, props])

return (
<></>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
margin: auto;
}

.credentialImage {
height: 280px;
width: 400px;
align-self: center;
}

.diceBigLogo {
margin: $sp-4 0;
}
Expand Down
Loading