@burdenoff/microfe-subscriberbot 2026.1102.1 → 2026.1102.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/stories/pages/ProcurementDetailPage.stories.d.ts +10 -0
- package/dist/stories/pages/ProcurementDetailPage.stories.d.ts.map +1 -0
- package/dist/stories/pages/ProcurementNewPage.stories.d.ts +9 -0
- package/dist/stories/pages/ProcurementNewPage.stories.d.ts.map +1 -0
- package/dist/stories/pages/ProcurementPage.stories.d.ts +11 -0
- package/dist/stories/pages/ProcurementPage.stories.d.ts.map +1 -0
- package/dist/stories/support/procurementFixtures.d.ts +14 -0
- package/dist/stories/support/procurementFixtures.d.ts.map +1 -0
- package/dist/subscriberbot/SubscriberBotRoutes.d.ts.map +1 -1
- package/dist/subscriberbot/SubscriberBotRoutes.js +20 -8
- package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
- package/dist/subscriberbot/admin/AdminDashboardPage.d.ts.map +1 -1
- package/dist/subscriberbot/admin/AdminDashboardPage.js +170 -160
- package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
- package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts +4 -0
- package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts.map +1 -0
- package/dist/subscriberbot/admin/ProcurementDeskPanel.js +450 -0
- package/dist/subscriberbot/admin/ProcurementDeskPanel.js.map +1 -0
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts +12 -0
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts.map +1 -0
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js +155 -0
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js.map +1 -0
- package/dist/subscriberbot/components/procurement/ProcurementStatusPill.d.ts +8 -0
- package/dist/subscriberbot/components/procurement/ProcurementStatusPill.d.ts.map +1 -0
- package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js +18 -0
- package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js.map +1 -0
- package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts +13 -0
- package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts.map +1 -0
- package/dist/subscriberbot/components/procurement/ProcurementThread.js +51 -0
- package/dist/subscriberbot/components/procurement/ProcurementThread.js.map +1 -0
- package/dist/subscriberbot/components/procurement/index.d.ts +5 -0
- package/dist/subscriberbot/components/procurement/index.d.ts.map +1 -0
- package/dist/subscriberbot/components/procurement/index.js +4 -0
- package/dist/subscriberbot/components/procurement/labels.d.ts +16 -0
- package/dist/subscriberbot/components/procurement/labels.d.ts.map +1 -0
- package/dist/subscriberbot/components/procurement/labels.js +154 -0
- package/dist/subscriberbot/components/procurement/labels.js.map +1 -0
- package/dist/subscriberbot/hooks/useProcurementApi.d.ts +58 -0
- package/dist/subscriberbot/hooks/useProcurementApi.d.ts.map +1 -0
- package/dist/subscriberbot/hooks/useProcurementApi.js +128 -0
- package/dist/subscriberbot/hooks/useProcurementApi.js.map +1 -0
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts +11 -0
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js +276 -0
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js.map +1 -0
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts +12 -0
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js +362 -0
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js.map +1 -0
- package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts +11 -0
- package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/procurement/ProcurementPage.js +156 -0
- package/dist/subscriberbot/pages/procurement/ProcurementPage.js.map +1 -0
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +323 -312
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
- package/dist/subscriberbot/types/procurement.d.ts +127 -0
- package/dist/subscriberbot/types/procurement.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -2,40 +2,41 @@ import { PageLayout as e } from "../components/PageLayout.js";
|
|
|
2
2
|
import { formatDate as t } from "../utils/formatters.js";
|
|
3
3
|
import { StatusBadge as n } from "../components/StatusBadge.js";
|
|
4
4
|
import { useTr as ee } from "../hooks/useTr.js";
|
|
5
|
-
import { useAdapterSubmissions as
|
|
6
|
-
import { NegotiationDeskPanel as
|
|
5
|
+
import { useAdapterSubmissions as r, useApproveAdapter as te, useMarketplaceReports as ne, useModerateListing as re, useProviders as ie, useRejectAdapter as ae, useUpdateProvider as oe } from "../hooks/useSubscriberBotApi.js";
|
|
6
|
+
import { NegotiationDeskPanel as se } from "./NegotiationDeskPanel.js";
|
|
7
|
+
import { ProcurementDeskPanel as ce } from "./ProcurementDeskPanel.js";
|
|
7
8
|
import "../hooks/index.js";
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { CheckCircle2 as s, Handshake as
|
|
10
|
-
import { jsx as
|
|
11
|
-
import { Button as
|
|
9
|
+
import { Fragment as i, useState as a } from "react";
|
|
10
|
+
import { Briefcase as o, CheckCircle2 as s, Handshake as le, Plug as c, Settings2 as ue, Store as l, XCircle as de } from "lucide-react";
|
|
11
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
12
|
+
import { Button as f, Card as p, CardContent as m, CardDescription as h, CardHeader as g, CardTitle as _, EmptyState as v, Spinner as y, Table as b, TableBody as x, TableCell as S, TableHead as C, TableHeader as w, TableRow as T, Tabs as fe, TabsContent as E, TabsList as pe, TabsTrigger as D, Textarea as O } from "@burdenoff/fe-libs/ui";
|
|
12
13
|
//#region src/subscriberbot/admin/AdminDashboardPage.tsx
|
|
13
|
-
var
|
|
14
|
-
let
|
|
15
|
-
|
|
14
|
+
var k = () => {
|
|
15
|
+
let k = ee(), [me, A] = a("providers"), { data: j, isLoading: M } = ie({ pagination: { limit: 50 } }), N = oe(), P = (e) => {
|
|
16
|
+
N.mutate({
|
|
16
17
|
id: e,
|
|
17
18
|
input: { status: "VERIFIED" }
|
|
18
19
|
});
|
|
19
|
-
},
|
|
20
|
-
|
|
20
|
+
}, F = (e) => {
|
|
21
|
+
N.mutate({
|
|
21
22
|
id: e,
|
|
22
23
|
input: { status: "DEPRECATED" }
|
|
23
24
|
});
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
25
|
+
}, I = j?.items ?? [], { data: L, isLoading: R } = r({ pagination: { limit: 50 } }), z = te(), B = ae(), [he, V] = a(null), [H, U] = a(""), W = L?.items ?? [], ge = (e) => {
|
|
26
|
+
z.mutate({ id: e });
|
|
27
|
+
}, _e = (e) => {
|
|
28
|
+
V(e), U("");
|
|
29
|
+
}, ve = (e) => {
|
|
30
|
+
H.trim() && B.mutate({
|
|
30
31
|
id: e,
|
|
31
|
-
reason:
|
|
32
|
+
reason: H.trim()
|
|
32
33
|
}, { onSuccess: () => {
|
|
33
|
-
|
|
34
|
+
V(null), U("");
|
|
34
35
|
} });
|
|
35
|
-
}, { data:
|
|
36
|
+
}, { data: ye, isLoading: be } = ne({ pagination: { limit: 50 } }), G = re(), [K, q] = a(null), [J, Y] = a(null), [X, Z] = a(""), Q = ye?.items ?? [], $ = (e, t) => {
|
|
36
37
|
q(e), Y(t), Z("");
|
|
37
|
-
},
|
|
38
|
-
!J || !X.trim() ||
|
|
38
|
+
}, xe = (e) => {
|
|
39
|
+
!J || !X.trim() || G.mutate({
|
|
39
40
|
id: e,
|
|
40
41
|
action: J,
|
|
41
42
|
reason: X.trim()
|
|
@@ -43,286 +44,295 @@ var j = () => {
|
|
|
43
44
|
q(null), Y(null), Z("");
|
|
44
45
|
} });
|
|
45
46
|
};
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
title:
|
|
48
|
-
description:
|
|
49
|
-
children: /* @__PURE__ */
|
|
50
|
-
value:
|
|
51
|
-
onValueChange:
|
|
47
|
+
return /* @__PURE__ */ u(e, {
|
|
48
|
+
title: k("admin.title", "SubscriberBot Admin"),
|
|
49
|
+
description: k("admin.description", "Provider registry curation, adapter approvals, and marketplace moderation."),
|
|
50
|
+
children: /* @__PURE__ */ d(fe, {
|
|
51
|
+
value: me,
|
|
52
|
+
onValueChange: A,
|
|
52
53
|
className: "w-full",
|
|
53
54
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ d(pe, {
|
|
55
56
|
className: "mb-4 grid w-full grid-cols-2 sm:w-auto sm:inline-flex",
|
|
56
57
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ d(D, {
|
|
58
59
|
value: "providers",
|
|
59
60
|
className: "gap-2",
|
|
60
|
-
children: [/* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ u(ue, { size: 16 }), k("admin.tabs.providers", "Provider Registry")]
|
|
61
62
|
}),
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ d(D, {
|
|
63
64
|
value: "adapters",
|
|
64
65
|
className: "gap-2",
|
|
65
|
-
children: [/* @__PURE__ */
|
|
66
|
+
children: [/* @__PURE__ */ u(c, { size: 16 }), k("admin.tabs.adapters", "Adapter Approvals")]
|
|
66
67
|
}),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ d(D, {
|
|
68
69
|
value: "marketplace",
|
|
69
70
|
className: "gap-2",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
71
|
+
children: [/* @__PURE__ */ u(l, { size: 16 }), k("admin.tabs.marketplace", "Marketplace Moderation")]
|
|
71
72
|
}),
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ d(D, {
|
|
73
74
|
value: "negotiations",
|
|
74
75
|
className: "gap-2",
|
|
75
|
-
children: [/* @__PURE__ */
|
|
76
|
+
children: [/* @__PURE__ */ u(le, { size: 16 }), k("admin.tabs.negotiations", "Negotiation Desk")]
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ d(D, {
|
|
79
|
+
value: "procurement",
|
|
80
|
+
className: "gap-2",
|
|
81
|
+
children: [/* @__PURE__ */ u(o, { size: 16 }), k("admin.tabs.procurement", "Procurement Desk")]
|
|
76
82
|
})
|
|
77
83
|
]
|
|
78
84
|
}),
|
|
79
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ u(E, {
|
|
80
86
|
value: "providers",
|
|
81
|
-
children: /* @__PURE__ */ p
|
|
87
|
+
children: /* @__PURE__ */ d(p, { children: [/* @__PURE__ */ d(g, { children: [/* @__PURE__ */ u(_, { children: k("admin.providers.title", "Provider registry") }), /* @__PURE__ */ u(h, { children: k("admin.providers.description", "Curate the global provider catalog. Verify submitted providers or deprecate stale entries.") })] }), /* @__PURE__ */ u(m, { children: M ? /* @__PURE__ */ u("div", {
|
|
82
88
|
className: "flex min-h-[200px] items-center justify-center",
|
|
83
|
-
children: /* @__PURE__ */
|
|
84
|
-
}) :
|
|
85
|
-
icon: /* @__PURE__ */
|
|
86
|
-
title:
|
|
87
|
-
description:
|
|
88
|
-
}) : /* @__PURE__ */
|
|
89
|
+
children: /* @__PURE__ */ u(y, { size: "lg" })
|
|
90
|
+
}) : I.length === 0 ? /* @__PURE__ */ u(v, {
|
|
91
|
+
icon: /* @__PURE__ */ u(l, { className: "size-6 text-action-primary-bg" }),
|
|
92
|
+
title: k("admin.providers.emptyTitle", "No providers yet"),
|
|
93
|
+
description: k("admin.providers.emptyDescription", "Once providers are created or claimed they will appear here for curation.")
|
|
94
|
+
}) : /* @__PURE__ */ u("div", {
|
|
89
95
|
className: "overflow-x-auto",
|
|
90
|
-
children: /* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
+
children: /* @__PURE__ */ d(b, { children: [/* @__PURE__ */ u(w, { children: /* @__PURE__ */ d(T, { children: [
|
|
97
|
+
/* @__PURE__ */ u(C, { children: k("admin.providers.table.name", "Name") }),
|
|
98
|
+
/* @__PURE__ */ u(C, { children: k("admin.providers.table.category", "Category") }),
|
|
99
|
+
/* @__PURE__ */ u(C, { children: k("admin.providers.table.status", "Status") }),
|
|
100
|
+
/* @__PURE__ */ u(C, { children: k("admin.providers.table.created", "Created") }),
|
|
101
|
+
/* @__PURE__ */ u(C, {
|
|
96
102
|
className: "text-right",
|
|
97
|
-
children:
|
|
103
|
+
children: k("admin.providers.table.actions", "Actions")
|
|
98
104
|
})
|
|
99
|
-
] }) }), /* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
105
|
+
] }) }), /* @__PURE__ */ u(x, { children: I.map((e) => /* @__PURE__ */ d(T, { children: [
|
|
106
|
+
/* @__PURE__ */ u(S, {
|
|
101
107
|
className: "font-medium text-text-primary",
|
|
102
108
|
children: e.name
|
|
103
109
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ u(S, {
|
|
105
111
|
className: "text-text-secondary",
|
|
106
112
|
children: e.category
|
|
107
113
|
}),
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ u(S, { children: /* @__PURE__ */ u(n, { status: e.status }) }),
|
|
115
|
+
/* @__PURE__ */ u(S, {
|
|
110
116
|
className: "text-text-secondary",
|
|
111
117
|
children: t(e.createdAt)
|
|
112
118
|
}),
|
|
113
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ u(S, {
|
|
114
120
|
className: "text-right",
|
|
115
|
-
children: /* @__PURE__ */
|
|
121
|
+
children: /* @__PURE__ */ d("div", {
|
|
116
122
|
className: "flex justify-end gap-2",
|
|
117
|
-
children: [e.status !== "VERIFIED" && /* @__PURE__ */
|
|
123
|
+
children: [e.status !== "VERIFIED" && /* @__PURE__ */ d(f, {
|
|
118
124
|
size: "sm",
|
|
119
125
|
variant: "outline",
|
|
120
|
-
onClick: () =>
|
|
121
|
-
disabled:
|
|
122
|
-
children: [/* @__PURE__ */
|
|
126
|
+
onClick: () => P(e.id),
|
|
127
|
+
disabled: N.isPending,
|
|
128
|
+
children: [/* @__PURE__ */ u(s, {
|
|
123
129
|
size: 14,
|
|
124
130
|
className: "mr-1"
|
|
125
|
-
}),
|
|
126
|
-
}), e.status !== "DEPRECATED" && /* @__PURE__ */ f
|
|
131
|
+
}), k("admin.providers.verify", "Verify")]
|
|
132
|
+
}), e.status !== "DEPRECATED" && /* @__PURE__ */ u(f, {
|
|
127
133
|
size: "sm",
|
|
128
134
|
variant: "secondary",
|
|
129
|
-
onClick: () =>
|
|
130
|
-
disabled:
|
|
131
|
-
children:
|
|
135
|
+
onClick: () => F(e.id),
|
|
136
|
+
disabled: N.isPending,
|
|
137
|
+
children: k("admin.providers.deprecate", "Deprecate")
|
|
132
138
|
})]
|
|
133
139
|
})
|
|
134
140
|
})
|
|
135
141
|
] }, e.id)) })] })
|
|
136
142
|
}) })] })
|
|
137
143
|
}),
|
|
138
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ u(E, {
|
|
139
145
|
value: "adapters",
|
|
140
|
-
children: /* @__PURE__ */ p
|
|
146
|
+
children: /* @__PURE__ */ d(p, { children: [/* @__PURE__ */ d(g, { children: [/* @__PURE__ */ u(_, { children: k("admin.adapters.title", "Adapter approvals") }), /* @__PURE__ */ u(h, { children: k("admin.adapters.description", "Review submitted integration adapters before they are published to the SubscriberBot adapter marketplace.") })] }), /* @__PURE__ */ u(m, { children: R ? /* @__PURE__ */ u("div", {
|
|
141
147
|
className: "flex min-h-[200px] items-center justify-center",
|
|
142
|
-
children: /* @__PURE__ */
|
|
143
|
-
}) :
|
|
144
|
-
icon: /* @__PURE__ */
|
|
145
|
-
title:
|
|
146
|
-
description:
|
|
147
|
-
}) : /* @__PURE__ */
|
|
148
|
+
children: /* @__PURE__ */ u(y, { size: "lg" })
|
|
149
|
+
}) : W.length === 0 ? /* @__PURE__ */ u(v, {
|
|
150
|
+
icon: /* @__PURE__ */ u(c, { className: "size-6 text-action-primary-bg" }),
|
|
151
|
+
title: k("admin.adapters.emptyTitle", "No adapter submissions"),
|
|
152
|
+
description: k("admin.adapters.emptyDescription", "Submitted integration adapters will appear here for review.")
|
|
153
|
+
}) : /* @__PURE__ */ u("div", {
|
|
148
154
|
className: "overflow-x-auto",
|
|
149
|
-
children: /* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
+
children: /* @__PURE__ */ d(b, { children: [/* @__PURE__ */ u(w, { children: /* @__PURE__ */ d(T, { children: [
|
|
156
|
+
/* @__PURE__ */ u(C, { children: k("admin.adapters.table.adapter", "Adapter") }),
|
|
157
|
+
/* @__PURE__ */ u(C, { children: k("admin.adapters.table.workspace", "Submitting workspace") }),
|
|
158
|
+
/* @__PURE__ */ u(C, { children: k("admin.adapters.table.submitted", "Submitted") }),
|
|
159
|
+
/* @__PURE__ */ u(C, { children: k("admin.adapters.table.status", "Status") }),
|
|
160
|
+
/* @__PURE__ */ u(C, {
|
|
155
161
|
className: "text-right",
|
|
156
|
-
children:
|
|
162
|
+
children: k("admin.adapters.table.actions", "Actions")
|
|
157
163
|
})
|
|
158
|
-
] }) }), /* @__PURE__ */
|
|
159
|
-
/* @__PURE__ */
|
|
164
|
+
] }) }), /* @__PURE__ */ u(x, { children: W.map((e) => /* @__PURE__ */ d(i, { children: [/* @__PURE__ */ d(T, { children: [
|
|
165
|
+
/* @__PURE__ */ u(S, {
|
|
160
166
|
className: "font-medium text-text-primary",
|
|
161
167
|
children: e.adapterId
|
|
162
168
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ u(S, {
|
|
164
170
|
className: "text-text-secondary",
|
|
165
171
|
children: e.submitterWorkspaceId
|
|
166
172
|
}),
|
|
167
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ u(S, {
|
|
168
174
|
className: "text-text-secondary",
|
|
169
175
|
children: t(e.createdAt)
|
|
170
176
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ u(S, { children: /* @__PURE__ */ u(n, { status: e.status }) }),
|
|
178
|
+
/* @__PURE__ */ u(S, {
|
|
173
179
|
className: "text-right",
|
|
174
|
-
children: e.status === "PENDING" && /* @__PURE__ */
|
|
180
|
+
children: e.status === "PENDING" && /* @__PURE__ */ d("div", {
|
|
175
181
|
className: "flex justify-end gap-2",
|
|
176
|
-
children: [/* @__PURE__ */
|
|
182
|
+
children: [/* @__PURE__ */ d(f, {
|
|
177
183
|
size: "sm",
|
|
178
184
|
variant: "outline",
|
|
179
|
-
onClick: () =>
|
|
180
|
-
disabled:
|
|
181
|
-
children: [/* @__PURE__ */
|
|
185
|
+
onClick: () => ge(e.id),
|
|
186
|
+
disabled: z.isPending || B.isPending,
|
|
187
|
+
children: [/* @__PURE__ */ u(s, {
|
|
182
188
|
size: 14,
|
|
183
189
|
className: "mr-1"
|
|
184
|
-
}),
|
|
185
|
-
}), /* @__PURE__ */
|
|
190
|
+
}), k("admin.adapters.approve", "Approve")]
|
|
191
|
+
}), /* @__PURE__ */ d(f, {
|
|
186
192
|
size: "sm",
|
|
187
193
|
variant: "secondary",
|
|
188
|
-
onClick: () =>
|
|
189
|
-
disabled:
|
|
190
|
-
children: [/* @__PURE__ */
|
|
194
|
+
onClick: () => _e(e.id),
|
|
195
|
+
disabled: z.isPending || B.isPending,
|
|
196
|
+
children: [/* @__PURE__ */ u(de, {
|
|
191
197
|
size: 14,
|
|
192
198
|
className: "mr-1"
|
|
193
|
-
}),
|
|
199
|
+
}), k("admin.adapters.reject", "Reject")]
|
|
194
200
|
})]
|
|
195
201
|
})
|
|
196
202
|
})
|
|
197
|
-
] }),
|
|
203
|
+
] }), he === e.id && /* @__PURE__ */ u(T, { children: /* @__PURE__ */ u(S, {
|
|
198
204
|
colSpan: 5,
|
|
199
205
|
className: "bg-bg-sunken",
|
|
200
|
-
children: /* @__PURE__ */
|
|
206
|
+
children: /* @__PURE__ */ d("div", {
|
|
201
207
|
className: "flex flex-col gap-2 py-1 sm:flex-row sm:items-start",
|
|
202
|
-
children: [/* @__PURE__ */
|
|
203
|
-
value:
|
|
204
|
-
onChange: (e) =>
|
|
205
|
-
placeholder:
|
|
208
|
+
children: [/* @__PURE__ */ u(O, {
|
|
209
|
+
value: H,
|
|
210
|
+
onChange: (e) => U(e.target.value),
|
|
211
|
+
placeholder: k("admin.adapters.rejectPlaceholder", "Reason for rejecting this adapter submission (required)"),
|
|
206
212
|
className: "min-h-[60px] flex-1",
|
|
207
213
|
autoFocus: !0
|
|
208
|
-
}), /* @__PURE__ */
|
|
214
|
+
}), /* @__PURE__ */ d("div", {
|
|
209
215
|
className: "flex gap-2 sm:flex-col",
|
|
210
|
-
children: [/* @__PURE__ */ f
|
|
216
|
+
children: [/* @__PURE__ */ u(f, {
|
|
211
217
|
size: "sm",
|
|
212
218
|
variant: "destructive",
|
|
213
|
-
onClick: () =>
|
|
214
|
-
disabled: !
|
|
215
|
-
children:
|
|
216
|
-
}), /* @__PURE__ */ f
|
|
219
|
+
onClick: () => ve(e.id),
|
|
220
|
+
disabled: !H.trim() || B.isPending,
|
|
221
|
+
children: k("admin.adapters.confirmReject", "Confirm reject")
|
|
222
|
+
}), /* @__PURE__ */ u(f, {
|
|
217
223
|
size: "sm",
|
|
218
224
|
variant: "outline",
|
|
219
|
-
onClick: () =>
|
|
220
|
-
disabled:
|
|
221
|
-
children:
|
|
225
|
+
onClick: () => V(null),
|
|
226
|
+
disabled: B.isPending,
|
|
227
|
+
children: k("admin.adapters.cancel", "Cancel")
|
|
222
228
|
})]
|
|
223
229
|
})]
|
|
224
230
|
})
|
|
225
231
|
}) }, `${e.id}-reject`)] }, e.id)) })] })
|
|
226
232
|
}) })] })
|
|
227
233
|
}),
|
|
228
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ u(E, {
|
|
229
235
|
value: "marketplace",
|
|
230
|
-
children: /* @__PURE__ */ p
|
|
236
|
+
children: /* @__PURE__ */ d(p, { children: [/* @__PURE__ */ d(g, { children: [/* @__PURE__ */ u(_, { children: k("admin.marketplace.title", "Marketplace moderation") }), /* @__PURE__ */ u(h, { children: k("admin.marketplace.description", "Review reported marketplace listings and take moderation actions.") })] }), /* @__PURE__ */ u(m, { children: be ? /* @__PURE__ */ u("div", {
|
|
231
237
|
className: "flex min-h-[200px] items-center justify-center",
|
|
232
|
-
children: /* @__PURE__ */
|
|
233
|
-
}) : Q.length === 0 ? /* @__PURE__ */
|
|
234
|
-
icon: /* @__PURE__ */
|
|
235
|
-
title:
|
|
236
|
-
description:
|
|
237
|
-
}) : /* @__PURE__ */
|
|
238
|
+
children: /* @__PURE__ */ u(y, { size: "lg" })
|
|
239
|
+
}) : Q.length === 0 ? /* @__PURE__ */ u(v, {
|
|
240
|
+
icon: /* @__PURE__ */ u(l, { className: "size-6 text-action-primary-bg" }),
|
|
241
|
+
title: k("admin.marketplace.emptyTitle", "No reported listings"),
|
|
242
|
+
description: k("admin.marketplace.emptyDescription", "Reported marketplace listings will appear here for moderation.")
|
|
243
|
+
}) : /* @__PURE__ */ u("div", {
|
|
238
244
|
className: "overflow-x-auto",
|
|
239
|
-
children: /* @__PURE__ */
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
/* @__PURE__ */
|
|
245
|
-
/* @__PURE__ */
|
|
245
|
+
children: /* @__PURE__ */ d(b, { children: [/* @__PURE__ */ u(w, { children: /* @__PURE__ */ d(T, { children: [
|
|
246
|
+
/* @__PURE__ */ u(C, { children: k("admin.marketplace.table.listing", "Listing") }),
|
|
247
|
+
/* @__PURE__ */ u(C, { children: k("admin.marketplace.table.workspace", "Reporting workspace") }),
|
|
248
|
+
/* @__PURE__ */ u(C, { children: k("admin.marketplace.table.reported", "Reported") }),
|
|
249
|
+
/* @__PURE__ */ u(C, { children: k("admin.marketplace.table.reason", "Reason") }),
|
|
250
|
+
/* @__PURE__ */ u(C, { children: k("admin.marketplace.table.status", "Status") }),
|
|
251
|
+
/* @__PURE__ */ u(C, {
|
|
246
252
|
className: "text-right",
|
|
247
|
-
children:
|
|
253
|
+
children: k("admin.marketplace.table.actions", "Actions")
|
|
248
254
|
})
|
|
249
|
-
] }) }), /* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */
|
|
255
|
+
] }) }), /* @__PURE__ */ u(x, { children: Q.map((e) => /* @__PURE__ */ d(i, { children: [/* @__PURE__ */ d(T, { children: [
|
|
256
|
+
/* @__PURE__ */ u(S, {
|
|
251
257
|
className: "font-medium text-text-primary",
|
|
252
258
|
children: e.listingId
|
|
253
259
|
}),
|
|
254
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ u(S, {
|
|
255
261
|
className: "text-text-secondary",
|
|
256
262
|
children: e.reporterWorkspaceId
|
|
257
263
|
}),
|
|
258
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ u(S, {
|
|
259
265
|
className: "text-text-secondary",
|
|
260
266
|
children: t(e.createdAt)
|
|
261
267
|
}),
|
|
262
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ u(S, {
|
|
263
269
|
className: "text-text-secondary",
|
|
264
270
|
children: e.reason
|
|
265
271
|
}),
|
|
266
|
-
/* @__PURE__ */
|
|
267
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ u(S, { children: /* @__PURE__ */ u(n, { status: e.status }) }),
|
|
273
|
+
/* @__PURE__ */ u(S, {
|
|
268
274
|
className: "text-right",
|
|
269
|
-
children: e.status === "PENDING" && /* @__PURE__ */
|
|
275
|
+
children: e.status === "PENDING" && /* @__PURE__ */ d("div", {
|
|
270
276
|
className: "flex justify-end gap-2",
|
|
271
|
-
children: [/* @__PURE__ */ f
|
|
277
|
+
children: [/* @__PURE__ */ u(f, {
|
|
272
278
|
size: "sm",
|
|
273
279
|
variant: "outline",
|
|
274
280
|
onClick: () => $(e.id, "DISMISS"),
|
|
275
|
-
disabled:
|
|
276
|
-
children:
|
|
277
|
-
}), /* @__PURE__ */ f
|
|
281
|
+
disabled: G.isPending,
|
|
282
|
+
children: k("admin.marketplace.dismiss", "Dismiss")
|
|
283
|
+
}), /* @__PURE__ */ u(f, {
|
|
278
284
|
size: "sm",
|
|
279
285
|
variant: "destructive",
|
|
280
286
|
onClick: () => $(e.id, "REMOVE_LISTING"),
|
|
281
|
-
disabled:
|
|
282
|
-
children:
|
|
287
|
+
disabled: G.isPending,
|
|
288
|
+
children: k("admin.marketplace.remove", "Remove")
|
|
283
289
|
})]
|
|
284
290
|
})
|
|
285
291
|
})
|
|
286
|
-
] }),
|
|
292
|
+
] }), K === e.id && /* @__PURE__ */ u(T, { children: /* @__PURE__ */ u(S, {
|
|
287
293
|
colSpan: 6,
|
|
288
294
|
className: "bg-bg-sunken",
|
|
289
|
-
children: /* @__PURE__ */
|
|
295
|
+
children: /* @__PURE__ */ d("div", {
|
|
290
296
|
className: "flex flex-col gap-2 py-1 sm:flex-row sm:items-start",
|
|
291
|
-
children: [/* @__PURE__ */
|
|
297
|
+
children: [/* @__PURE__ */ u(O, {
|
|
292
298
|
value: X,
|
|
293
299
|
onChange: (e) => Z(e.target.value),
|
|
294
|
-
placeholder: J === "REMOVE_LISTING" ?
|
|
300
|
+
placeholder: J === "REMOVE_LISTING" ? k("admin.marketplace.reasonPlaceholderRemove", "Reason to remove this listing (required)") : k("admin.marketplace.reasonPlaceholderDismiss", "Reason to dismiss this report (required)"),
|
|
295
301
|
className: "min-h-[60px] flex-1",
|
|
296
302
|
autoFocus: !0
|
|
297
|
-
}), /* @__PURE__ */
|
|
303
|
+
}), /* @__PURE__ */ d("div", {
|
|
298
304
|
className: "flex gap-2 sm:flex-col",
|
|
299
|
-
children: [/* @__PURE__ */ f
|
|
305
|
+
children: [/* @__PURE__ */ u(f, {
|
|
300
306
|
size: "sm",
|
|
301
307
|
variant: J === "REMOVE_LISTING" ? "destructive" : "outline",
|
|
302
|
-
onClick: () =>
|
|
303
|
-
disabled: !X.trim() ||
|
|
304
|
-
children: J === "REMOVE_LISTING" ?
|
|
305
|
-
}), /* @__PURE__ */ f
|
|
308
|
+
onClick: () => xe(e.id),
|
|
309
|
+
disabled: !X.trim() || G.isPending,
|
|
310
|
+
children: J === "REMOVE_LISTING" ? k("admin.marketplace.confirmRemoval", "Confirm removal") : k("admin.marketplace.confirmDismissal", "Confirm dismissal")
|
|
311
|
+
}), /* @__PURE__ */ u(f, {
|
|
306
312
|
size: "sm",
|
|
307
313
|
variant: "outline",
|
|
308
314
|
onClick: () => q(null),
|
|
309
|
-
disabled:
|
|
310
|
-
children:
|
|
315
|
+
disabled: G.isPending,
|
|
316
|
+
children: k("admin.marketplace.cancel", "Cancel")
|
|
311
317
|
})]
|
|
312
318
|
})]
|
|
313
319
|
})
|
|
314
320
|
}) }, `${e.id}-moderate`)] }, e.id)) })] })
|
|
315
321
|
}) })] })
|
|
316
322
|
}),
|
|
317
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ u(E, {
|
|
318
324
|
value: "negotiations",
|
|
319
|
-
children: /* @__PURE__ */ p
|
|
325
|
+
children: /* @__PURE__ */ d(p, { children: [/* @__PURE__ */ d(g, { children: [/* @__PURE__ */ u(_, { children: k("admin.desk.title", "Negotiation desk") }), /* @__PURE__ */ u(h, { children: k("admin.desk.description", "Managed bill negotiations customers authorised, across all workspaces. Recording a successful outcome bills the success fee in global billing.") })] }), /* @__PURE__ */ u(m, { children: /* @__PURE__ */ u(se, {}) })] })
|
|
326
|
+
}),
|
|
327
|
+
/* @__PURE__ */ u(E, {
|
|
328
|
+
value: "procurement",
|
|
329
|
+
children: /* @__PURE__ */ d(p, { children: [/* @__PURE__ */ d(g, { children: [/* @__PURE__ */ u(_, { children: k("admin.procurement.title", "Procurement desk") }), /* @__PURE__ */ u(h, { children: k("admin.procurement.description", "Expert procurement requests customers authorised, across all workspaces, earliest deadline first. Recording a successful outcome bills the success fee in global billing.") })] }), /* @__PURE__ */ u(m, { children: /* @__PURE__ */ u(ce, {}) })] })
|
|
320
330
|
})
|
|
321
331
|
]
|
|
322
332
|
})
|
|
323
333
|
});
|
|
324
334
|
};
|
|
325
335
|
//#endregion
|
|
326
|
-
export {
|
|
336
|
+
export { k as AdminDashboardPage };
|
|
327
337
|
|
|
328
338
|
//# sourceMappingURL=AdminDashboardPage.js.map
|