Skip to content

Commit 32b6fbd

Browse files
committed
remove dentity
1 parent 42e54f4 commit 32b6fbd

32 files changed

+80
-2209
lines changed

e2e/specs/stateless/verifications.spec.ts

Lines changed: 0 additions & 873 deletions
This file was deleted.

public/locales/en/transactionFlow.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,8 @@
413413
"list": {
414414
"title": "Verify your profile",
415415
"message": " You can verify profile information and add proofs of personhood. Verified records will be marked on your profile with a blue check.",
416-
"added": "Added"
417-
},
418-
"dentity": {
419-
"title": "Dentity verification",
420-
"description": "Proceed to Dentity to verify your profile. You’ll need to provide proof of ownership for the records you want to verify. Dentity does not share any private information with ENS.",
421-
"helper": "Your verification will not be complete until you have returned to ENS and updated your records. This will require a transaction.",
422-
"remove": "Remove Dentity from profile",
423-
"link": "Go to Dentity"
416+
"added": "Added",
417+
"noOptions": "No verification providers are currently available."
424418
}
425419
}
426420
},

public/locales/es/transactionFlow.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -404,14 +404,8 @@
404404
"list": {
405405
"title": "Verificar tu perfil",
406406
"message": " Puedes verificar la información de tu perfil y agregar pruebas de identidad. Los registros verificados aparecerán en tu perfil con un check azul.",
407-
"added": "Agregado"
408-
},
409-
"dentity": {
410-
"title": "Verificación Dentity",
411-
"description": "Ve a Dentity para verificar tu perfil. Deberás demostrar propiedad de los registros que desees verificar. Dentity no comparte ninguna información privada con ENS.",
412-
"helper": "Tu verificación no estará completa hasta que regreses a ENS y actualices tus registros. Esto requerirá una transacción.",
413-
"remove": "Eliminar Dentity de tu perfil",
414-
"link": "Ir a Dentity"
407+
"added": "Agregado",
408+
"noOptions": "No hay proveedores de verificación disponibles actualmente."
415409
}
416410
}
417411
},

public/locales/zh/transactionFlow.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -404,14 +404,8 @@
404404
"list": {
405405
"title": "验证您的个人资料",
406406
"message": "您可以验证个人资料信息并添加身份证明。已验证的记录将在您的个人资料中标有蓝色对勾。",
407-
"added": "已添加"
408-
},
409-
"dentity": {
410-
"title": "Dentity 验证",
411-
"description": "前往 Dentity 验证您的个人资料。您需要提供要验证的记录的所有权证明。Dentity 不会与 ENS 共享任何私人信息。",
412-
"helper": "在您返回 ENS 并更新记录之前,验证不会完成。这需要一次交易。",
413-
"remove": "从个人资料中移除 Dentity",
414-
"link": "前往 Dentity"
407+
"added": "已添加",
408+
"noOptions": "目前没有可用的验证提供商。"
415409
}
416410
}
417411
},

src/assets/Dentity.svg

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/assets/verification/Dentity.svg

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
import dynamic from 'next/dynamic'
2-
31
import { VerificationProtocol } from '../../transaction-flow/input/VerifyProfile/VerifyProfile-flow'
42

5-
export const verificationIconTypes: {
6-
[key in VerificationProtocol]: any
7-
} = {
8-
dentity: dynamic(() => import('./Dentity.svg')),
9-
}
3+
// Map of verification protocol icons.
4+
// Currently empty as no verification providers are configured.
5+
// The infrastructure is designed to support multiple identity providers in the future.
6+
export const verificationIconTypes: Record<string, any> = {}
107

118
export const DynamicVerificationIcon = ({ name }: { name: VerificationProtocol }) => {
129
if (name in verificationIconTypes) {
1310
const Icon = verificationIconTypes[name]
14-
return <Icon width={20} height={20} />
11+
if (Icon) {
12+
return <Icon width={20} height={20} />
13+
}
1514
}
1615
return null
1716
}
Lines changed: 6 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,11 @@
1-
import { useTranslation } from 'react-i18next'
2-
import styled, { css } from 'styled-components'
3-
import { match } from 'ts-pattern'
4-
5-
import { Colors, OutlinkSVG, Typography } from '@ensdomains/thorin'
6-
7-
import DentitySVG from '@app/assets/verification/Dentity.svg'
81
import { VerificationProtocol } from '@app/transaction-flow/input/VerifyProfile/VerifyProfile-flow'
92

103
type Props = { verifiers?: VerificationProtocol[] }
114

