Update SubdomainPassport to handle groups on aethex.space
cgen-8b93d1ef7ede4a4ba7bfc5c98e848f09
This commit is contained in:
parent
549b31af73
commit
e6e83e1f4e
1 changed files with 43 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import { useSubdomainPassport } from "@/contexts/SubdomainPassportContext";
|
|||
import Layout from "@/components/Layout";
|
||||
import PassportSummary from "@/components/passport/PassportSummary";
|
||||
import ProjectPassport from "@/components/passport/ProjectPassport";
|
||||
import GroupPassport from "@/components/passport/GroupPassport";
|
||||
import FourOhFourPage from "@/pages/404";
|
||||
import Index from "@/pages/Index";
|
||||
import type { AethexUserProfile } from "@/lib/aethex-database-adapter";
|
||||
|
|
@ -40,6 +41,48 @@ interface ProjectPassportResponse {
|
|||
domain: string;
|
||||
}
|
||||
|
||||
interface GroupPassportResponse {
|
||||
type: "group";
|
||||
group: {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string | null;
|
||||
logo_url: string | null;
|
||||
banner_url: string | null;
|
||||
website: string | null;
|
||||
github_url: string | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
memberCount: number;
|
||||
members: Array<{
|
||||
userId: string;
|
||||
role: string;
|
||||
joinedAt: string;
|
||||
user: {
|
||||
id: string;
|
||||
username: string;
|
||||
full_name: string;
|
||||
avatar_url: string | null;
|
||||
};
|
||||
}>;
|
||||
};
|
||||
projects: Array<{
|
||||
id: string;
|
||||
title: string;
|
||||
slug: string;
|
||||
description: string | null;
|
||||
image_url: string | null;
|
||||
created_at: string;
|
||||
}>;
|
||||
owner?: {
|
||||
id: string;
|
||||
username: string;
|
||||
full_name: string;
|
||||
avatar_url: string | null;
|
||||
};
|
||||
domain: string;
|
||||
}
|
||||
|
||||
const SubdomainPassport = () => {
|
||||
const { subdomainInfo, isLoading: isSubdomainLoading } =
|
||||
useSubdomainPassport();
|
||||
|
|
|
|||
Loading…
Reference in a new issue