@burdenoff/microfe-subscriberbot 2026.1103.2 → 2026.1105.1
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/index.js +3 -3
- package/dist/stories/Accessibility.stories.d.ts +13 -0
- package/dist/stories/Accessibility.stories.d.ts.map +1 -0
- package/dist/stories/pages/AgentNewPage.stories.d.ts.map +1 -1
- package/dist/stories/pages/BankConnectionsPage.stories.d.ts +1 -0
- package/dist/stories/pages/BankConnectionsPage.stories.d.ts.map +1 -1
- package/dist/stories/pages/EnterpriseSpendPage.stories.d.ts.map +1 -1
- package/dist/stories/pages/InboxPage.stories.d.ts.map +1 -1
- package/dist/subscriberbot/admin/AdminDashboardPage.d.ts.map +1 -1
- package/dist/subscriberbot/admin/AdminDashboardPage.js +168 -168
- package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
- package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts.map +1 -1
- package/dist/subscriberbot/admin/NegotiationDeskPanel.js +116 -116
- package/dist/subscriberbot/admin/NegotiationDeskPanel.js.map +1 -1
- package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts.map +1 -1
- package/dist/subscriberbot/admin/ProcurementDeskPanel.js +211 -211
- package/dist/subscriberbot/admin/ProcurementDeskPanel.js.map +1 -1
- package/dist/subscriberbot/components/Modal.d.ts.map +1 -1
- package/dist/subscriberbot/components/Modal.js +43 -33
- package/dist/subscriberbot/components/Modal.js.map +1 -1
- package/dist/subscriberbot/components/PostureOptions.d.ts.map +1 -1
- package/dist/subscriberbot/components/PostureOptions.js +10 -10
- package/dist/subscriberbot/components/PostureOptions.js.map +1 -1
- package/dist/subscriberbot/components/StateViews.d.ts.map +1 -1
- package/dist/subscriberbot/components/StateViews.js +45 -37
- package/dist/subscriberbot/components/StateViews.js.map +1 -1
- package/dist/subscriberbot/components/StatusBadge.d.ts.map +1 -1
- package/dist/subscriberbot/components/StatusBadge.js +6 -6
- package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
- package/dist/subscriberbot/components/decisions/DecisionBanners.js +6 -6
- package/dist/subscriberbot/components/decisions/DecisionCard.d.ts.map +1 -1
- package/dist/subscriberbot/components/decisions/DecisionCard.js +149 -147
- package/dist/subscriberbot/components/decisions/DecisionCard.js.map +1 -1
- package/dist/subscriberbot/components/mobile/MobileDashboard.d.ts.map +1 -1
- package/dist/subscriberbot/components/mobile/MobileDashboard.js +127 -127
- package/dist/subscriberbot/components/mobile/MobileDashboard.js.map +1 -1
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.d.ts.map +1 -1
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.js +114 -114
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.js.map +1 -1
- package/dist/subscriberbot/components/mobile/MobileScreen.js +1 -1
- package/dist/subscriberbot/components/mobile/MobileScreen.js.map +1 -1
- package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js +4 -4
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts.map +1 -1
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js +11 -11
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js.map +1 -1
- package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts.map +1 -1
- package/dist/subscriberbot/components/negotiations/OutcomeForm.js +29 -29
- package/dist/subscriberbot/components/negotiations/OutcomeForm.js.map +1 -1
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts.map +1 -1
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js +43 -43
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js.map +1 -1
- package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js +4 -4
- package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts.map +1 -1
- package/dist/subscriberbot/components/procurement/ProcurementThread.js +14 -14
- package/dist/subscriberbot/components/procurement/ProcurementThread.js.map +1 -1
- package/dist/subscriberbot/components/savings/SavingsCards.d.ts.map +1 -1
- package/dist/subscriberbot/components/savings/SavingsCards.js +242 -237
- package/dist/subscriberbot/components/savings/SavingsCards.js.map +1 -1
- package/dist/subscriberbot/components/viz.d.ts +1 -0
- package/dist/subscriberbot/components/viz.d.ts.map +1 -1
- package/dist/subscriberbot/components/viz.js +100 -101
- package/dist/subscriberbot/components/viz.js.map +1 -1
- package/dist/subscriberbot/hooks/index.js +1 -1
- package/dist/subscriberbot/hooks/useFormError.d.ts +7 -0
- package/dist/subscriberbot/hooks/useFormError.d.ts.map +1 -0
- package/dist/subscriberbot/hooks/useFormError.js +28 -0
- package/dist/subscriberbot/hooks/useFormError.js.map +1 -0
- package/dist/subscriberbot/hooks/useFormatters.d.ts +11 -0
- package/dist/subscriberbot/hooks/useFormatters.d.ts.map +1 -0
- package/dist/subscriberbot/hooks/useFormatters.js +13 -0
- package/dist/subscriberbot/hooks/useFormatters.js.map +1 -0
- package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +1 -1
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js +371 -370
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
- package/dist/subscriberbot/hooks/useTr.d.ts.map +1 -1
- package/dist/subscriberbot/hooks/useTr.js +1 -1
- package/dist/subscriberbot/hooks/useTr.js.map +1 -1
- package/dist/subscriberbot/index.js +1 -1
- package/dist/subscriberbot/pages/AssetVaultPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/AssetVaultPage.js +124 -124
- package/dist/subscriberbot/pages/AssetVaultPage.js.map +1 -1
- package/dist/subscriberbot/pages/DashboardPage.d.ts +0 -10
- package/dist/subscriberbot/pages/DashboardPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/DashboardPage.js +107 -98
- package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
- package/dist/subscriberbot/pages/InboxPage.d.ts +0 -10
- package/dist/subscriberbot/pages/InboxPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/InboxPage.js +421 -402
- package/dist/subscriberbot/pages/InboxPage.js.map +1 -1
- package/dist/subscriberbot/pages/InsightsPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/InsightsPage.js +130 -121
- package/dist/subscriberbot/pages/InsightsPage.js.map +1 -1
- package/dist/subscriberbot/pages/InvoicesPage.d.ts +0 -12
- package/dist/subscriberbot/pages/InvoicesPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/InvoicesPage.js +237 -215
- package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -1
- package/dist/subscriberbot/pages/RenewalsPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/RenewalsPage.js +303 -295
- package/dist/subscriberbot/pages/RenewalsPage.js.map +1 -1
- package/dist/subscriberbot/pages/SavingsPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/SavingsPage.js +57 -57
- package/dist/subscriberbot/pages/SavingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/WorkflowsPage.d.ts +0 -13
- package/dist/subscriberbot/pages/WorkflowsPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/WorkflowsPage.js +202 -196
- package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts +0 -18
- package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentDetailPage.js +283 -275
- package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts +0 -6
- package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentNewPage.js +85 -77
- package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts +0 -9
- package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentsListPage.js +136 -136
- package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -1
- package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts +0 -9
- package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/banking/BankConnectionsPage.js +267 -260
- package/dist/subscriberbot/pages/banking/BankConnectionsPage.js.map +1 -1
- package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts +0 -10
- package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js +96 -96
- package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts +0 -11
- package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/decisions/DecisionsPage.js +46 -46
- package/dist/subscriberbot/pages/decisions/DecisionsPage.js.map +1 -1
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts +0 -11
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js +181 -171
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts +0 -9
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js +164 -164
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts +0 -9
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js +197 -181
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts +0 -8
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js +79 -79
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js.map +1 -1
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts +0 -9
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js +147 -147
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts +0 -10
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js +204 -188
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts +0 -9
- package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/procurement/ProcurementPage.js +80 -80
- package/dist/subscriberbot/pages/procurement/ProcurementPage.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts +0 -10
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +484 -458
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts +0 -8
- package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/providers/ProviderNewPage.js +146 -136
- package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts +0 -10
- package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/providers/ProvidersListPage.js +88 -87
- package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts +0 -11
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +520 -490
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts +0 -8
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +104 -90
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts +0 -8
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +97 -96
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -1
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.d.ts.map +1 -1
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js +76 -74
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js.map +1 -1
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts +5 -3
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts.map +1 -1
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js +26 -25
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js.map +1 -1
- package/dist/subscriberbot/utils/formatters.d.ts +16 -5
- package/dist/subscriberbot/utils/formatters.d.ts.map +1 -1
- package/dist/subscriberbot/utils/formatters.js +57 -25
- package/dist/subscriberbot/utils/formatters.js.map +1 -1
- package/dist/subscriberbot/utils/plaidLink.d.ts +2 -1
- package/dist/subscriberbot/utils/plaidLink.d.ts.map +1 -1
- package/dist/subscriberbot/utils/plaidLink.js +21 -21
- package/dist/subscriberbot/utils/plaidLink.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SubscriberBotProvider as e, useSubscriberBot as t } from "./subscriberbot/context/SubscriberBotContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { formatCurrency as n, formatDate as r, formatDateTime as i, formatEnumLabel as a, formatIntervalSuffix as o, formatNumber as s, formatRelativeTime as c } from "./subscriberbot/utils/formatters.js";
|
|
3
|
+
import { cn as l } from "./subscriberbot/utils/cn.js";
|
|
4
4
|
import { SubscriberBotRoot as u } from "./subscriberbot/SubscriberBotRoot.js";
|
|
5
5
|
import { AdminRoot as d } from "./subscriberbot/admin/AdminRoot.js";
|
|
6
6
|
import { useSubscriberBotStore as f } from "./subscriberbot/store/subscriberbotStore.js";
|
|
7
7
|
import { useSandboxAssistantTransport as p } from "./subscriberbot/services/createSandboxAssistantTransport.js";
|
|
8
8
|
import "./subscriberbot/index.js";
|
|
9
|
-
export { d as AdminRoot, e as SubscriberBotProvider, u as SubscriberBotRoot,
|
|
9
|
+
export { d as AdminRoot, e as SubscriberBotProvider, u as SubscriberBotRoot, l as cn, n as formatCurrency, r as formatDate, i as formatDateTime, a as formatEnumLabel, o as formatIntervalSuffix, s as formatNumber, c as formatRelativeTime, p as useSandboxAssistantTransport, t as useSubscriberBot, f as useSubscriberBotStore };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
declare function DialogFixture(): import("react").JSX.Element;
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof DialogFixture;
|
|
7
|
+
decorators: ((Story: import('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {}>) => import("react").JSX.Element)[];
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const DialogKeyboardAndErrors: Story;
|
|
12
|
+
export declare const SelectedLocaleAndFallbacks: Story;
|
|
13
|
+
//# sourceMappingURL=Accessibility.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accessibility.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Accessibility.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQvD,iBAAS,aAAa,gCAsCrB;AAwBD,QAAA,MAAM,IAAI;;;;CAU4B,CAAC;AACvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,uBAAuB,EAAE,KA0BrC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,KAyCxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentNewPage.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/pages/AgentNewPage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAQ7E,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAQnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAerB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAiBzB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"AgentNewPage.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/pages/AgentNewPage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAQ7E,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAQnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAerB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAiBzB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAe5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAezB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAMjC,CAAC"}
|
|
@@ -9,4 +9,5 @@ export declare const TrackCharge: Story;
|
|
|
9
9
|
export declare const ViewTracked: Story;
|
|
10
10
|
export declare const ImportStatement: Story;
|
|
11
11
|
export declare const Empty: Story;
|
|
12
|
+
export declare const ImportRequiresStatement: Story;
|
|
12
13
|
//# sourceMappingURL=BankConnectionsPage.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BankConnectionsPage.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/pages/BankConnectionsPage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;
|
|
1
|
+
{"version":3,"file":"BankConnectionsPage.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/pages/BankConnectionsPage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAQ5F,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,mBAAmB,CAQ1C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KASzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAQzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAmB7B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAgBrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnterpriseSpendPage.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/pages/EnterpriseSpendPage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAQ/F,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,mBAAmB,CAQ1C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,SAAS,EAAE,KAavB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAqBjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"EnterpriseSpendPage.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/pages/EnterpriseSpendPage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAQ/F,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,mBAAmB,CAQ1C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,SAAS,EAAE,KAavB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAqBjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAgBlC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAiB1B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAQnB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAQhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InboxPage.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/pages/InboxPage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAQhE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAShC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAKnC,eAAO,MAAM,SAAS,EAAE,KAcvB,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,KAW3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAQjC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"InboxPage.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/pages/InboxPage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAQhE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAShC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAKnC,eAAO,MAAM,SAAS,EAAE,KAcvB,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,KAW3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAQjC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAiBtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAkB9B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAcxB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAiBhC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAW9B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAmBxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAgB5B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAOhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminDashboardPage.d.ts","sourceRoot":"","sources":["../../../src/subscriberbot/admin/AdminDashboardPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AdminDashboardPage.d.ts","sourceRoot":"","sources":["../../../src/subscriberbot/admin/AdminDashboardPage.tsx"],"names":[],"mappings":"AACA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAsB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAyCpD,eAAO,MAAM,kBAAkB,EAAE,EAwgBhC,CAAC"}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useTr as e } from "../hooks/useTr.js";
|
|
2
|
+
import { useFormatters as t } from "../hooks/useFormatters.js";
|
|
3
|
+
import { PageLayout as ee } from "../components/PageLayout.js";
|
|
3
4
|
import { StatusBadge as n } from "../components/StatusBadge.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { ProcurementDeskPanel as ce } from "./ProcurementDeskPanel.js";
|
|
5
|
+
import { useAdapterSubmissions as te, useApproveAdapter as ne, useMarketplaceReports as r, useModerateListing as re, useProviders as ie, useRejectAdapter as ae, useUpdateProvider as oe } from "../hooks/useSubscriberBotApi.js";
|
|
6
|
+
import { NegotiationDeskPanel as i } from "./NegotiationDeskPanel.js";
|
|
7
|
+
import { ProcurementDeskPanel as se } from "./ProcurementDeskPanel.js";
|
|
8
8
|
import "../hooks/index.js";
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { Briefcase as
|
|
11
|
-
import { jsx as
|
|
12
|
-
import { Button as
|
|
9
|
+
import { Fragment as a, useState as o } from "react";
|
|
10
|
+
import { Briefcase as ce, CheckCircle2 as s, Handshake as le, Plug as c, Settings2 as l, Store as u, XCircle as ue } from "lucide-react";
|
|
11
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
12
|
+
import { Button as p, Card as m, CardContent as h, CardDescription as g, CardHeader as _, CardTitle as v, EmptyState as y, Spinner as b, Table as x, TableBody as S, TableCell as C, TableHead as w, TableHeader as T, TableRow as E, Tabs as de, TabsContent as D, TabsList as fe, TabsTrigger as O, Textarea as k } from "@burdenoff/fe-libs/ui";
|
|
13
13
|
//#region src/subscriberbot/admin/AdminDashboardPage.tsx
|
|
14
|
-
var
|
|
15
|
-
let
|
|
16
|
-
|
|
14
|
+
var A = () => {
|
|
15
|
+
let { formatDate: A } = t(), j = e(), [pe, me] = o("providers"), { data: M, isLoading: N } = ie({ pagination: { limit: 50 } }), P = oe(), F = (e) => {
|
|
16
|
+
P.mutate({
|
|
17
17
|
id: e,
|
|
18
18
|
input: { status: "VERIFIED" }
|
|
19
19
|
});
|
|
20
|
-
},
|
|
21
|
-
|
|
20
|
+
}, I = (e) => {
|
|
21
|
+
P.mutate({
|
|
22
22
|
id: e,
|
|
23
23
|
input: { status: "DEPRECATED" }
|
|
24
24
|
});
|
|
25
|
-
},
|
|
25
|
+
}, L = M?.items ?? [], { data: R, isLoading: he } = te({ pagination: { limit: 50 } }), z = ne(), B = ae(), [ge, V] = o(null), [H, U] = o(""), W = R?.items ?? [], _e = (e) => {
|
|
26
26
|
z.mutate({ id: e });
|
|
27
|
-
}, _e = (e) => {
|
|
28
|
-
V(e), U("");
|
|
29
27
|
}, ve = (e) => {
|
|
28
|
+
V(e), U("");
|
|
29
|
+
}, ye = (e) => {
|
|
30
30
|
H.trim() && B.mutate({
|
|
31
31
|
id: e,
|
|
32
32
|
reason: H.trim()
|
|
33
33
|
}, { onSuccess: () => {
|
|
34
34
|
V(null), U("");
|
|
35
35
|
} });
|
|
36
|
-
}, { data:
|
|
36
|
+
}, { data: be, isLoading: G } = r({ pagination: { limit: 50 } }), K = re(), [xe, q] = o(null), [J, Y] = o(null), [X, Z] = o(""), Q = be?.items ?? [], $ = (e, t) => {
|
|
37
37
|
q(e), Y(t), Z("");
|
|
38
|
-
},
|
|
39
|
-
!J || !X.trim() ||
|
|
38
|
+
}, Se = (e) => {
|
|
39
|
+
!J || !X.trim() || K.mutate({
|
|
40
40
|
id: e,
|
|
41
41
|
action: J,
|
|
42
42
|
reason: X.trim()
|
|
@@ -44,295 +44,295 @@ var k = () => {
|
|
|
44
44
|
q(null), Y(null), Z("");
|
|
45
45
|
} });
|
|
46
46
|
};
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
title:
|
|
49
|
-
description:
|
|
50
|
-
children: /* @__PURE__ */
|
|
51
|
-
value:
|
|
52
|
-
onValueChange:
|
|
47
|
+
return /* @__PURE__ */ d(ee, {
|
|
48
|
+
title: j("admin.title", "SubscriberBot Admin"),
|
|
49
|
+
description: j("admin.description", "Provider registry curation, adapter approvals, and marketplace moderation."),
|
|
50
|
+
children: /* @__PURE__ */ f(de, {
|
|
51
|
+
value: pe,
|
|
52
|
+
onValueChange: me,
|
|
53
53
|
className: "w-full",
|
|
54
54
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ f(fe, {
|
|
56
56
|
className: "mb-4 grid w-full grid-cols-2 sm:w-auto sm:inline-flex",
|
|
57
57
|
children: [
|
|
58
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ f(O, {
|
|
59
59
|
value: "providers",
|
|
60
60
|
className: "gap-2",
|
|
61
|
-
children: [/* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ d(l, { size: 16 }), j("admin.tabs.providers", "Provider Registry")]
|
|
62
62
|
}),
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ f(O, {
|
|
64
64
|
value: "adapters",
|
|
65
65
|
className: "gap-2",
|
|
66
|
-
children: [/* @__PURE__ */
|
|
66
|
+
children: [/* @__PURE__ */ d(c, { size: 16 }), j("admin.tabs.adapters", "Adapter Approvals")]
|
|
67
67
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ f(O, {
|
|
69
69
|
value: "marketplace",
|
|
70
70
|
className: "gap-2",
|
|
71
|
-
children: [/* @__PURE__ */ u
|
|
71
|
+
children: [/* @__PURE__ */ d(u, { size: 16 }), j("admin.tabs.marketplace", "Marketplace Moderation")]
|
|
72
72
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ f(O, {
|
|
74
74
|
value: "negotiations",
|
|
75
75
|
className: "gap-2",
|
|
76
|
-
children: [/* @__PURE__ */
|
|
76
|
+
children: [/* @__PURE__ */ d(le, { size: 16 }), j("admin.tabs.negotiations", "Negotiation Desk")]
|
|
77
77
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ f(O, {
|
|
79
79
|
value: "procurement",
|
|
80
80
|
className: "gap-2",
|
|
81
|
-
children: [/* @__PURE__ */
|
|
81
|
+
children: [/* @__PURE__ */ d(ce, { size: 16 }), j("admin.tabs.procurement", "Procurement Desk")]
|
|
82
82
|
})
|
|
83
83
|
]
|
|
84
84
|
}),
|
|
85
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ d(D, {
|
|
86
86
|
value: "providers",
|
|
87
|
-
children: /* @__PURE__ */
|
|
87
|
+
children: /* @__PURE__ */ f(m, { children: [/* @__PURE__ */ f(_, { children: [/* @__PURE__ */ d(v, { children: j("admin.providers.title", "Provider registry") }), /* @__PURE__ */ d(g, { children: j("admin.providers.description", "Curate the global provider catalog. Verify submitted providers or deprecate stale entries.") })] }), /* @__PURE__ */ d(h, { children: N ? /* @__PURE__ */ d("div", {
|
|
88
88
|
className: "flex min-h-[200px] items-center justify-center",
|
|
89
|
-
children: /* @__PURE__ */
|
|
90
|
-
}) :
|
|
91
|
-
icon: /* @__PURE__ */ u
|
|
92
|
-
title:
|
|
93
|
-
description:
|
|
94
|
-
}) : /* @__PURE__ */
|
|
89
|
+
children: /* @__PURE__ */ d(b, { size: "lg" })
|
|
90
|
+
}) : L.length === 0 ? /* @__PURE__ */ d(y, {
|
|
91
|
+
icon: /* @__PURE__ */ d(u, { className: "size-6 text-action-primary-bg" }),
|
|
92
|
+
title: j("admin.providers.emptyTitle", "No providers yet"),
|
|
93
|
+
description: j("admin.providers.emptyDescription", "Once providers are created or claimed they will appear here for curation.")
|
|
94
|
+
}) : /* @__PURE__ */ d("div", {
|
|
95
95
|
className: "overflow-x-auto",
|
|
96
|
-
children: /* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
className: "text-
|
|
103
|
-
children:
|
|
96
|
+
children: /* @__PURE__ */ f(x, { children: [/* @__PURE__ */ d(T, { children: /* @__PURE__ */ f(E, { children: [
|
|
97
|
+
/* @__PURE__ */ d(w, { children: j("admin.providers.table.name", "Name") }),
|
|
98
|
+
/* @__PURE__ */ d(w, { children: j("admin.providers.table.category", "Category") }),
|
|
99
|
+
/* @__PURE__ */ d(w, { children: j("admin.providers.table.status", "Status") }),
|
|
100
|
+
/* @__PURE__ */ d(w, { children: j("admin.providers.table.created", "Created") }),
|
|
101
|
+
/* @__PURE__ */ d(w, {
|
|
102
|
+
className: "text-end",
|
|
103
|
+
children: j("admin.providers.table.actions", "Actions")
|
|
104
104
|
})
|
|
105
|
-
] }) }), /* @__PURE__ */
|
|
106
|
-
/* @__PURE__ */
|
|
105
|
+
] }) }), /* @__PURE__ */ d(S, { children: L.map((e) => /* @__PURE__ */ f(E, { children: [
|
|
106
|
+
/* @__PURE__ */ d(C, {
|
|
107
107
|
className: "font-medium text-text-primary",
|
|
108
108
|
children: e.name
|
|
109
109
|
}),
|
|
110
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ d(C, {
|
|
111
111
|
className: "text-text-secondary",
|
|
112
112
|
children: e.category
|
|
113
113
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ d(C, { children: /* @__PURE__ */ d(n, { status: e.status }) }),
|
|
115
|
+
/* @__PURE__ */ d(C, {
|
|
116
116
|
className: "text-text-secondary",
|
|
117
|
-
children:
|
|
117
|
+
children: A(e.createdAt)
|
|
118
118
|
}),
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
className: "text-
|
|
121
|
-
children: /* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ d(C, {
|
|
120
|
+
className: "text-end",
|
|
121
|
+
children: /* @__PURE__ */ f("div", {
|
|
122
122
|
className: "flex justify-end gap-2",
|
|
123
|
-
children: [e.status !== "VERIFIED" && /* @__PURE__ */
|
|
123
|
+
children: [e.status !== "VERIFIED" && /* @__PURE__ */ f(p, {
|
|
124
124
|
size: "sm",
|
|
125
125
|
variant: "outline",
|
|
126
|
-
onClick: () =>
|
|
127
|
-
disabled:
|
|
128
|
-
children: [/* @__PURE__ */
|
|
126
|
+
onClick: () => F(e.id),
|
|
127
|
+
disabled: P.isPending,
|
|
128
|
+
children: [/* @__PURE__ */ d(s, {
|
|
129
129
|
size: 14,
|
|
130
|
-
className: "
|
|
131
|
-
}),
|
|
132
|
-
}), e.status !== "DEPRECATED" && /* @__PURE__ */
|
|
130
|
+
className: "me-1"
|
|
131
|
+
}), j("admin.providers.verify", "Verify")]
|
|
132
|
+
}), e.status !== "DEPRECATED" && /* @__PURE__ */ d(p, {
|
|
133
133
|
size: "sm",
|
|
134
134
|
variant: "secondary",
|
|
135
|
-
onClick: () =>
|
|
136
|
-
disabled:
|
|
137
|
-
children:
|
|
135
|
+
onClick: () => I(e.id),
|
|
136
|
+
disabled: P.isPending,
|
|
137
|
+
children: j("admin.providers.deprecate", "Deprecate")
|
|
138
138
|
})]
|
|
139
139
|
})
|
|
140
140
|
})
|
|
141
141
|
] }, e.id)) })] })
|
|
142
142
|
}) })] })
|
|
143
143
|
}),
|
|
144
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ d(D, {
|
|
145
145
|
value: "adapters",
|
|
146
|
-
children: /* @__PURE__ */
|
|
146
|
+
children: /* @__PURE__ */ f(m, { children: [/* @__PURE__ */ f(_, { children: [/* @__PURE__ */ d(v, { children: j("admin.adapters.title", "Adapter approvals") }), /* @__PURE__ */ d(g, { children: j("admin.adapters.description", "Review submitted integration adapters before they are published to the SubscriberBot adapter marketplace.") })] }), /* @__PURE__ */ d(h, { children: he ? /* @__PURE__ */ d("div", {
|
|
147
147
|
className: "flex min-h-[200px] items-center justify-center",
|
|
148
|
-
children: /* @__PURE__ */
|
|
149
|
-
}) : W.length === 0 ? /* @__PURE__ */
|
|
150
|
-
icon: /* @__PURE__ */
|
|
151
|
-
title:
|
|
152
|
-
description:
|
|
153
|
-
}) : /* @__PURE__ */
|
|
148
|
+
children: /* @__PURE__ */ d(b, { size: "lg" })
|
|
149
|
+
}) : W.length === 0 ? /* @__PURE__ */ d(y, {
|
|
150
|
+
icon: /* @__PURE__ */ d(c, { className: "size-6 text-action-primary-bg" }),
|
|
151
|
+
title: j("admin.adapters.emptyTitle", "No adapter submissions"),
|
|
152
|
+
description: j("admin.adapters.emptyDescription", "Submitted integration adapters will appear here for review.")
|
|
153
|
+
}) : /* @__PURE__ */ d("div", {
|
|
154
154
|
className: "overflow-x-auto",
|
|
155
|
-
children: /* @__PURE__ */
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
className: "text-
|
|
162
|
-
children:
|
|
155
|
+
children: /* @__PURE__ */ f(x, { children: [/* @__PURE__ */ d(T, { children: /* @__PURE__ */ f(E, { children: [
|
|
156
|
+
/* @__PURE__ */ d(w, { children: j("admin.adapters.table.adapter", "Adapter") }),
|
|
157
|
+
/* @__PURE__ */ d(w, { children: j("admin.adapters.table.workspace", "Submitting workspace") }),
|
|
158
|
+
/* @__PURE__ */ d(w, { children: j("admin.adapters.table.submitted", "Submitted") }),
|
|
159
|
+
/* @__PURE__ */ d(w, { children: j("admin.adapters.table.status", "Status") }),
|
|
160
|
+
/* @__PURE__ */ d(w, {
|
|
161
|
+
className: "text-end",
|
|
162
|
+
children: j("admin.adapters.table.actions", "Actions")
|
|
163
163
|
})
|
|
164
|
-
] }) }), /* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */
|
|
164
|
+
] }) }), /* @__PURE__ */ d(S, { children: W.map((e) => /* @__PURE__ */ f(a, { children: [/* @__PURE__ */ f(E, { children: [
|
|
165
|
+
/* @__PURE__ */ d(C, {
|
|
166
166
|
className: "font-medium text-text-primary",
|
|
167
167
|
children: e.adapterId
|
|
168
168
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ d(C, {
|
|
170
170
|
className: "text-text-secondary",
|
|
171
171
|
children: e.submitterWorkspaceId
|
|
172
172
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ d(C, {
|
|
174
174
|
className: "text-text-secondary",
|
|
175
|
-
children:
|
|
175
|
+
children: A(e.createdAt)
|
|
176
176
|
}),
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
className: "text-
|
|
180
|
-
children: e.status === "PENDING" && /* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ d(C, { children: /* @__PURE__ */ d(n, { status: e.status }) }),
|
|
178
|
+
/* @__PURE__ */ d(C, {
|
|
179
|
+
className: "text-end",
|
|
180
|
+
children: e.status === "PENDING" && /* @__PURE__ */ f("div", {
|
|
181
181
|
className: "flex justify-end gap-2",
|
|
182
|
-
children: [/* @__PURE__ */
|
|
182
|
+
children: [/* @__PURE__ */ f(p, {
|
|
183
183
|
size: "sm",
|
|
184
184
|
variant: "outline",
|
|
185
|
-
onClick: () =>
|
|
185
|
+
onClick: () => _e(e.id),
|
|
186
186
|
disabled: z.isPending || B.isPending,
|
|
187
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ d(s, {
|
|
188
188
|
size: 14,
|
|
189
|
-
className: "
|
|
190
|
-
}),
|
|
191
|
-
}), /* @__PURE__ */
|
|
189
|
+
className: "me-1"
|
|
190
|
+
}), j("admin.adapters.approve", "Approve")]
|
|
191
|
+
}), /* @__PURE__ */ f(p, {
|
|
192
192
|
size: "sm",
|
|
193
193
|
variant: "secondary",
|
|
194
|
-
onClick: () =>
|
|
194
|
+
onClick: () => ve(e.id),
|
|
195
195
|
disabled: z.isPending || B.isPending,
|
|
196
|
-
children: [/* @__PURE__ */
|
|
196
|
+
children: [/* @__PURE__ */ d(ue, {
|
|
197
197
|
size: 14,
|
|
198
|
-
className: "
|
|
199
|
-
}),
|
|
198
|
+
className: "me-1"
|
|
199
|
+
}), j("admin.adapters.reject", "Reject")]
|
|
200
200
|
})]
|
|
201
201
|
})
|
|
202
202
|
})
|
|
203
|
-
] }),
|
|
203
|
+
] }), ge === e.id && /* @__PURE__ */ d(E, { children: /* @__PURE__ */ d(C, {
|
|
204
204
|
colSpan: 5,
|
|
205
205
|
className: "bg-bg-sunken",
|
|
206
|
-
children: /* @__PURE__ */
|
|
206
|
+
children: /* @__PURE__ */ f("div", {
|
|
207
207
|
className: "flex flex-col gap-2 py-1 sm:flex-row sm:items-start",
|
|
208
|
-
children: [/* @__PURE__ */
|
|
208
|
+
children: [/* @__PURE__ */ d(k, {
|
|
209
209
|
value: H,
|
|
210
210
|
onChange: (e) => U(e.target.value),
|
|
211
|
-
placeholder:
|
|
211
|
+
placeholder: j("admin.adapters.rejectPlaceholder", "Reason for rejecting this adapter submission (required)"),
|
|
212
212
|
className: "min-h-[60px] flex-1",
|
|
213
213
|
autoFocus: !0
|
|
214
|
-
}), /* @__PURE__ */
|
|
214
|
+
}), /* @__PURE__ */ f("div", {
|
|
215
215
|
className: "flex gap-2 sm:flex-col",
|
|
216
|
-
children: [/* @__PURE__ */
|
|
216
|
+
children: [/* @__PURE__ */ d(p, {
|
|
217
217
|
size: "sm",
|
|
218
218
|
variant: "destructive",
|
|
219
|
-
onClick: () =>
|
|
219
|
+
onClick: () => ye(e.id),
|
|
220
220
|
disabled: !H.trim() || B.isPending,
|
|
221
|
-
children:
|
|
222
|
-
}), /* @__PURE__ */
|
|
221
|
+
children: j("admin.adapters.confirmReject", "Confirm reject")
|
|
222
|
+
}), /* @__PURE__ */ d(p, {
|
|
223
223
|
size: "sm",
|
|
224
224
|
variant: "outline",
|
|
225
225
|
onClick: () => V(null),
|
|
226
226
|
disabled: B.isPending,
|
|
227
|
-
children:
|
|
227
|
+
children: j("admin.adapters.cancel", "Cancel")
|
|
228
228
|
})]
|
|
229
229
|
})]
|
|
230
230
|
})
|
|
231
231
|
}) }, `${e.id}-reject`)] }, e.id)) })] })
|
|
232
232
|
}) })] })
|
|
233
233
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ d(D, {
|
|
235
235
|
value: "marketplace",
|
|
236
|
-
children: /* @__PURE__ */
|
|
236
|
+
children: /* @__PURE__ */ f(m, { children: [/* @__PURE__ */ f(_, { children: [/* @__PURE__ */ d(v, { children: j("admin.marketplace.title", "Marketplace moderation") }), /* @__PURE__ */ d(g, { children: j("admin.marketplace.description", "Review reported marketplace listings and take moderation actions.") })] }), /* @__PURE__ */ d(h, { children: G ? /* @__PURE__ */ d("div", {
|
|
237
237
|
className: "flex min-h-[200px] items-center justify-center",
|
|
238
|
-
children: /* @__PURE__ */
|
|
239
|
-
}) : Q.length === 0 ? /* @__PURE__ */
|
|
240
|
-
icon: /* @__PURE__ */ u
|
|
241
|
-
title:
|
|
242
|
-
description:
|
|
243
|
-
}) : /* @__PURE__ */
|
|
238
|
+
children: /* @__PURE__ */ d(b, { size: "lg" })
|
|
239
|
+
}) : Q.length === 0 ? /* @__PURE__ */ d(y, {
|
|
240
|
+
icon: /* @__PURE__ */ d(u, { className: "size-6 text-action-primary-bg" }),
|
|
241
|
+
title: j("admin.marketplace.emptyTitle", "No reported listings"),
|
|
242
|
+
description: j("admin.marketplace.emptyDescription", "Reported marketplace listings will appear here for moderation.")
|
|
243
|
+
}) : /* @__PURE__ */ d("div", {
|
|
244
244
|
className: "overflow-x-auto",
|
|
245
|
-
children: /* @__PURE__ */
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
/* @__PURE__ */
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
className: "text-
|
|
253
|
-
children:
|
|
245
|
+
children: /* @__PURE__ */ f(x, { children: [/* @__PURE__ */ d(T, { children: /* @__PURE__ */ f(E, { children: [
|
|
246
|
+
/* @__PURE__ */ d(w, { children: j("admin.marketplace.table.listing", "Listing") }),
|
|
247
|
+
/* @__PURE__ */ d(w, { children: j("admin.marketplace.table.workspace", "Reporting workspace") }),
|
|
248
|
+
/* @__PURE__ */ d(w, { children: j("admin.marketplace.table.reported", "Reported") }),
|
|
249
|
+
/* @__PURE__ */ d(w, { children: j("admin.marketplace.table.reason", "Reason") }),
|
|
250
|
+
/* @__PURE__ */ d(w, { children: j("admin.marketplace.table.status", "Status") }),
|
|
251
|
+
/* @__PURE__ */ d(w, {
|
|
252
|
+
className: "text-end",
|
|
253
|
+
children: j("admin.marketplace.table.actions", "Actions")
|
|
254
254
|
})
|
|
255
|
-
] }) }), /* @__PURE__ */
|
|
256
|
-
/* @__PURE__ */
|
|
255
|
+
] }) }), /* @__PURE__ */ d(S, { children: Q.map((e) => /* @__PURE__ */ f(a, { children: [/* @__PURE__ */ f(E, { children: [
|
|
256
|
+
/* @__PURE__ */ d(C, {
|
|
257
257
|
className: "font-medium text-text-primary",
|
|
258
258
|
children: e.listingId
|
|
259
259
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ d(C, {
|
|
261
261
|
className: "text-text-secondary",
|
|
262
262
|
children: e.reporterWorkspaceId
|
|
263
263
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ d(C, {
|
|
265
265
|
className: "text-text-secondary",
|
|
266
|
-
children:
|
|
266
|
+
children: A(e.createdAt)
|
|
267
267
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ d(C, {
|
|
269
269
|
className: "text-text-secondary",
|
|
270
270
|
children: e.reason
|
|
271
271
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
/* @__PURE__ */
|
|
274
|
-
className: "text-
|
|
275
|
-
children: e.status === "PENDING" && /* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ d(C, { children: /* @__PURE__ */ d(n, { status: e.status }) }),
|
|
273
|
+
/* @__PURE__ */ d(C, {
|
|
274
|
+
className: "text-end",
|
|
275
|
+
children: e.status === "PENDING" && /* @__PURE__ */ f("div", {
|
|
276
276
|
className: "flex justify-end gap-2",
|
|
277
|
-
children: [/* @__PURE__ */
|
|
277
|
+
children: [/* @__PURE__ */ d(p, {
|
|
278
278
|
size: "sm",
|
|
279
279
|
variant: "outline",
|
|
280
280
|
onClick: () => $(e.id, "DISMISS"),
|
|
281
|
-
disabled:
|
|
282
|
-
children:
|
|
283
|
-
}), /* @__PURE__ */
|
|
281
|
+
disabled: K.isPending,
|
|
282
|
+
children: j("admin.marketplace.dismiss", "Dismiss")
|
|
283
|
+
}), /* @__PURE__ */ d(p, {
|
|
284
284
|
size: "sm",
|
|
285
285
|
variant: "destructive",
|
|
286
286
|
onClick: () => $(e.id, "REMOVE_LISTING"),
|
|
287
|
-
disabled:
|
|
288
|
-
children:
|
|
287
|
+
disabled: K.isPending,
|
|
288
|
+
children: j("admin.marketplace.remove", "Remove")
|
|
289
289
|
})]
|
|
290
290
|
})
|
|
291
291
|
})
|
|
292
|
-
] }),
|
|
292
|
+
] }), xe === e.id && /* @__PURE__ */ d(E, { children: /* @__PURE__ */ d(C, {
|
|
293
293
|
colSpan: 6,
|
|
294
294
|
className: "bg-bg-sunken",
|
|
295
|
-
children: /* @__PURE__ */
|
|
295
|
+
children: /* @__PURE__ */ f("div", {
|
|
296
296
|
className: "flex flex-col gap-2 py-1 sm:flex-row sm:items-start",
|
|
297
|
-
children: [/* @__PURE__ */
|
|
297
|
+
children: [/* @__PURE__ */ d(k, {
|
|
298
298
|
value: X,
|
|
299
299
|
onChange: (e) => Z(e.target.value),
|
|
300
|
-
placeholder: J === "REMOVE_LISTING" ?
|
|
300
|
+
placeholder: J === "REMOVE_LISTING" ? j("admin.marketplace.reasonPlaceholderRemove", "Reason to remove this listing (required)") : j("admin.marketplace.reasonPlaceholderDismiss", "Reason to dismiss this report (required)"),
|
|
301
301
|
className: "min-h-[60px] flex-1",
|
|
302
302
|
autoFocus: !0
|
|
303
|
-
}), /* @__PURE__ */
|
|
303
|
+
}), /* @__PURE__ */ f("div", {
|
|
304
304
|
className: "flex gap-2 sm:flex-col",
|
|
305
|
-
children: [/* @__PURE__ */
|
|
305
|
+
children: [/* @__PURE__ */ d(p, {
|
|
306
306
|
size: "sm",
|
|
307
307
|
variant: J === "REMOVE_LISTING" ? "destructive" : "outline",
|
|
308
|
-
onClick: () =>
|
|
309
|
-
disabled: !X.trim() ||
|
|
310
|
-
children: J === "REMOVE_LISTING" ?
|
|
311
|
-
}), /* @__PURE__ */
|
|
308
|
+
onClick: () => Se(e.id),
|
|
309
|
+
disabled: !X.trim() || K.isPending,
|
|
310
|
+
children: J === "REMOVE_LISTING" ? j("admin.marketplace.confirmRemoval", "Confirm removal") : j("admin.marketplace.confirmDismissal", "Confirm dismissal")
|
|
311
|
+
}), /* @__PURE__ */ d(p, {
|
|
312
312
|
size: "sm",
|
|
313
313
|
variant: "outline",
|
|
314
314
|
onClick: () => q(null),
|
|
315
|
-
disabled:
|
|
316
|
-
children:
|
|
315
|
+
disabled: K.isPending,
|
|
316
|
+
children: j("admin.marketplace.cancel", "Cancel")
|
|
317
317
|
})]
|
|
318
318
|
})]
|
|
319
319
|
})
|
|
320
320
|
}) }, `${e.id}-moderate`)] }, e.id)) })] })
|
|
321
321
|
}) })] })
|
|
322
322
|
}),
|
|
323
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ d(D, {
|
|
324
324
|
value: "negotiations",
|
|
325
|
-
children: /* @__PURE__ */
|
|
325
|
+
children: /* @__PURE__ */ f(m, { children: [/* @__PURE__ */ f(_, { children: [/* @__PURE__ */ d(v, { children: j("admin.desk.title", "Negotiation desk") }), /* @__PURE__ */ d(g, { children: j("admin.desk.description", "Managed bill negotiations customers authorised, across all workspaces. Recording a successful outcome bills the success fee in global billing.") })] }), /* @__PURE__ */ d(h, { children: /* @__PURE__ */ d(i, {}) })] })
|
|
326
326
|
}),
|
|
327
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ d(D, {
|
|
328
328
|
value: "procurement",
|
|
329
|
-
children: /* @__PURE__ */
|
|
329
|
+
children: /* @__PURE__ */ f(m, { children: [/* @__PURE__ */ f(_, { children: [/* @__PURE__ */ d(v, { children: j("admin.procurement.title", "Procurement desk") }), /* @__PURE__ */ d(g, { children: j("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__ */ d(h, { children: /* @__PURE__ */ d(se, {}) })] })
|
|
330
330
|
})
|
|
331
331
|
]
|
|
332
332
|
})
|
|
333
333
|
});
|
|
334
334
|
};
|
|
335
335
|
//#endregion
|
|
336
|
-
export {
|
|
336
|
+
export { A as AdminDashboardPage };
|
|
337
337
|
|
|
338
338
|
//# sourceMappingURL=AdminDashboardPage.js.map
|