12-
const Container = styled.div<{ $color: Colors }>(
13-
({ theme, $color }) => css`
14-
display: flex;
15-
align-items: center;
16-
width: 100%;
17-
gap: ${theme.space['1']};
18-
19-
svg {
20-
width: ${theme.space['5']};
21-
height: ${theme.space['5']};
22-
display: block;
23-
}
24-
25-
${$color && `color: ${theme.colors[$color]};`}
26-
`,
27-
)
28-
29-
const Content = styled.div(
30-
({ theme }) => css`
31-
display: flex;
32-
align-items: center;
33-
gap: ${theme.space['1']};
34-
white-space: nowrap;
35-
36-
svg {
37-
width: ${theme.space['3']};
38-
height: ${theme.space['3']};
39-
display: block;
40-
}
41-
`,
42-
)
43-
44-
export const VerificationBadgeAccountTooltipContent = ({ verifiers }: Props) => {
45-
const { t } = useTranslation('common')
46-
const verifier = verifiers?.[0]
47-
return match(verifier)
48-
.with('dentity', () => (
49-
<Container as="a" href="https://dentity.com" target="_blank" $color="accent">
50-
<DentitySVG />
51-
<Content>
52-
<Typography fontVariant="bodyBold" color="inherit">
53-
{t('verification.verifiedBy', { issuer: 'Dentity' })}
54-
</Typography>
55-
<OutlinkSVG />
56-
</Content>
57-
</Container>
58-
))
59-
.otherwise(() => null)
5+
// Displays tooltip content for a verification badge showing the issuer.
6+
// Currently returns null as no verification providers are configured.
7+
// The infrastructure is designed to support multiple identity providers in the future.
8+
export const VerificationBadgeAccountTooltipContent = ({ verifiers: _verifiers }: Props) => {
9+
// No verification providers are currently configured
10+
return null
6011
}

src/components/pages/VerificationErrorDialog.tsx

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/constants/verification.ts

Lines changed: 3 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,11 @@
1-
import { match } from 'ts-pattern'
2-
3-
import { getNetworkFromUrl } from '@app/constants/chains'
41
import type { VerificationProtocol } from '@app/transaction-flow/input/VerifyProfile/VerifyProfile-flow'
52

63
/**
74
* General Verification Constants
85
*/
96

10-
const VERIFICATION_ENV_CONFIGS = {
11-
staging: {
12-
authWorkerBaseUrl: 'https://auth-worker-staging.ens-cf.workers.dev/v1',
13-
},
14-
production: {
15-
authWorkerBaseUrl: 'https://auth-worker.ens-cf.workers.dev/v1',
16-
},
17-
} as const
18-
19-
type VerificationEnv = keyof typeof VERIFICATION_ENV_CONFIGS
20-
21-
const VERIFICATION_ENV: VerificationEnv = 'production'
22-
237
export const VERIFICATION_RECORD_KEY = 'verifications'
248

25-
export const VERIFICATION_PROTOCOLS: VerificationProtocol[] = ['dentity']
26-
27-
export const VERIFICATION_OAUTH_BASE_URL =
28-
VERIFICATION_ENV_CONFIGS[VERIFICATION_ENV].authWorkerBaseUrl
29-
30-
/**
31-
* Dentity Constants
32-
*/
33-
34-
const DENTITY_ENV_CONFIGS = {
35-
dev: {
36-
iss: 'https://oidc.dev.dentity.com',
37-
clientId: 'afl0TofdrB4B1YrEcDwNA',
38-
endpoint: 'https://oidc.dev.dentity.com',
39-
redirectUri: 'http://localhost:3000',
40-
},
41-
staging: {
42-
iss: 'https://oidc.staging.dentity.com',
43-
clientId: '-IG5wkHyetFAeDziNUkdu',
44-
endpoint: 'https://oidc.staging.dentity.com',
45-
redirectUri: 'https://dentity-integration.ens-app-v3.pages.dev',
46-
},
47-
production: {
48-
iss: 'https://oidc.dentity.com',
49-
clientId: 'TWUfWhM_hs5osk9cR4adK',
50-
endpoint: 'https://oidc.dentity.com',
51-
redirectUri: 'https://app.ens.domains',
52-
},
53-
} as const
54-
55-
type DentityEnvironment = keyof typeof DENTITY_ENV_CONFIGS
56-
57-
const DENTITY_ENV: DentityEnvironment = match(getNetworkFromUrl())
58-
.with('mainnet', () => 'production' as const)
59-
.with('sepolia', () => 'staging' as const)
60-
.otherwise(() => 'dev' as const)
61-
62-
export const DENTITY_BASE_ENDPOINT = DENTITY_ENV_CONFIGS[DENTITY_ENV].endpoint
63-
64-
export const DENTITY_CLIENT_ID = DENTITY_ENV_CONFIGS[DENTITY_ENV].clientId
65-
66-
export const DENTITY_ISS = DENTITY_ENV_CONFIGS[DENTITY_ENV].iss
67-
68-
export const DENTITY_REDIRECT_URI = DENTITY_ENV_CONFIGS[DENTITY_ENV].redirectUri
9+
// Available verification protocols - currently empty, but the infrastructure
10+
// is designed to support multiple identity providers in the future
11+
export const VERIFICATION_PROTOCOLS: VerificationProtocol[] = []

0 commit comments

Comments
 (0)