An easy-to-host PDS on the ATProtocol, iPhone and MacOS. Maintain control of your keys and data, always.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(identity-wallet): wire AlertDetailScreen into page state machine

Add alert_detail step to OnboardingStep type and state machine:
- Add state variables for selectedAlertDid and selectedAlertChanges
- Wire onalert callback in IdentityListHome usage
- Add AlertDetailScreen rendering block in step conditional
- Import UnauthorizedChange and AlertDetailScreen types/components

Verifies: plc-key-management.AC6.4, AC6.5 (integration)

+18 -1
+18 -1
apps/identity-wallet/src/routes/+page.svelte
··· 21 21 import ClaimSuccessScreen from '$lib/components/onboarding/ClaimSuccessScreen.svelte'; 22 22 import DIDDocumentScreen from '$lib/components/home/DIDDocumentScreen.svelte'; 23 23 import RecoveryInfoScreen from '$lib/components/home/RecoveryInfoScreen.svelte'; 24 - import { createAccount, listIdentities, checkIdentityStatus, type CreateAccountError, type OAuthError, type HomeData, type IdentityInfo, type VerifiedClaimOp, type ClaimResult } from '$lib/ipc'; 24 + import AlertDetailScreen from '$lib/components/home/AlertDetailScreen.svelte'; 25 + import { createAccount, listIdentities, checkIdentityStatus, type CreateAccountError, type OAuthError, type HomeData, type IdentityInfo, type VerifiedClaimOp, type ClaimResult, type UnauthorizedChange } from '$lib/ipc'; 25 26 import { normalizePlcDocToW3c } from '$lib/did-doc-utils'; 26 27 import IdentityListHome from '$lib/components/home/IdentityListHome.svelte'; 27 28 ··· 54 55 | 'identity_detail' 55 56 | 'did_document' 56 57 | 'recovery_info' 58 + | 'alert_detail' 57 59 | 'auth_failed' 58 60 | 'identity_input' 59 61 | 'pds_auth' ··· 84 86 let homeData = $state<HomeData | null>(null); 85 87 86 88 let selectedDidDoc = $state<Record<string, unknown> | null>(null); 89 + 90 + let selectedAlertDid = $state<string | null>(null); 91 + let selectedAlertChanges = $state<UnauthorizedChange[]>([]); 87 92 88 93 // ── Navigation helpers ─────────────────────────────────────────────────── 89 94 ··· 328 333 selectedDidDoc = didDoc; 329 334 goTo('identity_detail'); 330 335 }} 336 + onalert={(did, changes) => { 337 + selectedAlertDid = did; 338 + selectedAlertChanges = changes; 339 + goTo('alert_detail'); 340 + }} 331 341 /> 332 342 333 343 {:else if step === 'identity_detail'} ··· 345 355 {:else if step === 'recovery_info'} 346 356 <RecoveryInfoScreen 347 357 share1InKeychain={homeData?.share1InKeychain ?? false} 358 + onback={() => goTo('home')} 359 + /> 360 + 361 + {:else if step === 'alert_detail'} 362 + <AlertDetailScreen 363 + did={selectedAlertDid ?? ''} 364 + changes={selectedAlertChanges} 348 365 onback={() => goTo('home')} 349 366 /> 350 367