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
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { Link, router, usePage } from "@inertiajs/react"
|
|
2
|
+
import {
|
|
3
|
+
ArrowUpRight,
|
|
4
|
+
Check,
|
|
5
|
+
ChevronDown,
|
|
6
|
+
ChevronRight,
|
|
7
|
+
Copy,
|
|
8
|
+
} from "lucide-react"
|
|
9
|
+
import { useState } from "react"
|
|
10
|
+
|
|
11
|
+
import { DurationPanel, VolumePanel } from "@/components/railwatch/chart-panel"
|
|
12
|
+
import { DataTable } from "@/components/railwatch/data-table"
|
|
13
|
+
import { EmptyState } from "@/components/railwatch/empty-state"
|
|
14
|
+
import { FilterBar } from "@/components/railwatch/filter-bar"
|
|
15
|
+
import { PageHeader } from "@/components/railwatch/page-header"
|
|
16
|
+
import { PercentilePicker } from "@/components/railwatch/percentile-picker"
|
|
17
|
+
import { SparklineCell } from "@/components/railwatch/sparkline-cell"
|
|
18
|
+
import { StatusBadge } from "@/components/railwatch/status-badge"
|
|
19
|
+
import { useClipboard } from "@/hooks/use-clipboard"
|
|
20
|
+
import { usePercentile } from "@/hooks/use-percentile"
|
|
21
|
+
import EnvLayout from "@/layouts/env-layout"
|
|
22
|
+
import { bytes, count, ms, pct, when } from "@/lib/format"
|
|
23
|
+
import * as R from "@/routes"
|
|
24
|
+
import type { GroupRow, SeriesPoint, SharedProps } from "@/types"
|
|
25
|
+
|
|
26
|
+
interface Recent {
|
|
27
|
+
id: number
|
|
28
|
+
host: string
|
|
29
|
+
method: string
|
|
30
|
+
url: string
|
|
31
|
+
status_code: number | null
|
|
32
|
+
duration: number
|
|
33
|
+
request_size: number | null
|
|
34
|
+
response_size: number | null
|
|
35
|
+
error: string | null
|
|
36
|
+
source: string | null
|
|
37
|
+
occurred_at: string
|
|
38
|
+
execution_id: string | null
|
|
39
|
+
execution_preview: string | null
|
|
40
|
+
response_body: string | null
|
|
41
|
+
}
|
|
42
|
+
interface Props {
|
|
43
|
+
hosts: GroupRow[]
|
|
44
|
+
series: SeriesPoint[]
|
|
45
|
+
recent: Recent[]
|
|
46
|
+
q: string
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// The gem captures a response body only for failed calls, and only the
|
|
50
|
+
// first 4 KiB of it, so the whole thing already sits in the row -- tapping
|
|
51
|
+
// just grows the row rather than fetching anything.
|
|
52
|
+
function ResponseBody({ body }: { body: string }) {
|
|
53
|
+
const [open, setOpen] = useState(false)
|
|
54
|
+
const [, copy] = useClipboard()
|
|
55
|
+
const [copied, setCopied] = useState(false)
|
|
56
|
+
const Chevron = open ? ChevronDown : ChevronRight
|
|
57
|
+
return (
|
|
58
|
+
<div className="flex flex-col items-end gap-1">
|
|
59
|
+
<button
|
|
60
|
+
type="button"
|
|
61
|
+
onClick={() => setOpen(!open)}
|
|
62
|
+
aria-expanded={open}
|
|
63
|
+
className="text-muted-foreground hover:text-foreground inline-flex items-center gap-1"
|
|
64
|
+
>
|
|
65
|
+
<Chevron className="size-3" />
|
|
66
|
+
Body
|
|
67
|
+
</button>
|
|
68
|
+
{open && (
|
|
69
|
+
<div className="w-[70vw] max-w-[36rem] space-y-1 text-left">
|
|
70
|
+
<button
|
|
71
|
+
type="button"
|
|
72
|
+
onClick={() => {
|
|
73
|
+
void (async () => {
|
|
74
|
+
const ok = await copy(body)
|
|
75
|
+
if (ok) {
|
|
76
|
+
setCopied(true)
|
|
77
|
+
setTimeout(() => setCopied(false), 1200)
|
|
78
|
+
}
|
|
79
|
+
})()
|
|
80
|
+
}}
|
|
81
|
+
className="text-muted-foreground hover:text-foreground inline-flex items-center gap-1"
|
|
82
|
+
>
|
|
83
|
+
{copied ? (
|
|
84
|
+
<Check className="size-3" />
|
|
85
|
+
) : (
|
|
86
|
+
<Copy className="size-3" />
|
|
87
|
+
)}
|
|
88
|
+
Copy
|
|
89
|
+
</button>
|
|
90
|
+
<pre className="bg-muted max-h-64 overflow-auto rounded p-2 font-mono text-[10px] break-all whitespace-pre-wrap">
|
|
91
|
+
{body}
|
|
92
|
+
</pre>
|
|
93
|
+
</div>
|
|
94
|
+
)}
|
|
95
|
+
</div>
|
|
96
|
+
)
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export default function OutgoingRequests(p: Props) {
|
|
100
|
+
const { environment, window } = usePage<SharedProps>().props
|
|
101
|
+
const { percentile } = usePercentile()
|
|
102
|
+
const a = environment!.application_id
|
|
103
|
+
const e = environment!.id
|
|
104
|
+
const recentHref = (r: Recent) =>
|
|
105
|
+
r.execution_id
|
|
106
|
+
? R.applicationEnvironmentRequestPath(a, e, r.execution_id)
|
|
107
|
+
: null
|
|
108
|
+
return (
|
|
109
|
+
<EnvLayout title="Outgoing requests">
|
|
110
|
+
<PageHeader
|
|
111
|
+
title="Outgoing requests"
|
|
112
|
+
description="HTTP calls your app makes to other services, by host and method."
|
|
113
|
+
actions={<PercentilePicker />}
|
|
114
|
+
/>
|
|
115
|
+
<div className="grid gap-4 lg:grid-cols-2">
|
|
116
|
+
<VolumePanel
|
|
117
|
+
legend="request"
|
|
118
|
+
label="Outgoing requests"
|
|
119
|
+
seriesLabel="Calls"
|
|
120
|
+
data={p.series}
|
|
121
|
+
/>
|
|
122
|
+
<DurationPanel
|
|
123
|
+
label="Latency"
|
|
124
|
+
data={p.series}
|
|
125
|
+
percentile={percentile}
|
|
126
|
+
/>
|
|
127
|
+
</div>
|
|
128
|
+
<DataTable
|
|
129
|
+
rows={p.hosts}
|
|
130
|
+
rowKey={(h) => h.group_hash}
|
|
131
|
+
empty={
|
|
132
|
+
<EmptyState
|
|
133
|
+
icon={ArrowUpRight}
|
|
134
|
+
title="No outgoing requests in this window"
|
|
135
|
+
description="HTTP calls your app makes to other services appear here."
|
|
136
|
+
/>
|
|
137
|
+
}
|
|
138
|
+
columns={[
|
|
139
|
+
{
|
|
140
|
+
key: "h",
|
|
141
|
+
header: "Host",
|
|
142
|
+
cell: (h) => <span className="font-mono text-xs">{h.name}</span>,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
key: "trend",
|
|
146
|
+
hideOnMobile: true,
|
|
147
|
+
header: "Trend",
|
|
148
|
+
cell: (h) => <SparklineCell data={h.sparkline} />,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
key: "n",
|
|
152
|
+
header: "Calls",
|
|
153
|
+
align: "right",
|
|
154
|
+
cell: (h) => count(h.count),
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
key: "f",
|
|
158
|
+
hideOnMobile: true,
|
|
159
|
+
header: "Failed",
|
|
160
|
+
align: "right",
|
|
161
|
+
cell: (h) => (
|
|
162
|
+
<span className={h.errors ? "text-destructive" : ""}>
|
|
163
|
+
{pct(h.errors, h.count)}
|
|
164
|
+
</span>
|
|
165
|
+
),
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
key: "avg",
|
|
169
|
+
hideOnMobile: true,
|
|
170
|
+
header: "Avg",
|
|
171
|
+
align: "right",
|
|
172
|
+
cell: (h) => ms(h.avg),
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
key: percentile,
|
|
176
|
+
header: percentile,
|
|
177
|
+
align: "right",
|
|
178
|
+
cell: (h) => (
|
|
179
|
+
<span className="font-semibold">{ms(h[percentile])}</span>
|
|
180
|
+
),
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
key: "max",
|
|
184
|
+
hideOnMobile: true,
|
|
185
|
+
header: "Max",
|
|
186
|
+
align: "right",
|
|
187
|
+
cell: (h) => ms(h.max),
|
|
188
|
+
},
|
|
189
|
+
]}
|
|
190
|
+
/>
|
|
191
|
+
<h2 className="text-sm font-semibold">Recent</h2>
|
|
192
|
+
<FilterBar
|
|
193
|
+
value={p.q}
|
|
194
|
+
fields={[
|
|
195
|
+
{ key: "host", label: "Host" },
|
|
196
|
+
{
|
|
197
|
+
key: "status",
|
|
198
|
+
label: "Status",
|
|
199
|
+
options: ["2xx", "3xx", "4xx", "5xx"],
|
|
200
|
+
},
|
|
201
|
+
]}
|
|
202
|
+
onChange={(q) =>
|
|
203
|
+
router.visit(
|
|
204
|
+
R.applicationEnvironmentOutgoingRequestsPath(a, e, {
|
|
205
|
+
window,
|
|
206
|
+
q: q || undefined,
|
|
207
|
+
}),
|
|
208
|
+
{ preserveState: true },
|
|
209
|
+
)
|
|
210
|
+
}
|
|
211
|
+
placeholder="host:api.test status:5xx"
|
|
212
|
+
/>
|
|
213
|
+
<DataTable
|
|
214
|
+
rows={p.recent}
|
|
215
|
+
rowKey={(r) => r.id}
|
|
216
|
+
empty={
|
|
217
|
+
<EmptyState
|
|
218
|
+
icon={ArrowUpRight}
|
|
219
|
+
title="No outgoing requests in this window"
|
|
220
|
+
description="HTTP calls your app makes to other services appear here."
|
|
221
|
+
/>
|
|
222
|
+
}
|
|
223
|
+
keyboardNav={{
|
|
224
|
+
onOpen: (r, opts) => {
|
|
225
|
+
const href = recentHref(r)
|
|
226
|
+
if (!href) return
|
|
227
|
+
if (opts?.newTab) globalThis.window.open(href, "_blank")
|
|
228
|
+
else router.visit(href)
|
|
229
|
+
},
|
|
230
|
+
}}
|
|
231
|
+
columns={[
|
|
232
|
+
{
|
|
233
|
+
key: "when",
|
|
234
|
+
header: "When",
|
|
235
|
+
cell: (r) => <span className="text-xs">{when(r.occurred_at)}</span>,
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
key: "st",
|
|
239
|
+
header: "Status",
|
|
240
|
+
cell: (r) => (
|
|
241
|
+
<StatusBadge
|
|
242
|
+
status={r.status_code}
|
|
243
|
+
label={r.error ? "error" : undefined}
|
|
244
|
+
outcome={r.error ? "failed" : undefined}
|
|
245
|
+
/>
|
|
246
|
+
),
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
key: "u",
|
|
250
|
+
hideOnMobile: true,
|
|
251
|
+
header: "Request",
|
|
252
|
+
cell: (r) => (
|
|
253
|
+
<span className="font-mono text-xs">
|
|
254
|
+
<span className="font-semibold">{r.method}</span> {r.url}
|
|
255
|
+
</span>
|
|
256
|
+
),
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
key: "sz",
|
|
260
|
+
hideOnMobile: true,
|
|
261
|
+
header: "In/out",
|
|
262
|
+
align: "right",
|
|
263
|
+
cell: (r) => `${bytes(r.request_size)} / ${bytes(r.response_size)}`,
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
key: "d",
|
|
267
|
+
header: "Duration",
|
|
268
|
+
align: "right",
|
|
269
|
+
cell: (r) => ms(r.duration),
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
key: "src",
|
|
273
|
+
hideOnMobile: true,
|
|
274
|
+
header: "Source",
|
|
275
|
+
cell: (r) => (
|
|
276
|
+
<span className="text-muted-foreground font-mono text-xs">
|
|
277
|
+
{r.source ?? ""}
|
|
278
|
+
</span>
|
|
279
|
+
),
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
key: "in",
|
|
283
|
+
hideOnMobile: true,
|
|
284
|
+
header: "In",
|
|
285
|
+
cell: (r) => {
|
|
286
|
+
const href = recentHref(r)
|
|
287
|
+
return href ? (
|
|
288
|
+
<Link className="font-mono text-xs hover:underline" href={href}>
|
|
289
|
+
{r.execution_preview}
|
|
290
|
+
</Link>
|
|
291
|
+
) : null
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
key: "body",
|
|
296
|
+
header: "Response",
|
|
297
|
+
align: "right",
|
|
298
|
+
cell: (r) =>
|
|
299
|
+
r.response_body ? (
|
|
300
|
+
<ResponseBody body={r.response_body} />
|
|
301
|
+
) : (
|
|
302
|
+
<span className="text-muted-foreground">–</span>
|
|
303
|
+
),
|
|
304
|
+
},
|
|
305
|
+
]}
|
|
306
|
+
/>
|
|
307
|
+
</EnvLayout>
|
|
308
|
+
)
|
|
309
|
+
}
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { Link, usePage } from "@inertiajs/react"
|
|
2
|
+
import { AlertOctagon, Server } from "lucide-react"
|
|
3
|
+
|
|
4
|
+
import { ChartHoverProvider } from "@/components/railwatch/chart-hover"
|
|
5
|
+
import { DurationPanel, VolumePanel } from "@/components/railwatch/chart-panel"
|
|
6
|
+
import { DataTable } from "@/components/railwatch/data-table"
|
|
7
|
+
import { EmptyState } from "@/components/railwatch/empty-state"
|
|
8
|
+
import { Onboarding } from "@/components/railwatch/onboarding"
|
|
9
|
+
import { PageHeader } from "@/components/railwatch/page-header"
|
|
10
|
+
import { RelativeTime } from "@/components/railwatch/relative-time"
|
|
11
|
+
import { SparklineCell } from "@/components/railwatch/sparkline-cell"
|
|
12
|
+
import { Stat, StatStrip } from "@/components/railwatch/stat"
|
|
13
|
+
import { IssueStatusBadge } from "@/components/railwatch/status-badge"
|
|
14
|
+
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
|
|
15
|
+
import { useWindow } from "@/hooks/use-window"
|
|
16
|
+
import EnvLayout from "@/layouts/env-layout"
|
|
17
|
+
import { ago, count, ms, pct } from "@/lib/format"
|
|
18
|
+
import { crashFreeTone, rate } from "@/pages/releases/release-health"
|
|
19
|
+
import * as R from "@/routes"
|
|
20
|
+
import type {
|
|
21
|
+
DeployMarker,
|
|
22
|
+
GroupRow,
|
|
23
|
+
IssueRow,
|
|
24
|
+
SeriesPoint,
|
|
25
|
+
SharedProps,
|
|
26
|
+
SummaryWithDelta,
|
|
27
|
+
} from "@/types"
|
|
28
|
+
|
|
29
|
+
interface Props {
|
|
30
|
+
totals: { requests: SummaryWithDelta; jobs: SummaryWithDelta }
|
|
31
|
+
request_series: SeriesPoint[]
|
|
32
|
+
job_series: SeriesPoint[]
|
|
33
|
+
slow_routes: GroupRow[]
|
|
34
|
+
top_jobs: GroupRow[]
|
|
35
|
+
issues: IssueRow[]
|
|
36
|
+
deploys: DeployMarker[]
|
|
37
|
+
// null until the environment reports sessions at all.
|
|
38
|
+
release_health: {
|
|
39
|
+
deploy: string
|
|
40
|
+
ref: string
|
|
41
|
+
sessions: number
|
|
42
|
+
crash_free_sessions: number
|
|
43
|
+
} | null
|
|
44
|
+
processes: Record<
|
|
45
|
+
string,
|
|
46
|
+
{
|
|
47
|
+
role: string
|
|
48
|
+
deploy: string
|
|
49
|
+
ruby_version: string
|
|
50
|
+
rails_version: string
|
|
51
|
+
railwatch_version: string
|
|
52
|
+
booted_at: string
|
|
53
|
+
}
|
|
54
|
+
>
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export default function Overview(p: Props) {
|
|
58
|
+
const { environment } = usePage<SharedProps>().props
|
|
59
|
+
const { window: currentWindow, label: windowLabel } = useWindow()
|
|
60
|
+
const a = environment!.application_id
|
|
61
|
+
const e = environment!.id
|
|
62
|
+
const r = p.totals.requests.current
|
|
63
|
+
const rPrev = p.totals.requests.previous
|
|
64
|
+
const j = p.totals.jobs.current
|
|
65
|
+
const jPrev = p.totals.jobs.previous
|
|
66
|
+
const deltaCaption =
|
|
67
|
+
currentWindow === "custom"
|
|
68
|
+
? "vs previous period"
|
|
69
|
+
: `vs previous ${windowLabel}`
|
|
70
|
+
return (
|
|
71
|
+
<EnvLayout title="Overview" crumbs={[{ title: "Overview", href: "#" }]}>
|
|
72
|
+
<ChartHoverProvider>
|
|
73
|
+
<PageHeader
|
|
74
|
+
title={`${environment!.application_name} · ${environment!.name}`}
|
|
75
|
+
description={
|
|
76
|
+
environment!.last_seen_at ? (
|
|
77
|
+
<>
|
|
78
|
+
Last event <RelativeTime iso={environment!.last_seen_at} />
|
|
79
|
+
</>
|
|
80
|
+
) : (
|
|
81
|
+
"No events received yet."
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
/>
|
|
85
|
+
{!environment!.last_seen_at && (
|
|
86
|
+
<Onboarding tokenPrefix={environment!.token_prefix} />
|
|
87
|
+
)}
|
|
88
|
+
<StatStrip>
|
|
89
|
+
<Stat
|
|
90
|
+
label="Requests"
|
|
91
|
+
roll={{ value: r.count, format: count }}
|
|
92
|
+
hint={`${pct(r.errors, r.count)} 5xx · ${pct(r.client_errors, r.count)} 4xx`}
|
|
93
|
+
tone={r.errors > 0 ? "warning" : undefined}
|
|
94
|
+
delta={{
|
|
95
|
+
current: r.count,
|
|
96
|
+
previous: rPrev.count,
|
|
97
|
+
goodDirection: "up",
|
|
98
|
+
}}
|
|
99
|
+
deltaCaption={deltaCaption}
|
|
100
|
+
/>
|
|
101
|
+
<Stat
|
|
102
|
+
label="Request p95"
|
|
103
|
+
value={ms(r.p95 / 1000)}
|
|
104
|
+
hint={`avg ${ms(r.avg / 1000)} · max ${ms(r.max / 1000)}`}
|
|
105
|
+
delta={{
|
|
106
|
+
current: r.p95,
|
|
107
|
+
previous: rPrev.p95,
|
|
108
|
+
goodDirection: "down",
|
|
109
|
+
}}
|
|
110
|
+
deltaCaption={deltaCaption}
|
|
111
|
+
/>
|
|
112
|
+
<Stat
|
|
113
|
+
label="Job attempts"
|
|
114
|
+
roll={{ value: j.count, format: count }}
|
|
115
|
+
hint={`${pct(j.errors, j.count)} failed`}
|
|
116
|
+
tone={j.errors > 0 ? "warning" : undefined}
|
|
117
|
+
delta={{
|
|
118
|
+
current: j.count,
|
|
119
|
+
previous: jPrev.count,
|
|
120
|
+
goodDirection: "up",
|
|
121
|
+
}}
|
|
122
|
+
deltaCaption={deltaCaption}
|
|
123
|
+
/>
|
|
124
|
+
<Stat
|
|
125
|
+
label="Open issues"
|
|
126
|
+
value={p.issues.length}
|
|
127
|
+
tone={p.issues.length ? "destructive" : "success"}
|
|
128
|
+
/>
|
|
129
|
+
{p.release_health && (
|
|
130
|
+
<Stat
|
|
131
|
+
label="Crash-free sessions"
|
|
132
|
+
value={rate(p.release_health.crash_free_sessions)}
|
|
133
|
+
tone={crashFreeTone(p.release_health.crash_free_sessions)}
|
|
134
|
+
hint={`${p.release_health.ref} · ${count(p.release_health.sessions)} sessions`}
|
|
135
|
+
/>
|
|
136
|
+
)}
|
|
137
|
+
</StatStrip>
|
|
138
|
+
<div className="grid gap-4 lg:grid-cols-2">
|
|
139
|
+
<VolumePanel
|
|
140
|
+
label="Requests"
|
|
141
|
+
data={p.request_series}
|
|
142
|
+
deploys={p.deploys}
|
|
143
|
+
/>
|
|
144
|
+
<DurationPanel
|
|
145
|
+
label="Request latency"
|
|
146
|
+
data={p.request_series}
|
|
147
|
+
deploys={p.deploys}
|
|
148
|
+
/>
|
|
149
|
+
</div>
|
|
150
|
+
<div className="grid gap-4 lg:grid-cols-2">
|
|
151
|
+
<Card>
|
|
152
|
+
<CardHeader>
|
|
153
|
+
<CardTitle>Slowest routes (p95)</CardTitle>
|
|
154
|
+
</CardHeader>
|
|
155
|
+
<CardContent>
|
|
156
|
+
<DataTable
|
|
157
|
+
rows={p.slow_routes}
|
|
158
|
+
rowKey={(x) => x.group_hash}
|
|
159
|
+
hoverKey={(x) => x.group_hash}
|
|
160
|
+
columns={[
|
|
161
|
+
{
|
|
162
|
+
key: "name",
|
|
163
|
+
header: "Route",
|
|
164
|
+
grow: true,
|
|
165
|
+
cell: (x) => (
|
|
166
|
+
<Link
|
|
167
|
+
className="font-mono text-xs hover:underline"
|
|
168
|
+
href={R.routeApplicationEnvironmentRequestsPath(
|
|
169
|
+
a,
|
|
170
|
+
e,
|
|
171
|
+
x.group_hash,
|
|
172
|
+
)}
|
|
173
|
+
>
|
|
174
|
+
{x.name}
|
|
175
|
+
</Link>
|
|
176
|
+
),
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
key: "trend",
|
|
180
|
+
hideOnMobile: true,
|
|
181
|
+
header: "Trend",
|
|
182
|
+
cell: (x) => (
|
|
183
|
+
<SparklineCell
|
|
184
|
+
data={x.sparkline}
|
|
185
|
+
hoverKey={x.group_hash}
|
|
186
|
+
/>
|
|
187
|
+
),
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
key: "count",
|
|
191
|
+
header: "Count",
|
|
192
|
+
align: "right",
|
|
193
|
+
cell: (x) => count(x.count),
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
key: "p95",
|
|
197
|
+
header: "p95",
|
|
198
|
+
align: "right",
|
|
199
|
+
cell: (x) => ms(x.p95),
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
key: "errors",
|
|
203
|
+
hideOnMobile: true,
|
|
204
|
+
header: "5xx",
|
|
205
|
+
align: "right",
|
|
206
|
+
cell: (x) => x.errors,
|
|
207
|
+
},
|
|
208
|
+
]}
|
|
209
|
+
/>
|
|
210
|
+
</CardContent>
|
|
211
|
+
</Card>
|
|
212
|
+
<Card>
|
|
213
|
+
<CardHeader>
|
|
214
|
+
<CardTitle>Open issues</CardTitle>
|
|
215
|
+
</CardHeader>
|
|
216
|
+
<CardContent>
|
|
217
|
+
<DataTable
|
|
218
|
+
rows={p.issues}
|
|
219
|
+
rowKey={(x) => x.id}
|
|
220
|
+
empty={
|
|
221
|
+
<EmptyState
|
|
222
|
+
icon={AlertOctagon}
|
|
223
|
+
title="No open issues"
|
|
224
|
+
description="Issues are grouped from repeated request, job, and exception errors."
|
|
225
|
+
/>
|
|
226
|
+
}
|
|
227
|
+
columns={[
|
|
228
|
+
{
|
|
229
|
+
key: "key",
|
|
230
|
+
header: "Issue",
|
|
231
|
+
cell: (x) => (
|
|
232
|
+
<Link
|
|
233
|
+
className="font-mono text-xs hover:underline"
|
|
234
|
+
href={R.issuePath(x.id)}
|
|
235
|
+
>
|
|
236
|
+
{x.key}
|
|
237
|
+
</Link>
|
|
238
|
+
),
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
key: "title",
|
|
242
|
+
header: "Title",
|
|
243
|
+
cell: (x) => (
|
|
244
|
+
<span className="line-clamp-1 text-xs">{x.title}</span>
|
|
245
|
+
),
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
key: "status",
|
|
249
|
+
hideOnMobile: true,
|
|
250
|
+
header: "",
|
|
251
|
+
cell: (x) => <IssueStatusBadge status={x.status} />,
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
key: "n",
|
|
255
|
+
hideOnMobile: true,
|
|
256
|
+
header: "Count",
|
|
257
|
+
align: "right",
|
|
258
|
+
cell: (x) => count(x.occurrences),
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
key: "last",
|
|
262
|
+
header: "Last",
|
|
263
|
+
align: "right",
|
|
264
|
+
cell: (x) => ago(x.last_seen_at),
|
|
265
|
+
},
|
|
266
|
+
]}
|
|
267
|
+
/>
|
|
268
|
+
</CardContent>
|
|
269
|
+
</Card>
|
|
270
|
+
</div>
|
|
271
|
+
<div className="grid gap-4 lg:grid-cols-2">
|
|
272
|
+
<VolumePanel
|
|
273
|
+
label="Jobs"
|
|
274
|
+
legend="job"
|
|
275
|
+
seriesLabel="Attempts"
|
|
276
|
+
data={p.job_series}
|
|
277
|
+
deploys={p.deploys}
|
|
278
|
+
/>
|
|
279
|
+
<Card>
|
|
280
|
+
<CardHeader>
|
|
281
|
+
<CardTitle>Servers</CardTitle>
|
|
282
|
+
</CardHeader>
|
|
283
|
+
<CardContent>
|
|
284
|
+
<DataTable
|
|
285
|
+
rows={Object.entries(p.processes)}
|
|
286
|
+
rowKey={([s]) => s}
|
|
287
|
+
empty={
|
|
288
|
+
<EmptyState
|
|
289
|
+
icon={Server}
|
|
290
|
+
title="No process has reported yet"
|
|
291
|
+
description="Server processes report here once they boot with the gem installed."
|
|
292
|
+
/>
|
|
293
|
+
}
|
|
294
|
+
columns={[
|
|
295
|
+
{
|
|
296
|
+
key: "server",
|
|
297
|
+
header: "Server",
|
|
298
|
+
cell: ([s]) => (
|
|
299
|
+
<span className="font-mono text-xs">{s}</span>
|
|
300
|
+
),
|
|
301
|
+
},
|
|
302
|
+
{ key: "role", header: "Role", cell: ([, v]) => v.role },
|
|
303
|
+
{
|
|
304
|
+
key: "deploy",
|
|
305
|
+
header: "Deploy",
|
|
306
|
+
cell: ([, v]) => (
|
|
307
|
+
<span className="font-mono text-xs">
|
|
308
|
+
{v.deploy?.slice(0, 10)}
|
|
309
|
+
</span>
|
|
310
|
+
),
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
key: "ver",
|
|
314
|
+
hideOnMobile: true,
|
|
315
|
+
header: "Ruby / Rails",
|
|
316
|
+
cell: ([, v]) => `${v.ruby_version} / ${v.rails_version}`,
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
key: "boot",
|
|
320
|
+
hideOnMobile: true,
|
|
321
|
+
header: "Booted",
|
|
322
|
+
align: "right",
|
|
323
|
+
cell: ([, v]) => ago(v.booted_at),
|
|
324
|
+
},
|
|
325
|
+
]}
|
|
326
|
+
/>
|
|
327
|
+
</CardContent>
|
|
328
|
+
</Card>
|
|
329
|
+
</div>
|
|
330
|
+
</ChartHoverProvider>
|
|
331
|
+
</EnvLayout>
|
|
332
|
+
)
|
|
333
|
+
}
|