@burdenoff/microfe-integrations 2026.1107.1 → 2026.1109.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/dev/main.d.ts +0 -2
- package/dist/generated/global-operations.d.ts +4 -2
- package/dist/generated/global-types.d.ts +210 -190
- package/dist/generated/wspace-operations.d.ts +1195 -670
- package/dist/generated/wspace-operations.js +265 -149
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +8728 -376
- package/dist/generated/wspace-types.js +6 -3
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/integrations/ConnectSourceDialog.d.ts +0 -2
- package/dist/integrations/ConnectSourceDialog.js +13 -14
- package/dist/integrations/ConnectSourceDialog.js.map +1 -1
- package/dist/integrations/ConnectionsPanel.d.ts +0 -2
- package/dist/integrations/ConnectionsPanel.js +5 -6
- package/dist/integrations/ConnectionsPanel.js.map +1 -1
- package/dist/integrations/IntegrationsAdminRoot.d.ts +0 -2
- package/dist/integrations/IntegrationsAdminRoot.js +14 -11
- package/dist/integrations/IntegrationsAdminRoot.js.map +1 -1
- package/dist/integrations/IntegrationsAdminRoutes.d.ts +1 -2
- package/dist/integrations/IntegrationsAdminRoutes.js +1 -2
- package/dist/integrations/IntegrationsAdminRoutes.js.map +1 -1
- package/dist/integrations/IntegrationsRoot.d.ts +0 -2
- package/dist/integrations/IntegrationsRoot.js +9 -6
- package/dist/integrations/IntegrationsRoot.js.map +1 -1
- package/dist/integrations/IntegrationsUserRoutes.d.ts +1 -2
- package/dist/integrations/IntegrationsUserRoutes.js +7 -8
- package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
- package/dist/integrations/components/AddConnectionDialog.d.ts +1 -3
- package/dist/integrations/components/AddConnectionDialog.js +12 -15
- package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
- package/dist/integrations/components/AuthMethodsEditor.d.ts +0 -2
- package/dist/integrations/components/AuthMethodsEditor.js +1 -2
- package/dist/integrations/components/AuthMethodsEditor.js.map +1 -1
- package/dist/integrations/components/ConfirmDialog.d.ts +1 -3
- package/dist/integrations/components/ConfirmDialog.js +1 -2
- package/dist/integrations/components/ConfirmDialog.js.map +1 -1
- package/dist/integrations/components/ConnectionCard.d.ts +0 -2
- package/dist/integrations/components/ConnectionCard.js +9 -10
- package/dist/integrations/components/ConnectionCard.js.map +1 -1
- package/dist/integrations/components/ConnectionModalFrame.d.ts +0 -2
- package/dist/integrations/components/ConnectionModalFrame.js +2 -3
- package/dist/integrations/components/ConnectionModalFrame.js.map +1 -1
- package/dist/integrations/components/ConnectionSharing.d.ts +0 -2
- package/dist/integrations/components/ConnectionSharing.js +7 -8
- package/dist/integrations/components/ConnectionSharing.js.map +1 -1
- package/dist/integrations/components/ConnectionStatusBadge.d.ts +0 -2
- package/dist/integrations/components/ConnectionStatusBadge.js +1 -2
- package/dist/integrations/components/ConnectionStatusBadge.js.map +1 -1
- package/dist/integrations/components/ConnectorSubmissionCard.d.ts +2 -4
- package/dist/integrations/components/ConnectorSubmissionCard.js +8 -9
- package/dist/integrations/components/ConnectorSubmissionCard.js.map +1 -1
- package/dist/integrations/components/ConnectorSubmissionPager.d.ts +1 -2
- package/dist/integrations/components/ConnectorSubmissionPager.js +1 -2
- package/dist/integrations/components/ConnectorSubmissionPager.js.map +1 -1
- package/dist/integrations/components/MailMessageBody.d.ts +5 -0
- package/dist/integrations/components/MailMessageBody.js +174 -0
- package/dist/integrations/components/MailMessageBody.js.map +1 -0
- package/dist/integrations/components/ProviderCard.d.ts +0 -2
- package/dist/integrations/components/ProviderCard.js +8 -9
- package/dist/integrations/components/ProviderCard.js.map +1 -1
- package/dist/integrations/constants/featureFlags.d.ts +0 -1
- package/dist/integrations/constants/featureFlags.js +1 -2
- package/dist/integrations/constants/featureFlags.js.map +1 -1
- package/dist/integrations/constants/permissions.d.ts +0 -1
- package/dist/integrations/constants/permissions.js +1 -2
- package/dist/integrations/constants/permissions.js.map +1 -1
- package/dist/integrations/events/integrations-events.d.ts +0 -1
- package/dist/integrations/events/useIntegrationsEventBus.d.ts +0 -2
- package/dist/integrations/events/useIntegrationsEventBus.js +1 -2
- package/dist/integrations/events/useIntegrationsEventBus.js.map +1 -1
- package/dist/integrations/hooks/useConnections.d.ts +3 -14
- package/dist/integrations/hooks/useConnections.js +74 -75
- package/dist/integrations/hooks/useConnections.js.map +1 -1
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts +2 -10
- package/dist/integrations/hooks/useConnectorSubmissions.js +23 -24
- package/dist/integrations/hooks/useConnectorSubmissions.js.map +1 -1
- package/dist/integrations/hooks/useFormatDate.d.ts +0 -1
- package/dist/integrations/hooks/useFormatDate.js +1 -2
- package/dist/integrations/hooks/useFormatDate.js.map +1 -1
- package/dist/integrations/hooks/useFormatLastUsed.d.ts +0 -1
- package/dist/integrations/hooks/useFormatLastUsed.js +1 -2
- package/dist/integrations/hooks/useFormatLastUsed.js.map +1 -1
- package/dist/integrations/hooks/useLabel.d.ts +0 -2
- package/dist/integrations/hooks/useLabel.js +1 -2
- package/dist/integrations/hooks/useLabel.js.map +1 -1
- package/dist/integrations/hooks/useLogs.d.ts +1 -6
- package/dist/integrations/hooks/useLogs.js +6 -7
- package/dist/integrations/hooks/useLogs.js.map +1 -1
- package/dist/integrations/hooks/useMailbox.d.ts +77 -40
- package/dist/integrations/hooks/useMailbox.js +113 -35
- package/dist/integrations/hooks/useMailbox.js.map +1 -1
- package/dist/integrations/hooks/useProviders.d.ts +3 -14
- package/dist/integrations/hooks/useProviders.js +42 -43
- package/dist/integrations/hooks/useProviders.js.map +1 -1
- package/dist/integrations/hooks/useTr.d.ts +0 -1
- package/dist/integrations/hooks/useTr.js +1 -2
- package/dist/integrations/hooks/useTr.js.map +1 -1
- package/dist/integrations/index.d.ts +0 -1
- package/dist/integrations/index.js +9 -8
- package/dist/integrations/pages/AddConnectionWizard.d.ts +1 -2
- package/dist/integrations/pages/AddConnectionWizard.js +291 -306
- package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
- package/dist/integrations/pages/ConnectionDetail.d.ts +1 -2
- package/dist/integrations/pages/ConnectionDetail.js +241 -246
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
- package/dist/integrations/pages/ConnectionLogs.d.ts +1 -2
- package/dist/integrations/pages/ConnectionLogs.js +154 -155
- package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
- package/dist/integrations/pages/ConnectionsList.d.ts +1 -2
- package/dist/integrations/pages/ConnectionsList.js +40 -41
- package/dist/integrations/pages/ConnectionsList.js.map +1 -1
- package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts +1 -2
- package/dist/integrations/pages/ConnectorReviewQueuePage.js +9 -10
- package/dist/integrations/pages/ConnectorReviewQueuePage.js.map +1 -1
- package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts +1 -2
- package/dist/integrations/pages/ConnectorSubmissionsPage.js +138 -139
- package/dist/integrations/pages/ConnectorSubmissionsPage.js.map +1 -1
- package/dist/integrations/pages/IntegrationsOverview.d.ts +1 -2
- package/dist/integrations/pages/IntegrationsOverview.js +35 -36
- package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
- package/dist/integrations/pages/IntegrationsSettings.d.ts +1 -2
- package/dist/integrations/pages/IntegrationsSettings.js +7 -8
- package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
- package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts +1 -2
- package/dist/integrations/pages/IntegrationsUserLandingPage.js +1 -2
- package/dist/integrations/pages/IntegrationsUserLandingPage.js.map +1 -1
- package/dist/integrations/pages/MailboxInbox.d.ts +1 -2
- package/dist/integrations/pages/MailboxInbox.js +442 -280
- package/dist/integrations/pages/MailboxInbox.js.map +1 -1
- package/dist/integrations/pages/ProviderCatalog.d.ts +1 -2
- package/dist/integrations/pages/ProviderCatalog.js +107 -108
- package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
- package/dist/integrations/pages/ProviderDetail.d.ts +1 -2
- package/dist/integrations/pages/ProviderDetail.js +21 -22
- package/dist/integrations/pages/ProviderDetail.js.map +1 -1
- package/dist/integrations/pages/ProviderEditorPage.d.ts +1 -2
- package/dist/integrations/pages/ProviderEditorPage.js +261 -264
- package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
- package/dist/integrations/providers/IntegrationsProvider.d.ts +0 -2
- package/dist/integrations/providers/IntegrationsProvider.js +109 -96
- package/dist/integrations/providers/IntegrationsProvider.js.map +1 -1
- package/dist/integrations/store/integrationsStore.d.ts +0 -2
- package/dist/integrations/store/integrationsStore.js +1 -2
- package/dist/integrations/store/integrationsStore.js.map +1 -1
- package/dist/integrations/store/mailboxStore.d.ts +3 -2
- package/dist/integrations/store/mailboxStore.js +8 -2
- package/dist/integrations/store/mailboxStore.js.map +1 -1
- package/dist/integrations/translations/en.d.ts +0 -1
- package/dist/integrations/types/index.d.ts +0 -1
- package/dist/integrations/utils/appearance.d.ts +0 -1
- package/dist/integrations/utils/appearance.js +1 -2
- package/dist/integrations/utils/appearance.js.map +1 -1
- package/dist/integrations/utils/cn.d.ts +0 -2
- package/dist/integrations/utils/cn.js +2 -3
- package/dist/integrations/utils/cn.js.map +1 -1
- package/dist/integrations/utils/constants.d.ts +0 -1
- package/dist/integrations/utils/constants.js +1 -2
- package/dist/integrations/utils/constants.js.map +1 -1
- package/dist/integrations/utils/integrationsHelpers.d.ts +0 -2
- package/dist/integrations/utils/integrationsHelpers.js +1 -2
- package/dist/integrations/utils/integrationsHelpers.js.map +1 -1
- package/dist/integrations/utils/mailHtml.d.ts +31 -0
- package/dist/integrations/utils/mailHtml.js +126 -0
- package/dist/integrations/utils/mailHtml.js.map +1 -0
- package/dist/integrations/utils/mappers.d.ts +0 -2
- package/dist/integrations/utils/mappers.js +2 -3
- package/dist/integrations/utils/mappers.js.map +1 -1
- package/dist/integrations/utils/navigation.d.ts +0 -1
- package/dist/integrations/utils/navigation.js +2 -8
- package/dist/integrations/utils/navigation.js.map +1 -1
- package/dist/integrations/utils/paths.d.ts +0 -1
- package/dist/integrations/utils/paths.js +1 -2
- package/dist/integrations/utils/paths.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.js +878 -0
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +67 -50
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/integrations/ConnectSourceDialog.d.ts.map +0 -1
- package/dist/integrations/ConnectionsPanel.d.ts.map +0 -1
- package/dist/integrations/IntegrationsAdminRoot.d.ts.map +0 -1
- package/dist/integrations/IntegrationsAdminRoutes.d.ts.map +0 -1
- package/dist/integrations/IntegrationsRoot.d.ts.map +0 -1
- package/dist/integrations/IntegrationsUserRoutes.d.ts.map +0 -1
- package/dist/integrations/components/AddConnectionDialog.d.ts.map +0 -1
- package/dist/integrations/components/AuthMethodsEditor.d.ts.map +0 -1
- package/dist/integrations/components/ConfirmDialog.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionCard.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionModalFrame.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionSharing.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionStatusBadge.d.ts.map +0 -1
- package/dist/integrations/components/ConnectorSubmissionCard.d.ts.map +0 -1
- package/dist/integrations/components/ConnectorSubmissionPager.d.ts.map +0 -1
- package/dist/integrations/components/ProviderCard.d.ts.map +0 -1
- package/dist/integrations/constants/featureFlags.d.ts.map +0 -1
- package/dist/integrations/constants/permissions.d.ts.map +0 -1
- package/dist/integrations/events/integrations-events.d.ts.map +0 -1
- package/dist/integrations/events/useIntegrationsEventBus.d.ts.map +0 -1
- package/dist/integrations/hooks/useConnections.d.ts.map +0 -1
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts.map +0 -1
- package/dist/integrations/hooks/useFormatDate.d.ts.map +0 -1
- package/dist/integrations/hooks/useFormatLastUsed.d.ts.map +0 -1
- package/dist/integrations/hooks/useLabel.d.ts.map +0 -1
- package/dist/integrations/hooks/useLogs.d.ts.map +0 -1
- package/dist/integrations/hooks/useMailbox.d.ts.map +0 -1
- package/dist/integrations/hooks/useProviders.d.ts.map +0 -1
- package/dist/integrations/hooks/useTr.d.ts.map +0 -1
- package/dist/integrations/index.d.ts.map +0 -1
- package/dist/integrations/pages/AddConnectionWizard.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectionDetail.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectionLogs.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectionsList.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts.map +0 -1
- package/dist/integrations/pages/IntegrationsOverview.d.ts.map +0 -1
- package/dist/integrations/pages/IntegrationsSettings.d.ts.map +0 -1
- package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts.map +0 -1
- package/dist/integrations/pages/MailboxInbox.d.ts.map +0 -1
- package/dist/integrations/pages/ProviderCatalog.d.ts.map +0 -1
- package/dist/integrations/pages/ProviderDetail.d.ts.map +0 -1
- package/dist/integrations/pages/ProviderEditorPage.d.ts.map +0 -1
- package/dist/integrations/providers/IntegrationsProvider.d.ts.map +0 -1
- package/dist/integrations/store/integrationsStore.d.ts.map +0 -1
- package/dist/integrations/store/mailboxStore.d.ts.map +0 -1
- package/dist/integrations/translations/en.d.ts.map +0 -1
- package/dist/integrations/types/index.d.ts.map +0 -1
- package/dist/integrations/utils/appearance.d.ts.map +0 -1
- package/dist/integrations/utils/cn.d.ts.map +0 -1
- package/dist/integrations/utils/constants.d.ts.map +0 -1
- package/dist/integrations/utils/integrationsHelpers.d.ts.map +0 -1
- package/dist/integrations/utils/mappers.d.ts.map +0 -1
- package/dist/integrations/utils/navigation.d.ts.map +0 -1
- package/dist/integrations/utils/paths.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cn as e } from "../utils/cn.js";
|
|
2
2
|
import { useTr as t } from "../hooks/useTr.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { useId as
|
|
10
|
-
import { Activity as
|
|
11
|
-
import { usePermissions as
|
|
12
|
-
import { Fragment as
|
|
13
|
-
import { useFeatureFlag as
|
|
14
|
-
import { Button as
|
|
15
|
-
|
|
16
|
-
function
|
|
3
|
+
import { useIntegrations as n } from "../providers/IntegrationsProvider.js";
|
|
4
|
+
import { INTEGRATION_PERMISSIONS as r } from "../constants/permissions.js";
|
|
5
|
+
import { INTEGRATION_FEATURE_FLAGS as i } from "../constants/featureFlags.js";
|
|
6
|
+
import { useFormatDate as a } from "../hooks/useFormatDate.js";
|
|
7
|
+
import { useIntegrationLogs as ee } from "../hooks/useLogs.js";
|
|
8
|
+
import { LOG_ACTION_OPTIONS as te, LOG_LEVEL_OPTIONS as o } from "../utils/constants.js";
|
|
9
|
+
import { useId as s, useMemo as c, useState as l } from "react";
|
|
10
|
+
import { Activity as u, AlertCircle as d, AlertTriangle as f, ArrowLeft as p, Bug as m, ChevronLeft as ne, ChevronRight as re, Download as ie, FileText as h, Filter as g, Info as _, Loader2 as v, RefreshCw as y, Search as ae, X as b } from "lucide-react";
|
|
11
|
+
import { usePermissions as oe } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
12
|
+
import { Fragment as se, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
13
|
+
import { useFeatureFlag as C } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
14
|
+
import { Button as w, EmphasisPanel as T, IllustratedEmptyState as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
|
|
15
|
+
// src/integrations/pages/ConnectionLogs.tsx
|
|
16
|
+
function O(e) {
|
|
17
17
|
switch (e) {
|
|
18
|
-
case "error": return /* @__PURE__ */
|
|
18
|
+
case "error": return /* @__PURE__ */ x(d, {
|
|
19
19
|
size: 14,
|
|
20
20
|
className: "text-status-error-text"
|
|
21
21
|
});
|
|
22
|
-
case "warn": return /* @__PURE__ */
|
|
22
|
+
case "warn": return /* @__PURE__ */ x(f, {
|
|
23
23
|
size: 14,
|
|
24
24
|
className: "text-status-warning-text"
|
|
25
25
|
});
|
|
26
|
-
case "info": return /* @__PURE__ */
|
|
26
|
+
case "info": return /* @__PURE__ */ x(_, {
|
|
27
27
|
size: 14,
|
|
28
28
|
className: "text-status-info-text"
|
|
29
29
|
});
|
|
30
|
-
case "debug": return /* @__PURE__ */
|
|
30
|
+
case "debug": return /* @__PURE__ */ x(m, {
|
|
31
31
|
size: 14,
|
|
32
32
|
className: "text-text-tertiary"
|
|
33
33
|
});
|
|
34
|
-
default: return /* @__PURE__ */
|
|
34
|
+
default: return /* @__PURE__ */ x(u, {
|
|
35
35
|
size: 14,
|
|
36
36
|
className: "text-text-tertiary"
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function ce(e) {
|
|
41
41
|
switch (e) {
|
|
42
42
|
case "error": return "text-status-error-text bg-status-error-bg-subtle border-border-default";
|
|
43
43
|
case "warn": return "text-status-warning-text bg-status-warning-bg-subtle border-border-default";
|
|
@@ -46,10 +46,10 @@ function D(e) {
|
|
|
46
46
|
default: return "text-text-secondary bg-bg-sunken border-border-subtle";
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function k(e) {
|
|
50
50
|
return `"${String(e ?? "").replaceAll("\"", "\"\"")}"`;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function le(e, t) {
|
|
53
53
|
let n = [[
|
|
54
54
|
t("integrations.logs.csv.createdAt", "Created At"),
|
|
55
55
|
t("integrations.logs.csv.level", "Level"),
|
|
@@ -66,366 +66,365 @@ function k(e, t) {
|
|
|
66
66
|
e.requestMethod,
|
|
67
67
|
e.requestUrl,
|
|
68
68
|
e.responseStatus
|
|
69
|
-
])].map((e) => e.map(
|
|
69
|
+
])].map((e) => e.map(k).join(",")).join("\n"), r = new Blob([n], { type: "text/csv;charset=utf-8" }), i = URL.createObjectURL(r), a = document.createElement("a");
|
|
70
70
|
a.href = i, a.download = t("integrations.logs.csv.filename", "integration-logs-{{date}}.csv", { date: (/* @__PURE__ */ new Date()).toISOString().slice(0, 10) }), a.click(), URL.revokeObjectURL(i);
|
|
71
71
|
}
|
|
72
72
|
function A() {
|
|
73
|
-
let { basePath:
|
|
73
|
+
let { basePath: f = "/", navigate: m } = n(), _ = t(), k = a(), { hasPermission: A, isLoading: j } = oe(), M = A(r.LOG_READ), ue = C(i.CSV_EXPORT, !0), N = s(), P = `${N}-level`, F = `${N}-action`, [I, L] = l(""), [R, z] = l("all"), [B, V] = l("all"), [H, de] = l(!1), [U, W] = l(1), { logs: G, total: K, loading: q, error: J, refetch: Y } = ee({
|
|
74
74
|
level: R === "all" ? void 0 : R,
|
|
75
75
|
action: B === "all" ? void 0 : B,
|
|
76
76
|
page: U,
|
|
77
77
|
pageSize: 20,
|
|
78
78
|
skip: j || !M
|
|
79
|
-
}), X =
|
|
79
|
+
}), X = c(() => {
|
|
80
80
|
if (!I) return G ?? [];
|
|
81
81
|
let e = I.toLowerCase();
|
|
82
82
|
return (G ?? []).filter((t) => t.message.toLowerCase().includes(e) || (t.requestUrl?.toLowerCase().includes(e) ?? !1));
|
|
83
83
|
}, [G, I]), Z = Math.ceil((K ?? 0) / 20), Q = I || R !== "all" || B !== "all", $ = () => {
|
|
84
84
|
L(""), z("all"), V("all"), W(1);
|
|
85
85
|
};
|
|
86
|
-
return j ? /* @__PURE__ */
|
|
86
|
+
return j ? /* @__PURE__ */ x("div", {
|
|
87
87
|
className: "flex items-center justify-center py-20",
|
|
88
|
-
children: /* @__PURE__ */
|
|
88
|
+
children: /* @__PURE__ */ x(v, {
|
|
89
89
|
size: 48,
|
|
90
90
|
className: "animate-spin text-primary"
|
|
91
91
|
})
|
|
92
|
-
}) : M ? /* @__PURE__ */
|
|
92
|
+
}) : M ? /* @__PURE__ */ S("div", {
|
|
93
93
|
className: "space-y-6 p-6 max-w-7xl mx-auto",
|
|
94
94
|
children: [
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ x("div", {
|
|
96
96
|
className: "rounded-xl border border-border-seam bg-accent-wash p-6",
|
|
97
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ S("div", {
|
|
98
98
|
className: "flex items-center gap-4",
|
|
99
99
|
children: [
|
|
100
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ x(w, {
|
|
101
101
|
variant: "ghost",
|
|
102
102
|
size: "icon",
|
|
103
|
-
onClick: () =>
|
|
104
|
-
"aria-label":
|
|
105
|
-
children: /* @__PURE__ */
|
|
103
|
+
onClick: () => m?.(f),
|
|
104
|
+
"aria-label": _("integrations.logs.actions.backAriaLabel", "Back"),
|
|
105
|
+
children: /* @__PURE__ */ x(p, { size: 20 })
|
|
106
106
|
}),
|
|
107
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ x("div", {
|
|
108
108
|
className: "p-2.5 rounded-lg bg-action-primary-bg/10",
|
|
109
|
-
children: /* @__PURE__ */
|
|
109
|
+
children: /* @__PURE__ */ x(h, {
|
|
110
110
|
size: 24,
|
|
111
111
|
className: "text-primary"
|
|
112
112
|
})
|
|
113
113
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("h1", {
|
|
115
115
|
className: "text-2xl sm:text-3xl font-bold text-text-primary",
|
|
116
|
-
children:
|
|
117
|
-
}), /* @__PURE__ */
|
|
116
|
+
children: _("integrations.logs.title", "Activity Logs")
|
|
117
|
+
}), /* @__PURE__ */ x("p", {
|
|
118
118
|
className: "text-sm text-text-secondary mt-0.5",
|
|
119
|
-
children:
|
|
119
|
+
children: _("integrations.logs.subtitle", "Track integration activity and debug issues")
|
|
120
120
|
})] })
|
|
121
121
|
]
|
|
122
122
|
})
|
|
123
123
|
}),
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
icon: /* @__PURE__ */
|
|
126
|
-
children:
|
|
124
|
+
/* @__PURE__ */ x(D, {
|
|
125
|
+
icon: /* @__PURE__ */ x(h, { size: 16 }),
|
|
126
|
+
children: _("integrations.logs.purpose", "Every request an integration makes — token refreshes, API calls, errors — is recorded here. Use this timeline to confirm a connection is working, see exactly what a provider returned, and debug failures (filter by level or action, then export to CSV to share with support).")
|
|
127
127
|
}),
|
|
128
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ S("div", {
|
|
129
129
|
className: "space-y-4",
|
|
130
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ S("div", {
|
|
131
131
|
className: "flex flex-col sm:flex-row gap-3",
|
|
132
132
|
children: [
|
|
133
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ S("div", {
|
|
134
134
|
className: "flex-1 relative group",
|
|
135
|
-
children: [/* @__PURE__ */
|
|
135
|
+
children: [/* @__PURE__ */ x(ae, {
|
|
136
136
|
size: 18,
|
|
137
137
|
className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
|
|
138
|
-
}), /* @__PURE__ */
|
|
138
|
+
}), /* @__PURE__ */ x("input", {
|
|
139
139
|
type: "text",
|
|
140
|
-
"aria-label":
|
|
141
|
-
placeholder:
|
|
140
|
+
"aria-label": _("integrations.logs.search.ariaLabel", "Search activity logs"),
|
|
141
|
+
placeholder: _("integrations.logs.search.placeholder", "Search logs..."),
|
|
142
142
|
value: I,
|
|
143
143
|
onChange: (e) => L(e.target.value),
|
|
144
144
|
className: "w-full pl-10 pr-4 py-2.5 border border-border-subtle rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
145
145
|
})]
|
|
146
146
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ S("button", {
|
|
148
148
|
type: "button",
|
|
149
149
|
onClick: () => de(!H),
|
|
150
150
|
"aria-expanded": H,
|
|
151
|
-
className:
|
|
151
|
+
className: e("inline-flex items-center gap-2 px-4 py-2.5 rounded-lg border text-sm font-medium transition-all", H || Q ? "bg-action-primary-bg text-action-primary-text border-primary" : "bg-bg-surface text-text-primary border-border-subtle hover:bg-accent"),
|
|
152
152
|
children: [
|
|
153
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ x(g, { size: 16 }),
|
|
154
154
|
" ",
|
|
155
|
-
|
|
155
|
+
_("integrations.logs.filters.show", "Filter")
|
|
156
156
|
]
|
|
157
157
|
}),
|
|
158
|
-
ue && /* @__PURE__ */
|
|
158
|
+
ue && /* @__PURE__ */ S(w, {
|
|
159
159
|
variant: "outline",
|
|
160
160
|
onClick: () => {
|
|
161
|
-
|
|
161
|
+
le(X, _);
|
|
162
162
|
},
|
|
163
163
|
disabled: X.length === 0,
|
|
164
164
|
children: [
|
|
165
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ x(ie, { size: 16 }),
|
|
166
166
|
" ",
|
|
167
|
-
|
|
167
|
+
_("integrations.logs.actions.exportCsv", "Export CSV")
|
|
168
168
|
]
|
|
169
169
|
}),
|
|
170
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ S(w, {
|
|
171
171
|
variant: "outline",
|
|
172
172
|
onClick: () => Y(),
|
|
173
173
|
children: [
|
|
174
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ x(y, { size: 16 }),
|
|
175
175
|
" ",
|
|
176
|
-
|
|
176
|
+
_("integrations.logs.actions.refresh", "Refresh")
|
|
177
177
|
]
|
|
178
178
|
})
|
|
179
179
|
]
|
|
180
|
-
}), H && /* @__PURE__ */
|
|
180
|
+
}), H && /* @__PURE__ */ S("div", {
|
|
181
181
|
className: "rounded-xl border border-border-seam bg-bg-surface p-5 animate-in slide-in-from-top-2 duration-200",
|
|
182
|
-
children: [/* @__PURE__ */
|
|
182
|
+
children: [/* @__PURE__ */ S("div", {
|
|
183
183
|
className: "flex items-center justify-between mb-4",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ S("h3", {
|
|
185
185
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
186
186
|
children: [
|
|
187
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ x(g, {
|
|
188
188
|
size: 16,
|
|
189
189
|
className: "text-primary"
|
|
190
190
|
}),
|
|
191
191
|
" ",
|
|
192
|
-
|
|
192
|
+
_("integrations.logs.filters.panelTitle", "Filters")
|
|
193
193
|
]
|
|
194
|
-
}), Q && /* @__PURE__ */
|
|
194
|
+
}), Q && /* @__PURE__ */ S("button", {
|
|
195
195
|
type: "button",
|
|
196
196
|
onClick: $,
|
|
197
197
|
className: "text-sm text-text-secondary hover:text-status-error-text flex items-center gap-1",
|
|
198
198
|
children: [
|
|
199
|
-
/* @__PURE__ */ b
|
|
199
|
+
/* @__PURE__ */ x(b, { size: 14 }),
|
|
200
200
|
" ",
|
|
201
|
-
|
|
201
|
+
_("integrations.logs.filters.clearAll", "Clear All")
|
|
202
202
|
]
|
|
203
203
|
})]
|
|
204
|
-
}), /* @__PURE__ */
|
|
204
|
+
}), /* @__PURE__ */ S("div", {
|
|
205
205
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
206
|
-
children: [/* @__PURE__ */
|
|
206
|
+
children: [/* @__PURE__ */ S("div", {
|
|
207
207
|
className: "space-y-2",
|
|
208
|
-
children: [/* @__PURE__ */
|
|
208
|
+
children: [/* @__PURE__ */ x("label", {
|
|
209
209
|
htmlFor: P,
|
|
210
210
|
className: "block text-sm font-medium text-text-primary",
|
|
211
|
-
children:
|
|
212
|
-
}), /* @__PURE__ */
|
|
211
|
+
children: _("integrations.logs.filters.logLevel", "Log Level")
|
|
212
|
+
}), /* @__PURE__ */ S("select", {
|
|
213
213
|
id: P,
|
|
214
214
|
value: R,
|
|
215
215
|
onChange: (e) => {
|
|
216
216
|
z(e.target.value), W(1);
|
|
217
217
|
},
|
|
218
218
|
className: "w-full px-3 py-2 border border-border-subtle rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
219
|
-
children: [/* @__PURE__ */
|
|
219
|
+
children: [/* @__PURE__ */ x("option", {
|
|
220
220
|
value: "all",
|
|
221
|
-
children:
|
|
222
|
-
}),
|
|
221
|
+
children: _("integrations.logs.filters.logLevelAll", "All Levels")
|
|
222
|
+
}), o.map((e) => /* @__PURE__ */ x("option", {
|
|
223
223
|
value: e.value,
|
|
224
|
-
children:
|
|
224
|
+
children: _(`integrations.logLevel.${e.value}`, e.label)
|
|
225
225
|
}, e.value))]
|
|
226
226
|
})]
|
|
227
|
-
}), /* @__PURE__ */
|
|
227
|
+
}), /* @__PURE__ */ S("div", {
|
|
228
228
|
className: "space-y-2",
|
|
229
|
-
children: [/* @__PURE__ */
|
|
229
|
+
children: [/* @__PURE__ */ x("label", {
|
|
230
230
|
htmlFor: F,
|
|
231
231
|
className: "block text-sm font-medium text-text-primary",
|
|
232
|
-
children:
|
|
233
|
-
}), /* @__PURE__ */
|
|
232
|
+
children: _("integrations.logs.filters.action", "Action")
|
|
233
|
+
}), /* @__PURE__ */ S("select", {
|
|
234
234
|
id: F,
|
|
235
235
|
value: B,
|
|
236
236
|
onChange: (e) => {
|
|
237
237
|
V(e.target.value), W(1);
|
|
238
238
|
},
|
|
239
239
|
className: "w-full px-3 py-2 border border-border-subtle rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
240
|
-
children: [/* @__PURE__ */
|
|
240
|
+
children: [/* @__PURE__ */ x("option", {
|
|
241
241
|
value: "all",
|
|
242
|
-
children:
|
|
243
|
-
}),
|
|
242
|
+
children: _("integrations.logs.filters.actionAll", "All Actions")
|
|
243
|
+
}), te.map((e) => /* @__PURE__ */ x("option", {
|
|
244
244
|
value: e.value,
|
|
245
|
-
children:
|
|
245
|
+
children: _(`integrations.logAction.${e.value}`, e.label)
|
|
246
246
|
}, e.value))]
|
|
247
247
|
})]
|
|
248
248
|
})]
|
|
249
249
|
})]
|
|
250
250
|
})]
|
|
251
251
|
}),
|
|
252
|
-
J && /* @__PURE__ */
|
|
252
|
+
J && /* @__PURE__ */ S("div", {
|
|
253
253
|
className: "rounded-xl border border-border-default bg-status-error-bg-subtle p-5 flex items-start gap-4",
|
|
254
|
-
children: [/* @__PURE__ */
|
|
254
|
+
children: [/* @__PURE__ */ x(d, {
|
|
255
255
|
size: 24,
|
|
256
256
|
className: "text-status-error-text"
|
|
257
|
-
}), /* @__PURE__ */
|
|
257
|
+
}), /* @__PURE__ */ S("div", {
|
|
258
258
|
className: "flex-1",
|
|
259
259
|
children: [
|
|
260
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ x("h3", {
|
|
261
261
|
className: "font-semibold text-status-error-text mb-1",
|
|
262
|
-
children:
|
|
262
|
+
children: _("integrations.logs.error.title", "Error loading logs")
|
|
263
263
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ x("p", {
|
|
265
265
|
className: "text-sm text-status-error-text mb-3",
|
|
266
266
|
children: J.message
|
|
267
267
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ S("button", {
|
|
269
269
|
type: "button",
|
|
270
270
|
onClick: () => Y(),
|
|
271
271
|
className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-status-error-bg-subtle text-status-error-text hover:bg-status-error-bg-subtle/80 transition-colors",
|
|
272
272
|
children: [
|
|
273
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ x(y, { size: 14 }),
|
|
274
274
|
" ",
|
|
275
|
-
|
|
275
|
+
_("integrations.common.retry", "Try Again")
|
|
276
276
|
]
|
|
277
277
|
})
|
|
278
278
|
]
|
|
279
279
|
})]
|
|
280
280
|
}),
|
|
281
|
-
q && /* @__PURE__ */
|
|
281
|
+
q && /* @__PURE__ */ x("div", {
|
|
282
282
|
className: "flex items-center justify-center py-12",
|
|
283
|
-
children: /* @__PURE__ */
|
|
283
|
+
children: /* @__PURE__ */ x(v, {
|
|
284
284
|
size: 24,
|
|
285
285
|
className: "animate-spin text-text-secondary"
|
|
286
286
|
})
|
|
287
287
|
}),
|
|
288
|
-
!q && !J && /* @__PURE__ */
|
|
288
|
+
!q && !J && /* @__PURE__ */ S(se, { children: [X.length > 0 ? /* @__PURE__ */ S(T, {
|
|
289
289
|
className: "overflow-hidden p-0",
|
|
290
|
-
children: [/* @__PURE__ */
|
|
290
|
+
children: [/* @__PURE__ */ S("div", {
|
|
291
291
|
className: "flex items-center gap-2 p-5 border-b border-border-seam",
|
|
292
|
-
children: [/* @__PURE__ */
|
|
292
|
+
children: [/* @__PURE__ */ x(u, {
|
|
293
293
|
size: 18,
|
|
294
294
|
className: "text-primary"
|
|
295
|
-
}), /* @__PURE__ */
|
|
295
|
+
}), /* @__PURE__ */ x("h2", {
|
|
296
296
|
className: "font-semibold text-text-primary",
|
|
297
|
-
children:
|
|
297
|
+
children: _("integrations.logs.timeline.title", "Activity Timeline")
|
|
298
298
|
})]
|
|
299
|
-
}), /* @__PURE__ */
|
|
299
|
+
}), /* @__PURE__ */ x("div", {
|
|
300
300
|
className: "divide-y divide-border-seam",
|
|
301
|
-
children: X.map((
|
|
301
|
+
children: X.map((t) => /* @__PURE__ */ S("div", {
|
|
302
302
|
className: "flex items-start gap-3 px-5 py-3.5 hover:bg-accent/30 transition-colors",
|
|
303
303
|
children: [
|
|
304
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ x("div", {
|
|
305
305
|
className: "mt-0.5",
|
|
306
|
-
children:
|
|
306
|
+
children: O(t.level)
|
|
307
307
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ S("div", {
|
|
309
309
|
className: "flex-1 min-w-0",
|
|
310
310
|
children: [
|
|
311
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ S("div", {
|
|
312
312
|
className: "flex items-center gap-2 flex-wrap",
|
|
313
313
|
children: [
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
-
className:
|
|
316
|
-
children:
|
|
314
|
+
/* @__PURE__ */ x("span", {
|
|
315
|
+
className: e("text-xs px-2 py-0.5 rounded-full border font-medium", ce(t.level)),
|
|
316
|
+
children: t.level.toUpperCase()
|
|
317
317
|
}),
|
|
318
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ x("span", {
|
|
319
319
|
className: "text-xs px-2 py-0.5 rounded-full bg-bg-sunken text-text-secondary",
|
|
320
|
-
children:
|
|
320
|
+
children: t.action.replace(/_/g, " ")
|
|
321
321
|
}),
|
|
322
|
-
|
|
323
|
-
className:
|
|
324
|
-
children:
|
|
322
|
+
t.responseStatus && /* @__PURE__ */ x("span", {
|
|
323
|
+
className: e("text-xs px-2 py-0.5 rounded-full border font-mono", t.responseStatus >= 400 ? "text-status-error-text bg-status-error-bg-subtle border-border-default" : "text-status-success-text bg-status-success-bg-subtle border-border-default"),
|
|
324
|
+
children: t.responseStatus
|
|
325
325
|
})
|
|
326
326
|
]
|
|
327
327
|
}),
|
|
328
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ x("p", {
|
|
329
329
|
className: "text-sm text-text-primary mt-1",
|
|
330
|
-
children:
|
|
330
|
+
children: t.message
|
|
331
331
|
}),
|
|
332
|
-
|
|
332
|
+
t.requestUrl && /* @__PURE__ */ S("p", {
|
|
333
333
|
className: "text-xs text-text-secondary font-mono mt-0.5 truncate",
|
|
334
|
-
children: [
|
|
334
|
+
children: [t.requestMethod && /* @__PURE__ */ S("span", {
|
|
335
335
|
className: "font-semibold",
|
|
336
|
-
children: [
|
|
337
|
-
}),
|
|
336
|
+
children: [t.requestMethod, " "]
|
|
337
|
+
}), t.requestUrl]
|
|
338
338
|
})
|
|
339
339
|
]
|
|
340
340
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ x("span", {
|
|
342
342
|
className: "text-xs text-text-secondary whitespace-nowrap flex-shrink-0",
|
|
343
|
-
children:
|
|
343
|
+
children: k(t.createdAt)
|
|
344
344
|
})
|
|
345
345
|
]
|
|
346
|
-
},
|
|
346
|
+
}, t.id))
|
|
347
347
|
})]
|
|
348
|
-
}) : /* @__PURE__ */
|
|
348
|
+
}) : /* @__PURE__ */ x(E, {
|
|
349
349
|
illustration: Q ? "empty-search" : "empty-data",
|
|
350
|
-
title: Q ?
|
|
351
|
-
description: Q ?
|
|
352
|
-
action: Q ? /* @__PURE__ */
|
|
350
|
+
title: Q ? _("integrations.logs.empty.filteredTitle", "No matching logs") : _("integrations.logs.empty.title", "No activity logs yet"),
|
|
351
|
+
description: Q ? _("integrations.logs.empty.filteredDescription", "Try adjusting your filters.") : _("integrations.logs.empty.description", "Activity logs will appear here once you start using integrations."),
|
|
352
|
+
action: Q ? /* @__PURE__ */ S(w, {
|
|
353
353
|
variant: "outline",
|
|
354
354
|
onClick: $,
|
|
355
355
|
children: [
|
|
356
|
-
/* @__PURE__ */ b
|
|
356
|
+
/* @__PURE__ */ x(b, { size: 14 }),
|
|
357
357
|
" ",
|
|
358
|
-
|
|
358
|
+
_("integrations.logs.empty.clearFilters", "Clear Filters")
|
|
359
359
|
]
|
|
360
360
|
}) : void 0
|
|
361
|
-
}), Z > 1 && /* @__PURE__ */
|
|
361
|
+
}), Z > 1 && /* @__PURE__ */ S("div", {
|
|
362
362
|
className: "flex items-center justify-between px-2",
|
|
363
|
-
children: [/* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ x("p", {
|
|
364
364
|
className: "text-sm text-text-secondary",
|
|
365
|
-
children:
|
|
365
|
+
children: _("integrations.logs.pagination.showing", "Showing {{start}}-{{end}} of {{total}}", {
|
|
366
366
|
start: (U - 1) * 20 + 1,
|
|
367
367
|
end: Math.min(U * 20, K ?? 0),
|
|
368
368
|
total: K ?? 0
|
|
369
369
|
})
|
|
370
|
-
}), /* @__PURE__ */
|
|
370
|
+
}), /* @__PURE__ */ S("div", {
|
|
371
371
|
className: "flex items-center gap-2",
|
|
372
372
|
children: [
|
|
373
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ x("button", {
|
|
374
374
|
type: "button",
|
|
375
375
|
onClick: () => W((e) => Math.max(1, e - 1)),
|
|
376
376
|
disabled: U === 1,
|
|
377
|
-
"aria-label":
|
|
377
|
+
"aria-label": _("integrations.logs.pagination.previous", "Previous page"),
|
|
378
378
|
className: "p-2 rounded-lg border border-border-subtle hover:bg-accent disabled:opacity-50 transition-colors",
|
|
379
|
-
children: /* @__PURE__ */
|
|
379
|
+
children: /* @__PURE__ */ x(ne, { size: 16 })
|
|
380
380
|
}),
|
|
381
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ x("span", {
|
|
382
382
|
className: "text-sm text-text-primary px-3 py-1.5 rounded-lg bg-bg-sunken",
|
|
383
|
-
children:
|
|
383
|
+
children: _("integrations.logs.pagination.pageOf", "{{page}} / {{total}}", {
|
|
384
384
|
page: U,
|
|
385
385
|
total: Z
|
|
386
386
|
})
|
|
387
387
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ x("button", {
|
|
389
389
|
type: "button",
|
|
390
390
|
onClick: () => W((e) => Math.min(Z, e + 1)),
|
|
391
391
|
disabled: U === Z,
|
|
392
|
-
"aria-label":
|
|
392
|
+
"aria-label": _("integrations.logs.pagination.next", "Next page"),
|
|
393
393
|
className: "p-2 rounded-lg border border-border-subtle hover:bg-accent disabled:opacity-50 transition-colors",
|
|
394
|
-
children: /* @__PURE__ */
|
|
394
|
+
children: /* @__PURE__ */ x(re, { size: 16 })
|
|
395
395
|
})
|
|
396
396
|
]
|
|
397
397
|
})]
|
|
398
398
|
})] })
|
|
399
399
|
]
|
|
400
|
-
}) : /* @__PURE__ */
|
|
400
|
+
}) : /* @__PURE__ */ S("div", {
|
|
401
401
|
className: "flex flex-col items-center justify-center py-20 text-center p-6",
|
|
402
402
|
children: [
|
|
403
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ x(d, {
|
|
404
404
|
size: 48,
|
|
405
405
|
className: "text-text-secondary mb-4"
|
|
406
406
|
}),
|
|
407
|
-
/* @__PURE__ */
|
|
407
|
+
/* @__PURE__ */ x("h2", {
|
|
408
408
|
className: "text-xl font-bold text-text-primary mb-2",
|
|
409
|
-
children:
|
|
409
|
+
children: _("integrations.logs.denied.title", "Access Denied")
|
|
410
410
|
}),
|
|
411
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ x("p", {
|
|
412
412
|
className: "text-sm text-text-secondary mb-6 max-w-sm",
|
|
413
|
-
children:
|
|
413
|
+
children: _("integrations.logs.denied.description", "You don't have permission to view activity logs.")
|
|
414
414
|
}),
|
|
415
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ S("button", {
|
|
416
416
|
type: "button",
|
|
417
|
-
onClick: () =>
|
|
417
|
+
onClick: () => m?.(f),
|
|
418
418
|
className: "inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-lg border border-border-subtle hover:bg-accent transition-colors",
|
|
419
419
|
children: [
|
|
420
|
-
/* @__PURE__ */
|
|
420
|
+
/* @__PURE__ */ x(p, { size: 16 }),
|
|
421
421
|
" ",
|
|
422
|
-
|
|
422
|
+
_("integrations.logs.denied.back", "Back to Overview")
|
|
423
423
|
]
|
|
424
424
|
})
|
|
425
425
|
]
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
|
-
//#endregion
|
|
429
428
|
export { A as ConnectionLogs };
|
|
430
429
|
|
|
431
430
|
//# sourceMappingURL=ConnectionLogs.js.map
|