Files
t5de-hub/apps/web/components/shop-listing.tsx
T
dhkatzandClaude Opus 5.5 e2308aa0aa feat(imports): Access Pass products through the importer's signed-in account
IMVU hides Access Pass products from the signed out, so the hub learns about them from the importer: a "list" job
has it list a whole shop signed in (queued with each listing once its importer has an account that signed in with
Access Pass), and a job's product the hub can't see is looked up by the importer first (/info). The console no
longer says an account has no Access Pass when IMVU merely doesn't show it publicly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 07:21:49 -08:00

26 lines
770 B
TypeScript

import { DateTime } from "@/components/time";
/** For an active whole-shop grant: how many products IMVU lists in the shop, and when the hub last looked. */
export function ShopListing({
grant: g,
}: {
grant: {
scope: string;
status: string;
shopListedAt: string | null;
shopListed: number;
shopListedSignedIn: boolean;
};
}) {
if (g.scope !== "shop" || g.status !== "active") return null;
if (!g.shopListedAt) return <> Not checked on IMVU yet.</>;
return (
<>
{" "}
On IMVU: {g.shopListed} {g.shopListedSignedIn ? "" : "general-rated "}product{g.shopListed === 1 ? "" : "s"}{" "}
(checked <DateTime iso={g.shopListedAt} />
{g.shopListedSignedIn ? " by the importer, with Access Pass" : ""}).
</>
);
}