NORY-47: add identity actions to identity details page

This commit is contained in:
Markus Thielker 2025-01-02 00:45:42 +01:00
parent ced4fb6513
commit 6edf6ee1b3
No known key found for this signature in database

View file

@ -9,6 +9,7 @@ import { UAParser } from 'ua-parser-js';
import { RecoveryIdentityAddress, VerifiableIdentityAddress } from '@ory/client';
import { Badge } from '@/components/ui/badge';
import { Check, X } from 'lucide-react';
import { IdentityActions } from '@/components/identity/identity-actions';
interface MergedAddress {
recovery_id?: string;
@ -120,7 +121,7 @@ export default async function UserDetailsPage({ params }: { params: Promise<{ id
<p className="text-lg font-light">{identity.id}</p>
</div>
<div className="grid grid-cols-1 xl:grid-cols-2 gap-4">
<Card className="row-span-2">
<Card className="row-span-3">
<CardHeader>
<CardTitle>Traits</CardTitle>
<CardDescription>All identity properties specified in the identity schema</CardDescription>
@ -129,6 +130,15 @@ export default async function UserDetailsPage({ params }: { params: Promise<{ id
<IdentityTraitForm schema={identitySchema} identity={identity}/>
</CardContent>
</Card>
<Card>
<CardHeader>
<CardTitle>Actions</CardTitle>
<CardDescription>Quick actions to manage the identity</CardDescription>
</CardHeader>
<CardContent>
<IdentityActions identity={identity}/>
</CardContent>
</Card>
<Card>
<CardHeader>
<CardTitle>Addresses</CardTitle>