@tokenoftrust/storefront-runner 4.6.1 → 4.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,10 +137,15 @@ export interface OrderSyncHealth {
137
137
  detail: string;
138
138
  }
139
139
 
140
- /** The sidebar's order-sync row, from the same source the Orders tab reads. */
140
+ /**
141
+ * The sidebar's order-sync row, from the same source the Orders tab reads. `status` is the ledger
142
+ * read; `null` means that read was unavailable, never that the ledger is healthy. A partner-api
143
+ * source has no ledger status and ignores it.
144
+ */
141
145
  export function orderSyncHealth(source: OrderSource, status: LedgerSyncStatus | null): OrderSyncHealth {
142
146
  if (source.kind === "not-connected") return { value: "Not connected", detail: orderSourceGapMessage(source.gap) };
143
- if (source.kind === "partner-api" || !status) return { value: "Connected", detail: "Reads this store's checkout orders." };
147
+ if (source.kind === "partner-api") return { value: "Connected", detail: "Reads this store's checkout orders." };
148
+ if (!status) return { value: "Check", detail: "Order sync status could not be read. Reload to try again." };
144
149
  if (status.unconfirmed.count > 0) {
145
150
  const n = status.unconfirmed.count;
146
151
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/storefront-runner",
3
- "version": "4.6.1",
3
+ "version": "4.6.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "World-shareable storefront runner: multi-tenant renderer on Astro/Cloudflare. No control plane.",
6
6
  "packageManager": "pnpm@11.9.0",