@lunora/studio 1.0.0-alpha.9 → 1.0.0-alpha.90
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/LICENSE.md +6 -0
- package/dist/index.d.ts +822 -781
- package/dist/index.js +1 -41
- package/dist/mount.d.ts +10 -10
- package/dist/mount.js +1 -26
- package/dist/packem_chunks/AdvisorHealthPanel.js +1 -0
- package/dist/packem_chunks/ApiTab.js +1 -0
- package/dist/packem_chunks/AuditPanel.js +1 -0
- package/dist/packem_chunks/DeploymentHealthPanel.js +1 -0
- package/dist/packem_chunks/ExportImportPanel.js +3 -0
- package/dist/packem_chunks/FileBrowser.js +4 -0
- package/dist/packem_chunks/FunctionRunner.js +1 -0
- package/dist/packem_chunks/FunctionStatsPanel.js +1 -0
- package/dist/packem_chunks/HealthPanel.js +1 -0
- package/dist/packem_chunks/InsightsPanel.js +1 -0
- package/dist/packem_chunks/LogsPanel.js +1 -0
- package/dist/packem_chunks/MailPanel.js +2 -0
- package/dist/packem_chunks/MetricsPanel.js +1 -0
- package/dist/packem_chunks/NotificationsPanel.js +1 -0
- package/dist/packem_chunks/PitrPanel.js +1 -0
- package/dist/packem_chunks/SchemaViewer.js +1 -0
- package/dist/packem_chunks/SecurityAdvisorPanel.js +1 -0
- package/dist/packem_chunks/SettingsPanel.js +1 -0
- package/dist/packem_chunks/SqlEditorPanel.js +6 -0
- package/dist/packem_chunks/TableEditor.js +1 -0
- package/dist/packem_chunks/agents-panel.js +1 -0
- package/dist/packem_chunks/analytics-panel.js +1 -0
- package/dist/packem_chunks/auth-audit-panel.js +1 -0
- package/dist/packem_chunks/auth-config-panel.js +1 -0
- package/dist/packem_chunks/auth-sessions-panel.js +1 -0
- package/dist/packem_chunks/containers-panel.js +1 -0
- package/dist/packem_chunks/dashboards-panel.js +1 -0
- package/dist/packem_chunks/fanout-panel.js +1 -0
- package/dist/packem_chunks/flags-panel.js +1 -0
- package/dist/packem_chunks/issues-panel.js +1 -0
- package/dist/packem_chunks/kv-browser.js +1 -0
- package/dist/packem_chunks/log-drains-panel.js +4 -0
- package/dist/packem_chunks/migrations-route.js +1 -0
- package/dist/packem_chunks/organizations-panel.js +1 -0
- package/dist/packem_chunks/payments-panel.js +1 -0
- package/dist/packem_chunks/permissions-panel.js +1 -0
- package/dist/packem_chunks/queues-panel.js +1 -0
- package/dist/packem_chunks/rls-panel.js +1 -0
- package/dist/packem_chunks/schedule-panel.js +1 -0
- package/dist/packem_chunks/sparkline.js +1 -0
- package/dist/packem_chunks/storage-rules-panel.js +1 -0
- package/dist/packem_chunks/subscriptions-panel.js +1 -0
- package/dist/packem_chunks/sync-client-panel.js +1 -0
- package/dist/packem_chunks/traces-panel.js +1 -0
- package/dist/packem_chunks/users-panel.js +1 -0
- package/dist/packem_chunks/vector-browser.js +1 -0
- package/dist/packem_chunks/workflows-panel.js +1 -0
- package/dist/packem_shared/ADMIN_FUNCTIONS-4aE59aDq.js +1 -0
- package/dist/packem_shared/ApiDocsPanel-DLMeLZ5-.js +2 -0
- package/dist/packem_shared/ApiReferencePanel-9q8BbJl-.js +1 -0
- package/dist/packem_shared/CommandPalette--SQwfTW1.js +1 -0
- package/dist/packem_shared/ConfirmButton-CTL3f3kr.js +1 -0
- package/dist/packem_shared/ConnectionBadge-DOk0CQWo.js +1 -0
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-BCC8_4BQ.js +1 -0
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-B-hcFVoi.js +1 -0
- package/dist/packem_shared/DEFAULT_LOCALE-BZ4NojpD.js +1 -0
- package/dist/packem_shared/DataBrowser-CZZ_WkJ-.js +1 -0
- package/dist/packem_shared/DataFilters-B26ZeqBZ.js +1 -0
- package/dist/packem_shared/ErrorBoundary-DvzYskH7.js +1 -0
- package/dist/packem_shared/GlobalDataBrowser-DpkjHfDg.js +1 -0
- package/dist/packem_shared/HomePanel-3baDsDBU.js +1 -0
- package/dist/packem_shared/MigrationsPanel-dygzHUvg.js +1 -0
- package/dist/packem_shared/OpenRpcReferencePanel-qOZcWXMs.js +1 -0
- package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.js +1 -0
- package/dist/packem_shared/ScheduledJobs-D8kBZWBu.js +1 -0
- package/dist/packem_shared/ShardInput-BVn2iCU0.js +1 -0
- package/dist/packem_shared/Studio-forQt-PC.js +1 -0
- package/dist/packem_shared/StudioApp-B1AWsBzi.js +1 -0
- package/dist/packem_shared/StudioI18nProvider-CZ5h4nrV.js +1 -0
- package/dist/packem_shared/advisor-view-Pa8HLtBv.js +1 -0
- package/dist/packem_shared/aggregateMetrics-BNfajLa2.js +1 -0
- package/dist/packem_shared/alert-CVcOFuDR.js +1 -0
- package/dist/packem_shared/app.d-DW7yZsfu.d.ts +252 -0
- package/dist/packem_shared/badge-BbuuAio7.js +1 -0
- package/dist/packem_shared/bar-chart-DraN_srt.js +9 -0
- package/dist/packem_shared/browser-storage-xjTyMKY0.js +1 -0
- package/dist/packem_shared/button-BkCrNcAs.js +1 -0
- package/dist/packem_shared/card-CIDGUN6K.js +1 -0
- package/dist/packem_shared/cf-links-Dmg86v1D.js +1 -0
- package/dist/packem_shared/checkbox-StT4Gob6.js +1 -0
- package/dist/packem_shared/data-grid-DcxyIXwG.js +1 -0
- package/dist/packem_shared/data-view-params-ClrV7XgF.js +1 -0
- package/dist/packem_shared/dropdown-menu-C3RQ_HlW.js +2 -0
- package/dist/packem_shared/empty-state-Cg7t_8qu.js +1 -0
- package/dist/packem_shared/error-alert-t6cpEi0z.js +1 -0
- package/dist/packem_shared/grid-features-jnrD0SpX.js +6 -0
- package/dist/packem_shared/home-panel-CeeqqV0z.js +3 -0
- package/dist/packem_shared/input-JHu63lTv.js +1 -0
- package/dist/packem_shared/internal-BSIsQVC6.js +2 -0
- package/dist/packem_shared/label-6uP1obNF.js +1 -0
- package/dist/packem_shared/live-status-CmuRLFKf.js +1 -0
- package/dist/packem_shared/log-fields-CoL3hsIQ.js +1 -0
- package/dist/packem_shared/modal-shell-CUwwWC2o.js +1 -0
- package/dist/packem_shared/operation-console-provider-BMJNtiyB.js +1 -0
- package/dist/packem_shared/recording-client-DRAZEmzE.js +1 -0
- package/dist/packem_shared/reference-view-DnYYWr7I.js +12 -0
- package/dist/packem_shared/result-chart-DzJOVsaw.js +1 -0
- package/dist/packem_shared/schema-diagram-cg-bz_VL.js +2 -0
- package/dist/packem_shared/scroll-area-DTEq6Jec.js +2 -0
- package/dist/packem_shared/select-Bul-DeII.js +2 -0
- package/dist/packem_shared/shard-history-DMEW5VBE.js +1 -0
- package/dist/packem_shared/skeleton-C1wQ9M5t.js +1 -0
- package/dist/packem_shared/sparkline-CgjeUU2I.js +1 -0
- package/dist/packem_shared/stat-card-fm_TF1mo.js +1 -0
- package/dist/packem_shared/storage-tier-DznqOf-q.js +1 -0
- package/dist/packem_shared/studio-BtC7WPbz.js +2 -0
- package/dist/packem_shared/table-DdJBrClo.js +2 -0
- package/dist/packem_shared/table-list-sidebar-D9Bd4qgi.js +1 -0
- package/dist/packem_shared/textarea-Bu2-jKAs.js +1 -0
- package/dist/packem_shared/trace-handoff-Dw7mwjxu.js +1 -0
- package/dist/packem_shared/use-admin-query-QJ-ibl5u.js +1 -0
- package/dist/packem_shared/use-async-submit-q3ymBJkD.js +1 -0
- package/dist/packem_shared/use-auth-config-BObBpdsi.js +1 -0
- package/dist/packem_shared/use-shard-key-B2JtNa5m.js +1 -0
- package/dist/packem_shared/use-sql-assistant-C6dl2_Ty.js +1 -0
- package/dist/packem_shared/useDebounced-CU-uftxO.js +1 -0
- package/dist/packem_shared/utils-bhneXptQ.js +1 -0
- package/dist/packem_shared/virtual-rect-1o1veP7R.js +1 -0
- package/dist/standalone/chunk-24JLZ2Z5.js +1 -0
- package/dist/standalone/chunk-2OUPA2WJ.js +1 -0
- package/dist/standalone/chunk-2PJNAWB3.js +1 -0
- package/dist/standalone/chunk-2QSHLBCO.js +1 -0
- package/dist/standalone/chunk-3AV5CV6K.js +1 -0
- package/dist/standalone/chunk-3C3CG7ZK.js +1 -0
- package/dist/standalone/chunk-3CWGJYBB.js +1 -0
- package/dist/standalone/chunk-3XIESWL4.js +1 -0
- package/dist/standalone/chunk-4COKHD2C.js +1 -0
- package/dist/standalone/chunk-4LCY5XUR.js +1 -0
- package/dist/standalone/chunk-4UOFSGUS.js +1 -0
- package/dist/standalone/chunk-53KJRSHE.js +1 -0
- package/dist/standalone/chunk-54MMVNPT.js +1 -0
- package/dist/standalone/chunk-5Y3QLNWX.js +1 -0
- package/dist/standalone/chunk-5ZXDB6LB.js +13 -0
- package/dist/standalone/chunk-62EKHKTS.js +1 -0
- package/dist/standalone/chunk-67DKQC23.js +1 -0
- package/dist/standalone/chunk-6MKDYZ7A.js +1 -0
- package/dist/standalone/chunk-6ST5ECQA.js +1 -0
- package/dist/standalone/chunk-6VTLIGVX.js +1 -0
- package/dist/standalone/chunk-7H7LZRLP.js +1 -0
- package/dist/standalone/chunk-7QIFDWQV.js +1 -0
- package/dist/standalone/chunk-7T7UOTYK.js +1 -0
- package/dist/standalone/chunk-AQX2QFCN.js +1 -0
- package/dist/standalone/chunk-ARP36PTE.js +1 -0
- package/dist/standalone/chunk-AUQKJYHL.js +1 -0
- package/dist/standalone/chunk-AVAC26HJ.js +1 -0
- package/dist/standalone/chunk-AZAGCJVI.js +1 -0
- package/dist/standalone/chunk-BGBLQ563.js +1 -0
- package/dist/standalone/chunk-BL6NO3U3.js +1 -0
- package/dist/standalone/chunk-BRQMMGOS.js +1 -0
- package/dist/standalone/chunk-BUTBQGUU.js +1 -0
- package/dist/standalone/chunk-C3HXK3A5.js +3 -0
- package/dist/standalone/chunk-CFPZYHPY.js +2 -0
- package/dist/standalone/chunk-CT6ZDXLL.js +1 -0
- package/dist/standalone/chunk-CTNB2KIA.js +1 -0
- package/dist/standalone/chunk-D3HXVA33.js +1 -0
- package/dist/standalone/chunk-DG7YINFM.js +1 -0
- package/dist/standalone/chunk-DMCYISRF.js +1 -0
- package/dist/standalone/chunk-E7TB4USI.js +1 -0
- package/dist/standalone/chunk-EQZTSISX.js +1 -0
- package/dist/standalone/chunk-ESVP44Y3.js +1 -0
- package/dist/standalone/chunk-FURI47Z2.js +1 -0
- package/dist/standalone/chunk-FW75RYZU.js +1 -0
- package/dist/standalone/chunk-FXCBF4XT.js +1 -0
- package/dist/standalone/chunk-GKSRVABT.js +1 -0
- package/dist/standalone/chunk-GMR677FL.js +1 -0
- package/dist/standalone/chunk-GRL5MG3Z.js +1 -0
- package/dist/standalone/chunk-GSKOAKQ2.js +1 -0
- package/dist/standalone/chunk-HPFLBYRI.js +1 -0
- package/dist/standalone/chunk-I6A5C46N.js +1 -0
- package/dist/standalone/chunk-IAKPXGTQ.js +8 -0
- package/dist/standalone/chunk-IC4L6G56.js +1 -0
- package/dist/standalone/chunk-IC64YIX5.js +1 -0
- package/dist/standalone/chunk-ILNELDFC.js +1 -0
- package/dist/standalone/chunk-IVFHIQOT.js +1 -0
- package/dist/standalone/chunk-JFW3YNVQ.js +1 -0
- package/dist/standalone/chunk-JN2Y24PY.js +1 -0
- package/dist/standalone/chunk-KUVMORDQ.js +1 -0
- package/dist/standalone/chunk-LAHYLAT4.js +1 -0
- package/dist/standalone/chunk-LEDWUPXM.js +1 -0
- package/dist/standalone/chunk-LJIFMW67.js +1 -0
- package/dist/standalone/chunk-LJISXTZJ.js +1 -0
- package/dist/standalone/chunk-LQAKPCFX.js +1 -0
- package/dist/standalone/chunk-MHAXZQVO.js +1 -0
- package/dist/standalone/chunk-MIQTKZAR.js +1 -0
- package/dist/standalone/chunk-MV4A2PAK.js +1 -0
- package/dist/standalone/chunk-OG2AMGOC.js +1 -0
- package/dist/standalone/chunk-OG4N2XHD.js +19 -0
- package/dist/standalone/chunk-PB7FNRDB.js +1 -0
- package/dist/standalone/chunk-PGC523I2.js +1 -0
- package/dist/standalone/chunk-PM37X2V3.js +1 -0
- package/dist/standalone/chunk-QBWRC5YX.js +1 -0
- package/dist/standalone/chunk-QLQADHFE.js +1 -0
- package/dist/standalone/chunk-QP7IQOKF.js +1 -0
- package/dist/standalone/chunk-QV6KV4SD.js +1 -0
- package/dist/standalone/chunk-QWBRD6PX.js +1 -0
- package/dist/standalone/chunk-QWGT25SE.js +1 -0
- package/dist/standalone/chunk-QXXIJAD5.js +1 -0
- package/dist/standalone/chunk-QYIOW7CD.js +4 -0
- package/dist/standalone/chunk-S3DWUXGY.js +62 -0
- package/dist/standalone/chunk-S4ILMYP5.js +4 -0
- package/dist/standalone/chunk-SD4BERSA.js +1 -0
- package/dist/standalone/chunk-SF4MF2FT.js +1 -0
- package/dist/standalone/chunk-SFDOII3B.js +1 -0
- package/dist/standalone/chunk-SHMNA6UL.js +1 -0
- package/dist/standalone/chunk-SMIESS7P.js +1 -0
- package/dist/standalone/chunk-SP5SBO2W.js +3 -0
- package/dist/standalone/chunk-T6OAYQTX.js +1 -0
- package/dist/standalone/chunk-T6VMSOBB.js +1 -0
- package/dist/standalone/chunk-TBBJPPZ3.js +2 -0
- package/dist/standalone/chunk-THIXMMZD.js +1 -0
- package/dist/standalone/chunk-U6TNNM5U.js +1 -0
- package/dist/standalone/chunk-ULCZDGWQ.js +1 -0
- package/dist/standalone/chunk-UU2QJMGJ.js +1 -0
- package/dist/standalone/chunk-UZERI5YC.js +1 -0
- package/dist/standalone/chunk-V2U5CL3S.js +11 -0
- package/dist/standalone/chunk-V53KNYRN.js +1 -0
- package/dist/standalone/chunk-VDW32UET.js +1 -0
- package/dist/standalone/chunk-VFQDHG7I.js +4 -0
- package/dist/standalone/chunk-WB5IUUUU.js +1 -0
- package/dist/standalone/chunk-WLZ7YPBH.js +6 -0
- package/dist/standalone/chunk-X665E2HU.js +1 -0
- package/dist/standalone/chunk-XBDKZZ67.js +1 -0
- package/dist/standalone/chunk-XF2B7P5A.js +1 -0
- package/dist/standalone/chunk-XNGYYOLS.js +14 -0
- package/dist/standalone/chunk-XQCVZAGU.js +1 -0
- package/dist/standalone/chunk-XR7RBXKA.js +1 -0
- package/dist/standalone/chunk-XXQUMVWH.js +1 -0
- package/dist/standalone/chunk-XZSGE5ST.js +1 -0
- package/dist/standalone/chunk-Y7JXGNXD.js +1 -0
- package/dist/standalone/chunk-YOUKADZH.js +1 -0
- package/dist/standalone/chunk-YU5CI2FD.js +6 -0
- package/dist/standalone/chunk-Z7G74IH4.js +1 -0
- package/dist/standalone/chunk-ZJGP6EKR.js +1 -0
- package/dist/standalone/chunk-ZPLWCC4I.js +1 -0
- package/dist/standalone/studio.js +9 -356
- package/dist/styles.css +2 -2
- package/package.json +16 -14
- package/dist/packem_shared/ADMIN_FUNCTIONS-DjXgvJb6.js +0 -46
- package/dist/packem_shared/ApiDocsPanel-yVSGHK3H.js +0 -842
- package/dist/packem_shared/ApiReferencePanel-1vubqG5s.js +0 -229
- package/dist/packem_shared/ApiTab-rwttyQ1-.js +0 -251
- package/dist/packem_shared/AuditPanel-BqXZAsu_.js +0 -212
- package/dist/packem_shared/CommandPalette-BtgkBzZI.js +0 -373
- package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
- package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
- package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
- package/dist/packem_shared/DataBrowser-BtT2NYcR.js +0 -4542
- package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
- package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
- package/dist/packem_shared/ExportImportPanel-Dq6rj0tI.js +0 -193
- package/dist/packem_shared/FileBrowser-0pCpdKPE.js +0 -2932
- package/dist/packem_shared/FunctionRunner-7NH3KcTg.js +0 -343
- package/dist/packem_shared/FunctionStatsPanel-Cn_EBpDy.js +0 -432
- package/dist/packem_shared/GlobalDataBrowser-BTEmGrph.js +0 -318
- package/dist/packem_shared/HealthPanel-CQ4LzVET.js +0 -640
- package/dist/packem_shared/HomePanel-CP0lN1eF.js +0 -1273
- package/dist/packem_shared/InsightsPanel-B1BaHaPL.js +0 -431
- package/dist/packem_shared/LogsPanel-C3W0mabf.js +0 -839
- package/dist/packem_shared/MailPanel-DozizrvV.js +0 -447
- package/dist/packem_shared/MetricsPanel-CujtUfpl.js +0 -1625
- package/dist/packem_shared/MigrationsPanel-RX5qIFSr.js +0 -246
- package/dist/packem_shared/OpenRpcReferencePanel-vbcYbv3V.js +0 -191
- package/dist/packem_shared/PitrPanel-LJGNP_IX.js +0 -252
- package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
- package/dist/packem_shared/ScheduledJobs-CabfKbyM.js +0 -159
- package/dist/packem_shared/SchemaViewer-Bam6ylvw.js +0 -2512
- package/dist/packem_shared/SecurityAdvisorPanel-Bn2yq05G.js +0 -79
- package/dist/packem_shared/SettingsPanel-CBXQpYQA.js +0 -176
- package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
- package/dist/packem_shared/SqlEditorPanel-D5wMIxcg.js +0 -13
- package/dist/packem_shared/Studio-CccqZ-J1.js +0 -33
- package/dist/packem_shared/StudioApp-CQbULfaH.js +0 -657
- package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
- package/dist/packem_shared/TableEditor-Df_5NPaF.js +0 -371
- package/dist/packem_shared/advisor-view-CGcfMiPq.js +0 -159
- package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
- package/dist/packem_shared/app.d-Nbhpihxv.d.ts +0 -300
- package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
- package/dist/packem_shared/bar-chart-CzJAgqkp.js +0 -3245
- package/dist/packem_shared/button-BhsN2uZH.js +0 -49
- package/dist/packem_shared/card-DURq3ElK.js +0 -175
- package/dist/packem_shared/cf-links-2cktDedA.js +0 -8
- package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
- package/dist/packem_shared/data-grid-B5CaV3wS.js +0 -183
- package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
- package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
- package/dist/packem_shared/grid-features-CzUfqgsM.js +0 -840
- package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
- package/dist/packem_shared/internal-rXJEAhXS.js +0 -68
- package/dist/packem_shared/label-D8ykjn5J.js +0 -46
- package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
- package/dist/packem_shared/reference-view-B4E49Lip.js +0 -2180
- package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
- package/dist/packem_shared/sparkline-10dG-_f0.js +0 -93
- package/dist/packem_shared/sql-editor-panel-Smfl_FDF.js +0 -2562
- package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
- package/dist/packem_shared/studio-D93XGB-i.js +0 -10413
- package/dist/packem_shared/table-_RzNvy3R.js +0 -246
- package/dist/packem_shared/table-list-sidebar-Bg7uzbvC.js +0 -832
- package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
- package/dist/packem_shared/use-live-admin-Dq6g3daN.js +0 -73
- package/dist/packem_shared/use-live-shard-seed-Cuk3dnH0.js +0 -76
- package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
- package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
- package/dist/packem_shared/virtual-rect-CVMUskSm.js +0 -10
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
import { c } from 'react/compiler-runtime';
|
|
2
|
-
import { useLunora } from '@lunora/react';
|
|
3
|
-
import { useState, useRef, useEffect } from 'react';
|
|
4
|
-
import { L as LiveError } from './live-status-FZ0psC1z.js';
|
|
5
|
-
import { ShardInput } from './ShardInput-gx_DZXXn.js';
|
|
6
|
-
import { B as Badge } from './badge-B2PKA1-5.js';
|
|
7
|
-
import { B as Button } from './button-BhsN2uZH.js';
|
|
8
|
-
import { C as Card, a as CardContent } from './card-DURq3ElK.js';
|
|
9
|
-
import { E as EmptyState } from './empty-state-DY_oe0k6.js';
|
|
10
|
-
import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from './table-_RzNvy3R.js';
|
|
11
|
-
import { u as useLiveAdmin } from './use-live-admin-Dq6g3daN.js';
|
|
12
|
-
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
13
|
-
import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-DjXgvJb6.js';
|
|
14
|
-
import { b as formatTimestamp, c as callOptions, e as errorMessage, a as adminRef } from './internal-rXJEAhXS.js';
|
|
15
|
-
import { c as cn } from './utils-B05Dmz_H.js';
|
|
16
|
-
import { u as useLiveShardSeed } from './use-live-shard-seed-Cuk3dnH0.js';
|
|
17
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
18
|
-
|
|
19
|
-
const GET_FUNCTION_STATS = adminRef(ADMIN_FUNCTIONS.getFunctionStats);
|
|
20
|
-
const KIND_VARIANT = {
|
|
21
|
-
action: "outline",
|
|
22
|
-
mutation: "default",
|
|
23
|
-
query: "secondary"
|
|
24
|
-
};
|
|
25
|
-
const formatMs = (ms) => {
|
|
26
|
-
if (ms < 1e3) {
|
|
27
|
-
return `${ms < 10 ? ms.toFixed(1) : Math.round(ms).toString()}ms`;
|
|
28
|
-
}
|
|
29
|
-
return `${(ms / 1e3).toFixed(2)}s`;
|
|
30
|
-
};
|
|
31
|
-
const errorCell = (stat) => {
|
|
32
|
-
if (stat.calls === 0) {
|
|
33
|
-
return "—";
|
|
34
|
-
}
|
|
35
|
-
if (stat.errors === 0) {
|
|
36
|
-
return "0";
|
|
37
|
-
}
|
|
38
|
-
return `${stat.errors.toString()} (${(stat.errors / stat.calls * 100).toFixed(1)}%)`;
|
|
39
|
-
};
|
|
40
|
-
const conflictCell = (stat) => {
|
|
41
|
-
const conflicts = stat.conflicts ?? 0;
|
|
42
|
-
if (stat.calls === 0) {
|
|
43
|
-
return "—";
|
|
44
|
-
}
|
|
45
|
-
if (conflicts === 0) {
|
|
46
|
-
return "0";
|
|
47
|
-
}
|
|
48
|
-
return `${conflicts.toString()} (${(conflicts / stat.calls * 100).toFixed(1)}%)`;
|
|
49
|
-
};
|
|
50
|
-
const SORTERS = {
|
|
51
|
-
calls: (a, b) => b.calls - a.calls,
|
|
52
|
-
recent: (a, b) => b.lastCalledAt - a.lastCalledAt,
|
|
53
|
-
slowest: (a, b) => b.maxDurationMs - a.maxDurationMs
|
|
54
|
-
};
|
|
55
|
-
const FunctionStatsPanel = (t0) => {
|
|
56
|
-
const $ = c(48);
|
|
57
|
-
const {
|
|
58
|
-
functions,
|
|
59
|
-
initialShardKey
|
|
60
|
-
} = t0;
|
|
61
|
-
const client = useLunora();
|
|
62
|
-
const t = useT();
|
|
63
|
-
const [shardKey, setShardKey] = useState(initialShardKey ?? "");
|
|
64
|
-
const [stats, setStats] = useState(null);
|
|
65
|
-
const [error, setError] = useState(null);
|
|
66
|
-
const [sortKey, setSortKey] = useState("recent");
|
|
67
|
-
const [liveError, setLiveError] = useState(void 0);
|
|
68
|
-
const mountedRef = useRef(true);
|
|
69
|
-
let t1;
|
|
70
|
-
let t2;
|
|
71
|
-
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
72
|
-
t1 = () => {
|
|
73
|
-
mountedRef.current = true;
|
|
74
|
-
return () => {
|
|
75
|
-
mountedRef.current = false;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
t2 = [];
|
|
79
|
-
$[0] = t1;
|
|
80
|
-
$[1] = t2;
|
|
81
|
-
} else {
|
|
82
|
-
t1 = $[0];
|
|
83
|
-
t2 = $[1];
|
|
84
|
-
}
|
|
85
|
-
useEffect(t1, t2);
|
|
86
|
-
let t3;
|
|
87
|
-
if ($[2] !== functions) {
|
|
88
|
-
t3 = new Map((functions ?? []).map(_temp));
|
|
89
|
-
$[2] = functions;
|
|
90
|
-
$[3] = t3;
|
|
91
|
-
} else {
|
|
92
|
-
t3 = $[3];
|
|
93
|
-
}
|
|
94
|
-
const kindByPath = t3;
|
|
95
|
-
let t4;
|
|
96
|
-
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
97
|
-
t4 = (result) => {
|
|
98
|
-
setError(null);
|
|
99
|
-
setLiveError(void 0);
|
|
100
|
-
setStats(result.functions);
|
|
101
|
-
};
|
|
102
|
-
$[4] = t4;
|
|
103
|
-
} else {
|
|
104
|
-
t4 = $[4];
|
|
105
|
-
}
|
|
106
|
-
const applyResult = t4;
|
|
107
|
-
let t5;
|
|
108
|
-
if ($[5] !== client) {
|
|
109
|
-
t5 = async (shard) => {
|
|
110
|
-
try {
|
|
111
|
-
const next = await client.query(GET_FUNCTION_STATS, {}, callOptions(shard));
|
|
112
|
-
if (mountedRef.current) {
|
|
113
|
-
applyResult(next);
|
|
114
|
-
}
|
|
115
|
-
} catch (t62) {
|
|
116
|
-
const error_ = t62;
|
|
117
|
-
if (mountedRef.current) {
|
|
118
|
-
setStats(null);
|
|
119
|
-
setError(errorMessage(error_));
|
|
120
|
-
}
|
|
121
|
-
throw error_;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
$[5] = client;
|
|
125
|
-
$[6] = t5;
|
|
126
|
-
} else {
|
|
127
|
-
t5 = $[6];
|
|
128
|
-
}
|
|
129
|
-
const refresh = t5;
|
|
130
|
-
const committedShard = useLiveShardSeed(shardKey, refresh);
|
|
131
|
-
let t6;
|
|
132
|
-
if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
133
|
-
t6 = {};
|
|
134
|
-
$[7] = t6;
|
|
135
|
-
} else {
|
|
136
|
-
t6 = $[7];
|
|
137
|
-
}
|
|
138
|
-
let t7;
|
|
139
|
-
if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
140
|
-
t7 = (next_0) => {
|
|
141
|
-
if (mountedRef.current) {
|
|
142
|
-
applyResult(next_0);
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
$[8] = t7;
|
|
146
|
-
} else {
|
|
147
|
-
t7 = $[8];
|
|
148
|
-
}
|
|
149
|
-
let t8;
|
|
150
|
-
if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
151
|
-
t8 = (message) => {
|
|
152
|
-
if (mountedRef.current) {
|
|
153
|
-
setLiveError(message);
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
$[9] = t8;
|
|
157
|
-
} else {
|
|
158
|
-
t8 = $[9];
|
|
159
|
-
}
|
|
160
|
-
useLiveAdmin(ADMIN_FUNCTIONS.getFunctionStats, t6, committedShard ?? "", t7, committedShard !== void 0, t8);
|
|
161
|
-
let t9;
|
|
162
|
-
if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
163
|
-
t9 = (event) => {
|
|
164
|
-
setSortKey(event.currentTarget.dataset.sort);
|
|
165
|
-
};
|
|
166
|
-
$[10] = t9;
|
|
167
|
-
} else {
|
|
168
|
-
t9 = $[10];
|
|
169
|
-
}
|
|
170
|
-
const selectSort = t9;
|
|
171
|
-
let t10;
|
|
172
|
-
if ($[11] !== error || $[12] !== kindByPath || $[13] !== liveError || $[14] !== shardKey || $[15] !== sortKey || $[16] !== stats || $[17] !== t) {
|
|
173
|
-
const sorted = stats === null ? [] : stats.toSorted(SORTERS[sortKey]);
|
|
174
|
-
let t11;
|
|
175
|
-
if ($[19] !== t) {
|
|
176
|
-
t11 = t("Recent");
|
|
177
|
-
$[19] = t;
|
|
178
|
-
$[20] = t11;
|
|
179
|
-
} else {
|
|
180
|
-
t11 = $[20];
|
|
181
|
-
}
|
|
182
|
-
let t12;
|
|
183
|
-
if ($[21] !== t11) {
|
|
184
|
-
t12 = {
|
|
185
|
-
key: "recent",
|
|
186
|
-
label: t11
|
|
187
|
-
};
|
|
188
|
-
$[21] = t11;
|
|
189
|
-
$[22] = t12;
|
|
190
|
-
} else {
|
|
191
|
-
t12 = $[22];
|
|
192
|
-
}
|
|
193
|
-
let t13;
|
|
194
|
-
if ($[23] !== t) {
|
|
195
|
-
t13 = t("Most called");
|
|
196
|
-
$[23] = t;
|
|
197
|
-
$[24] = t13;
|
|
198
|
-
} else {
|
|
199
|
-
t13 = $[24];
|
|
200
|
-
}
|
|
201
|
-
let t14;
|
|
202
|
-
if ($[25] !== t13) {
|
|
203
|
-
t14 = {
|
|
204
|
-
key: "calls",
|
|
205
|
-
label: t13
|
|
206
|
-
};
|
|
207
|
-
$[25] = t13;
|
|
208
|
-
$[26] = t14;
|
|
209
|
-
} else {
|
|
210
|
-
t14 = $[26];
|
|
211
|
-
}
|
|
212
|
-
let t15;
|
|
213
|
-
if ($[27] !== t) {
|
|
214
|
-
t15 = t("Slowest");
|
|
215
|
-
$[27] = t;
|
|
216
|
-
$[28] = t15;
|
|
217
|
-
} else {
|
|
218
|
-
t15 = $[28];
|
|
219
|
-
}
|
|
220
|
-
let t16;
|
|
221
|
-
if ($[29] !== t15) {
|
|
222
|
-
t16 = {
|
|
223
|
-
key: "slowest",
|
|
224
|
-
label: t15
|
|
225
|
-
};
|
|
226
|
-
$[29] = t15;
|
|
227
|
-
$[30] = t16;
|
|
228
|
-
} else {
|
|
229
|
-
t16 = $[30];
|
|
230
|
-
}
|
|
231
|
-
let t17;
|
|
232
|
-
if ($[31] !== t12 || $[32] !== t14 || $[33] !== t16) {
|
|
233
|
-
t17 = [t12, t14, t16];
|
|
234
|
-
$[31] = t12;
|
|
235
|
-
$[32] = t14;
|
|
236
|
-
$[33] = t16;
|
|
237
|
-
$[34] = t17;
|
|
238
|
-
} else {
|
|
239
|
-
t17 = $[34];
|
|
240
|
-
}
|
|
241
|
-
const sortButtons = t17;
|
|
242
|
-
let t18;
|
|
243
|
-
if ($[35] !== shardKey) {
|
|
244
|
-
t18 = /* @__PURE__ */ jsxDEV(ShardInput, {
|
|
245
|
-
onChange: setShardKey,
|
|
246
|
-
testId: "fs-shard-input",
|
|
247
|
-
value: shardKey
|
|
248
|
-
}, void 0, false);
|
|
249
|
-
$[35] = shardKey;
|
|
250
|
-
$[36] = t18;
|
|
251
|
-
} else {
|
|
252
|
-
t18 = $[36];
|
|
253
|
-
}
|
|
254
|
-
let t19;
|
|
255
|
-
if ($[37] !== liveError) {
|
|
256
|
-
t19 = /* @__PURE__ */ jsxDEV(LiveError, {
|
|
257
|
-
message: liveError,
|
|
258
|
-
prefix: "fs"
|
|
259
|
-
}, void 0, false);
|
|
260
|
-
$[37] = liveError;
|
|
261
|
-
$[38] = t19;
|
|
262
|
-
} else {
|
|
263
|
-
t19 = $[38];
|
|
264
|
-
}
|
|
265
|
-
let t20;
|
|
266
|
-
if ($[39] !== sortButtons || $[40] !== sortKey) {
|
|
267
|
-
t20 = /* @__PURE__ */ jsxDEV("div", {
|
|
268
|
-
className: "ml-auto flex items-center gap-1",
|
|
269
|
-
role: "group",
|
|
270
|
-
children: sortButtons.map((option) => /* @__PURE__ */ jsxDEV(Button, {
|
|
271
|
-
"data-sort": option.key,
|
|
272
|
-
"data-testid": `fs-sort-${option.key}`,
|
|
273
|
-
onClick: selectSort,
|
|
274
|
-
size: "sm",
|
|
275
|
-
type: "button",
|
|
276
|
-
variant: sortKey === option.key ? "secondary" : "ghost",
|
|
277
|
-
children: option.label
|
|
278
|
-
}, option.key, false))
|
|
279
|
-
}, void 0, false);
|
|
280
|
-
$[39] = sortButtons;
|
|
281
|
-
$[40] = sortKey;
|
|
282
|
-
$[41] = t20;
|
|
283
|
-
} else {
|
|
284
|
-
t20 = $[41];
|
|
285
|
-
}
|
|
286
|
-
let t21;
|
|
287
|
-
if ($[42] !== t18 || $[43] !== t19 || $[44] !== t20) {
|
|
288
|
-
t21 = /* @__PURE__ */ jsxDEV("div", {
|
|
289
|
-
className: "flex flex-wrap items-center gap-2",
|
|
290
|
-
children: [t18, t19, t20]
|
|
291
|
-
}, void 0, true);
|
|
292
|
-
$[42] = t18;
|
|
293
|
-
$[43] = t19;
|
|
294
|
-
$[44] = t20;
|
|
295
|
-
$[45] = t21;
|
|
296
|
-
} else {
|
|
297
|
-
t21 = $[45];
|
|
298
|
-
}
|
|
299
|
-
let t22;
|
|
300
|
-
if ($[46] !== error) {
|
|
301
|
-
t22 = error !== null && /* @__PURE__ */ jsxDEV("p", {
|
|
302
|
-
className: "text-sm text-destructive",
|
|
303
|
-
"data-testid": "fs-error",
|
|
304
|
-
role: "alert",
|
|
305
|
-
children: error
|
|
306
|
-
}, void 0, false);
|
|
307
|
-
$[46] = error;
|
|
308
|
-
$[47] = t22;
|
|
309
|
-
} else {
|
|
310
|
-
t22 = $[47];
|
|
311
|
-
}
|
|
312
|
-
t10 = /* @__PURE__ */ jsxDEV("div", {
|
|
313
|
-
className: "flex flex-col gap-4",
|
|
314
|
-
"data-testid": "lunora-function-stats",
|
|
315
|
-
children: [t21, t22, stats !== null && sorted.length === 0 && error === null && /* @__PURE__ */ jsxDEV(EmptyState, {
|
|
316
|
-
description: t("Per-function call counts, error rates, and latency land here after your first request."),
|
|
317
|
-
icon: /* @__PURE__ */ jsxDEV("svg", {
|
|
318
|
-
"aria-hidden": "true",
|
|
319
|
-
fill: "none",
|
|
320
|
-
stroke: "currentColor",
|
|
321
|
-
strokeLinecap: "round",
|
|
322
|
-
strokeLinejoin: "round",
|
|
323
|
-
strokeWidth: 1.6,
|
|
324
|
-
viewBox: "0 0 24 24",
|
|
325
|
-
children: [/* @__PURE__ */ jsxDEV("path", {
|
|
326
|
-
d: "M3 3v18h18"
|
|
327
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("path", {
|
|
328
|
-
d: "M7 14l4-4 3 3 5-6"
|
|
329
|
-
}, void 0, false)]
|
|
330
|
-
}, void 0, true),
|
|
331
|
-
testId: "fs-empty",
|
|
332
|
-
title: t("No functions have run on this shard yet.")
|
|
333
|
-
}, void 0, false), sorted.length > 0 && /* @__PURE__ */ jsxDEV(Card, {
|
|
334
|
-
className: "overflow-hidden py-0",
|
|
335
|
-
children: /* @__PURE__ */ jsxDEV(CardContent, {
|
|
336
|
-
className: "px-0",
|
|
337
|
-
children: /* @__PURE__ */ jsxDEV(Table, {
|
|
338
|
-
"data-testid": "fs-table",
|
|
339
|
-
children: [/* @__PURE__ */ jsxDEV(TableHeader, {
|
|
340
|
-
children: /* @__PURE__ */ jsxDEV(TableRow, {
|
|
341
|
-
children: [/* @__PURE__ */ jsxDEV(TableHead, {
|
|
342
|
-
children: t("function")
|
|
343
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
344
|
-
children: t("kind")
|
|
345
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
346
|
-
className: "text-right",
|
|
347
|
-
children: t("calls")
|
|
348
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
349
|
-
className: "text-right",
|
|
350
|
-
children: t("errors")
|
|
351
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
352
|
-
className: "text-right",
|
|
353
|
-
children: t("conflicts")
|
|
354
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
355
|
-
className: "text-right",
|
|
356
|
-
children: t("avg")
|
|
357
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
358
|
-
className: "text-right",
|
|
359
|
-
children: t("max")
|
|
360
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
361
|
-
children: t("last run")
|
|
362
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
|
|
363
|
-
children: t("last error")
|
|
364
|
-
}, void 0, false)]
|
|
365
|
-
}, void 0, true)
|
|
366
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
|
|
367
|
-
children: sorted.map((stat) => {
|
|
368
|
-
const kind = kindByPath.get(stat.path);
|
|
369
|
-
return /* @__PURE__ */ jsxDEV(TableRow, {
|
|
370
|
-
"data-testid": `fs-row-${stat.path}`,
|
|
371
|
-
children: [/* @__PURE__ */ jsxDEV(TableCell, {
|
|
372
|
-
className: "font-medium",
|
|
373
|
-
children: stat.path
|
|
374
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
375
|
-
children: kind === void 0 ? /* @__PURE__ */ jsxDEV("span", {
|
|
376
|
-
className: "text-muted-foreground",
|
|
377
|
-
children: "—"
|
|
378
|
-
}, void 0, false) : /* @__PURE__ */ jsxDEV(Badge, {
|
|
379
|
-
variant: KIND_VARIANT[kind],
|
|
380
|
-
children: kind
|
|
381
|
-
}, void 0, false)
|
|
382
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
383
|
-
className: "text-right tabular-nums",
|
|
384
|
-
children: stat.calls
|
|
385
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
386
|
-
className: cn("text-right tabular-nums", stat.errors > 0 && "text-destructive"),
|
|
387
|
-
children: errorCell(stat)
|
|
388
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
389
|
-
className: cn("text-right tabular-nums", (stat.conflicts ?? 0) > 0 && "text-warning"),
|
|
390
|
-
children: conflictCell(stat)
|
|
391
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
392
|
-
className: "text-right tabular-nums",
|
|
393
|
-
children: stat.calls === 0 ? "—" : formatMs(stat.totalDurationMs / stat.calls)
|
|
394
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
395
|
-
className: "text-right tabular-nums",
|
|
396
|
-
children: stat.calls === 0 ? "—" : formatMs(stat.maxDurationMs)
|
|
397
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
398
|
-
className: "text-muted-foreground",
|
|
399
|
-
children: formatTimestamp(stat.lastCalledAt, "—")
|
|
400
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
|
|
401
|
-
className: "max-w-[24ch] truncate text-destructive",
|
|
402
|
-
title: stat.lastErrorMessage ?? void 0,
|
|
403
|
-
children: stat.lastErrorMessage ?? /* @__PURE__ */ jsxDEV("span", {
|
|
404
|
-
className: "text-muted-foreground",
|
|
405
|
-
children: "—"
|
|
406
|
-
}, void 0, false)
|
|
407
|
-
}, void 0, false)]
|
|
408
|
-
}, stat.path, true);
|
|
409
|
-
})
|
|
410
|
-
}, void 0, false)]
|
|
411
|
-
}, void 0, true)
|
|
412
|
-
}, void 0, false)
|
|
413
|
-
}, void 0, false)]
|
|
414
|
-
}, void 0, true);
|
|
415
|
-
$[11] = error;
|
|
416
|
-
$[12] = kindByPath;
|
|
417
|
-
$[13] = liveError;
|
|
418
|
-
$[14] = shardKey;
|
|
419
|
-
$[15] = sortKey;
|
|
420
|
-
$[16] = stats;
|
|
421
|
-
$[17] = t;
|
|
422
|
-
$[18] = t10;
|
|
423
|
-
} else {
|
|
424
|
-
t10 = $[18];
|
|
425
|
-
}
|
|
426
|
-
return t10;
|
|
427
|
-
};
|
|
428
|
-
function _temp(descriptor) {
|
|
429
|
-
return [descriptor.path, descriptor.kind];
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
export { FunctionStatsPanel };
|