feat(kyc): add demo KYC profile page with mock data
All checks were successful
Build Docker Image / build (push) Successful in 4m1s

- Always show 'view full profile' button with fallback to demo UUID
- KYC page shows mock data when demo UUID is used
- Add i18n translations for demo page
This commit is contained in:
Ruslan Bakiev
2026-01-27 20:16:30 +07:00
parent 7066c51505
commit 02419abdd1
4 changed files with 100 additions and 7 deletions

View File

@@ -90,9 +90,8 @@
<!-- View Full Profile Button -->
<button
v-if="entity?.kycProfileUuid"
class="btn btn-ghost btn-xs text-primary mt-3 w-full"
@click="emit('open-kyc', entity.kycProfileUuid)"
@click="emit('open-kyc', kycProfileUuid)"
>
<Icon name="lucide:external-link" size="14" />
{{ $t('catalog.info.viewFullKyc') }}
@@ -317,6 +316,12 @@ const kycTeaser = computed(() => {
}
})
// KYC Profile UUID - use real if available, otherwise mock for demo
const MOCK_KYC_UUID = 'demo-kyc-profile'
const kycProfileUuid = computed(() => {
return props.entity?.kycProfileUuid || MOCK_KYC_UUID
})
// Handlers for selecting related items
const onProductSelect = (product: InfoProductItem) => {
emit('select-product', product.uuid)