@burdenoff/microfe-billing 2026.1116.1 → 2026.1119.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.
- package/dist/billing/modules/addons/pages/AddonCreatePage.js +143 -143
- package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonEditPage.js +170 -170
- package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +148 -148
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +115 -115
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +136 -136
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +129 -129
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/RefundsPage.js +325 -325
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +149 -149
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js +99 -98
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/checkout/components/StoreShippingSection.js +125 -124
- package/dist/billing/modules/checkout/components/StoreShippingSection.js.map +1 -1
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js +61 -60
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponsListPage.js +177 -177
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js +231 -231
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/EditCouponPage.js +139 -139
- package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js +54 -54
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +65 -65
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditsPage.js +95 -95
- package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +232 -231
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js +328 -328
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +57 -57
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/EarningsPage.js +53 -53
- package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +100 -100
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanCreatePage.js +150 -150
- package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanEditPage.js +125 -125
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +113 -113
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +132 -132
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/SettingsPage.js +101 -101
- package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +125 -125
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js +51 -50
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js.map +1 -1
- package/dist/billing/modules/usage/pages/UsagePage.js +107 -107
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/dist/billing/shared/components/GeoPricingOverridesEditor.js +1 -0
- package/package.json +2 -2
|
@@ -10,75 +10,75 @@ import "../../../shared/utils/index.js";
|
|
|
10
10
|
import { useOrderCallbackMutations as o, useOrderCallbacks as s } from "../hooks/useOrderCallbacks.js";
|
|
11
11
|
import { statusTokens as c } from "../../../shared/utils/tokens.js";
|
|
12
12
|
import { useState as l } from "react";
|
|
13
|
-
import { IllustratedEmptyState as u, ResponsiveTable as d } from "@burdenoff/fe-libs/ui";
|
|
14
|
-
import { AlertTriangle as
|
|
15
|
-
import { jsx as
|
|
13
|
+
import { IllustratedEmptyState as u, ResponsiveTable as d, ThemedSelect as f } from "@burdenoff/fe-libs/ui";
|
|
14
|
+
import { AlertTriangle as p, CheckCircle as m, ChevronLeft as h, ChevronRight as g, Clock as _, Eye as v, Loader2 as y, RefreshCw as b, RotateCw as x, X as S } from "lucide-react";
|
|
15
|
+
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
16
16
|
// src/billing/modules/billing/pages/OrderCallbackLogsPage.tsx
|
|
17
|
-
var
|
|
17
|
+
var T = 25, E = [
|
|
18
18
|
"PENDING",
|
|
19
19
|
"SUCCESS",
|
|
20
20
|
"FAILED"
|
|
21
|
-
],
|
|
21
|
+
], D = (e) => e.callbackStatus === "FAILED" ? {
|
|
22
22
|
label: "Failed",
|
|
23
23
|
className: `${c.error.bg} ${c.error.text}`,
|
|
24
|
-
icon:
|
|
24
|
+
icon: p
|
|
25
25
|
} : e.callbackStatus === "SUCCESS" ? {
|
|
26
26
|
label: "Delivered",
|
|
27
27
|
className: `${c.success.bg} ${c.success.text}`,
|
|
28
|
-
icon:
|
|
28
|
+
icon: m
|
|
29
29
|
} : {
|
|
30
30
|
label: e.callbackStatus || "Pending",
|
|
31
31
|
className: `${c.warning.bg} ${c.warning.text}`,
|
|
32
|
-
icon:
|
|
33
|
-
},
|
|
32
|
+
icon: _
|
|
33
|
+
}, O = ({ order: e, onClose: t, onRetry: n, isRetrying: r }) => {
|
|
34
34
|
if (!e) return null;
|
|
35
35
|
let a = e.callbackStatus === "FAILED" && !!e.billingAccountId;
|
|
36
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ C("div", {
|
|
37
37
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-bg-overlay p-4",
|
|
38
|
-
children: /* @__PURE__ */
|
|
38
|
+
children: /* @__PURE__ */ w("div", {
|
|
39
39
|
className: "w-full max-w-2xl max-h-[85vh] overflow-y-auto rounded-lg bg-bg-surface border border-border-subtle shadow-[var(--shadow-elevation-2)]",
|
|
40
|
-
children: [/* @__PURE__ */
|
|
40
|
+
children: [/* @__PURE__ */ w("div", {
|
|
41
41
|
className: "flex items-center justify-between p-4 border-b border-border-subtle",
|
|
42
|
-
children: [/* @__PURE__ */
|
|
42
|
+
children: [/* @__PURE__ */ C("h3", {
|
|
43
43
|
className: "text-base font-semibold text-text-primary",
|
|
44
44
|
children: "Order callback details"
|
|
45
|
-
}), /* @__PURE__ */
|
|
45
|
+
}), /* @__PURE__ */ C("button", {
|
|
46
46
|
type: "button",
|
|
47
47
|
onClick: t,
|
|
48
48
|
className: "p-1 rounded text-text-muted hover:text-text-primary hover:bg-bg-sunken/50",
|
|
49
|
-
children: /* @__PURE__ */ S
|
|
49
|
+
children: /* @__PURE__ */ C(S, { className: "size-4" })
|
|
50
50
|
})]
|
|
51
|
-
}), /* @__PURE__ */
|
|
51
|
+
}), /* @__PURE__ */ w("div", {
|
|
52
52
|
className: "p-4 space-y-4",
|
|
53
53
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ w("div", {
|
|
55
55
|
className: "grid grid-cols-2 gap-4 text-sm",
|
|
56
56
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
58
58
|
className: "text-text-muted",
|
|
59
59
|
children: "Order ID"
|
|
60
|
-
}), /* @__PURE__ */
|
|
60
|
+
}), /* @__PURE__ */ C("p", {
|
|
61
61
|
className: "text-text-primary font-mono text-xs break-all",
|
|
62
62
|
children: e.id
|
|
63
63
|
})] }),
|
|
64
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
65
65
|
className: "text-text-muted",
|
|
66
66
|
children: "Service"
|
|
67
|
-
}), /* @__PURE__ */
|
|
67
|
+
}), /* @__PURE__ */ C("p", {
|
|
68
68
|
className: "text-text-primary",
|
|
69
69
|
children: e.externalService
|
|
70
70
|
})] }),
|
|
71
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
72
72
|
className: "text-text-muted",
|
|
73
73
|
children: "Order status"
|
|
74
|
-
}), /* @__PURE__ */
|
|
74
|
+
}), /* @__PURE__ */ C("p", {
|
|
75
75
|
className: "text-text-primary",
|
|
76
76
|
children: e.status
|
|
77
77
|
})] }),
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
79
79
|
className: "text-text-muted",
|
|
80
80
|
children: "Amount"
|
|
81
|
-
}), /* @__PURE__ */
|
|
81
|
+
}), /* @__PURE__ */ w("p", {
|
|
82
82
|
className: "text-text-primary",
|
|
83
83
|
children: [
|
|
84
84
|
e.subtotal,
|
|
@@ -86,17 +86,17 @@ var w = 25, T = [
|
|
|
86
86
|
e.currency
|
|
87
87
|
]
|
|
88
88
|
})] }),
|
|
89
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
90
90
|
className: "text-text-muted",
|
|
91
91
|
children: "Billing account"
|
|
92
|
-
}), /* @__PURE__ */
|
|
92
|
+
}), /* @__PURE__ */ C("p", {
|
|
93
93
|
className: "text-text-primary font-mono text-xs break-all",
|
|
94
94
|
children: e.billingAccountId || "—"
|
|
95
95
|
})] }),
|
|
96
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
97
97
|
className: "text-text-muted",
|
|
98
98
|
children: "Payment / Transaction"
|
|
99
|
-
}), /* @__PURE__ */
|
|
99
|
+
}), /* @__PURE__ */ w("p", {
|
|
100
100
|
className: "text-text-primary font-mono text-xs break-all",
|
|
101
101
|
children: [
|
|
102
102
|
e.paymentId || "—",
|
|
@@ -104,96 +104,96 @@ var w = 25, T = [
|
|
|
104
104
|
e.transactionId || "—"
|
|
105
105
|
]
|
|
106
106
|
})] }),
|
|
107
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
108
108
|
className: "text-text-muted",
|
|
109
109
|
children: "Created"
|
|
110
|
-
}), /* @__PURE__ */
|
|
110
|
+
}), /* @__PURE__ */ C("p", {
|
|
111
111
|
className: "text-text-primary",
|
|
112
112
|
children: i(e.createdAt)
|
|
113
113
|
})] }),
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
115
115
|
className: "text-text-muted",
|
|
116
116
|
children: "Last callback attempt"
|
|
117
|
-
}), /* @__PURE__ */
|
|
117
|
+
}), /* @__PURE__ */ C("p", {
|
|
118
118
|
className: "text-text-primary",
|
|
119
119
|
children: e.callbackLastAttemptAt ? i(e.callbackLastAttemptAt) : "—"
|
|
120
120
|
})] }),
|
|
121
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
122
122
|
className: "text-text-muted",
|
|
123
123
|
children: "Callback attempts"
|
|
124
|
-
}), /* @__PURE__ */
|
|
124
|
+
}), /* @__PURE__ */ C("p", {
|
|
125
125
|
className: "text-text-primary",
|
|
126
126
|
children: e.callbackAttempts ?? 0
|
|
127
127
|
})] }),
|
|
128
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
129
129
|
className: "text-text-muted",
|
|
130
130
|
children: "Callback status"
|
|
131
|
-
}), /* @__PURE__ */
|
|
131
|
+
}), /* @__PURE__ */ C("p", {
|
|
132
132
|
className: "text-text-primary",
|
|
133
133
|
children: e.callbackStatus || "PENDING"
|
|
134
134
|
})] })
|
|
135
135
|
]
|
|
136
136
|
}),
|
|
137
|
-
e.callbackLastError && /* @__PURE__ */
|
|
137
|
+
e.callbackLastError && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
138
138
|
className: "text-sm text-text-muted mb-1",
|
|
139
139
|
children: "Last error"
|
|
140
|
-
}), /* @__PURE__ */
|
|
140
|
+
}), /* @__PURE__ */ C("pre", {
|
|
141
141
|
className: "text-xs whitespace-pre-wrap p-3 rounded-md bg-status-error-bg-subtle text-status-error-text border border-status-error-border",
|
|
142
142
|
children: e.callbackLastError
|
|
143
143
|
})] }),
|
|
144
|
-
e.callbackStatus === "FAILED" && !e.billingAccountId && /* @__PURE__ */
|
|
144
|
+
e.callbackStatus === "FAILED" && !e.billingAccountId && /* @__PURE__ */ C("p", {
|
|
145
145
|
className: "text-xs text-text-muted",
|
|
146
146
|
children: "No billing account was resolved on this order, so it can't be retried from here — the callback was never able to identify who paid."
|
|
147
147
|
}),
|
|
148
|
-
e.callbackStatus === "FAILED" && /* @__PURE__ */
|
|
148
|
+
e.callbackStatus === "FAILED" && /* @__PURE__ */ w("button", {
|
|
149
149
|
type: "button",
|
|
150
150
|
onClick: () => n(e),
|
|
151
151
|
disabled: !a || r,
|
|
152
152
|
className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bgHover disabled:opacity-50",
|
|
153
|
-
children: [r ? /* @__PURE__ */
|
|
153
|
+
children: [r ? /* @__PURE__ */ C(y, { className: "size-4 animate-spin" }) : /* @__PURE__ */ C(x, { className: "size-4" }), "Retry callback"]
|
|
154
154
|
})
|
|
155
155
|
]
|
|
156
156
|
})]
|
|
157
157
|
})
|
|
158
158
|
});
|
|
159
|
-
},
|
|
160
|
-
let c = n(), [
|
|
161
|
-
if (!c.isBillingAdmin) return /* @__PURE__ */
|
|
162
|
-
if (
|
|
159
|
+
}, k = () => {
|
|
160
|
+
let c = n(), [p, m] = l(0), [_, y] = l({}), [x, S] = l(null), [k, A] = l(null), { orders: j, totalCount: M, isLoading: N, error: P, refetch: F } = s(_, p, T), { retryOrderCallback: I, isRetrying: L } = o();
|
|
161
|
+
if (!c.isBillingAdmin) return /* @__PURE__ */ C(e, { message: "You don't have permission to view order callback logs." });
|
|
162
|
+
if (P && a(P)) return /* @__PURE__ */ C("div", {
|
|
163
163
|
className: "p-6",
|
|
164
|
-
children: /* @__PURE__ */
|
|
164
|
+
children: /* @__PURE__ */ C(r, {
|
|
165
165
|
title: "Server Unavailable",
|
|
166
166
|
message: "Unable to load order callback logs. The server might be down or experiencing issues.",
|
|
167
|
-
onRetry: () =>
|
|
167
|
+
onRetry: () => F(),
|
|
168
168
|
showRetry: !0
|
|
169
169
|
})
|
|
170
170
|
});
|
|
171
|
-
let
|
|
172
|
-
|
|
171
|
+
let R = (e, t) => {
|
|
172
|
+
y((n) => ({
|
|
173
173
|
...n,
|
|
174
174
|
[e]: t
|
|
175
|
-
})),
|
|
176
|
-
},
|
|
175
|
+
})), m(0);
|
|
176
|
+
}, z = async (e) => {
|
|
177
177
|
if (e.billingAccountId) {
|
|
178
|
-
|
|
178
|
+
A(null);
|
|
179
179
|
try {
|
|
180
|
-
await
|
|
180
|
+
await I(e.id, e.billingAccountId), await F(), S(null);
|
|
181
181
|
} catch (e) {
|
|
182
|
-
|
|
182
|
+
A(e instanceof Error ? e.message : "Failed to retry callback");
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
},
|
|
185
|
+
}, B = [
|
|
186
186
|
{
|
|
187
187
|
key: "date",
|
|
188
188
|
header: "Created",
|
|
189
189
|
priority: "primary",
|
|
190
190
|
cellClassName: "whitespace-nowrap",
|
|
191
|
-
cell: (e) => /* @__PURE__ */
|
|
191
|
+
cell: (e) => /* @__PURE__ */ w("div", {
|
|
192
192
|
className: "flex flex-col",
|
|
193
|
-
children: [/* @__PURE__ */
|
|
193
|
+
children: [/* @__PURE__ */ C("span", {
|
|
194
194
|
className: "text-sm text-text-primary",
|
|
195
195
|
children: i(e.createdAt).split(" ")[0]
|
|
196
|
-
}), /* @__PURE__ */
|
|
196
|
+
}), /* @__PURE__ */ C("span", {
|
|
197
197
|
className: "text-xs text-text-muted",
|
|
198
198
|
children: i(e.createdAt).split(" ")[1]
|
|
199
199
|
})]
|
|
@@ -204,10 +204,10 @@ var w = 25, T = [
|
|
|
204
204
|
header: "Callback",
|
|
205
205
|
cellClassName: "whitespace-nowrap",
|
|
206
206
|
cell: (e) => {
|
|
207
|
-
let t =
|
|
208
|
-
return /* @__PURE__ */
|
|
207
|
+
let t = D(e), n = t.icon;
|
|
208
|
+
return /* @__PURE__ */ w("span", {
|
|
209
209
|
className: `inline-flex items-center gap-1 px-2 py-0.5 text-xs font-medium rounded ${t.className}`,
|
|
210
|
-
children: [/* @__PURE__ */
|
|
210
|
+
children: [/* @__PURE__ */ C(n, { className: "size-3" }), t.label]
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
},
|
|
@@ -216,7 +216,7 @@ var w = 25, T = [
|
|
|
216
216
|
header: "Service",
|
|
217
217
|
priority: "hidden-on-mobile",
|
|
218
218
|
cellClassName: "whitespace-nowrap",
|
|
219
|
-
cell: (e) => /* @__PURE__ */
|
|
219
|
+
cell: (e) => /* @__PURE__ */ C("span", {
|
|
220
220
|
className: "text-sm text-text-primary",
|
|
221
221
|
children: e.externalService
|
|
222
222
|
})
|
|
@@ -225,7 +225,7 @@ var w = 25, T = [
|
|
|
225
225
|
key: "orderId",
|
|
226
226
|
header: "Order ID",
|
|
227
227
|
cellClassName: "whitespace-nowrap max-w-[220px] truncate",
|
|
228
|
-
cell: (e) => /* @__PURE__ */
|
|
228
|
+
cell: (e) => /* @__PURE__ */ C("span", {
|
|
229
229
|
className: "text-sm font-mono text-text-muted",
|
|
230
230
|
title: e.id,
|
|
231
231
|
children: e.id
|
|
@@ -236,7 +236,7 @@ var w = 25, T = [
|
|
|
236
236
|
header: "Attempts",
|
|
237
237
|
priority: "hidden-on-mobile",
|
|
238
238
|
cellClassName: "whitespace-nowrap",
|
|
239
|
-
cell: (e) => /* @__PURE__ */
|
|
239
|
+
cell: (e) => /* @__PURE__ */ C("span", {
|
|
240
240
|
className: "text-sm text-text-secondary",
|
|
241
241
|
children: e.callbackAttempts ?? 0
|
|
242
242
|
})
|
|
@@ -246,74 +246,74 @@ var w = 25, T = [
|
|
|
246
246
|
header: "Error",
|
|
247
247
|
priority: "hidden-on-mobile",
|
|
248
248
|
cellClassName: "max-w-[280px] truncate",
|
|
249
|
-
cell: (e) => /* @__PURE__ */
|
|
249
|
+
cell: (e) => /* @__PURE__ */ C("span", {
|
|
250
250
|
className: "text-sm text-status-error-text",
|
|
251
251
|
children: e.callbackLastError || "-"
|
|
252
252
|
})
|
|
253
253
|
}
|
|
254
|
-
],
|
|
255
|
-
return /* @__PURE__ */
|
|
254
|
+
], V = Math.max(1, Math.ceil(M / T));
|
|
255
|
+
return /* @__PURE__ */ w("div", {
|
|
256
256
|
className: "space-y-6 p-6",
|
|
257
257
|
children: [
|
|
258
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ C(t, {
|
|
259
259
|
title: "Order Callback Logs",
|
|
260
260
|
description: "Every billing→store (and other external service) order-completion callback — investigate a stuck handoff directly.",
|
|
261
|
-
actions: /* @__PURE__ */
|
|
261
|
+
actions: /* @__PURE__ */ w("button", {
|
|
262
262
|
type: "button",
|
|
263
|
-
onClick: () =>
|
|
263
|
+
onClick: () => F(),
|
|
264
264
|
className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md border border-border-subtle bg-bg-surface hover:bg-bg-sunken/50",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ C(b, { className: "size-4" }), "Refresh"]
|
|
266
266
|
})
|
|
267
267
|
}),
|
|
268
|
-
|
|
268
|
+
k && /* @__PURE__ */ C("div", {
|
|
269
269
|
className: "p-3 rounded-md bg-status-error-bg-subtle text-status-error-text border border-status-error-border text-sm",
|
|
270
|
-
children:
|
|
270
|
+
children: k
|
|
271
271
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ w("div", {
|
|
273
273
|
className: "p-4 border border-border-subtle rounded-lg bg-bg-sunken/30 grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
274
274
|
children: [
|
|
275
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
276
276
|
className: "block text-sm font-medium mb-1",
|
|
277
277
|
children: "Callback status"
|
|
278
|
-
}), /* @__PURE__ */
|
|
279
|
-
value:
|
|
280
|
-
onChange: (e) =>
|
|
278
|
+
}), /* @__PURE__ */ w(f, {
|
|
279
|
+
value: _.callbackStatus || "",
|
|
280
|
+
onChange: (e) => R("callbackStatus", e.target.value || void 0),
|
|
281
281
|
className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
282
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ C("option", {
|
|
283
283
|
value: "",
|
|
284
284
|
children: "All"
|
|
285
|
-
}),
|
|
285
|
+
}), E.map((e) => /* @__PURE__ */ C("option", {
|
|
286
286
|
value: e,
|
|
287
287
|
children: e
|
|
288
288
|
}, e))]
|
|
289
289
|
})] }),
|
|
290
|
-
/* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
291
291
|
className: "block text-sm font-medium mb-1",
|
|
292
292
|
children: "Service"
|
|
293
|
-
}), /* @__PURE__ */
|
|
293
|
+
}), /* @__PURE__ */ C("input", {
|
|
294
294
|
type: "text",
|
|
295
|
-
value:
|
|
296
|
-
onChange: (e) =>
|
|
295
|
+
value: _.externalService || "",
|
|
296
|
+
onChange: (e) => R("externalService", e.target.value || void 0),
|
|
297
297
|
placeholder: "e.g. STORE",
|
|
298
298
|
className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface"
|
|
299
299
|
})] }),
|
|
300
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
|
|
301
301
|
className: "block text-sm font-medium mb-1",
|
|
302
302
|
children: "Has Error"
|
|
303
|
-
}), /* @__PURE__ */
|
|
304
|
-
value:
|
|
305
|
-
onChange: (e) =>
|
|
303
|
+
}), /* @__PURE__ */ w(f, {
|
|
304
|
+
value: _.hasError === void 0 ? "" : String(_.hasError),
|
|
305
|
+
onChange: (e) => R("hasError", e.target.value === "" ? void 0 : e.target.value === "true"),
|
|
306
306
|
className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
307
307
|
children: [
|
|
308
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ C("option", {
|
|
309
309
|
value: "",
|
|
310
310
|
children: "All"
|
|
311
311
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ C("option", {
|
|
313
313
|
value: "true",
|
|
314
314
|
children: "Has error"
|
|
315
315
|
}),
|
|
316
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ C("option", {
|
|
317
317
|
value: "false",
|
|
318
318
|
children: "No error"
|
|
319
319
|
})
|
|
@@ -321,7 +321,7 @@ var w = 25, T = [
|
|
|
321
321
|
})] })
|
|
322
322
|
]
|
|
323
323
|
}),
|
|
324
|
-
|
|
324
|
+
N && j.length === 0 ? /* @__PURE__ */ C("div", {
|
|
325
325
|
className: "space-y-2",
|
|
326
326
|
children: [
|
|
327
327
|
1,
|
|
@@ -329,98 +329,98 @@ var w = 25, T = [
|
|
|
329
329
|
3,
|
|
330
330
|
4,
|
|
331
331
|
5
|
|
332
|
-
].map((e) => /* @__PURE__ */
|
|
333
|
-
}) :
|
|
332
|
+
].map((e) => /* @__PURE__ */ C("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
|
|
333
|
+
}) : j.length === 0 ? /* @__PURE__ */ C(u, {
|
|
334
334
|
illustration: "empty-data",
|
|
335
335
|
title: "No order callbacks found",
|
|
336
336
|
description: "Nothing matches these filters — try widening them, or check back after the next store purchase."
|
|
337
|
-
}) : /* @__PURE__ */
|
|
337
|
+
}) : /* @__PURE__ */ C("div", {
|
|
338
338
|
className: "border border-border-subtle rounded-lg overflow-hidden",
|
|
339
|
-
children: /* @__PURE__ */
|
|
340
|
-
columns:
|
|
341
|
-
data:
|
|
339
|
+
children: /* @__PURE__ */ C(d, {
|
|
340
|
+
columns: B,
|
|
341
|
+
data: j,
|
|
342
342
|
rowKey: (e) => e.id,
|
|
343
|
-
rowActions: (e) => /* @__PURE__ */
|
|
343
|
+
rowActions: (e) => /* @__PURE__ */ w("button", {
|
|
344
344
|
type: "button",
|
|
345
|
-
onClick: () =>
|
|
345
|
+
onClick: () => S(e),
|
|
346
346
|
className: "inline-flex items-center gap-1.5 px-2 py-1 text-sm font-medium rounded-button text-text-secondary hover:text-text-primary hover:bg-bg-sunken/60 transition-colors",
|
|
347
|
-
children: [/* @__PURE__ */
|
|
347
|
+
children: [/* @__PURE__ */ C(v, { className: "size-4" }), /* @__PURE__ */ C("span", {
|
|
348
348
|
className: "hidden sm:inline",
|
|
349
349
|
children: "View"
|
|
350
350
|
})]
|
|
351
351
|
})
|
|
352
352
|
})
|
|
353
353
|
}),
|
|
354
|
-
|
|
354
|
+
M > 0 && /* @__PURE__ */ w("div", {
|
|
355
355
|
className: "flex flex-col sm:flex-row items-center justify-between gap-4 border-t border-border-subtle pt-4",
|
|
356
|
-
children: [/* @__PURE__ */
|
|
356
|
+
children: [/* @__PURE__ */ w("p", {
|
|
357
357
|
className: "text-sm text-text-muted text-center sm:text-left",
|
|
358
358
|
children: [
|
|
359
359
|
"Showing ",
|
|
360
|
-
|
|
360
|
+
p * T + 1,
|
|
361
361
|
" to ",
|
|
362
|
-
Math.min((
|
|
362
|
+
Math.min((p + 1) * T, M),
|
|
363
363
|
" of",
|
|
364
364
|
" ",
|
|
365
|
-
|
|
365
|
+
M,
|
|
366
366
|
" orders"
|
|
367
367
|
]
|
|
368
|
-
}), /* @__PURE__ */
|
|
368
|
+
}), /* @__PURE__ */ w("div", {
|
|
369
369
|
className: "flex items-center gap-2",
|
|
370
370
|
children: [
|
|
371
|
-
/* @__PURE__ */
|
|
371
|
+
/* @__PURE__ */ w("button", {
|
|
372
372
|
type: "button",
|
|
373
|
-
onClick: () =>
|
|
374
|
-
disabled:
|
|
373
|
+
onClick: () => m((e) => Math.max(0, e - 1)),
|
|
374
|
+
disabled: p === 0,
|
|
375
375
|
className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-button border border-border-subtle bg-bg-surface hover:bg-bg-sunken/50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
376
|
-
children: [/* @__PURE__ */
|
|
376
|
+
children: [/* @__PURE__ */ C(h, { className: "size-4" }), /* @__PURE__ */ C("span", {
|
|
377
377
|
className: "hidden sm:inline",
|
|
378
378
|
children: "Previous"
|
|
379
379
|
})]
|
|
380
380
|
}),
|
|
381
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ w("span", {
|
|
382
382
|
className: "text-sm text-text-muted px-2",
|
|
383
383
|
children: [
|
|
384
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ C("span", {
|
|
385
385
|
className: "hidden sm:inline",
|
|
386
386
|
children: "Page "
|
|
387
387
|
}),
|
|
388
|
-
|
|
388
|
+
p + 1,
|
|
389
389
|
" ",
|
|
390
|
-
/* @__PURE__ */
|
|
390
|
+
/* @__PURE__ */ C("span", {
|
|
391
391
|
className: "hidden sm:inline",
|
|
392
392
|
children: "of"
|
|
393
393
|
}),
|
|
394
|
-
/* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ C("span", {
|
|
395
395
|
className: "sm:hidden",
|
|
396
396
|
children: "/"
|
|
397
397
|
}),
|
|
398
398
|
" ",
|
|
399
|
-
|
|
399
|
+
V
|
|
400
400
|
]
|
|
401
401
|
}),
|
|
402
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ w("button", {
|
|
403
403
|
type: "button",
|
|
404
|
-
onClick: () =>
|
|
405
|
-
disabled:
|
|
404
|
+
onClick: () => m((e) => e + 1 < V ? e + 1 : e),
|
|
405
|
+
disabled: p + 1 >= V,
|
|
406
406
|
className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-button border border-border-subtle bg-bg-surface hover:bg-bg-sunken/50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
407
|
-
children: [/* @__PURE__ */
|
|
407
|
+
children: [/* @__PURE__ */ C("span", {
|
|
408
408
|
className: "hidden sm:inline",
|
|
409
409
|
children: "Next"
|
|
410
|
-
}), /* @__PURE__ */
|
|
410
|
+
}), /* @__PURE__ */ C(g, { className: "size-4" })]
|
|
411
411
|
})
|
|
412
412
|
]
|
|
413
413
|
})]
|
|
414
414
|
}),
|
|
415
|
-
/* @__PURE__ */
|
|
416
|
-
order:
|
|
417
|
-
onClose: () =>
|
|
418
|
-
onRetry:
|
|
419
|
-
isRetrying:
|
|
415
|
+
/* @__PURE__ */ C(O, {
|
|
416
|
+
order: x,
|
|
417
|
+
onClose: () => S(null),
|
|
418
|
+
onRetry: z,
|
|
419
|
+
isRetrying: L
|
|
420
420
|
})
|
|
421
421
|
]
|
|
422
422
|
});
|
|
423
423
|
};
|
|
424
|
-
export {
|
|
424
|
+
export { k as OrderCallbackLogsPage };
|
|
425
425
|
|
|
426
426
|
//# sourceMappingURL=OrderCallbackLogsPage.js.map
|