Whole-shop grants now import the shop's products, not only those people asked for. The hub lists the shop on IMVU's public API (general-rated products) when the grant is accepted, daily after, and on "List the shop again". Each listing keeps the products' info and queues what isn't imported yet, less exclusions. IMVU's small pages overlap and miss products, so the hub asks for pages of 1000 and drops repeats. GET /imports/available tells the proxy what T5DE has of IMVU products and shops, from what the hub knows only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
20 lines
620 B
TypeScript
20 lines
620 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 };
|
|
}) {
|
|
if (g.scope !== "shop" || g.status !== "active") return null;
|
|
if (!g.shopListedAt) return <> Not checked on IMVU yet.</>;
|
|
return (
|
|
<>
|
|
{" "}
|
|
On IMVU: {g.shopListed} general-rated product{g.shopListed === 1 ? "" : "s"} (checked{" "}
|
|
<DateTime iso={g.shopListedAt} />
|
|
).
|
|
</>
|
|
);
|
|
}
|