railwatch 0.6.1 → 0.8.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.
Files changed (349) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/app/frontend/components/app-content.tsx +26 -0
  4. data/app/frontend/components/app-logo-icon.tsx +23 -0
  5. data/app/frontend/components/app-logo.tsx +14 -0
  6. data/app/frontend/components/app-shell.tsx +38 -0
  7. data/app/frontend/components/app-sidebar-header.tsx +54 -0
  8. data/app/frontend/components/app-sidebar.tsx +94 -0
  9. data/app/frontend/components/app-wordmark.tsx +29 -0
  10. data/app/frontend/components/breadcrumbs.tsx +46 -0
  11. data/app/frontend/components/icon.tsx +16 -0
  12. data/app/frontend/components/input-error.tsx +18 -0
  13. data/app/frontend/components/nav-footer.tsx +46 -0
  14. data/app/frontend/components/nav-main.tsx +41 -0
  15. data/app/frontend/components/nav-user.tsx +50 -0
  16. data/app/frontend/components/railwatch/chart-hover.tsx +34 -0
  17. data/app/frontend/components/railwatch/chart-panel.tsx +170 -0
  18. data/app/frontend/components/railwatch/code.tsx +28 -0
  19. data/app/frontend/components/railwatch/command-palette.tsx +132 -0
  20. data/app/frontend/components/railwatch/copy-block.tsx +52 -0
  21. data/app/frontend/components/railwatch/copy-id.tsx +49 -0
  22. data/app/frontend/components/railwatch/cursor-load-more.tsx +39 -0
  23. data/app/frontend/components/railwatch/data-table.tsx +195 -0
  24. data/app/frontend/components/railwatch/digit-roll.tsx +312 -0
  25. data/app/frontend/components/railwatch/empty-state.tsx +159 -0
  26. data/app/frontend/components/railwatch/env-nav.tsx +130 -0
  27. data/app/frontend/components/railwatch/env-switcher.tsx +145 -0
  28. data/app/frontend/components/railwatch/filter-bar.tsx +153 -0
  29. data/app/frontend/components/railwatch/flamegraph.tsx +324 -0
  30. data/app/frontend/components/railwatch/frames.tsx +295 -0
  31. data/app/frontend/components/railwatch/json-viewer.tsx +159 -0
  32. data/app/frontend/components/railwatch/live-dot.tsx +78 -0
  33. data/app/frontend/components/railwatch/live-toggle.tsx +76 -0
  34. data/app/frontend/components/railwatch/metric-chart.tsx +112 -0
  35. data/app/frontend/components/railwatch/mobile-page-switcher.tsx +89 -0
  36. data/app/frontend/components/railwatch/onboarding.tsx +91 -0
  37. data/app/frontend/components/railwatch/origin-identity.tsx +84 -0
  38. data/app/frontend/components/railwatch/page-header.tsx +42 -0
  39. data/app/frontend/components/railwatch/percentile-picker.tsx +18 -0
  40. data/app/frontend/components/railwatch/relative-time.tsx +18 -0
  41. data/app/frontend/components/railwatch/saved-views.tsx +232 -0
  42. data/app/frontend/components/railwatch/segmented.tsx +64 -0
  43. data/app/frontend/components/railwatch/series-chart.tsx +400 -0
  44. data/app/frontend/components/railwatch/shortcuts-dialog.tsx +89 -0
  45. data/app/frontend/components/railwatch/signal-toast.tsx +121 -0
  46. data/app/frontend/components/railwatch/sort-header.tsx +37 -0
  47. data/app/frontend/components/railwatch/source-link.tsx +57 -0
  48. data/app/frontend/components/railwatch/sparkline-cell.tsx +14 -0
  49. data/app/frontend/components/railwatch/sql-block.tsx +116 -0
  50. data/app/frontend/components/railwatch/stat.tsx +173 -0
  51. data/app/frontend/components/railwatch/status-badge.tsx +79 -0
  52. data/app/frontend/components/railwatch/step-picker.tsx +57 -0
  53. data/app/frontend/components/railwatch/timeline.tsx +405 -0
  54. data/app/frontend/components/railwatch/utilisation-bar.tsx +44 -0
  55. data/app/frontend/components/railwatch/window-picker.tsx +147 -0
  56. data/app/frontend/components/ui/avatar.tsx +51 -0
  57. data/app/frontend/components/ui/badge.tsx +46 -0
  58. data/app/frontend/components/ui/breadcrumb.tsx +109 -0
  59. data/app/frontend/components/ui/button.tsx +60 -0
  60. data/app/frontend/components/ui/card.tsx +92 -0
  61. data/app/frontend/components/ui/chart.tsx +374 -0
  62. data/app/frontend/components/ui/checkbox.tsx +32 -0
  63. data/app/frontend/components/ui/collapsible.tsx +31 -0
  64. data/app/frontend/components/ui/command.tsx +182 -0
  65. data/app/frontend/components/ui/dialog.tsx +158 -0
  66. data/app/frontend/components/ui/dropdown-menu.tsx +255 -0
  67. data/app/frontend/components/ui/hover-card.tsx +42 -0
  68. data/app/frontend/components/ui/input.tsx +21 -0
  69. data/app/frontend/components/ui/label.tsx +24 -0
  70. data/app/frontend/components/ui/popover.tsx +87 -0
  71. data/app/frontend/components/ui/select.tsx +185 -0
  72. data/app/frontend/components/ui/separator.tsx +28 -0
  73. data/app/frontend/components/ui/sheet.tsx +137 -0
  74. data/app/frontend/components/ui/sidebar.tsx +726 -0
  75. data/app/frontend/components/ui/skeleton.tsx +13 -0
  76. data/app/frontend/components/ui/sonner.tsx +41 -0
  77. data/app/frontend/components/ui/table.tsx +114 -0
  78. data/app/frontend/components/ui/tabs.tsx +91 -0
  79. data/app/frontend/components/ui/textarea.tsx +18 -0
  80. data/app/frontend/components/ui/tooltip.tsx +61 -0
  81. data/app/frontend/components/user-info.tsx +32 -0
  82. data/app/frontend/components/user-menu-content.tsx +94 -0
  83. data/app/frontend/entrypoints/application.css +244 -0
  84. data/app/frontend/entrypoints/inertia.tsx +95 -0
  85. data/app/frontend/fonts/CommitMono-Bold.woff2 +0 -0
  86. data/app/frontend/fonts/CommitMono-Regular.woff2 +0 -0
  87. data/app/frontend/fonts/Roboto-Black.woff2 +0 -0
  88. data/app/frontend/fonts/Roboto-Bold.woff2 +0 -0
  89. data/app/frontend/fonts/Roboto-Medium.woff2 +0 -0
  90. data/app/frontend/fonts/Roboto-Regular.woff2 +0 -0
  91. data/app/frontend/hooks/use-appearance.tsx +67 -0
  92. data/app/frontend/hooks/use-clipboard.ts +32 -0
  93. data/app/frontend/hooks/use-flash.tsx +23 -0
  94. data/app/frontend/hooks/use-hotkeys.ts +63 -0
  95. data/app/frontend/hooks/use-initials.tsx +15 -0
  96. data/app/frontend/hooks/use-live.ts +179 -0
  97. data/app/frontend/hooks/use-mobile-navigation.ts +8 -0
  98. data/app/frontend/hooks/use-mobile.ts +21 -0
  99. data/app/frontend/hooks/use-percentile.ts +24 -0
  100. data/app/frontend/hooks/use-reduced-motion.ts +25 -0
  101. data/app/frontend/hooks/use-row-nav.ts +106 -0
  102. data/app/frontend/hooks/use-step.ts +27 -0
  103. data/app/frontend/hooks/use-ticker.ts +12 -0
  104. data/app/frontend/hooks/use-window.ts +58 -0
  105. data/app/frontend/layouts/app/app-sidebar-layout.tsx +107 -0
  106. data/app/frontend/layouts/app-layout.tsx +21 -0
  107. data/app/frontend/layouts/env-layout.tsx +53 -0
  108. data/app/frontend/layouts/persistent-layout.tsx +18 -0
  109. data/app/frontend/lib/cable.ts +10 -0
  110. data/app/frontend/lib/env-pages.ts +236 -0
  111. data/app/frontend/lib/execution-path.ts +55 -0
  112. data/app/frontend/lib/explain.ts +50 -0
  113. data/app/frontend/lib/filter.ts +25 -0
  114. data/app/frontend/lib/flamegraph.ts +155 -0
  115. data/app/frontend/lib/format.ts +71 -0
  116. data/app/frontend/lib/keyboard.ts +18 -0
  117. data/app/frontend/lib/source-link.ts +217 -0
  118. data/app/frontend/lib/utils.ts +6 -0
  119. data/app/frontend/pages/alerts/index.tsx +171 -0
  120. data/app/frontend/pages/broadcasts/index.tsx +171 -0
  121. data/app/frontend/pages/cache_events/index.tsx +127 -0
  122. data/app/frontend/pages/commands/index.tsx +143 -0
  123. data/app/frontend/pages/deploys/index.tsx +94 -0
  124. data/app/frontend/pages/deploys/show.tsx +309 -0
  125. data/app/frontend/pages/deprecations/index.tsx +176 -0
  126. data/app/frontend/pages/exceptions/index.tsx +271 -0
  127. data/app/frontend/pages/executions/show.tsx +821 -0
  128. data/app/frontend/pages/issues/index.tsx +399 -0
  129. data/app/frontend/pages/issues/show.tsx +1367 -0
  130. data/app/frontend/pages/jobs/index.tsx +381 -0
  131. data/app/frontend/pages/jobs/klass.tsx +215 -0
  132. data/app/frontend/pages/llm_calls/index.tsx +664 -0
  133. data/app/frontend/pages/logs/index.tsx +303 -0
  134. data/app/frontend/pages/mails/index.tsx +218 -0
  135. data/app/frontend/pages/notifications/index.tsx +161 -0
  136. data/app/frontend/pages/outgoing_requests/index.tsx +309 -0
  137. data/app/frontend/pages/overview/show.tsx +333 -0
  138. data/app/frontend/pages/people/index.tsx +102 -0
  139. data/app/frontend/pages/people/show.tsx +149 -0
  140. data/app/frontend/pages/processes/index.tsx +335 -0
  141. data/app/frontend/pages/profiles/index.tsx +110 -0
  142. data/app/frontend/pages/profiles/show.tsx +105 -0
  143. data/app/frontend/pages/queries/index.tsx +492 -0
  144. data/app/frontend/pages/queries/show.tsx +276 -0
  145. data/app/frontend/pages/releases/index.tsx +190 -0
  146. data/app/frontend/pages/releases/release-health.tsx +68 -0
  147. data/app/frontend/pages/releases/release-path.ts +25 -0
  148. data/app/frontend/pages/releases/show.tsx +262 -0
  149. data/app/frontend/pages/requests/index.tsx +235 -0
  150. data/app/frontend/pages/requests/route.tsx +159 -0
  151. data/app/frontend/pages/scheduled_tasks/index.tsx +220 -0
  152. data/app/frontend/pages/spans/index.tsx +229 -0
  153. data/app/frontend/pages/spans/show.tsx +220 -0
  154. data/app/frontend/pages/storage_ops/index.tsx +150 -0
  155. data/app/frontend/pages/tenants/index.tsx +236 -0
  156. data/app/frontend/pages/tenants/show.tsx +477 -0
  157. data/app/frontend/pages/tenants/tenant-path.ts +26 -0
  158. data/app/frontend/pages/thresholds/index.tsx +414 -0
  159. data/app/frontend/pages/traces/show.tsx +208 -0
  160. data/app/frontend/pages/transactions/index.tsx +220 -0
  161. data/app/frontend/pages/view_renders/index.tsx +241 -0
  162. data/app/frontend/pages/visits/index.tsx +321 -0
  163. data/app/frontend/public/icon.png +0 -0
  164. data/app/frontend/public/icon.svg +5 -0
  165. data/app/frontend/routes/index.d.ts +2136 -0
  166. data/app/frontend/routes/index.js +2112 -0
  167. data/app/frontend/types/globals.d.ts +9 -0
  168. data/app/frontend/types/index.ts +288 -0
  169. data/app/frontend/types/vite-env.d.ts +9 -0
  170. data/app/models/railwatch/filter_query.rb +5 -5
  171. data/app/models/railwatch/telemetry/execution.rb +47 -0
  172. data/app/models/railwatch/telemetry/rollup.rb +73 -9
  173. data/db/railwatch_telemetry_migrate/20260922000000_add_covering_indexes_for_dashboard_aggregates.rb +34 -0
  174. data/lib/railwatch/version.rb +1 -1
  175. data/lib/railwatch.rb +8 -3
  176. data/public/railwatch/assets/app-layout-LvxN9xSS.js +41 -0
  177. data/public/railwatch/assets/application-Cc5v_Vk9.css +1 -0
  178. data/public/railwatch/assets/{arrow-up-CLQ-7heQ.js → arrow-up-DG01k9AL.js} +1 -1
  179. data/public/railwatch/assets/{braces-rSYydpLY.js → braces-C3w7pfxS.js} +1 -1
  180. data/public/railwatch/assets/{card-DPjFKfen.js → card-Dpwlr0uY.js} +1 -1
  181. data/public/railwatch/assets/{chart-DWh7l8yM.js → chart-DJHv3R7W.js} +1 -1
  182. data/public/railwatch/assets/{chart-hover-CfoZUY4J.js → chart-hover-CEH-DtXO.js} +1 -1
  183. data/public/railwatch/assets/{chart-panel-CC49WTQL.js → chart-panel-CUdIzJvk.js} +1 -1
  184. data/public/railwatch/assets/code-BRZprwun.js +1 -0
  185. data/public/railwatch/assets/copy-id-CwhGGiwF.js +1 -0
  186. data/public/railwatch/assets/cursor-load-more-uF1_955Q.js +1 -0
  187. data/public/railwatch/assets/data-table-DYi-N0hm.js +1 -0
  188. data/public/railwatch/assets/env-layout-HdcOaPPX.js +1 -0
  189. data/public/railwatch/assets/{execution-path-FAuIzOXB.js → execution-path-CElXXFO_.js} +1 -1
  190. data/public/railwatch/assets/filter-bar-DEv0G_34.js +1 -0
  191. data/public/railwatch/assets/{flamegraph-EaGkP2NT.js → flamegraph-SKD9yxW9.js} +2 -2
  192. data/public/railwatch/assets/frames-CUpyJQDy.js +1 -0
  193. data/public/railwatch/assets/index-2W-ppwap.js +1 -0
  194. data/public/railwatch/assets/index-74ocuU5d.js +1 -0
  195. data/public/railwatch/assets/{index-C8Cggnbw.js → index-B8NA62Lz.js} +2 -2
  196. data/public/railwatch/assets/index-BBCEkLqp.js +1 -0
  197. data/public/railwatch/assets/index-BDcglJzX.js +1 -0
  198. data/public/railwatch/assets/index-B_KFb9LS.js +1 -0
  199. data/public/railwatch/assets/index-BqK_VKom.js +1 -0
  200. data/public/railwatch/assets/index-BxCXBHP2.js +1 -0
  201. data/public/railwatch/assets/index-C1jc1OoH.js +1 -0
  202. data/public/railwatch/assets/index-C7zREldp.js +1 -0
  203. data/public/railwatch/assets/index-CEetm4oC.js +1 -0
  204. data/public/railwatch/assets/index-CIaZkokF.js +1 -0
  205. data/public/railwatch/assets/index-CNH85TZp.js +1 -0
  206. data/public/railwatch/assets/index-Ce4SB5AB.js +1 -0
  207. data/public/railwatch/assets/index-CiRMSYMn.js +1 -0
  208. data/public/railwatch/assets/index-CjxXgOs-.js +1 -0
  209. data/public/railwatch/assets/index-ClL-PYEV.js +1 -0
  210. data/public/railwatch/assets/index-CteZ6fop.js +1 -0
  211. data/public/railwatch/assets/index-CvqfEExO.js +1 -0
  212. data/public/railwatch/assets/index-CxTLT-Qh.js +1 -0
  213. data/public/railwatch/assets/index-DJd3OUSd.js +1 -0
  214. data/public/railwatch/assets/index-DPD-rLp6.js +1 -0
  215. data/public/railwatch/assets/index-DYK_dps4.js +1 -0
  216. data/public/railwatch/assets/index-DrayARrI.js +1 -0
  217. data/public/railwatch/assets/index-HRXGir-0.js +1 -0
  218. data/public/railwatch/assets/index-UJOUALr_.js +1 -0
  219. data/public/railwatch/assets/index-d-3J7gQ5.js +1 -0
  220. data/public/railwatch/assets/index-oQrvBpOm.js +1 -0
  221. data/public/railwatch/assets/inertia-FoqYZAk8.js +97 -0
  222. data/public/railwatch/assets/json-viewer-CxqMojEm.js +1 -0
  223. data/public/railwatch/assets/klass-DEF-Vat5.js +1 -0
  224. data/public/railwatch/assets/origin-identity-Y6gvfQVR.js +1 -0
  225. data/public/railwatch/assets/{percentile-picker-CeQgllxD.js → percentile-picker-E2aUdLxx.js} +1 -1
  226. data/public/railwatch/assets/relative-time-DcJbkKlN.js +1 -0
  227. data/public/railwatch/assets/{release-health-uP-GF3_V.js → release-health-C8WSCDKD.js} +1 -1
  228. data/public/railwatch/assets/route-qO5vX1p-.js +1 -0
  229. data/public/railwatch/assets/{segmented-BeIe4uqk.js → segmented-BWee8uc9.js} +1 -1
  230. data/public/railwatch/assets/select-G7rNBzv0.js +1 -0
  231. data/public/railwatch/assets/series-chart-C5nXIUc5.js +1 -0
  232. data/public/railwatch/assets/show-BEWisLQw.js +1 -0
  233. data/public/railwatch/assets/show-BEa9PGu1.js +2 -0
  234. data/public/railwatch/assets/{show-YsNpqbcI.js → show-BiT_Aloc.js} +3 -3
  235. data/public/railwatch/assets/show-BpCO49d3.js +1 -0
  236. data/public/railwatch/assets/show-CH7yxt7R.js +1 -0
  237. data/public/railwatch/assets/show-CTO8Lvd2.js +1 -0
  238. data/public/railwatch/assets/show-DnYsDMUt.js +2 -0
  239. data/public/railwatch/assets/show-DyzHM527.js +1 -0
  240. data/public/railwatch/assets/show-Nfpxs8su.js +1 -0
  241. data/public/railwatch/assets/show-ddjUMo9G.js +1 -0
  242. data/public/railwatch/assets/show-ksjbSzDH.js +1 -0
  243. data/public/railwatch/assets/{sort-header-mEJUM3Av.js → sort-header-uOq5VlrB.js} +1 -1
  244. data/public/railwatch/assets/{sparkline-cell-Dwg7awwh.js → sparkline-cell-DgGij0cu.js} +1 -1
  245. data/public/railwatch/assets/stat-BTzNKTm2.js +1 -0
  246. data/public/railwatch/assets/status-badge-BDkOXa-C.js +1 -0
  247. data/public/railwatch/assets/{tenant-path-CQoP-BeF.js → tenant-path-DU0ezKSU.js} +1 -1
  248. data/public/railwatch/assets/{use-clipboard-DNefo-ky.js → use-clipboard-DoENmlWY.js} +1 -1
  249. data/public/railwatch/assets/{use-live-DMTuhKfB.js → use-live-CE_fN5_6.js} +1 -1
  250. data/public/railwatch/manifest.json +612 -1591
  251. metadata +243 -117
  252. data/public/railwatch/assets/app-layout-Zc0v-hYh.js +0 -1
  253. data/public/railwatch/assets/app-wordmark-BA_60AVb.js +0 -1
  254. data/public/railwatch/assets/appearance-CcfP9tZ7.js +0 -1
  255. data/public/railwatch/assets/application-BrN3Sz94.css +0 -1
  256. data/public/railwatch/assets/auth-layout-C05gEBIQ.js +0 -1
  257. data/public/railwatch/assets/badge-DRae8XwK.js +0 -1
  258. data/public/railwatch/assets/checkbox-DPkLUiwM.js +0 -1
  259. data/public/railwatch/assets/code-CLmYS6FU.js +0 -1
  260. data/public/railwatch/assets/copy-DaQMJWoT.js +0 -1
  261. data/public/railwatch/assets/copy-block-CGcXxp8J.js +0 -1
  262. data/public/railwatch/assets/copy-id-vBYHQwxg.js +0 -1
  263. data/public/railwatch/assets/cursor-load-more-Ddwxe5dZ.js +0 -1
  264. data/public/railwatch/assets/data-table-CzKTEE-O.js +0 -1
  265. data/public/railwatch/assets/edit-B1kmWkzd.js +0 -8
  266. data/public/railwatch/assets/edit-D9cx4pbG.js +0 -1
  267. data/public/railwatch/assets/edit-yv6j9p-V.js +0 -1
  268. data/public/railwatch/assets/empty-state-CW4wclK_.js +0 -1
  269. data/public/railwatch/assets/env-layout-Kz7wks1x.js +0 -1
  270. data/public/railwatch/assets/filter-bar-CJDjWFib.js +0 -1
  271. data/public/railwatch/assets/frames-zZuIaNH9.js +0 -1
  272. data/public/railwatch/assets/google-sign-in-button-2_zgbgVy.js +0 -1
  273. data/public/railwatch/assets/index-B49SWz7K.js +0 -1
  274. data/public/railwatch/assets/index-BHlY4wKe.js +0 -1
  275. data/public/railwatch/assets/index-BZpPtyFY.js +0 -1
  276. data/public/railwatch/assets/index-BeVK6jCL.js +0 -1
  277. data/public/railwatch/assets/index-BfbSo01U.js +0 -1
  278. data/public/railwatch/assets/index-BfgncAv6.js +0 -1
  279. data/public/railwatch/assets/index-BhNszK1k.js +0 -1
  280. data/public/railwatch/assets/index-Bu01uWvw.js +0 -1
  281. data/public/railwatch/assets/index-C1s_hK3p.js +0 -1
  282. data/public/railwatch/assets/index-CBip6V4z.js +0 -1
  283. data/public/railwatch/assets/index-CMJGss5R.js +0 -1
  284. data/public/railwatch/assets/index-CRo3yK20.js +0 -1
  285. data/public/railwatch/assets/index-CWB_p2J8.js +0 -1
  286. data/public/railwatch/assets/index-CWHpndGc.js +0 -1
  287. data/public/railwatch/assets/index-Ca_S4Sc3.js +0 -1
  288. data/public/railwatch/assets/index-CanPDDOa.js +0 -1
  289. data/public/railwatch/assets/index-Cie90Yat.js +0 -1
  290. data/public/railwatch/assets/index-CiepQ_pR.js +0 -1
  291. data/public/railwatch/assets/index-Cm1uCIGN.js +0 -1
  292. data/public/railwatch/assets/index-CzitnnSC.js +0 -1
  293. data/public/railwatch/assets/index-DEUfClv3.js +0 -1
  294. data/public/railwatch/assets/index-DJKwo-mI.js +0 -1
  295. data/public/railwatch/assets/index-DK6y0YHp.js +0 -1
  296. data/public/railwatch/assets/index-DMNPpLH9.js +0 -1
  297. data/public/railwatch/assets/index-DZO1mSfX.js +0 -1
  298. data/public/railwatch/assets/index-Db5wj3M5.js +0 -1
  299. data/public/railwatch/assets/index-Dcy5WktB.js +0 -1
  300. data/public/railwatch/assets/index-DvG0-7Lx.js +0 -1
  301. data/public/railwatch/assets/index-Dvj1wuka.js +0 -1
  302. data/public/railwatch/assets/index-KyZX46qX.js +0 -1
  303. data/public/railwatch/assets/index-Ze-KP-sl.js +0 -1
  304. data/public/railwatch/assets/index-mhRbWLBM.js +0 -1
  305. data/public/railwatch/assets/index-x099JL5f.js +0 -1
  306. data/public/railwatch/assets/index-x28zb_nf.js +0 -1
  307. data/public/railwatch/assets/inertia-Cuyz2ZHO.js +0 -97
  308. data/public/railwatch/assets/input-error-hog6gGxg.js +0 -1
  309. data/public/railwatch/assets/json-viewer-DH2W9HXf.js +0 -1
  310. data/public/railwatch/assets/klass-DHbDelLk.js +0 -1
  311. data/public/railwatch/assets/label-DdCBgiUn.js +0 -1
  312. data/public/railwatch/assets/layout-Cueyl7c5.js +0 -1
  313. data/public/railwatch/assets/live-dot-BZgYTYdt.js +0 -41
  314. data/public/railwatch/assets/nav-BSSGObDZ.js +0 -1
  315. data/public/railwatch/assets/new-B8FSb8Bl.js +0 -1
  316. data/public/railwatch/assets/new-C39_v2Ll.js +0 -1
  317. data/public/railwatch/assets/new-DVOPwaC5.js +0 -1
  318. data/public/railwatch/assets/new-Dd40nvJR.js +0 -1
  319. data/public/railwatch/assets/new-SxnYe1SE.js +0 -1
  320. data/public/railwatch/assets/new-eP5vKD3Y.js +0 -1
  321. data/public/railwatch/assets/onboarding-CUpZl5KB.js +0 -1
  322. data/public/railwatch/assets/origin-identity-BYt2uiuo.js +0 -1
  323. data/public/railwatch/assets/relative-time-D5UbF4oO.js +0 -1
  324. data/public/railwatch/assets/route-DQAY8JEr.js +0 -1
  325. data/public/railwatch/assets/select-2R16457Z.js +0 -1
  326. data/public/railwatch/assets/separator-D5I0UCB5.js +0 -1
  327. data/public/railwatch/assets/series-chart-gnrzhmM6.js +0 -1
  328. data/public/railwatch/assets/show-2BkeNRUC.js +0 -2
  329. data/public/railwatch/assets/show-B0X1hRQH.js +0 -1
  330. data/public/railwatch/assets/show-BKUV5l5q.js +0 -1
  331. data/public/railwatch/assets/show-BQJD_CsF.js +0 -6
  332. data/public/railwatch/assets/show-BhmD6Sxp.js +0 -1
  333. data/public/railwatch/assets/show-C3KcnVo2.js +0 -1
  334. data/public/railwatch/assets/show-C95cHd06.js +0 -2
  335. data/public/railwatch/assets/show-CdB4uVQS.js +0 -1
  336. data/public/railwatch/assets/show-CoCqcVIp.js +0 -1
  337. data/public/railwatch/assets/show-D2LqjEsU.js +0 -1
  338. data/public/railwatch/assets/show-DNpnKyTh.js +0 -1
  339. data/public/railwatch/assets/show-DOlTxbig.js +0 -1
  340. data/public/railwatch/assets/show-DQCkttL8.js +0 -1
  341. data/public/railwatch/assets/show-DcxesipC.js +0 -1
  342. data/public/railwatch/assets/show-IGJoc_X0.js +0 -1
  343. data/public/railwatch/assets/show-qNV6H8SH.js +0 -2
  344. data/public/railwatch/assets/stat-ZtxGU8lE.js +0 -1
  345. data/public/railwatch/assets/status-badge-CH5P-Xkj.js +0 -1
  346. data/public/railwatch/assets/text-link-DHJ8BXx5.js +0 -1
  347. data/public/railwatch/assets/textarea-BeQtQyl5.js +0 -1
  348. data/public/railwatch/assets/timeline-CaKQVu48.js +0 -1
  349. data/public/railwatch/assets/transition-ksDpqhKJ.js +0 -5
