@lunora/studio 1.0.0-alpha.31 → 1.0.0-alpha.32
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 +10 -10
- package/dist/mount.js +3 -2
- package/dist/packem_chunks/ApiTab.js +3 -3
- package/dist/packem_chunks/AuditPanel.js +7 -7
- package/dist/packem_chunks/ExportImportPanel.js +5 -4
- package/dist/packem_chunks/FileBrowser.js +2 -2
- package/dist/packem_chunks/FunctionRunner.js +1 -1
- package/dist/packem_chunks/FunctionStatsPanel.js +72 -70
- package/dist/packem_chunks/HealthPanel.js +3 -3
- package/dist/packem_chunks/InsightsPanel.js +4 -3
- package/dist/packem_chunks/LogsPanel.js +6 -6
- package/dist/packem_chunks/MailPanel.js +8 -7
- package/dist/packem_chunks/MetricsPanel.js +3 -3
- package/dist/packem_chunks/MigrationsPanel.js +7 -7
- package/dist/packem_chunks/PitrPanel.js +1 -1
- package/dist/packem_chunks/SchemaViewer.js +3 -2
- package/dist/packem_chunks/SecurityAdvisorPanel.js +11 -8
- package/dist/packem_chunks/SettingsPanel.js +50 -49
- package/dist/packem_chunks/SqlEditorPanel.js +5 -4
- package/dist/packem_chunks/TableEditor.js +3 -3
- package/dist/packem_chunks/analytics-panel.js +1 -1
- package/dist/packem_chunks/auth-config-panel.js +1 -1
- package/dist/packem_chunks/auth-sessions-panel.js +2 -2
- package/dist/packem_chunks/containers-panel.js +1 -1
- package/dist/packem_chunks/dashboards-panel.js +3 -2
- package/dist/packem_chunks/fanout-panel.js +31 -30
- package/dist/packem_chunks/flags-panel.js +6 -6
- package/dist/packem_chunks/kv-browser.js +2 -2
- package/dist/packem_chunks/log-drains-panel.js +1 -1
- package/dist/packem_chunks/organizations-panel.js +3 -3
- package/dist/packem_chunks/payments-panel.js +6 -5
- package/dist/packem_chunks/permissions-panel.js +12 -11
- package/dist/packem_chunks/queues-panel.js +32 -31
- package/dist/packem_chunks/rls-panel.js +86 -84
- package/dist/packem_chunks/schedule-panel.js +3 -3
- package/dist/packem_chunks/sparkline.js +1 -1
- package/dist/packem_chunks/storage-rules-panel.js +27 -25
- package/dist/packem_chunks/subscriptions-panel.js +33 -31
- package/dist/packem_chunks/users-panel.js +3 -3
- package/dist/packem_chunks/vector-browser.js +1 -1
- package/dist/packem_chunks/workflows-panel.js +2 -2
- package/dist/packem_shared/{ApiDocsPanel-B6u_wnz-.js → ApiDocsPanel-Cu6mD4u7.js} +1 -1
- package/dist/packem_shared/{ApiReferencePanel-Drz4UO0a.js → ApiReferencePanel-Co_wpRF2.js} +1 -1
- package/dist/packem_shared/{CommandPalette-B5BertvU.js → CommandPalette-BUPpbpMc.js} +1 -1
- package/dist/packem_shared/{DataBrowser-ANTHLWWh.js → DataBrowser-DSNK1tPg.js} +5 -5
- package/dist/packem_shared/{GlobalDataBrowser-CjgTG_wa.js → GlobalDataBrowser-ErfvIs1S.js} +3 -3
- package/dist/packem_shared/{HomePanel-BRcQVDby.js → HomePanel-DQk3P8xX.js} +3 -3
- package/dist/packem_shared/{OpenRpcReferencePanel-CspFdbUT.js → OpenRpcReferencePanel-DLWzrIx9.js} +1 -1
- package/dist/packem_shared/{ScheduledJobs-BEJXtsBn.js → ScheduledJobs-ClaNpZsg.js} +2 -2
- package/dist/packem_shared/{Studio-B1V0GxTz.js → Studio-CFTYGEUt.js} +4 -4
- package/dist/packem_shared/{StudioApp-CR0Tvy81.js → StudioApp-Cy9vUwVl.js} +1 -1
- package/dist/packem_shared/{advisor-view-DzqyvUU3.js → advisor-view-D3-U4kRR.js} +5 -5
- package/dist/packem_shared/alert-CdAET2K_.js +68 -0
- package/dist/packem_shared/{bar-chart-Bb__F5-u.js → bar-chart-DSwcWIRy.js} +4 -3
- package/dist/packem_shared/{browser-storage-d03UsV7v.js → browser-storage-tLOxkIHd.js} +3 -67
- package/dist/packem_shared/{data-grid-Dsg6nRjo.js → data-grid-Jz8FqQ2C.js} +1 -1
- package/dist/packem_shared/error-alert-BBT6D22d.js +114 -0
- package/dist/packem_shared/{grid-features-D7nNzBYm.js → grid-features-CUr8Z1_O.js} +1 -1
- package/dist/packem_shared/{home-panel-CRIs6x2j.js → home-panel-Bo-Mgrkn.js} +2 -2
- package/dist/packem_shared/{internal-FcNZ3beb.js → internal-DTsYVn-g.js} +30 -1
- package/dist/packem_shared/{reference-view-Doy1XlQq.js → reference-view-CSKyUyPl.js} +3 -2
- package/dist/packem_shared/{sparkline-KgMPHS4u.js → sparkline-BnA1kC9X.js} +1 -1
- package/dist/packem_shared/{studio-CQ-rtNhn.js → studio-Dg2e-dsR.js} +6 -5
- package/dist/packem_shared/{table-list-sidebar-VMo0ftxD.js → table-list-sidebar-B5psdSV1.js} +1 -1
- package/dist/packem_shared/{use-admin-query-BViPA3US.js → use-admin-query-BHPKmPuj.js} +2 -1
- package/dist/packem_shared/{use-auth-capabilities-BHkoBnbZ.js → use-auth-capabilities-C-VH0oJJ.js} +1 -1
- package/dist/standalone/{chunk-N4JI6VQD.js → chunk-25VHPD2I.js} +1 -1
- package/dist/standalone/chunk-2GGMGPEP.js +1 -0
- package/dist/standalone/{chunk-BHTPZS7L.js → chunk-3CJW6NWG.js} +1 -1
- package/dist/standalone/chunk-4H2OJBXO.js +1 -0
- package/dist/standalone/chunk-4MLAVZP4.js +1 -0
- package/dist/standalone/chunk-55YA7ZZI.js +76 -0
- package/dist/standalone/chunk-5OH3VPZF.js +1 -0
- package/dist/standalone/chunk-6GFEVKJP.js +1 -0
- package/dist/standalone/{chunk-ITLLHEVG.js → chunk-764T6X6X.js} +1 -1
- package/dist/standalone/chunk-7M3F6U4L.js +1 -0
- package/dist/standalone/{chunk-KGS7KM4A.js → chunk-7VF3IAAW.js} +1 -1
- package/dist/standalone/chunk-AJIUI7DD.js +1 -0
- package/dist/standalone/{chunk-5NSZVXCS.js → chunk-BACPICH6.js} +1 -1
- package/dist/standalone/chunk-BET2625I.js +1 -0
- package/dist/standalone/chunk-BQUQS7QN.js +1 -0
- package/dist/standalone/chunk-CKSHCYGC.js +2 -0
- package/dist/standalone/chunk-DCECRP45.js +1 -0
- package/dist/standalone/chunk-DFP2DADO.js +1 -0
- package/dist/standalone/chunk-DORBUITF.js +1 -0
- package/dist/standalone/chunk-DVKPRFIJ.js +1 -0
- package/dist/standalone/chunk-E6WUCLSI.js +1 -0
- package/dist/standalone/chunk-E7WLF6IU.js +1 -0
- package/dist/standalone/chunk-EVPLBWUT.js +8 -0
- package/dist/standalone/chunk-FCSPAJW4.js +1 -0
- package/dist/standalone/chunk-G2ICR3DL.js +1 -0
- package/dist/standalone/{chunk-2DS7JLWL.js → chunk-GJ6PGSES.js} +5 -5
- package/dist/standalone/chunk-GMSGZDDH.js +13 -0
- package/dist/standalone/chunk-GVRM4U6W.js +2 -0
- package/dist/standalone/chunk-GZDWDDXN.js +1 -0
- package/dist/standalone/chunk-ISJAJWYI.js +1 -0
- package/dist/standalone/{chunk-G2TFEWEQ.js → chunk-JIDZFLTB.js} +1 -1
- package/dist/standalone/{chunk-RMYA7NAH.js → chunk-K3GNLVYK.js} +1 -1
- package/dist/standalone/chunk-K4ZDRTQM.js +1 -0
- package/dist/standalone/{chunk-ASLGNHAX.js → chunk-LI43EKM6.js} +1 -1
- package/dist/standalone/chunk-MFPTVCJ6.js +1 -0
- package/dist/standalone/chunk-MPYFGAOW.js +1 -0
- package/dist/standalone/{chunk-TICVNLPM.js → chunk-O3NAGRTR.js} +1 -1
- package/dist/standalone/chunk-OV2WFAJX.js +1 -0
- package/dist/standalone/chunk-PA3LN4XJ.js +1 -0
- package/dist/standalone/chunk-PD6WPVYU.js +1 -0
- package/dist/standalone/{chunk-7PBZKXYA.js → chunk-PN5NCZDX.js} +1 -1
- package/dist/standalone/{chunk-YJGANMU7.js → chunk-PVZI3CXP.js} +10 -9
- package/dist/standalone/chunk-PZ7HD5T2.js +1 -0
- package/dist/standalone/{chunk-UGMRUEBU.js → chunk-QAFAJBAW.js} +1 -1
- package/dist/standalone/{chunk-6VTGE3WJ.js → chunk-QBAT52GB.js} +1 -1
- package/dist/standalone/chunk-QHIIRFG7.js +1 -0
- package/dist/standalone/chunk-RSEEHNFI.js +1 -0
- package/dist/standalone/chunk-SFJ5F4DX.js +1 -0
- package/dist/standalone/{chunk-3BP4BTLR.js → chunk-SGDQIWAR.js} +3 -3
- package/dist/standalone/chunk-SYEIXTEU.js +1 -0
- package/dist/standalone/chunk-T5HRXUSY.js +1 -0
- package/dist/standalone/{chunk-OD2POGPJ.js → chunk-TDL7NEWA.js} +1 -1
- package/dist/standalone/chunk-TM7CMA7X.js +1 -0
- package/dist/standalone/chunk-U4OAQPBT.js +1 -0
- package/dist/standalone/chunk-UDSVXA42.js +1 -0
- package/dist/standalone/chunk-UK64ZSUW.js +1 -0
- package/dist/standalone/chunk-VEZO7G5Q.js +3 -0
- package/dist/standalone/chunk-VSHUSN6T.js +1 -0
- package/dist/standalone/chunk-VYMCCC6O.js +1 -0
- package/dist/standalone/{chunk-7RYIQKZA.js → chunk-WXPWVBIY.js} +1 -1
- package/dist/standalone/chunk-X72PYOEW.js +1 -0
- package/dist/standalone/chunk-X7MMBSNW.js +1 -0
- package/dist/standalone/{chunk-6RC6L33K.js → chunk-XIGIWZLO.js} +3 -3
- package/dist/standalone/chunk-XNJNSCLM.js +1 -0
- package/dist/standalone/{chunk-NNISYDNI.js → chunk-XUGSA2NG.js} +1 -1
- package/dist/standalone/{chunk-VXBZQIGY.js → chunk-Y2ZPNDL7.js} +1 -1
- package/dist/standalone/chunk-YM6BBZDN.js +1 -0
- package/dist/standalone/chunk-ZHVTQ37P.js +1 -0
- package/dist/standalone/chunk-ZPP2KOR4.js +1 -0
- package/dist/standalone/studio.js +30 -30
- package/dist/styles.css +1 -1
- package/package.json +6 -5
- package/dist/standalone/chunk-2PDQ4KZ6.js +0 -1
- package/dist/standalone/chunk-45QK5ZPN.js +0 -1
- package/dist/standalone/chunk-57LYXHXH.js +0 -1
- package/dist/standalone/chunk-63XKJQTQ.js +0 -1
- package/dist/standalone/chunk-7POIIWC5.js +0 -3
- package/dist/standalone/chunk-AB6QGMBF.js +0 -1
- package/dist/standalone/chunk-D6ORSB24.js +0 -1
- package/dist/standalone/chunk-DGWTR4G7.js +0 -1
- package/dist/standalone/chunk-DSX53PBM.js +0 -1
- package/dist/standalone/chunk-DV2MNASX.js +0 -1
- package/dist/standalone/chunk-EGJX34WM.js +0 -1
- package/dist/standalone/chunk-FCR3HKFV.js +0 -1
- package/dist/standalone/chunk-FQKNJSRA.js +0 -76
- package/dist/standalone/chunk-GZXPPJVK.js +0 -1
- package/dist/standalone/chunk-HFBRE65A.js +0 -1
- package/dist/standalone/chunk-HG7Q5B3H.js +0 -1
- package/dist/standalone/chunk-HTQL7AXU.js +0 -1
- package/dist/standalone/chunk-KG3QTFWE.js +0 -1
- package/dist/standalone/chunk-KNRVPCFX.js +0 -1
- package/dist/standalone/chunk-KODWGUAB.js +0 -1
- package/dist/standalone/chunk-LZWPCZLE.js +0 -1
- package/dist/standalone/chunk-N2QDG3MW.js +0 -1
- package/dist/standalone/chunk-O4PXDNR3.js +0 -1
- package/dist/standalone/chunk-OXCK3ZUG.js +0 -1
- package/dist/standalone/chunk-P7DSVO4U.js +0 -1
- package/dist/standalone/chunk-PKAM3N5C.js +0 -1
- package/dist/standalone/chunk-QGXGBHQO.js +0 -1
- package/dist/standalone/chunk-QHA3TAEJ.js +0 -1
- package/dist/standalone/chunk-QQWC62X7.js +0 -1
- package/dist/standalone/chunk-S53RUBW5.js +0 -1
- package/dist/standalone/chunk-SB4GT6PK.js +0 -1
- package/dist/standalone/chunk-SHIOUDOT.js +0 -1
- package/dist/standalone/chunk-SIDRSX7Y.js +0 -1
- package/dist/standalone/chunk-VJPQUBN6.js +0 -8
- package/dist/standalone/chunk-VMJKJWG6.js +0 -1
- package/dist/standalone/chunk-VPDPN5RR.js +0 -2
- package/dist/standalone/chunk-VSEGZA3J.js +0 -1
- package/dist/standalone/chunk-W5LWN6IP.js +0 -1
- package/dist/standalone/chunk-W7PCVQTE.js +0 -1
- package/dist/standalone/chunk-W7SQVLBH.js +0 -1
- package/dist/standalone/chunk-XLILSHPE.js +0 -1
- package/dist/standalone/chunk-XURNGQSS.js +0 -1
- package/dist/standalone/chunk-YQQJ4N6U.js +0 -1
- package/dist/standalone/chunk-ZH7UES4T.js +0 -2
- package/dist/standalone/chunk-ZQCVDXDL.js +0 -1
|
@@ -8,7 +8,7 @@ import { L as Label } from '../packem_shared/label-D8ykjn5J.js';
|
|
|
8
8
|
import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
|
|
9
9
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
10
10
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
11
|
-
import { c as callOptions, e as errorMessage, f as fireAndForget, a as adminRef } from '../packem_shared/internal-
|
|
11
|
+
import { c as callOptions, e as errorMessage, f as fireAndForget, a as adminRef } from '../packem_shared/internal-DTsYVn-g.js';
|
|
12
12
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
13
13
|
|
|
14
14
|
const GET_BOOKMARK = adminRef(ADMIN_FUNCTIONS.getPitrBookmark);
|
|
@@ -12,7 +12,7 @@ import { I as Input } from '../packem_shared/input-XH4r1Pt1.js';
|
|
|
12
12
|
import useDebounced from '../packem_shared/useDebounced-Dxncpg6z.js';
|
|
13
13
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
14
14
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
15
|
-
import { f as fireAndForget, c as callOptions, e as errorMessage, a as adminRef } from '../packem_shared/internal-
|
|
15
|
+
import { f as fireAndForget, c as callOptions, e as errorMessage, a as adminRef } from '../packem_shared/internal-DTsYVn-g.js';
|
|
16
16
|
import { r as recordShard } from '../packem_shared/shard-history-DyebH1R5.js';
|
|
17
17
|
import { c as cn } from '../packem_shared/utils-B05Dmz_H.js';
|
|
18
18
|
import { Download01Icon } from '@hugeicons/core-free-icons';
|
|
@@ -20,6 +20,7 @@ import { HugeiconsIcon } from '@hugeicons/react';
|
|
|
20
20
|
import { Handle, Position, getNodesBounds, getViewportForBounds, useNodesState, useEdgesState, Background, Panel, Controls, MiniMap, ReactFlow, useNodes, useReactFlow } from '@xyflow/react';
|
|
21
21
|
import { d as DropdownMenu, D as DropdownMenuTrigger, c as DropdownMenuContent, b as DropdownMenuItem } from '../packem_shared/dropdown-menu-WY4B_eJO.js';
|
|
22
22
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
23
|
+
import { LunoraError } from '@lunora/errors';
|
|
23
24
|
import { toBlob, toSvg } from 'html-to-image';
|
|
24
25
|
import { useNavigate } from '@tanstack/react-router';
|
|
25
26
|
import { L as Label } from '../packem_shared/label-D8ykjn5J.js';
|
|
@@ -340,7 +341,7 @@ const exportDiagramAsPng = async (viewportElement, nodes, filename = "schema-dia
|
|
|
340
341
|
width: IMAGE_WIDTH
|
|
341
342
|
});
|
|
342
343
|
if (blob === null) {
|
|
343
|
-
throw new
|
|
344
|
+
throw new LunoraError("INTERNAL", "html-to-image produced no blob");
|
|
344
345
|
}
|
|
345
346
|
const url = globalThis.URL.createObjectURL(blob);
|
|
346
347
|
triggerDownload(url, filename);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
|
-
import { u as useAdminQuery } from '../packem_shared/use-admin-query-
|
|
2
|
+
import { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
3
3
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
4
4
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
5
|
-
import { A as AdvisorView } from '../packem_shared/advisor-view-
|
|
5
|
+
import { A as AdvisorView } from '../packem_shared/advisor-view-D3-U4kRR.js';
|
|
6
6
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
7
7
|
|
|
8
8
|
const findingTitle = (t, finding) => ({
|
|
@@ -43,7 +43,7 @@ const findingDetail = (t, finding) => ({
|
|
|
43
43
|
"ws-gate-open": t("LUNORA_WS_BEARER is unset, so the WebSocket upgrade gate is open: live admin subscriptions need no credential. Set it to gate them like the HTTP admin RPCs.")
|
|
44
44
|
})[finding.kind];
|
|
45
45
|
const SecurityAdvisorPanel = () => {
|
|
46
|
-
const $ = c(
|
|
46
|
+
const $ = c(8);
|
|
47
47
|
const t = useT();
|
|
48
48
|
let t0;
|
|
49
49
|
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -54,7 +54,8 @@ const SecurityAdvisorPanel = () => {
|
|
|
54
54
|
}
|
|
55
55
|
const {
|
|
56
56
|
data,
|
|
57
|
-
error
|
|
57
|
+
error,
|
|
58
|
+
errorSource
|
|
58
59
|
} = useAdminQuery(ADMIN_FUNCTIONS.getSecurityAudit, t0);
|
|
59
60
|
let t1;
|
|
60
61
|
if ($[1] !== data || $[2] !== t) {
|
|
@@ -74,17 +75,19 @@ const SecurityAdvisorPanel = () => {
|
|
|
74
75
|
}
|
|
75
76
|
const rows = t1;
|
|
76
77
|
let t2;
|
|
77
|
-
if ($[4] !== error || $[5] !== rows) {
|
|
78
|
+
if ($[4] !== error || $[5] !== errorSource || $[6] !== rows) {
|
|
78
79
|
t2 = /* @__PURE__ */ jsxDEV(AdvisorView, {
|
|
79
80
|
error,
|
|
81
|
+
errorSource,
|
|
80
82
|
rows,
|
|
81
83
|
testId: "lunora-security-advisor"
|
|
82
84
|
}, void 0, false);
|
|
83
85
|
$[4] = error;
|
|
84
|
-
$[5] =
|
|
85
|
-
$[6] =
|
|
86
|
+
$[5] = errorSource;
|
|
87
|
+
$[6] = rows;
|
|
88
|
+
$[7] = t2;
|
|
86
89
|
} else {
|
|
87
|
-
t2 = $[
|
|
90
|
+
t2 = $[7];
|
|
88
91
|
}
|
|
89
92
|
return t2;
|
|
90
93
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
+
import { E as ErrorAlert } from '../packem_shared/error-alert-BBT6D22d.js';
|
|
3
4
|
import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
|
|
4
5
|
import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
|
|
5
6
|
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
|
|
6
|
-
import { u as useAdminQuery } from '../packem_shared/use-admin-query-
|
|
7
|
+
import { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
7
8
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
9
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
9
10
|
import { b as CLOUDFLARE_WORKERS_URL } from '../packem_shared/cf-links-BZfRdxSE.js';
|
|
@@ -15,7 +16,7 @@ const KIND_VARIANT = {
|
|
|
15
16
|
var: "secondary"
|
|
16
17
|
};
|
|
17
18
|
const SettingsPanel = (t0) => {
|
|
18
|
-
const $ = c(
|
|
19
|
+
const $ = c(68);
|
|
19
20
|
const {
|
|
20
21
|
initialShardKey
|
|
21
22
|
} = t0;
|
|
@@ -41,6 +42,7 @@ const SettingsPanel = (t0) => {
|
|
|
41
42
|
const {
|
|
42
43
|
data: result,
|
|
43
44
|
error,
|
|
45
|
+
errorSource,
|
|
44
46
|
isLoading: loading
|
|
45
47
|
} = useAdminQuery(ADMIN_FUNCTIONS.getSettings, t1, t3);
|
|
46
48
|
let t4;
|
|
@@ -220,20 +222,19 @@ const SettingsPanel = (t0) => {
|
|
|
220
222
|
t9 = $[39];
|
|
221
223
|
}
|
|
222
224
|
let t10;
|
|
223
|
-
if ($[40] !== error) {
|
|
224
|
-
t10 = error !== null && /* @__PURE__ */ jsxDEV(
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
role: "alert",
|
|
228
|
-
children: error
|
|
225
|
+
if ($[40] !== error || $[41] !== errorSource) {
|
|
226
|
+
t10 = error !== null && /* @__PURE__ */ jsxDEV(ErrorAlert, {
|
|
227
|
+
error: errorSource,
|
|
228
|
+
testId: "set-error"
|
|
229
229
|
}, void 0, false);
|
|
230
230
|
$[40] = error;
|
|
231
|
-
$[41] =
|
|
231
|
+
$[41] = errorSource;
|
|
232
|
+
$[42] = t10;
|
|
232
233
|
} else {
|
|
233
|
-
t10 = $[
|
|
234
|
+
t10 = $[42];
|
|
234
235
|
}
|
|
235
236
|
let t11;
|
|
236
|
-
if ($[
|
|
237
|
+
if ($[43] !== deployRows || $[44] !== t) {
|
|
237
238
|
t11 = deployRows.length > 0 && /* @__PURE__ */ jsxDEV(Card, {
|
|
238
239
|
className: "py-0",
|
|
239
240
|
"data-testid": "set-deploy",
|
|
@@ -251,22 +252,22 @@ const SettingsPanel = (t0) => {
|
|
|
251
252
|
}, void 0, false)
|
|
252
253
|
}, void 0, false)]
|
|
253
254
|
}, void 0, true);
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
256
|
-
$[
|
|
255
|
+
$[43] = deployRows;
|
|
256
|
+
$[44] = t;
|
|
257
|
+
$[45] = t11;
|
|
257
258
|
} else {
|
|
258
|
-
t11 = $[
|
|
259
|
+
t11 = $[45];
|
|
259
260
|
}
|
|
260
261
|
let t12;
|
|
261
|
-
if ($[
|
|
262
|
+
if ($[46] !== t) {
|
|
262
263
|
t12 = t("Environment & bindings");
|
|
263
|
-
$[
|
|
264
|
-
$[
|
|
264
|
+
$[46] = t;
|
|
265
|
+
$[47] = t12;
|
|
265
266
|
} else {
|
|
266
|
-
t12 = $[
|
|
267
|
+
t12 = $[47];
|
|
267
268
|
}
|
|
268
269
|
let t13;
|
|
269
|
-
if ($[
|
|
270
|
+
if ($[48] !== t12) {
|
|
270
271
|
t13 = /* @__PURE__ */ jsxDEV("header", {
|
|
271
272
|
className: "border-b border-border px-4 py-3",
|
|
272
273
|
children: /* @__PURE__ */ jsxDEV("span", {
|
|
@@ -274,28 +275,28 @@ const SettingsPanel = (t0) => {
|
|
|
274
275
|
children: t12
|
|
275
276
|
}, void 0, false)
|
|
276
277
|
}, void 0, false);
|
|
277
|
-
$[
|
|
278
|
-
$[
|
|
278
|
+
$[48] = t12;
|
|
279
|
+
$[49] = t13;
|
|
279
280
|
} else {
|
|
280
|
-
t13 = $[
|
|
281
|
+
t13 = $[49];
|
|
281
282
|
}
|
|
282
283
|
let t14;
|
|
283
|
-
if ($[
|
|
284
|
+
if ($[50] !== error || $[51] !== loading || $[52] !== settings.length || $[53] !== t) {
|
|
284
285
|
t14 = error === null && !loading && settings.length === 0 && /* @__PURE__ */ jsxDEV("p", {
|
|
285
286
|
className: "px-4 py-8 text-center text-sm text-muted-foreground",
|
|
286
287
|
"data-testid": "set-empty",
|
|
287
288
|
children: t("No environment variables or bindings.")
|
|
288
289
|
}, void 0, false);
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
290
|
+
$[50] = error;
|
|
291
|
+
$[51] = loading;
|
|
292
|
+
$[52] = settings.length;
|
|
293
|
+
$[53] = t;
|
|
294
|
+
$[54] = t14;
|
|
294
295
|
} else {
|
|
295
|
-
t14 = $[
|
|
296
|
+
t14 = $[54];
|
|
296
297
|
}
|
|
297
298
|
let t15;
|
|
298
|
-
if ($[
|
|
299
|
+
if ($[55] !== settings || $[56] !== t) {
|
|
299
300
|
t15 = settings.length > 0 && /* @__PURE__ */ jsxDEV(CardContent, {
|
|
300
301
|
className: "px-0 py-0",
|
|
301
302
|
children: /* @__PURE__ */ jsxDEV(Table, {
|
|
@@ -315,40 +316,40 @@ const SettingsPanel = (t0) => {
|
|
|
315
316
|
}, void 0, false)]
|
|
316
317
|
}, void 0, true)
|
|
317
318
|
}, void 0, false);
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
319
|
+
$[55] = settings;
|
|
320
|
+
$[56] = t;
|
|
321
|
+
$[57] = t15;
|
|
321
322
|
} else {
|
|
322
|
-
t15 = $[
|
|
323
|
+
t15 = $[57];
|
|
323
324
|
}
|
|
324
325
|
let t16;
|
|
325
|
-
if ($[
|
|
326
|
+
if ($[58] !== t13 || $[59] !== t14 || $[60] !== t15) {
|
|
326
327
|
t16 = /* @__PURE__ */ jsxDEV(Card, {
|
|
327
328
|
className: "py-0",
|
|
328
329
|
children: [t13, t14, t15]
|
|
329
330
|
}, void 0, true);
|
|
330
|
-
$[
|
|
331
|
-
$[
|
|
332
|
-
$[
|
|
333
|
-
$[
|
|
331
|
+
$[58] = t13;
|
|
332
|
+
$[59] = t14;
|
|
333
|
+
$[60] = t15;
|
|
334
|
+
$[61] = t16;
|
|
334
335
|
} else {
|
|
335
|
-
t16 = $[
|
|
336
|
+
t16 = $[61];
|
|
336
337
|
}
|
|
337
338
|
let t17;
|
|
338
|
-
if ($[
|
|
339
|
+
if ($[62] !== t10 || $[63] !== t11 || $[64] !== t16 || $[65] !== t7 || $[66] !== t9) {
|
|
339
340
|
t17 = /* @__PURE__ */ jsxDEV("div", {
|
|
340
341
|
className: "flex flex-col gap-4",
|
|
341
342
|
"data-testid": "lunora-settings",
|
|
342
343
|
children: [t7, t9, t10, t11, t16]
|
|
343
344
|
}, void 0, true);
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
346
|
-
$[
|
|
347
|
-
$[
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
345
|
+
$[62] = t10;
|
|
346
|
+
$[63] = t11;
|
|
347
|
+
$[64] = t16;
|
|
348
|
+
$[65] = t7;
|
|
349
|
+
$[66] = t9;
|
|
350
|
+
$[67] = t17;
|
|
350
351
|
} else {
|
|
351
|
-
t17 = $[
|
|
352
|
+
t17 = $[67];
|
|
352
353
|
}
|
|
353
354
|
return t17;
|
|
354
355
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { useLunora } from '@lunora/react';
|
|
3
3
|
import { useState, useRef, useEffect, useId } from 'react';
|
|
4
|
-
import { u as usePersistedList, n as newId,
|
|
4
|
+
import { u as usePersistedList, n as newId, S as SqlResultChart } from '../packem_shared/browser-storage-tLOxkIHd.js';
|
|
5
5
|
import { ShardInput } from '../packem_shared/ShardInput-gx_DZXXn.js';
|
|
6
|
+
import { A as Alert } from '../packem_shared/alert-CdAET2K_.js';
|
|
6
7
|
import { c as TableHead, a as TableHeader, b as TableRow, e as TableCell, d as TableBody, T as Table } from '../packem_shared/table-DsCa9Qp9.js';
|
|
7
8
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
9
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
9
|
-
import { f as fireAndForget, c as callOptions, a as adminRef, e as errorMessage } from '../packem_shared/internal-
|
|
10
|
+
import { f as fireAndForget, c as callOptions, a as adminRef, e as errorMessage } from '../packem_shared/internal-DTsYVn-g.js';
|
|
10
11
|
import { r as recordShard } from '../packem_shared/shard-history-DyebH1R5.js';
|
|
11
|
-
import { C as CellValue } from '../packem_shared/data-grid-
|
|
12
|
-
import { E as ExportMenu } from '../packem_shared/grid-features-
|
|
12
|
+
import { C as CellValue } from '../packem_shared/data-grid-Jz8FqQ2C.js';
|
|
13
|
+
import { E as ExportMenu } from '../packem_shared/grid-features-CUr8Z1_O.js';
|
|
13
14
|
import { c as cn } from '../packem_shared/utils-B05Dmz_H.js';
|
|
14
15
|
import { jsxDEV, Fragment } from 'react/jsx-dev-runtime';
|
|
15
16
|
|
|
@@ -5,9 +5,9 @@ import { useRef, useState, useEffect } from 'react';
|
|
|
5
5
|
import { T as TIER_META } from '../packem_shared/storage-tier-CL98eOvn.js';
|
|
6
6
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
7
7
|
import { s as searchToDataView, d as dataViewToSearch } from '../packem_shared/data-view-params-Cd6yRVbv.js';
|
|
8
|
-
import { f as fireAndForget } from '../packem_shared/internal-
|
|
9
|
-
import { DataBrowser } from '../packem_shared/DataBrowser-
|
|
10
|
-
import { GlobalDataBrowser } from '../packem_shared/GlobalDataBrowser-
|
|
8
|
+
import { f as fireAndForget } from '../packem_shared/internal-DTsYVn-g.js';
|
|
9
|
+
import { DataBrowser } from '../packem_shared/DataBrowser-DSNK1tPg.js';
|
|
10
|
+
import { GlobalDataBrowser } from '../packem_shared/GlobalDataBrowser-ErfvIs1S.js';
|
|
11
11
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
12
12
|
|
|
13
13
|
const STORAGE_KEY = "lunora-studio-saved-queries";
|
|
@@ -5,7 +5,7 @@ import { C as Card } from '../packem_shared/card-DURq3ElK.js';
|
|
|
5
5
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
6
6
|
import { T as Table, a as TableHeader, b as TableRow, d as TableBody, e as TableCell, c as TableHead } from '../packem_shared/table-DsCa9Qp9.js';
|
|
7
7
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
|
-
import { e as errorMessage, f as fireAndForget,
|
|
8
|
+
import { e as errorMessage, f as fireAndForget, h as formatCell } from '../packem_shared/internal-DTsYVn-g.js';
|
|
9
9
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
10
10
|
|
|
11
11
|
const DEFAULT_DATASET = "ANALYTICS";
|
|
@@ -2,7 +2,7 @@ import { c } from 'react/compiler-runtime';
|
|
|
2
2
|
import { useLunora } from '@lunora/react';
|
|
3
3
|
import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
|
|
4
4
|
import { a as CardContent, C as Card } from '../packem_shared/card-DURq3ElK.js';
|
|
5
|
-
import { a as useClientQuery } from '../packem_shared/use-admin-query-
|
|
5
|
+
import { a as useClientQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
6
6
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
7
7
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
8
8
|
|
|
@@ -4,10 +4,10 @@ import { B as Button } from '../packem_shared/button-BhsN2uZH.js';
|
|
|
4
4
|
import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
|
|
5
5
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
6
6
|
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
|
|
7
|
-
import { a as useClientQuery } from '../packem_shared/use-admin-query-
|
|
7
|
+
import { a as useClientQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
8
8
|
import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
|
|
9
9
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
10
|
-
import {
|
|
10
|
+
import { i as formatTimestamp, f as fireAndForget } from '../packem_shared/internal-DTsYVn-g.js';
|
|
11
11
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
12
12
|
|
|
13
13
|
const SESSION_LIMIT = 200;
|
|
@@ -5,7 +5,7 @@ import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
|
|
|
5
5
|
import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
|
|
6
6
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
7
7
|
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
|
|
8
|
-
import { u as useAdminQuery } from '../packem_shared/use-admin-query-
|
|
8
|
+
import { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
9
9
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
10
10
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
11
11
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { useState, useCallback, useEffect } from 'react';
|
|
3
|
-
import { u as usePersistedList,
|
|
3
|
+
import { u as usePersistedList, S as SqlResultChart, n as newId } from '../packem_shared/browser-storage-tLOxkIHd.js';
|
|
4
|
+
import { A as Alert } from '../packem_shared/alert-CdAET2K_.js';
|
|
4
5
|
import { B as Button } from '../packem_shared/button-BhsN2uZH.js';
|
|
5
6
|
import { c as CardTitle, b as CardHeader, a as CardContent, C as Card } from '../packem_shared/card-DURq3ElK.js';
|
|
6
7
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
7
8
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
9
|
import { useLunora } from '@lunora/react';
|
|
9
10
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
10
|
-
import { c as callOptions, e as errorMessage, f as fireAndForget, a as adminRef } from '../packem_shared/internal-
|
|
11
|
+
import { c as callOptions, e as errorMessage, f as fireAndForget, a as adminRef } from '../packem_shared/internal-DTsYVn-g.js';
|
|
11
12
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
12
13
|
|
|
13
14
|
const RUN_SQL = adminRef(ADMIN_FUNCTIONS.runSql);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
+
import { E as ErrorAlert } from '../packem_shared/error-alert-BBT6D22d.js';
|
|
3
4
|
import { ShardInput } from '../packem_shared/ShardInput-gx_DZXXn.js';
|
|
4
5
|
import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
|
|
5
6
|
import { C as Card } from '../packem_shared/card-DURq3ElK.js';
|
|
6
7
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
7
8
|
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
|
|
8
|
-
import { u as useAdminQuery } from '../packem_shared/use-admin-query-
|
|
9
|
+
import { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
9
10
|
import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
|
|
10
11
|
import useDebounced from '../packem_shared/useDebounced-Dxncpg6z.js';
|
|
11
12
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
@@ -241,7 +242,7 @@ const PathCounters = (t0) => {
|
|
|
241
242
|
return t19;
|
|
242
243
|
};
|
|
243
244
|
const FanoutPanel = (t0) => {
|
|
244
|
-
const $ = c(
|
|
245
|
+
const $ = c(32);
|
|
245
246
|
const {
|
|
246
247
|
initialShardKey
|
|
247
248
|
} = t0;
|
|
@@ -277,6 +278,7 @@ const FanoutPanel = (t0) => {
|
|
|
277
278
|
const {
|
|
278
279
|
data: result,
|
|
279
280
|
error,
|
|
281
|
+
errorSource,
|
|
280
282
|
refetch
|
|
281
283
|
} = useAdminQuery(ADMIN_FUNCTIONS.getFanoutMetrics, t2, t3);
|
|
282
284
|
useAutoRefresh(refetch, true);
|
|
@@ -347,20 +349,19 @@ const FanoutPanel = (t0) => {
|
|
|
347
349
|
t7 = $[14];
|
|
348
350
|
}
|
|
349
351
|
let t8;
|
|
350
|
-
if ($[15] !== error) {
|
|
351
|
-
t8 = error !== null && /* @__PURE__ */ jsxDEV(
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
role: "alert",
|
|
355
|
-
children: error
|
|
352
|
+
if ($[15] !== error || $[16] !== errorSource) {
|
|
353
|
+
t8 = error !== null && /* @__PURE__ */ jsxDEV(ErrorAlert, {
|
|
354
|
+
error: errorSource,
|
|
355
|
+
testId: "fanout-error"
|
|
356
356
|
}, void 0, false);
|
|
357
357
|
$[15] = error;
|
|
358
|
-
$[16] =
|
|
358
|
+
$[16] = errorSource;
|
|
359
|
+
$[17] = t8;
|
|
359
360
|
} else {
|
|
360
|
-
t8 = $[
|
|
361
|
+
t8 = $[17];
|
|
361
362
|
}
|
|
362
363
|
let t9;
|
|
363
|
-
if ($[
|
|
364
|
+
if ($[18] !== error || $[19] !== isIdle || $[20] !== t) {
|
|
364
365
|
t9 = error === null && isIdle && /* @__PURE__ */ jsxDEV(EmptyState, {
|
|
365
366
|
description: t("Realtime fan-out cost and per-topic subscriber counts for this shard."),
|
|
366
367
|
icon: /* @__PURE__ */ jsxDEV("svg", {
|
|
@@ -378,15 +379,15 @@ const FanoutPanel = (t0) => {
|
|
|
378
379
|
testId: "fanout-empty",
|
|
379
380
|
title: t("No fan-out activity yet.")
|
|
380
381
|
}, void 0, false);
|
|
381
|
-
$[
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
382
|
+
$[18] = error;
|
|
383
|
+
$[19] = isIdle;
|
|
384
|
+
$[20] = t;
|
|
385
|
+
$[21] = t9;
|
|
385
386
|
} else {
|
|
386
|
-
t9 = $[
|
|
387
|
+
t9 = $[21];
|
|
387
388
|
}
|
|
388
389
|
let t10;
|
|
389
|
-
if ($[
|
|
390
|
+
if ($[22] !== error || $[23] !== isIdle || $[24] !== result || $[25] !== t) {
|
|
390
391
|
t10 = error === null && result !== void 0 && !isIdle && /* @__PURE__ */ jsxDEV(Fragment, {
|
|
391
392
|
children: [result.topics.length > 0 && /* @__PURE__ */ jsxDEV("section", {
|
|
392
393
|
className: "flex flex-col gap-2",
|
|
@@ -435,28 +436,28 @@ const FanoutPanel = (t0) => {
|
|
|
435
436
|
}, void 0, false)]
|
|
436
437
|
}, void 0, true)]
|
|
437
438
|
}, void 0, true);
|
|
438
|
-
$[
|
|
439
|
-
$[
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
439
|
+
$[22] = error;
|
|
440
|
+
$[23] = isIdle;
|
|
441
|
+
$[24] = result;
|
|
442
|
+
$[25] = t;
|
|
443
|
+
$[26] = t10;
|
|
443
444
|
} else {
|
|
444
|
-
t10 = $[
|
|
445
|
+
t10 = $[26];
|
|
445
446
|
}
|
|
446
447
|
let t11;
|
|
447
|
-
if ($[
|
|
448
|
+
if ($[27] !== t10 || $[28] !== t7 || $[29] !== t8 || $[30] !== t9) {
|
|
448
449
|
t11 = /* @__PURE__ */ jsxDEV("div", {
|
|
449
450
|
className: "flex flex-col gap-4",
|
|
450
451
|
"data-testid": "fanout-panel",
|
|
451
452
|
children: [t7, t8, t9, t10]
|
|
452
453
|
}, void 0, true);
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
454
|
+
$[27] = t10;
|
|
455
|
+
$[28] = t7;
|
|
456
|
+
$[29] = t8;
|
|
457
|
+
$[30] = t9;
|
|
458
|
+
$[31] = t11;
|
|
458
459
|
} else {
|
|
459
|
-
t11 = $[
|
|
460
|
+
t11 = $[31];
|
|
460
461
|
}
|
|
461
462
|
return t11;
|
|
462
463
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useState, useMemo } from 'react';
|
|
2
|
+
import { E as ErrorAlert } from '../packem_shared/error-alert-BBT6D22d.js';
|
|
2
3
|
import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
|
|
3
4
|
import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
|
|
4
5
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
5
6
|
import { L as Label } from '../packem_shared/label-D8ykjn5J.js';
|
|
6
7
|
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
|
|
7
8
|
import { T as Textarea } from '../packem_shared/textarea-D3gaCU_-.js';
|
|
8
|
-
import { u as useAdminQuery } from '../packem_shared/use-admin-query-
|
|
9
|
+
import { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
9
10
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
10
11
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
11
12
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
@@ -59,6 +60,7 @@ const FlagsPanel = ({
|
|
|
59
60
|
const {
|
|
60
61
|
data,
|
|
61
62
|
error,
|
|
63
|
+
errorSource,
|
|
62
64
|
liveError
|
|
63
65
|
} = useAdminQuery(ADMIN_FUNCTIONS.listFlags, args, {
|
|
64
66
|
live: true,
|
|
@@ -135,11 +137,9 @@ const FlagsPanel = ({
|
|
|
135
137
|
return /* @__PURE__ */ jsxDEV("div", {
|
|
136
138
|
className: "flex flex-col gap-6",
|
|
137
139
|
"data-testid": "lunora-flags-panel",
|
|
138
|
-
children: [error !== null && /* @__PURE__ */ jsxDEV(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
role: "alert",
|
|
142
|
-
children: error
|
|
140
|
+
children: [error !== null && /* @__PURE__ */ jsxDEV(ErrorAlert, {
|
|
141
|
+
error: errorSource,
|
|
142
|
+
testId: "flags-error"
|
|
143
143
|
}, void 0, false), /* @__PURE__ */ jsxDEV("p", {
|
|
144
144
|
className: "text-sm text-muted-foreground",
|
|
145
145
|
children: t('Feature flags are read in code with ctx.flags.<type>("key", default). They evaluate through the OpenFeature provider configured in lunora/flags.ts; edit the targeting context below to see how each flag resolves for a given audience.')
|
|
@@ -4,11 +4,11 @@ import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
|
|
|
4
4
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
5
5
|
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
|
|
6
6
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
7
|
-
import { f as fireAndForget, e as errorMessage,
|
|
7
|
+
import { f as fireAndForget, e as errorMessage, j as formatBytes, g as copyToClipboard } from '../packem_shared/internal-DTsYVn-g.js';
|
|
8
8
|
import { B as Button } from '../packem_shared/button-BhsN2uZH.js';
|
|
9
9
|
import { C as Checkbox } from '../packem_shared/checkbox-UNkzAxl-.js';
|
|
10
10
|
import { I as Input } from '../packem_shared/input-XH4r1Pt1.js';
|
|
11
|
-
import { b as Sheet, c as SheetContent, d as SheetHeader, e as SheetTitle } from '../packem_shared/studio-
|
|
11
|
+
import { b as Sheet, c as SheetContent, d as SheetHeader, e as SheetTitle } from '../packem_shared/studio-Dg2e-dsR.js';
|
|
12
12
|
import { c } from 'react/compiler-runtime';
|
|
13
13
|
import { L as Label } from '../packem_shared/label-D8ykjn5J.js';
|
|
14
14
|
import { T as Textarea } from '../packem_shared/textarea-D3gaCU_-.js';
|
|
@@ -5,7 +5,7 @@ import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
|
|
|
5
5
|
import { I as Input } from '../packem_shared/input-XH4r1Pt1.js';
|
|
6
6
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
7
7
|
import { a as CLOUDFLARE_OBSERVABILITY_URL } from '../packem_shared/cf-links-BZfRdxSE.js';
|
|
8
|
-
import { f as fireAndForget, e as errorMessage,
|
|
8
|
+
import { f as fireAndForget, e as errorMessage, g as copyToClipboard } from '../packem_shared/internal-DTsYVn-g.js';
|
|
9
9
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
10
10
|
|
|
11
11
|
const DestinationRow = (t0) => {
|
|
@@ -5,11 +5,11 @@ import { B as Button } from '../packem_shared/button-BhsN2uZH.js';
|
|
|
5
5
|
import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
|
|
6
6
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
7
7
|
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
|
|
8
|
-
import { a as useClientQuery } from '../packem_shared/use-admin-query-
|
|
9
|
-
import { u as useAuthCapabilities } from '../packem_shared/use-auth-capabilities-
|
|
8
|
+
import { a as useClientQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
9
|
+
import { u as useAuthCapabilities } from '../packem_shared/use-auth-capabilities-C-VH0oJJ.js';
|
|
10
10
|
import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
|
|
11
11
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
12
|
-
import {
|
|
12
|
+
import { h as formatCell, i as formatTimestamp, f as fireAndForget } from '../packem_shared/internal-DTsYVn-g.js';
|
|
13
13
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
14
14
|
|
|
15
15
|
const OrgRowTable = (t0) => {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { E as ErrorAlert } from '../packem_shared/error-alert-BBT6D22d.js';
|
|
1
2
|
import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
|
|
2
3
|
import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
|
|
3
4
|
import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
|
|
4
5
|
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
|
|
5
|
-
import { u as useAdminQuery } from '../packem_shared/use-admin-query-
|
|
6
|
+
import { u as useAdminQuery } from '../packem_shared/use-admin-query-BHPKmPuj.js';
|
|
6
7
|
import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
|
|
7
8
|
import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
8
9
|
import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-CdaxLGkE.js';
|
|
9
|
-
import {
|
|
10
|
+
import { i as formatTimestamp } from '../packem_shared/internal-DTsYVn-g.js';
|
|
10
11
|
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
11
12
|
|
|
12
13
|
const ACTIVE_STATES = /* @__PURE__ */ new Set(["active", "trialing"]);
|
|
@@ -66,6 +67,7 @@ const PaymentsPanel = ({
|
|
|
66
67
|
const subscriptions = subscriptionsQuery.data?.rows ?? [];
|
|
67
68
|
const events = eventsQuery.data?.rows ?? [];
|
|
68
69
|
const error = subscriptionsQuery.error ?? eventsQuery.error;
|
|
70
|
+
const errorSource = subscriptionsQuery.error === null ? eventsQuery.errorSource : subscriptionsQuery.errorSource;
|
|
69
71
|
const activeCount = subscriptions.filter((row) => ACTIVE_STATES.has(text(readField(row, "state")))).length;
|
|
70
72
|
const recentEvents = events.toSorted((a, b) => Number(readField(b, "processedAt") ?? 0) - Number(readField(a, "processedAt") ?? 0));
|
|
71
73
|
return /* @__PURE__ */ jsxDEV("div", {
|
|
@@ -100,9 +102,8 @@ const PaymentsPanel = ({
|
|
|
100
102
|
})
|
|
101
103
|
}, void 0, false)]
|
|
102
104
|
}, void 0, true)
|
|
103
|
-
}, void 0, false), error === null ? void 0 : /* @__PURE__ */ jsxDEV(
|
|
104
|
-
|
|
105
|
-
children: error
|
|
105
|
+
}, void 0, false), error === null ? void 0 : /* @__PURE__ */ jsxDEV(ErrorAlert, {
|
|
106
|
+
error: errorSource
|
|
106
107
|
}, void 0, false), subscriptions.length === 0 && !subscriptionsQuery.isLoading ? /* @__PURE__ */ jsxDEV(EmptyState, {
|
|
107
108
|
testId: "payments-empty",
|
|
108
109
|
title: t("No subscriptions yet")
|