feat: whole shops listed on IMVU, and GET /imports/available (#16)
Release / release (push) Successful in 4s
CI / test (push) Successful in 1m35s
CI / image (apps/api/Dockerfile, t5de-hub-api) (push) Successful in 6s
CI / image (apps/web/Dockerfile, t5de-hub-web) (push) Successful in 14s

Co-authored-by: dhkatz <[email protected]>
This commit was merged in pull request #16.
This commit is contained in:
dhkatz authored and dhkatz committed 2026-11-08 00:51:00 +00:00
1 parent 8f6dacba10
commit efc7d6b808
15 files changed
+4954 -20

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
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} />
).
</>
);
}