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,143 @@
|
|
|
1
|
+
import { router, usePage } from "@inertiajs/react"
|
|
2
|
+
import { Terminal } from "lucide-react"
|
|
3
|
+
|
|
4
|
+
import { DataTable } from "@/components/railwatch/data-table"
|
|
5
|
+
import { EmptyState } from "@/components/railwatch/empty-state"
|
|
6
|
+
import { PageHeader } from "@/components/railwatch/page-header"
|
|
7
|
+
import { StatusBadge } from "@/components/railwatch/status-badge"
|
|
8
|
+
import EnvLayout from "@/layouts/env-layout"
|
|
9
|
+
import { count, ms, when } from "@/lib/format"
|
|
10
|
+
import * as R from "@/routes"
|
|
11
|
+
import type { GroupRow, SharedProps } from "@/types"
|
|
12
|
+
|
|
13
|
+
interface Run {
|
|
14
|
+
execution_id: string
|
|
15
|
+
name: string
|
|
16
|
+
status: number | null
|
|
17
|
+
duration: number
|
|
18
|
+
occurred_at: string
|
|
19
|
+
server: string | null
|
|
20
|
+
exception_preview: string | null
|
|
21
|
+
}
|
|
22
|
+
interface Props {
|
|
23
|
+
commands: GroupRow[]
|
|
24
|
+
runs: Run[]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default function Commands(p: Props) {
|
|
28
|
+
const { environment } = usePage<SharedProps>().props
|
|
29
|
+
const a = environment!.application_id
|
|
30
|
+
const e = environment!.id
|
|
31
|
+
const runHref = (r: Run) =>
|
|
32
|
+
R.applicationEnvironmentCommandPath(a, e, r.execution_id)
|
|
33
|
+
return (
|
|
34
|
+
<EnvLayout title="Commands">
|
|
35
|
+
<PageHeader
|
|
36
|
+
title="Commands"
|
|
37
|
+
description="Rake tasks and rails runner executions."
|
|
38
|
+
/>
|
|
39
|
+
<DataTable
|
|
40
|
+
rows={p.commands}
|
|
41
|
+
rowKey={(c) => c.group_hash}
|
|
42
|
+
empty={
|
|
43
|
+
<EmptyState
|
|
44
|
+
icon={Terminal}
|
|
45
|
+
title="No commands ran in this window"
|
|
46
|
+
description="rails runner and console executions reported by the gem appear here."
|
|
47
|
+
/>
|
|
48
|
+
}
|
|
49
|
+
columns={[
|
|
50
|
+
{
|
|
51
|
+
key: "n",
|
|
52
|
+
header: "Command",
|
|
53
|
+
cell: (c) => <span className="font-mono text-xs">{c.name}</span>,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
key: "c",
|
|
57
|
+
header: "Runs",
|
|
58
|
+
align: "right",
|
|
59
|
+
cell: (c) => count(c.count),
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
key: "f",
|
|
63
|
+
hideOnMobile: true,
|
|
64
|
+
header: "Non-zero exit",
|
|
65
|
+
align: "right",
|
|
66
|
+
cell: (c) => c.errors,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
key: "avg",
|
|
70
|
+
hideOnMobile: true,
|
|
71
|
+
header: "Avg",
|
|
72
|
+
align: "right",
|
|
73
|
+
cell: (c) => ms(c.avg),
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
key: "max",
|
|
77
|
+
hideOnMobile: true,
|
|
78
|
+
header: "Max",
|
|
79
|
+
align: "right",
|
|
80
|
+
cell: (c) => ms(c.max),
|
|
81
|
+
},
|
|
82
|
+
]}
|
|
83
|
+
/>
|
|
84
|
+
<h2 className="text-sm font-semibold">Recent runs</h2>
|
|
85
|
+
<DataTable
|
|
86
|
+
rows={p.runs}
|
|
87
|
+
rowKey={(r) => r.execution_id}
|
|
88
|
+
onRowClick={(r) => router.visit(runHref(r))}
|
|
89
|
+
keyboardNav={{
|
|
90
|
+
onOpen: (r, opts) =>
|
|
91
|
+
opts?.newTab
|
|
92
|
+
? window.open(runHref(r), "_blank")
|
|
93
|
+
: router.visit(runHref(r)),
|
|
94
|
+
}}
|
|
95
|
+
columns={[
|
|
96
|
+
{
|
|
97
|
+
key: "when",
|
|
98
|
+
header: "When",
|
|
99
|
+
cell: (r) => <span className="text-xs">{when(r.occurred_at)}</span>,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
key: "n",
|
|
103
|
+
header: "Command",
|
|
104
|
+
cell: (r) => <span className="font-mono text-xs">{r.name}</span>,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
key: "x",
|
|
108
|
+
hideOnMobile: true,
|
|
109
|
+
header: "Exit",
|
|
110
|
+
cell: (r) => (
|
|
111
|
+
<StatusBadge
|
|
112
|
+
label={String(r.status ?? "?")}
|
|
113
|
+
outcome={r.status ? "failed" : "processed"}
|
|
114
|
+
/>
|
|
115
|
+
),
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
key: "d",
|
|
119
|
+
header: "Duration",
|
|
120
|
+
align: "right",
|
|
121
|
+
cell: (r) => ms(r.duration),
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
key: "s",
|
|
125
|
+
hideOnMobile: true,
|
|
126
|
+
header: "Server",
|
|
127
|
+
cell: (r) => <span className="font-mono text-xs">{r.server}</span>,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
key: "ex",
|
|
131
|
+
hideOnMobile: true,
|
|
132
|
+
header: "Exception",
|
|
133
|
+
cell: (r) => (
|
|
134
|
+
<span className="text-destructive line-clamp-1 text-xs">
|
|
135
|
+
{r.exception_preview ?? ""}
|
|
136
|
+
</span>
|
|
137
|
+
),
|
|
138
|
+
},
|
|
139
|
+
]}
|
|
140
|
+
/>
|
|
141
|
+
</EnvLayout>
|
|
142
|
+
)
|
|
143
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { router, usePage } from "@inertiajs/react"
|
|
2
|
+
import { Rocket } from "lucide-react"
|
|
3
|
+
|
|
4
|
+
import { DataTable } from "@/components/railwatch/data-table"
|
|
5
|
+
import { EmptyState } from "@/components/railwatch/empty-state"
|
|
6
|
+
import { PageHeader } from "@/components/railwatch/page-header"
|
|
7
|
+
import EnvLayout from "@/layouts/env-layout"
|
|
8
|
+
import { count, when } from "@/lib/format"
|
|
9
|
+
import * as R from "@/routes"
|
|
10
|
+
import type { SharedProps } from "@/types"
|
|
11
|
+
|
|
12
|
+
interface DeployRow {
|
|
13
|
+
id: number
|
|
14
|
+
deploy: string
|
|
15
|
+
ref: string
|
|
16
|
+
name: string | null
|
|
17
|
+
url: string | null
|
|
18
|
+
server: string | null
|
|
19
|
+
deployed_at: string
|
|
20
|
+
commits_count: number
|
|
21
|
+
performer: string | null
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default function Deploys(p: { deploys: DeployRow[] }) {
|
|
25
|
+
const { environment } = usePage<SharedProps>().props
|
|
26
|
+
const a = environment!.application_id
|
|
27
|
+
const e = environment!.id
|
|
28
|
+
const deployHref = (d: DeployRow) =>
|
|
29
|
+
R.applicationEnvironmentDeployPath(a, e, d.id)
|
|
30
|
+
return (
|
|
31
|
+
<EnvLayout title="Deploys">
|
|
32
|
+
<PageHeader
|
|
33
|
+
withWindow={false}
|
|
34
|
+
title="Deploys"
|
|
35
|
+
description="Recorded by bin/rails railwatch:deploy or the Kamal post-deploy hook. Click one to compare the hour before and after."
|
|
36
|
+
/>
|
|
37
|
+
<DataTable
|
|
38
|
+
rows={p.deploys}
|
|
39
|
+
rowKey={(d) => d.id}
|
|
40
|
+
empty={
|
|
41
|
+
<EmptyState
|
|
42
|
+
icon={Rocket}
|
|
43
|
+
title="No deploys recorded"
|
|
44
|
+
description="Run bin/rails railwatch:deploy or install the Kamal hook to track deploys."
|
|
45
|
+
/>
|
|
46
|
+
}
|
|
47
|
+
onRowClick={(d) => router.visit(deployHref(d))}
|
|
48
|
+
keyboardNav={{
|
|
49
|
+
onOpen: (d, opts) =>
|
|
50
|
+
opts?.newTab
|
|
51
|
+
? window.open(deployHref(d), "_blank")
|
|
52
|
+
: router.visit(deployHref(d)),
|
|
53
|
+
}}
|
|
54
|
+
columns={[
|
|
55
|
+
{
|
|
56
|
+
key: "when",
|
|
57
|
+
header: "When",
|
|
58
|
+
cell: (d) => <span className="text-xs">{when(d.deployed_at)}</span>,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: "d",
|
|
62
|
+
header: "Deploy",
|
|
63
|
+
cell: (d) => <span className="font-mono text-xs">{d.deploy}</span>,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
key: "r",
|
|
67
|
+
hideOnMobile: true,
|
|
68
|
+
header: "Ref",
|
|
69
|
+
cell: (d) => <span className="font-mono text-xs">{d.ref}</span>,
|
|
70
|
+
},
|
|
71
|
+
{ key: "n", hideOnMobile: true, header: "Name", cell: (d) => d.name },
|
|
72
|
+
{
|
|
73
|
+
key: "by",
|
|
74
|
+
hideOnMobile: true,
|
|
75
|
+
header: "By",
|
|
76
|
+
cell: (d) => <span className="text-xs">{d.performer}</span>,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
key: "c",
|
|
80
|
+
hideOnMobile: true,
|
|
81
|
+
header: "Commits",
|
|
82
|
+
align: "right",
|
|
83
|
+
cell: (d) => count(d.commits_count),
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
key: "s",
|
|
87
|
+
header: "Server",
|
|
88
|
+
cell: (d) => <span className="font-mono text-xs">{d.server}</span>,
|
|
89
|
+
},
|
|
90
|
+
]}
|
|
91
|
+
/>
|
|
92
|
+
</EnvLayout>
|
|
93
|
+
)
|
|
94
|
+
}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { Link, usePage } from "@inertiajs/react"
|
|
2
|
+
import { AlertOctagon, GitCommitHorizontal } from "lucide-react"
|
|
3
|
+
|
|
4
|
+
import { DataTable } from "@/components/railwatch/data-table"
|
|
5
|
+
import { EmptyState } from "@/components/railwatch/empty-state"
|
|
6
|
+
import { PageHeader } from "@/components/railwatch/page-header"
|
|
7
|
+
import { RelativeTime } from "@/components/railwatch/relative-time"
|
|
8
|
+
import { Stat, StatStrip } from "@/components/railwatch/stat"
|
|
9
|
+
import { IssueStatusBadge } from "@/components/railwatch/status-badge"
|
|
10
|
+
import { Button } from "@/components/ui/button"
|
|
11
|
+
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
|
|
12
|
+
import EnvLayout from "@/layouts/env-layout"
|
|
13
|
+
import { count, ms, pct, when } from "@/lib/format"
|
|
14
|
+
import { commitUrl, compareUrl } from "@/lib/source-link"
|
|
15
|
+
import { ReleaseHealthStrip } from "@/pages/releases/release-health"
|
|
16
|
+
import * as R from "@/routes"
|
|
17
|
+
import type { ReleaseHealthSummary, SharedProps, Summary } from "@/types"
|
|
18
|
+
|
|
19
|
+
interface Commit {
|
|
20
|
+
sha: string
|
|
21
|
+
author: string | null
|
|
22
|
+
message: string | null
|
|
23
|
+
at: string | null
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface Props {
|
|
27
|
+
deploy: {
|
|
28
|
+
id: number
|
|
29
|
+
deploy: string
|
|
30
|
+
ref: string
|
|
31
|
+
name: string | null
|
|
32
|
+
url: string | null
|
|
33
|
+
server: string | null
|
|
34
|
+
deployed_at: string
|
|
35
|
+
commits: Commit[]
|
|
36
|
+
previous_ref: string | null
|
|
37
|
+
repository_ref: string | null
|
|
38
|
+
detail: Record<string, string>
|
|
39
|
+
}
|
|
40
|
+
compare: Record<string, { before: Summary; after: Summary }>
|
|
41
|
+
health: ReleaseHealthSummary
|
|
42
|
+
new_issues: { id: number; key: string; title: string; status: string }[]
|
|
43
|
+
resolved_issues: { id: number; key: string; title: string }[]
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function delta(before: number, after: number) {
|
|
47
|
+
if (!before) return null
|
|
48
|
+
const d = ((after - before) / before) * 100
|
|
49
|
+
return (
|
|
50
|
+
<span
|
|
51
|
+
className={
|
|
52
|
+
d > 10
|
|
53
|
+
? "text-destructive"
|
|
54
|
+
: d < -10
|
|
55
|
+
? "text-emerald-600"
|
|
56
|
+
: "text-muted-foreground"
|
|
57
|
+
}
|
|
58
|
+
>
|
|
59
|
+
{d > 0 ? "+" : ""}
|
|
60
|
+
{d.toFixed(0)}%
|
|
61
|
+
</span>
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export default function DeployShow(p: Props) {
|
|
66
|
+
const { environment } = usePage<SharedProps>().props
|
|
67
|
+
const a = environment!.application_id
|
|
68
|
+
const e = environment!.id
|
|
69
|
+
const r = p.compare.request
|
|
70
|
+
const j = p.compare.job_attempt
|
|
71
|
+
const repositoryUrl = environment!.repository_url
|
|
72
|
+
const compare = compareUrl(
|
|
73
|
+
repositoryUrl,
|
|
74
|
+
p.deploy.previous_ref,
|
|
75
|
+
p.deploy.repository_ref,
|
|
76
|
+
)
|
|
77
|
+
const codeHost = repositoryUrl?.includes("gitlab") ? "GitLab" : "GitHub"
|
|
78
|
+
return (
|
|
79
|
+
<EnvLayout
|
|
80
|
+
title={p.deploy.ref}
|
|
81
|
+
crumbs={[
|
|
82
|
+
{ title: "Deploys", href: R.applicationEnvironmentDeploysPath(a, e) },
|
|
83
|
+
{ title: p.deploy.ref, href: "#" },
|
|
84
|
+
]}
|
|
85
|
+
>
|
|
86
|
+
<PageHeader
|
|
87
|
+
withWindow={false}
|
|
88
|
+
title={<span className="font-mono">{p.deploy.deploy}</span>}
|
|
89
|
+
description={`${when(p.deploy.deployed_at)}${p.deploy.name ? ` · ${p.deploy.name}` : ""}${p.deploy.url ? " · " : ""}`}
|
|
90
|
+
actions={
|
|
91
|
+
p.deploy.url && (
|
|
92
|
+
<a
|
|
93
|
+
className="text-sm underline"
|
|
94
|
+
href={p.deploy.url}
|
|
95
|
+
target="_blank"
|
|
96
|
+
rel="noreferrer"
|
|
97
|
+
>
|
|
98
|
+
Open
|
|
99
|
+
</a>
|
|
100
|
+
)
|
|
101
|
+
}
|
|
102
|
+
/>
|
|
103
|
+
<div className="flex flex-wrap items-center justify-between gap-2">
|
|
104
|
+
<h2 className="text-sm font-semibold">
|
|
105
|
+
Changes
|
|
106
|
+
{p.deploy.previous_ref && (
|
|
107
|
+
<span className="text-muted-foreground ml-2 font-mono text-xs font-normal">
|
|
108
|
+
since {p.deploy.previous_ref.slice(0, 7)}
|
|
109
|
+
</span>
|
|
110
|
+
)}
|
|
111
|
+
</h2>
|
|
112
|
+
{compare && (
|
|
113
|
+
<Button asChild variant="outline" size="sm">
|
|
114
|
+
<a href={compare} target="_blank" rel="noreferrer">
|
|
115
|
+
Compare on {codeHost}
|
|
116
|
+
</a>
|
|
117
|
+
</Button>
|
|
118
|
+
)}
|
|
119
|
+
</div>
|
|
120
|
+
<DataTable
|
|
121
|
+
rows={p.deploy.commits}
|
|
122
|
+
rowKey={(c) => c.sha}
|
|
123
|
+
empty={
|
|
124
|
+
<EmptyState
|
|
125
|
+
icon={GitCommitHorizontal}
|
|
126
|
+
title="No commits recorded"
|
|
127
|
+
description="The post-deploy hook sends the commits in each deploy. Reinstall it with bin/rails generate railwatch:install."
|
|
128
|
+
/>
|
|
129
|
+
}
|
|
130
|
+
columns={[
|
|
131
|
+
{
|
|
132
|
+
key: "sha",
|
|
133
|
+
header: "Commit",
|
|
134
|
+
cell: (c) => {
|
|
135
|
+
const url = commitUrl(repositoryUrl, c.sha)
|
|
136
|
+
const short = c.sha.slice(0, 7)
|
|
137
|
+
return url ? (
|
|
138
|
+
<a
|
|
139
|
+
className="font-mono text-xs hover:underline"
|
|
140
|
+
href={url}
|
|
141
|
+
target="_blank"
|
|
142
|
+
rel="noreferrer"
|
|
143
|
+
>
|
|
144
|
+
{short}
|
|
145
|
+
</a>
|
|
146
|
+
) : (
|
|
147
|
+
<span className="font-mono text-xs">{short}</span>
|
|
148
|
+
)
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
key: "m",
|
|
153
|
+
header: "Message",
|
|
154
|
+
cell: (c) => (
|
|
155
|
+
<span className="line-clamp-1 text-xs">{c.message}</span>
|
|
156
|
+
),
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
key: "a",
|
|
160
|
+
hideOnMobile: true,
|
|
161
|
+
header: "Author",
|
|
162
|
+
cell: (c) => <span className="text-xs">{c.author}</span>,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
key: "at",
|
|
166
|
+
hideOnMobile: true,
|
|
167
|
+
header: "When",
|
|
168
|
+
align: "right",
|
|
169
|
+
cell: (c) => <RelativeTime className="text-xs" iso={c.at} />,
|
|
170
|
+
},
|
|
171
|
+
]}
|
|
172
|
+
/>
|
|
173
|
+
<h2 className="text-sm font-semibold">Release health</h2>
|
|
174
|
+
<ReleaseHealthStrip health={p.health} />
|
|
175
|
+
<h2 className="text-sm font-semibold">Hour before vs hour after</h2>
|
|
176
|
+
<StatStrip>
|
|
177
|
+
<Stat
|
|
178
|
+
label="Request p95"
|
|
179
|
+
value={
|
|
180
|
+
<>
|
|
181
|
+
{ms(r.after.p95 / 1000)} {delta(r.before.p95, r.after.p95)}
|
|
182
|
+
</>
|
|
183
|
+
}
|
|
184
|
+
hint={`was ${ms(r.before.p95 / 1000)}`}
|
|
185
|
+
/>
|
|
186
|
+
<Stat
|
|
187
|
+
label="Request error rate"
|
|
188
|
+
value={
|
|
189
|
+
<>
|
|
190
|
+
{pct(r.after.errors, r.after.count)}{" "}
|
|
191
|
+
{delta(
|
|
192
|
+
r.before.errors / Math.max(1, r.before.count),
|
|
193
|
+
r.after.errors / Math.max(1, r.after.count),
|
|
194
|
+
)}
|
|
195
|
+
</>
|
|
196
|
+
}
|
|
197
|
+
hint={`was ${pct(r.before.errors, r.before.count)}`}
|
|
198
|
+
/>
|
|
199
|
+
<Stat
|
|
200
|
+
label="Requests"
|
|
201
|
+
value={
|
|
202
|
+
<>
|
|
203
|
+
{count(r.after.count)} {delta(r.before.count, r.after.count)}
|
|
204
|
+
</>
|
|
205
|
+
}
|
|
206
|
+
hint={`was ${count(r.before.count)}`}
|
|
207
|
+
/>
|
|
208
|
+
<Stat
|
|
209
|
+
label="Job failures"
|
|
210
|
+
value={
|
|
211
|
+
<>
|
|
212
|
+
{pct(j.after.errors, j.after.count)}{" "}
|
|
213
|
+
{delta(
|
|
214
|
+
j.before.errors / Math.max(1, j.before.count),
|
|
215
|
+
j.after.errors / Math.max(1, j.after.count),
|
|
216
|
+
)}
|
|
217
|
+
</>
|
|
218
|
+
}
|
|
219
|
+
hint={`was ${pct(j.before.errors, j.before.count)}`}
|
|
220
|
+
/>
|
|
221
|
+
</StatStrip>
|
|
222
|
+
<div className="grid gap-4 lg:grid-cols-2">
|
|
223
|
+
<Card>
|
|
224
|
+
<CardHeader>
|
|
225
|
+
<CardTitle>New issues after this deploy</CardTitle>
|
|
226
|
+
</CardHeader>
|
|
227
|
+
<CardContent>
|
|
228
|
+
<DataTable
|
|
229
|
+
rows={p.new_issues}
|
|
230
|
+
rowKey={(i) => i.id}
|
|
231
|
+
empty={
|
|
232
|
+
<EmptyState
|
|
233
|
+
icon={AlertOctagon}
|
|
234
|
+
title="No new issues in the 24 hours after"
|
|
235
|
+
description="Issues first seen after this deploy would show here."
|
|
236
|
+
/>
|
|
237
|
+
}
|
|
238
|
+
columns={[
|
|
239
|
+
{
|
|
240
|
+
key: "k",
|
|
241
|
+
header: "Issue",
|
|
242
|
+
cell: (i) => (
|
|
243
|
+
<Link
|
|
244
|
+
className="font-mono text-xs hover:underline"
|
|
245
|
+
href={R.issuePath(i.id)}
|
|
246
|
+
>
|
|
247
|
+
{i.key}
|
|
248
|
+
</Link>
|
|
249
|
+
),
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
key: "t",
|
|
253
|
+
header: "Title",
|
|
254
|
+
cell: (i) => (
|
|
255
|
+
<span className="line-clamp-1 text-xs">{i.title}</span>
|
|
256
|
+
),
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
key: "s",
|
|
260
|
+
header: "",
|
|
261
|
+
cell: (i) => <IssueStatusBadge status={i.status} />,
|
|
262
|
+
},
|
|
263
|
+
]}
|
|
264
|
+
/>
|
|
265
|
+
</CardContent>
|
|
266
|
+
</Card>
|
|
267
|
+
<Card>
|
|
268
|
+
<CardHeader>
|
|
269
|
+
<CardTitle>Resolved in this deploy</CardTitle>
|
|
270
|
+
</CardHeader>
|
|
271
|
+
<CardContent>
|
|
272
|
+
<DataTable
|
|
273
|
+
rows={p.resolved_issues}
|
|
274
|
+
rowKey={(i) => i.id}
|
|
275
|
+
empty={
|
|
276
|
+
<EmptyState
|
|
277
|
+
icon={AlertOctagon}
|
|
278
|
+
title="No issues marked resolved in this deploy"
|
|
279
|
+
description="Issues resolved and tagged with this deploy's ref would show here."
|
|
280
|
+
/>
|
|
281
|
+
}
|
|
282
|
+
columns={[
|
|
283
|
+
{
|
|
284
|
+
key: "k",
|
|
285
|
+
header: "Issue",
|
|
286
|
+
cell: (i) => (
|
|
287
|
+
<Link
|
|
288
|
+
className="font-mono text-xs hover:underline"
|
|
289
|
+
href={R.issuePath(i.id)}
|
|
290
|
+
>
|
|
291
|
+
{i.key}
|
|
292
|
+
</Link>
|
|
293
|
+
),
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
key: "t",
|
|
297
|
+
header: "Title",
|
|
298
|
+
cell: (i) => (
|
|
299
|
+
<span className="line-clamp-1 text-xs">{i.title}</span>
|
|
300
|
+
),
|
|
301
|
+
},
|
|
302
|
+
]}
|
|
303
|
+
/>
|
|
304
|
+
</CardContent>
|
|
305
|
+
</Card>
|
|
306
|
+
</div>
|
|
307
|
+
</EnvLayout>
|
|
308
|
+
)
|
|
309
|
+
}
|