@burdenoff/microfe-subscriberbot 2026.1031.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/NegotiationDetailPage.stories.d.ts +11 -0
- package/dist/stories/pages/NegotiationDetailPage.stories.d.ts.map +1 -0
- package/dist/stories/pages/NegotiationNewPage.stories.d.ts +9 -0
- package/dist/stories/pages/NegotiationNewPage.stories.d.ts.map +1 -0
- package/dist/stories/pages/NegotiationsPage.stories.d.ts +11 -0
- package/dist/stories/pages/NegotiationsPage.stories.d.ts.map +1 -0
- 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/negotiationFixtures.d.ts +14 -0
- package/dist/stories/support/negotiationFixtures.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 +30 -6
- package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
- package/dist/subscriberbot/admin/AdminDashboardPage.d.ts.map +1 -1
- package/dist/subscriberbot/admin/AdminDashboardPage.js +166 -146
- package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
- package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts +4 -0
- package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts.map +1 -0
- package/dist/subscriberbot/admin/NegotiationDeskPanel.js +210 -0
- package/dist/subscriberbot/admin/NegotiationDeskPanel.js.map +1 -0
- 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/negotiations/NegotiationStatusPill.d.ts +8 -0
- package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.d.ts.map +1 -0
- package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js +18 -0
- package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js.map +1 -0
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts +8 -0
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts.map +1 -0
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js +49 -0
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js.map +1 -0
- package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts +13 -0
- package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts.map +1 -0
- package/dist/subscriberbot/components/negotiations/OutcomeForm.js +112 -0
- package/dist/subscriberbot/components/negotiations/OutcomeForm.js.map +1 -0
- package/dist/subscriberbot/components/negotiations/index.d.ts +5 -0
- package/dist/subscriberbot/components/negotiations/index.d.ts.map +1 -0
- package/dist/subscriberbot/components/negotiations/index.js +4 -0
- package/dist/subscriberbot/components/negotiations/labels.d.ts +16 -0
- package/dist/subscriberbot/components/negotiations/labels.d.ts.map +1 -0
- package/dist/subscriberbot/components/negotiations/labels.js +179 -0
- package/dist/subscriberbot/components/negotiations/labels.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/useNegotiationApi.d.ts +51 -0
- package/dist/subscriberbot/hooks/useNegotiationApi.d.ts.map +1 -0
- package/dist/subscriberbot/hooks/useNegotiationApi.js +106 -0
- package/dist/subscriberbot/hooks/useNegotiationApi.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/hooks/useSubscriberBotApi.d.ts +1 -0
- package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +1 -1
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js +1 -1
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts +11 -0
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js +312 -0
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js.map +1 -0
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts +11 -0
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js +375 -0
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js.map +1 -0
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts +10 -0
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts.map +1 -0
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js +155 -0
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.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 +149 -124
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
- package/dist/subscriberbot/types/negotiation.d.ts +101 -0
- package/dist/subscriberbot/types/negotiation.d.ts.map +1 -0
- package/dist/subscriberbot/types/procurement.d.ts +127 -0
- package/dist/subscriberbot/types/procurement.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
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
|
-
import { useTr as
|
|
5
|
-
import { useAdapterSubmissions as
|
|
4
|
+
import { useTr as ee } from "../hooks/useTr.js";
|
|
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";
|
|
6
8
|
import "../hooks/index.js";
|
|
7
|
-
import { Fragment as
|
|
8
|
-
import { CheckCircle2 as
|
|
9
|
-
import { jsx as
|
|
10
|
-
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";
|
|
11
13
|
//#region src/subscriberbot/admin/AdminDashboardPage.tsx
|
|
12
|
-
var
|
|
13
|
-
let
|
|
14
|
+
var k = () => {
|
|
15
|
+
let k = ee(), [me, A] = a("providers"), { data: j, isLoading: M } = ie({ pagination: { limit: 50 } }), N = oe(), P = (e) => {
|
|
14
16
|
N.mutate({
|
|
15
17
|
id: e,
|
|
16
18
|
input: { status: "VERIFIED" }
|
|
@@ -20,21 +22,21 @@ var j = () => {
|
|
|
20
22
|
id: e,
|
|
21
23
|
input: { status: "DEPRECATED" }
|
|
22
24
|
});
|
|
23
|
-
}, I =
|
|
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) => {
|
|
24
26
|
z.mutate({ id: e });
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, _e = (e) => {
|
|
28
|
+
V(e), U("");
|
|
29
|
+
}, ve = (e) => {
|
|
30
|
+
H.trim() && B.mutate({
|
|
29
31
|
id: e,
|
|
30
|
-
reason:
|
|
32
|
+
reason: H.trim()
|
|
31
33
|
}, { onSuccess: () => {
|
|
32
|
-
|
|
34
|
+
V(null), U("");
|
|
33
35
|
} });
|
|
34
|
-
}, { 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) => {
|
|
35
37
|
q(e), Y(t), Z("");
|
|
36
|
-
},
|
|
37
|
-
!J || !X.trim() ||
|
|
38
|
+
}, xe = (e) => {
|
|
39
|
+
!J || !X.trim() || G.mutate({
|
|
38
40
|
id: e,
|
|
39
41
|
action: J,
|
|
40
42
|
reason: X.trim()
|
|
@@ -42,277 +44,295 @@ var j = () => {
|
|
|
42
44
|
q(null), Y(null), Z("");
|
|
43
45
|
} });
|
|
44
46
|
};
|
|
45
|
-
return /* @__PURE__ */
|
|
46
|
-
title:
|
|
47
|
-
description:
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
-
value:
|
|
50
|
-
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,
|
|
51
53
|
className: "w-full",
|
|
52
54
|
children: [
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
className: "mb-4 grid w-full grid-cols-
|
|
55
|
+
/* @__PURE__ */ d(pe, {
|
|
56
|
+
className: "mb-4 grid w-full grid-cols-2 sm:w-auto sm:inline-flex",
|
|
55
57
|
children: [
|
|
56
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ d(D, {
|
|
57
59
|
value: "providers",
|
|
58
60
|
className: "gap-2",
|
|
59
|
-
children: [/* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ u(ue, { size: 16 }), k("admin.tabs.providers", "Provider Registry")]
|
|
60
62
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ d(D, {
|
|
62
64
|
value: "adapters",
|
|
63
65
|
className: "gap-2",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
66
|
+
children: [/* @__PURE__ */ u(c, { size: 16 }), k("admin.tabs.adapters", "Adapter Approvals")]
|
|
65
67
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ d(D, {
|
|
67
69
|
value: "marketplace",
|
|
68
70
|
className: "gap-2",
|
|
69
|
-
children: [/* @__PURE__ */
|
|
71
|
+
children: [/* @__PURE__ */ u(l, { size: 16 }), k("admin.tabs.marketplace", "Marketplace Moderation")]
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ d(D, {
|
|
74
|
+
value: "negotiations",
|
|
75
|
+
className: "gap-2",
|
|
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")]
|
|
70
82
|
})
|
|
71
83
|
]
|
|
72
84
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ u(E, {
|
|
74
86
|
value: "providers",
|
|
75
|
-
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", {
|
|
76
88
|
className: "flex min-h-[200px] items-center justify-center",
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
-
}) : I.length === 0 ? /* @__PURE__ */
|
|
79
|
-
icon: /* @__PURE__ */
|
|
80
|
-
title:
|
|
81
|
-
description:
|
|
82
|
-
}) : /* @__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", {
|
|
83
95
|
className: "overflow-x-auto",
|
|
84
|
-
children: /* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
/* @__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, {
|
|
90
102
|
className: "text-right",
|
|
91
|
-
children:
|
|
103
|
+
children: k("admin.providers.table.actions", "Actions")
|
|
92
104
|
})
|
|
93
|
-
] }) }), /* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
105
|
+
] }) }), /* @__PURE__ */ u(x, { children: I.map((e) => /* @__PURE__ */ d(T, { children: [
|
|
106
|
+
/* @__PURE__ */ u(S, {
|
|
95
107
|
className: "font-medium text-text-primary",
|
|
96
108
|
children: e.name
|
|
97
109
|
}),
|
|
98
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ u(S, {
|
|
99
111
|
className: "text-text-secondary",
|
|
100
112
|
children: e.category
|
|
101
113
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ u(S, { children: /* @__PURE__ */ u(n, { status: e.status }) }),
|
|
115
|
+
/* @__PURE__ */ u(S, {
|
|
104
116
|
className: "text-text-secondary",
|
|
105
117
|
children: t(e.createdAt)
|
|
106
118
|
}),
|
|
107
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ u(S, {
|
|
108
120
|
className: "text-right",
|
|
109
|
-
children: /* @__PURE__ */
|
|
121
|
+
children: /* @__PURE__ */ d("div", {
|
|
110
122
|
className: "flex justify-end gap-2",
|
|
111
|
-
children: [e.status !== "VERIFIED" && /* @__PURE__ */
|
|
123
|
+
children: [e.status !== "VERIFIED" && /* @__PURE__ */ d(f, {
|
|
112
124
|
size: "sm",
|
|
113
125
|
variant: "outline",
|
|
114
126
|
onClick: () => P(e.id),
|
|
115
127
|
disabled: N.isPending,
|
|
116
|
-
children: [/* @__PURE__ */
|
|
128
|
+
children: [/* @__PURE__ */ u(s, {
|
|
117
129
|
size: 14,
|
|
118
130
|
className: "mr-1"
|
|
119
|
-
}),
|
|
120
|
-
}), e.status !== "DEPRECATED" && /* @__PURE__ */ f
|
|
131
|
+
}), k("admin.providers.verify", "Verify")]
|
|
132
|
+
}), e.status !== "DEPRECATED" && /* @__PURE__ */ u(f, {
|
|
121
133
|
size: "sm",
|
|
122
134
|
variant: "secondary",
|
|
123
135
|
onClick: () => F(e.id),
|
|
124
136
|
disabled: N.isPending,
|
|
125
|
-
children:
|
|
137
|
+
children: k("admin.providers.deprecate", "Deprecate")
|
|
126
138
|
})]
|
|
127
139
|
})
|
|
128
140
|
})
|
|
129
141
|
] }, e.id)) })] })
|
|
130
142
|
}) })] })
|
|
131
143
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ u(E, {
|
|
133
145
|
value: "adapters",
|
|
134
|
-
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", {
|
|
135
147
|
className: "flex min-h-[200px] items-center justify-center",
|
|
136
|
-
children: /* @__PURE__ */
|
|
137
|
-
}) :
|
|
138
|
-
icon: /* @__PURE__ */
|
|
139
|
-
title:
|
|
140
|
-
description:
|
|
141
|
-
}) : /* @__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", {
|
|
142
154
|
className: "overflow-x-auto",
|
|
143
|
-
children: /* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
/* @__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, {
|
|
149
161
|
className: "text-right",
|
|
150
|
-
children:
|
|
162
|
+
children: k("admin.adapters.table.actions", "Actions")
|
|
151
163
|
})
|
|
152
|
-
] }) }), /* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */
|
|
164
|
+
] }) }), /* @__PURE__ */ u(x, { children: W.map((e) => /* @__PURE__ */ d(i, { children: [/* @__PURE__ */ d(T, { children: [
|
|
165
|
+
/* @__PURE__ */ u(S, {
|
|
154
166
|
className: "font-medium text-text-primary",
|
|
155
167
|
children: e.adapterId
|
|
156
168
|
}),
|
|
157
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ u(S, {
|
|
158
170
|
className: "text-text-secondary",
|
|
159
171
|
children: e.submitterWorkspaceId
|
|
160
172
|
}),
|
|
161
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ u(S, {
|
|
162
174
|
className: "text-text-secondary",
|
|
163
175
|
children: t(e.createdAt)
|
|
164
176
|
}),
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ u(S, { children: /* @__PURE__ */ u(n, { status: e.status }) }),
|
|
178
|
+
/* @__PURE__ */ u(S, {
|
|
167
179
|
className: "text-right",
|
|
168
|
-
children: e.status === "PENDING" && /* @__PURE__ */
|
|
180
|
+
children: e.status === "PENDING" && /* @__PURE__ */ d("div", {
|
|
169
181
|
className: "flex justify-end gap-2",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
182
|
+
children: [/* @__PURE__ */ d(f, {
|
|
171
183
|
size: "sm",
|
|
172
184
|
variant: "outline",
|
|
173
|
-
onClick: () =>
|
|
185
|
+
onClick: () => ge(e.id),
|
|
174
186
|
disabled: z.isPending || B.isPending,
|
|
175
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ u(s, {
|
|
176
188
|
size: 14,
|
|
177
189
|
className: "mr-1"
|
|
178
|
-
}),
|
|
179
|
-
}), /* @__PURE__ */
|
|
190
|
+
}), k("admin.adapters.approve", "Approve")]
|
|
191
|
+
}), /* @__PURE__ */ d(f, {
|
|
180
192
|
size: "sm",
|
|
181
193
|
variant: "secondary",
|
|
182
|
-
onClick: () =>
|
|
194
|
+
onClick: () => _e(e.id),
|
|
183
195
|
disabled: z.isPending || B.isPending,
|
|
184
|
-
children: [/* @__PURE__ */
|
|
196
|
+
children: [/* @__PURE__ */ u(de, {
|
|
185
197
|
size: 14,
|
|
186
198
|
className: "mr-1"
|
|
187
|
-
}),
|
|
199
|
+
}), k("admin.adapters.reject", "Reject")]
|
|
188
200
|
})]
|
|
189
201
|
})
|
|
190
202
|
})
|
|
191
|
-
] }),
|
|
203
|
+
] }), he === e.id && /* @__PURE__ */ u(T, { children: /* @__PURE__ */ u(S, {
|
|
192
204
|
colSpan: 5,
|
|
193
205
|
className: "bg-bg-sunken",
|
|
194
|
-
children: /* @__PURE__ */
|
|
206
|
+
children: /* @__PURE__ */ d("div", {
|
|
195
207
|
className: "flex flex-col gap-2 py-1 sm:flex-row sm:items-start",
|
|
196
|
-
children: [/* @__PURE__ */
|
|
197
|
-
value:
|
|
198
|
-
onChange: (e) =>
|
|
199
|
-
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)"),
|
|
200
212
|
className: "min-h-[60px] flex-1",
|
|
201
213
|
autoFocus: !0
|
|
202
|
-
}), /* @__PURE__ */
|
|
214
|
+
}), /* @__PURE__ */ d("div", {
|
|
203
215
|
className: "flex gap-2 sm:flex-col",
|
|
204
|
-
children: [/* @__PURE__ */ f
|
|
216
|
+
children: [/* @__PURE__ */ u(f, {
|
|
205
217
|
size: "sm",
|
|
206
218
|
variant: "destructive",
|
|
207
|
-
onClick: () =>
|
|
208
|
-
disabled: !
|
|
209
|
-
children:
|
|
210
|
-
}), /* @__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, {
|
|
211
223
|
size: "sm",
|
|
212
224
|
variant: "outline",
|
|
213
|
-
onClick: () =>
|
|
225
|
+
onClick: () => V(null),
|
|
214
226
|
disabled: B.isPending,
|
|
215
|
-
children:
|
|
227
|
+
children: k("admin.adapters.cancel", "Cancel")
|
|
216
228
|
})]
|
|
217
229
|
})]
|
|
218
230
|
})
|
|
219
231
|
}) }, `${e.id}-reject`)] }, e.id)) })] })
|
|
220
232
|
}) })] })
|
|
221
233
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ u(E, {
|
|
223
235
|
value: "marketplace",
|
|
224
|
-
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", {
|
|
225
237
|
className: "flex min-h-[200px] items-center justify-center",
|
|
226
|
-
children: /* @__PURE__ */
|
|
227
|
-
}) : Q.length === 0 ? /* @__PURE__ */
|
|
228
|
-
icon: /* @__PURE__ */
|
|
229
|
-
title:
|
|
230
|
-
description:
|
|
231
|
-
}) : /* @__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", {
|
|
232
244
|
className: "overflow-x-auto",
|
|
233
|
-
children: /* @__PURE__ */
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
/* @__PURE__ */
|
|
238
|
-
/* @__PURE__ */
|
|
239
|
-
/* @__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, {
|
|
240
252
|
className: "text-right",
|
|
241
|
-
children:
|
|
253
|
+
children: k("admin.marketplace.table.actions", "Actions")
|
|
242
254
|
})
|
|
243
|
-
] }) }), /* @__PURE__ */
|
|
244
|
-
/* @__PURE__ */
|
|
255
|
+
] }) }), /* @__PURE__ */ u(x, { children: Q.map((e) => /* @__PURE__ */ d(i, { children: [/* @__PURE__ */ d(T, { children: [
|
|
256
|
+
/* @__PURE__ */ u(S, {
|
|
245
257
|
className: "font-medium text-text-primary",
|
|
246
258
|
children: e.listingId
|
|
247
259
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ u(S, {
|
|
249
261
|
className: "text-text-secondary",
|
|
250
262
|
children: e.reporterWorkspaceId
|
|
251
263
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ u(S, {
|
|
253
265
|
className: "text-text-secondary",
|
|
254
266
|
children: t(e.createdAt)
|
|
255
267
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ u(S, {
|
|
257
269
|
className: "text-text-secondary",
|
|
258
270
|
children: e.reason
|
|
259
271
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ u(S, { children: /* @__PURE__ */ u(n, { status: e.status }) }),
|
|
273
|
+
/* @__PURE__ */ u(S, {
|
|
262
274
|
className: "text-right",
|
|
263
|
-
children: e.status === "PENDING" && /* @__PURE__ */
|
|
275
|
+
children: e.status === "PENDING" && /* @__PURE__ */ d("div", {
|
|
264
276
|
className: "flex justify-end gap-2",
|
|
265
|
-
children: [/* @__PURE__ */ f
|
|
277
|
+
children: [/* @__PURE__ */ u(f, {
|
|
266
278
|
size: "sm",
|
|
267
279
|
variant: "outline",
|
|
268
280
|
onClick: () => $(e.id, "DISMISS"),
|
|
269
|
-
disabled:
|
|
270
|
-
children:
|
|
271
|
-
}), /* @__PURE__ */ f
|
|
281
|
+
disabled: G.isPending,
|
|
282
|
+
children: k("admin.marketplace.dismiss", "Dismiss")
|
|
283
|
+
}), /* @__PURE__ */ u(f, {
|
|
272
284
|
size: "sm",
|
|
273
285
|
variant: "destructive",
|
|
274
286
|
onClick: () => $(e.id, "REMOVE_LISTING"),
|
|
275
|
-
disabled:
|
|
276
|
-
children:
|
|
287
|
+
disabled: G.isPending,
|
|
288
|
+
children: k("admin.marketplace.remove", "Remove")
|
|
277
289
|
})]
|
|
278
290
|
})
|
|
279
291
|
})
|
|
280
|
-
] }),
|
|
292
|
+
] }), K === e.id && /* @__PURE__ */ u(T, { children: /* @__PURE__ */ u(S, {
|
|
281
293
|
colSpan: 6,
|
|
282
294
|
className: "bg-bg-sunken",
|
|
283
|
-
children: /* @__PURE__ */
|
|
295
|
+
children: /* @__PURE__ */ d("div", {
|
|
284
296
|
className: "flex flex-col gap-2 py-1 sm:flex-row sm:items-start",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
297
|
+
children: [/* @__PURE__ */ u(O, {
|
|
286
298
|
value: X,
|
|
287
299
|
onChange: (e) => Z(e.target.value),
|
|
288
|
-
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)"),
|
|
289
301
|
className: "min-h-[60px] flex-1",
|
|
290
302
|
autoFocus: !0
|
|
291
|
-
}), /* @__PURE__ */
|
|
303
|
+
}), /* @__PURE__ */ d("div", {
|
|
292
304
|
className: "flex gap-2 sm:flex-col",
|
|
293
|
-
children: [/* @__PURE__ */ f
|
|
305
|
+
children: [/* @__PURE__ */ u(f, {
|
|
294
306
|
size: "sm",
|
|
295
307
|
variant: J === "REMOVE_LISTING" ? "destructive" : "outline",
|
|
296
|
-
onClick: () =>
|
|
297
|
-
disabled: !X.trim() ||
|
|
298
|
-
children: J === "REMOVE_LISTING" ?
|
|
299
|
-
}), /* @__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, {
|
|
300
312
|
size: "sm",
|
|
301
313
|
variant: "outline",
|
|
302
314
|
onClick: () => q(null),
|
|
303
|
-
disabled:
|
|
304
|
-
children:
|
|
315
|
+
disabled: G.isPending,
|
|
316
|
+
children: k("admin.marketplace.cancel", "Cancel")
|
|
305
317
|
})]
|
|
306
318
|
})]
|
|
307
319
|
})
|
|
308
320
|
}) }, `${e.id}-moderate`)] }, e.id)) })] })
|
|
309
321
|
}) })] })
|
|
322
|
+
}),
|
|
323
|
+
/* @__PURE__ */ u(E, {
|
|
324
|
+
value: "negotiations",
|
|
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, {}) })] })
|
|
310
330
|
})
|
|
311
331
|
]
|
|
312
332
|
})
|
|
313
333
|
});
|
|
314
334
|
};
|
|
315
335
|
//#endregion
|
|
316
|
-
export {
|
|
336
|
+
export { k as AdminDashboardPage };
|
|
317
337
|
|
|
318
338
|
//# sourceMappingURL=AdminDashboardPage.js.map
|