feat: recorded import grants, unclaimed creators and claiming
Pull request / title (pull_request) Successful in 1s
CI / test (pull_request) Successful in 1m19s
CI / image (apps/api/Dockerfile, t5de-hub-api) (pull_request) Skipped
CI / image (apps/web/Dockerfile, t5de-hub-web) (pull_request) Skipped

Admins record consent for IMVU creators without an account; their products
belong to a placeholder (imvu_<ID>) until they link the account and claim
them. Proof by a tagline code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
dhkatzandClaude Opus 5.5 committed 2026-11-07 11:12:26 -08:00
1 parent e6a97be894
commit 64b9658bad
18 files changed
+5222 -26

No files matched your search

+20 -1
View File
@@ -7,7 +7,7 @@ import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
import { Input } from "@/components/ui/input";
import { api, getMe, isModerator, unwrap } from "@/lib/api";
import { linkAccount, signOutComputers } from "./actions";
import { claimCreator, linkAccount, signOutComputers } from "./actions";
import { AgeCard } from "./age-card";
import { ChallengeCard } from "./challenge-card";
import { LinkCard } from "./link-card";
@@ -64,6 +64,25 @@ export default async function Account({ searchParams }: { searchParams: Promise<
</CardContent>
</Card>
{account.claims.map((c) => (
<Card key={c.imvuId}>
<CardHeader>
<CardTitle>Your IMVU Products on T5DE</CardTitle>
<CardDescription>
Before you joined, you agreed with T5DE to bring {c.username}&apos;s products here, and an admin recorded
it. They&apos;re waiting for you: {c.products} imported product{c.products === 1 ? "" : "s"} and{" "}
{c.grants} catalog{c.grants === 1 ? "" : "s"} hosting them. Claim them to manage them yourself, or to
withdraw them.
</CardDescription>
</CardHeader>
<CardContent>
<ActionForm action={claimCreator} fields={{ imvuId: c.imvuId }}>
<SubmitButton pendingLabel="Claiming…">Claim them</SubmitButton>
</ActionForm>
</CardContent>
</Card>
))}
{challenges.map((c) => (
<ChallengeCard key={c.imvuId} challenge={c} />
))}