diff --git a/src/app/(dashboard)/profile/page.tsx b/src/app/(dashboard)/profile/page.tsx index e7b2567..f2ff61a 100755 --- a/src/app/(dashboard)/profile/page.tsx +++ b/src/app/(dashboard)/profile/page.tsx @@ -16,8 +16,19 @@ import { Separator } from "~/components/ui/separator"; import { PageHeader } from "~/components/ui/page-header"; import { useBreadcrumbsEffect } from "~/components/ui/breadcrumb-provider"; import { formatRole, getRoleDescription } from "~/lib/auth-client"; -import { User, Shield, Download, Trash2, ExternalLink } from "lucide-react"; +import { + User, + Shield, + Download, + Trash2, + ExternalLink, + Lock, + UserCog, + Mail, + Fingerprint +} from "lucide-react"; import { useSession } from "next-auth/react"; +import { cn } from "~/lib/utils"; interface ProfileUser { id: string; @@ -32,185 +43,141 @@ interface ProfileUser { function ProfileContent({ user }: { user: ProfileUser }) { return ( -
- Download all your research data and account information -
-- Permanently delete your account and all associated data -
-{user.name ?? "Unnamed User"}
-{user.email}
-User ID
-- {user.id} -
-+
{getRoleDescription(roleInfo.role)}
-- Granted{" "} - {new Date(roleInfo.grantedAt).toLocaleDateString()} -
+ {index < (user.roles?.length || 0) - 1 &&- Need additional permissions?{" "} - -
No Roles Assigned
+Contact an admin to request access.
+No Roles Assigned
-- You don't have any system roles yet. Contact an - administrator to get access to HRIStudio features. -
-
- {JSON.stringify(data).replace(/[{""}]/g, " ").trim()}
-
+
+ {JSON.stringify(data).replace(/[{""}]/g, " ").trim()}
+
+ Total session time
-Executed autonomous behaviors
-Manual wizard overrides
-
+
+ {trial.duration ? {Math.floor(trial.duration / 60)}m {trial.duration % 60}s : "--:--"} +
+
+
{robotActionCount}
+
+
{interventionCount}
+
+
+ {data?.description || data?.note || data?.message || "No content"} +
+ {data?.tags && data.tags.length > 0 && ( ++ The trial execution has been paused. Resume from the control bar to continue interacting. +
+