@@ -0,0 +1,102 @@
1
+ import { router, usePage } from "@inertiajs/react"
2
+ import { Users } 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 { ago, count } from "@/lib/format"
9
+ import * as R from "@/routes"
10
+ import type { SharedProps } from "@/types"
11
+
12
+ interface Person {
13
+ ref: string
14
+ requests: number
15
+ errors: number
16
+ last_seen_at: string
17
+ name: string | null
18
+ email: string | null
19
+ tenant: string | null
20
+ }
21
+ interface Props {
22
+ people: Person[]
23
+ }
24
+
25
+ export default function People(p: Props) {
26
+ const { environment } = usePage<SharedProps>().props
27
+ const a = environment!.application_id
28
+ const e = environment!.id
29
+ const personHref = (x: Person) =>
30
+ R.applicationEnvironmentPersonPath(a, e, x.ref)
31
+ return (
32
+ <EnvLayout title="Users">
33
+ <PageHeader
34
+ title="Users"
35
+ description="Your application's users as seen in telemetry, with their activity and errors."
36
+ />
37
+ <DataTable
38
+ rows={p.people}
39
+ rowKey={(x) => x.ref}
40
+ empty={
41
+ <EmptyState
42
+ icon={Users}
43
+ title="No authenticated activity in this window"
44
+ description="People appear here once requests are tagged with an authenticated user."
45
+ />
46
+ }
47
+ onRowClick={(x) => router.visit(personHref(x))}
48
+ keyboardNav={{
49
+ onOpen: (x, opts) =>
50
+ opts?.newTab
51
+ ? window.open(personHref(x), "_blank")
52
+ : router.visit(personHref(x)),
53
+ }}
54
+ columns={[
55
+ {
56
+ key: "n",
57
+ header: "User",
58
+ cell: (x) => (
59
+ <span className="text-xs">
60
+ <span className="font-medium">{x.name ?? x.ref}</span>
61
+ {x.email && (
62
+ <span className="text-muted-foreground"> · {x.email}</span>
63
+ )}
64
+ </span>
65
+ ),
66
+ },
67
+ {
68
+ key: "t",
69
+ hideOnMobile: true,
70
+ header: "Tenant",
71
+ cell: (x) => (
72
+ <span className="font-mono text-xs">{x.tenant ?? ""}</span>
73
+ ),
74
+ },
75
+ {
76
+ key: "r",
77
+ header: "Requests",
78
+ align: "right",
79
+ cell: (x) => count(x.requests),
80
+ },
81
+ {
82
+ key: "e",
83
+ hideOnMobile: true,
84
+ header: "Errors",
85
+ align: "right",
86
+ cell: (x) => (
87
+ <span className={x.errors ? "text-destructive" : ""}>
88
+ {x.errors}
89
+ </span>
90
+ ),
91
+ },
92
+ {
93
+ key: "l",
94
+ header: "Last seen",
95
+ align: "right",
96
+ cell: (x) => ago(x.last_seen_at),
97
+ },
98
+ ]}
99
+ />
100
+ </EnvLayout>
101
+ )
102
+ }
@@ -0,0 +1,149 @@
1
+ import { Link, router, usePage } from "@inertiajs/react"
2
+
3
+ import { DataTable } from "@/components/railwatch/data-table"
4
+ import { PageHeader } from "@/components/railwatch/page-header"
5
+ import {
6
+ IssueStatusBadge,
7
+ StatusBadge,
8
+ } from "@/components/railwatch/status-badge"
9
+ import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
10
+ import EnvLayout from "@/layouts/env-layout"
11
+ import { ago, ms, when } from "@/lib/format"
12
+ import * as R from "@/routes"
13
+ import type { ExecutionRow, SharedProps } from "@/types"
14
+
15
+ interface Props {
16
+ person: {
17
+ person_ref: string
18
+ name: string
19
+ email: string | null
20
+ tenant: string | null
21
+ first_seen_at: string
22
+ last_seen_at: string
23
+ } | null
24
+ person_ref: string
25
+ executions: ExecutionRow[]
26
+ issues: {
27
+ id: number
28
+ key: string
29
+ title: string
30
+ status: string
31
+ count: number
32
+ }[]
33
+ }
34
+
35
+ export default function PersonShow(p: Props) {
36
+ const { environment, window } = usePage<SharedProps>().props
37
+ const a = environment!.application_id
38
+ const e = environment!.id
39
+ const name = p.person?.name ?? p.person_ref
40
+ return (
41
+ <EnvLayout
42
+ title={name}
43
+ crumbs={[
44
+ {
45
+ title: "Users",
46
+ href: R.applicationEnvironmentPeoplePath(a, e, { window }),
47
+ },
48
+ { title: name, href: "#" },
49
+ ]}
50
+ >
51
+ <PageHeader
52
+ title={name}
53
+ description={
54
+ p.person
55
+ ? `${p.person.email ?? ""} ${p.person.tenant ? `· tenant ${p.person.tenant}` : ""} · first seen ${ago(p.person.first_seen_at)} · last seen ${ago(p.person.last_seen_at)}`
56
+ : "Not yet identified."
57
+ }
58
+ />
59
+ {p.issues.length > 0 && (
60
+ <Card>
61
+ <CardHeader>
62
+ <CardTitle>Issues affecting this user</CardTitle>
63
+ </CardHeader>
64
+ <CardContent>
65
+ <DataTable
66
+ rows={p.issues}
67
+ rowKey={(i) => i.id}
68
+ columns={[
69
+ {
70
+ key: "k",
71
+ header: "Issue",
72
+ cell: (i) => (
73
+ <Link
74
+ className="font-mono text-xs hover:underline"
75
+ href={R.issuePath(i.id)}
76
+ >
77
+ {i.key}
78
+ </Link>
79
+ ),
80
+ },
81
+ {
82
+ key: "t",
83
+ header: "Title",
84
+ cell: (i) => (
85
+ <span className="line-clamp-1 text-xs">{i.title}</span>
86
+ ),
87
+ },
88
+ {
89
+ key: "s",
90
+ header: "",
91
+ cell: (i) => <IssueStatusBadge status={i.status} />,
92
+ },
93
+ {
94
+ key: "n",
95
+ header: "Hits",
96
+ align: "right",
97
+ cell: (i) => i.count,
98
+ },
99
+ ]}
100
+ />
101
+ </CardContent>
102
+ </Card>
103
+ )}
104
+ <DataTable
105
+ rows={p.executions}
106
+ rowKey={(x) => x.execution_id}
107
+ onRowClick={(x) =>
108
+ x.execution_id &&
109
+ router.visit(
110
+ R.applicationEnvironmentRequestPath(a, e, x.execution_id),
111
+ )
112
+ }
113
+ columns={[
114
+ {
115
+ key: "when",
116
+ header: "When",
117
+ cell: (x) => <span className="text-xs">{when(x.occurred_at)}</span>,
118
+ },
119
+ { key: "k", header: "Kind", cell: (x) => x.kind },
120
+ {
121
+ key: "n",
122
+ header: "Name",
123
+ cell: (x) => <span className="font-mono text-xs">{x.name}</span>,
124
+ },
125
+ {
126
+ key: "st",
127
+ header: "Status",
128
+ cell: (x) => <StatusBadge status={x.status} outcome={x.outcome} />,
129
+ },
130
+ {
131
+ key: "d",
132
+ header: "Duration",
133
+ align: "right",
134
+ cell: (x) => ms(x.duration),
135
+ },
136
+ {
137
+ key: "ex",
138
+ header: "Exception",
139
+ cell: (x) => (
140
+ <span className="text-destructive line-clamp-1 text-xs">
141
+ {x.exception_preview ?? ""}
142
+ </span>
143
+ ),
144
+ },
145
+ ]}
146
+ />
147
+ </EnvLayout>
148
+ )
149
+ }
@@ -0,0 +1,335 @@
1
+ import { AlertTriangle, Server } from "lucide-react"
2
+
3
+ import { ChartPanel } from "@/components/railwatch/chart-panel"
4
+ import { DataTable } from "@/components/railwatch/data-table"
5
+ import { EmptyState } from "@/components/railwatch/empty-state"
6
+ import { MetricChart } from "@/components/railwatch/metric-chart"
7
+ import { PageHeader } from "@/components/railwatch/page-header"
8
+ import { Stat, StatStrip } from "@/components/railwatch/stat"
9
+ import { UtilisationBar } from "@/components/railwatch/utilisation-bar"
10
+ import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
11
+ import EnvLayout from "@/layouts/env-layout"
12
+ import { ago, bytes, count, ms, when } from "@/lib/format"
13
+
14
+ interface Sample {
15
+ id: number
16
+ server: string
17
+ role: string | null
18
+ pid: number | null
19
+ deploy: string | null
20
+ sampled_at: string
21
+ threads_busy: number | null
22
+ threads_max: number | null
23
+ backlog: number | null
24
+ pool_busy: number | null
25
+ pool_size: number | null
26
+ pool_waiting: number | null
27
+ queue_depth: number | null
28
+ queue_latency: number | null
29
+ memory: number | null
30
+ }
31
+ interface HealthPoint {
32
+ t: string
33
+ utilisation: number
34
+ backlog: number
35
+ queue_depth: number
36
+ queue_latency: number
37
+ }
38
+ interface QueueDepth {
39
+ queue: string
40
+ depth: number
41
+ }
42
+ interface Proc {
43
+ id: number
44
+ booted_at: string
45
+ pid: number
46
+ role: string
47
+ server: string
48
+ deploy: string | null
49
+ ruby_version: string
50
+ rails_version: string
51
+ railwatch_version: string
52
+ boot_seconds: number | null
53
+ detail: Record<string, string>
54
+ }
55
+ interface Props {
56
+ samples: Sample[]
57
+ series: HealthPoint[]
58
+ queues: QueueDepth[]
59
+ silent_servers: string[]
60
+ processes: Proc[]
61
+ }
62
+
63
+ const percent = (value: number) => `${value.toFixed(0)}%`
64
+
65
+ function sum(values: (number | null)[]) {
66
+ return values.reduce<number>((n, v) => n + (v ?? 0), 0)
67
+ }
68
+
69
+ function max(values: (number | null)[]) {
70
+ return values.reduce<number>((n, v) => Math.max(n, v ?? 0), 0)
71
+ }
72
+
73
+ export default function Processes(p: Props) {
74
+ const utilisations = p.samples.flatMap((s) =>
75
+ s.threads_max ? [((s.threads_busy ?? 0) / s.threads_max) * 100] : [],
76
+ )
77
+ const utilisation = utilisations.length
78
+ ? utilisations.reduce((a, b) => a + b, 0) / utilisations.length
79
+ : 0
80
+ const backlog = sum(p.samples.map((s) => s.backlog))
81
+ const queueDepth = max(p.samples.map((s) => s.queue_depth))
82
+ const oldestJob = max(p.samples.map((s) => s.queue_latency))
83
+ const reporting = p.samples.length > 0 || p.series.length > 0
84
+
85
+ return (
86
+ <EnvLayout title="Processes">
87
+ <PageHeader
88
+ title="Processes"
89
+ description="What every web and worker process is doing right now: thread pools, socket backlog, queue depth, and the boots behind them."
90
+ />
91
+ {p.silent_servers.length > 0 && (
92
+ <Card className="border-warning/40">
93
+ <CardHeader>
94
+ <CardTitle className="flex items-center gap-2">
95
+ <AlertTriangle className="text-warning size-4" />
96
+ {p.silent_servers.length === 1
97
+ ? "1 expected host is silent"
98
+ : `${p.silent_servers.length} expected hosts are silent`}
99
+ </CardTitle>
100
+ </CardHeader>
101
+ <CardContent className="space-y-2">
102
+ <div className="flex flex-wrap gap-1.5">
103
+ {p.silent_servers.map((server) => (
104
+ <span
105
+ key={server}
106
+ className="border-warning/40 bg-warning/10 text-warning rounded-sm border px-1.5 font-mono text-[11px]"
107
+ >
108
+ {server}
109
+ </span>
110
+ ))}
111
+ </div>
112
+ <p className="text-muted-foreground text-xs">
113
+ No health sample or execution from these hosts in the last 10
114
+ minutes. Expected hosts come from your Kamal post-deploy hook, or
115
+ from the environment settings if you set them by hand.
116
+ </p>
117
+ </CardContent>
118
+ </Card>
119
+ )}
120
+ {reporting ? (
121
+ <>
122
+ <StatStrip>
123
+ <Stat label="Live processes" value={p.samples.length} />
124
+ <Stat
125
+ label="Thread utilisation"
126
+ value={percent(utilisation)}
127
+ tone={
128
+ utilisation >= 90
129
+ ? "destructive"
130
+ : utilisation >= 70
131
+ ? "warning"
132
+ : undefined
133
+ }
134
+ hint="averaged across live processes"
135
+ />
136
+ <Stat label="Backlog" value={count(backlog)} />
137
+ <Stat label="Queue depth" value={count(queueDepth)} />
138
+ <Stat label="Oldest job" value={ms(oldestJob)} />
139
+ </StatStrip>
140
+ <DataTable
141
+ rows={p.samples}
142
+ rowKey={(s) => s.id}
143
+ empty={
144
+ <EmptyState
145
+ title="No process reported in the last 10 minutes"
146
+ description="Health samples are older than the live window."
147
+ />
148
+ }
149
+ columns={[
150
+ {
151
+ key: "server",
152
+ header: "Server",
153
+ cell: (s) => (
154
+ <span className="font-mono text-xs">{s.server}</span>
155
+ ),
156
+ },
157
+ { key: "role", header: "Role", cell: (s) => s.role },
158
+ {
159
+ key: "pid",
160
+ hideOnMobile: true,
161
+ header: "PID",
162
+ align: "right",
163
+ cell: (s) => s.pid,
164
+ },
165
+ {
166
+ key: "threads",
167
+ header: "Threads",
168
+ cell: (s) => (
169
+ <UtilisationBar busy={s.threads_busy} max={s.threads_max} />
170
+ ),
171
+ },
172
+ {
173
+ key: "pool",
174
+ hideOnMobile: true,
175
+ header: "DB pool",
176
+ cell: (s) => (
177
+ <UtilisationBar busy={s.pool_busy} max={s.pool_size} />
178
+ ),
179
+ },
180
+ {
181
+ key: "mem",
182
+ hideOnMobile: true,
183
+ header: "Memory",
184
+ align: "right",
185
+ cell: (s) => bytes(s.memory),
186
+ },
187
+ {
188
+ key: "seen",
189
+ header: "Last sample",
190
+ align: "right",
191
+ cell: (s) => (
192
+ <span title={when(s.sampled_at)}>{ago(s.sampled_at)}</span>
193
+ ),
194
+ },
195
+ ]}
196
+ />
197
+ {p.queues.length > 0 && (
198
+ <Card>
199
+ <CardHeader>
200
+ <CardTitle>Queue depth</CardTitle>
201
+ </CardHeader>
202
+ <CardContent>
203
+ <DataTable
204
+ rows={p.queues}
205
+ rowKey={(q) => q.queue}
206
+ columns={[
207
+ { key: "q", header: "Queue", cell: (q) => q.queue },
208
+ {
209
+ key: "d",
210
+ header: "Ready jobs",
211
+ align: "right",
212
+ cell: (q) => count(q.depth),
213
+ },
214
+ ]}
215
+ />
216
+ </CardContent>
217
+ </Card>
218
+ )}
219
+ <div className="grid gap-4 lg:grid-cols-2">
220
+ <ChartPanel label="Thread utilisation" value={percent(utilisation)}>
221
+ <MetricChart
222
+ label="Utilisation"
223
+ format={percent}
224
+ data={p.series.map((s) => ({ t: s.t, value: s.utilisation }))}
225
+ />
226
+ </ChartPanel>
227
+ <ChartPanel label="Backlog" value={count(backlog)}>
228
+ <MetricChart
229
+ label="Backlog"
230
+ color="var(--warning)"
231
+ format={count}
232
+ data={p.series.map((s) => ({ t: s.t, value: s.backlog }))}
233
+ />
234
+ </ChartPanel>
235
+ <ChartPanel label="Queue depth" value={count(queueDepth)}>
236
+ <MetricChart
237
+ label="Ready jobs"
238
+ format={count}
239
+ data={p.series.map((s) => ({ t: s.t, value: s.queue_depth }))}
240
+ />
241
+ </ChartPanel>
242
+ <ChartPanel label="Oldest job" value={ms(oldestJob)}>
243
+ <MetricChart
244
+ label="Oldest job"
245
+ color="var(--danger)"
246
+ format={(v) => ms(v)}
247
+ data={p.series.map((s) => ({ t: s.t, value: s.queue_latency }))}
248
+ />
249
+ </ChartPanel>
250
+ </div>
251
+ </>
252
+ ) : (
253
+ <EmptyState
254
+ icon={Server}
255
+ title="No health samples yet"
256
+ description="The gem reports thread pool, backlog and queue health every 15s from each web and worker process."
257
+ />
258
+ )}
259
+ <h2 className="text-sm font-semibold">Process boots</h2>
260
+ <DataTable
261
+ rows={p.processes}
262
+ rowKey={(x) => x.id}
263
+ empty={
264
+ <EmptyState
265
+ icon={Server}
266
+ title="No process has booted with Railwatch yet"
267
+ description="Server processes report here once they boot with the gem installed."
268
+ />
269
+ }
270
+ columns={[
271
+ {
272
+ key: "b",
273
+ header: "Booted",
274
+ cell: (x) => (
275
+ <span className="text-xs" title={when(x.booted_at)}>
276
+ {ago(x.booted_at)}
277
+ </span>
278
+ ),
279
+ },
280
+ {
281
+ key: "s",
282
+ header: "Server",
283
+ cell: (x) => <span className="font-mono text-xs">{x.server}</span>,
284
+ },
285
+ { key: "r", header: "Role", cell: (x) => x.role },
286
+ {
287
+ key: "pid",
288
+ hideOnMobile: true,
289
+ header: "PID",
290
+ align: "right",
291
+ cell: (x) => x.pid,
292
+ },
293
+ {
294
+ key: "d",
295
+ header: "Deploy",
296
+ cell: (x) => (
297
+ <span className="font-mono text-xs">
298
+ {x.deploy?.slice(0, 12)}
299
+ </span>
300
+ ),
301
+ },
302
+ {
303
+ key: "v",
304
+ hideOnMobile: true,
305
+ header: "Ruby / Rails / Railwatch",
306
+ cell: (x) => (
307
+ <span className="font-mono text-xs">
308
+ {x.ruby_version} / {x.rails_version} / {x.railwatch_version}
309
+ </span>
310
+ ),
311
+ },
312
+ {
313
+ key: "ad",
314
+ hideOnMobile: true,
315
+ header: "DB / queue / cache",
316
+ cell: (x) => (
317
+ <span className="font-mono text-xs">
318
+ {x.detail.database_adapter} / {x.detail.queue_adapter} /{" "}
319
+ {x.detail.cache_store?.replace("ActiveSupport::Cache::", "")}
320
+ </span>
321
+ ),
322
+ },
323
+ {
324
+ key: "boot",
325
+ hideOnMobile: true,
326
+ header: "Boot",
327
+ align: "right",
328
+ cell: (x) =>
329
+ x.boot_seconds ? `${x.boot_seconds.toFixed(1)}s` : "–",
330
+ },
331
+ ]}
332
+ />
333
+ </EnvLayout>
334
+ )
335
+ }
@@ -0,0 +1,110 @@
1
+ import { Link, usePage } from "@inertiajs/react"
2
+ import { Flame } 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 EnvLayout from "@/layouts/env-layout"
10
+ import { count, ms, pct } from "@/lib/format"
11
+ import * as R from "@/routes"
12
+ import type { SharedProps } from "@/types"
13
+
14
+ interface ProfileGroup {
15
+ group_hash: string
16
+ name: string | null
17
+ profile_id: number
18
+ count: number
19
+ avg_duration: number
20
+ max_samples: number | null
21
+ last_seen_at: string
22
+ }
23
+ interface Props {
24
+ profiles: ProfileGroup[]
25
+ summary: {
26
+ profiles: number
27
+ executions: number
28
+ profiled: number
29
+ avg_samples: number
30
+ }
31
+ }
32
+
33
+ export default function Profiles(p: Props) {
34
+ const { environment, window } = usePage<SharedProps>().props
35
+ const a = environment!.application_id
36
+ const e = environment!.id
37
+ const s = p.summary
38
+
39
+ return (
40
+ <EnvLayout title="Profiles">
41
+ <PageHeader
42
+ title="Profiles"
43
+ description="Sampled stack profiles, grouped by the execution they profiled."
44
+ />
45
+ <StatStrip>
46
+ <Stat label="Profiles" value={count(s.profiles)} />
47
+ <Stat
48
+ label="Executions profiled"
49
+ value={pct(s.profiled, s.executions)}
50
+ hint={`${count(s.profiled)} of ${count(s.executions)}`}
51
+ />
52
+ <Stat label="Avg samples" value={count(s.avg_samples)} />
53
+ </StatStrip>
54
+ <DataTable
55
+ rows={p.profiles}
56
+ rowKey={(g) => g.group_hash}
57
+ empty={
58
+ <EmptyState
59
+ icon={Flame}
60
+ title="No profiles in this window"
61
+ description="Set RAILWATCH_PROFILE_SAMPLE_RATE in the app to profile slow executions."
62
+ />
63
+ }
64
+ columns={[
65
+ {
66
+ key: "name",
67
+ header: "Execution",
68
+ className: "max-w-0",
69
+ cell: (g) => (
70
+ <Link
71
+ href={R.applicationEnvironmentProfilePath(a, e, g.profile_id, {
72
+ window,
73
+ })}
74
+ className="block truncate font-mono text-xs hover:underline"
75
+ >
76
+ {g.name ?? g.group_hash}
77
+ </Link>
78
+ ),
79
+ },
80
+ {
81
+ key: "n",
82
+ header: "Profiles",
83
+ align: "right",
84
+ cell: (g) => count(g.count),
85
+ },
86
+ {
87
+ key: "avg",
88
+ header: "Avg duration",
89
+ align: "right",
90
+ cell: (g) => ms(g.avg_duration),
91
+ },
92
+ {
93
+ key: "samples",
94
+ hideOnMobile: true,
95
+ header: "Max samples",
96
+ align: "right",
97
+ cell: (g) => count(g.max_samples),
98
+ },
99
+ {
100
+ key: "last",
101
+ hideOnMobile: true,
102
+ header: "Last seen",
103
+ align: "right",
104
+ cell: (g) => <RelativeTime iso={g.last_seen_at} />,
105
+ },
106
+ ]}
107
+ />
108
+ </EnvLayout>
109
+ )
110
+ }