railwatch 0.6.1 → 0.7.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/app/frontend/components/app-content.tsx +26 -0
- data/app/frontend/components/app-logo-icon.tsx +23 -0
- data/app/frontend/components/app-logo.tsx +14 -0
- data/app/frontend/components/app-shell.tsx +38 -0
- data/app/frontend/components/app-sidebar-header.tsx +54 -0
- data/app/frontend/components/app-sidebar.tsx +94 -0
- data/app/frontend/components/app-wordmark.tsx +29 -0
- data/app/frontend/components/breadcrumbs.tsx +46 -0
- data/app/frontend/components/icon.tsx +16 -0
- data/app/frontend/components/input-error.tsx +18 -0
- data/app/frontend/components/nav-footer.tsx +46 -0
- data/app/frontend/components/nav-main.tsx +41 -0
- data/app/frontend/components/nav-user.tsx +50 -0
- data/app/frontend/components/railwatch/chart-hover.tsx +34 -0
- data/app/frontend/components/railwatch/chart-panel.tsx +170 -0
- data/app/frontend/components/railwatch/code.tsx +28 -0
- data/app/frontend/components/railwatch/command-palette.tsx +132 -0
- data/app/frontend/components/railwatch/copy-block.tsx +52 -0
- data/app/frontend/components/railwatch/copy-id.tsx +49 -0
- data/app/frontend/components/railwatch/cursor-load-more.tsx +39 -0
- data/app/frontend/components/railwatch/data-table.tsx +195 -0
- data/app/frontend/components/railwatch/digit-roll.tsx +312 -0
- data/app/frontend/components/railwatch/empty-state.tsx +159 -0
- data/app/frontend/components/railwatch/env-nav.tsx +130 -0
- data/app/frontend/components/railwatch/env-switcher.tsx +145 -0
- data/app/frontend/components/railwatch/filter-bar.tsx +153 -0
- data/app/frontend/components/railwatch/flamegraph.tsx +324 -0
- data/app/frontend/components/railwatch/frames.tsx +295 -0
- data/app/frontend/components/railwatch/json-viewer.tsx +159 -0
- data/app/frontend/components/railwatch/live-dot.tsx +78 -0
- data/app/frontend/components/railwatch/live-toggle.tsx +76 -0
- data/app/frontend/components/railwatch/metric-chart.tsx +112 -0
- data/app/frontend/components/railwatch/mobile-page-switcher.tsx +89 -0
- data/app/frontend/components/railwatch/onboarding.tsx +91 -0
- data/app/frontend/components/railwatch/origin-identity.tsx +84 -0
- data/app/frontend/components/railwatch/page-header.tsx +42 -0
- data/app/frontend/components/railwatch/percentile-picker.tsx +18 -0
- data/app/frontend/components/railwatch/relative-time.tsx +18 -0
- data/app/frontend/components/railwatch/saved-views.tsx +232 -0
- data/app/frontend/components/railwatch/segmented.tsx +64 -0
- data/app/frontend/components/railwatch/series-chart.tsx +400 -0
- data/app/frontend/components/railwatch/shortcuts-dialog.tsx +89 -0
- data/app/frontend/components/railwatch/signal-toast.tsx +121 -0
- data/app/frontend/components/railwatch/sort-header.tsx +37 -0
- data/app/frontend/components/railwatch/source-link.tsx +57 -0
- data/app/frontend/components/railwatch/sparkline-cell.tsx +14 -0
- data/app/frontend/components/railwatch/sql-block.tsx +116 -0
- data/app/frontend/components/railwatch/stat.tsx +173 -0
- data/app/frontend/components/railwatch/status-badge.tsx +79 -0
- data/app/frontend/components/railwatch/step-picker.tsx +57 -0
- data/app/frontend/components/railwatch/timeline.tsx +405 -0
- data/app/frontend/components/railwatch/utilisation-bar.tsx +44 -0
- data/app/frontend/components/railwatch/window-picker.tsx +147 -0
- data/app/frontend/components/ui/avatar.tsx +51 -0
- data/app/frontend/components/ui/badge.tsx +46 -0
- data/app/frontend/components/ui/breadcrumb.tsx +109 -0
- data/app/frontend/components/ui/button.tsx +60 -0
- data/app/frontend/components/ui/card.tsx +92 -0
- data/app/frontend/components/ui/chart.tsx +374 -0
- data/app/frontend/components/ui/checkbox.tsx +32 -0
- data/app/frontend/components/ui/collapsible.tsx +31 -0
- data/app/frontend/components/ui/command.tsx +182 -0
- data/app/frontend/components/ui/dialog.tsx +158 -0
- data/app/frontend/components/ui/dropdown-menu.tsx +255 -0
- data/app/frontend/components/ui/hover-card.tsx +42 -0
- data/app/frontend/components/ui/input.tsx +21 -0
- data/app/frontend/components/ui/label.tsx +24 -0
- data/app/frontend/components/ui/popover.tsx +87 -0
- data/app/frontend/components/ui/select.tsx +185 -0
- data/app/frontend/components/ui/separator.tsx +28 -0
- data/app/frontend/components/ui/sheet.tsx +137 -0
- data/app/frontend/components/ui/sidebar.tsx +726 -0
- data/app/frontend/components/ui/skeleton.tsx +13 -0
- data/app/frontend/components/ui/sonner.tsx +41 -0
- data/app/frontend/components/ui/table.tsx +114 -0
- data/app/frontend/components/ui/tabs.tsx +91 -0
- data/app/frontend/components/ui/textarea.tsx +18 -0
- data/app/frontend/components/ui/tooltip.tsx +61 -0
- data/app/frontend/components/user-info.tsx +32 -0
- data/app/frontend/components/user-menu-content.tsx +94 -0
- data/app/frontend/entrypoints/application.css +244 -0
- data/app/frontend/entrypoints/inertia.tsx +95 -0
- data/app/frontend/fonts/CommitMono-Bold.woff2 +0 -0
- data/app/frontend/fonts/CommitMono-Regular.woff2 +0 -0
- data/app/frontend/fonts/Roboto-Black.woff2 +0 -0
- data/app/frontend/fonts/Roboto-Bold.woff2 +0 -0
- data/app/frontend/fonts/Roboto-Medium.woff2 +0 -0
- data/app/frontend/fonts/Roboto-Regular.woff2 +0 -0
- data/app/frontend/hooks/use-appearance.tsx +67 -0
- data/app/frontend/hooks/use-clipboard.ts +32 -0
- data/app/frontend/hooks/use-flash.tsx +23 -0
- data/app/frontend/hooks/use-hotkeys.ts +63 -0
- data/app/frontend/hooks/use-initials.tsx +15 -0
- data/app/frontend/hooks/use-live.ts +179 -0
- data/app/frontend/hooks/use-mobile-navigation.ts +8 -0
- data/app/frontend/hooks/use-mobile.ts +21 -0
- data/app/frontend/hooks/use-percentile.ts +24 -0
- data/app/frontend/hooks/use-reduced-motion.ts +25 -0
- data/app/frontend/hooks/use-row-nav.ts +106 -0
- data/app/frontend/hooks/use-step.ts +27 -0
- data/app/frontend/hooks/use-ticker.ts +12 -0
- data/app/frontend/hooks/use-window.ts +58 -0
- data/app/frontend/layouts/app/app-sidebar-layout.tsx +107 -0
- data/app/frontend/layouts/app-layout.tsx +21 -0
- data/app/frontend/layouts/env-layout.tsx +53 -0
- data/app/frontend/layouts/persistent-layout.tsx +18 -0
- data/app/frontend/lib/cable.ts +10 -0
- data/app/frontend/lib/env-pages.ts +236 -0
- data/app/frontend/lib/execution-path.ts +55 -0
- data/app/frontend/lib/explain.ts +50 -0
- data/app/frontend/lib/filter.ts +25 -0
- data/app/frontend/lib/flamegraph.ts +155 -0
- data/app/frontend/lib/format.ts +71 -0
- data/app/frontend/lib/keyboard.ts +18 -0
- data/app/frontend/lib/source-link.ts +217 -0
- data/app/frontend/lib/utils.ts +6 -0
- data/app/frontend/pages/alerts/index.tsx +171 -0
- data/app/frontend/pages/broadcasts/index.tsx +171 -0
- data/app/frontend/pages/cache_events/index.tsx +127 -0
- data/app/frontend/pages/commands/index.tsx +143 -0
- data/app/frontend/pages/deploys/index.tsx +94 -0
- data/app/frontend/pages/deploys/show.tsx +309 -0
- data/app/frontend/pages/deprecations/index.tsx +176 -0
- data/app/frontend/pages/exceptions/index.tsx +271 -0
- data/app/frontend/pages/executions/show.tsx +821 -0
- data/app/frontend/pages/issues/index.tsx +399 -0
- data/app/frontend/pages/issues/show.tsx +1367 -0
- data/app/frontend/pages/jobs/index.tsx +381 -0
- data/app/frontend/pages/jobs/klass.tsx +215 -0
- data/app/frontend/pages/llm_calls/index.tsx +664 -0
- data/app/frontend/pages/logs/index.tsx +303 -0
- data/app/frontend/pages/mails/index.tsx +218 -0
- data/app/frontend/pages/notifications/index.tsx +161 -0
- data/app/frontend/pages/outgoing_requests/index.tsx +309 -0
- data/app/frontend/pages/overview/show.tsx +333 -0
- data/app/frontend/pages/people/index.tsx +102 -0
- data/app/frontend/pages/people/show.tsx +149 -0
- data/app/frontend/pages/processes/index.tsx +335 -0
- data/app/frontend/pages/profiles/index.tsx +110 -0
- data/app/frontend/pages/profiles/show.tsx +105 -0
- data/app/frontend/pages/queries/index.tsx +492 -0
- data/app/frontend/pages/queries/show.tsx +276 -0
- data/app/frontend/pages/releases/index.tsx +190 -0
- data/app/frontend/pages/releases/release-health.tsx +68 -0
- data/app/frontend/pages/releases/release-path.ts +25 -0
- data/app/frontend/pages/releases/show.tsx +262 -0
- data/app/frontend/pages/requests/index.tsx +235 -0
- data/app/frontend/pages/requests/route.tsx +159 -0
- data/app/frontend/pages/scheduled_tasks/index.tsx +220 -0
- data/app/frontend/pages/spans/index.tsx +229 -0
- data/app/frontend/pages/spans/show.tsx +220 -0
- data/app/frontend/pages/storage_ops/index.tsx +150 -0
- data/app/frontend/pages/tenants/index.tsx +236 -0
- data/app/frontend/pages/tenants/show.tsx +477 -0
- data/app/frontend/pages/tenants/tenant-path.ts +26 -0
- data/app/frontend/pages/thresholds/index.tsx +414 -0
- data/app/frontend/pages/traces/show.tsx +208 -0
- data/app/frontend/pages/transactions/index.tsx +220 -0
- data/app/frontend/pages/view_renders/index.tsx +241 -0
- data/app/frontend/pages/visits/index.tsx +321 -0
- data/app/frontend/public/icon.png +0 -0
- data/app/frontend/public/icon.svg +5 -0
- data/app/frontend/routes/index.d.ts +2136 -0
- data/app/frontend/routes/index.js +2112 -0
- data/app/frontend/types/globals.d.ts +9 -0
- data/app/frontend/types/index.ts +288 -0
- data/app/frontend/types/vite-env.d.ts +9 -0
- data/lib/railwatch/version.rb +1 -1
- data/lib/railwatch.rb +8 -3
- data/public/railwatch/assets/app-layout-LvxN9xSS.js +41 -0
- data/public/railwatch/assets/application-Cc5v_Vk9.css +1 -0
- data/public/railwatch/assets/{arrow-up-CLQ-7heQ.js → arrow-up-DG01k9AL.js} +1 -1
- data/public/railwatch/assets/{braces-rSYydpLY.js → braces-C3w7pfxS.js} +1 -1
- data/public/railwatch/assets/{card-DPjFKfen.js → card-Dpwlr0uY.js} +1 -1
- data/public/railwatch/assets/{chart-DWh7l8yM.js → chart-DJHv3R7W.js} +1 -1
- data/public/railwatch/assets/{chart-hover-CfoZUY4J.js → chart-hover-CEH-DtXO.js} +1 -1
- data/public/railwatch/assets/{chart-panel-CC49WTQL.js → chart-panel-CUdIzJvk.js} +1 -1
- data/public/railwatch/assets/code-BRZprwun.js +1 -0
- data/public/railwatch/assets/copy-id-CwhGGiwF.js +1 -0
- data/public/railwatch/assets/cursor-load-more-uF1_955Q.js +1 -0
- data/public/railwatch/assets/data-table-DYi-N0hm.js +1 -0
- data/public/railwatch/assets/env-layout-HdcOaPPX.js +1 -0
- data/public/railwatch/assets/{execution-path-FAuIzOXB.js → execution-path-CElXXFO_.js} +1 -1
- data/public/railwatch/assets/filter-bar-DEv0G_34.js +1 -0
- data/public/railwatch/assets/{flamegraph-EaGkP2NT.js → flamegraph-SKD9yxW9.js} +2 -2
- data/public/railwatch/assets/frames-CUpyJQDy.js +1 -0
- data/public/railwatch/assets/index-2W-ppwap.js +1 -0
- data/public/railwatch/assets/index-74ocuU5d.js +1 -0
- data/public/railwatch/assets/{index-C8Cggnbw.js → index-B8NA62Lz.js} +2 -2
- data/public/railwatch/assets/index-BBCEkLqp.js +1 -0
- data/public/railwatch/assets/index-BDcglJzX.js +1 -0
- data/public/railwatch/assets/index-B_KFb9LS.js +1 -0
- data/public/railwatch/assets/index-BqK_VKom.js +1 -0
- data/public/railwatch/assets/index-BxCXBHP2.js +1 -0
- data/public/railwatch/assets/index-C1jc1OoH.js +1 -0
- data/public/railwatch/assets/index-C7zREldp.js +1 -0
- data/public/railwatch/assets/index-CEetm4oC.js +1 -0
- data/public/railwatch/assets/index-CIaZkokF.js +1 -0
- data/public/railwatch/assets/index-CNH85TZp.js +1 -0
- data/public/railwatch/assets/index-Ce4SB5AB.js +1 -0
- data/public/railwatch/assets/index-CiRMSYMn.js +1 -0
- data/public/railwatch/assets/index-CjxXgOs-.js +1 -0
- data/public/railwatch/assets/index-ClL-PYEV.js +1 -0
- data/public/railwatch/assets/index-CteZ6fop.js +1 -0
- data/public/railwatch/assets/index-CvqfEExO.js +1 -0
- data/public/railwatch/assets/index-CxTLT-Qh.js +1 -0
- data/public/railwatch/assets/index-DJd3OUSd.js +1 -0
- data/public/railwatch/assets/index-DPD-rLp6.js +1 -0
- data/public/railwatch/assets/index-DYK_dps4.js +1 -0
- data/public/railwatch/assets/index-DrayARrI.js +1 -0
- data/public/railwatch/assets/index-HRXGir-0.js +1 -0
- data/public/railwatch/assets/index-UJOUALr_.js +1 -0
- data/public/railwatch/assets/index-d-3J7gQ5.js +1 -0
- data/public/railwatch/assets/index-oQrvBpOm.js +1 -0
- data/public/railwatch/assets/inertia-FoqYZAk8.js +97 -0
- data/public/railwatch/assets/json-viewer-CxqMojEm.js +1 -0
- data/public/railwatch/assets/klass-DEF-Vat5.js +1 -0
- data/public/railwatch/assets/origin-identity-Y6gvfQVR.js +1 -0
- data/public/railwatch/assets/{percentile-picker-CeQgllxD.js → percentile-picker-E2aUdLxx.js} +1 -1
- data/public/railwatch/assets/relative-time-DcJbkKlN.js +1 -0
- data/public/railwatch/assets/{release-health-uP-GF3_V.js → release-health-C8WSCDKD.js} +1 -1
- data/public/railwatch/assets/route-qO5vX1p-.js +1 -0
- data/public/railwatch/assets/{segmented-BeIe4uqk.js → segmented-BWee8uc9.js} +1 -1
- data/public/railwatch/assets/select-G7rNBzv0.js +1 -0
- data/public/railwatch/assets/series-chart-C5nXIUc5.js +1 -0
- data/public/railwatch/assets/show-BEWisLQw.js +1 -0
- data/public/railwatch/assets/show-BEa9PGu1.js +2 -0
- data/public/railwatch/assets/{show-YsNpqbcI.js → show-BiT_Aloc.js} +3 -3
- data/public/railwatch/assets/show-BpCO49d3.js +1 -0
- data/public/railwatch/assets/show-CH7yxt7R.js +1 -0
- data/public/railwatch/assets/show-CTO8Lvd2.js +1 -0
- data/public/railwatch/assets/show-DnYsDMUt.js +2 -0
- data/public/railwatch/assets/show-DyzHM527.js +1 -0
- data/public/railwatch/assets/show-Nfpxs8su.js +1 -0
- data/public/railwatch/assets/show-ddjUMo9G.js +1 -0
- data/public/railwatch/assets/show-ksjbSzDH.js +1 -0
- data/public/railwatch/assets/{sort-header-mEJUM3Av.js → sort-header-uOq5VlrB.js} +1 -1
- data/public/railwatch/assets/{sparkline-cell-Dwg7awwh.js → sparkline-cell-DgGij0cu.js} +1 -1
- data/public/railwatch/assets/stat-BTzNKTm2.js +1 -0
- data/public/railwatch/assets/status-badge-BDkOXa-C.js +1 -0
- data/public/railwatch/assets/{tenant-path-CQoP-BeF.js → tenant-path-DU0ezKSU.js} +1 -1
- data/public/railwatch/assets/{use-clipboard-DNefo-ky.js → use-clipboard-DoENmlWY.js} +1 -1
- data/public/railwatch/assets/{use-live-DMTuhKfB.js → use-live-CE_fN5_6.js} +1 -1
- data/public/railwatch/manifest.json +612 -1591
- metadata +242 -117
- data/public/railwatch/assets/app-layout-Zc0v-hYh.js +0 -1
- data/public/railwatch/assets/app-wordmark-BA_60AVb.js +0 -1
- data/public/railwatch/assets/appearance-CcfP9tZ7.js +0 -1
- data/public/railwatch/assets/application-BrN3Sz94.css +0 -1
- data/public/railwatch/assets/auth-layout-C05gEBIQ.js +0 -1
- data/public/railwatch/assets/badge-DRae8XwK.js +0 -1
- data/public/railwatch/assets/checkbox-DPkLUiwM.js +0 -1
- data/public/railwatch/assets/code-CLmYS6FU.js +0 -1
- data/public/railwatch/assets/copy-DaQMJWoT.js +0 -1
- data/public/railwatch/assets/copy-block-CGcXxp8J.js +0 -1
- data/public/railwatch/assets/copy-id-vBYHQwxg.js +0 -1
- data/public/railwatch/assets/cursor-load-more-Ddwxe5dZ.js +0 -1
- data/public/railwatch/assets/data-table-CzKTEE-O.js +0 -1
- data/public/railwatch/assets/edit-B1kmWkzd.js +0 -8
- data/public/railwatch/assets/edit-D9cx4pbG.js +0 -1
- data/public/railwatch/assets/edit-yv6j9p-V.js +0 -1
- data/public/railwatch/assets/empty-state-CW4wclK_.js +0 -1
- data/public/railwatch/assets/env-layout-Kz7wks1x.js +0 -1
- data/public/railwatch/assets/filter-bar-CJDjWFib.js +0 -1
- data/public/railwatch/assets/frames-zZuIaNH9.js +0 -1
- data/public/railwatch/assets/google-sign-in-button-2_zgbgVy.js +0 -1
- data/public/railwatch/assets/index-B49SWz7K.js +0 -1
- data/public/railwatch/assets/index-BHlY4wKe.js +0 -1
- data/public/railwatch/assets/index-BZpPtyFY.js +0 -1
- data/public/railwatch/assets/index-BeVK6jCL.js +0 -1
- data/public/railwatch/assets/index-BfbSo01U.js +0 -1
- data/public/railwatch/assets/index-BfgncAv6.js +0 -1
- data/public/railwatch/assets/index-BhNszK1k.js +0 -1
- data/public/railwatch/assets/index-Bu01uWvw.js +0 -1
- data/public/railwatch/assets/index-C1s_hK3p.js +0 -1
- data/public/railwatch/assets/index-CBip6V4z.js +0 -1
- data/public/railwatch/assets/index-CMJGss5R.js +0 -1
- data/public/railwatch/assets/index-CRo3yK20.js +0 -1
- data/public/railwatch/assets/index-CWB_p2J8.js +0 -1
- data/public/railwatch/assets/index-CWHpndGc.js +0 -1
- data/public/railwatch/assets/index-Ca_S4Sc3.js +0 -1
- data/public/railwatch/assets/index-CanPDDOa.js +0 -1
- data/public/railwatch/assets/index-Cie90Yat.js +0 -1
- data/public/railwatch/assets/index-CiepQ_pR.js +0 -1
- data/public/railwatch/assets/index-Cm1uCIGN.js +0 -1
- data/public/railwatch/assets/index-CzitnnSC.js +0 -1
- data/public/railwatch/assets/index-DEUfClv3.js +0 -1
- data/public/railwatch/assets/index-DJKwo-mI.js +0 -1
- data/public/railwatch/assets/index-DK6y0YHp.js +0 -1
- data/public/railwatch/assets/index-DMNPpLH9.js +0 -1
- data/public/railwatch/assets/index-DZO1mSfX.js +0 -1
- data/public/railwatch/assets/index-Db5wj3M5.js +0 -1
- data/public/railwatch/assets/index-Dcy5WktB.js +0 -1
- data/public/railwatch/assets/index-DvG0-7Lx.js +0 -1
- data/public/railwatch/assets/index-Dvj1wuka.js +0 -1
- data/public/railwatch/assets/index-KyZX46qX.js +0 -1
- data/public/railwatch/assets/index-Ze-KP-sl.js +0 -1
- data/public/railwatch/assets/index-mhRbWLBM.js +0 -1
- data/public/railwatch/assets/index-x099JL5f.js +0 -1
- data/public/railwatch/assets/index-x28zb_nf.js +0 -1
- data/public/railwatch/assets/inertia-Cuyz2ZHO.js +0 -97
- data/public/railwatch/assets/input-error-hog6gGxg.js +0 -1
- data/public/railwatch/assets/json-viewer-DH2W9HXf.js +0 -1
- data/public/railwatch/assets/klass-DHbDelLk.js +0 -1
- data/public/railwatch/assets/label-DdCBgiUn.js +0 -1
- data/public/railwatch/assets/layout-Cueyl7c5.js +0 -1
- data/public/railwatch/assets/live-dot-BZgYTYdt.js +0 -41
- data/public/railwatch/assets/nav-BSSGObDZ.js +0 -1
- data/public/railwatch/assets/new-B8FSb8Bl.js +0 -1
- data/public/railwatch/assets/new-C39_v2Ll.js +0 -1
- data/public/railwatch/assets/new-DVOPwaC5.js +0 -1
- data/public/railwatch/assets/new-Dd40nvJR.js +0 -1
- data/public/railwatch/assets/new-SxnYe1SE.js +0 -1
- data/public/railwatch/assets/new-eP5vKD3Y.js +0 -1
- data/public/railwatch/assets/onboarding-CUpZl5KB.js +0 -1
- data/public/railwatch/assets/origin-identity-BYt2uiuo.js +0 -1
- data/public/railwatch/assets/relative-time-D5UbF4oO.js +0 -1
- data/public/railwatch/assets/route-DQAY8JEr.js +0 -1
- data/public/railwatch/assets/select-2R16457Z.js +0 -1
- data/public/railwatch/assets/separator-D5I0UCB5.js +0 -1
- data/public/railwatch/assets/series-chart-gnrzhmM6.js +0 -1
- data/public/railwatch/assets/show-2BkeNRUC.js +0 -2
- data/public/railwatch/assets/show-B0X1hRQH.js +0 -1
- data/public/railwatch/assets/show-BKUV5l5q.js +0 -1
- data/public/railwatch/assets/show-BQJD_CsF.js +0 -6
- data/public/railwatch/assets/show-BhmD6Sxp.js +0 -1
- data/public/railwatch/assets/show-C3KcnVo2.js +0 -1
- data/public/railwatch/assets/show-C95cHd06.js +0 -2
- data/public/railwatch/assets/show-CdB4uVQS.js +0 -1
- data/public/railwatch/assets/show-CoCqcVIp.js +0 -1
- data/public/railwatch/assets/show-D2LqjEsU.js +0 -1
- data/public/railwatch/assets/show-DNpnKyTh.js +0 -1
- data/public/railwatch/assets/show-DOlTxbig.js +0 -1
- data/public/railwatch/assets/show-DQCkttL8.js +0 -1
- data/public/railwatch/assets/show-DcxesipC.js +0 -1
- data/public/railwatch/assets/show-IGJoc_X0.js +0 -1
- data/public/railwatch/assets/show-qNV6H8SH.js +0 -2
- data/public/railwatch/assets/stat-ZtxGU8lE.js +0 -1
- data/public/railwatch/assets/status-badge-CH5P-Xkj.js +0 -1
- data/public/railwatch/assets/text-link-DHJ8BXx5.js +0 -1
- data/public/railwatch/assets/textarea-BeQtQyl5.js +0 -1
- data/public/railwatch/assets/timeline-CaKQVu48.js +0 -1
- data/public/railwatch/assets/transition-ksDpqhKJ.js +0 -5
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{B as Yt,c as rs,r as Q,S as vs,i as ft,j as s,L as Rt,I as es,U as bs,e as Wt,V as Ns,H as ks,F as ws,J as Ss}from"./inertia-Cuyz2ZHO.js";import{D as rt}from"./data-table-CzKTEE-O.js";import{S as $s,E as Cs,B as Ls,a as Is,C as As}from"./frames-zZuIaNH9.js";import{J as ls}from"./json-viewer-DH2W9HXf.js";import{R as as}from"./relative-time-D5UbF4oO.js";import{S as ut,a as Ts}from"./stat-ZtxGU8lE.js";import{I as cs}from"./status-badge-CH5P-Xkj.js";import{f as Ms,g as Rs,h as Ds,i as zs,A as Fs,j as Bs,k as Es,l as Ps,m as Os,n as Ks}from"./app-layout-Zc0v-hYh.js";import{B as ht}from"./badge-DRae8XwK.js";import{B as O}from"./app-wordmark-BA_60AVb.js";import{C as c,b as d,c as m,a as o}from"./card-DPjFKfen.js";import{C as os,X as ds,Y as ms,a as us,b as fs,B as hs,c as xs,d as ps,R as Vs}from"./chart-DWh7l8yM.js";import{S as ts,a as ss,b as ns,c as is,d as Zt}from"./select-2R16457Z.js";import{T as Gs}from"./textarea-BeQtQyl5.js";import{u as Us}from"./use-clipboard-DNefo-ky.js";import{e as Xt}from"./execution-path-FAuIzOXB.js";import{c as Dt,a as Mt,w as at,b as Hs}from"./format-B9SDkrWj.js";import{C as qs}from"./index-BfbSo01U.js";import"./chart-hover-CfoZUY4J.js";import"./empty-state-CW4wclK_.js";import"./source-link-B2183i2-.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./use-live-DMTuhKfB.js";import"./arrow-up-CLQ-7heQ.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";const Js=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Qs=Yt("git-merge",Js);const Ws=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Xs=Yt("globe",Ws);const Ys=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],Zs=Yt("split",Ys);function en(t,e){return t.filter(n=>n.at.slice(0,10)===e).map(n=>n.ref)}const tn={count:{label:"Occurrences",color:"var(--chart-5)"}},sn={value:{label:"Measured value",color:"var(--chart-2)"}},nn={report:"Fingerprint passed to Railwatch.report.",error:"Fingerprint from the error's own #railwatch_fingerprint.",resolver:"Fingerprint from the app's Railwatch.fingerprint block.",default:"Railwatch's default: exception class, top in-app frame, and the message with its variable data removed."};function rn(t,e){return e?e.kind==="query"?e.group_hash?Ss(t.application.id,t.environment.id,e.group_hash):null:Xt({applicationId:t.application.id,environmentId:t.environment.id,source:e.kind,executionId:e.execution_id}):null}function ln(t,e){const n=t.data;switch(t.kind){case"created":return"opened this issue";case"status":return`changed status ${n.from} → ${n.to}`;case"priority":return`changed priority ${n.from} → ${n.to}`;case"assignee":{const i=n.from_id?e.get(Number(n.from_id))??"someone":"unassigned",l=n.to_id?e.get(Number(n.to_id))??"someone":"unassigned";return`reassigned ${i} → ${l}`}case"merge":return`merged this issue into ${n.target_key}`;case"absorbed":return`merged ${n.source_key} into this issue (${n.occurrences} events)`;case"unmerge":return"unmerged this issue";case"split":{const i=Array.isArray(t.data.into)?t.data.into:[];return n.from_key?`split ${n.occurrences} events out of ${n.from_key}`:`split ${n.occurrences} events by message into ${i.join(", ")}`}case"regressed":return"regressed — a new occurrence reopened this issue";case"alert":return`sent a "${n.event}" alert via ${n.integration}`;case"agent":return`acted via ${String(n.agent??"an AI agent")} (MCP)`;case"comment":return"commented";default:return String(t.kind)}}function an(t){const e=t.issue,n=[];if(n.push(`# ${e.key}: ${e.title}`),e.culprit&&n.push(`Culprit: ${e.culprit}`),n.push(`Environment: ${e.application.name} / ${e.environment.name}`),t.detection?.available&&(n.push(""),n.push("## Detector measurement"),n.push(`${t.detection.metric} for ${t.detection.target}: ${lt(t.detection.measurement?.value,t.detection.unit)}`),t.detection.measurement?.limit!=null&&n.push(`Limit: ${lt(t.detection.measurement.limit,t.detection.unit)}`),t.detection.baseline?.mean!=null&&n.push(`Baseline: ${lt(t.detection.baseline.mean,t.detection.unit)} (${t.detection.baseline.sigmas}σ)`),n.push(`Underlying telemetry: ${t.detection.telemetry_type} ${t.detection.telemetry_group_hash}`)),t.latest){n.push(""),n.push(`## ${t.latest.class_name}`),n.push(t.latest.message);const i=t.latest.frames.filter(l=>l.in_app);if(i.length>0){n.push(""),n.push("### Frames");for(const l of i)if(n.push(`${l.file}:${l.line} in \`${l.function}\``),l.code)for(const[B,T]of Object.entries(l.code))n.push(`${B}: ${T}`)}t.latest.context&&(n.push(""),n.push("### Context"),n.push(String(t.latest.context)))}return n.join(`
|
|
2
|
-
`)}function lt(t,e){return t==null?"–":e==="milliseconds"?`${t.toLocaleString()} ms`:e==="percent"?`${t.toLocaleString()}%`:e==="events_per_minute"?`${t.toLocaleString()} / min`:t.toLocaleString()}function cn(t){const e=rs.c(80),{issue:n,detail:i}=t;if(!i.available){let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(d,{children:s.jsx(m,{children:"Detector sample"})}),e[0]=_):_=e[0];let u;return e[1]!==n.sample?(u=s.jsxs(c,{children:[_,s.jsx(o,{children:s.jsx(ls,{data:n.sample})})]}),e[1]=n.sample,e[2]=u):u=e[2],u}let l;e[3]!==i.representative_records?(l=i.representative_records??[],e[3]=i.representative_records,e[4]=l):l=e[4];const B=l;let T;e[5]!==i.deploy_comparison?(T=i.deploy_comparison??[],e[5]=i.deploy_comparison,e[6]=T):T=e[6];const q=T;let b;e[7]!==i.trend?(b=i.trend??[],e[7]=i.trend,e[8]=b):b=e[8];const K=b,a=i.metric==="missed",W=a?"Missed scheduled task":i.kind==="anomaly"?"Anomaly measurement":"Threshold breach";let N;e[9]!==W?(N=s.jsx(d,{children:s.jsx(m,{children:W})}),e[9]=W,e[10]=N):N=e[10];let E;e[11]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("p",{className:"text-muted-foreground text-xs",children:"Target"}),e[11]=E):E=e[11];let M;e[12]!==i.target?(M=s.jsxs("div",{children:[E,s.jsx("p",{className:"font-mono text-sm",children:i.target})]}),e[12]=i.target,e[13]=M):M=e[13];const ct=a?"Schedule":"Metric";let P;e[14]!==ct?(P=s.jsx("p",{className:"text-muted-foreground text-xs",children:ct}),e[14]=ct,e[15]=P):P=e[15];const ot=a?i.rule?.schedule:i.metric;let R;e[16]!==ot?(R=s.jsx("p",{className:"text-sm",children:ot}),e[16]=ot,e[17]=R):R=e[17];let V;e[18]!==R||e[19]!==P?(V=s.jsxs("div",{children:[P,R]}),e[18]=R,e[19]=P,e[20]=V):V=e[20];const dt=a?"Expected":"Measured";let k;e[21]!==dt?(k=s.jsx("p",{className:"text-muted-foreground text-xs",children:dt}),e[21]=dt,e[22]=k):k=e[22];let D;e[23]!==i.measurement?.value||e[24]!==i.rule||e[25]!==i.unit||e[26]!==a?(D=a&&i.rule?.expected?at(i.rule.expected):lt(i.measurement?.value,i.unit),e[23]=i.measurement?.value,e[24]=i.rule,e[25]=i.unit,e[26]=a,e[27]=D):D=e[27];let w;e[28]!==D?(w=s.jsx("p",{className:"text-sm font-semibold",children:D}),e[28]=D,e[29]=w):w=e[29];let S;e[30]!==k||e[31]!==w?(S=s.jsxs("div",{children:[k,w]}),e[30]=k,e[31]=w,e[32]=S):S=e[32];const G=a?"Last run":i.kind==="anomaly"?"Baseline":"Limit";let $;e[33]!==G?($=s.jsx("p",{className:"text-muted-foreground text-xs",children:G}),e[33]=G,e[34]=$):$=e[34];let z;e[35]!==i.baseline?.mean||e[36]!==i.kind||e[37]!==i.measurement?.limit||e[38]!==i.rule||e[39]!==i.unit||e[40]!==a?(z=a&&i.rule?.last_run?at(i.rule.last_run):i.kind==="anomaly"?lt(i.baseline?.mean,i.unit):lt(i.measurement?.limit,i.unit),e[35]=i.baseline?.mean,e[36]=i.kind,e[37]=i.measurement?.limit,e[38]=i.rule,e[39]=i.unit,e[40]=a,e[41]=z):z=e[41];let C;e[42]!==z?(C=s.jsx("p",{className:"text-sm",children:z}),e[42]=z,e[43]=C):C=e[43];let U;e[44]!==$||e[45]!==C?(U=s.jsxs("div",{children:[$,C]}),e[44]=$,e[45]=C,e[46]=U):U=e[46];let f;e[47]!==V||e[48]!==S||e[49]!==U||e[50]!==M?(f=s.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[M,V,S,U]}),e[47]=V,e[48]=S,e[49]=U,e[50]=M,e[51]=f):f=e[51];const F=i.window?.minutes,J=i.baseline?.sigmas!=null&&` · ${i.baseline.sigmas}σ above a ${i.baseline.days}-day baseline`;let h;e[52]!==i.telemetry_group_hash||e[53]!==i.telemetry_type||e[54]!==F||e[55]!==J?(h=s.jsxs("p",{className:"text-muted-foreground text-xs",children:[i.telemetry_type," group ",i.telemetry_group_hash," ·"," ",F," minute window",J]}),e[52]=i.telemetry_group_hash,e[53]=i.telemetry_type,e[54]=F,e[55]=J,e[56]=h):h=e[56];let H;e[57]!==f||e[58]!==h?(H=s.jsxs(o,{className:"space-y-4",children:[f,h]}),e[57]=f,e[58]=h,e[59]=H):H=e[59];let x;e[60]!==H||e[61]!==N?(x=s.jsxs(c,{children:[N,H]}),e[60]=H,e[61]=N,e[62]=x):x=e[62];let p;e[63]!==i.metric||e[64]!==K?(p=K.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsxs(m,{children:[i.metric," trend (30d)"]})}),s.jsx(o,{children:s.jsx(xs,{config:sn,className:"h-48 w-full",children:s.jsxs(ps,{data:K,children:[s.jsx(os,{vertical:!1}),s.jsx(ds,{dataKey:"day",tickLine:!1,axisLine:!1,minTickGap:24,tickFormatter:yn}),s.jsx(ms,{width:45,tickLine:!1,axisLine:!1}),s.jsx(us,{content:s.jsx(fs,{})}),s.jsx(hs,{dataKey:"value",fill:"var(--color-value)",radius:2})]})})})]}),e[63]=i.metric,e[64]=K,e[65]=p):p=e[65];let L;e[66]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(d,{children:s.jsx(m,{children:"Representative telemetry"})}),e[66]=L):L=e[66];let g;e[67]!==n?(g=_=>{const u=rn(n,_.drilldown);u&&Wt.visit(u)},e[67]=n,e[68]=g):g=e[68];let I;e[69]===Symbol.for("react.memo_cache_sentinel")?(I=[{key:"when",header:"When",cell:gn},{key:"record",header:"Record",className:"max-w-0",cell:pn},{key:"duration",header:"Duration",align:"right",cell:xn},{key:"deploy",header:"Deploy",cell:hn}],e[69]=I):I=e[69];let j;e[70]!==B||e[71]!==g?(j=s.jsxs(c,{children:[L,s.jsx(o,{children:s.jsx(rt,{rows:B,rowKey:jn,empty:"Representative raw telemetry has been pruned.",onRowClick:g,columns:I})})]}),e[70]=B,e[71]=g,e[72]=j):j=e[72];let y;e[73]!==q?(y=q.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Deploy comparison (30d)"})}),s.jsx(o,{children:s.jsx(rt,{rows:q,rowKey:fn,columns:[{key:"deploy",header:"Deploy",cell:un},{key:"events",header:"Events",align:"right",cell:mn},{key:"avg",header:"Avg",align:"right",cell:dn},{key:"max",header:"Max",align:"right",cell:on}]})})]}),e[73]=q,e[74]=y):y=e[74];let A;return e[75]!==x||e[76]!==p||e[77]!==j||e[78]!==y?(A=s.jsxs(s.Fragment,{children:[x,p,j,y]}),e[75]=x,e[76]=p,e[77]=j,e[78]=y,e[79]=A):A=e[79],A}function on(t){return`${t.max_ms} ms`}function dn(t){return`${t.avg_ms} ms`}function mn(t){return Dt(t.events)}function un(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy.slice(0,12)})}function fn(t){return t.deploy}function hn(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy?.slice(0,10)})}function xn(t){return`${t.duration_ms.toLocaleString()} ms`}function pn(t){return s.jsx("span",{className:"block truncate font-mono text-xs",children:t.name})}function gn(t){return s.jsx("span",{className:"text-xs",children:at(t.occurred_at)})}function jn(t){return`${t.record_type}-${t.record_id}`}function yn(t){return new Date(t).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Ni(t){const e=rs.c(259),n=t.issue;let i;e[0]!==n.id?(i=(r,v)=>{const mt=v===void 0?{}:v;return Wt.patch(ft(n.id),{action_name:r,...mt},{preserveScroll:!0})},e[0]=n.id,e[1]=i):i=e[1];const l=i,[,B]=Us(),[T,q]=Q.useState(!1),[b,K]=Q.useState(!1),[a,W]=Q.useState("");let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N=[],e[2]=N):N=e[2];const[E,M]=Q.useState(N),[ct,P]=Q.useState(!1),[ot,R]=Q.useState(!1),V=new Map(t.members.map(Qn)),dt=Bs();let k;e[3]!==n.application.id||e[4]!==n.environment.id?(k=r=>Xt({applicationId:n.application.id,environmentId:n.environment.id,source:r.execution_source,executionId:r.execution_id}),e[3]=n.application.id,e[4]=n.environment.id,e[5]=k):k=e[5];const D=k;let w;e[6]!==n.application.id||e[7]!==n.environment.id||e[8]!==t.latest?(w=t.latest?Xt({applicationId:n.application.id,environmentId:n.environment.id,source:t.latest.execution_source,executionId:t.latest.execution_id}):null,e[6]=n.application.id,e[7]=n.environment.id,e[8]=t.latest,e[9]=w):w=e[9];const S=w;let G,$;e[10]!==n.id||e[11]!==b||e[12]!==a?(G=()=>{if(!b)return;const r=new AbortController,v=window.setTimeout(()=>{P(!0),R(!1),fetch(Ns(n.id,{q:a}),{headers:{Accept:"application/json"},credentials:"same-origin",signal:r.signal}).then(Jn).then(mt=>{const{issues:Tt}=mt;return M(Tt)}).catch(()=>{r.signal.aborted||(M([]),R(!0))}).finally(()=>{r.signal.aborted||P(!1)})},150);return()=>{window.clearTimeout(v),r.abort()}},$=[n.id,b,a],e[10]=n.id,e[11]=b,e[12]=a,e[13]=G,e[14]=$):(G=e[13],$=e[14]),Q.useEffect(G,$);const z=Fs;let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C={title:"Issues",href:vs()},e[15]=C):C=e[15];const U=n.key;let f;e[16]!==n.id?(f=ft(n.id),e[16]=n.id,e[17]=f):f=e[17];let F;e[18]!==n.key||e[19]!==f?(F=[C,{title:U,href:f}],e[18]=n.key,e[19]=f,e[20]=F):F=e[20];const J=`${n.key} ${n.title}`;let h;e[21]!==J?(h=s.jsx(ks,{title:J}),e[21]=J,e[22]=h):h=e[22];const H="flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6";let x;e[23]!==n.key?(x=s.jsx("span",{className:"font-mono text-sm font-semibold",children:n.key}),e[23]=n.key,e[24]=x):x=e[24];let p;e[25]!==n.status?(p=s.jsx(cs,{status:n.status}),e[25]=n.status,e[26]=p):p=e[26];let L;e[27]!==n.kind?(L=s.jsx(ht,{variant:"outline",children:n.kind}),e[27]=n.kind,e[28]=L):L=e[28];let g;e[29]!==n.source?(g=n.source==="browser"&&s.jsxs(ht,{variant:"outline",className:"gap-1",children:[s.jsx(Xs,{className:"size-3"}),"browser"]}),e[29]=n.source,e[30]=g):g=e[30];let I;e[31]!==n.application.name||e[32]!==n.environment.name?(I=s.jsxs("span",{className:"text-muted-foreground text-xs",children:[n.application.name," · ",n.environment.name]}),e[31]=n.application.name,e[32]=n.environment.name,e[33]=I):I=e[33];let j;e[34]!==x||e[35]!==p||e[36]!==L||e[37]!==g||e[38]!==I?(j=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[x,p,L,g,I]}),e[34]=x,e[35]=p,e[36]=L,e[37]=g,e[38]=I,e[39]=j):j=e[39];let y;e[40]!==n.title?(y=s.jsx("h1",{className:"mt-1 text-lg font-semibold break-words",children:n.title}),e[40]=n.title,e[41]=y):y=e[41];let A;e[42]!==n.culprit||e[43]!==n.sample?(A=n.culprit&&s.jsx("div",{className:"text-muted-foreground",children:s.jsx($s,{location:n.culprit,deploy:n.sample.deploy})}),e[42]=n.culprit,e[43]=n.sample,e[44]=A):A=e[44];let _;e[45]!==j||e[46]!==y||e[47]!==A?(_=s.jsxs("div",{className:"min-w-0",children:[j,y,A]}),e[45]=j,e[46]=y,e[47]=A,e[48]=_):_=e[48];let u;e[49]!==l?(u=r=>l("priority",{priority:r}),e[49]=l,e[50]=u):u=e[50];let xt;e[51]===Symbol.for("react.memo_cache_sentinel")?(xt=s.jsx(ss,{className:"w-28",children:s.jsx(ns,{})}),e[51]=xt):xt=e[51];let pt;e[52]===Symbol.for("react.memo_cache_sentinel")?(pt=s.jsx(is,{children:["low","normal","high","urgent"].map(qn)}),e[52]=pt):pt=e[52];let X;e[53]!==n.priority||e[54]!==u?(X=s.jsxs(ts,{value:n.priority,onValueChange:u,children:[xt,pt]}),e[53]=n.priority,e[54]=u,e[55]=X):X=e[55];const zt=n.assignee?String(n.assignee.id):"none";let Y;e[56]!==l?(Y=r=>l("assign",{assignee_id:r==="none"?null:r}),e[56]=l,e[57]=Y):Y=e[57];let gt;e[58]===Symbol.for("react.memo_cache_sentinel")?(gt=s.jsx(ss,{className:"w-40",children:s.jsx(ns,{placeholder:"Assign"})}),e[58]=gt):gt=e[58];let jt;e[59]===Symbol.for("react.memo_cache_sentinel")?(jt=s.jsx(Zt,{value:"none",children:"Unassigned"}),e[59]=jt):jt=e[59];let Z;e[60]!==t.members?(Z=t.members.map(Hn),e[60]=t.members,e[61]=Z):Z=e[61];let ee;e[62]!==Z?(ee=s.jsxs(is,{children:[jt,Z]}),e[62]=Z,e[63]=ee):ee=e[63];let te;e[64]!==zt||e[65]!==Y||e[66]!==ee?(te=s.jsxs(ts,{value:zt,onValueChange:Y,children:[gt,ee]}),e[64]=zt,e[65]=Y,e[66]=ee,e[67]=te):te=e[67];let se;e[68]!==l||e[69]!==n.status?(se=n.status==="merged"?s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("unmerge"),children:"Unmerge"}):n.status==="open"?s.jsxs(s.Fragment,{children:[s.jsx(O,{size:"sm",onClick:()=>l("resolve"),children:"Resolve"}),s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("ignore"),children:"Ignore"})]}):s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("reopen"),children:"Reopen"}),e[68]=l,e[69]=n.status,e[70]=se):se=e[70];let ne;e[71]!==n.status?(ne=n.status!=="merged"&&s.jsxs(O,{size:"sm",variant:"outline",onClick:()=>K(!0),children:[s.jsx(Qs,{"data-icon":"inline-start"}),"Merge into…"]}),e[71]=n.status,e[72]=ne):ne=e[72];let ie;e[73]!==B||e[74]!==t?(ie=()=>{(async()=>await B(an(t))&&(q(!0),setTimeout(()=>q(!1),1200)))()},e[73]=B,e[74]=t,e[75]=ie):ie=e[75];let re;e[76]!==T?(re=T?s.jsx(qs,{className:"size-3.5"}):s.jsx(As,{className:"size-3.5"}),e[76]=T,e[77]=re):re=e[77];let le;e[78]!==ie||e[79]!==re?(le=s.jsxs(O,{size:"sm",variant:"outline",onClick:ie,children:[re,"Copy for AI"]}),e[78]=ie,e[79]=re,e[80]=le):le=e[80];let ae;e[81]!==X||e[82]!==te||e[83]!==se||e[84]!==ne||e[85]!==le?(ae=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[X,te,se,ne,le]}),e[81]=X,e[82]=te,e[83]=se,e[84]=ne,e[85]=le,e[86]=ae):ae=e[86];let ce;e[87]!==_||e[88]!==ae?(ce=s.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[_,ae]}),e[87]=_,e[88]=ae,e[89]=ce):ce=e[89];let oe;e[90]!==l||e[91]!==t.merged_into?(oe=t.merged_into&&s.jsxs("div",{className:"bg-muted flex flex-wrap items-center justify-between gap-2 rounded-md border px-4 py-3 text-sm",children:[s.jsxs("span",{children:["Merged into"," ",s.jsx(Rt,{href:ft(t.merged_into.id),className:"font-mono font-semibold underline",children:t.merged_into.key})," ",s.jsx("span",{className:"text-muted-foreground",children:t.merged_into.title})]}),s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("unmerge"),children:"Unmerge"})]}),e[90]=l,e[91]=t.merged_into,e[92]=oe):oe=e[92];let yt;e[93]===Symbol.for("react.memo_cache_sentinel")?(yt=r=>{K(r),r||(W(""),M([]),R(!1))},e[93]=yt):yt=e[93];let de;e[94]!==a?(de=s.jsx(Es,{placeholder:"Search issues by key or title…",value:a,onValueChange:W}),e[94]=a,e[95]=de):de=e[95];const Ft=ct?"Searching…":ot?"Search failed. Try again.":"No open issues found.";let me;e[96]!==Ft?(me=s.jsx(Ps,{children:Ft}),e[96]=Ft,e[97]=me):me=e[97];let ue;e[98]!==l||e[99]!==E?(ue=E.length>0&&s.jsx(Ms,{children:E.map(r=>s.jsxs(Rs,{value:`${r.key} ${r.title}`,onSelect:()=>{l("merge",{target_id:r.id}),K(!1)},children:[s.jsx("span",{className:"font-mono font-semibold",children:r.key}),s.jsx("span",{className:"text-muted-foreground truncate",children:r.title})]},r.id))}),e[98]=l,e[99]=E,e[100]=ue):ue=e[100];let fe;e[101]!==me||e[102]!==ue?(fe=s.jsxs(Os,{children:[me,ue]}),e[101]=me,e[102]=ue,e[103]=fe):fe=e[103];let he;e[104]!==b||e[105]!==de||e[106]!==fe?(he=s.jsxs(Ks,{open:b,onOpenChange:yt,title:"Merge into…",description:"Search issues to merge this one into",children:[de,fe]}),e[104]=b,e[105]=de,e[106]=fe,e[107]=he):he=e[107];const Bt=t.detection?.count_label??"Events",Et=t.detection?.breached_windows??n.occurrences;let xe;e[108]!==Et?(xe=Dt(Et),e[108]=Et,e[109]=xe):xe=e[109];let pe;e[110]!==Bt||e[111]!==xe?(pe=s.jsx(ut,{label:Bt,value:xe}),e[110]=Bt,e[111]=xe,e[112]=pe):pe=e[112];const Pt=t.detection?"Events in measured window":"Users affected";let ge;e[113]!==n.affected_users||e[114]!==t.detection?(ge=t.detection?t.detection.event_count==null?"–":Dt(t.detection.event_count):n.affected_users,e[113]=n.affected_users,e[114]=t.detection,e[115]=ge):ge=e[115];let je;e[116]!==Pt||e[117]!==ge?(je=s.jsx(ut,{label:Pt,value:ge}),e[116]=Pt,e[117]=ge,e[118]=je):je=e[118];let ye;e[119]!==n.first_seen_at?(ye=Mt(n.first_seen_at),e[119]=n.first_seen_at,e[120]=ye):ye=e[120];let _e;e[121]!==n.first_seen_at?(_e=at(n.first_seen_at),e[121]=n.first_seen_at,e[122]=_e):_e=e[122];let ve;e[123]!==ye||e[124]!==_e?(ve=s.jsx(ut,{label:"First seen",value:ye,hint:_e}),e[123]=ye,e[124]=_e,e[125]=ve):ve=e[125];let be;e[126]!==n.last_seen_at?(be=Mt(n.last_seen_at),e[126]=n.last_seen_at,e[127]=be):be=e[127];let Ne;e[128]!==n.last_seen_at?(Ne=at(n.last_seen_at),e[128]=n.last_seen_at,e[129]=Ne):Ne=e[129];let ke;e[130]!==be||e[131]!==Ne?(ke=s.jsx(ut,{label:"Last seen",value:be,hint:Ne}),e[130]=be,e[131]=Ne,e[132]=ke):ke=e[132];const Ot=n.regressed_at?"Regressed":"Resolved";let we;e[133]!==n.regressed_at||e[134]!==n.resolved_at?(we=n.regressed_at?Mt(n.regressed_at):n.resolved_at?Mt(n.resolved_at):"–",e[133]=n.regressed_at,e[134]=n.resolved_at,e[135]=we):we=e[135];let Se;e[136]!==n.resolved_in_deploy?(Se=n.resolved_in_deploy?`in ${n.resolved_in_deploy.slice(0,12)}`:void 0,e[136]=n.resolved_in_deploy,e[137]=Se):Se=e[137];const Kt=n.regressed_at?"destructive":void 0;let $e;e[138]!==Ot||e[139]!==we||e[140]!==Se||e[141]!==Kt?($e=s.jsx(ut,{label:Ot,value:we,hint:Se,tone:Kt}),e[138]=Ot,e[139]=we,e[140]=Se,e[141]=Kt,e[142]=$e):$e=e[142];let Ce;e[143]!==pe||e[144]!==je||e[145]!==ve||e[146]!==ke||e[147]!==$e?(Ce=s.jsxs(Ts,{children:[pe,je,ve,ke,$e]}),e[143]=pe,e[144]=je,e[145]=ve,e[146]=ke,e[147]=$e,e[148]=Ce):Ce=e[148];const gs="grid gap-6 lg:grid-cols-3";let Le;e[149]!==n||e[150]!==S||e[151]!==t.breadcrumbs||e[152]!==t.browser_breadcrumbs||e[153]!==t.detection||e[154]!==t.latest?(Le=t.detection?s.jsx(cn,{issue:n,detail:t.detection}):t.latest?s.jsxs(c,{children:[s.jsxs(d,{className:"flex-row items-center justify-between",children:[s.jsx(m,{children:"Latest occurrence"}),S&&s.jsxs(Rt,{className:"text-xs underline",href:S,children:["Open ",t.latest.execution_preview]})]}),s.jsxs(o,{children:[s.jsx(Cs,{exception:t.latest,deploy:t.latest.deploy}),s.jsxs("div",{className:"mt-4 space-y-4",children:[s.jsx(Ls,{entries:t.breadcrumbs}),s.jsx(Is,{crumbs:t.browser_breadcrumbs})]}),(t.latest.ruby_version??t.latest.rails_version)&&s.jsxs("p",{className:"text-muted-foreground mt-3 text-xs",children:["Ruby ",t.latest.ruby_version," · Rails"," ",t.latest.rails_version]})]})]}):s.jsx(c,{children:s.jsx(o,{children:s.jsx(ls,{data:n.sample})})}),e[149]=n,e[150]=S,e[151]=t.breadcrumbs,e[152]=t.browser_breadcrumbs,e[153]=t.detection,e[154]=t.latest,e[155]=Le):Le=e[155];const Vt=t.detection?"hidden":void 0;let _t;e[156]===Symbol.for("react.memo_cache_sentinel")?(_t=s.jsx(d,{children:s.jsx(m,{children:"Occurrences (30d)"})}),e[156]=_t):_t=e[156];let Ie;e[157]!==D?(Ie=r=>{const v=D(r);v&&Wt.visit(v)},e[157]=D,e[158]=Ie):Ie=e[158];let vt;e[159]===Symbol.for("react.memo_cache_sentinel")?(vt=[{key:"when",header:"When",cell:Gn},{key:"in",header:"In",cell:Vn},{key:"u",header:"User",cell:Kn},{key:"t",header:"Tenant",cell:On},{key:"d",header:"Deploy",cell:Pn},{key:"h",header:"",cell:En}],e[159]=vt):vt=e[159];let Ae;e[160]!==t.occurrences||e[161]!==Ie?(Ae=s.jsx(o,{children:s.jsx(rt,{rows:t.occurrences,rowKey:Un,empty:"Raw occurrences have been pruned.",onRowClick:Ie,columns:vt})}),e[160]=t.occurrences,e[161]=Ie,e[162]=Ae):Ae=e[162];let Te;e[163]!==Vt||e[164]!==Ae?(Te=s.jsxs(c,{className:Vt,children:[_t,Ae]}),e[163]=Vt,e[164]=Ae,e[165]=Te):Te=e[165];let Me;e[166]!==n.application.id||e[167]!==n.environment.id||e[168]!==t.attachments?(Me=t.attachments.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Attachments"})}),s.jsx(o,{children:s.jsx(rt,{rows:t.attachments,rowKey:Bn,columns:[{key:"name",header:"Name",className:"max-w-0",cell:Fn},{key:"in",header:"In",cell:zn},{key:"size",header:"Size",align:"right",cell:Dn},{key:"links",header:"",align:"right",cell:r=>s.jsxs("span",{className:"flex justify-end gap-3",children:[r.viewable&&s.jsx("a",{className:"text-primary hover:underline",href:es(n.application.id,n.environment.id,r.id,{view:1}),children:"View"}),s.jsx("a",{className:"text-primary hover:underline",href:es(n.application.id,n.environment.id,r.id),children:"Download"})]})}]})})]}),e[166]=n.application.id,e[167]=n.environment.id,e[168]=t.attachments,e[169]=Me):Me=e[169];let Re;e[170]!==Le||e[171]!==Te||e[172]!==Me?(Re=s.jsxs("div",{className:"space-y-6 lg:col-span-2",children:[Le,Te,Me]}),e[170]=Le,e[171]=Te,e[172]=Me,e[173]=Re):Re=e[173];const js="space-y-6",Gt=t.detection?"hidden":void 0;let bt;e[174]===Symbol.for("react.memo_cache_sentinel")?(bt=s.jsx(d,{children:s.jsx(m,{children:"Daily (30d)"})}),e[174]=bt):bt=e[174];const ys=t.daily;let Nt,kt,wt;e[175]===Symbol.for("react.memo_cache_sentinel")?(Nt=s.jsx(os,{vertical:!1}),kt=s.jsx(ds,{dataKey:"day",tickLine:!1,axisLine:!1,minTickGap:24,tickFormatter:Rn}),wt=s.jsx(ms,{width:28,tickLine:!1,axisLine:!1,allowDecimals:!1}),e[175]=Nt,e[176]=kt,e[177]=wt):(Nt=e[175],kt=e[176],wt=e[177]);let De;e[178]!==t.deploys?(De=s.jsx(us,{content:s.jsx(fs,{labelFormatter:r=>{const v=en(t.deploys,String(r));return v.length>0?`${String(r)} · deployed ${v.join(", ")}`:String(r)}})}),e[178]=t.deploys,e[179]=De):De=e[179];let St;e[180]===Symbol.for("react.memo_cache_sentinel")?(St=s.jsx(hs,{dataKey:"count",fill:"var(--color-count)",radius:2}),e[180]=St):St=e[180];let ze;e[181]!==t.deploys?(ze=new Set(t.deploys.map(Mn)),e[181]=t.deploys,e[182]=ze):ze=e[182];let Fe;e[183]!==ze?(Fe=[...ze].map(Tn),e[183]=ze,e[184]=Fe):Fe=e[184];let Be;e[185]!==t.daily||e[186]!==De||e[187]!==Fe?(Be=s.jsx(o,{children:s.jsx(xs,{config:tn,className:"h-40 w-full",children:s.jsxs(ps,{data:ys,children:[Nt,kt,wt,De,St,Fe]})})}),e[185]=t.daily,e[186]=De,e[187]=Fe,e[188]=Be):Be=e[188];let Ee;e[189]!==Gt||e[190]!==Be?(Ee=s.jsxs(c,{className:Gt,children:[bt,Be]}),e[189]=Gt,e[190]=Be,e[191]=Ee):Ee=e[191];const Ut=t.detection?"hidden":void 0;let $t;e[192]===Symbol.for("react.memo_cache_sentinel")?($t=s.jsx(d,{children:s.jsx(m,{children:"Grouping"})}),e[192]=$t):$t=e[192];let Pe;e[193]!==t.fingerprint?(Pe=t.fingerprint.length>0&&s.jsx("div",{className:"flex flex-wrap gap-1",children:t.fingerprint.map(An)}),e[193]=t.fingerprint,e[194]=Pe):Pe=e[194];const Ht=nn[t.fingerprint_source??"default"]??`Fingerprint from ${t.fingerprint_source}.`;let Oe;e[195]!==Ht?(Oe=s.jsx("p",{className:"text-muted-foreground text-xs",children:Ht}),e[195]=Ht,e[196]=Oe):Oe=e[196];let Ke;e[197]!==l||e[198]!==t.distinct_messages||e[199]!==t.top_messages?(Ke=t.distinct_messages>1&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"space-y-1",children:t.top_messages.map(In)}),s.jsxs(O,{size:"sm",variant:"outline",onClick:()=>l("split",{by:"message"}),children:[s.jsx(Zs,{className:"size-3.5"}),"Split into ",t.distinct_messages," issues"]})]}),e[197]=l,e[198]=t.distinct_messages,e[199]=t.top_messages,e[200]=Ke):Ke=e[200];let Ve;e[201]!==Pe||e[202]!==Oe||e[203]!==Ke?(Ve=s.jsxs(o,{className:"space-y-3",children:[Pe,Oe,Ke]}),e[201]=Pe,e[202]=Oe,e[203]=Ke,e[204]=Ve):Ve=e[204];let Ge;e[205]!==Ut||e[206]!==Ve?(Ge=s.jsxs(c,{className:Ut,children:[$t,Ve]}),e[205]=Ut,e[206]=Ve,e[207]=Ge):Ge=e[207];let Ue;e[208]!==t.related_issues?(Ue=t.related_issues.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Related issues"})}),s.jsx(o,{className:"space-y-2",children:t.related_issues.map(Ln)})]}),e[208]=t.related_issues,e[209]=Ue):Ue=e[209];let He;e[210]!==t.merged_issues?(He=t.merged_issues.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Merged issues"})}),s.jsx(o,{className:"space-y-2",children:t.merged_issues.map(Cn)})]}),e[210]=t.merged_issues,e[211]=He):He=e[211];let qe;e[212]!==t.alerts?(qe=t.alerts.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Alerts"})}),s.jsx(o,{className:"space-y-2",children:t.alerts.map($n)})]}),e[212]=t.alerts,e[213]=qe):qe=e[213];let Ct;e[214]===Symbol.for("react.memo_cache_sentinel")?(Ct=s.jsx(d,{children:s.jsx(m,{children:"By deploy"})}),e[214]=Ct):Ct=e[214];let Je;e[215]!==t.by_deploy?(Je=Object.entries(t.by_deploy),e[215]=t.by_deploy,e[216]=Je):Je=e[216];let Lt;e[217]===Symbol.for("react.memo_cache_sentinel")?(Lt=[{key:"d",header:"Deploy",cell:wn},{key:"n",header:"Count",align:"right",cell:kn}],e[217]=Lt):Lt=e[217];let Qe;e[218]!==Je?(Qe=s.jsxs(c,{children:[Ct,s.jsx(o,{children:s.jsx(rt,{rows:Je,rowKey:Sn,columns:Lt})})]}),e[218]=Je,e[219]=Qe):Qe=e[219];let We;e[220]!==t.by_tenant?(We=Object.keys(t.by_tenant).length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"By tenant"})}),s.jsx(o,{children:s.jsx(rt,{rows:Object.entries(t.by_tenant),rowKey:Nn,columns:[{key:"t",header:"Tenant",cell:bn},{key:"n",header:"Count",align:"right",cell:vn}]})})]}),e[220]=t.by_tenant,e[221]=We):We=e[221];const qt=c;let Xe;e[222]===Symbol.for("react.memo_cache_sentinel")?(Xe=s.jsx(d,{children:s.jsx(m,{children:"Activity"})}),e[222]=Xe):Xe=e[222];const Jt=o,_s="space-y-3",Qt=t.activities.map(r=>{const v=r.data.source==="linear",mt=typeof r.data.author_name=="string"?r.data.author_name:"Linear",Tt=r.user?.name??(v?mt:"System");return s.jsxs("div",{className:"flex gap-2 text-sm",children:[s.jsx(Ds,{className:"size-6",children:s.jsx(zs,{className:"text-[10px]",children:r.user||v?dt(Tt):"sys"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"text-xs",children:[s.jsx("span",{className:"font-medium",children:Tt})," ",s.jsx("span",{className:"text-muted-foreground",children:ln(r,V)})," ",s.jsx(as,{iso:r.created_at,className:"text-muted-foreground"})]}),r.kind==="comment"&&s.jsx("div",{className:"mt-0.5 whitespace-pre-wrap",children:String(r.data.body)})]})]},r.id)});let Ye;e[223]!==n.id?(Ye=bs(n.id),e[223]=n.id,e[224]=Ye):Ye=e[224];let It;e[225]===Symbol.for("react.memo_cache_sentinel")?(It={preserveScroll:!0},e[225]=It):It=e[225];let Ze;e[226]!==Ye?(Ze=s.jsx(ws,{method:"post",action:Ye,options:It,resetOnSuccess:!0,className:"space-y-2",children:_n}),e[226]=Ye,e[227]=Ze):Ze=e[227];let et;e[228]!==Jt||e[229]!==Qt||e[230]!==Ze?(et=s.jsxs(Jt,{className:_s,children:[Qt,Ze]}),e[228]=Jt,e[229]=Qt,e[230]=Ze,e[231]=et):et=e[231];let tt;e[232]!==qt||e[233]!==Xe||e[234]!==et?(tt=s.jsxs(qt,{children:[Xe,et]}),e[232]=qt,e[233]=Xe,e[234]=et,e[235]=tt):tt=e[235];let st;e[236]!==qe||e[237]!==Qe||e[238]!==We||e[239]!==tt||e[240]!==Ee||e[241]!==Ge||e[242]!==Ue||e[243]!==He?(st=s.jsxs("div",{className:js,children:[Ee,Ge,Ue,He,qe,Qe,We,tt]}),e[236]=qe,e[237]=Qe,e[238]=We,e[239]=tt,e[240]=Ee,e[241]=Ge,e[242]=Ue,e[243]=He,e[244]=st):st=e[244];let nt;e[245]!==st||e[246]!==Re?(nt=s.jsxs("div",{className:gs,children:[Re,st]}),e[245]=st,e[246]=Re,e[247]=nt):nt=e[247];let it;e[248]!==nt||e[249]!==ce||e[250]!==oe||e[251]!==he||e[252]!==Ce?(it=s.jsxs("div",{className:H,children:[ce,oe,he,Ce,nt]}),e[248]=nt,e[249]=ce,e[250]=oe,e[251]=he,e[252]=Ce,e[253]=it):it=e[253];let At;return e[254]!==z||e[255]!==h||e[256]!==it||e[257]!==F?(At=s.jsxs(z,{breadcrumbs:F,children:[h,it]}),e[254]=z,e[255]=h,e[256]=it,e[257]=F,e[258]=At):At=e[258],At}function _n(t){const{processing:e}=t;return s.jsxs(s.Fragment,{children:[s.jsx(Gs,{name:"body",placeholder:"Add a comment…",required:!0,rows:3}),s.jsx(O,{size:"sm",disabled:e,children:"Comment"})]})}function vn(t){const[,e]=t;return e}function bn(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e})}function Nn(t){const[e]=t;return e}function kn(t){const[,e]=t;return e}function wn(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e??"unknown"})}function Sn(t){const[e]=t;return e??"none"}function $n(t){return s.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",title:t.error??void 0,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ht,{variant:t.status==="failed"?"destructive":"outline",className:"capitalize",children:t.status}),s.jsxs("span",{children:[t.event," via ",t.integration.name]}),s.jsx(as,{iso:t.sent_at,className:"text-muted-foreground"})]}),t.error&&s.jsx("span",{className:"text-destructive",children:t.error})]},t.id)}function Cn(t){return s.jsxs(Rt,{href:ft(t.id),className:"hover:bg-muted/60 -mx-2 flex flex-col rounded px-2 py-1 text-xs",children:[s.jsx("span",{className:"font-mono font-semibold",children:t.key}),s.jsx("span",{className:"text-muted-foreground line-clamp-1",children:t.title})]},t.id)}function Ln(t){return s.jsxs(Rt,{href:ft(t.id),className:"hover:bg-muted/60 -mx-2 flex flex-col rounded px-2 py-1 text-xs",children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"font-mono font-semibold",children:t.key}),s.jsx(cs,{status:t.status})]}),s.jsx("span",{className:"text-muted-foreground line-clamp-1",children:t.title}),s.jsx("span",{className:"text-muted-foreground",children:t.environment.name})]},t.id)}function In(t){return s.jsxs("div",{className:"flex items-start justify-between gap-2 text-xs",children:[s.jsx("span",{className:"line-clamp-1 font-mono",children:t.message}),s.jsx("span",{className:"text-muted-foreground",children:Dt(t.count)})]},t.message)}function An(t,e){return s.jsx("span",{className:"bg-muted rounded px-1.5 py-0.5 font-mono text-[11px] break-all",children:t},`${e}-${t}`)}function Tn(t){return s.jsx(Vs,{x:t,stroke:"var(--muted-foreground)",strokeDasharray:"3 3"},t)}function Mn(t){return t.at.slice(0,10)}function Rn(t){return new Date(t).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Dn(t){return Hs(t.bytes)}function zn(t){return s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.execution_preview??"–"})}function Fn(t){return s.jsxs("span",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"truncate font-mono text-xs",children:t.name}),t.truncated&&s.jsx(ht,{variant:"secondary",children:"truncated"})]})}function Bn(t){return t.id}function En(t){return t.handled?s.jsx(ht,{variant:"secondary",children:"handled"}):null}function Pn(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy?.slice(0,10)})}function On(t){return s.jsx("span",{className:"font-mono text-xs",children:t.tenant??""})}function Kn(t){return s.jsx("span",{className:"font-mono text-xs",children:t.user_ref??""})}function Vn(t){return s.jsxs("span",{className:"font-mono text-xs",children:[t.execution_source," ",t.execution_preview]})}function Gn(t){return s.jsx("span",{className:"text-xs",children:at(t.occurred_at)})}function Un(t){return t.id}function Hn(t){return s.jsx(Zt,{value:String(t.id),children:t.name},t.id)}function qn(t){return s.jsx(Zt,{value:t,children:t},t)}function Jn(t){if(!t.ok)throw new Error(`HTTP ${t.status}`);return t.json()}function Qn(t){return[t.id,t.name]}export{Ni as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as be,u as ke,r as ye,ao as _e,j as n,L as Z,a1 as ve,Y as we,t as he,e as xe,az as qe,i as Ne}from"./inertia-Cuyz2ZHO.js";import{V as Ee,D as Re}from"./chart-panel-CC49WTQL.js";import{D as se}from"./data-table-CzKTEE-O.js";import{u as Pe,E as Se,P as Me}from"./env-layout-Kz7wks1x.js";import{a as De,S as Oe}from"./segmented-BeIe4uqk.js";import{S as X,a as Le}from"./stat-ZtxGU8lE.js";import{S as Te}from"./status-badge-CH5P-Xkj.js";import{c as m,p as $e,m as ee,w as pe,a as Ae}from"./format-B9SDkrWj.js";import"./series-chart-gnrzhmM6.js";import"./chart-hover-CfoZUY4J.js";import"./chart-DWh7l8yM.js";import"./empty-state-CW4wclK_.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";import"./use-live-DMTuhKfB.js";import"./arrow-up-CLQ-7heQ.js";function Dt(t){const e=be.c(167),{environment:de,window:u}=ke().props,{window:fe,label:ge}=Pe(),[i,je]=ye.useState("routes"),r=de.application_id,l=de.id,s=t.summary.current,o=t.summary.previous,c=fe==="custom"?"vs previous period":`vs previous ${ge}`;let f,g,j,b,k,y,d,h,x,p;if(e[0]!==r||e[1]!==c||e[2]!==l||e[3]!==t.exceptions.length||e[4]!==t.jobs.length||e[5]!==t.links.logs||e[6]!==t.links.people||e[7]!==t.people.length||e[8]!==t.recent_requests.length||e[9]!==t.routes.length||e[10]!==t.series||e[11]!==t.tenant||e[12]!==o.errors||e[13]!==o.exceptions||e[14]!==o.p95||e[15]!==o.requests||e[16]!==s.errors||e[17]!==s.exceptions||e[18]!==s.failed_jobs||e[19]!==s.jobs||e[20]!==s.logs||e[21]!==s.p95||e[22]!==s.requests||e[23]!==s.users||e[24]!==i||e[25]!==u){const a=[{key:"routes",label:"Routes",badge:t.routes.length},{key:"jobs",label:"Jobs",badge:t.jobs.length},{key:"exceptions",label:"Exceptions",badge:t.exceptions.length},{key:"people",label:"Users",badge:t.people.length},{key:"requests",label:"Recent requests",badge:t.recent_requests.length}];g=Se,y=t.tenant;let P;e[36]!==r||e[37]!==l||e[38]!==u?(P=_e(r,l,{window:u}),e[36]=r,e[37]=l,e[38]=u,e[39]=P):P=e[39];let S;e[40]!==P?(S={title:"Tenants",href:P},e[40]=P,e[41]=S):S=e[41];let M;e[42]!==t.tenant?(M={title:t.tenant,href:"#"},e[42]=t.tenant,e[43]=M):M=e[43],e[44]!==M||e[45]!==S?(d=[S,M],e[44]=M,e[45]=S,e[46]=d):d=e[46];let D;e[47]!==t.tenant?(D=n.jsx("span",{className:"font-mono",children:t.tenant}),e[47]=t.tenant,e[48]=D):D=e[48];let O;e[49]!==t.links.logs?(O=n.jsx(Z,{className:"text-xs underline",href:t.links.logs,children:"Logs"}),e[49]=t.links.logs,e[50]=O):O=e[50];let L;e[51]!==t.links.people?(L=n.jsx(Z,{className:"text-xs underline",href:t.links.people,children:"Users"}),e[51]=t.links.people,e[52]=L):L=e[52];let T;e[53]!==O||e[54]!==L?(T=n.jsxs(n.Fragment,{children:[O,L]}),e[53]=O,e[54]=L,e[55]=T):T=e[55],e[56]!==D||e[57]!==T?(h=n.jsx(Me,{title:D,actions:T}),e[56]=D,e[57]=T,e[58]=h):h=e[58];let $;e[59]!==s.requests?($=m(s.requests),e[59]=s.requests,e[60]=$):$=e[60];let A;e[61]!==o.requests||e[62]!==s.requests?(A={current:s.requests,previous:o.requests,goodDirection:"up"},e[61]=o.requests,e[62]=s.requests,e[63]=A):A=e[63];let C;e[64]!==c||e[65]!==$||e[66]!==A?(C=n.jsx(X,{label:"Requests",value:$,delta:A,deltaCaption:c}),e[64]=c,e[65]=$,e[66]=A,e[67]=C):C=e[67];let K;e[68]!==s.errors||e[69]!==s.requests?(K=$e(s.errors,s.requests),e[68]=s.errors,e[69]=s.requests,e[70]=K):K=e[70];const le=s.errors?"destructive":"success",oe=`${s.errors} of ${s.requests}`,ie=s.requests?s.errors/s.requests*100:0,ae=o.requests?o.errors/o.requests*100:0;let U;e[71]!==ie||e[72]!==ae?(U={current:ie,previous:ae,goodDirection:"down"},e[71]=ie,e[72]=ae,e[73]=U):U=e[73];let J;e[74]!==c||e[75]!==K||e[76]!==le||e[77]!==oe||e[78]!==U?(J=n.jsx(X,{label:"5xx",value:K,tone:le,hint:oe,delta:U,deltaCaption:c}),e[74]=c,e[75]=K,e[76]=le,e[77]=oe,e[78]=U,e[79]=J):J=e[79];let W;e[80]!==s.p95?(W=ee(s.p95),e[80]=s.p95,e[81]=W):W=e[81];let F;e[82]!==o.p95||e[83]!==s.p95?(F={current:s.p95,previous:o.p95,goodDirection:"down"},e[82]=o.p95,e[83]=s.p95,e[84]=F):F=e[84];let I;e[85]!==c||e[86]!==W||e[87]!==F?(I=n.jsx(X,{label:"p95",value:W,delta:F,deltaCaption:c}),e[85]=c,e[86]=W,e[87]=F,e[88]=I):I=e[88];let V;e[89]!==s.jobs?(V=m(s.jobs),e[89]=s.jobs,e[90]=V):V=e[90];const ce=`${s.failed_jobs} failed`,ue=s.failed_jobs?"destructive":"default";let z;e[91]!==V||e[92]!==ce||e[93]!==ue?(z=n.jsx(X,{label:"Jobs",value:V,hint:ce,tone:ue}),e[91]=V,e[92]=ce,e[93]=ue,e[94]=z):z=e[94];let B;e[95]!==s.exceptions?(B=m(s.exceptions),e[95]=s.exceptions,e[96]=B):B=e[96];let H;e[97]!==o.exceptions||e[98]!==s.exceptions?(H={current:s.exceptions,previous:o.exceptions,goodDirection:"down"},e[97]=o.exceptions,e[98]=s.exceptions,e[99]=H):H=e[99];let Y;e[100]!==c||e[101]!==B||e[102]!==H?(Y=n.jsx(X,{label:"Exceptions",value:B,delta:H,deltaCaption:c}),e[100]=c,e[101]=B,e[102]=H,e[103]=Y):Y=e[103];let G;e[104]!==s.users?(G=m(s.users),e[104]=s.users,e[105]=G):G=e[105];let re;e[106]!==s.logs?(re=m(s.logs),e[106]=s.logs,e[107]=re):re=e[107];const me=`${re} log lines`;let Q;e[108]!==G||e[109]!==me?(Q=n.jsx(X,{label:"Users",value:G,hint:me}),e[108]=G,e[109]=me,e[110]=Q):Q=e[110],e[111]!==C||e[112]!==J||e[113]!==I||e[114]!==z||e[115]!==Y||e[116]!==Q?(x=n.jsxs(Le,{children:[C,J,I,z,Y,Q]}),e[111]=C,e[112]=J,e[113]=I,e[114]=z,e[115]=Y,e[116]=Q,e[117]=x):x=e[117],e[118]!==t.series?(p=n.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[n.jsx(Ee,{label:"Requests",data:t.series}),n.jsx(Re,{label:"Latency",data:t.series})]}),e[118]=t.series,e[119]=p):p=e[119],k="-mx-3 [scrollbar-width:none] overflow-x-auto px-3 md:mx-0 md:px-0 [&::-webkit-scrollbar]:hidden",f=Oe,j="w-max",b=a.map(te=>n.jsxs(De,{mono:!1,active:i===te.key,onClick:()=>je(te.key),className:"gap-1.5 px-3",children:[te.label,n.jsx("span",{className:"opacity-60",children:m(te.badge)})]},te.key)),e[0]=r,e[1]=c,e[2]=l,e[3]=t.exceptions.length,e[4]=t.jobs.length,e[5]=t.links.logs,e[6]=t.links.people,e[7]=t.people.length,e[8]=t.recent_requests.length,e[9]=t.routes.length,e[10]=t.series,e[11]=t.tenant,e[12]=o.errors,e[13]=o.exceptions,e[14]=o.p95,e[15]=o.requests,e[16]=s.errors,e[17]=s.exceptions,e[18]=s.failed_jobs,e[19]=s.jobs,e[20]=s.logs,e[21]=s.p95,e[22]=s.requests,e[23]=s.users,e[24]=i,e[25]=u,e[26]=f,e[27]=g,e[28]=j,e[29]=b,e[30]=k,e[31]=y,e[32]=d,e[33]=h,e[34]=x,e[35]=p}else f=e[26],g=e[27],j=e[28],b=e[29],k=e[30],y=e[31],d=e[32],h=e[33],x=e[34],p=e[35];let _;e[120]!==f||e[121]!==j||e[122]!==b?(_=n.jsx(f,{className:j,children:b}),e[120]=f,e[121]=j,e[122]=b,e[123]=_):_=e[123];let v;e[124]!==k||e[125]!==_?(v=n.jsx("div",{className:k,children:_}),e[124]=k,e[125]=_,e[126]=v):v=e[126];let w;e[127]!==r||e[128]!==l||e[129]!==t.routes||e[130]!==i||e[131]!==u?(w=i==="routes"&&n.jsx(se,{rows:t.routes,rowKey:ct,empty:"No requests from this tenant in this window.",columns:[{key:"name",header:"Route",cell:a=>n.jsx(Z,{className:"font-mono text-xs hover:underline",href:ve(r,l,a.group_hash,{window:u}),children:a.name})},{key:"count",header:"Requests",align:"right",cell:at},{key:"errors",header:"5xx",align:"right",cell:it},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:ot},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:lt}]}),e[127]=r,e[128]=l,e[129]=t.routes,e[130]=i,e[131]=u,e[132]=w):w=e[132];let q;e[133]!==r||e[134]!==l||e[135]!==t.jobs||e[136]!==i||e[137]!==u?(q=i==="jobs"&&n.jsx(se,{rows:t.jobs,rowKey:rt,empty:"No job attempts from this tenant in this window.",columns:[{key:"name",header:"Job",cell:a=>n.jsx(Z,{className:"font-mono text-xs hover:underline",href:we(r,l,a.group_hash,{window:u}),children:a.name})},{key:"count",header:"Attempts",align:"right",cell:nt},{key:"failed",header:"Failed",align:"right",cell:st},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:tt},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:et}]}),e[133]=r,e[134]=l,e[135]=t.jobs,e[136]=i,e[137]=u,e[138]=q):q=e[138];let N;e[139]!==r||e[140]!==l||e[141]!==t.exceptions||e[142]!==i?(N=i==="exceptions"&&n.jsx(se,{rows:t.exceptions,rowKey:Ze,empty:"No exceptions from this tenant in this window.",columns:[{key:"when",header:"When",cell:Xe},{key:"class",header:"Class",cell:Qe},{key:"message",header:"Message",cell:Ge},{key:"issue",header:"Issue",cell:Ye},{key:"exe",hideOnMobile:!0,header:"Execution",cell:a=>a.execution_id?n.jsx(Z,{className:"font-mono text-xs hover:underline",href:he(r,l,a.execution_id),children:a.execution_id.slice(0,8)}):n.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})}]}),e[139]=r,e[140]=l,e[141]=t.exceptions,e[142]=i,e[143]=N):N=e[143];let E;e[144]!==r||e[145]!==l||e[146]!==t.people||e[147]!==i?(E=i==="people"&&n.jsx(se,{rows:t.people,rowKey:He,empty:"No users tagged with this tenant.",onRowClick:a=>xe.visit(qe(r,l,a.ref)),columns:[{key:"name",header:"User",cell:Be},{key:"ref",hideOnMobile:!0,header:"Ref",cell:ze},{key:"seen",header:"Last seen",align:"right",cell:Ve}]}),e[144]=r,e[145]=l,e[146]=t.people,e[147]=i,e[148]=E):E=e[148];let R;e[149]!==r||e[150]!==l||e[151]!==t.recent_requests||e[152]!==i?(R=i==="requests"&&n.jsx(se,{rows:t.recent_requests,rowKey:Ie,empty:"No requests from this tenant in this window.",onRowClick:a=>xe.visit(he(r,l,a.execution_id)),columns:[{key:"when",header:"When",cell:Fe},{key:"name",header:"Route",cell:We},{key:"status",header:"Status",cell:Je},{key:"dur",header:"Duration",align:"right",cell:Ue},{key:"user",hideOnMobile:!0,header:"User",cell:Ke},{key:"ex",hideOnMobile:!0,header:"Exception",cell:Ce}]}),e[149]=r,e[150]=l,e[151]=t.recent_requests,e[152]=i,e[153]=R):R=e[153];let ne;return e[154]!==g||e[155]!==w||e[156]!==q||e[157]!==N||e[158]!==E||e[159]!==R||e[160]!==y||e[161]!==d||e[162]!==h||e[163]!==x||e[164]!==p||e[165]!==v?(ne=n.jsxs(g,{title:y,crumbs:d,children:[h,x,p,v,w,q,N,E,R]}),e[154]=g,e[155]=w,e[156]=q,e[157]=N,e[158]=E,e[159]=R,e[160]=y,e[161]=d,e[162]=h,e[163]=x,e[164]=p,e[165]=v,e[166]=ne):ne=e[166],ne}function Ce(t){return n.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function Ke(t){return n.jsx("span",{className:"font-mono text-xs",children:t.user_ref??"–"})}function Ue(t){return ee(t.duration)}function Je(t){return n.jsx(Te,{status:t.status})}function We(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function Fe(t){return n.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ie(t){return t.execution_id}function Ve(t){return Ae(t.last_seen_at)}function ze(t){return n.jsx("span",{className:"font-mono text-xs",children:t.ref})}function Be(t){return n.jsxs("span",{className:"text-xs",children:[n.jsx("span",{className:"font-medium",children:t.name}),t.email&&n.jsxs("span",{className:"text-muted-foreground",children:[" · ",t.email]})]})}function He(t){return t.ref}function Ye(t){return t.issue_id?n.jsx(Z,{className:"font-mono text-xs hover:underline",href:Ne(t.issue_id),children:t.issue_key}):n.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})}function Ge(t){return n.jsx("span",{className:"line-clamp-1 text-xs",children:t.message})}function Qe(t){return n.jsx("span",{className:"font-mono text-xs",children:t.class_name})}function Xe(t){return n.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ze(t){return t.id}function et(t){return ee(t.max)}function tt(t){return ee(t.avg)}function st(t){return n.jsx("span",{className:t.failed?"text-destructive":"",children:m(t.failed)})}function nt(t){return m(t.count)}function rt(t){return t.group_hash}function lt(t){return ee(t.max)}function ot(t){return ee(t.avg)}function it(t){return n.jsx("span",{className:t.errors?"text-destructive":"",children:m(t.errors)})}function at(t){return m(t.count)}function ct(t){return t.group_hash}export{Dt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B,c as C,u as H,r as L,j as s,L as E,C as I,H as z}from"./inertia-Cuyz2ZHO.js";import{M as D,a as F}from"./nav-BSSGObDZ.js";import{B as R}from"./app-wordmark-BA_60AVb.js";const $=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],O=B("menu",$);function G(t){const e=C.c(36),{auth:S}=H().props,[f,w]=L.useState(!1);let o;if(e[0]!==t.doc.id||e[1]!==t.nav){let v;e[3]!==t.doc.id?(v=M=>s.jsxs("div",{children:[s.jsx("div",{className:"label-caps mb-2",children:M.title}),s.jsx("ul",{className:"space-y-0.5",children:M.docs.map(k=>s.jsx("li",{children:s.jsx(E,{href:k.href,onClick:()=>w(!1),className:I("hover:bg-accent block rounded-md px-2 py-1",k.id===t.doc.id?"bg-accent font-medium":"text-muted-foreground"),children:k.title})},k.id))})]},M.section),e[3]=t.doc.id,e[4]=v):v=e[4],o=t.nav.map(v),e[0]=t.doc.id,e[1]=t.nav,e[2]=o}else o=e[2];let h;e[5]!==o?(h=s.jsx("nav",{className:"space-y-6 text-sm",children:o}),e[5]=o,e[6]=h):h=e[6];const l=h,N=`${t.doc.title} · Docs`;let n;e[7]!==N?(n=s.jsx(z,{title:N}),e[7]=N,e[8]=n):n=e[8];const y=!!S?.user;let a;e[9]!==y?(a=s.jsx(D,{signedIn:y}),e[9]=y,e[10]=a):a=e[10];let r;e[11]!==l?(r=s.jsx("aside",{className:"hidden w-56 shrink-0 md:block",children:s.jsx("div",{className:"sticky top-6",children:l})}),e[11]=l,e[12]=r):r=e[12];let u,j;e[13]===Symbol.for("react.memo_cache_sentinel")?(u=()=>w(P),j=s.jsx(O,{className:"size-4"}),e[13]=u,e[14]=j):(u=e[13],j=e[14]);const _=f?"Hide contents":"Contents";let c;e[15]!==_?(c=s.jsxs(R,{variant:"outline",size:"sm",onClick:u,children:[j,_]}),e[15]=_,e[16]=c):c=e[16];let i;e[17]!==f||e[18]!==l?(i=f&&s.jsx("div",{className:"bg-card mt-3 rounded-lg border p-4",children:l}),e[17]=f,e[18]=l,e[19]=i):i=e[19];let d;e[20]!==c||e[21]!==i?(d=s.jsxs("div",{className:"mb-4 md:hidden",children:[c,i]}),e[20]=c,e[21]=i,e[22]=d):d=e[22];let m;e[23]!==t.doc.html?(m=s.jsx("article",{className:"prose prose-neutral dark:prose-invert prose-headings:scroll-mt-6 prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-3xl prose-a:text-primary prose-code:rounded prose-code:bg-muted prose-code:px-1 prose-code:py-0.5 prose-code:font-mono prose-code:text-[0.85em] prose-code:font-normal prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-table:text-sm prose-th:label-caps max-w-none",dangerouslySetInnerHTML:{__html:t.doc.html}}),e[23]=t.doc.html,e[24]=m):m=e[24];let p;e[25]!==d||e[26]!==m?(p=s.jsxs("div",{className:"min-w-0 flex-1",children:[d,m]}),e[25]=d,e[26]=m,e[27]=p):p=e[27];let x;e[28]!==p||e[29]!==r?(x=s.jsxs("div",{className:"mx-auto flex w-full max-w-6xl gap-10 px-6 pb-16",children:[r,p]}),e[28]=p,e[29]=r,e[30]=x):x=e[30];let b;e[31]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(F,{}),e[31]=b):b=e[31];let g;return e[32]!==x||e[33]!==n||e[34]!==a?(g=s.jsxs(s.Fragment,{children:[n,a,x,b]}),e[32]=x,e[33]=n,e[34]=a,e[35]=g):g=e[35],g}function P(t){return!t}export{G as default};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{r as ae,j as r,c as oe,C as fe}from"./inertia-Cuyz2ZHO.js";import{D as G}from"./data-table-CzKTEE-O.js";import{P as he,E as _e}from"./env-layout-Kz7wks1x.js";import{S as L,a as pe}from"./stat-ZtxGU8lE.js";import{C as M,a as V,b as z,c as Q}from"./card-DPjFKfen.js";import{c as xe}from"./index-BfbSo01U.js";import{P as le}from"./index-CBip6V4z.js";import{c as d,b as ie}from"./format-B9SDkrWj.js";import"./chart-hover-CfoZUY4J.js";import"./empty-state-CW4wclK_.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";import"./use-live-DMTuhKfB.js";import"./segmented-BeIe4uqk.js";import"./arrow-up-CLQ-7heQ.js";var ye=Object.defineProperty,m=(t,e)=>ye(t,"name",{value:e,configurable:!0}),ce="Progress",se=100,[ve,ot]=xe(ce),[be,ge]=ve(ce),je=ae.forwardRef(m(function(e,a){const{__scopeProgress:o,value:i=null,max:s,getValueLabel:u=de,...l}=e;(s||s===0)&&!te(s)&&console.error(ue(`${s}`,"Progress"));const n=te(s)?s:se;i!==null&&!re(i,n)&&console.error(me(`${i}`,"Progress"));const c=re(i,n)?i:null,f=D(c)?u(c,n):void 0;return r.jsx(be,{scope:o,value:c,max:n,children:r.jsx(le.div,{"aria-valuemax":n,"aria-valuemin":0,"aria-valuenow":D(c)?c:void 0,"aria-valuetext":f,role:"progressbar","data-state":ne(c,n),"data-value":c??void 0,"data-max":n,...l,ref:a})})},"Progress")),Pe="ProgressIndicator",we=ae.forwardRef(m(function(e,a){const{__scopeProgress:o,...i}=e,s=ge(Pe,o);return r.jsx(le.div,{"data-state":ne(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:a})},"ProgressIndicator"));function de(t,e){return`${Math.round(t/e*100)}%`}m(de,"defaultGetValueLabel");function ne(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}m(ne,"getProgressState");function D(t){return typeof t=="number"}m(D,"isNumber");function te(t){return D(t)&&!isNaN(t)&&t>0}m(te,"isValidMaxNumber");function re(t,e){return D(t)&&!isNaN(t)&&t<=e&&t>=0}m(re,"isValidValueNumber");function ue(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${se}\`.`}m(ue,"getInvalidMaxError");function me(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be:
|
|
2
|
-
- a positive number
|
|
3
|
-
- less than the value passed to \`max\` (or ${se} if no \`max\` prop is set)
|
|
4
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
5
|
-
|
|
6
|
-
Defaulting to \`null\`.`}m(me,"getInvalidValueError");var Se=je,Ne=we;function Ee(t){const e=oe.c(12);let a,o,i;e[0]!==t?({className:a,value:i,...o}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=i):(a=e[1],o=e[2],i=e[3]);let s;e[4]!==a?(s=fe("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",a),e[4]=a,e[5]=s):s=e[5];const u=`translateX(-${100-(i??0)}%)`;let l;e[6]!==u?(l=r.jsx(Ne,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:u}}),e[6]=u,e[7]=l):l=e[7];let n;return e[8]!==o||e[9]!==s||e[10]!==l?(n=r.jsx(Se,{"data-slot":"progress",className:s,...o,children:l}),e[8]=o,e[9]=s,e[10]=l,e[11]=n):n=e[11],n}function lt(t){const e=oe.c(77),a=t.account.events_this_month,o=t.account.monthly_event_quota+t.account.additional_events_cap,i=t.account.plan;let s;e[0]!==t.account.monthly_event_quota?(s=d(t.account.monthly_event_quota),e[0]=t.account.monthly_event_quota,e[1]=s):s=e[1];const u=`Plan ${i} · ${s} events per month · ${t.account.retention_days}-day retention`;let l;e[2]!==u?(l=r.jsx(he,{withWindow:!1,title:"Usage",description:u}),e[2]=u,e[3]=l):l=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsx("span",{children:"Account events this month"}),e[4]=n):n=e[4];let c;e[5]!==a?(c=d(a),e[5]=a,e[6]=c):c=e[6];let f;e[7]!==o?(f=d(o),e[7]=o,e[8]=f):f=e[8];let h;e[9]!==c||e[10]!==f?(h=r.jsxs("div",{className:"flex justify-between text-sm",children:[n,r.jsxs("span",{className:"tabular-nums",children:[c," / ",f]})]}),e[9]=c,e[10]=f,e[11]=h):h=e[11];const X=Math.min(100,a/Math.max(1,o)*100);let _;e[12]!==X?(_=r.jsx(Ee,{value:X}),e[12]=X,e[13]=_):_=e[13];let U;e[14]===Symbol.for("react.memo_cache_sentinel")?(U=r.jsx("p",{className:"text-muted-foreground text-xs",children:"Ingest pauses at the quota. Raise it in account settings or lower RAILWATCH_REQUEST_SAMPLE_RATE in the app."}),e[14]=U):U=e[14];let p;e[15]!==h||e[16]!==_?(p=r.jsx(M,{children:r.jsxs(V,{className:"space-y-2 pt-4",children:[h,_,U]})}),e[15]=h,e[16]=_,e[17]=p):p=e[17];let x;e[18]!==t.environment_events?(x=d(t.environment_events),e[18]=t.environment_events,e[19]=x):x=e[19];let y;e[20]!==x?(y=r.jsx(L,{label:"This environment",value:x,hint:"events this month"}),e[20]=x,e[21]=y):y=e[21];let v;e[22]!==t.dropped_by_client?(v=d(t.dropped_by_client),e[22]=t.dropped_by_client,e[23]=v):v=e[23];const Y=t.dropped_by_client?"warning":void 0;let b;e[24]!==v||e[25]!==Y?(b=r.jsx(L,{label:"Dropped by client",value:v,hint:"buffer overflow in the app (30d)",tone:Y}),e[24]=v,e[25]=Y,e[26]=b):b=e[26];let g;e[27]!==t.backpressure_batches?(g=d(t.backpressure_batches),e[27]=t.backpressure_batches,e[28]=g):g=e[28];const Z=`batches sampled down in the app (30d), peak ${t.backpressure_peak}x; raise RAILWATCH_BUFFER_SIZE / RAILWATCH_BUFFER_BYTES or lower sample rates`,J=t.backpressure_batches>0?"warning":void 0;let j;e[29]!==g||e[30]!==Z||e[31]!==J?(j=r.jsx(L,{label:"Under backpressure",value:g,hint:Z,tone:J}),e[29]=g,e[30]=Z,e[31]=J,e[32]=j):j=e[32];let P;e[33]!==t.rejected?(P=d(t.rejected),e[33]=t.rejected,e[34]=P):P=e[34];const ee=t.rejected?"warning":void 0;let w;e[35]!==P||e[36]!==ee?(w=r.jsx(L,{label:"Rejected",value:P,hint:"malformed records (30d)",tone:ee}),e[35]=P,e[36]=ee,e[37]=w):w=e[37];let S;e[38]!==t.db_bytes?(S=ie(t.db_bytes),e[38]=t.db_bytes,e[39]=S):S=e[39];let N;e[40]!==S?(N=r.jsx(L,{label:"Telemetry DB",value:S,hint:"SQLite file on disk"}),e[40]=S,e[41]=N):N=e[41];let E;e[42]!==y||e[43]!==b||e[44]!==j||e[45]!==w||e[46]!==N?(E=r.jsxs(pe,{children:[y,b,j,w,N]}),e[42]=y,e[43]=b,e[44]=j,e[45]=w,e[46]=N,e[47]=E):E=e[47];let q;e[48]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsx(z,{children:r.jsx(Q,{children:"By record type (30d)"})}),e[48]=q):q=e[48];let B;e[49]===Symbol.for("react.memo_cache_sentinel")?(B=[{key:"t",header:"Type",cell:Ue},{key:"n",header:"Events",align:"right",cell:De}],e[49]=B):B=e[49];let R;e[50]!==t.by_type?(R=r.jsxs(M,{children:[q,r.jsx(V,{children:r.jsx(G,{rows:t.by_type,rowKey:qe,columns:B})})]}),e[50]=t.by_type,e[51]=R):R=e[51];let F;e[52]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx(z,{children:r.jsx(Q,{children:"By day (30d)"})}),e[52]=F):F=e[52];let H;e[53]===Symbol.for("react.memo_cache_sentinel")?(H=[{key:"d",header:"Day",cell:Me},{key:"n",header:"Events",align:"right",cell:Le}],e[53]=H):H=e[53];let $;e[54]!==t.by_day?($=r.jsxs(M,{children:[F,r.jsx(V,{children:r.jsx(G,{rows:t.by_day,rowKey:Ve,columns:H})})]}),e[54]=t.by_day,e[55]=$):$=e[55];let k;e[56]!==R||e[57]!==$?(k=r.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[R,$]}),e[56]=R,e[57]=$,e[58]=k):k=e[58];let K;e[59]===Symbol.for("react.memo_cache_sentinel")?(K=r.jsx(z,{children:r.jsx(Q,{children:"Stored payloads"})}),e[59]=K):K=e[59];let I;e[60]!==t.account.retention_days?(I=r.jsxs("p",{className:"text-muted-foreground mb-2 text-xs",children:["Profiles and attachments are the only records that store a blob. Sizes are the uncompressed bytes the app sent; both are pruned with everything else at ",t.account.retention_days," days."]}),e[60]=t.account.retention_days,e[61]=I):I=e[61];let O;e[62]===Symbol.for("react.memo_cache_sentinel")?(O=[{key:"n",header:"Record",cell:Ae},{key:"rows",header:"Rows",align:"right",cell:Te},{key:"b",header:"Size",align:"right",cell:Ie}],e[62]=O):O=e[62];let T;e[63]!==t.payloads?(T=r.jsx(G,{rows:t.payloads,rowKey:Ce,columns:O}),e[63]=t.payloads,e[64]=T):T=e[64];let A;e[65]!==I||e[66]!==T?(A=r.jsxs(M,{children:[K,r.jsxs(V,{children:[I,T]})]}),e[65]=I,e[66]=T,e[67]=A):A=e[67];let C;e[68]!==t.recent_rejections?(C=t.recent_rejections.length>0&&r.jsxs(M,{children:[r.jsx(z,{children:r.jsx(Q,{children:"Recent rejections"})}),r.jsx(V,{children:r.jsx(G,{rows:t.recent_rejections,rowKey:ke,columns:[{key:"t",header:"Type",cell:$e},{key:"r",header:"Reason",cell:Re}]})})]}),e[68]=t.recent_rejections,e[69]=C):C=e[69];let W;return e[70]!==p||e[71]!==E||e[72]!==l||e[73]!==k||e[74]!==A||e[75]!==C?(W=r.jsxs(_e,{title:"Usage",children:[l,p,E,k,A,C]}),e[70]=p,e[71]=E,e[72]=l,e[73]=k,e[74]=A,e[75]=C,e[76]=W):W=e[76],W}function Re(t){return r.jsx("span",{className:"font-mono text-xs",children:t.reason})}function $e(t){return r.jsx("span",{className:"font-mono text-xs",children:t.type})}function ke(t){return`${t.type}-${t.reason}`}function Ie(t){return ie(t.bytes)}function Te(t){return d(t.rows)}function Ae(t){return t.name}function Ce(t){return t.name}function Le(t){return d(t.count)}function Me(t){return t.day}function Ve(t){return t.day}function De(t){const[,e]=t;return d(e)}function Ue(t){const[e]=t;return r.jsx("span",{className:"font-mono text-xs",children:e})}function qe(t){const[e]=t;return e}export{lt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as d,j as s,H as m,F as p,aH as c}from"./inertia-Cuyz2ZHO.js";import{S as u,H as w}from"./layout-Cueyl7c5.js";import{I as t}from"./input-error-hog6gGxg.js";import{B as h}from"./app-wordmark-BA_60AVb.js";import{L as l,I as n}from"./label-DdCBgiUn.js";import{A as f}from"./app-layout-Zc0v-hYh.js";import{K as x}from"./transition-ksDpqhKJ.js";import"./separator-D5I0UCB5.js";import"./index-CBip6V4z.js";import"./live-dot-BZgYTYdt.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";const i=[{title:"Password settings",href:c()}];function L(){const e=d.c(3);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(m,{title:i[i.length-1].title}),e[0]=r):r=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(w,{title:"Update password",description:"Ensure your account is using a long, random password to stay secure"}),e[1]=a):a=e[1];let o;return e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(f,{breadcrumbs:i,children:[r,s.jsx(u,{children:s.jsxs("div",{className:"space-y-6",children:[a,s.jsx(p,{method:"put",action:c(),options:{preserveScroll:!0},resetOnError:!0,resetOnSuccess:!0,className:"space-y-6",children:j})]})})]}),e[2]=o):o=e[2],o}function j(e){const{errors:r,processing:a,recentlySuccessful:o}=e;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(l,{htmlFor:"password_challenge",children:"Current password"}),s.jsx(n,{id:"password_challenge",name:"password_challenge",type:"password",className:"mt-1 block w-full",autoComplete:"current-password",placeholder:"Current password"}),s.jsx(t,{messages:r.password_challenge})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(l,{htmlFor:"password",children:"New password"}),s.jsx(n,{id:"password",name:"password",type:"password",className:"mt-1 block w-full",autoComplete:"new-password",placeholder:"New password"}),s.jsx(t,{messages:r.password})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(l,{htmlFor:"password_confirmation",children:"Confirm password"}),s.jsx(n,{id:"password_confirmation",name:"password_confirmation",type:"password",className:"mt-1 block w-full",autoComplete:"new-password",placeholder:"Confirm password"}),s.jsx(t,{messages:r.password_confirmation})]}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(h,{disabled:a,children:"Save password"}),s.jsx(x,{show:o,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:s.jsx("p",{className:"text-sm text-neutral-600",children:"Saved"})})]})]})}export{L as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as v,u as y,j as e,H as _,aG as f,F as w,L as N,aJ as S}from"./inertia-Cuyz2ZHO.js";import{H as b,S as E}from"./layout-Cueyl7c5.js";import{I as u}from"./input-error-hog6gGxg.js";import{B as F}from"./app-wordmark-BA_60AVb.js";import{L as p,I as h}from"./label-DdCBgiUn.js";import{A as L}from"./app-layout-Zc0v-hYh.js";import{K as k}from"./transition-ksDpqhKJ.js";import"./separator-D5I0UCB5.js";import"./index-CBip6V4z.js";import"./live-dot-BZgYTYdt.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";const c=[{title:"Email settings",href:f()}];function G(){const s=v.c(9),{auth:t}=y().props;let a;s[0]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx(_,{title:c[c.length-1].title}),s[0]=a):a=s[0];let r;s[1]===Symbol.for("react.memo_cache_sentinel")?(r=e.jsx(b,{title:"Update email",description:"Update your email address and verify it"}),s[1]=r):r=s[1];let i,l,o,n;s[2]===Symbol.for("react.memo_cache_sentinel")?(i=f(),l={preserveScroll:!0},o=["password_challenge"],n=["password_challenge"],s[2]=i,s[3]=l,s[4]=o,s[5]=n):(i=s[2],l=s[3],o=s[4],n=s[5]);let m;return s[6]!==t.user.email||s[7]!==t.user.verified?(m=e.jsxs(L,{breadcrumbs:c,children:[a,e.jsx(E,{children:e.jsxs("div",{className:"space-y-6",children:[r,e.jsx(w,{method:"patch",action:i,options:l,resetOnError:o,resetOnSuccess:n,className:"space-y-6",children:x=>{const{errors:d,processing:j,recentlySuccessful:g}=x;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(p,{htmlFor:"email",children:"Email address"}),e.jsx(h,{id:"email",type:"email",name:"email",className:"mt-1 block w-full",defaultValue:t.user.email,required:!0,autoComplete:"username",placeholder:"Email address"}),e.jsx(u,{className:"mt-2",messages:d.email})]}),!t.user.verified&&e.jsx("div",{children:e.jsxs("p",{className:"text-muted-foreground -mt-4 text-sm",children:["Your email address is unverified."," ",e.jsx(N,{href:S(),method:"post",as:"button",className:"text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500",children:"Click here to resend the verification email."})]})}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(p,{htmlFor:"password_challenge",children:"Current password"}),e.jsx(h,{id:"password_challenge",name:"password_challenge",type:"password",className:"mt-1 block w-full",autoComplete:"current-password",placeholder:"Current password"}),e.jsx(u,{messages:d.password_challenge})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(F,{disabled:j,children:"Save"}),e.jsx(k,{show:g,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:e.jsx("p",{className:"text-sm text-neutral-600",children:"Saved"})})]})]})}})]})})]}),s[6]=t.user.email,s[7]=t.user.verified,s[8]=m):m=s[8],m}export{G as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as y,j as a,c as Ce,C as Qe,u as vt,L as qe,G as yt,I as mt,J as kt,K as Nt,i as wt}from"./inertia-Cuyz2ZHO.js";import{D as $e}from"./data-table-CzKTEE-O.js";import{F as Tt}from"./flamegraph-EaGkP2NT.js";import{C as qt,E as Ct}from"./frames-zZuIaNH9.js";import{J as nt}from"./json-viewer-DH2W9HXf.js";import{O as ft}from"./origin-identity-BYt2uiuo.js";import{P as St,E as $t}from"./env-layout-Kz7wks1x.js";import{T as It,S as Et}from"./timeline-CaKQVu48.js";import{S as k,a as Pt}from"./stat-ZtxGU8lE.js";import{S as Ge,L as zt}from"./status-badge-CH5P-Xkj.js";import{B as it}from"./badge-DRae8XwK.js";import{c as At,B as Rt}from"./app-wordmark-BA_60AVb.js";import{C as _,b,c as j,a as v}from"./card-DPjFKfen.js";import{c as Lt,u as Mt,a as rt,P as Dt,C as xt}from"./index-BfbSo01U.js";import{c as ht,u as Ft,d as Ot,I as Vt}from"./app-layout-Zc0v-hYh.js";import{P as He}from"./index-CBip6V4z.js";import{u as Bt}from"./live-dot-BZgYTYdt.js";import{u as gt,C as Kt}from"./use-clipboard-DNefo-ky.js";import{e as Jt}from"./execution-path-FAuIzOXB.js";import{w as Gt,m as h,c as pt,b as _t}from"./format-B9SDkrWj.js";import"./chart-hover-CfoZUY4J.js";import"./empty-state-CW4wclK_.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./source-link-B2183i2-.js";import"./tenant-path-CQoP-BeF.js";import"./use-live-DMTuhKfB.js";import"./arrow-up-CLQ-7heQ.js";import"./checkbox-DPkLUiwM.js";var Qt=Object.defineProperty,Se=(t,e)=>Qt(t,"name",{value:e,configurable:!0}),ot="Tabs",[Ht,ba]=Lt(ot,[ht]),bt=ht(),[Wt,lt]=Ht(ot),Ut=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,onValueChange:r,defaultValue:l,orientation:s="horizontal",dir:n,activationMode:f="automatic",...g}=e,m=Ft(n),[d,x]=Mt({prop:o,onChange:r,defaultProp:l??"",caller:ot});return a.jsx(Wt,{scope:c,baseId:Bt(),value:d,onValueChange:x,orientation:s,dir:m,activationMode:f,children:a.jsx(He.div,{dir:m,"data-orientation":s,...g,ref:i})})},"Tabs")),Xt="TabsList",Yt=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,loop:o=!0,...r}=e,l=lt(Xt,c),s=bt(c);return a.jsx(Ot,{asChild:!0,...s,orientation:l.orientation,dir:l.dir,loop:o,children:a.jsx(He.div,{role:"tablist","aria-orientation":l.orientation,...r,ref:i})})},"TabsList")),Zt="TabsTrigger",es=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,disabled:r=!1,...l}=e,s=lt(Zt,c),n=bt(c),f=ct(s.baseId,o),g=ut(s.baseId,o),m=o===s.value;return a.jsx(Vt,{asChild:!0,...n,focusable:!r,active:m,children:a.jsx(He.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":g,"data-state":m?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:f,...l,ref:i,onMouseDown:rt(e.onMouseDown,d=>{!r&&d.button===0&&d.ctrlKey===!1?s.onValueChange(o):d.preventDefault()}),onKeyDown:rt(e.onKeyDown,d=>{r||d.target!==d.currentTarget||[" ","Enter"].includes(d.key)&&s.onValueChange(o)}),onFocus:rt(e.onFocus,()=>{const d=s.activationMode!=="manual";!m&&!r&&d&&s.onValueChange(o)})})})},"TabsTrigger")),ts="TabsContent",ss=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,forceMount:r,children:l,...s}=e,n=lt(ts,c),f=ct(n.baseId,o),g=ut(n.baseId,o),m=o===n.value,d=y.useRef(m);return y.useEffect(()=>{const x=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(x)},[]),a.jsx(Dt,{present:r||m,children:({present:x})=>a.jsx(He.div,{"data-state":m?"active":"inactive","data-orientation":n.orientation,role:"tabpanel","aria-labelledby":f,hidden:!x,id:g,tabIndex:0,...s,ref:i,style:{...e.style,animationDuration:d.current?"0s":void 0},children:x&&l})})},"TabsContent"));function ct(t,e){return`${t}-trigger-${e}`}Se(ct,"makeTriggerId");function ut(t,e){return`${t}-content-${e}`}Se(ut,"makeContentId");var as=Ut,ns=Yt,rs=es,is=ss;function os(t){const e=Ce.c(10);let i,c,o;e[0]!==t?({className:i,orientation:o,...c}=t,e[0]=t,e[1]=i,e[2]=c,e[3]=o):(i=e[1],c=e[2],o=e[3]);const r=o===void 0?"horizontal":o;let l;e[4]!==i?(l=Qe("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",i),e[4]=i,e[5]=l):l=e[5];let s;return e[6]!==r||e[7]!==c||e[8]!==l?(s=a.jsx(as,{"data-slot":"tabs","data-orientation":r,orientation:r,className:l,...c}),e[6]=r,e[7]=c,e[8]=l,e[9]=s):s=e[9],s}const ls=At("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function cs(t){const e=Ce.c(11);let i,c,o;e[0]!==t?({className:i,variant:o,...c}=t,e[0]=t,e[1]=i,e[2]=c,e[3]=o):(i=e[1],c=e[2],o=e[3]);const r=o===void 0?"default":o;let l;e[4]!==i||e[5]!==r?(l=Qe(ls({variant:r}),i),e[4]=i,e[5]=r,e[6]=l):l=e[6];let s;return e[7]!==c||e[8]!==l||e[9]!==r?(s=a.jsx(ns,{"data-slot":"tabs-list","data-variant":r,className:l,...c}),e[7]=c,e[8]=l,e[9]=r,e[10]=s):s=e[10],s}function Ke(t){const e=Ce.c(8);let i,c;e[0]!==t?({className:i,...c}=t,e[0]=t,e[1]=i,e[2]=c):(i=e[1],c=e[2]);let o;e[3]!==i?(o=Qe("text-foreground/60 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",i),e[3]=i,e[4]=o):o=e[4];let r;return e[5]!==c||e[6]!==o?(r=a.jsx(rs,{"data-slot":"tabs-trigger",className:o,...c}),e[5]=c,e[6]=o,e[7]=r):r=e[7],r}function Je(t){const e=Ce.c(8);let i,c;e[0]!==t?({className:i,...c}=t,e[0]=t,e[1]=i,e[2]=c):(i=e[1],c=e[2]);let o;e[3]!==i?(o=Qe("flex-1 outline-none",i),e[3]=i,e[4]=o):o=e[4];let r;return e[5]!==c||e[6]!==o?(r=a.jsx(is,{"data-slot":"tabs-content",className:o,...c}),e[5]=c,e[6]=o,e[7]=r):r=e[7],r}const us={request:"Request",job_attempt:"Job attempt",scheduled_task:"Scheduled task",command:"Command",channel_action:"Channel action"};function ds(t){const e=Ce.c(8),{value:i}=t,[,c]=gt(),[o,r]=y.useState(!1);let l;e[0]!==c||e[1]!==i?(l=()=>{(async()=>await c(i)&&(r(!0),setTimeout(()=>r(!1),1200)))()},e[0]=c,e[1]=i,e[2]=l):l=e[2];let s;e[3]!==o?(s=o?a.jsx(xt,{className:"size-3"}):a.jsx(Kt,{className:"size-3"}),e[3]=o,e[4]=s):s=e[4];let n;return e[5]!==l||e[6]!==s?(n=a.jsx("button",{type:"button",onClick:l,className:"hover:text-foreground text-muted-foreground ml-1 inline-flex align-middle",title:"Copy",children:s}),e[5]=l,e[6]=s,e[7]=n):n=e[7],n}function ms(t){try{return JSON.parse(String(t))}catch{return String(t)}}function fs(t,e){const i=[];i.push(`# ${e.name}`),i.push(""),i.push(`- status: ${e.status??e.outcome??"-"}`),i.push(`- duration: ${h(e.duration)}`),i.push(`- occurred_at: ${e.occurred_at}`),i.push(""),i.push("## Stages");for(const[o,r]of Object.entries(e.stages))i.push(`- ${o}: ${h(r)}`);i.push(""),i.push("## Counters");for(const[o,r]of Object.entries(e.counters))i.push(`- ${o}: ${r}`);if(t.exceptions.length>0){i.push(""),i.push("## Exceptions");for(const o of t.exceptions){i.push(`### ${o.class_name}: ${o.message}`);for(const r of o.frames.filter(l=>l.in_app))i.push(`- ${r.file}:${r.line} in \`${r.function}\``)}}const c=[...t.queries].sort((o,r)=>r.duration-o.duration).slice(0,5);if(c.length>0){i.push(""),i.push("## Slow queries");for(const o of c)i.push(`- ${h(o.duration,2)} — \`${o.sql}\``)}return i.join(`
|
|
2
|
-
`)}function ja(t){const e=Ce.c(244),{environment:i,range:c,window:o}=vt().props,r=i.application_id,l=i.id,s=t.execution,n=s.detail;let f;e[0]!==n.headers?(f=n.headers??{},e[0]=n.headers,e[1]=f):f=e[1];const g=f,m=n.inertia,[,d]=gt(),[x,dt]=y.useState(!1),jt=s.name,We=us[s.kind]??s.kind;let N;e[2]!==We?(N={title:We,href:"#"},e[2]=We,e[3]=N):N=e[3];let w;e[4]!==s.name?(w={title:s.name,href:"#"},e[4]=s.name,e[5]=w):w=e[5];let T;e[6]!==N||e[7]!==w?(T=[N,w],e[6]=N,e[7]=w,e[8]=T):T=e[8];let q;e[9]!==s.outcome||e[10]!==s.status?(q=a.jsx(Ge,{status:s.status,outcome:s.outcome}),e[9]=s.outcome,e[10]=s.status,e[11]=q):q=e[11];let C;e[12]!==s.name?(C=a.jsx("span",{className:"font-mono",children:s.name}),e[12]=s.name,e[13]=C):C=e[13];let S;e[14]!==s.profiled?(S=s.profiled&&a.jsx(it,{variant:"secondary",className:"font-mono",children:"profiled"}),e[14]=s.profiled,e[15]=S):S=e[15];let $;e[16]!==q||e[17]!==C||e[18]!==S?($=a.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[q,C,S]}),e[16]=q,e[17]=C,e[18]=S,e[19]=$):$=e[19];let I;e[20]!==s.occurred_at?(I=Gt(s.occurred_at),e[20]=s.occurred_at,e[21]=I):I=e[21];let E;e[22]!==I?(E=a.jsx("span",{children:I}),e[22]=I,e[23]=E):E=e[23];let P;e[24]!==s.server?(P=s.server&&a.jsxs("span",{children:["server ",s.server]}),e[24]=s.server,e[25]=P):P=e[25];let z;e[26]!==s.deploy?(z=s.deploy&&a.jsxs("span",{children:["deploy ",s.deploy.slice(0,12)]}),e[26]=s.deploy,e[27]=z):z=e[27];let A;e[28]!==r||e[29]!==l||e[30]!==t.person||e[31]!==c||e[32]!==o||e[33]!==s.tenant||e[34]!==s.user_ref?(A=s.user_ref&&a.jsxs("span",{className:"inline-flex items-center gap-1",children:["origin user",a.jsx(ft,{applicationId:r,environmentId:l,kind:"user",range:c,window:o,user_ref:s.user_ref,tenant:s.tenant,person:t.person&&{ref:t.person.ref,name:t.person.name??t.person.ref}})]}),e[28]=r,e[29]=l,e[30]=t.person,e[31]=c,e[32]=o,e[33]=s.tenant,e[34]=s.user_ref,e[35]=A):A=e[35];let R;e[36]!==r||e[37]!==l||e[38]!==c||e[39]!==o||e[40]!==s.tenant||e[41]!==s.user_ref?(R=s.tenant&&a.jsxs("span",{className:"inline-flex items-center gap-1",children:["origin tenant",a.jsx(ft,{applicationId:r,environmentId:l,kind:"tenant",range:c,window:o,user_ref:s.user_ref,tenant:s.tenant,person:null})]}),e[36]=r,e[37]=l,e[38]=c,e[39]=o,e[40]=s.tenant,e[41]=s.user_ref,e[42]=R):R=e[42];let L;e[43]!==E||e[44]!==P||e[45]!==z||e[46]!==A||e[47]!==R?(L=a.jsxs("span",{className:"flex flex-wrap gap-x-3 text-xs",children:[E,P,z,A,R]}),e[43]=E,e[44]=P,e[45]=z,e[46]=A,e[47]=R,e[48]=L):L=e[48];let M;e[49]!==d||e[50]!==t||e[51]!==s?(M=()=>{(async()=>await d(fs(t,s))&&(dt(!0),setTimeout(()=>dt(!1),1200)))()},e[49]=d,e[50]=t,e[51]=s,e[52]=M):M=e[52];let D;e[53]!==x?(D=x?a.jsx(xt,{className:"size-3.5"}):a.jsx(qt,{className:"size-3.5"}),e[53]=x,e[54]=D):D=e[54];let F;e[55]!==M||e[56]!==D?(F=a.jsxs(Rt,{type:"button",variant:"outline",size:"sm",onClick:M,children:[D,"Copy as Markdown"]}),e[55]=M,e[56]=D,e[57]=F):F=e[57];let O;e[58]!==L||e[59]!==F||e[60]!==$?(O=a.jsx(St,{withWindow:!1,title:$,description:L,actions:F}),e[58]=L,e[59]=F,e[60]=$,e[61]=O):O=e[61];let V;e[62]!==t.issues?(V=t.issues.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2",children:t.issues.map(Bs)}),e[62]=t.issues,e[63]=V):V=e[63];let B;e[64]!==s.duration?(B=h(s.duration),e[64]=s.duration,e[65]=B):B=e[65];let K;e[66]!==s.queue_latency?(K=s.queue_latency!=null?`queued ${h(s.queue_latency)}`:void 0,e[66]=s.queue_latency,e[67]=K):K=e[67];let J;e[68]!==B||e[69]!==K?(J=a.jsx(k,{label:"Duration",value:B,hint:K}),e[68]=B,e[69]=K,e[70]=J):J=e[70];const Ue=s.counters.queries??0,Xe=`${s.counters.cached_queries??0} cached · ${s.counters.hydrated_models??0} models`;let G;e[71]!==Ue||e[72]!==Xe?(G=a.jsx(k,{label:"Queries",value:Ue,hint:Xe}),e[71]=Ue,e[72]=Xe,e[73]=G):G=e[73];let Q;e[74]!==s.queue_time?(Q=s.queue_time!=null&&a.jsx(k,{label:"Queue time",value:h(s.queue_time)}),e[74]=s.queue_time,e[75]=Q):Q=e[75];const Ye=s.counters.cache_events??0;let H;e[76]!==Ye?(H=a.jsx(k,{label:"Cache",value:Ye}),e[76]=Ye,e[77]=H):H=e[77];const Ze=s.counters.outgoing_requests??0,et=`${s.counters.jobs_enqueued??0} jobs enqueued · ${s.counters.mail??0} mail`;let W;e[78]!==Ze||e[79]!==et?(W=a.jsx(k,{label:"Outgoing",value:Ze,hint:et}),e[78]=Ze,e[79]=et,e[80]=W):W=e[80];let U;e[81]!==s.allocations?(U=pt(s.allocations),e[81]=s.allocations,e[82]=U):U=e[82];let X;e[83]!==s.peak_memory?(X=s.peak_memory?`RSS ${_t(s.peak_memory)}`:void 0,e[83]=s.peak_memory,e[84]=X):X=e[84];let Y;e[85]!==U||e[86]!==X?(Y=a.jsx(k,{label:"Allocations",value:U,hint:X}),e[85]=U,e[86]=X,e[87]=Y):Y=e[87];const tt=s.counters.exceptions??0,st=s.counters.exceptions?"destructive":void 0,at=s.counters.lazy_loads?`${s.counters.lazy_loads} lazy loads`:void 0;let Z;e[88]!==tt||e[89]!==st||e[90]!==at?(Z=a.jsx(k,{label:"Exceptions",value:tt,tone:st,hint:at}),e[88]=tt,e[89]=st,e[90]=at,e[91]=Z):Z=e[91];let ee;e[92]!==J||e[93]!==G||e[94]!==Q||e[95]!==H||e[96]!==W||e[97]!==Y||e[98]!==Z?(ee=a.jsxs(Pt,{children:[J,G,Q,H,W,Y,Z]}),e[92]=J,e[93]=G,e[94]=Q,e[95]=H,e[96]=W,e[97]=Y,e[98]=Z,e[99]=ee):ee=e[99];let te;e[100]!==r||e[101]!==l||e[102]!==t.trace||e[103]!==t.trace_url?(te=t.trace.length>1&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsxs(j,{className:"flex flex-wrap items-center justify-between gap-2",children:["Trace",t.trace_url&&a.jsx(qe,{href:t.trace_url,className:"text-primary text-xs font-normal hover:underline",children:"View distributed trace"})]})}),a.jsx(v,{children:a.jsx("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:t.trace.map((u,p)=>{const Te=Math.max(...t.trace.map(Vs),1);return a.jsxs("span",{className:"flex items-center gap-2",children:[p>0&&a.jsx("span",{className:"text-muted-foreground",children:"→"}),a.jsxs(qe,{href:Jt({applicationId:r,environmentId:l,source:u.kind,executionId:u.execution_id}),className:u.current?"bg-muted flex items-center gap-1.5 rounded px-2 py-1 font-semibold":"hover:bg-muted flex items-center gap-1.5 rounded px-2 py-1",children:[a.jsx(Ge,{status:u.status,outcome:u.outcome})," ",a.jsx("span",{className:"font-mono",children:u.name}),a.jsx("span",{className:"bg-muted-foreground/25 relative h-1.5 w-10 overflow-hidden rounded-full",children:a.jsx("span",{className:"bg-primary absolute inset-y-0 left-0 rounded-full",style:{width:`${Math.max(4,u.duration/Te*100)}%`}})}),a.jsx("span",{className:"text-muted-foreground",children:h(u.duration)})]})]},u.execution_id)})})})]}),e[100]=r,e[101]=l,e[102]=t.trace,e[103]=t.trace_url,e[104]=te):te=e[104];let se;if(e[105]!==t.exceptions||e[106]!==t.execution){let u;e[108]!==t.execution?(u=p=>a.jsxs(_,{className:"border-destructive/40",children:[a.jsx(b,{children:a.jsx(j,{children:"Exception"})}),a.jsx(v,{children:a.jsx(Ct,{exception:p,deploy:t.execution.deploy})})]},p.id),e[108]=t.execution,e[109]=u):u=e[109],se=t.exceptions.map(u),e[105]=t.exceptions,e[106]=t.execution,e[107]=se}else se=e[107];let Ie;e[110]===Symbol.for("react.memo_cache_sentinel")?(Ie=a.jsx(b,{children:a.jsx(j,{children:"Timeline"})}),e[110]=Ie):Ie=e[110];let ae;e[111]!==t.timeline||e[112]!==s.duration||e[113]!==s.stages?(ae=a.jsxs(_,{children:[Ie,a.jsx(v,{children:a.jsx(It,{entries:t.timeline,total:s.duration,stages:s.stages})})]}),e[111]=t.timeline,e[112]=s.duration,e[113]=s.stages,e[114]=ae):ae=e[114];let ne;e[115]!==t.spans?(ne=t.spans.length>0&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsx(j,{children:"Spans"})}),a.jsx(v,{children:a.jsx($e,{rows:t.spans,rowKey:Os,columns:[{key:"off",header:"+ms",align:"right",cell:Fs},{key:"name",header:"Span",cell:Ds},{key:"status",header:"Status",cell:Ms},{key:"attrs",header:"Attributes",cell:Rs},{key:"dur",header:"Duration",align:"right",cell:As}]})})]}),e[115]=t.spans,e[116]=ne):ne=e[116];let re;e[117]!==r||e[118]!==l||e[119]!==t.profile?(re=t.profile&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsxs(j,{className:"flex flex-wrap items-center justify-between gap-2",children:["Profile",a.jsx(qe,{href:yt(r,l,t.profile.id),className:"text-primary text-xs font-normal hover:underline",children:"Open full profile"})]})}),a.jsxs(v,{className:"space-y-2",children:[a.jsxs("p",{className:"text-muted-foreground font-mono text-[11px]",children:[t.profile.profiler,t.profile.mode?` · ${t.profile.mode}`:""," ·"," ",pt(t.profile.samples)," samples · ",h(t.profile.duration),t.profile.truncated&&" · truncated for this page"]}),a.jsx(Tt,{collapsed:t.profile.collapsed})]})]}),e[117]=r,e[118]=l,e[119]=t.profile,e[120]=re):re=e[120];let ie;e[121]!==r||e[122]!==l||e[123]!==t.attachments?(ie=t.attachments.length>0&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsx(j,{children:"Attachments"})}),a.jsx(v,{children:a.jsx($e,{rows:t.attachments,rowKey:zs,columns:[{key:"name",header:"Name",className:"max-w-0",cell:Ps},{key:"type",hideOnMobile:!0,header:"Type",cell:Es},{key:"size",header:"Size",align:"right",cell:Is},{key:"links",header:"",align:"right",cell:u=>a.jsxs("span",{className:"flex justify-end gap-3",children:[u.viewable&&a.jsx("a",{className:"text-primary hover:underline",href:mt(r,l,u.id,{view:1}),children:"View"}),a.jsx("a",{className:"text-primary hover:underline",href:mt(r,l,u.id),children:"Download"})]})}]})})]}),e[121]=r,e[122]=l,e[123]=t.attachments,e[124]=ie):ie=e[124];let oe;e[125]!==t.queries.length?(oe=a.jsxs(Ke,{value:"queries",children:["Queries (",t.queries.length,")"]}),e[125]=t.queries.length,e[126]=oe):oe=e[126];let le;e[127]!==t.logs.length?(le=a.jsxs(Ke,{value:"logs",children:["Logs (",t.logs.length,")"]}),e[127]=t.logs.length,e[128]=le):le=e[128];let ce;e[129]!==t.enqueued_jobs.length?(ce=a.jsxs(Ke,{value:"jobs",children:["Enqueued jobs (",t.enqueued_jobs.length,")"]}),e[129]=t.enqueued_jobs.length,e[130]=ce):ce=e[130];let Ee;e[131]===Symbol.for("react.memo_cache_sentinel")?(Ee=a.jsx(Ke,{value:"request",children:"Details"}),e[131]=Ee):Ee=e[131];let ue;e[132]!==oe||e[133]!==le||e[134]!==ce?(ue=a.jsxs(cs,{children:[oe,le,ce,Ee]}),e[132]=oe,e[133]=le,e[134]=ce,e[135]=ue):ue=e[135];let Pe;e[136]===Symbol.for("react.memo_cache_sentinel")?(Pe={key:"off",header:"+ms",align:"right",cell:Ss},e[136]=Pe):Pe=e[136];let de;e[137]!==r||e[138]!==l?(de={key:"sql",header:"SQL",cell:u=>a.jsx(qe,{href:kt(r,l,u.group_hash),children:a.jsx(Et,{sql:u.sql,className:"hover:underline"})})},e[137]=r,e[138]=l,e[139]=de):de=e[139];let ze,Ae,Re;e[140]===Symbol.for("react.memo_cache_sentinel")?(ze={key:"rows",header:"Rows",align:"right",cell:Cs},Ae={key:"src",header:"Source",cell:qs},Re={key:"dur",header:"Duration",align:"right",cell:Ts},e[140]=ze,e[141]=Ae,e[142]=Re):(ze=e[140],Ae=e[141],Re=e[142]);let me;e[143]!==de?(me=[Pe,de,ze,Ae,Re],e[143]=de,e[144]=me):me=e[144];let fe;e[145]!==t.queries||e[146]!==me?(fe=a.jsx(Je,{value:"queries",children:a.jsx($e,{rows:t.queries,rowKey:$s,empty:"No queries.",columns:me})}),e[145]=t.queries,e[146]=me,e[147]=fe):fe=e[147];let Le;e[148]===Symbol.for("react.memo_cache_sentinel")?(Le=[{key:"lvl",header:"Level",cell:Ns},{key:"msg",header:"Message",cell:ks},{key:"tags",header:"Tags",cell:ys},{key:"stage",header:"Stage",cell:vs}],e[148]=Le):Le=e[148];let pe;e[149]!==t.logs?(pe=a.jsx(Je,{value:"logs",children:a.jsx($e,{rows:t.logs,rowKey:ws,empty:"No logs.",columns:Le})}),e[149]=t.logs,e[150]=pe):pe=e[150];let Me,De,Fe;e[151]===Symbol.for("react.memo_cache_sentinel")?(Me={key:"name",header:"Job",cell:bs},De={key:"queue",header:"Queue",cell:_s},Fe={key:"id",header:"Job id",cell:gs},e[151]=Me,e[152]=De,e[153]=Fe):(Me=e[151],De=e[152],Fe=e[153]);let xe;e[154]!==r||e[155]!==l?(xe=[Me,De,Fe,{key:"attempt",header:"Attempt",cell:u=>u.attempt_execution_id?a.jsx(qe,{className:"hover:underline",href:Nt(r,l,u.attempt_execution_id),children:a.jsx(Ge,{outcome:u.attempt_outcome})}):a.jsx("span",{className:"text-muted-foreground text-xs",children:"not seen yet"})}],e[154]=r,e[155]=l,e[156]=xe):xe=e[156];let he;e[157]!==t.enqueued_jobs||e[158]!==xe?(he=a.jsx(Je,{value:"jobs",children:a.jsx($e,{rows:t.enqueued_jobs,rowKey:js,empty:"No jobs enqueued.",columns:xe})}),e[157]=t.enqueued_jobs,e[158]=xe,e[159]=he):he=e[159];let Oe;e[160]===Symbol.for("react.memo_cache_sentinel")?(Oe=a.jsx(b,{children:a.jsx(j,{children:"Execution"})}),e[160]=Oe):Oe=e[160];let ge;if(e[161]!==n.arguments_preview||e[162]!==n.db_runtime||e[163]!==n.format||e[164]!==n.halted_callback||e[165]!==n.ip||e[166]!==n.redirect_to||e[167]!==n.schedule||e[168]!==n.url||e[169]!==n.user_agent||e[170]!==n.view_runtime||e[171]!==s.action||e[172]!==s.attempt||e[173]!==s.controller||e[174]!==s.execution_id||e[175]!==s.inertia_component||e[176]!==s.job_id||e[177]!==s.kind||e[178]!==s.queue||e[179]!==s.route||e[180]!==s.task_key||e[181]!==s.trace_id){const u=s.controller&&`${s.controller}#${s.action}`;let p;e[183]!==n.arguments_preview?(p=Array.isArray(n.arguments_preview)?n.arguments_preview.join(", "):void 0,e[183]=n.arguments_preview,e[184]=p):p=e[184];let Te;e[185]!==n.db_runtime||e[186]!==n.format||e[187]!==n.halted_callback||e[188]!==n.ip||e[189]!==n.redirect_to||e[190]!==n.schedule||e[191]!==n.url||e[192]!==n.user_agent||e[193]!==n.view_runtime||e[194]!==u||e[195]!==p||e[196]!==s.attempt||e[197]!==s.execution_id||e[198]!==s.inertia_component||e[199]!==s.job_id||e[200]!==s.kind||e[201]!==s.queue||e[202]!==s.route||e[203]!==s.task_key||e[204]!==s.trace_id?(Te={kind:s.kind,trace_id:s.trace_id,execution_id:s.execution_id,controller:u,route:s.route,url:n.url,ip:n.ip,format:n.format,queue:s.queue,attempt:s.attempt,job_id:s.job_id,task_key:s.task_key,schedule:n.schedule,inertia_component:s.inertia_component,redirect_to:n.redirect_to,halted_callback:n.halted_callback,view_runtime:n.view_runtime,db_runtime:n.db_runtime,user_agent:n.user_agent,arguments:p},e[185]=n.db_runtime,e[186]=n.format,e[187]=n.halted_callback,e[188]=n.ip,e[189]=n.redirect_to,e[190]=n.schedule,e[191]=n.url,e[192]=n.user_agent,e[193]=n.view_runtime,e[194]=u,e[195]=p,e[196]=s.attempt,e[197]=s.execution_id,e[198]=s.inertia_component,e[199]=s.job_id,e[200]=s.kind,e[201]=s.queue,e[202]=s.route,e[203]=s.task_key,e[204]=s.trace_id,e[205]=Te):Te=e[205],ge=a.jsx("dl",{className:"grid gap-y-1 text-xs sm:grid-cols-[10rem_1fr]",children:Object.entries(Te).filter(hs).map(xs)}),e[161]=n.arguments_preview,e[162]=n.db_runtime,e[163]=n.format,e[164]=n.halted_callback,e[165]=n.ip,e[166]=n.redirect_to,e[167]=n.schedule,e[168]=n.url,e[169]=n.user_agent,e[170]=n.view_runtime,e[171]=s.action,e[172]=s.attempt,e[173]=s.controller,e[174]=s.execution_id,e[175]=s.inertia_component,e[176]=s.job_id,e[177]=s.kind,e[178]=s.queue,e[179]=s.route,e[180]=s.task_key,e[181]=s.trace_id,e[182]=ge}else ge=e[182];let _e;e[206]!==m?(_e=m&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:m})}),e[206]=m,e[207]=_e):_e=e[207];let be;e[208]!==n.context?(be=n.context&&n.context!=="{}"&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:ms(n.context)})}),e[208]=n.context,e[209]=be):be=e[209];let je;e[210]!==ge||e[211]!==_e||e[212]!==be?(je=a.jsxs(_,{children:[Oe,a.jsxs(v,{children:[ge,_e,be]})]}),e[210]=ge,e[211]=_e,e[212]=be,e[213]=je):je=e[213];let Ve;e[214]===Symbol.for("react.memo_cache_sentinel")?(Ve=a.jsx(b,{children:a.jsx(j,{children:"Headers"})}),e[214]=Ve):Ve=e[214];let ve;e[215]!==g?(ve=a.jsx("dl",{className:"grid gap-y-1 text-xs sm:grid-cols-[12rem_1fr]",children:Object.entries(g).map(ps)}),e[215]=g,e[216]=ve):ve=e[216];let ye;e[217]!==n.payload?(ye=n.payload!=null&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:n.payload})}),e[217]=n.payload,e[218]=ye):ye=e[218];let ke;e[219]!==ve||e[220]!==ye?(ke=a.jsxs(_,{children:[Ve,a.jsxs(v,{children:[ve,ye]})]}),e[219]=ve,e[220]=ye,e[221]=ke):ke=e[221];let Ne;e[222]!==je||e[223]!==ke?(Ne=a.jsx(Je,{value:"request",children:a.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[je,ke]})}),e[222]=je,e[223]=ke,e[224]=Ne):Ne=e[224];let we;e[225]!==ue||e[226]!==fe||e[227]!==pe||e[228]!==he||e[229]!==Ne?(we=a.jsxs(os,{defaultValue:"queries",children:[ue,fe,pe,he,Ne]}),e[225]=ue,e[226]=fe,e[227]=pe,e[228]=he,e[229]=Ne,e[230]=we):we=e[230];let Be;return e[231]!==O||e[232]!==V||e[233]!==ee||e[234]!==te||e[235]!==se||e[236]!==ae||e[237]!==ne||e[238]!==re||e[239]!==ie||e[240]!==T||e[241]!==we||e[242]!==s.name?(Be=a.jsxs($t,{title:jt,crumbs:T,children:[O,V,ee,te,se,ae,ne,re,ie,we]}),e[231]=O,e[232]=V,e[233]=ee,e[234]=te,e[235]=se,e[236]=ae,e[237]=ne,e[238]=re,e[239]=ie,e[240]=T,e[241]=we,e[242]=s.name,e[243]=Be):Be=e[243],Be}function ps(t){const[e,i]=t;return a.jsxs("div",{className:"contents",children:[a.jsx("dt",{className:"text-muted-foreground font-mono",children:e}),a.jsx("dd",{className:"font-mono break-all",children:i})]},e)}function xs(t){const[e,i]=t;return a.jsxs("div",{className:"contents",children:[a.jsx("dt",{className:"text-muted-foreground",children:e}),a.jsxs("dd",{className:"font-mono break-all",children:[String(i),(e==="trace_id"||e==="execution_id")&&a.jsx(ds,{value:String(i)})]})]},e)}function hs(t){const[,e]=t;return e!=null&&e!==""}function gs(t){return a.jsx("span",{className:"font-mono text-xs",children:t.job_id})}function _s(t){return t.queue}function bs(t){return a.jsx("span",{className:"font-mono text-xs",children:t.name})}function js(t){return t.id}function vs(t){return a.jsx("span",{className:"text-muted-foreground text-xs",children:t.stage??""})}function ys(t){return t.tags.join(" ")}function ks(t){return a.jsx("span",{className:"font-mono text-xs whitespace-pre-wrap",children:t.message})}function Ns(t){return a.jsx(zt,{level:t.level})}function ws(t){return t.id}function Ts(t){return h(t.duration,2)}function qs(t){return a.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source??""})}function Cs(t){return t.row_count??"–"}function Ss(t){return t.offset.toFixed(1)}function $s(t){return t.id}function Is(t){return _t(t.bytes)}function Es(t){return a.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.content_type??"–"})}function Ps(t){return a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:"truncate font-mono text-xs",children:t.name}),t.truncated&&a.jsx(it,{variant:"secondary",children:"truncated"})]})}function zs(t){return t.id}function As(t){return h(t.duration,2)}function Rs(t){return a.jsx("span",{className:"flex flex-wrap gap-1",children:Object.entries(t.attributes).map(Ls)})}function Ls(t){const[e,i]=t;return a.jsxs("span",{className:"bg-muted rounded-sm px-1.5 font-mono text-[10px]",children:[e,"=",String(i)]},e)}function Ms(t){return a.jsx(Ge,{outcome:t.status})}function Ds(t){return a.jsx("span",{className:"font-mono text-xs",children:t.name})}function Fs(t){return t.offset.toFixed(1)}function Os(t){return t.id}function Vs(t){return t.duration}function Bs(t){return a.jsx(qe,{href:wt(t.id),children:a.jsx(it,{variant:"destructive",className:"font-mono",children:t.key})},t.id)}export{ja as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as R,g as T,j as n,H,e as y,l as S,m as $,L as q,o as I,p as K,q as F,s as G}from"./inertia-Cuyz2ZHO.js";import{D as J}from"./data-table-CzKTEE-O.js";import{O as M}from"./onboarding-CUpZl5KB.js";import{B as D}from"./badge-DRae8XwK.js";import{B as w}from"./app-wordmark-BA_60AVb.js";import{A as Q}from"./app-layout-Zc0v-hYh.js";import{a as U,c as V}from"./format-B9SDkrWj.js";import"./chart-hover-CfoZUY4J.js";import"./empty-state-CW4wclK_.js";import"./copy-block-CGcXxp8J.js";import"./use-clipboard-DNefo-ky.js";import"./index-BfbSo01U.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./card-DPjFKfen.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";function _e(t){const e=R.c(54),i=t.application,B=i.name;let l;e[0]!==i.id?(l=T(i.id),e[0]=i.id,e[1]=l):l=e[1];let a;e[2]!==i.name||e[3]!==l?(a=[{title:B,href:l}],e[2]=i.name,e[3]=l,e[4]=a):a=e[4];let o;e[5]!==i.name?(o=n.jsx(H,{title:i.name}),e[5]=i.name,e[6]=o):o=e[6];let r;e[7]!==i.name?(r=n.jsx("h1",{className:"text-xl font-semibold",children:i.name}),e[7]=i.name,e[8]=r):r=e[8];let m;e[9]!==i.issue_prefix?(m=n.jsx("span",{className:"font-mono",children:i.issue_prefix}),e[9]=i.issue_prefix,e[10]=m):m=e[10];let d;e[11]!==t.issues_open||e[12]!==m?(d=n.jsxs("p",{className:"text-muted-foreground text-sm",children:["Issue prefix ",m," ","· ",t.issues_open," open issues"]}),e[11]=t.issues_open,e[12]=m,e[13]=d):d=e[13];let c;e[14]!==r||e[15]!==d?(c=n.jsxs("div",{children:[r,d]}),e[14]=r,e[15]=d,e[16]=c):c=e[16];let p;e[17]!==i.id?(p=n.jsx(w,{variant:"outline",size:"sm",onClick:()=>y.visit(S(i.id)),children:"Edit"}),e[17]=i.id,e[18]=p):p=e[18];let f;e[19]!==i.id?(f=n.jsx(w,{size:"sm",onClick:()=>y.visit($(i.id)),children:"Add environment"}),e[19]=i.id,e[20]=f):f=e[20];let u;e[21]!==p||e[22]!==f?(u=n.jsxs("div",{className:"flex gap-2",children:[p,f]}),e[21]=p,e[22]=f,e[23]=u):u=e[23];let x;e[24]!==u||e[25]!==c?(x=n.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[c,u]}),e[24]=u,e[25]=c,e[26]=x):x=e[26];let h;e[27]!==t.environments||e[28]!==t.new_token?(h=t.new_token&&(()=>{const s=t.new_token,L=t.environments.find(O=>O.token_prefix===s.slice(0,12));return n.jsx(M,{tokenPrefix:L?.token_prefix??s.slice(0,12),newToken:s})})(),e[27]=t.environments,e[28]=t.new_token,e[29]=h):h=e[29];let v;e[30]!==i.id?(v={key:"n",header:"Environment",cell:s=>n.jsx(q,{className:"font-medium hover:underline",href:I(i.id,s.id),children:s.name})},e[30]=i.id,e[31]=v):v=e[31];let N,E,P,b,A,z;e[32]===Symbol.for("react.memo_cache_sentinel")?(N={key:"tok",header:"Token",cell:te},E={key:"seen",header:"Last event",cell:ee},P={key:"ev",header:"Events (month)",align:"right",cell:Z},b={key:"d",header:"Deploys",align:"right",cell:Y},A={key:"i",header:"Open issues",align:"right",cell:X},z={key:"st",header:"",cell:W},e[32]=N,e[33]=E,e[34]=P,e[35]=b,e[36]=A,e[37]=z):(N=e[32],E=e[33],P=e[34],b=e[35],A=e[36],z=e[37]);let k;e[38]!==i.id?(k={key:"x",header:"",align:"right",cell:s=>n.jsxs("span",{className:"flex justify-end gap-1",children:[n.jsx(w,{size:"sm",variant:"ghost",onClick:()=>y.post(K(i.id,s.id)),children:"Rotate token"}),n.jsx(w,{size:"sm",variant:"ghost",onClick:()=>y.post(F(i.id,s.id)),children:s.paused?"Resume":"Pause"}),n.jsx(w,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>confirm(`Delete ${s.name} and all its telemetry?`)&&y.delete(G(i.id,s.id)),children:"Delete"})]})},e[38]=i.id,e[39]=k):k=e[39];let j;e[40]!==v||e[41]!==k?(j=[v,N,E,P,b,A,z,k],e[40]=v,e[41]=k,e[42]=j):j=e[42];let _;e[43]!==t.environments||e[44]!==j?(_=n.jsx(J,{rows:t.environments,rowKey:ie,columns:j}),e[43]=t.environments,e[44]=j,e[45]=_):_=e[45];let g;e[46]!==x||e[47]!==h||e[48]!==_?(g=n.jsxs("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6",children:[x,h,_]}),e[46]=x,e[47]=h,e[48]=_,e[49]=g):g=e[49];let C;return e[50]!==a||e[51]!==g||e[52]!==o?(C=n.jsxs(Q,{breadcrumbs:a,children:[o,g]}),e[50]=a,e[51]=g,e[52]=o,e[53]=C):C=e[53],C}function W(t){return t.paused?n.jsx(D,{variant:"secondary",children:"paused"}):null}function X(t){return t.open_issues?n.jsx(D,{variant:"destructive",children:t.open_issues}):0}function Y(t){return t.deploys_count}function Z(t){return V(t.events_this_month)}function ee(t){return t.last_seen_at?U(t.last_seen_at):n.jsx("span",{className:"text-muted-foreground",children:"never"})}function te(t){return n.jsxs("span",{className:"font-mono text-xs",children:[t.token_prefix,"…"]})}function ie(t){return t.id}export{_e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as B,u as G,ag as J,j as s,L as K}from"./inertia-Cuyz2ZHO.js";import{F as M}from"./flamegraph-EaGkP2NT.js";import{P as O,E as Q}from"./env-layout-Kz7wks1x.js";import{S as N,a as T}from"./stat-ZtxGU8lE.js";import{C as U,a as V}from"./card-DPjFKfen.js";import{e as X}from"./execution-path-FAuIzOXB.js";import{w as Y,c as Z,m as A,b as ee}from"./format-B9SDkrWj.js";import"./data-table-CzKTEE-O.js";import"./chart-hover-CfoZUY4J.js";import"./empty-state-CW4wclK_.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./index-CBip6V4z.js";import"./app-wordmark-BA_60AVb.js";import"./badge-DRae8XwK.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";import"./use-live-DMTuhKfB.js";import"./arrow-up-CLQ-7heQ.js";function Pe(i){const e=B.c(71),{environment:z,window:I}=G().props,l=z.application_id,r=z.id,t=i.profile,L=t.execution_preview??"Profile";let o;e[0]!==l||e[1]!==r||e[2]!==I?(o=J(l,r,{window:I}),e[0]=l,e[1]=r,e[2]=I,e[3]=o):o=e[3];let a;e[4]!==o?(a={title:"Profiles",href:o},e[4]=o,e[5]=a):a=e[5];const F=t.execution_preview??`Profile ${t.id}`;let n;e[6]!==F?(n={title:F,href:"#"},e[6]=F,e[7]=n):n=e[7];let c;e[8]!==a||e[9]!==n?(c=[a,n],e[8]=a,e[9]=n,e[10]=c):c=e[10];const R=t.execution_preview??`Profile ${t.id}`;let p;e[11]!==R?(p=s.jsx("span",{className:"font-mono",children:R}),e[11]=R,e[12]=p):p=e[12];let d;e[13]!==t.occurred_at?(d=Y(t.occurred_at),e[13]=t.occurred_at,e[14]=d):d=e[14];let f;e[15]!==d?(f=s.jsx("span",{children:d}),e[15]=d,e[16]=f):f=e[16];const D=t.mode?` · ${t.mode}`:"";let m;e[17]!==D||e[18]!==t.profiler?(m=s.jsxs("span",{children:[t.profiler,D]}),e[17]=D,e[18]=t.profiler,e[19]=m):m=e[19];let u;e[20]!==t.server?(u=t.server&&s.jsxs("span",{children:["server ",t.server]}),e[20]=t.server,e[21]=u):u=e[21];let x;e[22]!==t.deploy?(x=t.deploy&&s.jsxs("span",{children:["deploy ",t.deploy.slice(0,12)]}),e[22]=t.deploy,e[23]=x):x=e[23];let v;e[24]!==l||e[25]!==r||e[26]!==t.execution_id||e[27]!==t.execution_source?(v=t.execution_id&&s.jsx(K,{className:"hover:underline",href:X({applicationId:l,environmentId:r,source:t.execution_source,executionId:t.execution_id}),children:"view execution"}),e[24]=l,e[25]=r,e[26]=t.execution_id,e[27]=t.execution_source,e[28]=v):v=e[28];let h;e[29]!==m||e[30]!==u||e[31]!==x||e[32]!==v||e[33]!==f?(h=s.jsxs("span",{className:"flex flex-wrap gap-x-3 text-xs",children:[f,m,u,x,v]}),e[29]=m,e[30]=u,e[31]=x,e[32]=v,e[33]=f,e[34]=h):h=e[34];let j;e[35]!==h||e[36]!==p?(j=s.jsx(O,{withWindow:!1,title:p,description:h}),e[35]=h,e[36]=p,e[37]=j):j=e[37];let _;e[38]!==t.samples?(_=Z(t.samples),e[38]=t.samples,e[39]=_):_=e[39];let w;e[40]!==_?(w=s.jsx(N,{label:"Samples",value:_}),e[40]=_,e[41]=w):w=e[41];let y;e[42]!==t.duration?(y=A(t.duration),e[42]=t.duration,e[43]=y):y=e[43];let P;e[44]!==t.interval?(P=t.interval?`every ${A(t.interval/1e3,2)}`:void 0,e[44]=t.interval,e[45]=P):P=e[45];let b;e[46]!==y||e[47]!==P?(b=s.jsx(N,{label:"Duration",value:y,hint:P}),e[46]=y,e[47]=P,e[48]=b):b=e[48];const H=t.mode??void 0;let S;e[49]!==H||e[50]!==t.profiler?(S=s.jsx(N,{label:"Profiler",value:t.profiler,hint:H}),e[49]=H,e[50]=t.profiler,e[51]=S):S=e[51];let g;e[52]!==t.stacks_bytes?(g=ee(t.stacks_bytes),e[52]=t.stacks_bytes,e[53]=g):g=e[53];const W=i.truncated?"truncated for display":"uncompressed",q=i.truncated?"warning":void 0;let k;e[54]!==g||e[55]!==W||e[56]!==q?(k=s.jsx(N,{label:"Stacks",value:g,hint:W,tone:q}),e[54]=g,e[55]=W,e[56]=q,e[57]=k):k=e[57];let E;e[58]!==w||e[59]!==b||e[60]!==S||e[61]!==k?(E=s.jsxs(T,{children:[w,b,S,k]}),e[58]=w,e[59]=b,e[60]=S,e[61]=k,e[62]=E):E=e[62];let $;e[63]!==i.collapsed?($=s.jsx(U,{children:s.jsx(V,{className:"pt-4",children:s.jsx(M,{collapsed:i.collapsed})})}),e[63]=i.collapsed,e[64]=$):$=e[64];let C;return e[65]!==L||e[66]!==j||e[67]!==E||e[68]!==$||e[69]!==c?(C=s.jsxs(Q,{title:L,crumbs:c,children:[j,E,$]}),e[65]=L,e[66]=j,e[67]=E,e[68]=$,e[69]=c,e[70]=C):C=e[70],C}export{Pe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Oe,u as Ce,j as s,L as be,a1 as Re,i as $e}from"./inertia-Cuyz2ZHO.js";import{C as qe}from"./chart-hover-CfoZUY4J.js";import{V as ye,D as Ne}from"./chart-panel-CC49WTQL.js";import{D as he}from"./data-table-CzKTEE-O.js";import{E as ge}from"./empty-state-CW4wclK_.js";import{O as Pe}from"./onboarding-CUpZl5KB.js";import{u as De,P as Ee,E as Le}from"./env-layout-Kz7wks1x.js";import{R as Me}from"./relative-time-D5UbF4oO.js";import{S as Te}from"./sparkline-cell-Dwg7awwh.js";import{S as D,a as Ke}from"./stat-ZtxGU8lE.js";import{I as Ie}from"./status-badge-CH5P-Xkj.js";import{C as fe,a as pe,b as _e,c as xe}from"./card-DPjFKfen.js";import{c as E,p as ve,m as Z,a as ke}from"./format-B9SDkrWj.js";import{crashFreeTone as Ae,rate as He}from"./release-health-uP-GF3_V.js";import{O as Be,r as Fe}from"./app-layout-Zc0v-hYh.js";import"./series-chart-gnrzhmM6.js";import"./chart-DWh7l8yM.js";import"./copy-block-CGcXxp8J.js";import"./app-wordmark-BA_60AVb.js";import"./use-clipboard-DNefo-ky.js";import"./index-BfbSo01U.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./badge-DRae8XwK.js";import"./use-live-DMTuhKfB.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./arrow-up-CLQ-7heQ.js";import"./checkbox-DPkLUiwM.js";function Tt(t){const e=Oe.c(109),{environment:o}=Ce().props,{window:we,label:Se}=De(),ee=o.application_id,te=o.id,r=t.totals.requests.current,i=t.totals.requests.previous,l=t.totals.jobs.current,se=t.totals.jobs.previous,n=we==="custom"?"vs previous period":`vs previous ${Se}`;let L;e[0]===Symbol.for("react.memo_cache_sentinel")?(L=[{title:"Overview",href:"#"}],e[0]=L):L=e[0];const re=`${o.application_name} · ${o.name}`;let a;e[1]!==o.last_seen_at?(a=o.last_seen_at?s.jsxs(s.Fragment,{children:["Last event ",s.jsx(Me,{iso:o.last_seen_at})]}):"No events received yet.",e[1]=o.last_seen_at,e[2]=a):a=e[2];let c;e[3]!==re||e[4]!==a?(c=s.jsx(Ee,{title:re,description:a}),e[3]=re,e[4]=a,e[5]=c):c=e[5];let u;e[6]!==o.last_seen_at||e[7]!==o.token_prefix?(u=!o.last_seen_at&&s.jsx(Pe,{tokenPrefix:o.token_prefix}),e[6]=o.last_seen_at,e[7]=o.token_prefix,e[8]=u):u=e[8];let m;e[9]!==r.count?(m={value:r.count,format:E},e[9]=r.count,e[10]=m):m=e[10];let M;e[11]!==r.count||e[12]!==r.errors?(M=ve(r.errors,r.count),e[11]=r.count,e[12]=r.errors,e[13]=M):M=e[13];let T;e[14]!==r.client_errors||e[15]!==r.count?(T=ve(r.client_errors,r.count),e[14]=r.client_errors,e[15]=r.count,e[16]=T):T=e[16];const oe=`${M} 5xx · ${T} 4xx`,le=r.errors>0?"warning":void 0;let d;e[17]!==r.count||e[18]!==i.count?(d={current:r.count,previous:i.count,goodDirection:"up"},e[17]=r.count,e[18]=i.count,e[19]=d):d=e[19];let h;e[20]!==n||e[21]!==d||e[22]!==m||e[23]!==oe||e[24]!==le?(h=s.jsx(D,{label:"Requests",roll:m,hint:oe,tone:le,delta:d,deltaCaption:n}),e[20]=n,e[21]=d,e[22]=m,e[23]=oe,e[24]=le,e[25]=h):h=e[25];const ne=r.p95/1e3;let f;e[26]!==ne?(f=Z(ne),e[26]=ne,e[27]=f):f=e[27];const ie=r.avg/1e3;let K;e[28]!==ie?(K=Z(ie),e[28]=ie,e[29]=K):K=e[29];const ae=r.max/1e3;let I;e[30]!==ae?(I=Z(ae),e[30]=ae,e[31]=I):I=e[31];const ce=`avg ${K} · max ${I}`;let p;e[32]!==r.p95||e[33]!==i.p95?(p={current:r.p95,previous:i.p95,goodDirection:"down"},e[32]=r.p95,e[33]=i.p95,e[34]=p):p=e[34];let _;e[35]!==n||e[36]!==f||e[37]!==ce||e[38]!==p?(_=s.jsx(D,{label:"Request p95",value:f,hint:ce,delta:p,deltaCaption:n}),e[35]=n,e[36]=f,e[37]=ce,e[38]=p,e[39]=_):_=e[39];let x;e[40]!==l.count?(x={value:l.count,format:E},e[40]=l.count,e[41]=x):x=e[41];let A;e[42]!==l.count||e[43]!==l.errors?(A=ve(l.errors,l.count),e[42]=l.count,e[43]=l.errors,e[44]=A):A=e[44];const ue=`${A} failed`,me=l.errors>0?"warning":void 0;let v;e[45]!==l.count||e[46]!==se.count?(v={current:l.count,previous:se.count,goodDirection:"up"},e[45]=l.count,e[46]=se.count,e[47]=v):v=e[47];let j;e[48]!==n||e[49]!==x||e[50]!==ue||e[51]!==me||e[52]!==v?(j=s.jsx(D,{label:"Job attempts",roll:x,hint:ue,tone:me,delta:v,deltaCaption:n}),e[48]=n,e[49]=x,e[50]=ue,e[51]=me,e[52]=v,e[53]=j):j=e[53];const de=t.issues.length?"destructive":"success";let y;e[54]!==t.issues.length||e[55]!==de?(y=s.jsx(D,{label:"Open issues",value:t.issues.length,tone:de}),e[54]=t.issues.length,e[55]=de,e[56]=y):y=e[56];let g;e[57]!==t.release_health?(g=t.release_health&&s.jsx(D,{label:"Crash-free sessions",value:He(t.release_health.crash_free_sessions),tone:Ae(t.release_health.crash_free_sessions),hint:`${t.release_health.ref} · ${E(t.release_health.sessions)} sessions`}),e[57]=t.release_health,e[58]=g):g=e[58];let b;e[59]!==h||e[60]!==_||e[61]!==j||e[62]!==y||e[63]!==g?(b=s.jsxs(Ke,{children:[h,_,j,y,g]}),e[59]=h,e[60]=_,e[61]=j,e[62]=y,e[63]=g,e[64]=b):b=e[64];let k;e[65]!==t.deploys||e[66]!==t.request_series?(k=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[s.jsx(ye,{label:"Requests",data:t.request_series,deploys:t.deploys}),s.jsx(Ne,{label:"Request latency",data:t.request_series,deploys:t.deploys})]}),e[65]=t.deploys,e[66]=t.request_series,e[67]=k):k=e[67];let H;e[68]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(_e,{children:s.jsx(xe,{children:"Slowest routes (p95)"})}),e[68]=H):H=e[68];let w;e[69]!==ee||e[70]!==te?(w={key:"name",header:"Route",grow:!0,cell:je=>s.jsx(be,{className:"font-mono text-xs hover:underline",href:Re(ee,te,je.group_hash),children:je.name})},e[69]=ee,e[70]=te,e[71]=w):w=e[71];let B,F,J,V;e[72]===Symbol.for("react.memo_cache_sentinel")?(B={key:"trend",hideOnMobile:!0,header:"Trend",cell:lt},F={key:"count",header:"Count",align:"right",cell:ot},J={key:"p95",header:"p95",align:"right",cell:rt},V={key:"errors",hideOnMobile:!0,header:"5xx",align:"right",cell:st},e[72]=B,e[73]=F,e[74]=J,e[75]=V):(B=e[72],F=e[73],J=e[74],V=e[75]);let S;e[76]!==w?(S=[w,B,F,J,V],e[76]=w,e[77]=S):S=e[77];let O;e[78]!==t.slow_routes||e[79]!==S?(O=s.jsxs(fe,{children:[H,s.jsx(pe,{children:s.jsx(he,{rows:t.slow_routes,rowKey:it,hoverKey:nt,columns:S})})]}),e[78]=t.slow_routes,e[79]=S,e[80]=O):O=e[80];let W;e[81]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(_e,{children:s.jsx(xe,{children:"Open issues"})}),e[81]=W):W=e[81];let z,G;e[82]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(ge,{icon:Be,title:"No open issues",description:"Issues are grouped from repeated request, job, and exception errors."}),G=[{key:"key",header:"Issue",cell:et},{key:"title",header:"Title",cell:Ze},{key:"status",hideOnMobile:!0,header:"",cell:Ye},{key:"n",hideOnMobile:!0,header:"Count",align:"right",cell:Xe},{key:"last",header:"Last",align:"right",cell:Ue}],e[82]=z,e[83]=G):(z=e[82],G=e[83]);let C;e[84]!==t.issues?(C=s.jsxs(fe,{children:[W,s.jsx(pe,{children:s.jsx(he,{rows:t.issues,rowKey:tt,empty:z,columns:G})})]}),e[84]=t.issues,e[85]=C):C=e[85];let R;e[86]!==O||e[87]!==C?(R=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[O,C]}),e[86]=O,e[87]=C,e[88]=R):R=e[88];let $;e[89]!==t.deploys||e[90]!==t.job_series?($=s.jsx(ye,{label:"Jobs",legend:"job",seriesLabel:"Attempts",data:t.job_series,deploys:t.deploys}),e[89]=t.deploys,e[90]=t.job_series,e[91]=$):$=e[91];let Q;e[92]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(_e,{children:s.jsx(xe,{children:"Servers"})}),e[92]=Q):Q=e[92];let q;e[93]!==t.processes?(q=Object.entries(t.processes),e[93]=t.processes,e[94]=q):q=e[94];let U,X;e[95]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(ge,{icon:Fe,title:"No process has reported yet",description:"Server processes report here once they boot with the gem installed."}),X=[{key:"server",header:"Server",cell:Ge},{key:"role",header:"Role",cell:ze},{key:"deploy",header:"Deploy",cell:We},{key:"ver",hideOnMobile:!0,header:"Ruby / Rails",cell:Ve},{key:"boot",hideOnMobile:!0,header:"Booted",align:"right",cell:Je}],e[95]=U,e[96]=X):(U=e[95],X=e[96]);let N;e[97]!==q?(N=s.jsxs(fe,{children:[Q,s.jsx(pe,{children:s.jsx(he,{rows:q,rowKey:Qe,empty:U,columns:X})})]}),e[97]=q,e[98]=N):N=e[98];let P;e[99]!==$||e[100]!==N?(P=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[$,N]}),e[99]=$,e[100]=N,e[101]=P):P=e[101];let Y;return e[102]!==c||e[103]!==b||e[104]!==k||e[105]!==u||e[106]!==R||e[107]!==P?(Y=s.jsx(Le,{title:"Overview",crumbs:L,children:s.jsxs(qe,{children:[c,u,b,k,R,P]})}),e[102]=c,e[103]=b,e[104]=k,e[105]=u,e[106]=R,e[107]=P,e[108]=Y):Y=e[108],Y}function Je(t){const[,e]=t;return ke(e.booted_at)}function Ve(t){const[,e]=t;return`${e.ruby_version} / ${e.rails_version}`}function We(t){const[,e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e.deploy?.slice(0,10)})}function ze(t){const[,e]=t;return e.role}function Ge(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e})}function Qe(t){const[e]=t;return e}function Ue(t){return ke(t.last_seen_at)}function Xe(t){return E(t.occurrences)}function Ye(t){return s.jsx(Ie,{status:t.status})}function Ze(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function et(t){return s.jsx(be,{className:"font-mono text-xs hover:underline",href:$e(t.id),children:t.key})}function tt(t){return t.id}function st(t){return t.errors}function rt(t){return Z(t.p95)}function ot(t){return E(t.count)}function lt(t){return s.jsx(Te,{data:t.sparkline,hoverKey:t.group_hash})}function nt(t){return t.group_hash}function it(t){return t.group_hash}export{Tt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,u as U,ap as W,j as t,L as K,y as Y,i as F}from"./inertia-Cuyz2ZHO.js";import{C as G}from"./chart-panel-CC49WTQL.js";import{D as z}from"./data-table-CzKTEE-O.js";import{E as A}from"./empty-state-CW4wclK_.js";import{P as J,E as Q}from"./env-layout-Kz7wks1x.js";import{b as V}from"./series-chart-gnrzhmM6.js";import{I as X}from"./status-badge-CH5P-Xkj.js";import{B as Z}from"./app-wordmark-BA_60AVb.js";import{C as M,a as T,b as q,c as B}from"./card-DPjFKfen.js";import{w as ee,c as R,m as se,a as te}from"./format-B9SDkrWj.js";import{ReleaseHealthStrip as re}from"./release-health-uP-GF3_V.js";import{Y as ie,O as le}from"./app-layout-Zc0v-hYh.js";import"./chart-hover-CfoZUY4J.js";import"./badge-DRae8XwK.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./chart-DWh7l8yM.js";import"./stat-ZtxGU8lE.js";import"./arrow-up-CLQ-7heQ.js";import"./checkbox-DPkLUiwM.js";function H(s){const e=L.c(6),{rows:o,empty:l}=s;let r;e[0]!==l?(r=t.jsx(A,{icon:le,...l}),e[0]=l,e[1]=r):r=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=[{key:"k",header:"Issue",cell:ne},{key:"t",header:"Title",cell:ae},{key:"s",header:"",cell:oe}],e[2]=i):i=e[2];let a;return e[3]!==o||e[4]!==r?(a=t.jsx(z,{rows:o,rowKey:me,empty:r,columns:i}),e[3]=o,e[4]=r,e[5]=a):a=e[5],a}function oe(s){return t.jsx(X,{status:s.status})}function ae(s){return t.jsx("span",{className:"line-clamp-1 text-xs",children:s.title})}function ne(s){return t.jsx(K,{className:"font-mono text-xs hover:underline",href:F(s.id),children:s.key})}function me(s){return s.id}function Ue(s){const e=L.c(58),{environment:o,window:l}=U().props,r=o.application_id,i=o.id,a=s.release.ref;let n;e[0]!==r||e[1]!==i||e[2]!==l?(n=W(r,i,{window:l}),e[0]=r,e[1]=i,e[2]=l,e[3]=n):n=e[3];let m;e[4]!==n?(m={title:"Releases",href:n},e[4]=n,e[5]=m):m=e[5];let c;e[6]!==s.release.ref?(c={title:s.release.ref,href:"#"},e[6]=s.release.ref,e[7]=c):c=e[7];let d;e[8]!==m||e[9]!==c?(d=[m,c],e[8]=m,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==s.release.deploy?(u=t.jsx("span",{className:"font-mono",children:s.release.deploy}),e[11]=s.release.deploy,e[12]=u):u=e[12];let g;e[13]!==s.release.deployed_at?(g=s.release.deployed_at?ee(s.release.deployed_at):"never deployed",e[13]=s.release.deployed_at,e[14]=g):g=e[14];const O=`${g}${s.release.name?` · ${s.release.name}`:""}${s.release.previous_ref?` · after ${s.release.previous_ref}`:""}`;let f;e[15]!==r||e[16]!==i||e[17]!==s.release.deploy_id?(f=s.release.deploy_id&&t.jsx(Z,{asChild:!0,variant:"outline",size:"sm",children:t.jsx(K,{href:Y(r,i,s.release.deploy_id),children:"Deploy"})}),e[15]=r,e[16]=i,e[17]=s.release.deploy_id,e[18]=f):f=e[18];let h;e[19]!==u||e[20]!==O||e[21]!==f?(h=t.jsx(J,{withWindow:!1,title:u,description:O,actions:f}),e[19]=u,e[20]=O,e[21]=f,e[22]=h):h=e[22];const D=s.release.previous_ref?`vs ${s.release.previous_ref}`:void 0;let y;e[23]!==s.previous_summary||e[24]!==s.summary||e[25]!==D?(y=t.jsx(re,{health:s.summary,previous:s.previous_summary,deltaCaption:D}),e[23]=s.previous_summary,e[24]=s.summary,e[25]=D,e[26]=y):y=e[26];let p;e[27]!==s.summary.sessions?(p=R(s.summary.sessions),e[27]=s.summary.sessions,e[28]=p):p=e[28];let x;e[29]!==s.series?(x=t.jsx(V,{data:s.series}),e[29]=s.series,e[30]=x):x=e[30];let _;e[31]!==p||e[32]!==x?(_=t.jsx(G,{label:"Sessions by status",value:p,children:x}),e[31]=p,e[32]=x,e[33]=_):_=e[33];let S;e[34]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(q,{children:t.jsx(B,{children:"Issues first seen in this release"})}),e[34]=S):S=e[34];let k;e[35]===Symbol.for("react.memo_cache_sentinel")?(k={title:"No new issues in this release",description:"Issues first seen while this release was live would show here."},e[35]=k):k=e[35];let j;e[36]!==s.new_issues?(j=t.jsxs(M,{children:[S,t.jsx(T,{children:t.jsx(H,{rows:s.new_issues,empty:k})})]}),e[36]=s.new_issues,e[37]=j):j=e[37];let N;e[38]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(q,{children:t.jsx(B,{children:"Issues resolved in this release"})}),e[38]=N):N=e[38];let C;e[39]===Symbol.for("react.memo_cache_sentinel")?(C={title:"No issues marked resolved in this release",description:"Issues resolved and tagged with this deploy would show here."},e[39]=C):C=e[39];let v;e[40]!==s.resolved_issues?(v=t.jsxs(M,{children:[N,t.jsx(T,{children:t.jsx(H,{rows:s.resolved_issues,empty:C})})]}),e[40]=s.resolved_issues,e[41]=v):v=e[41];let w;e[42]!==j||e[43]!==v?(w=t.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[j,v]}),e[42]=j,e[43]=v,e[44]=w):w=e[44];let $;e[45]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx("h2",{className:"text-sm font-semibold",children:"Sessions"}),e[45]=$):$=e[45];let E,I;e[46]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(A,{icon:ie,title:"No sessions reported for this release",description:"Sessions come from the browser client and the gem's request middleware; config.track_sessions turns both off."}),I=[{key:"id",header:"Session",cell:xe},{key:"source",hideOnMobile:!0,header:"Source",cell:pe},{key:"status",header:"Status",cell:ye},{key:"user",hideOnMobile:!0,header:"User",cell:he},{key:"duration",header:"Duration",align:"right",cell:fe},{key:"activity",hideOnMobile:!0,header:"Requests / visits",align:"right",cell:ue},{key:"errors",hideOnMobile:!0,header:"Errors",align:"right",cell:de},{key:"started",header:"Started",align:"right",cell:ce}],e[46]=E,e[47]=I):(E=e[46],I=e[47]);let b;e[48]!==s.sessions?(b=t.jsx(z,{rows:s.sessions,rowKey:je,rowClassName:_e,empty:E,columns:I}),e[48]=s.sessions,e[49]=b):b=e[49];let P;return e[50]!==s.release.ref||e[51]!==y||e[52]!==_||e[53]!==w||e[54]!==b||e[55]!==d||e[56]!==h?(P=t.jsxs(Q,{title:a,crumbs:d,children:[h,y,_,w,$,b]}),e[50]=s.release.ref,e[51]=y,e[52]=_,e[53]=w,e[54]=b,e[55]=d,e[56]=h,e[57]=P):P=e[57],P}function ce(s){return te(s.started_at)}function de(s){return t.jsx("span",{className:s.errors?"text-destructive":"",children:R(s.errors)})}function ue(s){return`${R(s.requests)} / ${R(s.visits)}`}function fe(s){return se(s.duration)}function he(s){return t.jsx("span",{className:"font-mono text-xs",children:s.user_ref})}function ye(s){return t.jsx("span",{className:s.status==="crashed"?"text-destructive text-xs font-semibold":"text-xs",children:s.status})}function pe(s){return t.jsx("span",{className:"text-xs",children:s.source})}function xe(s){return t.jsx("span",{className:"font-mono text-xs",children:s.session_id})}function _e(s){return s.status==="crashed"?"bg-destructive/5":void 0}function je(s){return s.id}export{Ue as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as g,u as v,an as P,j as s,e as C,t as E,L as N,i as S}from"./inertia-Cuyz2ZHO.js";import{D as y}from"./data-table-CzKTEE-O.js";import{P as $,E as b}from"./env-layout-Kz7wks1x.js";import{I,S as R}from"./status-badge-CH5P-Xkj.js";import{C as D,b as H,c as K,a as L}from"./card-DPjFKfen.js";import{a as w,w as T,m as B}from"./format-B9SDkrWj.js";import"./chart-hover-CfoZUY4J.js";import"./empty-state-CW4wclK_.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";import"./use-live-DMTuhKfB.js";import"./segmented-BeIe4uqk.js";function xe(t){const e=g.c(31),{environment:j,window:_}=v().props,r=j.application_id,i=j.id,n=t.person?.name??t.person_ref;let o;e[0]!==r||e[1]!==i||e[2]!==_?(o=P(r,i,{window:_}),e[0]=r,e[1]=i,e[2]=_,e[3]=o):o=e[3];let a;e[4]!==o?(a={title:"Users",href:o},e[4]=o,e[5]=a):a=e[5];let l;e[6]!==n?(l={title:n,href:"#"},e[6]=n,e[7]=l):l=e[7];let c;e[8]!==a||e[9]!==l?(c=[a,l],e[8]=a,e[9]=l,e[10]=c):c=e[10];let u;e[11]!==t.person?(u=t.person?`${t.person.email??""} ${t.person.tenant?`· tenant ${t.person.tenant}`:""} · first seen ${w(t.person.first_seen_at)} · last seen ${w(t.person.last_seen_at)}`:"Not yet identified.",e[11]=t.person,e[12]=u):u=e[12];let m;e[13]!==n||e[14]!==u?(m=s.jsx($,{title:n,description:u}),e[13]=n,e[14]=u,e[15]=m):m=e[15];let d;e[16]!==t.issues?(d=t.issues.length>0&&s.jsxs(D,{children:[s.jsx(H,{children:s.jsx(K,{children:"Issues affecting this user"})}),s.jsx(L,{children:s.jsx(y,{rows:t.issues,rowKey:V,columns:[{key:"k",header:"Issue",cell:Q},{key:"t",header:"Title",cell:O},{key:"s",header:"",cell:M},{key:"n",header:"Hits",align:"right",cell:J}]})})]}),e[16]=t.issues,e[17]=d):d=e[17];let p;e[18]!==r||e[19]!==i?(p=k=>k.execution_id&&C.visit(E(r,i,k.execution_id)),e[18]=r,e[19]=i,e[20]=p):p=e[20];let x;e[21]===Symbol.for("react.memo_cache_sentinel")?(x=[{key:"when",header:"When",cell:F},{key:"k",header:"Kind",cell:A},{key:"n",header:"Name",cell:z},{key:"st",header:"Status",cell:W},{key:"d",header:"Duration",align:"right",cell:U},{key:"ex",header:"Exception",cell:q}],e[21]=x):x=e[21];let f;e[22]!==t.executions||e[23]!==p?(f=s.jsx(y,{rows:t.executions,rowKey:G,onRowClick:p,columns:x}),e[22]=t.executions,e[23]=p,e[24]=f):f=e[24];let h;return e[25]!==n||e[26]!==c||e[27]!==m||e[28]!==d||e[29]!==f?(h=s.jsxs(b,{title:n,crumbs:c,children:[m,d,f]}),e[25]=n,e[26]=c,e[27]=m,e[28]=d,e[29]=f,e[30]=h):h=e[30],h}function q(t){return s.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function U(t){return B(t.duration)}function W(t){return s.jsx(R,{status:t.status,outcome:t.outcome})}function z(t){return s.jsx("span",{className:"font-mono text-xs",children:t.name})}function A(t){return t.kind}function F(t){return s.jsx("span",{className:"text-xs",children:T(t.occurred_at)})}function G(t){return t.execution_id}function J(t){return t.count}function M(t){return s.jsx(I,{status:t.status})}function O(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function Q(t){return s.jsx(N,{className:"font-mono text-xs hover:underline",href:S(t.id),children:t.key})}function V(t){return t.id}export{xe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as se,u as ne,af as re,j as s,L as oe,t as ie}from"./inertia-Cuyz2ZHO.js";import{V as ae,D as le}from"./chart-panel-CC49WTQL.js";import{D as Z}from"./data-table-CzKTEE-O.js";import{E as ee}from"./empty-state-CW4wclK_.js";import{P as ce,E as me}from"./env-layout-Kz7wks1x.js";import{S as T,a as ue}from"./stat-ZtxGU8lE.js";import{S as de}from"./status-badge-CH5P-Xkj.js";import{C as pe,a as fe,b as xe,c as he}from"./card-DPjFKfen.js";import{c as Y,m as P,w as je}from"./format-B9SDkrWj.js";import{B as te}from"./braces-rSYydpLY.js";import"./series-chart-gnrzhmM6.js";import"./chart-hover-CfoZUY4J.js";import"./chart-DWh7l8yM.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";import"./use-live-DMTuhKfB.js";import"./segmented-BeIe4uqk.js";import"./arrow-up-CLQ-7heQ.js";function ge(t){const e=se.c(5),{attributes:i}=t;let a;e[0]!==i?(a=Object.entries(i),e[0]=i,e[1]=a):a=e[1];const r=a;if(r.length===0){let n;return e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("span",{className:"text-muted-foreground text-xs",children:"–"}),e[2]=n):n=e[2],n}let o;return e[3]!==r?(o=s.jsx("span",{className:"flex flex-wrap gap-1",children:r.map(ye)}),e[3]=r,e[4]=o):o=e[4],o}function ye(t){const[e,i]=t;return s.jsxs("span",{className:"bg-muted rounded-sm px-1.5 font-mono text-[10px]",children:[e,"=",String(i)]},e)}function et(t){const e=se.c(73),{environment:i,window:a}=ne().props,r=i.application_id,o=i.id,n=t.summary.current,V=t.name??"Span";let l;e[0]!==r||e[1]!==o||e[2]!==a?(l=re(r,o,{window:a}),e[0]=r,e[1]=o,e[2]=a,e[3]=l):l=e[3];let c;e[4]!==l?(c={title:"Spans",href:l},e[4]=l,e[5]=c):c=e[5];const W=t.name??"Span";let m;e[6]!==W?(m={title:W,href:"#"},e[6]=W,e[7]=m):m=e[7];let u;e[8]!==c||e[9]!==m?(u=[c,m],e[8]=c,e[9]=m,e[10]=u):u=e[10];const q=t.name??"Span";let d;e[11]!==q?(d=s.jsx(ce,{title:s.jsx("span",{className:"font-mono",children:q}),description:"Every recording of this span in the window."}),e[11]=q,e[12]=d):d=e[12];let p;e[13]!==n.count?(p=Y(n.count),e[13]=n.count,e[14]=p):p=e[14];let f;e[15]!==n.count||e[16]!==t.summary.previous.count?(f={current:n.count,previous:t.summary.previous.count,goodDirection:"up"},e[15]=n.count,e[16]=t.summary.previous.count,e[17]=f):f=e[17];let x;e[18]!==p||e[19]!==f?(x=s.jsx(T,{label:"Recorded",value:p,delta:f,deltaCaption:"vs previous period"}),e[18]=p,e[19]=f,e[20]=x):x=e[20];let h;e[21]!==n.errors?(h=Y(n.errors),e[21]=n.errors,e[22]=h):h=e[22];const F=n.errors?"destructive":void 0;let j;e[23]!==h||e[24]!==F?(j=s.jsx(T,{label:"Failed",value:h,tone:F}),e[23]=h,e[24]=F,e[25]=j):j=e[25];const I=n.p95/1e3;let g;e[26]!==I?(g=P(I,2),e[26]=I,e[27]=g):g=e[27];const z=n.p99/1e3;let C;e[28]!==z?(C=P(z,2),e[28]=z,e[29]=C):C=e[29];const G=`p99 ${C}`;let y;e[30]!==g||e[31]!==G?(y=s.jsx(T,{label:"p95",value:g,hint:G}),e[30]=g,e[31]=G,e[32]=y):y=e[32];const J=n.max/1e3;let b;e[33]!==J?(b=P(J,2),e[33]=J,e[34]=b):b=e[34];const Q=n.avg/1e3;let D;e[35]!==Q?(D=P(Q,2),e[35]=Q,e[36]=D):D=e[36];const U=`avg ${D}`;let v;e[37]!==b||e[38]!==U?(v=s.jsx(T,{label:"Max",value:b,hint:U}),e[37]=b,e[38]=U,e[39]=v):v=e[39];let _;e[40]!==x||e[41]!==j||e[42]!==y||e[43]!==v?(_=s.jsxs(ue,{children:[x,j,y,v]}),e[40]=x,e[41]=j,e[42]=y,e[43]=v,e[44]=_):_=e[44];let S;e[45]!==t.series?(S=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[s.jsx(ae,{legend:"outcome",label:"Recordings",seriesLabel:"Spans",data:t.series}),s.jsx(le,{label:"Duration",data:t.series})]}),e[45]=t.series,e[46]=S):S=e[46];let R;e[47]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(xe,{children:s.jsx(he,{children:"Attributes"})}),e[47]=R):R=e[47];let L,M;e[48]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(ee,{icon:te,title:"No attributes recorded",description:"Pass a hash to Railwatch.span to tag each recording."}),M=[{key:"k",header:"Key",cell:Pe},{key:"v",header:"Most common values",cell:ke},{key:"n",header:"Spans",align:"right",cell:Ne}],e[48]=L,e[49]=M):(L=e[48],M=e[49]);let w;e[50]!==t.facets?(w=s.jsxs(pe,{children:[R,s.jsx(fe,{children:s.jsx(Z,{rows:t.facets,rowKey:Ce,empty:L,columns:M})})]}),e[50]=t.facets,e[51]=w):w=e[51];let $,A,B;e[52]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ee,{icon:te,title:"No recordings in this window",description:"Widen the time window to see older recordings of this span."}),A={key:"when",header:"When",cell:Se},B={key:"status",header:"Status",cell:_e},e[52]=$,e[53]=A,e[54]=B):($=e[52],A=e[53],B=e[54]);let N;e[55]!==r||e[56]!==o?(N={key:"in",hideOnMobile:!0,header:"In",cell:X=>X.execution_id?s.jsx(oe,{className:"font-mono text-xs hover:underline",href:ie(r,o,X.execution_id),children:X.execution_preview}):s.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})},e[55]=r,e[56]=o,e[57]=N):N=e[57];let K,O;e[58]===Symbol.for("react.memo_cache_sentinel")?(K={key:"attrs",hideOnMobile:!0,header:"Attributes",cell:ve},O={key:"d",header:"Duration",align:"right",cell:be},e[58]=K,e[59]=O):(K=e[58],O=e[59]);let k;e[60]!==N?(k=[A,B,N,K,O],e[60]=N,e[61]=k):k=e[61];let E;e[62]!==t.samples||e[63]!==k?(E=s.jsx(Z,{rows:t.samples,rowKey:we,empty:$,columns:k}),e[62]=t.samples,e[63]=k,e[64]=E):E=e[64];let H;return e[65]!==V||e[66]!==_||e[67]!==S||e[68]!==w||e[69]!==E||e[70]!==u||e[71]!==d?(H=s.jsxs(me,{title:V,crumbs:u,children:[d,_,S,w,E]}),e[65]=V,e[66]=_,e[67]=S,e[68]=w,e[69]=E,e[70]=u,e[71]=d,e[72]=H):H=e[72],H}function be(t){return P(t.duration,2)}function ve(t){return s.jsx(ge,{attributes:t.attributes})}function _e(t){return s.jsx(de,{outcome:t.status})}function Se(t){return s.jsx("span",{className:"text-xs",children:je(t.occurred_at)})}function we(t){return t.id}function Ne(t){return Y(t.count)}function ke(t){return s.jsx("span",{className:"flex flex-wrap gap-1",children:t.values.map(Ee)})}function Ee(t){const[e,i]=t;return s.jsxs("span",{className:"bg-muted rounded-sm px-1.5 font-mono text-[10px]",children:[e,s.jsxs("span",{className:"text-muted-foreground",children:[" ×",i]})]},e)}function Pe(t){return s.jsx("span",{className:"font-mono text-xs",children:t.key})}function Ce(t){return t.key}export{et as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,u as P,j as i,C as N,L as C}from"./inertia-Cuyz2ZHO.js";import{C as I}from"./copy-id-vBYHQwxg.js";import{E as R}from"./empty-state-CW4wclK_.js";import{P as q,E as K}from"./env-layout-Kz7wks1x.js";import{a as B,S as w}from"./stat-ZtxGU8lE.js";import{K as H}from"./status-badge-CH5P-Xkj.js";import{e as W}from"./execution-path-FAuIzOXB.js";import{c as E,m as L,s as T}from"./format-B9SDkrWj.js";import"./app-wordmark-BA_60AVb.js";import"./use-clipboard-DNefo-ky.js";import"./index-BfbSo01U.js";import"./badge-DRae8XwK.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";import"./use-live-DMTuhKfB.js";import"./segmented-BeIe4uqk.js";import"./arrow-up-CLQ-7heQ.js";const A={request:"REQ",job_attempt:"JOB",scheduled_task:"TASK",command:"CMD",outgoing_request:"HTTP"};function M(t,e,s,h=0){return t.flatMap(p=>{const r=p.execution;return[{key:r.execution_id,depth:h,kind:r.kind,label:r.name,server:r.server,offset:r.offset,duration:r.duration,href:W({applicationId:e,environmentId:s,source:r.kind,executionId:r.execution_id}),failed:T(r.status,r.outcome)==="destructive"},...r.outgoing.map(a=>({key:`o-${a.id}`,depth:h+1,kind:"outgoing_request",label:`${a.method??""} ${a.url}`.trim(),server:null,offset:a.offset,duration:a.duration??0,href:null,failed:T(a.status_code)==="destructive"})),...M(p.children,e,s,h+1)]})}function D(t){const e=$.c(33),{row:s,scale:h}=t,p=`${s.depth*.75}rem`;let r;e[0]!==p?(r={paddingLeft:p},e[0]=p,e[1]=r):r=e[1];const a=s.failed?"destructive":"muted",g=A[s.kind]??s.kind;let l;e[2]!==a||e[3]!==g?(l=i.jsx(H,{tone:a,children:g}),e[2]=a,e[3]=g,e[4]=l):l=e[4];let o;e[5]!==s.label?(o=i.jsx("span",{className:"truncate font-mono",children:s.label}),e[5]=s.label,e[6]=o):o=e[6];let n;e[7]!==s.server?(n=s.server&&i.jsx("span",{className:"text-muted-foreground hidden shrink-0 font-mono text-[10px] sm:inline",children:s.server}),e[7]=s.server,e[8]=n):n=e[8];let c;e[9]!==r||e[10]!==l||e[11]!==o||e[12]!==n?(c=i.jsxs("span",{className:"col-start-1 row-start-1 flex min-w-0 items-center gap-1.5",style:r,children:[l,o,n]}),e[9]=r,e[10]=l,e[11]=o,e[12]=n,e[13]=c):c=e[13];let d;e[14]!==s.duration?(d=L(s.duration),e[14]=s.duration,e[15]=d):d=e[15];let f;e[16]!==d?(f=i.jsx("span",{className:"col-start-2 row-start-1 text-right font-mono tabular-nums md:col-start-3",children:d}),e[16]=d,e[17]=f):f=e[17];const j=s.failed?"bg-danger":s.href?"bg-primary":"bg-ok";let b;e[18]!==j?(b=N("block h-full rounded",j),e[18]=j,e[19]=b):b=e[19];const y=`${Math.min(99,s.offset/h*100)}%`,k=`${Math.max(.5,s.duration/h*100)}%`;let m;e[20]!==y||e[21]!==k?(m={marginLeft:y,width:k},e[20]=y,e[21]=k,e[22]=m):m=e[22];let u;e[23]!==b||e[24]!==m?(u=i.jsx("span",{className:"bg-muted/30 col-span-2 col-start-1 row-start-2 h-2 rounded md:col-span-1 md:col-start-2 md:row-start-1 md:h-3",children:i.jsx("span",{className:b,style:m})}),e[23]=b,e[24]=m,e[25]=u):u=e[25];let v;e[26]!==f||e[27]!==u||e[28]!==c?(v=i.jsxs(i.Fragment,{children:[c,f,u]}),e[26]=f,e[27]=u,e[28]=c,e[29]=v):v=e[29];const x=v;let _;return e[30]!==x||e[31]!==s.href?(_=s.href?i.jsx(C,{href:s.href,className:N("grid grid-cols-[1fr_4rem] items-center gap-x-2 gap-y-1 border-b px-2 py-1.5 text-xs last:border-b-0 md:grid-cols-[minmax(0,18rem)_1fr_4rem]","hover:bg-muted/40"),children:x}):i.jsx("div",{className:N("grid grid-cols-[1fr_4rem] items-center gap-x-2 gap-y-1 border-b px-2 py-1.5 text-xs last:border-b-0 md:grid-cols-[minmax(0,18rem)_1fr_4rem]","text-muted-foreground"),children:x}),e[30]=x,e[31]=s.href,e[32]=_):_=e[32],_}function me(t){const e=$.c(38),{environment:s}=P().props,h=s.application_id,p=s.id;let r,a,g,l,o,n,c;if(e[0]!==h||e[1]!==p||e[2]!==t.duration||e[3]!==t.roots||e[4]!==t.services||e[5]!==t.span_count||e[6]!==t.trace_id){const j=M(t.roots,h,p),b=j.filter(J),y=b.filter(F).length,k=Math.max(t.duration,1);r=K,l="Trace",e[14]===Symbol.for("react.memo_cache_sentinel")?(o=[{title:"Trace",href:"#"}],e[14]=o):o=e[14],e[15]!==t.trace_id?(n=i.jsx(q,{withWindow:!1,title:i.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[i.jsx("span",{className:"truncate font-mono text-base md:text-xl",children:t.trace_id}),i.jsx(I,{value:t.trace_id,label:""})]}),description:"Every execution that shares this trace id, nested by the call that started it."}),e[15]=t.trace_id,e[16]=n):n=e[16];let m;e[17]!==t.services.length?(m=E(t.services.length),e[17]=t.services.length,e[18]=m):m=e[18];let u;e[19]!==t.services?(u=t.services.join(" · "),e[19]=t.services,e[20]=u):u=e[20];let v;e[21]!==m||e[22]!==u?(v=i.jsx(w,{label:"Services",value:m,hint:u}),e[21]=m,e[22]=u,e[23]=v):v=e[23];let x;e[24]!==t.duration?(x=L(t.duration),e[24]=t.duration,e[25]=x):x=e[25];let _;e[26]!==x?(_=i.jsx(w,{label:"Total duration",value:x}),e[26]=x,e[27]=_):_=e[27],c=i.jsxs(B,{children:[i.jsx(w,{label:"Executions",value:E(b.length),hint:`${t.span_count} spans`}),v,_,i.jsx(w,{label:"Errors",value:E(y),tone:y?"destructive":void 0})]}),a="bg-card -mx-3 overflow-hidden border-y md:mx-0 md:rounded-lg md:border",g=j.length===0?i.jsx(R,{title:"Nothing in this trace",description:"No execution reported this trace id."}):j.map(S=>i.jsx(D,{row:S,scale:k},S.key)),e[0]=h,e[1]=p,e[2]=t.duration,e[3]=t.roots,e[4]=t.services,e[5]=t.span_count,e[6]=t.trace_id,e[7]=r,e[8]=a,e[9]=g,e[10]=l,e[11]=o,e[12]=n,e[13]=c}else r=e[7],a=e[8],g=e[9],l=e[10],o=e[11],n=e[12],c=e[13];let d;e[28]!==a||e[29]!==g?(d=i.jsx("div",{className:a,children:g}),e[28]=a,e[29]=g,e[30]=d):d=e[30];let f;return e[31]!==r||e[32]!==l||e[33]!==o||e[34]!==n||e[35]!==c||e[36]!==d?(f=i.jsxs(r,{title:l,crumbs:o,children:[n,c,d]}),e[31]=r,e[32]=l,e[33]=o,e[34]=n,e[35]=c,e[36]=d,e[37]=f):f=e[37],f}function F(t){return t.failed}function J(t){return t.href!==null}export{me as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Ge,u as Le,z as ze,j as s,L as Oe,i as Pe}from"./inertia-Cuyz2ZHO.js";import{D as ke}from"./data-table-CzKTEE-O.js";import{E as Se}from"./empty-state-CW4wclK_.js";import{P as Be,E as Ke}from"./env-layout-Kz7wks1x.js";import{R as Ue}from"./relative-time-D5UbF4oO.js";import{S as ae,a as Ae}from"./stat-ZtxGU8lE.js";import{I as We}from"./status-badge-CH5P-Xkj.js";import{B as Je}from"./app-wordmark-BA_60AVb.js";import{C as Ee,a as He,b as Me,c as Ie}from"./card-DPjFKfen.js";import{w as Qe,m as Te,p as ce,c as De}from"./format-B9SDkrWj.js";import{c as Ve,a as Xe}from"./source-link-B2183i2-.js";import{ReleaseHealthStrip as Ye}from"./release-health-uP-GF3_V.js";import{G as Ze,O as Fe}from"./app-layout-Zc0v-hYh.js";import"./chart-hover-CfoZUY4J.js";import"./badge-DRae8XwK.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./arrow-up-CLQ-7heQ.js";import"./checkbox-DPkLUiwM.js";function fe(t,e){if(!t)return null;const l=(e-t)/t*100;return s.jsxs("span",{className:l>10?"text-destructive":l<-10?"text-emerald-600":"text-muted-foreground",children:[l>0?"+":"",l.toFixed(0),"%"]})}function Tt(t){const e=Ge.c(132),{environment:l}=Le().props,me=l.application_id,de=l.id,r=t.compare.request,o=t.compare.job_attempt,i=l.repository_url;let z;e[0]!==t.deploy.previous_ref||e[1]!==t.deploy.repository_ref||e[2]!==i?(z=Ve(i,t.deploy.previous_ref,t.deploy.repository_ref),e[0]=t.deploy.previous_ref,e[1]=t.deploy.repository_ref,e[2]=i,e[3]=z):z=e[3];const B=z,ue=i?.includes("gitlab")?"GitLab":"GitHub",qe=t.deploy.ref;let n;e[4]!==me||e[5]!==de?(n=ze(me,de),e[4]=me,e[5]=de,e[6]=n):n=e[6];let a;e[7]!==n?(a={title:"Deploys",href:n},e[7]=n,e[8]=a):a=e[8];let c;e[9]!==t.deploy.ref?(c={title:t.deploy.ref,href:"#"},e[9]=t.deploy.ref,e[10]=c):c=e[10];let f;e[11]!==a||e[12]!==c?(f=[a,c],e[11]=a,e[12]=c,e[13]=f):f=e[13];let m;e[14]!==t.deploy.deploy?(m=s.jsx("span",{className:"font-mono",children:t.deploy.deploy}),e[14]=t.deploy.deploy,e[15]=m):m=e[15];let K;e[16]!==t.deploy.deployed_at?(K=Qe(t.deploy.deployed_at),e[16]=t.deploy.deployed_at,e[17]=K):K=e[17];const he=`${K}${t.deploy.name?` · ${t.deploy.name}`:""}${t.deploy.url?" · ":""}`;let d;e[18]!==t.deploy.url?(d=t.deploy.url&&s.jsx("a",{className:"text-sm underline",href:t.deploy.url,target:"_blank",rel:"noreferrer",children:"Open"}),e[18]=t.deploy.url,e[19]=d):d=e[19];let u;e[20]!==m||e[21]!==he||e[22]!==d?(u=s.jsx(Be,{withWindow:!1,title:m,description:he,actions:d}),e[20]=m,e[21]=he,e[22]=d,e[23]=u):u=e[23];let h;e[24]!==t.deploy.previous_ref?(h=t.deploy.previous_ref&&s.jsxs("span",{className:"text-muted-foreground ml-2 font-mono text-xs font-normal",children:["since ",t.deploy.previous_ref.slice(0,7)]}),e[24]=t.deploy.previous_ref,e[25]=h):h=e[25];let p;e[26]!==h?(p=s.jsxs("h2",{className:"text-sm font-semibold",children:["Changes",h]}),e[26]=h,e[27]=p):p=e[27];let x;e[28]!==ue||e[29]!==B?(x=B&&s.jsx(Je,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:B,target:"_blank",rel:"noreferrer",children:["Compare on ",ue]})}),e[28]=ue,e[29]=B,e[30]=x):x=e[30];let y;e[31]!==p||e[32]!==x?(y=s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[p,x]}),e[31]=p,e[32]=x,e[33]=y):y=e[33];let U;e[34]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(Se,{icon:Ze,title:"No commits recorded",description:"The post-deploy hook sends the commits in each deploy. Reinstall it with bin/rails generate railwatch:install."}),e[34]=U):U=e[34];let b;e[35]!==i?(b={key:"sha",header:"Commit",cell:Ce=>{const Re=Xe(i,Ce.sha),$e=Ce.sha.slice(0,7);return Re?s.jsx("a",{className:"font-mono text-xs hover:underline",href:Re,target:"_blank",rel:"noreferrer",children:$e}):s.jsx("span",{className:"font-mono text-xs",children:$e})}},e[35]=i,e[36]=b):b=e[36];let A,W,J;e[37]===Symbol.for("react.memo_cache_sentinel")?(A={key:"m",header:"Message",cell:ct},W={key:"a",hideOnMobile:!0,header:"Author",cell:at},J={key:"at",hideOnMobile:!0,header:"When",align:"right",cell:nt},e[37]=A,e[38]=W,e[39]=J):(A=e[37],W=e[38],J=e[39]);let j;e[40]!==b?(j=[b,A,W,J],e[40]=b,e[41]=j):j=e[41];let _;e[42]!==t.deploy.commits||e[43]!==j?(_=s.jsx(ke,{rows:t.deploy.commits,rowKey:ft,empty:U,columns:j}),e[42]=t.deploy.commits,e[43]=j,e[44]=_):_=e[44];let Q;e[45]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx("h2",{className:"text-sm font-semibold",children:"Release health"}),e[45]=Q):Q=e[45];let v;e[46]!==t.health?(v=s.jsx(Ye,{health:t.health}),e[46]=t.health,e[47]=v):v=e[47];let V;e[48]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx("h2",{className:"text-sm font-semibold",children:"Hour before vs hour after"}),e[48]=V):V=e[48];const pe=r.after.p95/1e3;let w;e[49]!==pe?(w=Te(pe),e[49]=pe,e[50]=w):w=e[50];let g;e[51]!==r.after.p95||e[52]!==r.before.p95?(g=fe(r.before.p95,r.after.p95),e[51]=r.after.p95,e[52]=r.before.p95,e[53]=g):g=e[53];let N;e[54]!==w||e[55]!==g?(N=s.jsxs(s.Fragment,{children:[w," ",g]}),e[54]=w,e[55]=g,e[56]=N):N=e[56];const xe=r.before.p95/1e3;let X;e[57]!==xe?(X=Te(xe),e[57]=xe,e[58]=X):X=e[58];const ye=`was ${X}`;let k;e[59]!==N||e[60]!==ye?(k=s.jsx(ae,{label:"Request p95",value:N,hint:ye}),e[59]=N,e[60]=ye,e[61]=k):k=e[61];let S;e[62]!==r.after.count||e[63]!==r.after.errors?(S=ce(r.after.errors,r.after.count),e[62]=r.after.count,e[63]=r.after.errors,e[64]=S):S=e[64];const be=r.before.errors/Math.max(1,r.before.count),je=r.after.errors/Math.max(1,r.after.count);let C;e[65]!==be||e[66]!==je?(C=fe(be,je),e[65]=be,e[66]=je,e[67]=C):C=e[67];let R;e[68]!==S||e[69]!==C?(R=s.jsxs(s.Fragment,{children:[S," ",C]}),e[68]=S,e[69]=C,e[70]=R):R=e[70];let Y;e[71]!==r.before.count||e[72]!==r.before.errors?(Y=ce(r.before.errors,r.before.count),e[71]=r.before.count,e[72]=r.before.errors,e[73]=Y):Y=e[73];const _e=`was ${Y}`;let $;e[74]!==R||e[75]!==_e?($=s.jsx(ae,{label:"Request error rate",value:R,hint:_e}),e[74]=R,e[75]=_e,e[76]=$):$=e[76];let E;e[77]!==r.after.count?(E=De(r.after.count),e[77]=r.after.count,e[78]=E):E=e[78];let H;e[79]!==r.after.count||e[80]!==r.before.count?(H=fe(r.before.count,r.after.count),e[79]=r.after.count,e[80]=r.before.count,e[81]=H):H=e[81];let M;e[82]!==E||e[83]!==H?(M=s.jsxs(s.Fragment,{children:[E," ",H]}),e[82]=E,e[83]=H,e[84]=M):M=e[84];let Z;e[85]!==r.before.count?(Z=De(r.before.count),e[85]=r.before.count,e[86]=Z):Z=e[86];const ve=`was ${Z}`;let I;e[87]!==M||e[88]!==ve?(I=s.jsx(ae,{label:"Requests",value:M,hint:ve}),e[87]=M,e[88]=ve,e[89]=I):I=e[89];let T;e[90]!==o.after.count||e[91]!==o.after.errors?(T=ce(o.after.errors,o.after.count),e[90]=o.after.count,e[91]=o.after.errors,e[92]=T):T=e[92];const we=o.before.errors/Math.max(1,o.before.count),ge=o.after.errors/Math.max(1,o.after.count);let D;e[93]!==we||e[94]!==ge?(D=fe(we,ge),e[93]=we,e[94]=ge,e[95]=D):D=e[95];let F;e[96]!==T||e[97]!==D?(F=s.jsxs(s.Fragment,{children:[T," ",D]}),e[96]=T,e[97]=D,e[98]=F):F=e[98];let ee;e[99]!==o.before.count||e[100]!==o.before.errors?(ee=ce(o.before.errors,o.before.count),e[99]=o.before.count,e[100]=o.before.errors,e[101]=ee):ee=e[101];const Ne=`was ${ee}`;let O;e[102]!==F||e[103]!==Ne?(O=s.jsx(ae,{label:"Job failures",value:F,hint:Ne}),e[102]=F,e[103]=Ne,e[104]=O):O=e[104];let P;e[105]!==k||e[106]!==$||e[107]!==I||e[108]!==O?(P=s.jsxs(Ae,{children:[k,$,I,O]}),e[105]=k,e[106]=$,e[107]=I,e[108]=O,e[109]=P):P=e[109];let te;e[110]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(Me,{children:s.jsx(Ie,{children:"New issues after this deploy"})}),e[110]=te):te=e[110];let se,re;e[111]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(Se,{icon:Fe,title:"No new issues in the 24 hours after",description:"Issues first seen after this deploy would show here."}),re=[{key:"k",header:"Issue",cell:lt},{key:"t",header:"Title",cell:ot},{key:"s",header:"",cell:rt}],e[111]=se,e[112]=re):(se=e[111],re=e[112]);let q;e[113]!==t.new_issues?(q=s.jsxs(Ee,{children:[te,s.jsx(He,{children:s.jsx(ke,{rows:t.new_issues,rowKey:it,empty:se,columns:re})})]}),e[113]=t.new_issues,e[114]=q):q=e[114];let oe;e[115]===Symbol.for("react.memo_cache_sentinel")?(oe=s.jsx(Me,{children:s.jsx(Ie,{children:"Resolved in this deploy"})}),e[115]=oe):oe=e[115];let le,ie;e[116]===Symbol.for("react.memo_cache_sentinel")?(le=s.jsx(Se,{icon:Fe,title:"No issues marked resolved in this deploy",description:"Issues resolved and tagged with this deploy's ref would show here."}),ie=[{key:"k",header:"Issue",cell:tt},{key:"t",header:"Title",cell:et}],e[116]=le,e[117]=ie):(le=e[116],ie=e[117]);let G;e[118]!==t.resolved_issues?(G=s.jsxs(Ee,{children:[oe,s.jsx(He,{children:s.jsx(ke,{rows:t.resolved_issues,rowKey:st,empty:le,columns:ie})})]}),e[118]=t.resolved_issues,e[119]=G):G=e[119];let L;e[120]!==q||e[121]!==G?(L=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[q,G]}),e[120]=q,e[121]=G,e[122]=L):L=e[122];let ne;return e[123]!==t.deploy.ref||e[124]!==u||e[125]!==y||e[126]!==_||e[127]!==v||e[128]!==f||e[129]!==P||e[130]!==L?(ne=s.jsxs(Ke,{title:qe,crumbs:f,children:[u,y,_,Q,v,V,P,L]}),e[123]=t.deploy.ref,e[124]=u,e[125]=y,e[126]=_,e[127]=v,e[128]=f,e[129]=P,e[130]=L,e[131]=ne):ne=e[131],ne}function et(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function tt(t){return s.jsx(Oe,{className:"font-mono text-xs hover:underline",href:Pe(t.id),children:t.key})}function st(t){return t.id}function rt(t){return s.jsx(We,{status:t.status})}function ot(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function lt(t){return s.jsx(Oe,{className:"font-mono text-xs hover:underline",href:Pe(t.id),children:t.key})}function it(t){return t.id}function nt(t){return s.jsx(Ue,{className:"text-xs",iso:t.at})}function at(t){return s.jsx("span",{className:"text-xs",children:t.author})}function ct(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.message})}function ft(t){return t.sha}export{Tt as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as L,r as z,j as s,aW as B,F as $,u as V,H as J,a2 as H,aX as M,e as I,aY as W}from"./inertia-Cuyz2ZHO.js";import{G as q}from"./google-sign-in-button-2_zgbgVy.js";import{H as E,S as U}from"./layout-Cueyl7c5.js";import{I as g}from"./input-error-hog6gGxg.js";import{B as S}from"./app-wordmark-BA_60AVb.js";import{v as K,D as Y,a as Z,s as X,w as Q,c as ee,b as se}from"./live-dot-BZgYTYdt.js";import{L as N,I as D}from"./label-DdCBgiUn.js";import{C as R}from"./copy-block-CGcXxp8J.js";import{A as te}from"./app-layout-Zc0v-hYh.js";import{K as re}from"./transition-ksDpqhKJ.js";import"./separator-D5I0UCB5.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./use-clipboard-DNefo-ky.js";import"./checkbox-DPkLUiwM.js";function ae(t){const e=L.c(22),{blockingAccounts:r,provider:a,recentlyAuthenticated:o,email:n}=t,w=z.useRef(null);let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(E,{title:"Delete user",description:"Delete your login and personal settings. Shared account data stays with its remaining owners."}),e[0]=j):j=e[0];let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"relative space-y-0.5 text-red-600 dark:text-red-100",children:[s.jsx("p",{className:"font-medium",children:"Warning"}),s.jsx("p",{className:"text-sm",children:"Please proceed with caution, this cannot be undone."})]}),e[1]=f):f=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(K,{asChild:!0,children:s.jsx(S,{variant:"destructive",children:"Delete user"})}),e[2]=l):l=e[2];let y,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Y,{children:"Are you sure you want to delete your user?"}),c=s.jsx(Z,{children:"This deletes your login, sessions, and personal settings. It does not delete shared accounts or their telemetry. Transfer or delete every account you solely own first."}),e[3]=y,e[4]=c):(y=e[3],c=e[4]);let d;e[5]!==r?(d=r.length>0&&s.jsxs("div",{className:"border-destructive/30 bg-destructive/5 rounded-md border p-3 text-sm",children:["Transfer or delete these accounts first:"," ",r.map(oe).join(", "),"."]}),e[5]=r,e[6]=d):d=e[6];let i;e[7]!==a||e[8]!==o?(i=a&&!o&&s.jsx(q,{label:"Confirm with Google",reauthenticateFor:"user",separated:!1}),e[7]=a,e[8]=o,e[9]=i):i=e[9];let m,u,_;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=B(),_={preserveScroll:!0},m=()=>w.current?.focus(),e[10]=m,e[11]=u,e[12]=_):(m=e[10],u=e[11],_=e[12]);let p;e[13]!==r.length||e[14]!==n||e[15]!==a||e[16]!==o?(p=s.jsx($,{method:"delete",action:u,options:_,onError:m,resetOnSuccess:!0,className:"space-y-6",children:v=>{const{resetAndClearErrors:b,processing:k,errors:x}=v;return s.jsxs(s.Fragment,{children:[a?s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"user-deletion-confirmation",children:"Enter your email to confirm"}),s.jsx(D,{id:"user-deletion-confirmation",name:"confirmation",placeholder:n,autoComplete:"off"}),s.jsx(g,{messages:x.password_challenge})]}):s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"password_challenge",className:"sr-only",children:"Password"}),s.jsx(D,{id:"password_challenge",type:"password",name:"password_challenge",ref:w,placeholder:"Password",autoComplete:"current-password"}),s.jsx(g,{messages:x.password_challenge})]}),s.jsx(g,{messages:x.account_ownership}),s.jsxs(X,{children:[s.jsx(Q,{asChild:!0,children:s.jsx(S,{variant:"secondary",onClick:()=>b(),children:"Cancel"})}),s.jsx(S,{variant:"destructive",disabled:k||r.length>0||!!a&&!o,asChild:!0,children:s.jsx("button",{type:"submit",children:"Delete user"})})]})]})}}),e[13]=r.length,e[14]=n,e[15]=a,e[16]=o,e[17]=p):p=e[17];let h;return e[18]!==p||e[19]!==d||e[20]!==i?(h=s.jsxs("div",{className:"space-y-6",children:[j,s.jsxs("div",{className:"space-y-4 rounded-lg border border-red-100 bg-red-50 p-4 dark:border-red-200/10 dark:bg-red-700/10",children:[f,s.jsxs(ee,{children:[l,s.jsxs(se,{children:[y,c,d,i,p]})]})]})]}),e[18]=p,e[19]=d,e[20]=i,e[21]=h):h=e[21],h}function oe(t){return t.name}const ne="rwp_your_token_here";function ie(t,e){const r=`Bearer ${e??ne}`;return[{id:"claude-code",label:"Claude Code",hint:"Run this in the project you want the assistant to work in.",code:`claude mcp add railwatch --transport http ${t} --header "Authorization: ${r}"`},{id:"claude-desktop",label:"Claude Desktop",hint:"claude_desktop_config.json — Claude Desktop speaks stdio, so mcp-remote bridges it to HTTP.",code:JSON.stringify({mcpServers:{railwatch:{command:"npx",args:["-y","mcp-remote",t,"--header",`Authorization: ${r}`]}}},null,2)},{id:"cursor",label:"Cursor",hint:".cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project.",code:JSON.stringify({mcpServers:{railwatch:{url:t,headers:{Authorization:r}}}},null,2)},{id:"vscode",label:"VS Code",hint:".vscode/mcp.json in the workspace.",code:JSON.stringify({servers:{railwatch:{type:"http",url:t,headers:{Authorization:r}}}},null,2)},{id:"zed",label:"Zed",hint:"settings.json — also via the mcp-remote bridge.",code:JSON.stringify({context_servers:{railwatch:{source:"custom",command:"npx",args:["-y","mcp-remote",t,"--header",`Authorization: ${r}`]}}},null,2)},{id:"curl",label:"Test it with curl",hint:"Lists every tool the server exposes. If this returns JSON, the token works.",code:[`curl -sS ${t} \\`,` -H "Authorization: ${r}" \\`,' -H "Content-Type: application/json" \\',` -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'`].join(`
|
|
2
|
-
`)}]}function le(t){const e=L.c(5),{url:r,token:a}=t;let o;e[0]!==a||e[1]!==r?(o=ie(r,a).map(ce),e[0]=a,e[1]=r,e[2]=o):o=e[2];let n;return e[3]!==o?(n=s.jsx("div",{className:"space-y-4",children:o}),e[3]=o,e[4]=n):n=e[4],n}function ce(t){return s.jsxs("div",{className:"space-y-1",children:[s.jsx("p",{className:"text-sm font-medium",children:t.label}),s.jsx("p",{className:"text-muted-foreground text-xs",children:t.hint}),s.jsx(R,{code:t.code,className:"mt-1.5"})]},t.id)}const T=[{title:"Profile settings",href:H()}],de=[{value:"github",label:"GitHub"},{value:"gitlab",label:"GitLab"},{value:"vscode",label:"VS Code"},{value:"cursor",label:"Cursor"},{value:"zed",label:"Zed"},{value:"rubymine",label:"RubyMine"},{value:"textmate",label:"TextMate"}],me=["vscode","cursor","zed","rubymine","textmate"];function Fe(t){const e=L.c(43),{auth:r}=V().props,[a,o]=z.useState(r.user.editor);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(J,{title:T[T.length-1].title}),e[0]=n):n=e[0];let w;e[1]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(E,{title:"Profile information",description:"Update your name and where source links open"}),e[1]=w):w=e[1];let j,f;e[2]===Symbol.for("react.memo_cache_sentinel")?(j=H(),f={preserveScroll:!0},e[2]=j,e[3]=f):(j=e[2],f=e[3]);let l;e[4]!==r.user.editor_root||e[5]!==r.user.name||e[6]!==a||e[7]!==t.weekly_digest?(l=s.jsxs("div",{className:"space-y-6",children:[w,s.jsx($,{method:"patch",action:j,options:f,className:"space-y-6",children:F=>{const{errors:P,processing:C,recentlySuccessful:G}=F;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"name",children:"Name"}),s.jsx(D,{id:"name",name:"name",className:"mt-1 block w-full",defaultValue:r.user.name,required:!0,autoComplete:"name",placeholder:"Full name"}),s.jsx(g,{className:"mt-2",messages:P.name})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"editor",children:"Editor"}),s.jsx("select",{id:"editor",name:"editor",value:a,onChange:O=>o(O.target.value),className:"border-input bg-background h-9 rounded-md border px-3 text-sm",children:de.map(xe)}),s.jsx(g,{className:"mt-2",messages:P.editor}),s.jsx("span",{className:"text-muted-foreground text-xs",children:"Where a file:line in a stack trace opens — the application's repository, or this machine's editor."})]}),me.includes(a)&&s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"editor_root",children:"Local checkout path"}),s.jsx(D,{id:"editor_root",name:"editor_root",className:"mt-1 block w-full",defaultValue:r.user.editor_root??"",placeholder:"/Users/you/code/widgets"}),s.jsx(g,{className:"mt-2",messages:P.editor_root})]}),s.jsxs("label",{className:"flex items-start gap-3 text-sm",children:[s.jsx("input",{type:"hidden",name:"weekly_digest",value:"0"}),s.jsx("input",{type:"checkbox",name:"weekly_digest",value:"1",defaultChecked:t.weekly_digest,className:"mt-0.5"}),s.jsxs("span",{children:[s.jsx("span",{className:"font-medium",children:"Weekly digest"}),s.jsx("span",{className:"text-muted-foreground block text-xs",children:"A Monday email with requests, p95, failures, new and resolved issues, and deploys for each account you belong to."})]})]}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(S,{disabled:C,children:"Save"}),s.jsx(re,{show:G,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:s.jsx("p",{className:"text-sm text-neutral-600",children:"Saved"})})]})]})}})]}),e[4]=r.user.editor_root,e[5]=r.user.name,e[6]=a,e[7]=t.weekly_digest,e[8]=l):l=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(E,{title:"API & MCP tokens",description:"Create independently revocable tokens with only the surfaces, actions, and applications each client needs."}),e[9]=y):y=e[9];let c;e[10]!==t.mcp_token?(c=t.mcp_token&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm",children:"Your new API & MCP token (shown once, copy it now):"}),s.jsx(R,{code:t.mcp_token})]}),e[10]=t.mcp_token,e[11]=c):c=e[11];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=M(),e[12]=d):d=e[12];let i;e[13]!==t.token_scopes||e[14]!==t.token_targets?(i=s.jsx($,{method:"post",action:d,className:"grid gap-4 rounded-md border p-4",children:F=>{const{processing:P,errors:C}=F;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"token-name",children:"Token name"}),s.jsx(D,{id:"token-name",name:"name",defaultValue:"API & MCP token",maxLength:100,required:!0}),s.jsx(g,{messages:C.name})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"token-restriction",children:"Data access"}),s.jsx("select",{id:"token-restriction",name:"restriction",className:"border-input bg-background h-9 rounded-md border px-3 text-sm",children:t.token_targets.map(pe)}),s.jsx(g,{messages:C.restriction})]}),s.jsxs("fieldset",{className:"grid gap-2",children:[s.jsx("legend",{className:"text-sm font-medium",children:"Scopes"}),s.jsx("input",{type:"hidden",name:"scopes_present",value:"1"}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:t.token_scopes.map(he)}),s.jsx(g,{messages:C.scopes})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(N,{htmlFor:"token-expiry",children:"Expiry"}),s.jsxs("select",{id:"token-expiry",name:"expires_in_days",className:"border-input bg-background h-9 rounded-md border px-3 text-sm",defaultValue:"0",children:[s.jsx("option",{value:"0",children:"Never"}),s.jsx("option",{value:"7",children:"7 days"}),s.jsx("option",{value:"30",children:"30 days"}),s.jsx("option",{value:"90",children:"90 days"}),s.jsx("option",{value:"365",children:"1 year"})]}),s.jsx(g,{messages:C.expires_in_days})]}),s.jsx(S,{className:"w-fit",disabled:P,children:"Generate token"})]})}}),e[13]=t.token_scopes,e[14]=t.token_targets,e[15]=i):i=e[15];let m;e[16]!==t.api_tokens?(m=t.api_tokens.length===0?s.jsx("p",{className:"text-muted-foreground text-sm",children:"No API tokens yet."}):t.api_tokens.map(ue),e[16]=t.api_tokens,e[17]=m):m=e[17];let u;e[18]!==m?(u=s.jsx("div",{className:"space-y-3",children:m}),e[18]=m,e[19]=u):u=e[19];let _;e[20]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx("p",{className:"text-sm font-medium",children:"Connect an assistant"}),e[20]=_):_=e[20];const p=t.mcp_token?"These blocks already contain the token above. Paste one into your client and restart it.":"Generate a token to get these blocks filled in — until then they carry a placeholder. The same output comes from bin/rails railwatch:mcp in your app.";let h;e[21]!==p?(h=s.jsxs("div",{children:[_,s.jsx("p",{className:"text-muted-foreground text-xs",children:p})]}),e[21]=p,e[22]=h):h=e[22];let v;e[23]!==t.mcp_token||e[24]!==t.mcp_url?(v=s.jsx(le,{url:t.mcp_url,token:t.mcp_token}),e[23]=t.mcp_token,e[24]=t.mcp_url,e[25]=v):v=e[25];let b;e[26]!==h||e[27]!==v?(b=s.jsxs("div",{className:"space-y-3 border-t pt-6",children:[h,v]}),e[26]=h,e[27]=v,e[28]=b):b=e[28];let k;e[29]!==u||e[30]!==b||e[31]!==c||e[32]!==i?(k=s.jsxs("div",{className:"space-y-6",children:[y,c,i,u,b]}),e[29]=u,e[30]=b,e[31]=c,e[32]=i,e[33]=k):k=e[33];let x;e[34]!==r.session.recently_authenticated||e[35]!==r.user.email||e[36]!==r.user.provider||e[37]!==t.deletion.blocking_accounts?(x=s.jsx(ae,{blockingAccounts:t.deletion.blocking_accounts,provider:r.user.provider,recentlyAuthenticated:r.session.recently_authenticated,email:r.user.email}),e[34]=r.session.recently_authenticated,e[35]=r.user.email,e[36]=r.user.provider,e[37]=t.deletion.blocking_accounts,e[38]=x):x=e[38];let A;return e[39]!==k||e[40]!==x||e[41]!==l?(A=s.jsxs(te,{breadcrumbs:T,children:[n,s.jsxs(U,{children:[l,k,x]})]}),e[39]=k,e[40]=x,e[41]=l,e[42]=A):A=e[42],A}function ue(t){return s.jsxs("div",{className:"flex items-start justify-between gap-4 rounded-md border p-3",children:[s.jsxs("div",{className:"min-w-0 space-y-1",children:[s.jsx("p",{className:"font-medium",children:t.name}),s.jsxs("p",{className:"text-muted-foreground text-xs",children:[t.scopes.join(", ")," · ",t.restriction]}),s.jsxs("p",{className:"text-muted-foreground text-xs",children:[t.revoked_at?`Revoked ${new Date(t.revoked_at).toLocaleString()}`:t.expires_at?`Expires ${new Date(t.expires_at).toLocaleString()}`:"Never expires",t.last_used_at?` · Last used ${new Date(t.last_used_at).toLocaleString()}`:" · Never used"]})]}),!t.revoked_at&&s.jsxs("div",{className:"flex shrink-0 gap-2",children:[s.jsx(S,{type:"button",variant:"outline",size:"sm",onClick:()=>I.post(M(),{name:t.name,scopes_present:"1",scopes:t.scopes,replace_token_id:t.id}),children:"Regenerate"}),s.jsx(S,{type:"button",variant:"outline",size:"sm",onClick:()=>I.delete(W(),{data:{token_id:t.id}}),children:"Revoke"})]})]},t.id)}function he(t){return s.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[s.jsx("input",{type:"checkbox",name:"scopes[]",value:t,defaultChecked:!0}),t]},t)}function pe(t){return s.jsx("option",{value:t.value,children:t.label},t.value)}function xe(t){return s.jsx("option",{value:t.value,children:t.label},t.value)}export{Fe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as w,j as R,C,c as k}from"./inertia-Cuyz2ZHO.js";import{a as M}from"./use-live-DMTuhKfB.js";import{A as D,a as I}from"./arrow-up-CLQ-7heQ.js";const O=300,T="cubic-bezier(.22, 1, .36, 1)",F=2e3,Y="inline-block h-[1.15em] overflow-hidden leading-[1.15em] align-top",$="inline-block h-[1.15em] overflow-visible leading-[1.15em] align-top text-center",U="block will-change-transform",E="block h-[1.15em] leading-[1.15em]",z="inline-block h-[1.15em] leading-[1.15em]";function N(o){const t=document.createElement("span");return t.className=o,t}function P(o){let t=o.length;for(;t>0&&!/[0-9]/.test(o[t-1]);)t--;return{digits:o.slice(0,t),suffix:o.slice(t)}}function V(o){const t=N(o?$:Y);if(o)return{separator:!0,el:t,char:null};const a=N(U),s=N(E),l=N(E);return a.append(s,l),t.append(a),{separator:!1,el:t,strip:a,top:s,bottom:l,animation:null,char:null}}function q(o,{durationMs:t,easing:a}){const s=new Map;let l="";function d(e,n){e.animation?.cancel(),e.animation=null,e.top.textContent=n,e.bottom.textContent="",e.char=n}function g(e,n,m){if(typeof e.strip.animate!="function"){d(e,n);return}e.animation?.cancel();const i=e.char??n;m>0?(e.top.textContent=i,e.bottom.textContent=n):(e.top.textContent=n,e.bottom.textContent=i);const u=m>0?[{transform:"translateY(0)"},{transform:"translateY(-50%)"}]:[{transform:"translateY(-50%)"},{transform:"translateY(0)"}],r=e.strip.animate(u,{duration:t,easing:a,fill:"forwards"});e.animation=r,e.char=n,r.onfinish=()=>{e.animation===r&&d(e,n)}}function h(e){typeof e.el.animate=="function"&&e.el.animate([{opacity:0,transform:"translateY(0.35em)"},{opacity:1,transform:"none"}],{duration:t,easing:a})}return{paint(e,n){const{digits:m,suffix:i}=P(e),u=m.split(""),r=u.map((p,c)=>({key:u.length-1-c,char:p})),x=`${r.map(p=>p.key).join(",")}|${i}`,b=l==="";if(x!==l){const p=document.createDocumentFragment(),c=new Set;for(const{key:f,char:y}of r){c.add(f);const S=!/[0-9]/.test(y);let v=s.get(f);v?.separator!==S&&(v=V(S),s.set(f,v),!b&&n!==0&&h(v)),p.append(v.el)}for(const f of[...s.keys()])c.has(f)||s.delete(f);if(o.replaceChildren(p),i){const f=N(z);f.textContent=i,o.append(f)}l=x}for(const{key:p,char:c}of r){const f=s.get(p);!f||f.char===c||(f.separator?(f.el.textContent=c,f.char=c):f.char===null||n===0?d(f,c):g(f,c,n))}},destroy(){for(const e of s.values())e.separator||e.animation?.cancel()}}}function G({value:o,format:t,className:a,durationMs:s=O,easing:l=T,minIntervalMs:d=F}){const g=w.useRef(null),h=w.useRef(null),e=w.useRef(o),n=w.useRef(null),m=w.useRef(0),i=w.useRef(void 0),u=w.useRef({format:t,durationMs:s,easing:l,minIntervalMs:d});return w.useEffect(()=>{u.current={format:t,durationMs:s,easing:l,minIntervalMs:d}}),w.useEffect(()=>{const r=g.current;if(!r)return;const{format:x,durationMs:b,easing:p}=u.current,c=q(r,{durationMs:b,easing:p});return h.current=c,c.paint(x(e.current),0),()=>{clearTimeout(i.current),i.current=void 0,n.current=null,h.current=null,c.destroy()}},[]),w.useEffect(()=>{const r=h.current;if(!r||o===e.current)return;const x=c=>{m.current=Date.now(),r.paint(u.current.format(c),c>=e.current?1:-1),e.current=c},b=Date.now()-m.current,p=u.current.minIntervalMs-b;if(p<=0){x(o);return}n.current=o,i.current??=window.setTimeout(()=>{i.current=void 0;const c=n.current;n.current=null,c!==null&&c!==e.current&&x(c)},p)},[o]),R.jsx("span",{ref:g,className:C(a)})}const A="(prefers-reduced-motion: reduce)";function Q(o){const t=window.matchMedia(A);return t.addEventListener("change",o),()=>{t.removeEventListener("change",o)}}function X(){return window.matchMedia(A).matches}function B(){return w.useSyncExternalStore(Q,X,H)}function H(){return!0}function J(o){const t=k.c(15),{current:a,previous:s,goodDirection:l,caption:d}=o;if(!s)return null;const g=(a-s)/s*100;if(g===0)return null;const h=g>0?"up":"down",e=h===l,n=h==="up"?D:I,m=e?"text-live":"text-destructive";let i;t[0]!==m?(i=C("inline-flex items-center gap-0.5 font-mono text-xs tabular-nums",m),t[0]=m,t[1]=i):i=t[1];let u;t[2]!==n?(u=R.jsx(n,{className:"size-3"}),t[2]=n,t[3]=u):u=t[3];let r;t[4]!==g?(r=Math.abs(g).toFixed(1),t[4]=g,t[5]=r):r=t[5];let x;t[6]!==i||t[7]!==u||t[8]!==r?(x=R.jsxs("span",{className:i,children:[u,r,"%"]}),t[6]=i,t[7]=u,t[8]=r,t[9]=x):x=t[9];let b;t[10]!==d?(b=d&&R.jsx("span",{className:"text-muted-foreground text-[11px]",children:d}),t[10]=d,t[11]=b):b=t[11];let p;return t[12]!==x||t[13]!==b?(p=R.jsxs(R.Fragment,{children:[x,b]}),t[12]=x,t[13]=b,t[14]=p):p=t[14],p}function K(o){const t=k.c(15),{value:a,format:s}=o,l=M(),d=B();let g;t[0]!==s||t[1]!==a?(g=s(a),t[0]=s,t[1]=a,t[2]=g):g=t[2];const h=g,e=l&&!d;let n;t[3]!==e||t[4]!==s||t[5]!==h||t[6]!==a?(n=e?R.jsx(G,{value:a,format:s}):h,t[3]=e,t[4]=s,t[5]=h,t[6]=a,t[7]=n):n=t[7];let m;t[8]!==n?(m=R.jsx("span",{"aria-hidden":"true",children:n}),t[8]=n,t[9]=m):m=t[9];let i;t[10]!==h?(i=R.jsx("span",{className:"sr-only",children:h}),t[10]=h,t[11]=i):i=t[11];let u;return t[12]!==m||t[13]!==i?(u=R.jsxs(R.Fragment,{children:[m,i]}),t[12]=m,t[13]=i,t[14]=u):u=t[14],u}function et(o){const t=k.c(28),{label:a,value:s,roll:l,hint:d,tone:g,delta:h,deltaCaption:e,card:n,className:m}=o,u=(n===void 0?!1:n)&&"bg-card rounded-lg border";let r;t[0]!==m||t[1]!==u?(r=C("flex min-w-0 flex-col gap-1 px-4 py-3",u,m),t[0]=m,t[1]=u,t[2]=r):r=t[2];let x;t[3]!==a?(x=R.jsx("div",{className:"label-caps truncate",children:a}),t[3]=a,t[4]=x):x=t[4];const b=g==="destructive"&&"text-destructive",p=g==="warning"&&"text-warning",c=g==="success"&&"text-live";let f;t[5]!==b||t[6]!==p||t[7]!==c?(f=C("text-xl font-semibold tracking-tight tabular-nums sm:text-2xl",b,p,c),t[5]=b,t[6]=p,t[7]=c,t[8]=f):f=t[8];let y;t[9]!==l||t[10]!==s?(y=l?R.jsx(K,{...l}):s,t[9]=l,t[10]=s,t[11]=y):y=t[11];let S;t[12]!==f||t[13]!==y?(S=R.jsx("div",{className:f,children:y}),t[12]=f,t[13]=y,t[14]=S):S=t[14];let v;t[15]!==h||t[16]!==e?(v=h&&R.jsx(J,{...h,caption:e}),t[15]=h,t[16]=e,t[17]=v):v=t[17];let j;t[18]!==S||t[19]!==v?(j=R.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[S,v]}),t[18]=S,t[19]=v,t[20]=j):j=t[20];let L;t[21]!==d?(L=d&&R.jsx("div",{className:"text-muted-foreground truncate font-mono text-[11px]",children:d}),t[21]=d,t[22]=L):L=t[22];let _;return t[23]!==j||t[24]!==L||t[25]!==r||t[26]!==x?(_=R.jsxs("div",{className:r,children:[x,j,L]}),t[23]=j,t[24]=L,t[25]=r,t[26]=x,t[27]=_):_=t[27],_}function nt(o){const t=k.c(5),{children:a,className:s}=o;let l;t[0]!==s?(l=C("bg-card divide-border grid grid-cols-2 divide-y overflow-hidden rounded-lg border sm:divide-x sm:divide-y-0","[&>*:nth-child(odd)]:border-r sm:[&>*:nth-child(odd)]:border-r-0","[&>*:nth-child(odd):last-child]:col-span-2 [&>*:nth-child(odd):last-child]:border-r-0 sm:[&>*:nth-child(odd):last-child]:col-span-1","sm:auto-cols-fr sm:grid-flow-col",s),t[0]=s,t[1]=l):l=t[1];let d;return t[2]!==a||t[3]!==l?(d=R.jsx("div",{className:l,children:a}),t[2]=a,t[3]=l,t[4]=d):d=t[4],d}export{et as S,nt as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,C as d,j as m}from"./inertia-Cuyz2ZHO.js";import{B as g}from"./badge-DRae8XwK.js";import{s as x}from"./format-B9SDkrWj.js";const f={success:"border-live/30 bg-live/10 text-live",warning:"border-warning/40 bg-warning/10 text-warning",destructive:"border-danger/40 bg-danger/10 text-danger",muted:"border-border bg-muted text-muted-foreground"},v="rounded-sm px-1.5 font-mono text-[10px] tracking-wider uppercase";function j(c){const t=u.c(5),{status:e,outcome:i,label:o}=c,n=x(e,i),s=f[n];let r;t[0]!==s?(r=d(v,"tabular-nums",s),t[0]=s,t[1]=r):r=t[1];const a=o??i??e??"–";let l;return t[2]!==r||t[3]!==a?(l=m.jsx(g,{variant:"outline",className:r,children:a}),t[2]=r,t[3]=a,t[4]=l):l=t[4],l}function B(c){const t=u.c(5),{level:e}=c,o=f[e==="error"||e==="fatal"?"destructive":e==="warn"?"warning":e==="event"?"success":"muted"];let n;t[0]!==o?(n=d(v,o),t[0]=o,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s=m.jsx(g,{variant:"outline",className:n,children:e}),t[2]=e,t[3]=n,t[4]=s):s=t[4],s}function N(c){const t=u.c(5),{status:e}=c,o=f[e==="open"?"destructive":e==="resolved"?"success":"muted"];let n;t[0]!==o?(n=d(v,o),t[0]=o,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s=m.jsx(g,{variant:"outline",className:n,children:e}),t[2]=e,t[3]=n,t[4]=s):s=t[4],s}function h(c){const t=u.c(6),{children:e,tone:i,className:o}=c,s=f[i===void 0?"muted":i];let r;t[0]!==o||t[1]!==s?(r=d(v,s,o),t[0]=o,t[1]=s,t[2]=r):r=t[2];let a;return t[3]!==e||t[4]!==r?(a=m.jsx(g,{variant:"outline",className:r,children:e}),t[3]=e,t[4]=r,t[5]=a):a=t[5],a}export{N as I,h as K,B as L,j as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as l,C as c,j as u,L as d}from"./inertia-Cuyz2ZHO.js";function m(a){const e=l.c(10);let t,o,n;e[0]!==a?({className:n,children:t,...o}=a,e[0]=a,e[1]=t,e[2]=o,e[3]=n):(t=e[1],o=e[2],n=e[3]);const i=n===void 0?"":n;let r;e[4]!==i?(r=c("text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500",i),e[4]=i,e[5]=r):r=e[5];let s;return e[6]!==t||e[7]!==o||e[8]!==r?(s=u.jsx(d,{className:r,...o,children:t}),e[6]=t,e[7]=o,e[8]=r,e[9]=s):s=e[9],s}export{m as T};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as o,C as n,j as l}from"./inertia-Cuyz2ZHO.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=n("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=l.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as b,j as n,c as P,C as N}from"./inertia-Cuyz2ZHO.js";import{c as Te,u as ke,a as j,P as ve}from"./index-BfbSo01U.js";import{u as Pe}from"./app-wordmark-BA_60AVb.js";import{d as be,R as Re,A as _e,P as Oe,e as He,C as De}from"./live-dot-BZgYTYdt.js";import{P as Ie}from"./index-CBip6V4z.js";import{m as L,u as Le}from"./format-B9SDkrWj.js";var $e=Object.defineProperty,C=(a,e)=>$e(a,"name",{value:e,configurable:!0}),oe,fe="HoverCard",[ye,mt]=Te(fe,[be]),pe=be(),[Ae,te]=ye(fe),Me=C(a=>{const{__scopeHoverCard:e,children:t,open:o,defaultOpen:l,onOpenChange:r,openDelay:c=700,closeDelay:p=300}=a,u=pe(e),d=b.useRef(0),h=b.useRef(0),i=b.useRef(!1),x=b.useRef(!1),[g,m]=ke({prop:o,defaultProp:l??!1,onChange:r,caller:fe}),f=b.useCallback(()=>{clearTimeout(h.current),d.current=window.setTimeout(()=>m(!0),c)},[c,m]),y=b.useCallback(()=>{clearTimeout(d.current),!i.current&&!x.current&&(h.current=window.setTimeout(()=>m(!1),p))},[p,m]),w=b.useCallback(()=>m(!1),[m]);return b.useEffect(()=>()=>{clearTimeout(d.current),clearTimeout(h.current)},[]),n.jsx(Ae,{scope:e,open:g,onOpenChange:m,onOpen:f,onClose:y,onDismiss:w,hasSelectionRef:i,isPointerDownOnContentRef:x,children:n.jsx(Re,{...u,children:t})})},"HoverCard"),qe="HoverCardTrigger",Ue=b.forwardRef(C(function(e,t){const{__scopeHoverCard:o,...l}=e,r=te(qe,o),c=pe(o);return n.jsx(_e,{asChild:!0,...c,children:n.jsx(Ie.a,{"data-state":r.open?"open":"closed",...l,ref:t,onPointerEnter:j(e.onPointerEnter,$(r.onOpen)),onPointerLeave:j(e.onPointerLeave,$(r.onClose)),onFocus:j(e.onFocus,r.onOpen),onBlur:j(e.onBlur,r.onClose),onTouchStart:j(e.onTouchStart,p=>p.preventDefault())})})},"HoverCardTrigger")),Ne="HoverCardPortal",[Fe,ze]=ye(Ne,{forceMount:void 0}),Be=C(a=>{const{__scopeHoverCard:e,forceMount:t,children:o,container:l}=a,r=te(Ne,e);return n.jsx(Fe,{scope:e,forceMount:t,children:n.jsx(ve,{present:t||r.open,children:n.jsx(Oe,{asChild:!0,container:l,children:o})})})},"HoverCardPortal"),ce="HoverCardContent",Ge=b.forwardRef(C(function(e,t){const o=ze(ce,e.__scopeHoverCard),{forceMount:l=o.forceMount,...r}=e,c=te(ce,e.__scopeHoverCard);return n.jsx(ve,{present:l||c.open,children:n.jsx(Ve,{"data-state":c.open?"open":"closed",...r,onPointerEnter:j(e.onPointerEnter,$(c.onOpen)),onPointerLeave:j(e.onPointerLeave,$(c.onClose)),ref:t})})},"HoverCardContent")),Ve=b.forwardRef(C(function(e,t){const{__scopeHoverCard:o,onEscapeKeyDown:l,onPointerDownOutside:r,onFocusOutside:c,onInteractOutside:p,...u}=e,d=te(ce,o),h=pe(o),i=b.useRef(null),x=Pe(t,i),[g,m]=b.useState(!1);return b.useEffect(()=>{if(g){const f=document.body;return oe=f.style.userSelect||f.style.webkitUserSelect,f.style.userSelect="none",f.style.webkitUserSelect="none",()=>{f.style.userSelect=oe,f.style.webkitUserSelect=oe}}},[g]),b.useEffect(()=>{if(i.current){const f=C(()=>{m(!1),d.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(d.hasSelectionRef.current=!0)})},"handlePointerUp");return document.addEventListener("pointerup",f),()=>{document.removeEventListener("pointerup",f),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!1}}},[d.isPointerDownOnContentRef,d.hasSelectionRef]),b.useEffect(()=>{i.current&&je(i.current).forEach(y=>y.setAttribute("tabindex","-1"))}),n.jsx(He,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:p,onEscapeKeyDown:l,onPointerDownOutside:r,onFocusOutside:j(c,f=>{f.preventDefault()}),onDismiss:d.onDismiss,children:n.jsx(De,{...h,...u,onPointerDown:j(u.onPointerDown,f=>{f.currentTarget.contains(f.target)&&m(!0),d.hasSelectionRef.current=!1,d.isPointerDownOnContentRef.current=!0}),ref:x,style:{...u.style,userSelect:g?"text":void 0,WebkitUserSelect:g?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})},"HoverCardContentImpl"));function $(a){return e=>e.pointerType==="touch"?void 0:a()}C($,"excludeTouch");function je(a){const e=[],t=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:C(o=>o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,"acceptNode")});for(;t.nextNode();)e.push(t.currentNode);return e}C(je,"getTabbableNodes");var We=Me,Ke=Ue,Ye=Be,Je=Ge;const Ze=new Set(["SELECT","FROM","WHERE","JOIN","LEFT","INNER","ON","AND","OR","ORDER","BY","GROUP","LIMIT","OFFSET","INSERT","INTO","VALUES","UPDATE","SET","DELETE","RETURNING","AS","IN","IS","NULL","NOT","DISTINCT","COUNT","SUM","AVG","MAX","MIN","CASE","WHEN","THEN","ELSE","END"]),se=/("(?:[^"]|"")*"|`(?:[^`]|``)*`)|('(?:[^']|'')*')|(\?)|(\b\d+(?:\.\d+)?\b)|(\b[A-Za-z_][A-Za-z_0-9]*\b)/g;function Qe(a){const e=[];let t=0;se.lastIndex=0;let o;for(;o=se.exec(a);){o.index>t&&e.push({text:a.slice(t,o.index),kind:"text"});const[l,r,c,p,u]=o;r?e.push({text:l,kind:"identifier"}):c?e.push({text:l,kind:"string"}):p?e.push({text:l,kind:"placeholder"}):u?e.push({text:l,kind:"number"}):Ze.has(l.toUpperCase())?e.push({text:l,kind:"keyword"}):e.push({text:l,kind:"text"}),t=se.lastIndex}return t<a.length&&e.push({text:a.slice(t),kind:"text"}),e}const Xe={keyword:"text-primary font-semibold",string:"text-emerald-600 dark:text-emerald-400",number:"text-amber-600 dark:text-amber-400",placeholder:"text-primary font-semibold",identifier:"text-muted-foreground",text:""};function Ce(a){const e=P.c(16),{sql:t,wrap:o,inline:l,className:r}=a,c=o===void 0?!1:o,p=l===void 0?!1:l;let u,d,h,i;if(e[0]!==r||e[1]!==p||e[2]!==t||e[3]!==c){const g=Qe(t);u=p?"span":"code";const f=c?"break-words whitespace-pre-wrap":"block max-w-full truncate";e[8]!==r||e[9]!==f?(d=N("font-mono text-xs",f,r),e[8]=r,e[9]=f,e[10]=d):d=e[10],h=c?void 0:t,i=g.map(et),e[0]=r,e[1]=p,e[2]=t,e[3]=c,e[4]=u,e[5]=d,e[6]=h,e[7]=i}else u=e[4],d=e[5],h=e[6],i=e[7];let x;return e[11]!==u||e[12]!==d||e[13]!==h||e[14]!==i?(x=n.jsx(u,{className:d,title:h,children:i}),e[11]=u,e[12]=d,e[13]=h,e[14]=i,e[15]=x):x=e[15],x}function et(a,e){return n.jsx("span",{className:Xe[a.kind]||void 0,children:a.text},e)}function tt(a){const e=P.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let o;return e[2]!==t?(o=n.jsx(We,{"data-slot":"hover-card",...t}),e[2]=t,e[3]=o):o=e[3],o}function nt(a){const e=P.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let o;return e[2]!==t?(o=n.jsx(Ke,{"data-slot":"hover-card-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function rt(a){const e=P.c(12);let t,o,l,r;e[0]!==a?({className:t,align:l,sideOffset:r,...o}=a,e[0]=a,e[1]=t,e[2]=o,e[3]=l,e[4]=r):(t=e[1],o=e[2],l=e[3],r=e[4]);const c=l===void 0?"center":l,p=r===void 0?4:r;let u;e[5]!==t?(u=N("bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),e[5]=t,e[6]=u):u=e[6];let d;return e[7]!==c||e[8]!==o||e[9]!==p||e[10]!==u?(d=n.jsx(Ye,{"data-slot":"hover-card-portal",children:n.jsx(Je,{"data-slot":"hover-card-content",align:c,sideOffset:p,className:u,...o})}),e[7]=c,e[8]=o,e[9]=p,e[10]=u,e[11]=d):d=e[11],d}const xe={query:"bg-sky-500",transaction:"bg-sky-300",cache_event:"bg-violet-500",outgoing_request:"bg-orange-500",mail:"bg-pink-500",broadcast:"bg-teal-500",enqueued_job:"bg-amber-500",view_render:"bg-emerald-500",storage_op:"bg-indigo-500",exception:"bg-red-500",log:"bg-neutral-400",span:"bg-fuchsia-500",attachment:"bg-lime-500",llm_call:"bg-cyan-400"},de={query:"Query",cache_event:"Cache",outgoing_request:"Outgoing",mail:"Mail",broadcast:"Broadcast",log:"Log",exception:"Exception",view_render:"View",storage_op:"Storage",enqueued_job:"Job",transaction:"Transaction",span:"Span",attachment:"Attachment",llm_call:"LLM"},ot=["middleware_before","action","render","middleware_after","body"],ue={middleware_before:"before middleware",action:"action",render:"render",middleware_after:"after middleware",body:"body"},ae=[10,25,50,100,250,500,1e3,2500,5e3,1e4,3e4,6e4];function st(a){const e=a/8;return ae.find(t=>t>=e)??ae[ae.length-1]}function at(a,e){const t=[];for(let o=0;o<=a;o+=e)t.push(o);return t}const le="grid grid-cols-[6rem_1fr_3.5rem] items-center gap-2 md:grid-cols-[5rem_13rem_1fr_4rem]",ie="hidden md:block";function he(a){const e=P.c(32),{entry:t,showSource:o}=a;let l;e[0]!==t.detail?(l=t.detail??{},e[0]=t.detail,e[1]=l):l=e[1];const r=l,c=de[t.type]??t.type;let p;e[2]!==c?(p=n.jsx("span",{children:c}),e[2]=c,e[3]=p):p=e[3];let u;e[4]!==t.stage?(u=t.stage&&n.jsxs("span",{children:["· ",ue[t.stage]??t.stage]}),e[4]=t.stage,e[5]=u):u=e[5];let d;e[6]!==p||e[7]!==u?(d=n.jsxs("div",{className:"text-muted-foreground flex items-center gap-2 text-[10px] tracking-wide uppercase",children:[p,u]}),e[6]=p,e[7]=u,e[8]=d):d=e[8];let h;e[9]!==r||e[10]!==t.label||e[11]!==t.sql||e[12]!==t.type||e[13]!==o?(h=t.type==="query"&&t.sql?n.jsx(Ce,{sql:t.sql,wrap:!0,className:"text-[11px]"}):t.type==="cache_event"?n.jsxs("div",{className:"font-mono text-xs break-all",children:[String(r.op??"")," ",n.jsx("span",{className:"font-semibold",children:String(r.key??"")})]}):t.type==="outgoing_request"?n.jsxs("div",{className:"font-mono text-xs break-all",children:[String(r.method??"")," ",String(r.url??t.label),r.status!=null&&n.jsxs("span",{className:"text-muted-foreground",children:[" → ",String(r.status)]}),o&&typeof r.body=="string"&&r.body!==""&&n.jsx("pre",{className:"bg-muted mt-1.5 max-h-48 overflow-auto rounded p-2 text-[10px] break-all whitespace-pre-wrap",children:r.body})]}):t.type==="llm_call"?n.jsxs("div",{className:"font-mono text-xs break-all",children:[String(r.tool??t.label),r.input_tokens!=null&&n.jsxs("span",{className:"text-muted-foreground",children:[" ","· ",String(r.input_tokens)," in / ",String(r.output_tokens??0)," out"]}),r.cost!=null&&n.jsxs("span",{className:"text-muted-foreground",children:[" ","· ",Le(Number(r.cost))]}),r.step!=null&&n.jsxs("span",{className:"text-muted-foreground",children:[" ","· ",String(r.workflow??"")," / ",String(r.step)]}),r.error!=null&&n.jsx("div",{className:"text-destructive mt-1",children:String(r.error)})]}):t.type==="mail"?n.jsx("div",{className:"font-mono text-xs break-all",children:String(r.subject??t.label)}):t.type==="log"?n.jsxs("div",{className:"font-mono text-xs break-words",children:[n.jsx("span",{className:"text-muted-foreground uppercase",children:String(r.level??"")})," ",String(r.message??t.label)]}):t.type==="exception"?n.jsx("div",{className:"text-destructive font-mono text-xs break-words",children:t.label}):n.jsx("div",{className:"font-mono text-xs break-words",children:t.label}),e[9]=r,e[10]=t.label,e[11]=t.sql,e[12]=t.type,e[13]=o,e[14]=h):h=e[14];let i;e[15]!==t.offset?(i=L(t.offset),e[15]=t.offset,e[16]=i):i=e[16];let x;e[17]!==i?(x=n.jsxs("span",{children:["+",i]}),e[17]=i,e[18]=x):x=e[18];let g;e[19]!==t.duration?(g=t.duration!=null&&n.jsx("span",{children:L(t.duration)}),e[19]=t.duration,e[20]=g):g=e[20];let m;e[21]!==x||e[22]!==g?(m=n.jsxs("div",{className:"text-muted-foreground flex flex-wrap gap-x-3 text-[11px] tabular-nums",children:[x,g]}),e[21]=x,e[22]=g,e[23]=m):m=e[23];let f;e[24]!==t.source||e[25]!==o?(f=o&&t.source&&n.jsx("div",{className:"text-muted-foreground border-t pt-1 font-mono text-[11px] break-all",children:t.source}),e[24]=t.source,e[25]=o,e[26]=f):f=e[26];let y;return e[27]!==m||e[28]!==f||e[29]!==d||e[30]!==h?(y=n.jsxs("div",{className:"space-y-1.5",children:[d,h,m,f]}),e[27]=m,e[28]=f,e[29]=d,e[30]=h,e[31]=y):y=e[31],y}function ge(a){const e=P.c(7),{ticks:t,span:o}=a;let l;if(e[0]!==o||e[1]!==t){let c;e[3]!==o?(c=p=>n.jsx("div",{className:"bg-border/60 pointer-events-none absolute top-0 h-full w-px",style:{left:`${p/o*100}%`}},p),e[3]=o,e[4]=c):c=e[4],l=t.map(c),e[0]=o,e[1]=t,e[2]=l}else l=e[2];let r;return e[5]!==l?(r=n.jsx(n.Fragment,{children:l}),e[5]=l,e[6]=r):r=e[6],r}function xt(a){const e=P.c(70),{entries:t,total:o,stages:l}=a;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=new Set,e[0]=r):r=e[0];const[c,p]=b.useState(r),[u,d]=b.useState(null);let h;e[1]!==t||e[2]!==o?(h=Math.max(o,...t.map(lt),1),e[1]=t,e[2]=o,e[3]=h):h=e[3];const i=h;let x,g,m,f,y,w,S,E;if(e[4]!==t||e[5]!==u||e[6]!==c||e[7]!==i||e[8]!==l){const we=st(i),k=at(i,we);let _;if(e[17]!==t){_=new Map;for(const s of t)_.set(s.type,(_.get(s.type)??0)+1);e[17]=t,e[18]=_}else _=e[18];const M=_;let q;e[19]!==c?(q=s=>!c.has(s.type),e[19]=c,e[20]=q):q=e[20];const me=t.filter(q);let U;e[21]===Symbol.for("react.memo_cache_sentinel")?(U=function(v){p(T=>{const I=new Set(T);return I.has(v)?I.delete(v):I.add(v),I})},e[21]=U):U=e[21];const Se=U;let F;e[22]!==l?(F=s=>l[s]!==void 0,e[22]=l,e[23]=F):F=e[23];let z;e[24]!==l?(z=(s,v)=>{const T=s.length>0?s[s.length-1].start+s[s.length-1].width:0;return s.push({name:v,start:T,width:l[v]}),s},e[24]=l,e[25]=z):z=e[25];const Ee=ot.filter(F).reduce(z,[]);w="space-y-2",e[26]!==M||e[27]!==c?(S=M.size>0&&n.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:[...M.entries()].map(s=>{const[v,T]=s;return n.jsxs("button",{type:"button",onClick:()=>Se(v),className:N("flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-[10px] font-medium transition-colors",c.has(v)?"text-muted-foreground opacity-50":"hover:bg-muted/60"),children:[n.jsx("span",{className:N("size-1.5 rounded-full",xe[v]??"bg-neutral-500")}),de[v]??v,n.jsx("span",{className:"text-muted-foreground tabular-nums",children:T})]},v)})}),e[26]=M,e[27]=c,e[28]=S):S=e[28];let B,G,V;e[29]===Symbol.for("react.memo_cache_sentinel")?(B=N(le,"px-2 text-[10px]"),G=n.jsx("div",{className:ie}),V=n.jsx("div",{}),e[29]=B,e[30]=G,e[31]=V):(B=e[29],G=e[30],V=e[31]);let W;e[32]!==i?(W=s=>n.jsx("span",{className:"text-muted-foreground absolute -translate-x-1/2 tabular-nums",style:{left:`${s/i*100}%`},children:L(s,0)},s),e[32]=i,e[33]=W):W=e[33];const ne=k.map(W);let O;e[34]!==ne?(O=n.jsx("div",{className:"relative h-4 select-none",children:ne}),e[34]=ne,e[35]=O):O=e[35];let K;e[36]===Symbol.for("react.memo_cache_sentinel")?(K=n.jsx("div",{}),e[36]=K):K=e[36],e[37]!==O?(E=n.jsxs("div",{className:B,children:[G,V,O,K]}),e[37]=O,e[38]=E):E=e[38];let Y,J,Z;e[39]===Symbol.for("react.memo_cache_sentinel")?(Y=N(le,"px-2"),J=n.jsx("div",{className:ie}),Z=n.jsx("div",{}),e[39]=Y,e[40]=J,e[41]=Z):(Y=e[39],J=e[40],Z=e[41]);let H;e[42]!==i||e[43]!==k?(H=n.jsx(ge,{ticks:k,span:i}),e[42]=i,e[43]=k,e[44]=H):H=e[44];let Q;e[45]!==i?(Q=s=>n.jsxs("div",{className:"border-background bg-primary/20 absolute top-0 flex h-full items-center overflow-hidden border-r px-1 whitespace-nowrap",style:{left:`${s.start/i*100}%`,width:`${s.width/i*100}%`},title:`${ue[s.name]??s.name} ${L(s.width)}`,children:[ue[s.name]??s.name," ",L(s.width,0)]},s.name),e[45]=i,e[46]=Q):Q=e[46];const re=Ee.map(Q);let D;e[47]!==H||e[48]!==re?(D=n.jsxs("div",{className:"bg-muted/40 relative h-5 overflow-hidden rounded text-[10px]",children:[H,re]}),e[47]=H,e[48]=re,e[49]=D):D=e[49];let X;e[50]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx("div",{}),e[50]=X):X=e[50],e[51]!==D?(x=n.jsxs("div",{className:Y,children:[J,Z,D,X]}),e[51]=D,e[52]=x):x=e[52],g="max-h-[32rem] overflow-y-auto rounded-lg border",e[53]!==t.length?(m=t.length===0&&n.jsx("div",{className:"text-muted-foreground p-4 text-center text-sm",children:"No child events recorded."}),e[53]=t.length,e[54]=m):m=e[54],f=t.length>0&&me.length===0&&n.jsx("div",{className:"text-muted-foreground p-4 text-center text-sm",children:"No events match the active filters."});let ee;e[55]!==u||e[56]!==i||e[57]!==k?(ee=s=>{const v=`${s.type}-${s.id}`,T=i>0&&(s.duration??0)/i>.1,I=s.type==="exception";return n.jsxs("div",{className:"border-b last:border-b-0",style:{contentVisibility:"auto",containIntrinsicSize:"0 28px"},children:[n.jsxs(tt,{openDelay:150,children:[n.jsx(nt,{asChild:!0,children:n.jsxs("button",{type:"button",onClick:()=>d(u===v?null:v),className:N(le,"hover:bg-muted/40 w-full px-2 py-1 text-left text-xs"),children:[n.jsx("span",{className:N("text-muted-foreground truncate font-mono",ie),children:de[s.type]??s.type}),s.type==="query"&&s.sql?n.jsx(Ce,{sql:s.sql}):n.jsx("span",{className:"truncate font-mono",children:s.label}),n.jsxs("div",{className:"bg-muted/30 relative h-3 rounded",children:[n.jsx(ge,{ticks:k,span:i}),I?n.jsx("div",{className:"absolute top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rotate-45 bg-red-500",style:{left:`${Math.min(100,s.offset/i*100)}%`}}):n.jsx("div",{className:N("absolute top-0 h-full rounded",xe[s.type]??"bg-neutral-500",T?"ring-foreground/30 opacity-100 ring-1 ring-inset":"opacity-70"),style:{left:`${Math.min(100,s.offset/i*100)}%`,width:`${Math.max(.3,(s.duration??0)/i*100)}%`}})]}),n.jsx("span",{className:N("text-muted-foreground text-right tabular-nums",T&&"text-foreground font-semibold"),children:s.duration!=null?L(s.duration):"–"})]})}),n.jsx(rt,{className:"w-80",align:"start",children:n.jsx(he,{entry:s})})]}),u===v&&n.jsx("div",{className:"bg-muted/20 border-t px-4 py-2",children:n.jsx(he,{entry:s,showSource:!0})})]},v)},e[55]=u,e[56]=i,e[57]=k,e[58]=ee):ee=e[58],y=me.map(ee),e[4]=t,e[5]=u,e[6]=c,e[7]=i,e[8]=l,e[9]=x,e[10]=g,e[11]=m,e[12]=f,e[13]=y,e[14]=w,e[15]=S,e[16]=E}else x=e[9],g=e[10],m=e[11],f=e[12],y=e[13],w=e[14],S=e[15],E=e[16];let R;e[59]!==g||e[60]!==m||e[61]!==f||e[62]!==y?(R=n.jsxs("div",{className:g,children:[m,f,y]}),e[59]=g,e[60]=m,e[61]=f,e[62]=y,e[63]=R):R=e[63];let A;return e[64]!==x||e[65]!==R||e[66]!==w||e[67]!==S||e[68]!==E?(A=n.jsxs("div",{className:w,children:[S,E,x,R]}),e[64]=x,e[65]=R,e[66]=w,e[67]=S,e[68]=E,e[69]=A):A=e[69],A}function lt(a){return a.offset+(a.duration??0)}export{Ce as S,xt as T};
|