railwatch 0.4.0 → 0.5.1

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 (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -0
  3. data/app/controllers/railwatch/commands_controller.rb +1 -1
  4. data/app/controllers/railwatch/environment_scoped.rb +18 -36
  5. data/app/controllers/railwatch/exceptions_controller.rb +8 -9
  6. data/app/controllers/railwatch/processes_controller.rb +1 -1
  7. data/app/controllers/railwatch/releases_controller.rb +2 -2
  8. data/app/controllers/railwatch/requests_controller.rb +1 -19
  9. data/app/controllers/railwatch/tenants_controller.rb +2 -2
  10. data/app/controllers/railwatch/thresholds_controller.rb +8 -1
  11. data/app/jobs/railwatch/detect_performance_issues_job.rb +12 -2
  12. data/app/models/railwatch/anomaly_rule.rb +20 -2
  13. data/app/models/railwatch/execution_presenter.rb +1 -1
  14. data/app/models/railwatch/filter_query.rb +20 -0
  15. data/app/models/railwatch/saved_view.rb +1 -1
  16. data/app/models/railwatch/telemetry/aggregations.rb +154 -19
  17. data/app/models/railwatch/telemetry/exception.rb +7 -0
  18. data/app/models/railwatch/telemetry/execution.rb +18 -0
  19. data/app/models/railwatch/telemetry/log.rb +6 -0
  20. data/app/models/railwatch/telemetry/query.rb +7 -0
  21. data/app/models/railwatch/telemetry/release_health.rb +12 -6
  22. data/app/models/railwatch/telemetry/rollup.rb +17 -2
  23. data/app/models/railwatch/telemetry/tenant.rb +8 -23
  24. data/app/models/railwatch/telemetry_record.rb +8 -6
  25. data/app/models/railwatch/threshold.rb +41 -4
  26. data/app/models/railwatch/window.rb +66 -0
  27. data/docs/embedded.md +11 -0
  28. data/lib/railwatch/version.rb +1 -1
  29. data/lib/railwatch.rb +12 -0
  30. data/public/railwatch/assets/app-layout-DDyQa72H.js +1 -0
  31. data/public/railwatch/assets/{app-wordmark-DDNuuq5_.js → app-wordmark-o9CODKP0.js} +1 -1
  32. data/public/railwatch/assets/{appearance-C3LMdsDy.js → appearance-BwuCXabr.js} +1 -1
  33. data/public/railwatch/assets/application-B7h1MIhi.css +1 -0
  34. data/public/railwatch/assets/{arrow-up-DYTCBENO.js → arrow-up-C6PxDiY3.js} +1 -1
  35. data/public/railwatch/assets/{auth-layout-CzPRawuI.js → auth-layout-BRt8MGFD.js} +1 -1
  36. data/public/railwatch/assets/{badge-s7YDycYg.js → badge-CAxXV8za.js} +1 -1
  37. data/public/railwatch/assets/{braces-BFrg-bvp.js → braces-DgomTCNf.js} +1 -1
  38. data/public/railwatch/assets/{card-DiW-JhK3.js → card-cAtqCxWl.js} +1 -1
  39. data/public/railwatch/assets/{chart-nsdZV0Dv.js → chart-BBeBkkNa.js} +1 -1
  40. data/public/railwatch/assets/{chart-hover-DMWx5-Rs.js → chart-hover-B1M9jc0y.js} +1 -1
  41. data/public/railwatch/assets/chart-panel-DUQTz_C8.js +1 -0
  42. data/public/railwatch/assets/{checkbox-C2AqEZXX.js → checkbox-CmhMHWZO.js} +1 -1
  43. data/public/railwatch/assets/{code-DVJtYP7h.js → code-DESvxyTj.js} +1 -1
  44. data/public/railwatch/assets/{copy-block-D1myf7is.js → copy-block-BkSU5832.js} +1 -1
  45. data/public/railwatch/assets/{copy-id-CyRCMfdH.js → copy-id-D03GhN9F.js} +1 -1
  46. data/public/railwatch/assets/{cursor-load-more-JfSVBn9C.js → cursor-load-more-CRyuMeQb.js} +1 -1
  47. data/public/railwatch/assets/{data-table-CwtPkw_i.js → data-table-BIlt7Rtm.js} +1 -1
  48. data/public/railwatch/assets/{edit-fB83T9Yh.js → edit-Bb6MKoe4.js} +1 -1
  49. data/public/railwatch/assets/{edit-BvTugIpj.js → edit-DJ0D0wHN.js} +1 -1
  50. data/public/railwatch/assets/{edit-DvpDUM-t.js → edit-O0NSBWxo.js} +1 -1
  51. data/public/railwatch/assets/{empty-state-CshhuRUU.js → empty-state-C38il627.js} +1 -1
  52. data/public/railwatch/assets/env-layout-REF7OM4q.js +1 -0
  53. data/public/railwatch/assets/{execution-path-CdEerUGH.js → execution-path-FYLq1TwC.js} +1 -1
  54. data/public/railwatch/assets/{filter-bar-BMHf8xBb.js → filter-bar-CYog9Alp.js} +1 -1
  55. data/public/railwatch/assets/{flamegraph-uYWk1Yov.js → flamegraph-DSs69foN.js} +1 -1
  56. data/public/railwatch/assets/{frames-B5ZECkvt.js → frames-BUi2J5Mk.js} +1 -1
  57. data/public/railwatch/assets/{google-sign-in-button-CAvsXYb4.js → google-sign-in-button-BQiIKFdd.js} +1 -1
  58. data/public/railwatch/assets/{index-X13K9BbO.js → index-8-hnAhOD.js} +1 -1
  59. data/public/railwatch/assets/{index-Czq2bi1U.js → index-BaR1U9An.js} +1 -1
  60. data/public/railwatch/assets/{index-iVNm3uzI.js → index-BeOh2t_S.js} +1 -1
  61. data/public/railwatch/assets/{index-vC9KU2bt.js → index-BiiyMcA0.js} +1 -1
  62. data/public/railwatch/assets/{index-B-qRsj0W.js → index-BoUBioBP.js} +1 -1
  63. data/public/railwatch/assets/{index-B4IRsZXK.js → index-C-PmdhXA.js} +1 -1
  64. data/public/railwatch/assets/{index-fA7h22qS.js → index-C3A_9imx.js} +1 -1
  65. data/public/railwatch/assets/{index-DcuyMiuG.js → index-C7OtLq_3.js} +1 -1
  66. data/public/railwatch/assets/{index-BMgA9NNc.js → index-CFFpnzIS.js} +1 -1
  67. data/public/railwatch/assets/{index-CAkCcAty.js → index-CFRLPs4J.js} +1 -1
  68. data/public/railwatch/assets/{index-DMcsT2ES.js → index-CGs4m_fa.js} +1 -1
  69. data/public/railwatch/assets/{index-DuGGTdIJ.js → index-CICUIFHL.js} +1 -1
  70. data/public/railwatch/assets/{index-DVUwgfqP.js → index-C_upSl_k.js} +1 -1
  71. data/public/railwatch/assets/{index-CaJvo0Oc.js → index-CiPo4Gob.js} +1 -1
  72. data/public/railwatch/assets/{index-BIom4V2g.js → index-CpkI015n.js} +1 -1
  73. data/public/railwatch/assets/{index-Zf9xXwq7.js → index-CrZ3vHDL.js} +1 -1
  74. data/public/railwatch/assets/{index-ClJtZh5Q.js → index-CsoN51vW.js} +1 -1
  75. data/public/railwatch/assets/{index-1-78ZewP.js → index-DDI_Zx5V.js} +1 -1
  76. data/public/railwatch/assets/index-DSvlZVWG.js +1 -0
  77. data/public/railwatch/assets/{index-C7bU7oUF.js → index-DW2CBbxU.js} +1 -1
  78. data/public/railwatch/assets/{index-DzoUj38Q.js → index-Dh4IRLFI.js} +1 -1
  79. data/public/railwatch/assets/{index-CdM3F3jz.js → index-DqTFTP8p.js} +1 -1
  80. data/public/railwatch/assets/index-DrcKVG2f.js +1 -0
  81. data/public/railwatch/assets/{index-BIZsdfdM.js → index-DtHmuB9Q.js} +1 -1
  82. data/public/railwatch/assets/{index-QxAKxnHK.js → index-DvjY3dPD.js} +1 -1
  83. data/public/railwatch/assets/{index-dKn1tKSX.js → index-FhUaPPab.js} +1 -1
  84. data/public/railwatch/assets/{index-DYrF-A96.js → index-JdCVBrw8.js} +1 -1
  85. data/public/railwatch/assets/{index-DWMKU6mG.js → index-QpTtwFwu.js} +1 -1
  86. data/public/railwatch/assets/{index-Bw_ByIps.js → index-ZOGOB8SA.js} +1 -1
  87. data/public/railwatch/assets/{index-D-O1LUPq.js → index-ZSZg9rtq.js} +1 -1
  88. data/public/railwatch/assets/{index-ClG89uia.js → index-r0tSIplE.js} +1 -1
  89. data/public/railwatch/assets/{index-DJIXGkfB.js → index-sTYvcbkh.js} +1 -1
  90. data/public/railwatch/assets/{index-n16aviHx.js → index-so4lRrRq.js} +1 -1
  91. data/public/railwatch/assets/{index-CRShH-fR.js → index-tpz-OGUP.js} +1 -1
  92. data/public/railwatch/assets/{index-BpnfuXi-.js → index-umIAl-pL.js} +1 -1
  93. data/public/railwatch/assets/{inertia-CUTKXjxg.js → inertia-DLew8ZNx.js} +2 -2
  94. data/public/railwatch/assets/{input-error-C8ycyeD0.js → input-error-cvM6_Jht.js} +1 -1
  95. data/public/railwatch/assets/{json-viewer-CJECqZ0l.js → json-viewer-D922McGi.js} +1 -1
  96. data/public/railwatch/assets/{klass-Br9dng39.js → klass-CrwICqN8.js} +1 -1
  97. data/public/railwatch/assets/{label-B32Ks8n7.js → label-GWl7I6sf.js} +1 -1
  98. data/public/railwatch/assets/{layout-5ZhRtywp.js → layout-0ZAnD3zl.js} +1 -1
  99. data/public/railwatch/assets/{live-dot-Bb1UYT9F.js → live-dot-D1n_BreY.js} +1 -1
  100. data/public/railwatch/assets/{nav-XUcwnBso.js → nav-DPxr1NNC.js} +1 -1
  101. data/public/railwatch/assets/{new-0xyEF6NL.js → new-Cdl6pqST.js} +1 -1
  102. data/public/railwatch/assets/{new-GIkDYLt8.js → new-D-ZzUK9a.js} +1 -1
  103. data/public/railwatch/assets/{new-CdvlEBjJ.js → new-DEVkYv-z.js} +1 -1
  104. data/public/railwatch/assets/{new-YBWOo9_V.js → new-DHAHDrN7.js} +1 -1
  105. data/public/railwatch/assets/{new-CV011uLi.js → new-Dz4lZf1L.js} +1 -1
  106. data/public/railwatch/assets/{new-D9-ORiNW.js → new-GMrRFurX.js} +1 -1
  107. data/public/railwatch/assets/{onboarding-BqEuP-Ml.js → onboarding-D1vwaHYT.js} +1 -1
  108. data/public/railwatch/assets/{origin-identity-DrJ4D2TX.js → origin-identity-Bk9yHWZ1.js} +1 -1
  109. data/public/railwatch/assets/{percentile-picker-_wllqYoJ.js → percentile-picker-DfSx9yJO.js} +1 -1
  110. data/public/railwatch/assets/{relative-time-CV7V8aSP.js → relative-time-CjIjb8Lg.js} +1 -1
  111. data/public/railwatch/assets/{release-health-DRNLZtT7.js → release-health-4b3tivEf.js} +1 -1
  112. data/public/railwatch/assets/{route-D9slUz_a.js → route-C_5BUtHK.js} +1 -1
  113. data/public/railwatch/assets/{segmented-Bj70Htrs.js → segmented-BgbT3wZa.js} +1 -1
  114. data/public/railwatch/assets/{select-DJBZX2ky.js → select-DmunxCKE.js} +1 -1
  115. data/public/railwatch/assets/{separator-UUo0bkyc.js → separator-BXzEdZ_8.js} +1 -1
  116. data/public/railwatch/assets/series-chart-Xf49v9cv.js +1 -0
  117. data/public/railwatch/assets/{show-BQtEcTeD.js → show-B2zLAW83.js} +1 -1
  118. data/public/railwatch/assets/{show-DR6u4CR7.js → show-BLpWUHWD.js} +1 -1
  119. data/public/railwatch/assets/{show-Pu3Iehw5.js → show-CAl7xcex.js} +1 -1
  120. data/public/railwatch/assets/{show-DoCg0ifP.js → show-DI8IhNUH.js} +1 -1
  121. data/public/railwatch/assets/{show-BT3tKCgP.js → show-DSP9Cq_C.js} +2 -2
  122. data/public/railwatch/assets/{show-C0uC3gnA.js → show-DXs4deaC.js} +1 -1
  123. data/public/railwatch/assets/{show-D7tP881O.js → show-DYskfl3-.js} +1 -1
  124. data/public/railwatch/assets/{show-BpyCRL-I.js → show-DcpTFiLi.js} +1 -1
  125. data/public/railwatch/assets/{show-yQipmite.js → show-Dily73Xk.js} +1 -1
  126. data/public/railwatch/assets/{show-COfP8yWt.js → show-DlRVS18-.js} +1 -1
  127. data/public/railwatch/assets/{show-ChDJZjoj.js → show-Dn-GwFZL.js} +1 -1
  128. data/public/railwatch/assets/{show-BoG7jcwk.js → show-DnR1Dnjd.js} +1 -1
  129. data/public/railwatch/assets/{show-DnBCvlnd.js → show-SHwZjXb7.js} +1 -1
  130. data/public/railwatch/assets/{show-CefJwag7.js → show-SvLOcPrx.js} +1 -1
  131. data/public/railwatch/assets/{show-D7IL22Hy.js → show-Y74rM0VT.js} +1 -1
  132. data/public/railwatch/assets/{show-TTCk2Met.js → show-mU38uGTg.js} +1 -1
  133. data/public/railwatch/assets/{show-GruxlCov.js → show-vQ4bndYD.js} +1 -1
  134. data/public/railwatch/assets/{sort-header-CqQQhaxg.js → sort-header-Dcq9bzmo.js} +1 -1
  135. data/public/railwatch/assets/{sparkline-cell-BwdBz0yv.js → sparkline-cell-BON3qQUB.js} +1 -1
  136. data/public/railwatch/assets/{stat-IghK3WjD.js → stat-DFEyFxkO.js} +1 -1
  137. data/public/railwatch/assets/{status-badge-XYUN9gUA.js → status-badge-BaUKP7Yo.js} +1 -1
  138. data/public/railwatch/assets/{tenant-path-SxnZbfU1.js → tenant-path-DPZPc985.js} +1 -1
  139. data/public/railwatch/assets/{text-link-NCL9N5D5.js → text-link-BO77t9Xk.js} +1 -1
  140. data/public/railwatch/assets/{textarea-DhI1dmQa.js → textarea-DTqrCiV0.js} +1 -1
  141. data/public/railwatch/assets/{timeline-CLAwsAlo.js → timeline-D5rJ0es2.js} +1 -1
  142. data/public/railwatch/assets/{transition-DpTb9Yiv.js → transition-DMIrZVth.js} +1 -1
  143. data/public/railwatch/assets/{use-clipboard-D5i6e5kf.js → use-clipboard-ByoUGQqA.js} +1 -1
  144. data/public/railwatch/assets/{use-live-V-slSdFJ.js → use-live-D7xKz2ma.js} +1 -1
  145. data/public/railwatch/manifest.json +1288 -1288
  146. metadata +118 -117
  147. data/public/railwatch/assets/app-layout-DUk54qUM.js +0 -1
  148. data/public/railwatch/assets/application-CwshqwM6.css +0 -1
  149. data/public/railwatch/assets/chart-panel-BlirnMrQ.js +0 -1
  150. data/public/railwatch/assets/env-layout-Dkp_4NvM.js +0 -1
  151. data/public/railwatch/assets/index-CZWzIE8F.js +0 -1
  152. data/public/railwatch/assets/index-DpWQMikK.js +0 -1
  153. data/public/railwatch/assets/series-chart-C1YrNlID.js +0 -1
  154. /data/db/railwatch_telemetry_migrate/{20260919000000_create_export_queue.rb → 20260919000100_create_export_queue.rb} +0 -0
@@ -1 +1 @@
1
- import{c as U,u as V,j as o,e as X,ah as Y,L as Z}from"./inertia-CUTKXjxg.js";import{D as ee}from"./chart-panel-BlirnMrQ.js";import{D as Q}from"./data-table-CwtPkw_i.js";import{P as te,E as ne}from"./env-layout-Dkp_4NvM.js";import{u as oe,P as re}from"./percentile-picker-_wllqYoJ.js";import{S as L}from"./sort-header-CqQQhaxg.js";import{S as se}from"./sparkline-cell-BwdBz0yv.js";import{B as ie}from"./badge-s7YDycYg.js";import{e as ce}from"./execution-path-CdEerUGH.js";import{m as G,c as J,w as ae}from"./format-B9SDkrWj.js";import"./series-chart-C1YrNlID.js";import"./chart-hover-DMWx5-Rs.js";import"./chart-nsdZV0Dv.js";import"./empty-state-CshhuRUU.js";import"./app-layout-DUk54qUM.js";import"./app-wordmark-DDNuuq5_.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./checkbox-C2AqEZXX.js";import"./label-B32Ks8n7.js";import"./use-live-V-slSdFJ.js";import"./segmented-Bj70Htrs.js";import"./arrow-up-DYTCBENO.js";function le(t){const e=U.c(3),{outcome:c}=t,a=c==="rollback"?"destructive":c==="restart"?"secondary":c==="commit"?"outline":"secondary",n=c||"open";let s;return e[0]!==n||e[1]!==a?(s=o.jsx(ie,{variant:a,className:"font-mono",children:n}),e[0]=n,e[1]=a,e[2]=s):s=e[2],s}function Ge(t){const e=U.c(70),{environment:c,window:a}=V().props,{percentile:n}=oe(),s=c.application_id,l=c.id;let N;e[0]!==s||e[1]!==l||e[2]!==t.dir||e[3]!==t.sort||e[4]!==a?(N=i=>X.visit(Y(s,l,{window:a,sort:i,dir:t.sort===i&&t.dir==="desc"?"asc":"desc"}),{preserveState:!0}),e[0]=s,e[1]=l,e[2]=t.dir,e[3]=t.sort,e[4]=a,e[5]=N):N=e[5];const r=N;let P;e[6]===Symbol.for("react.memo_cache_sentinel")?(P=o.jsx(te,{title:"Transactions",description:"ActiveRecord transactions, grouped by connection and outcome.",actions:o.jsx(re,{})}),e[6]=P):P=e[6];let m;e[7]!==t.series||e[8]!==n?(m=o.jsx(ee,{label:"Duration",data:t.series,percentile:n}),e[7]=t.series,e[8]=n,e[9]=m):m=e[9];let C,O;e[10]===Symbol.for("react.memo_cache_sentinel")?(C={key:"name",header:"Connection · outcome",cell:be},O={key:"trend",hideOnMobile:!0,header:"Trend",cell:ge},e[10]=C,e[11]=O):(C=e[10],O=e[11]);const A=t.sort==="count",H=t.dir==="asc"?"asc":"desc";let u;e[12]!==r?(u=()=>r("count"),e[12]=r,e[13]=u):u=e[13];let d;e[14]!==A||e[15]!==H||e[16]!==u?(d={key:"n",header:o.jsx(L,{label:"Count",active:A,dir:H,onClick:u}),align:"right",cell:ye},e[14]=A,e[15]=H,e[16]=u,e[17]=d):d=e[17];const K=t.sort==="errors",$=t.dir==="asc"?"asc":"desc";let f;e[18]!==r?(f=()=>r("errors"),e[18]=r,e[19]=f):f=e[19];let h;e[20]!==$||e[21]!==f||e[22]!==K?(h={key:"errors",hideOnMobile:!0,header:o.jsx(L,{label:"Rollbacks",active:K,dir:$,onClick:f}),align:"right",cell:_e},e[20]=$,e[21]=f,e[22]=K,e[23]=h):h=e[23];const W=t.sort==="avg",q=t.dir==="asc"?"asc":"desc";let x;e[24]!==r?(x=()=>r("avg"),e[24]=r,e[25]=x):x=e[25];let p;e[26]!==W||e[27]!==q||e[28]!==x?(p={key:"avg",hideOnMobile:!0,header:o.jsx(L,{label:"Avg",active:W,dir:q,onClick:x}),align:"right",cell:pe},e[26]=W,e[27]=q,e[28]=x,e[29]=p):p=e[29];const z=t.sort===n,F=t.dir==="asc"?"asc":"desc";let _;e[30]!==n||e[31]!==r?(_=()=>r(n),e[30]=n,e[31]=r,e[32]=_):_=e[32];let y;e[33]!==n||e[34]!==z||e[35]!==F||e[36]!==_?(y=o.jsx(L,{label:n,active:z,dir:F,onClick:_}),e[33]=n,e[34]=z,e[35]=F,e[36]=_,e[37]=y):y=e[37];let g;e[38]!==n?(g=i=>o.jsx("span",{className:"font-semibold",children:G(i[n],2)}),e[38]=n,e[39]=g):g=e[39];let b;e[40]!==n||e[41]!==y||e[42]!==g?(b={key:n,header:y,align:"right",cell:g},e[40]=n,e[41]=y,e[42]=g,e[43]=b):b=e[43];let j;e[44]!==h||e[45]!==p||e[46]!==b||e[47]!==d?(j=[C,O,d,h,p,b],e[44]=h,e[45]=p,e[46]=b,e[47]=d,e[48]=j):j=e[48];let k;e[49]!==t.transactions||e[50]!==j?(k=o.jsx(Q,{rows:t.transactions,rowKey:je,empty:"No transactions in this window.",columns:j}),e[49]=t.transactions,e[50]=j,e[51]=k):k=e[51];let D;e[52]===Symbol.for("react.memo_cache_sentinel")?(D=o.jsx("h2",{className:"text-sm font-semibold",children:"Recent transactions"}),e[52]=D):D=e[52];let M,T,E,R;e[53]===Symbol.for("react.memo_cache_sentinel")?(M={key:"when",header:"When",className:"w-40",cell:he},T={key:"conn",hideOnMobile:!0,header:"Connection",cell:fe},E={key:"outcome",header:"Outcome",cell:de},R={key:"statements",hideOnMobile:!0,header:"Statements",align:"right",cell:ue},e[53]=M,e[54]=T,e[55]=E,e[56]=R):(M=e[53],T=e[54],E=e[55],R=e[56]);let v;e[57]!==s||e[58]!==l?(v={key:"in",hideOnMobile:!0,header:"In",cell:i=>i.execution_id?o.jsx(Z,{className:"font-mono text-xs hover:underline",href:ce({applicationId:s,environmentId:l,source:i.execution_source,executionId:i.execution_id}),children:i.execution_preview}):o.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})},e[57]=s,e[58]=l,e[59]=v):v=e[59];let B;e[60]===Symbol.for("react.memo_cache_sentinel")?(B={key:"d",header:"Duration",align:"right",cell:me},e[60]=B):B=e[60];let w;e[61]!==v?(w=[M,T,E,R,v,B],e[61]=v,e[62]=w):w=e[62];let S;e[63]!==t.recent||e[64]!==w?(S=o.jsx(Q,{rows:t.recent,rowKey:xe,columns:w}),e[63]=t.recent,e[64]=w,e[65]=S):S=e[65];let I;return e[66]!==m||e[67]!==k||e[68]!==S?(I=o.jsxs(ne,{title:"Transactions",children:[P,m,k,D,S]}),e[66]=m,e[67]=k,e[68]=S,e[69]=I):I=e[69],I}function me(t){return G(t.duration,2)}function ue(t){return t.statement_count===null?"—":J(t.statement_count)}function de(t){return o.jsx(le,{outcome:t.outcome})}function fe(t){return o.jsx("span",{className:"font-mono text-xs",children:t.connection??""})}function he(t){return o.jsx("span",{className:"text-xs tabular-nums",children:ae(t.occurred_at)})}function xe(t){return t.id}function pe(t){return G(t.avg,2)}function _e(t){return J(t.errors)}function ye(t){return J(t.count)}function ge(t){return o.jsx(se,{data:t.sparkline})}function be(t){return o.jsx("span",{className:"font-mono text-xs",children:t.name})}function je(t){return t.group_hash}export{Ge as default};
1
+ import{c as U,u as V,j as o,e as X,ah as Y,L as Z}from"./inertia-DLew8ZNx.js";import{D as ee}from"./chart-panel-DUQTz_C8.js";import{D as Q}from"./data-table-BIlt7Rtm.js";import{P as te,E as ne}from"./env-layout-REF7OM4q.js";import{u as oe,P as re}from"./percentile-picker-DfSx9yJO.js";import{S as L}from"./sort-header-Dcq9bzmo.js";import{S as se}from"./sparkline-cell-BON3qQUB.js";import{B as ie}from"./badge-CAxXV8za.js";import{e as ce}from"./execution-path-FYLq1TwC.js";import{m as G,c as J,w as ae}from"./format-B9SDkrWj.js";import"./series-chart-Xf49v9cv.js";import"./chart-hover-B1M9jc0y.js";import"./chart-BBeBkkNa.js";import"./empty-state-C38il627.js";import"./app-layout-DDyQa72H.js";import"./app-wordmark-o9CODKP0.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./checkbox-CmhMHWZO.js";import"./label-GWl7I6sf.js";import"./use-live-D7xKz2ma.js";import"./segmented-BgbT3wZa.js";import"./arrow-up-C6PxDiY3.js";function le(t){const e=U.c(3),{outcome:c}=t,a=c==="rollback"?"destructive":c==="restart"?"secondary":c==="commit"?"outline":"secondary",n=c||"open";let s;return e[0]!==n||e[1]!==a?(s=o.jsx(ie,{variant:a,className:"font-mono",children:n}),e[0]=n,e[1]=a,e[2]=s):s=e[2],s}function Ge(t){const e=U.c(70),{environment:c,window:a}=V().props,{percentile:n}=oe(),s=c.application_id,l=c.id;let N;e[0]!==s||e[1]!==l||e[2]!==t.dir||e[3]!==t.sort||e[4]!==a?(N=i=>X.visit(Y(s,l,{window:a,sort:i,dir:t.sort===i&&t.dir==="desc"?"asc":"desc"}),{preserveState:!0}),e[0]=s,e[1]=l,e[2]=t.dir,e[3]=t.sort,e[4]=a,e[5]=N):N=e[5];const r=N;let P;e[6]===Symbol.for("react.memo_cache_sentinel")?(P=o.jsx(te,{title:"Transactions",description:"ActiveRecord transactions, grouped by connection and outcome.",actions:o.jsx(re,{})}),e[6]=P):P=e[6];let m;e[7]!==t.series||e[8]!==n?(m=o.jsx(ee,{label:"Duration",data:t.series,percentile:n}),e[7]=t.series,e[8]=n,e[9]=m):m=e[9];let C,O;e[10]===Symbol.for("react.memo_cache_sentinel")?(C={key:"name",header:"Connection · outcome",cell:be},O={key:"trend",hideOnMobile:!0,header:"Trend",cell:ge},e[10]=C,e[11]=O):(C=e[10],O=e[11]);const A=t.sort==="count",H=t.dir==="asc"?"asc":"desc";let u;e[12]!==r?(u=()=>r("count"),e[12]=r,e[13]=u):u=e[13];let d;e[14]!==A||e[15]!==H||e[16]!==u?(d={key:"n",header:o.jsx(L,{label:"Count",active:A,dir:H,onClick:u}),align:"right",cell:ye},e[14]=A,e[15]=H,e[16]=u,e[17]=d):d=e[17];const K=t.sort==="errors",$=t.dir==="asc"?"asc":"desc";let f;e[18]!==r?(f=()=>r("errors"),e[18]=r,e[19]=f):f=e[19];let h;e[20]!==$||e[21]!==f||e[22]!==K?(h={key:"errors",hideOnMobile:!0,header:o.jsx(L,{label:"Rollbacks",active:K,dir:$,onClick:f}),align:"right",cell:_e},e[20]=$,e[21]=f,e[22]=K,e[23]=h):h=e[23];const W=t.sort==="avg",q=t.dir==="asc"?"asc":"desc";let x;e[24]!==r?(x=()=>r("avg"),e[24]=r,e[25]=x):x=e[25];let p;e[26]!==W||e[27]!==q||e[28]!==x?(p={key:"avg",hideOnMobile:!0,header:o.jsx(L,{label:"Avg",active:W,dir:q,onClick:x}),align:"right",cell:pe},e[26]=W,e[27]=q,e[28]=x,e[29]=p):p=e[29];const z=t.sort===n,F=t.dir==="asc"?"asc":"desc";let _;e[30]!==n||e[31]!==r?(_=()=>r(n),e[30]=n,e[31]=r,e[32]=_):_=e[32];let y;e[33]!==n||e[34]!==z||e[35]!==F||e[36]!==_?(y=o.jsx(L,{label:n,active:z,dir:F,onClick:_}),e[33]=n,e[34]=z,e[35]=F,e[36]=_,e[37]=y):y=e[37];let g;e[38]!==n?(g=i=>o.jsx("span",{className:"font-semibold",children:G(i[n],2)}),e[38]=n,e[39]=g):g=e[39];let b;e[40]!==n||e[41]!==y||e[42]!==g?(b={key:n,header:y,align:"right",cell:g},e[40]=n,e[41]=y,e[42]=g,e[43]=b):b=e[43];let j;e[44]!==h||e[45]!==p||e[46]!==b||e[47]!==d?(j=[C,O,d,h,p,b],e[44]=h,e[45]=p,e[46]=b,e[47]=d,e[48]=j):j=e[48];let k;e[49]!==t.transactions||e[50]!==j?(k=o.jsx(Q,{rows:t.transactions,rowKey:je,empty:"No transactions in this window.",columns:j}),e[49]=t.transactions,e[50]=j,e[51]=k):k=e[51];let D;e[52]===Symbol.for("react.memo_cache_sentinel")?(D=o.jsx("h2",{className:"text-sm font-semibold",children:"Recent transactions"}),e[52]=D):D=e[52];let M,T,E,R;e[53]===Symbol.for("react.memo_cache_sentinel")?(M={key:"when",header:"When",className:"w-40",cell:he},T={key:"conn",hideOnMobile:!0,header:"Connection",cell:fe},E={key:"outcome",header:"Outcome",cell:de},R={key:"statements",hideOnMobile:!0,header:"Statements",align:"right",cell:ue},e[53]=M,e[54]=T,e[55]=E,e[56]=R):(M=e[53],T=e[54],E=e[55],R=e[56]);let v;e[57]!==s||e[58]!==l?(v={key:"in",hideOnMobile:!0,header:"In",cell:i=>i.execution_id?o.jsx(Z,{className:"font-mono text-xs hover:underline",href:ce({applicationId:s,environmentId:l,source:i.execution_source,executionId:i.execution_id}),children:i.execution_preview}):o.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})},e[57]=s,e[58]=l,e[59]=v):v=e[59];let B;e[60]===Symbol.for("react.memo_cache_sentinel")?(B={key:"d",header:"Duration",align:"right",cell:me},e[60]=B):B=e[60];let w;e[61]!==v?(w=[M,T,E,R,v,B],e[61]=v,e[62]=w):w=e[62];let S;e[63]!==t.recent||e[64]!==w?(S=o.jsx(Q,{rows:t.recent,rowKey:xe,columns:w}),e[63]=t.recent,e[64]=w,e[65]=S):S=e[65];let I;return e[66]!==m||e[67]!==k||e[68]!==S?(I=o.jsxs(ne,{title:"Transactions",children:[P,m,k,D,S]}),e[66]=m,e[67]=k,e[68]=S,e[69]=I):I=e[69],I}function me(t){return G(t.duration,2)}function ue(t){return t.statement_count===null?"—":J(t.statement_count)}function de(t){return o.jsx(le,{outcome:t.outcome})}function fe(t){return o.jsx("span",{className:"font-mono text-xs",children:t.connection??""})}function he(t){return o.jsx("span",{className:"text-xs tabular-nums",children:ae(t.occurred_at)})}function xe(t){return t.id}function pe(t){return G(t.avg,2)}function _e(t){return J(t.errors)}function ye(t){return J(t.count)}function ge(t){return o.jsx(se,{data:t.sparkline})}function be(t){return o.jsx("span",{className:"font-mono text-xs",children:t.name})}function je(t){return t.group_hash}export{Ge as default};
@@ -1 +1 @@
1
- import{c as ye,u as Se,j as s,e as ve,af as ge,aZ as je,L as _e}from"./inertia-CUTKXjxg.js";import{V as ke,D as we}from"./chart-panel-BlirnMrQ.js";import{D as Pe}from"./data-table-CwtPkw_i.js";import{E as Ce}from"./empty-state-CshhuRUU.js";import{F as qe}from"./filter-bar-BMHf8xBb.js";import{P as Ee,E as Ne}from"./env-layout-Dkp_4NvM.js";import{u as De,P as Me}from"./percentile-picker-_wllqYoJ.js";import{S as V}from"./sort-header-CqQQhaxg.js";import{S as Be}from"./sparkline-cell-BwdBz0yv.js";import{S as X,a as Fe}from"./stat-IghK3WjD.js";import{c as Y,m as H}from"./format-B9SDkrWj.js";import{B as Le}from"./braces-BFrg-bvp.js";import"./series-chart-C1YrNlID.js";import"./chart-hover-DMWx5-Rs.js";import"./chart-nsdZV0Dv.js";import"./badge-s7YDycYg.js";import"./app-wordmark-DDNuuq5_.js";import"./app-layout-DUk54qUM.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./checkbox-C2AqEZXX.js";import"./label-B32Ks8n7.js";import"./use-live-V-slSdFJ.js";import"./segmented-Bj70Htrs.js";import"./arrow-up-DYTCBENO.js";function xt(t){const e=ye.c(115),{environment:be,window:a}=Se().props,{percentile:c}=De(),l=be.application_id,n=be.id,o=t.summary.current;let $;e[0]!==l||e[1]!==n||e[2]!==t.dir||e[3]!==t.q||e[4]!==t.sort||e[5]!==a?($=i=>ve.visit(ge(l,n,{window:a,q:t.q||void 0,sort:i,dir:t.sort===i&&t.dir==="desc"?"asc":"desc"}),{preserveState:!0}),e[0]=l,e[1]=n,e[2]=t.dir,e[3]=t.q,e[4]=t.sort,e[5]=a,e[6]=$):$=e[6];const r=$;let W;e[7]!==l||e[8]!==n||e[9]!==a?(W=i=>je(l,n,i,{window:a}),e[7]=l,e[8]=n,e[9]=a,e[10]=W):W=e[10];const m=W;let Z;e[11]!==m?(Z=(i,xe)=>xe?.newTab?globalThis.window.open(m(i),"_blank"):ve.visit(m(i)),e[11]=m,e[12]=Z):Z=e[12];const ee=Z;let z;e[13]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ee,{title:"Spans",description:"Custom spans your app recorded with Railwatch.span, grouped by name.",actions:s.jsx(Me,{})}),e[13]=z):z=e[13];let d;e[14]!==o.count?(d=Y(o.count),e[14]=o.count,e[15]=d):d=e[15];let u;e[16]!==o.count||e[17]!==t.summary.previous.count?(u={current:o.count,previous:t.summary.previous.count,goodDirection:"up"},e[16]=o.count,e[17]=t.summary.previous.count,e[18]=u):u=e[18];let f;e[19]!==d||e[20]!==u?(f=s.jsx(X,{label:"Spans",value:d,delta:u,deltaCaption:"vs previous period"}),e[19]=d,e[20]=u,e[21]=f):f=e[21];let p;e[22]!==o.errors?(p=Y(o.errors),e[22]=o.errors,e[23]=p):p=e[23];const te=o.errors?"destructive":void 0;let h;e[24]!==p||e[25]!==te?(h=s.jsx(X,{label:"Failed",value:p,tone:te}),e[24]=p,e[25]=te,e[26]=h):h=e[26];const se=o[c]/1e3;let x;e[27]!==se?(x=H(se,2),e[27]=se,e[28]=x):x=e[28];const re=o.avg/1e3;let A;e[29]!==re?(A=H(re,2),e[29]=re,e[30]=A):A=e[30];const ie=`avg ${A}`;let v;e[31]!==c||e[32]!==x||e[33]!==ie?(v=s.jsx(X,{label:c,value:x,hint:ie}),e[31]=c,e[32]=x,e[33]=ie,e[34]=v):v=e[34];const oe=o.max/1e3;let b;e[35]!==oe?(b=H(oe,2),e[35]=oe,e[36]=b):b=e[36];let g;e[37]!==b?(g=s.jsx(X,{label:"Max",value:b}),e[37]=b,e[38]=g):g=e[38];let y;e[39]!==v||e[40]!==g||e[41]!==f||e[42]!==h?(y=s.jsxs(Fe,{children:[f,h,v,g]}),e[39]=v,e[40]=g,e[41]=f,e[42]=h,e[43]=y):y=e[43];let S;e[44]!==t.series?(S=s.jsx(ke,{legend:"outcome",label:"Spans",seriesLabel:"Spans",data:t.series}),e[44]=t.series,e[45]=S):S=e[45];let j;e[46]!==t.series||e[47]!==c?(j=s.jsx(we,{label:"Duration",data:t.series,percentile:c}),e[46]=t.series,e[47]=c,e[48]=j):j=e[48];let _;e[49]!==S||e[50]!==j?(_=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[S,j]}),e[49]=S,e[50]=j,e[51]=_):_=e[51];let G;e[52]===Symbol.for("react.memo_cache_sentinel")?(G={key:"name",label:"Name"},e[52]=G):G=e[52];let I;e[53]===Symbol.for("react.memo_cache_sentinel")?(I=[G,{key:"status",label:"Status",options:["failed"]}],e[53]=I):I=e[53];let k;e[54]!==l||e[55]!==n||e[56]!==t.dir||e[57]!==t.sort||e[58]!==a?(k=i=>ve.visit(ge(l,n,{window:a,q:i||void 0,sort:t.sort,dir:t.dir}),{preserveState:!0}),e[54]=l,e[55]=n,e[56]=t.dir,e[57]=t.sort,e[58]=a,e[59]=k):k=e[59];let w;e[60]!==t.q||e[61]!==k?(w=s.jsx(qe,{value:t.q,fields:I,onChange:k,placeholder:"name:geocode status:failed"}),e[60]=t.q,e[61]=k,e[62]=w):w=e[62];let J;e[63]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(Ce,{icon:Le,title:"No spans in this window",description:"Wrap any code in Railwatch.span('name') { } and it shows up here."}),e[63]=J):J=e[63];let P;e[64]!==ee?(P={onOpen:(i,xe)=>ee(i.group_hash,xe)},e[64]=ee,e[65]=P):P=e[65];let C;e[66]!==m?(C={key:"name",header:"Span",grow:!0,cell:i=>s.jsx(_e,{href:m(i.group_hash),className:"truncate font-mono text-xs hover:underline",children:i.name})},e[66]=m,e[67]=C):C=e[67];let Q;e[68]===Symbol.for("react.memo_cache_sentinel")?(Q={key:"trend",hideOnMobile:!0,header:"Trend",cell:Ve},e[68]=Q):Q=e[68];const ae=t.sort==="count",le=t.dir==="asc"?"asc":"desc";let q;e[69]!==r?(q=()=>r("count"),e[69]=r,e[70]=q):q=e[70];let E;e[71]!==ae||e[72]!==le||e[73]!==q?(E={key:"n",header:s.jsx(V,{label:"Count",active:ae,dir:le,onClick:q}),align:"right",cell:He},e[71]=ae,e[72]=le,e[73]=q,e[74]=E):E=e[74];const ne=t.sort==="errors",ce=t.dir==="asc"?"asc":"desc";let N;e[75]!==r?(N=()=>r("errors"),e[75]=r,e[76]=N):N=e[76];let D;e[77]!==ne||e[78]!==ce||e[79]!==N?(D={key:"failed",header:s.jsx(V,{label:"Failed",active:ne,dir:ce,onClick:N}),align:"right",cell:Ke},e[77]=ne,e[78]=ce,e[79]=N,e[80]=D):D=e[80];const me=t.sort==="p50",de=t.dir==="asc"?"asc":"desc";let M;e[81]!==r?(M=()=>r("p50"),e[81]=r,e[82]=M):M=e[82];let B;e[83]!==me||e[84]!==de||e[85]!==M?(B={key:"p50",hideOnMobile:!0,header:s.jsx(V,{label:"p50",active:me,dir:de,onClick:M}),align:"right",cell:Te},e[83]=me,e[84]=de,e[85]=M,e[86]=B):B=e[86];const ue=t.sort==="p95",fe=t.dir==="asc"?"asc":"desc";let F;e[87]!==r?(F=()=>r("p95"),e[87]=r,e[88]=F):F=e[88];let L;e[89]!==ue||e[90]!==fe||e[91]!==F?(L={key:"p95",header:s.jsx(V,{label:"p95",active:ue,dir:fe,onClick:F}),align:"right",cell:Re},e[89]=ue,e[90]=fe,e[91]=F,e[92]=L):L=e[92];const pe=t.sort==="max",he=t.dir==="asc"?"asc":"desc";let O;e[93]!==r?(O=()=>r("max"),e[93]=r,e[94]=O):O=e[94];let R;e[95]!==pe||e[96]!==he||e[97]!==O?(R={key:"max",hideOnMobile:!0,header:s.jsx(V,{label:"Max",active:pe,dir:he,onClick:O}),align:"right",cell:Oe},e[95]=pe,e[96]=he,e[97]=O,e[98]=R):R=e[98];let T;e[99]!==C||e[100]!==E||e[101]!==D||e[102]!==B||e[103]!==L||e[104]!==R?(T=[C,Q,E,D,B,L,R],e[99]=C,e[100]=E,e[101]=D,e[102]=B,e[103]=L,e[104]=R,e[105]=T):T=e[105];let K;e[106]!==t.spans||e[107]!==P||e[108]!==T?(K=s.jsx(Pe,{rows:t.spans,rowKey:We,empty:J,hoverKey:$e,keyboardNav:P,columns:T}),e[106]=t.spans,e[107]=P,e[108]=T,e[109]=K):K=e[109];let U;return e[110]!==y||e[111]!==_||e[112]!==w||e[113]!==K?(U=s.jsxs(Ne,{title:"Spans",children:[z,y,_,w,K]}),e[110]=y,e[111]=_,e[112]=w,e[113]=K,e[114]=U):U=e[114],U}function Oe(t){return H(t.max,2)}function Re(t){return s.jsx("span",{className:"font-semibold",children:H(t.p95,2)})}function Te(t){return H(t.p50,2)}function Ke(t){return s.jsx("span",{className:t.errors?"text-danger font-semibold":"",children:Y(t.errors)})}function He(t){return Y(t.count)}function Ve(t){return s.jsx(Be,{data:t.sparkline,hoverKey:t.group_hash})}function $e(t){return t.group_hash}function We(t){return t.group_hash}export{xt as default};
1
+ import{c as ye,u as Se,j as s,e as ve,af as ge,aZ as je,L as _e}from"./inertia-DLew8ZNx.js";import{V as ke,D as we}from"./chart-panel-DUQTz_C8.js";import{D as Pe}from"./data-table-BIlt7Rtm.js";import{E as Ce}from"./empty-state-C38il627.js";import{F as qe}from"./filter-bar-CYog9Alp.js";import{P as Ee,E as Ne}from"./env-layout-REF7OM4q.js";import{u as De,P as Me}from"./percentile-picker-DfSx9yJO.js";import{S as V}from"./sort-header-Dcq9bzmo.js";import{S as Be}from"./sparkline-cell-BON3qQUB.js";import{S as X,a as Fe}from"./stat-DFEyFxkO.js";import{c as Y,m as H}from"./format-B9SDkrWj.js";import{B as Le}from"./braces-DgomTCNf.js";import"./series-chart-Xf49v9cv.js";import"./chart-hover-B1M9jc0y.js";import"./chart-BBeBkkNa.js";import"./badge-CAxXV8za.js";import"./app-wordmark-o9CODKP0.js";import"./app-layout-DDyQa72H.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./checkbox-CmhMHWZO.js";import"./label-GWl7I6sf.js";import"./use-live-D7xKz2ma.js";import"./segmented-BgbT3wZa.js";import"./arrow-up-C6PxDiY3.js";function xt(t){const e=ye.c(115),{environment:be,window:a}=Se().props,{percentile:c}=De(),l=be.application_id,n=be.id,o=t.summary.current;let $;e[0]!==l||e[1]!==n||e[2]!==t.dir||e[3]!==t.q||e[4]!==t.sort||e[5]!==a?($=i=>ve.visit(ge(l,n,{window:a,q:t.q||void 0,sort:i,dir:t.sort===i&&t.dir==="desc"?"asc":"desc"}),{preserveState:!0}),e[0]=l,e[1]=n,e[2]=t.dir,e[3]=t.q,e[4]=t.sort,e[5]=a,e[6]=$):$=e[6];const r=$;let W;e[7]!==l||e[8]!==n||e[9]!==a?(W=i=>je(l,n,i,{window:a}),e[7]=l,e[8]=n,e[9]=a,e[10]=W):W=e[10];const m=W;let Z;e[11]!==m?(Z=(i,xe)=>xe?.newTab?globalThis.window.open(m(i),"_blank"):ve.visit(m(i)),e[11]=m,e[12]=Z):Z=e[12];const ee=Z;let z;e[13]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ee,{title:"Spans",description:"Custom spans your app recorded with Railwatch.span, grouped by name.",actions:s.jsx(Me,{})}),e[13]=z):z=e[13];let d;e[14]!==o.count?(d=Y(o.count),e[14]=o.count,e[15]=d):d=e[15];let u;e[16]!==o.count||e[17]!==t.summary.previous.count?(u={current:o.count,previous:t.summary.previous.count,goodDirection:"up"},e[16]=o.count,e[17]=t.summary.previous.count,e[18]=u):u=e[18];let f;e[19]!==d||e[20]!==u?(f=s.jsx(X,{label:"Spans",value:d,delta:u,deltaCaption:"vs previous period"}),e[19]=d,e[20]=u,e[21]=f):f=e[21];let p;e[22]!==o.errors?(p=Y(o.errors),e[22]=o.errors,e[23]=p):p=e[23];const te=o.errors?"destructive":void 0;let h;e[24]!==p||e[25]!==te?(h=s.jsx(X,{label:"Failed",value:p,tone:te}),e[24]=p,e[25]=te,e[26]=h):h=e[26];const se=o[c]/1e3;let x;e[27]!==se?(x=H(se,2),e[27]=se,e[28]=x):x=e[28];const re=o.avg/1e3;let A;e[29]!==re?(A=H(re,2),e[29]=re,e[30]=A):A=e[30];const ie=`avg ${A}`;let v;e[31]!==c||e[32]!==x||e[33]!==ie?(v=s.jsx(X,{label:c,value:x,hint:ie}),e[31]=c,e[32]=x,e[33]=ie,e[34]=v):v=e[34];const oe=o.max/1e3;let b;e[35]!==oe?(b=H(oe,2),e[35]=oe,e[36]=b):b=e[36];let g;e[37]!==b?(g=s.jsx(X,{label:"Max",value:b}),e[37]=b,e[38]=g):g=e[38];let y;e[39]!==v||e[40]!==g||e[41]!==f||e[42]!==h?(y=s.jsxs(Fe,{children:[f,h,v,g]}),e[39]=v,e[40]=g,e[41]=f,e[42]=h,e[43]=y):y=e[43];let S;e[44]!==t.series?(S=s.jsx(ke,{legend:"outcome",label:"Spans",seriesLabel:"Spans",data:t.series}),e[44]=t.series,e[45]=S):S=e[45];let j;e[46]!==t.series||e[47]!==c?(j=s.jsx(we,{label:"Duration",data:t.series,percentile:c}),e[46]=t.series,e[47]=c,e[48]=j):j=e[48];let _;e[49]!==S||e[50]!==j?(_=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[S,j]}),e[49]=S,e[50]=j,e[51]=_):_=e[51];let G;e[52]===Symbol.for("react.memo_cache_sentinel")?(G={key:"name",label:"Name"},e[52]=G):G=e[52];let I;e[53]===Symbol.for("react.memo_cache_sentinel")?(I=[G,{key:"status",label:"Status",options:["failed"]}],e[53]=I):I=e[53];let k;e[54]!==l||e[55]!==n||e[56]!==t.dir||e[57]!==t.sort||e[58]!==a?(k=i=>ve.visit(ge(l,n,{window:a,q:i||void 0,sort:t.sort,dir:t.dir}),{preserveState:!0}),e[54]=l,e[55]=n,e[56]=t.dir,e[57]=t.sort,e[58]=a,e[59]=k):k=e[59];let w;e[60]!==t.q||e[61]!==k?(w=s.jsx(qe,{value:t.q,fields:I,onChange:k,placeholder:"name:geocode status:failed"}),e[60]=t.q,e[61]=k,e[62]=w):w=e[62];let J;e[63]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(Ce,{icon:Le,title:"No spans in this window",description:"Wrap any code in Railwatch.span('name') { } and it shows up here."}),e[63]=J):J=e[63];let P;e[64]!==ee?(P={onOpen:(i,xe)=>ee(i.group_hash,xe)},e[64]=ee,e[65]=P):P=e[65];let C;e[66]!==m?(C={key:"name",header:"Span",grow:!0,cell:i=>s.jsx(_e,{href:m(i.group_hash),className:"truncate font-mono text-xs hover:underline",children:i.name})},e[66]=m,e[67]=C):C=e[67];let Q;e[68]===Symbol.for("react.memo_cache_sentinel")?(Q={key:"trend",hideOnMobile:!0,header:"Trend",cell:Ve},e[68]=Q):Q=e[68];const ae=t.sort==="count",le=t.dir==="asc"?"asc":"desc";let q;e[69]!==r?(q=()=>r("count"),e[69]=r,e[70]=q):q=e[70];let E;e[71]!==ae||e[72]!==le||e[73]!==q?(E={key:"n",header:s.jsx(V,{label:"Count",active:ae,dir:le,onClick:q}),align:"right",cell:He},e[71]=ae,e[72]=le,e[73]=q,e[74]=E):E=e[74];const ne=t.sort==="errors",ce=t.dir==="asc"?"asc":"desc";let N;e[75]!==r?(N=()=>r("errors"),e[75]=r,e[76]=N):N=e[76];let D;e[77]!==ne||e[78]!==ce||e[79]!==N?(D={key:"failed",header:s.jsx(V,{label:"Failed",active:ne,dir:ce,onClick:N}),align:"right",cell:Ke},e[77]=ne,e[78]=ce,e[79]=N,e[80]=D):D=e[80];const me=t.sort==="p50",de=t.dir==="asc"?"asc":"desc";let M;e[81]!==r?(M=()=>r("p50"),e[81]=r,e[82]=M):M=e[82];let B;e[83]!==me||e[84]!==de||e[85]!==M?(B={key:"p50",hideOnMobile:!0,header:s.jsx(V,{label:"p50",active:me,dir:de,onClick:M}),align:"right",cell:Te},e[83]=me,e[84]=de,e[85]=M,e[86]=B):B=e[86];const ue=t.sort==="p95",fe=t.dir==="asc"?"asc":"desc";let F;e[87]!==r?(F=()=>r("p95"),e[87]=r,e[88]=F):F=e[88];let L;e[89]!==ue||e[90]!==fe||e[91]!==F?(L={key:"p95",header:s.jsx(V,{label:"p95",active:ue,dir:fe,onClick:F}),align:"right",cell:Re},e[89]=ue,e[90]=fe,e[91]=F,e[92]=L):L=e[92];const pe=t.sort==="max",he=t.dir==="asc"?"asc":"desc";let O;e[93]!==r?(O=()=>r("max"),e[93]=r,e[94]=O):O=e[94];let R;e[95]!==pe||e[96]!==he||e[97]!==O?(R={key:"max",hideOnMobile:!0,header:s.jsx(V,{label:"Max",active:pe,dir:he,onClick:O}),align:"right",cell:Oe},e[95]=pe,e[96]=he,e[97]=O,e[98]=R):R=e[98];let T;e[99]!==C||e[100]!==E||e[101]!==D||e[102]!==B||e[103]!==L||e[104]!==R?(T=[C,Q,E,D,B,L,R],e[99]=C,e[100]=E,e[101]=D,e[102]=B,e[103]=L,e[104]=R,e[105]=T):T=e[105];let K;e[106]!==t.spans||e[107]!==P||e[108]!==T?(K=s.jsx(Pe,{rows:t.spans,rowKey:We,empty:J,hoverKey:$e,keyboardNav:P,columns:T}),e[106]=t.spans,e[107]=P,e[108]=T,e[109]=K):K=e[109];let U;return e[110]!==y||e[111]!==_||e[112]!==w||e[113]!==K?(U=s.jsxs(Ne,{title:"Spans",children:[z,y,_,w,K]}),e[110]=y,e[111]=_,e[112]=w,e[113]=K,e[114]=U):U=e[114],U}function Oe(t){return H(t.max,2)}function Re(t){return s.jsx("span",{className:"font-semibold",children:H(t.p95,2)})}function Te(t){return H(t.p50,2)}function Ke(t){return s.jsx("span",{className:t.errors?"text-danger font-semibold":"",children:Y(t.errors)})}function He(t){return Y(t.count)}function Ve(t){return s.jsx(Be,{data:t.sparkline,hoverKey:t.group_hash})}function $e(t){return t.group_hash}function We(t){return t.group_hash}export{xt as default};
@@ -1 +1 @@
1
- import{c as M,u as R,j as n,t as A,e as D,L}from"./inertia-CUTKXjxg.js";import{D as N}from"./data-table-CwtPkw_i.js";import{E as O}from"./empty-state-CshhuRUU.js";import{P,E as H}from"./env-layout-Dkp_4NvM.js";import{c as K,m as j,w as $}from"./format-B9SDkrWj.js";import{J as E}from"./app-layout-DUk54qUM.js";import"./chart-hover-DMWx5-Rs.js";import"./badge-s7YDycYg.js";import"./app-wordmark-DDNuuq5_.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./checkbox-C2AqEZXX.js";function pe(t){const e=M.c(25),{environment:S}=R().props,w=S.application_id,b=S.id;let c;e[0]!==w||e[1]!==b?(c=r=>r.execution_id?A(w,b,r.execution_id):null,e[0]=w,e[1]=b,e[2]=c):c=e[2];const o=c;let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(P,{title:"Storage",description:"Active Storage service operations: uploads, downloads, deletes, URL generation, analysis, and transforms."}),e[3]=m):m=e[3];let p,u;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(O,{icon:E,title:"No storage operations in this window",description:"Active Storage reads and writes instrumented by the gem appear here."}),u=[{key:"s",header:"Service",cell:F},{key:"o",header:"Operation",cell:B},{key:"n",header:"Count",align:"right",cell:z},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:W},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:U}],e[4]=p,e[5]=u):(p=e[4],u=e[5]);let i;e[6]!==t.ops?(i=n.jsx(N,{rows:t.ops,rowKey:G,empty:p,columns:u}),e[6]=t.ops,e[7]=i):i=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[8]=d):d=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(O,{icon:E,title:"No storage operations in this window",description:"Active Storage reads and writes instrumented by the gem appear here."}),e[9]=f):f=e[9];let s;e[10]!==o?(s={onOpen:(r,v)=>{const k=o(r);k&&(v?.newTab?window.open(k,"_blank"):D.visit(k))}},e[10]=o,e[11]=s):s=e[11];let h,x,y,_;e[12]===Symbol.for("react.memo_cache_sentinel")?(y={key:"when",header:"When",cell:I},_={key:"o",header:"Op",cell:C},h={key:"k",hideOnMobile:!0,header:"Key",cell:q},x={key:"d",header:"Duration",align:"right",cell:T},e[12]=h,e[13]=x,e[14]=y,e[15]=_):(h=e[12],x=e[13],y=e[14],_=e[15]);let a;e[16]!==o?(a=[y,_,h,x,{key:"in",hideOnMobile:!0,header:"In",cell:r=>{const v=o(r);return v?n.jsx(L,{className:"font-mono text-xs hover:underline",href:v,children:r.execution_preview}):null}}],e[16]=o,e[17]=a):a=e[17];let l;e[18]!==t.recent||e[19]!==a||e[20]!==s?(l=n.jsx(N,{rows:t.recent,rowKey:J,empty:f,keyboardNav:s,columns:a}),e[18]=t.recent,e[19]=a,e[20]=s,e[21]=l):l=e[21];let g;return e[22]!==l||e[23]!==i?(g=n.jsxs(H,{title:"Storage",children:[m,i,d,l]}),e[22]=l,e[23]=i,e[24]=g):g=e[24],g}function T(t){return j(t.duration)}function q(t){return n.jsx("span",{className:"font-mono text-xs",children:t.key})}function C(t){return n.jsxs("span",{className:"font-mono text-xs",children:[t.service," ",t.op]})}function I(t){return n.jsx("span",{className:"text-xs",children:$(t.occurred_at)})}function J(t){return t.id}function U(t){return j(t.max)}function W(t){return j(t.avg)}function z(t){return K(t.count)}function B(t){return n.jsx("span",{className:"font-mono text-xs",children:t.op})}function F(t){return t.service}function G(t){return`${t.service}-${t.op}`}export{pe as default};
1
+ import{c as M,u as R,j as n,t as A,e as D,L}from"./inertia-DLew8ZNx.js";import{D as N}from"./data-table-BIlt7Rtm.js";import{E as O}from"./empty-state-C38il627.js";import{P,E as H}from"./env-layout-REF7OM4q.js";import{c as K,m as j,w as $}from"./format-B9SDkrWj.js";import{_ as E}from"./app-layout-DDyQa72H.js";import"./chart-hover-B1M9jc0y.js";import"./badge-CAxXV8za.js";import"./app-wordmark-o9CODKP0.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./checkbox-CmhMHWZO.js";function pe(t){const e=M.c(25),{environment:S}=R().props,w=S.application_id,b=S.id;let c;e[0]!==w||e[1]!==b?(c=r=>r.execution_id?A(w,b,r.execution_id):null,e[0]=w,e[1]=b,e[2]=c):c=e[2];const o=c;let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(P,{title:"Storage",description:"Active Storage service operations: uploads, downloads, deletes, URL generation, analysis, and transforms."}),e[3]=m):m=e[3];let p,u;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(O,{icon:E,title:"No storage operations in this window",description:"Active Storage reads and writes instrumented by the gem appear here."}),u=[{key:"s",header:"Service",cell:G},{key:"o",header:"Operation",cell:F},{key:"n",header:"Count",align:"right",cell:B},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:z},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:W}],e[4]=p,e[5]=u):(p=e[4],u=e[5]);let i;e[6]!==t.ops?(i=n.jsx(N,{rows:t.ops,rowKey:J,empty:p,columns:u}),e[6]=t.ops,e[7]=i):i=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[8]=d):d=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(O,{icon:E,title:"No storage operations in this window",description:"Active Storage reads and writes instrumented by the gem appear here."}),e[9]=f):f=e[9];let s;e[10]!==o?(s={onOpen:(r,v)=>{const k=o(r);k&&(v?.newTab?window.open(k,"_blank"):D.visit(k))}},e[10]=o,e[11]=s):s=e[11];let h,x,_,y;e[12]===Symbol.for("react.memo_cache_sentinel")?(_={key:"when",header:"When",cell:I},y={key:"o",header:"Op",cell:C},h={key:"k",hideOnMobile:!0,header:"Key",cell:q},x={key:"d",header:"Duration",align:"right",cell:T},e[12]=h,e[13]=x,e[14]=_,e[15]=y):(h=e[12],x=e[13],_=e[14],y=e[15]);let a;e[16]!==o?(a=[_,y,h,x,{key:"in",hideOnMobile:!0,header:"In",cell:r=>{const v=o(r);return v?n.jsx(L,{className:"font-mono text-xs hover:underline",href:v,children:r.execution_preview}):null}}],e[16]=o,e[17]=a):a=e[17];let l;e[18]!==t.recent||e[19]!==a||e[20]!==s?(l=n.jsx(N,{rows:t.recent,rowKey:U,empty:f,keyboardNav:s,columns:a}),e[18]=t.recent,e[19]=a,e[20]=s,e[21]=l):l=e[21];let g;return e[22]!==l||e[23]!==i?(g=n.jsxs(H,{title:"Storage",children:[m,i,d,l]}),e[22]=l,e[23]=i,e[24]=g):g=e[24],g}function T(t){return j(t.duration)}function q(t){return n.jsx("span",{className:"font-mono text-xs",children:t.key})}function C(t){return n.jsxs("span",{className:"font-mono text-xs",children:[t.service," ",t.op]})}function I(t){return n.jsx("span",{className:"text-xs",children:$(t.occurred_at)})}function U(t){return t.id}function W(t){return j(t.max)}function z(t){return j(t.avg)}function B(t){return K(t.count)}function F(t){return n.jsx("span",{className:"font-mono text-xs",children:t.op})}function G(t){return t.service}function J(t){return`${t.service}-${t.op}`}export{pe as default};
@@ -1 +1 @@
1
- import{c as te,u as se,j as s,e as X,am as Y}from"./inertia-CUTKXjxg.js";import{V as re,D as ie}from"./chart-panel-BlirnMrQ.js";import{D as Z}from"./data-table-CwtPkw_i.js";import{E as le}from"./empty-state-CshhuRUU.js";import{F as ne}from"./filter-bar-BMHf8xBb.js";import{E as oe,P as ae}from"./env-layout-Dkp_4NvM.js";import{u as ce,P as me}from"./percentile-picker-_wllqYoJ.js";import{S as J}from"./sort-header-CqQQhaxg.js";import{S as ue}from"./sparkline-cell-BwdBz0yv.js";import{a as de,S as pe}from"./stat-IghK3WjD.js";import{S as fe}from"./status-badge-XYUN9gUA.js";import{c as ee,m as o,p as he,w as xe,b as ge}from"./format-B9SDkrWj.js";import{E as be}from"./app-layout-DUk54qUM.js";import"./series-chart-C1YrNlID.js";import"./chart-hover-DMWx5-Rs.js";import"./chart-nsdZV0Dv.js";import"./badge-s7YDycYg.js";import"./app-wordmark-DDNuuq5_.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./arrow-up-DYTCBENO.js";import"./checkbox-C2AqEZXX.js";const ye=["lcp","cls","inp","ttfb"],je={lcp:"LCP",cls:"CLS",inp:"INP",ttfb:"TTFB"},ve={good:"success","needs-improvement":"warning",poor:"destructive"},_e=(t,e)=>t==="cls"?e.toFixed(2):o(e),Se=t=>[t.lcp===null?null:`LCP ${o(t.lcp)}`,t.inp===null?null:`INP ${o(t.inp)}`,t.cls===null?null:`CLS ${t.cls.toFixed(2)}`].filter(e=>e!==null).join(" · ");function dt(t){const e=te.c(80),{environment:Q,window:a}=se().props,{percentile:r}=ce(),c=Q.application_id,m=Q.id;let L;e[0]!==c||e[1]!==m||e[2]!==t.dir||e[3]!==t.sort||e[4]!==a?(L=l=>X.visit(Y(c,m,{window:a,sort:l,dir:t.sort===l&&t.dir==="desc"?"asc":"desc"}),{preserveState:!0}),e[0]=c,e[1]=m,e[2]=t.dir,e[3]=t.sort,e[4]=a,e[5]=L):L=e[5];const i=L;let u,d,n,p;if(e[6]!==t.vitals){const l=ye.filter(E=>t.vitals[E]);u=oe,d="Visits",e[11]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(ae,{title:"Inertia visits",description:"Page-load timing measured in the browser: from router start to finish, per component, with prop payload size.",actions:s.jsx(me,{})}),e[11]=n):n=e[11],p=l.length>0?s.jsx(de,{children:l.map(E=>{const K=t.vitals[E];return s.jsx(pe,{label:je[E],value:_e(E,K.value),tone:ve[K.rating],hint:`${K.rating} · p75 of ${ee(K.samples)}`},E)})}):s.jsxs("p",{className:"text-muted-foreground text-xs",children:["Web vitals are reported by the browser client from the initial page load; update app/frontend/lib/railwatch.ts from"," ",s.jsx("span",{className:"font-mono",children:"bin/rails generate railwatch:install"}),"."]}),e[6]=t.vitals,e[7]=u,e[8]=d,e[9]=n,e[10]=p}else u=e[7],d=e[8],n=e[9],p=e[10];let f;e[12]!==t.series?(f=s.jsx(re,{legend:"outcome",label:"Visits",seriesLabel:"Visits",data:t.series}),e[12]=t.series,e[13]=f):f=e[13];let h;e[14]!==t.series||e[15]!==r?(h=s.jsx(ie,{label:"Duration",data:t.series,percentile:r}),e[14]=t.series,e[15]=r,e[16]=h):h=e[16];let x;e[17]!==f||e[18]!==h?(x=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[f,h]}),e[17]=f,e[18]=h,e[19]=x):x=e[19];let M,O,D;e[20]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(le,{icon:be,title:"No visits yet",description:"Call startRailwatch() from your Inertia entrypoint to track page visits."}),O={key:"c",header:"Component",cell:Ie},D={key:"trend",hideOnMobile:!0,header:"Trend",cell:Fe},e[20]=M,e[21]=O,e[22]=D):(M=e[20],O=e[21],D=e[22]);const W=t.sort==="count",H=t.dir==="asc"?"asc":"desc";let g;e[23]!==i?(g=()=>i("count"),e[23]=i,e[24]=g):g=e[24];let b;e[25]!==W||e[26]!==H||e[27]!==g?(b={key:"n",header:s.jsx(J,{label:"Visits",active:W,dir:H,onClick:g}),align:"right",cell:$e},e[25]=W,e[26]=H,e[27]=g,e[28]=b):b=e[28];let T;e[29]===Symbol.for("react.memo_cache_sentinel")?(T={key:"e",hideOnMobile:!0,header:"Errors",align:"right",cell:Te},e[29]=T):T=e[29];const U=t.sort==="avg",z=t.dir==="asc"?"asc":"desc";let y;e[30]!==i?(y=()=>i("avg"),e[30]=i,e[31]=y):y=e[31];let j;e[32]!==U||e[33]!==z||e[34]!==y?(j={key:"avg",hideOnMobile:!0,header:s.jsx(J,{label:"Avg",active:U,dir:z,onClick:y}),align:"right",cell:De},e[32]=U,e[33]=z,e[34]=y,e[35]=j):j=e[35];let $,F;e[36]===Symbol.for("react.memo_cache_sentinel")?($={key:"lcp",hideOnMobile:!0,header:"LCP",align:"right",cell:Oe},F={key:"inp",hideOnMobile:!0,header:"INP",align:"right",cell:Me},e[36]=$,e[37]=F):($=e[36],F=e[37]);const A=t.sort===r,G=t.dir==="asc"?"asc":"desc";let v;e[38]!==r||e[39]!==i?(v=()=>i(r),e[38]=r,e[39]=i,e[40]=v):v=e[40];let _;e[41]!==r||e[42]!==A||e[43]!==G||e[44]!==v?(_=s.jsx(J,{label:r,active:A,dir:G,onClick:v}),e[41]=r,e[42]=A,e[43]=G,e[44]=v,e[45]=_):_=e[45];let S;e[46]!==r?(S=l=>s.jsx("span",{className:"font-semibold",children:o(l[r])}),e[46]=r,e[47]=S):S=e[47];let k;e[48]!==r||e[49]!==_||e[50]!==S?(k={key:r,header:_,align:"right",cell:S},e[48]=r,e[49]=_,e[50]=S,e[51]=k):k=e[51];let P;e[52]!==b||e[53]!==j||e[54]!==k?(P=[O,D,b,T,j,$,F,k],e[52]=b,e[53]=j,e[54]=k,e[55]=P):P=e[55];let w;e[56]!==t.components||e[57]!==P?(w=s.jsx(Z,{rows:t.components,rowKey:Re,empty:M,columns:P}),e[56]=t.components,e[57]=P,e[58]=w):w=e[58];let I;e[59]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[59]=I):I=e[59];let R;e[60]===Symbol.for("react.memo_cache_sentinel")?(R=[{key:"component",label:"Component"}],e[60]=R):R=e[60];let C;e[61]!==c||e[62]!==m||e[63]!==a?(C=l=>X.visit(Y(c,m,{window:a,q:l||void 0}),{preserveState:!0}),e[61]=c,e[62]=m,e[63]=a,e[64]=C):C=e[64];let N;e[65]!==t.q||e[66]!==C?(N=s.jsx(ne,{value:t.q,fields:R,onChange:C,placeholder:"component:Widgets/Show"}),e[65]=t.q,e[66]=C,e[67]=N):N=e[67];let q;e[68]===Symbol.for("react.memo_cache_sentinel")?(q=[{key:"when",header:"When",cell:Ee},{key:"st",header:"",cell:Ve},{key:"c",header:"Component",cell:Ne},{key:"u",hideOnMobile:!0,header:"URL",cell:Ce},{key:"v",hideOnMobile:!0,header:"Vitals",cell:we},{key:"b",hideOnMobile:!0,header:"Props",align:"right",cell:Pe},{key:"d",header:"Duration",align:"right",cell:ke}],e[68]=q):q=e[68];let V;e[69]!==t.recent?(V=s.jsx(Z,{rows:t.recent,rowKey:Le,columns:q}),e[69]=t.recent,e[70]=V):V=e[70];let B;return e[71]!==u||e[72]!==d||e[73]!==n||e[74]!==w||e[75]!==p||e[76]!==N||e[77]!==V||e[78]!==x?(B=s.jsxs(u,{title:d,children:[n,p,x,w,I,N,V]}),e[71]=u,e[72]=d,e[73]=n,e[74]=w,e[75]=p,e[76]=N,e[77]=V,e[78]=x,e[79]=B):B=e[79],B}function ke(t){return o(t.duration)}function Pe(t){return ge(t.props_bytes)}function we(t){return s.jsx("span",{className:"text-muted-foreground font-mono text-[11px] tabular-nums",children:Se(t)})}function Ce(t){return s.jsxs("span",{className:"font-mono text-xs",children:[t.method.toUpperCase()," ",t.url]})}function Ne(t){return s.jsxs("span",{className:"font-mono text-xs",children:[t.component,t.partial&&s.jsxs("span",{className:"text-muted-foreground",children:[" ","(partial: ",t.only.join(", "),")"]})]})}function Ve(t){return s.jsx(fe,{label:t.status,outcome:t.status==="error"?"failed":t.status==="success"?"processed":void 0})}function Ee(t){return s.jsx("span",{className:"text-xs",children:xe(t.occurred_at)})}function Le(t){return t.id}function Me(t){return o(t.inp)}function Oe(t){return o(t.lcp)}function De(t){return o(t.avg)}function Te(t){return he(t.errors,t.count)}function $e(t){return ee(t.count)}function Fe(t){return s.jsx(ue,{data:t.sparkline})}function Ie(t){return s.jsx("span",{className:"font-mono text-xs",children:t.name})}function Re(t){return t.group_hash}export{dt as default};
1
+ import{c as te,u as se,j as s,e as Q,am as X}from"./inertia-DLew8ZNx.js";import{V as re,D as ie}from"./chart-panel-DUQTz_C8.js";import{D as Z}from"./data-table-BIlt7Rtm.js";import{E as le}from"./empty-state-C38il627.js";import{F as ne}from"./filter-bar-CYog9Alp.js";import{E as oe,P as ae}from"./env-layout-REF7OM4q.js";import{u as ce,P as me}from"./percentile-picker-DfSx9yJO.js";import{S as G}from"./sort-header-Dcq9bzmo.js";import{S as ue}from"./sparkline-cell-BON3qQUB.js";import{a as de,S as pe}from"./stat-DFEyFxkO.js";import{S as fe}from"./status-badge-BaUKP7Yo.js";import{c as ee,m as o,p as he,w as xe,b as ge}from"./format-B9SDkrWj.js";import{Y as be}from"./app-layout-DDyQa72H.js";import"./series-chart-Xf49v9cv.js";import"./chart-hover-B1M9jc0y.js";import"./chart-BBeBkkNa.js";import"./badge-CAxXV8za.js";import"./app-wordmark-o9CODKP0.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./arrow-up-C6PxDiY3.js";import"./checkbox-CmhMHWZO.js";const ye=["lcp","cls","inp","ttfb"],je={lcp:"LCP",cls:"CLS",inp:"INP",ttfb:"TTFB"},ve={good:"success","needs-improvement":"warning",poor:"destructive"},_e=(t,e)=>t==="cls"?e.toFixed(2):o(e),Se=t=>[t.lcp===null?null:`LCP ${o(t.lcp)}`,t.inp===null?null:`INP ${o(t.inp)}`,t.cls===null?null:`CLS ${t.cls.toFixed(2)}`].filter(e=>e!==null).join(" · ");function dt(t){const e=te.c(80),{environment:J,window:a}=se().props,{percentile:r}=ce(),c=J.application_id,m=J.id;let M;e[0]!==c||e[1]!==m||e[2]!==t.dir||e[3]!==t.sort||e[4]!==a?(M=l=>Q.visit(X(c,m,{window:a,sort:l,dir:t.sort===l&&t.dir==="desc"?"asc":"desc"}),{preserveState:!0}),e[0]=c,e[1]=m,e[2]=t.dir,e[3]=t.sort,e[4]=a,e[5]=M):M=e[5];const i=M;let u,d,n,p;if(e[6]!==t.vitals){const l=ye.filter(L=>t.vitals[L]);u=oe,d="Visits",e[11]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(ae,{title:"Inertia visits",description:"Page-load timing measured in the browser: from router start to finish, per component, with prop payload size.",actions:s.jsx(me,{})}),e[11]=n):n=e[11],p=l.length>0?s.jsx(de,{children:l.map(L=>{const K=t.vitals[L];return s.jsx(pe,{label:je[L],value:_e(L,K.value),tone:ve[K.rating],hint:`${K.rating} · p75 of ${ee(K.samples)}`},L)})}):s.jsxs("p",{className:"text-muted-foreground text-xs",children:["Web vitals are reported by the browser client from the initial page load; update app/frontend/lib/railwatch.ts from"," ",s.jsx("span",{className:"font-mono",children:"bin/rails generate railwatch:install"}),"."]}),e[6]=t.vitals,e[7]=u,e[8]=d,e[9]=n,e[10]=p}else u=e[7],d=e[8],n=e[9],p=e[10];let f;e[12]!==t.series?(f=s.jsx(re,{legend:"outcome",label:"Visits",seriesLabel:"Visits",data:t.series}),e[12]=t.series,e[13]=f):f=e[13];let h;e[14]!==t.series||e[15]!==r?(h=s.jsx(ie,{label:"Duration",data:t.series,percentile:r}),e[14]=t.series,e[15]=r,e[16]=h):h=e[16];let x;e[17]!==f||e[18]!==h?(x=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[f,h]}),e[17]=f,e[18]=h,e[19]=x):x=e[19];let E,O,D;e[20]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(le,{icon:be,title:"No visits yet",description:"Call startRailwatch() from your Inertia entrypoint to track page visits."}),O={key:"c",header:"Component",cell:Ie},D={key:"trend",hideOnMobile:!0,header:"Trend",cell:Fe},e[20]=E,e[21]=O,e[22]=D):(E=e[20],O=e[21],D=e[22]);const W=t.sort==="count",H=t.dir==="asc"?"asc":"desc";let g;e[23]!==i?(g=()=>i("count"),e[23]=i,e[24]=g):g=e[24];let b;e[25]!==W||e[26]!==H||e[27]!==g?(b={key:"n",header:s.jsx(G,{label:"Visits",active:W,dir:H,onClick:g}),align:"right",cell:$e},e[25]=W,e[26]=H,e[27]=g,e[28]=b):b=e[28];let T;e[29]===Symbol.for("react.memo_cache_sentinel")?(T={key:"e",hideOnMobile:!0,header:"Errors",align:"right",cell:Te},e[29]=T):T=e[29];const U=t.sort==="avg",z=t.dir==="asc"?"asc":"desc";let y;e[30]!==i?(y=()=>i("avg"),e[30]=i,e[31]=y):y=e[31];let j;e[32]!==U||e[33]!==z||e[34]!==y?(j={key:"avg",hideOnMobile:!0,header:s.jsx(G,{label:"Avg",active:U,dir:z,onClick:y}),align:"right",cell:De},e[32]=U,e[33]=z,e[34]=y,e[35]=j):j=e[35];let $,F;e[36]===Symbol.for("react.memo_cache_sentinel")?($={key:"lcp",hideOnMobile:!0,header:"LCP",align:"right",cell:Oe},F={key:"inp",hideOnMobile:!0,header:"INP",align:"right",cell:Ee},e[36]=$,e[37]=F):($=e[36],F=e[37]);const A=t.sort===r,Y=t.dir==="asc"?"asc":"desc";let v;e[38]!==r||e[39]!==i?(v=()=>i(r),e[38]=r,e[39]=i,e[40]=v):v=e[40];let _;e[41]!==r||e[42]!==A||e[43]!==Y||e[44]!==v?(_=s.jsx(G,{label:r,active:A,dir:Y,onClick:v}),e[41]=r,e[42]=A,e[43]=Y,e[44]=v,e[45]=_):_=e[45];let S;e[46]!==r?(S=l=>s.jsx("span",{className:"font-semibold",children:o(l[r])}),e[46]=r,e[47]=S):S=e[47];let k;e[48]!==r||e[49]!==_||e[50]!==S?(k={key:r,header:_,align:"right",cell:S},e[48]=r,e[49]=_,e[50]=S,e[51]=k):k=e[51];let P;e[52]!==b||e[53]!==j||e[54]!==k?(P=[O,D,b,T,j,$,F,k],e[52]=b,e[53]=j,e[54]=k,e[55]=P):P=e[55];let w;e[56]!==t.components||e[57]!==P?(w=s.jsx(Z,{rows:t.components,rowKey:Re,empty:E,columns:P}),e[56]=t.components,e[57]=P,e[58]=w):w=e[58];let I;e[59]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[59]=I):I=e[59];let R;e[60]===Symbol.for("react.memo_cache_sentinel")?(R=[{key:"component",label:"Component"}],e[60]=R):R=e[60];let C;e[61]!==c||e[62]!==m||e[63]!==a?(C=l=>Q.visit(X(c,m,{window:a,q:l||void 0}),{preserveState:!0}),e[61]=c,e[62]=m,e[63]=a,e[64]=C):C=e[64];let N;e[65]!==t.q||e[66]!==C?(N=s.jsx(ne,{value:t.q,fields:R,onChange:C,placeholder:"component:Widgets/Show"}),e[65]=t.q,e[66]=C,e[67]=N):N=e[67];let q;e[68]===Symbol.for("react.memo_cache_sentinel")?(q=[{key:"when",header:"When",cell:Le},{key:"st",header:"",cell:Ve},{key:"c",header:"Component",cell:Ne},{key:"u",hideOnMobile:!0,header:"URL",cell:Ce},{key:"v",hideOnMobile:!0,header:"Vitals",cell:we},{key:"b",hideOnMobile:!0,header:"Props",align:"right",cell:Pe},{key:"d",header:"Duration",align:"right",cell:ke}],e[68]=q):q=e[68];let V;e[69]!==t.recent?(V=s.jsx(Z,{rows:t.recent,rowKey:Me,columns:q}),e[69]=t.recent,e[70]=V):V=e[70];let B;return e[71]!==u||e[72]!==d||e[73]!==n||e[74]!==w||e[75]!==p||e[76]!==N||e[77]!==V||e[78]!==x?(B=s.jsxs(u,{title:d,children:[n,p,x,w,I,N,V]}),e[71]=u,e[72]=d,e[73]=n,e[74]=w,e[75]=p,e[76]=N,e[77]=V,e[78]=x,e[79]=B):B=e[79],B}function ke(t){return o(t.duration)}function Pe(t){return ge(t.props_bytes)}function we(t){return s.jsx("span",{className:"text-muted-foreground font-mono text-[11px] tabular-nums",children:Se(t)})}function Ce(t){return s.jsxs("span",{className:"font-mono text-xs",children:[t.method.toUpperCase()," ",t.url]})}function Ne(t){return s.jsxs("span",{className:"font-mono text-xs",children:[t.component,t.partial&&s.jsxs("span",{className:"text-muted-foreground",children:[" ","(partial: ",t.only.join(", "),")"]})]})}function Ve(t){return s.jsx(fe,{label:t.status,outcome:t.status==="error"?"failed":t.status==="success"?"processed":void 0})}function Le(t){return s.jsx("span",{className:"text-xs",children:xe(t.occurred_at)})}function Me(t){return t.id}function Ee(t){return o(t.inp)}function Oe(t){return o(t.lcp)}function De(t){return o(t.avg)}function Te(t){return he(t.errors,t.count)}function $e(t){return ee(t.count)}function Fe(t){return s.jsx(ue,{data:t.sparkline})}function Ie(t){return s.jsx("span",{className:"font-mono text-xs",children:t.name})}function Re(t){return t.group_hash}export{dt as default};
@@ -1 +1 @@
1
- import{c as C,u as S,r as F,j as s,L as z,i as A,b as R,d as B,e as w,f as L}from"./inertia-CUTKXjxg.js";import{E as J}from"./empty-state-CshhuRUU.js";import{p as O,F as D,s as H}from"./filter-bar-BMHf8xBb.js";import{J as I}from"./json-viewer-CJECqZ0l.js";import{P as T,E as V}from"./env-layout-Dkp_4NvM.js";import{R as W}from"./relative-time-CV7V8aSP.js";import{B as $}from"./badge-s7YDycYg.js";import{B as b}from"./app-wordmark-DDNuuq5_.js";import{C as G,a as K}from"./app-layout-DUk54qUM.js";import"./use-clipboard-D5i6e5kf.js";import"./index-BpnfuXi-.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./format-B9SDkrWj.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./checkbox-C2AqEZXX.js";function xe(i){const e=C.c(30),{environment:c}=S().props,[y,E]=F.useState(null);let f;e[0]!==c?(f=t=>{const u=c?R(c.application_id,c.id,{q:t||void 0}):B({q:t||void 0});w.visit(u,{preserveState:!0,preserveScroll:!0})},e[0]=c,e[1]=f):f=e[1];const l=f,P=Q;let x;e[2]!==i.q?(x=O(i.q),e[2]=i.q,e[3]=x):x=e[3];const r=x,p=r.fields.status==="failed";let h;e[4]!==p||e[5]!==r.fields||e[6]!==r.text||e[7]!==l?(h=()=>{const t={...r.fields};p?delete t.status:t.status="failed",l(H({text:r.text,fields:t}))},e[4]=p,e[5]=r.fields,e[6]=r.text,e[7]=l,e[8]=h):h=e[8];const _=h;let v,j;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=[{title:"Alerts",href:"#"}],j=s.jsx(T,{withWindow:!1,title:"Alerts",description:"Fired alerts across your integrations, newest first."}),e[9]=v,e[10]=j):(v=e[9],j=e[10]);let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g={key:"event",label:"Event",options:["new_issue","regressed_issue","threshold","quota"]},e[11]=g):g=e[11];let a;e[12]!==i.statuses?(a=[g,{key:"status",label:"Status",options:i.statuses}],e[12]=i.statuses,e[13]=a):a=e[13];let o;e[14]!==i.q||e[15]!==a||e[16]!==l?(o=s.jsx(D,{value:i.q,fields:a,onChange:l,placeholder:"event:new_issue status:failed"}),e[14]=i.q,e[15]=a,e[16]=l,e[17]=o):o=e[17];const k=p?"default":"outline";let n;e[18]!==k||e[19]!==_?(n=s.jsx(b,{size:"sm",variant:k,className:"h-8",onClick:_,children:"Failed only"}),e[18]=k,e[19]=_,e[20]=n):n=e[20];let d;e[21]!==o||e[22]!==n?(d=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[o,n]}),e[21]=o,e[22]=n,e[23]=d):d=e[23];let m;e[24]!==y||e[25]!==i.alerts?(m=i.alerts.length===0?s.jsx(J,{title:"No alerts have fired."}):s.jsx("div",{className:"divide-y rounded-md border",children:i.alerts.map(t=>{const u=y===t.id;return s.jsxs("div",{className:"p-3",children:[s.jsxs("button",{type:"button",className:"flex w-full flex-wrap items-center gap-3 text-left text-sm",onClick:()=>E(u?null:t.id),children:[u?s.jsx(G,{className:"text-muted-foreground size-4 shrink-0"}):s.jsx(K,{className:"text-muted-foreground size-4 shrink-0"}),s.jsx("span",{className:"font-mono text-xs",children:t.event}),s.jsxs("span",{className:"text-muted-foreground text-xs",children:[t.integration.name," (",t.integration.kind,")"]}),t.issue&&s.jsxs(z,{href:A(t.issue.id),onClick:M,className:"text-xs hover:underline",children:[s.jsx("span",{className:"font-mono font-semibold",children:t.issue.key})," ",s.jsx("span",{className:"text-muted-foreground",children:t.issue.title})]}),s.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[s.jsx($,{variant:t.status==="failed"?"destructive":"outline",className:"capitalize",title:t.error??void 0,children:t.status}),s.jsx(W,{iso:t.sent_at??t.created_at,className:"text-muted-foreground text-xs"}),t.status==="failed"&&s.jsx(b,{size:"sm",variant:"outline",onClick:q=>{q.stopPropagation(),P(t.id)},children:"Retry"})]})]}),u&&s.jsxs("div",{className:"mt-3 space-y-2 pl-7",children:[t.error&&s.jsx("p",{className:"text-destructive text-xs",children:t.error}),s.jsx(I,{data:t.payload})]})]},t.id)})}),e[24]=y,e[25]=i.alerts,e[26]=m):m=e[26];let N;return e[27]!==d||e[28]!==m?(N=s.jsxs(V,{title:"Alerts",crumbs:v,children:[j,d,m]}),e[27]=d,e[28]=m,e[29]=N):N=e[29],N}function M(i){return i.stopPropagation()}function Q(i){return w.post(L(i),{},{preserveScroll:!0})}export{xe as default};
1
+ import{c as C,u as S,r as F,j as s,L as z,i as A,b as R,d as B,e as w,f as L}from"./inertia-DLew8ZNx.js";import{E as J}from"./empty-state-C38il627.js";import{p as O,F as D,s as H}from"./filter-bar-CYog9Alp.js";import{J as I}from"./json-viewer-D922McGi.js";import{P as T,E as V}from"./env-layout-REF7OM4q.js";import{R as W}from"./relative-time-CjIjb8Lg.js";import{B as $}from"./badge-CAxXV8za.js";import{B as b}from"./app-wordmark-o9CODKP0.js";import{C as G,a as K}from"./app-layout-DDyQa72H.js";import"./use-clipboard-ByoUGQqA.js";import"./index-umIAl-pL.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./format-B9SDkrWj.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./checkbox-CmhMHWZO.js";function xe(i){const e=C.c(30),{environment:c}=S().props,[y,E]=F.useState(null);let f;e[0]!==c?(f=t=>{const u=c?R(c.application_id,c.id,{q:t||void 0}):B({q:t||void 0});w.visit(u,{preserveState:!0,preserveScroll:!0})},e[0]=c,e[1]=f):f=e[1];const l=f,P=Q;let x;e[2]!==i.q?(x=O(i.q),e[2]=i.q,e[3]=x):x=e[3];const r=x,p=r.fields.status==="failed";let h;e[4]!==p||e[5]!==r.fields||e[6]!==r.text||e[7]!==l?(h=()=>{const t={...r.fields};p?delete t.status:t.status="failed",l(H({text:r.text,fields:t}))},e[4]=p,e[5]=r.fields,e[6]=r.text,e[7]=l,e[8]=h):h=e[8];const _=h;let v,j;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=[{title:"Alerts",href:"#"}],j=s.jsx(T,{withWindow:!1,title:"Alerts",description:"Fired alerts across your integrations, newest first."}),e[9]=v,e[10]=j):(v=e[9],j=e[10]);let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g={key:"event",label:"Event",options:["new_issue","regressed_issue","threshold","quota"]},e[11]=g):g=e[11];let a;e[12]!==i.statuses?(a=[g,{key:"status",label:"Status",options:i.statuses}],e[12]=i.statuses,e[13]=a):a=e[13];let o;e[14]!==i.q||e[15]!==a||e[16]!==l?(o=s.jsx(D,{value:i.q,fields:a,onChange:l,placeholder:"event:new_issue status:failed"}),e[14]=i.q,e[15]=a,e[16]=l,e[17]=o):o=e[17];const k=p?"default":"outline";let n;e[18]!==k||e[19]!==_?(n=s.jsx(b,{size:"sm",variant:k,className:"h-8",onClick:_,children:"Failed only"}),e[18]=k,e[19]=_,e[20]=n):n=e[20];let d;e[21]!==o||e[22]!==n?(d=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[o,n]}),e[21]=o,e[22]=n,e[23]=d):d=e[23];let m;e[24]!==y||e[25]!==i.alerts?(m=i.alerts.length===0?s.jsx(J,{title:"No alerts have fired."}):s.jsx("div",{className:"divide-y rounded-md border",children:i.alerts.map(t=>{const u=y===t.id;return s.jsxs("div",{className:"p-3",children:[s.jsxs("button",{type:"button",className:"flex w-full flex-wrap items-center gap-3 text-left text-sm",onClick:()=>E(u?null:t.id),children:[u?s.jsx(G,{className:"text-muted-foreground size-4 shrink-0"}):s.jsx(K,{className:"text-muted-foreground size-4 shrink-0"}),s.jsx("span",{className:"font-mono text-xs",children:t.event}),s.jsxs("span",{className:"text-muted-foreground text-xs",children:[t.integration.name," (",t.integration.kind,")"]}),t.issue&&s.jsxs(z,{href:A(t.issue.id),onClick:M,className:"text-xs hover:underline",children:[s.jsx("span",{className:"font-mono font-semibold",children:t.issue.key})," ",s.jsx("span",{className:"text-muted-foreground",children:t.issue.title})]}),s.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[s.jsx($,{variant:t.status==="failed"?"destructive":"outline",className:"capitalize",title:t.error??void 0,children:t.status}),s.jsx(W,{iso:t.sent_at??t.created_at,className:"text-muted-foreground text-xs"}),t.status==="failed"&&s.jsx(b,{size:"sm",variant:"outline",onClick:q=>{q.stopPropagation(),P(t.id)},children:"Retry"})]})]}),u&&s.jsxs("div",{className:"mt-3 space-y-2 pl-7",children:[t.error&&s.jsx("p",{className:"text-destructive text-xs",children:t.error}),s.jsx(I,{data:t.payload})]})]},t.id)})}),e[24]=y,e[25]=i.alerts,e[26]=m):m=e[26];let N;return e[27]!==d||e[28]!==m?(N=s.jsxs(V,{title:"Alerts",crumbs:v,children:[j,d,m]}),e[27]=d,e[28]=m,e[29]=N):N=e[29],N}function M(i){return i.stopPropagation()}function Q(i){return w.post(L(i),{},{preserveScroll:!0})}export{xe as default};
@@ -1 +1 @@
1
- import{c as Je,u as Ce,j as l,X as je,K as Me,Y as Ee,e as fe,L as Ae}from"./inertia-CUTKXjxg.js";import{C as Te}from"./chart-hover-DMWx5-Rs.js";import{V as Ie}from"./chart-panel-BlirnMrQ.js";import{C as Fe}from"./cursor-load-more-JfSVBn9C.js";import{D as xe}from"./data-table-CwtPkw_i.js";import{E as ke}from"./empty-state-CshhuRUU.js";import{F as Ke}from"./filter-bar-BMHf8xBb.js";import{O as ve}from"./origin-identity-DrJ4D2TX.js";import{P as He,E as Le}from"./env-layout-Dkp_4NvM.js";import{u as De,P as Re}from"./percentile-picker-_wllqYoJ.js";import{S as Be,W as we}from"./app-layout-DUk54qUM.js";import{S as Qe}from"./sparkline-cell-BwdBz0yv.js";import{S as ge}from"./status-badge-XYUN9gUA.js";import{C as Se,a as qe,b as Oe,c as Ne}from"./card-DiW-JhK3.js";import{m as he,c as Pe,w as Ve,p as We}from"./format-B9SDkrWj.js";import"./series-chart-C1YrNlID.js";import"./chart-nsdZV0Dv.js";import"./app-wordmark-DDNuuq5_.js";import"./badge-s7YDycYg.js";import"./tenant-path-SxnZbfU1.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./checkbox-C2AqEZXX.js";function Ht(t){const e=Je.c(114),{environment:_e,window:s,range:n}=Ce().props,{percentile:c}=De(),r=_e.application_id,i=_e.id;let C;e[0]!==n?.from||e[1]!==n?.to||e[2]!==s?(C=s==="custom"?{from:n?.from,to:n?.to}:{window:s},e[0]=n?.from,e[1]=n?.to,e[2]=s,e[3]=C):C=e[3];const a=C;let M;e[4]!==n||e[5]!==a?(M=n?{from:n.from,to:n.to}:a,e[4]=n,e[5]=a,e[6]=M):M=e[6];const pe=M;let E;e[7]!==r||e[8]!==pe||e[9]!==i||e[10]!==t.pagination.limit||e[11]!==t.q?(E=o=>je(r,i,{...pe,q:t.q||void 0,cursor:o,limit:t.pagination.limit}),e[7]=r,e[8]=pe,e[9]=i,e[10]=t.pagination.limit,e[11]=t.q,e[12]=E):E=e[12];const be=E;let A;e[13]!==r||e[14]!==i?(A=o=>Me(r,i,o.execution_id),e[13]=r,e[14]=i,e[15]=A):A=e[15];const J=A;let T;e[16]!==r||e[17]!==i||e[18]!==t.q||e[19]!==a?(T=o=>Ee(r,i,o.group_hash,{...a,q:t.q||void 0}),e[16]=r,e[17]=i,e[18]=t.q,e[19]=a,e[20]=T):T=e[20];const m=T;let I;e[21]===Symbol.for("react.memo_cache_sentinel")?(I=l.jsx(He,{title:"Jobs",description:"Active Job attempts by class and queue, with queue latency and failures.",actions:l.jsxs(l.Fragment,{children:[l.jsx(Be,{page:"jobs"}),l.jsx(Re,{})]})}),e[21]=I):I=e[21];let u;e[22]!==t.deploys||e[23]!==t.series?(u=l.jsx(Ie,{legend:"job",label:"Job attempts",seriesLabel:"Attempts",data:t.series,deploys:t.deploys}),e[22]=t.deploys,e[23]=t.series,e[24]=u):u=e[24];let F;e[25]===Symbol.for("react.memo_cache_sentinel")?(F=l.jsx(Oe,{children:l.jsx(Ne,{children:"Queues"})}),e[25]=F):F=e[25];let K;e[26]===Symbol.for("react.memo_cache_sentinel")?(K=[{key:"q",header:"Queue",cell:mt},{key:"n",header:"Attempts",align:"right",cell:ct},{key:"lat",hideOnMobile:!0,header:"Avg wait",align:"right",cell:at},{key:"f",header:"Failed",align:"right",cell:st}],e[26]=K):K=e[26];let d;e[27]!==t.queues?(d=l.jsxs(Se,{className:"lg:col-span-1",children:[F,l.jsx(qe,{children:l.jsx(xe,{rows:t.queues,rowKey:ut,columns:K})})]}),e[27]=t.queues,e[28]=d):d=e[28];let H;e[29]===Symbol.for("react.memo_cache_sentinel")?(H=l.jsx(Oe,{children:l.jsx(Ne,{children:"Recent runs"})}),e[29]=H):H=e[29];let L,D,R,B,Q;e[30]===Symbol.for("react.memo_cache_sentinel")?(L={key:"after",label:"After"},D={key:"before",label:"Before"},R={key:"user",label:"User"},B={key:"tenant",label:"Tenant"},Q={key:"deploy",label:"Deploy"},e[30]=L,e[31]=D,e[32]=R,e[33]=B,e[34]=Q):(L=e[30],D=e[31],R=e[32],B=e[33],Q=e[34]);let V,W,U,X;e[35]===Symbol.for("react.memo_cache_sentinel")?(V={key:"kind",label:"Execution kind",options:["job"]},W={key:"queue",label:"Queue"},U={key:"class",label:"Job class"},X={key:"job_id",label:"Job ID"},e[35]=V,e[36]=W,e[37]=U,e[38]=X):(V=e[35],W=e[36],U=e[37],X=e[38]);let Y;e[39]===Symbol.for("react.memo_cache_sentinel")?(Y=[L,D,R,B,Q,V,W,U,X,{key:"outcome",label:"Outcome",options:["processed","failed"]}],e[39]=Y):Y=e[39];let f;e[40]!==r||e[41]!==i||e[42]!==a?(f=o=>fe.visit(je(r,i,{...a,q:o||void 0}),{only:["recent","pagination","q"],preserveState:!0,reset:["recent"]}),e[40]=r,e[41]=i,e[42]=a,e[43]=f):f=e[43];let h;e[44]!==t.q||e[45]!==f?(h=l.jsx(Ke,{value:t.q,fields:Y,onChange:f,placeholder:"queue:default outcome:failed"}),e[44]=t.q,e[45]=f,e[46]=h):h=e[46];let $;e[47]===Symbol.for("react.memo_cache_sentinel")?($=l.jsx(ke,{icon:we,title:"No job runs in this window",description:"Job classes appear here once Active Job executions are reported."}),e[47]=$):$=e[47];let p,b;e[48]!==J?(p=o=>fe.visit(J(o)),b={onOpen:(o,ye)=>ye?.newTab?globalThis.window.open(J(o),"_blank"):fe.visit(J(o))},e[48]=J,e[49]=p,e[50]=b):(p=e[49],b=e[50]);let z,G,Z,ee;e[51]===Symbol.for("react.memo_cache_sentinel")?(z={key:"when",header:"When",cell:it},G={key:"name",header:"Job",grow:!0,cell:rt},Z={key:"st",header:"Outcome",cell:ot},ee={key:"att",hideOnMobile:!0,header:"Attempt",align:"right",cell:lt},e[51]=z,e[52]=G,e[53]=Z,e[54]=ee):(z=e[51],G=e[52],Z=e[53],ee=e[54]);let y;e[55]!==r||e[56]!==i||e[57]!==n||e[58]!==s?(y={key:"user",hideOnMobile:!0,header:"Origin user",cell:o=>l.jsx(ve,{...o,applicationId:r,environmentId:i,kind:"user",range:n,window:s})},e[55]=r,e[56]=i,e[57]=n,e[58]=s,e[59]=y):y=e[59];let x;e[60]!==r||e[61]!==i||e[62]!==n||e[63]!==s?(x={key:"tenant",hideOnMobile:!0,header:"Origin tenant",cell:o=>l.jsx(ve,{...o,applicationId:r,environmentId:i,kind:"tenant",range:n,window:s})},e[60]=r,e[61]=i,e[62]=n,e[63]=s,e[64]=x):x=e[64];let te;e[65]===Symbol.for("react.memo_cache_sentinel")?(te={key:"ex",hideOnMobile:!0,header:"Exception",cell:tt},e[65]=te):te=e[65];let g;e[66]!==y||e[67]!==x?(g=[z,G,Z,ee,y,x,te],e[66]=y,e[67]=x,e[68]=g):g=e[68];let _;e[69]!==t.recent||e[70]!==p||e[71]!==b||e[72]!==g?(_=l.jsx(xe,{rows:t.recent,rowKey:nt,empty:$,onRowClick:p,keyboardNav:b,columns:g}),e[69]=t.recent,e[70]=p,e[71]=b,e[72]=g,e[73]=_):_=e[73];let le;e[74]===Symbol.for("react.memo_cache_sentinel")?(le=["recent","pagination"],e[74]=le):le=e[74];let j;e[75]!==t.pagination||e[76]!==be?(j=l.jsx(Fe,{meta:t.pagination,href:be,only:le}),e[75]=t.pagination,e[76]=be,e[77]=j):j=e[77];let k;e[78]!==h||e[79]!==_||e[80]!==j?(k=l.jsxs(Se,{className:"lg:col-span-2",children:[H,l.jsxs(qe,{className:"space-y-3",children:[h,_,j]})]}),e[78]=h,e[79]=_,e[80]=j,e[81]=k):k=e[81];let v;e[82]!==k||e[83]!==d?(v=l.jsxs("div",{className:"grid gap-4 lg:grid-cols-3",children:[d,k]}),e[82]=k,e[83]=d,e[84]=v):v=e[84];let oe;e[85]===Symbol.for("react.memo_cache_sentinel")?(oe=l.jsx(ke,{icon:we,title:"No job attempts in this window",description:"Individual job executions appear here as they run."}),e[85]=oe):oe=e[85];let w;e[86]!==m?(w={onOpen:(o,ye)=>ye?.newTab?globalThis.window.open(m(o),"_blank"):fe.visit(m(o))},e[86]=m,e[87]=w):w=e[87];let S;e[88]!==m?(S={key:"name",header:"Job",grow:!0,cell:o=>l.jsx(Ae,{className:"font-mono text-xs hover:underline",href:m(o),children:o.name})},e[88]=m,e[89]=S):S=e[89];let re,ie,ne,se,ae;e[90]===Symbol.for("react.memo_cache_sentinel")?(re={key:"trend",hideOnMobile:!0,header:"Trend",cell:Ge},ie={key:"n",header:"Attempts",align:"right",cell:ze},ne={key:"f",header:"Failed",align:"right",cell:$e},se={key:"fr",hideOnMobile:!0,header:"Failure %",align:"right",cell:Ye},ae={key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:Xe},e[90]=re,e[91]=ie,e[92]=ne,e[93]=se,e[94]=ae):(re=e[90],ie=e[91],ne=e[92],se=e[93],ae=e[94]);let q;e[95]!==c?(q=o=>l.jsx("span",{className:"font-semibold",children:he(o[c])}),e[95]=c,e[96]=q):q=e[96];let O;e[97]!==c||e[98]!==q?(O={key:c,header:c,align:"right",cell:q},e[97]=c,e[98]=q,e[99]=O):O=e[99];let ce;e[100]===Symbol.for("react.memo_cache_sentinel")?(ce={key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:Ue},e[100]=ce):ce=e[100];let N;e[101]!==S||e[102]!==O?(N=[S,re,ie,ne,se,ae,O,ce],e[101]=S,e[102]=O,e[103]=N):N=e[103];let P;e[104]!==t.classes||e[105]!==w||e[106]!==N?(P=l.jsx(xe,{rows:t.classes,rowKey:et,empty:oe,hoverKey:Ze,keyboardNav:w,columns:N}),e[104]=t.classes,e[105]=w,e[106]=N,e[107]=P):P=e[107];let me;e[108]===Symbol.for("react.memo_cache_sentinel")?(me=l.jsx(ge,{outcome:"processed"}),e[108]=me):me=e[108];let ue;e[109]===Symbol.for("react.memo_cache_sentinel")?(ue=l.jsxs("p",{className:"text-muted-foreground text-xs",children:[me," processed ·"," ",l.jsx(ge,{outcome:"failed"})," failed"]}),e[109]=ue):ue=e[109];let de;return e[110]!==v||e[111]!==P||e[112]!==u?(de=l.jsx(Le,{title:"Jobs",children:l.jsxs(Te,{children:[I,u,v,P,ue]})}),e[110]=v,e[111]=P,e[112]=u,e[113]=de):de=e[113],de}function Ue(t){return he(t.max)}function Xe(t){return he(t.avg)}function Ye(t){return We(t.errors,t.count)}function $e(t){return l.jsx("span",{className:t.errors?"text-destructive":"",children:t.errors})}function ze(t){return Pe(t.count)}function Ge(t){return l.jsx(Qe,{data:t.sparkline,hoverKey:t.group_hash})}function Ze(t){return t.group_hash}function et(t){return t.group_hash}function tt(t){return l.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview})}function lt(t){return t.attempt}function ot(t){return l.jsx(ge,{outcome:t.outcome})}function rt(t){return l.jsx("span",{className:"font-mono text-xs",children:t.name})}function it(t){return l.jsx("span",{className:"text-xs",children:Ve(t.occurred_at)})}function nt(t){return t.execution_id}function st(t){return t.failed}function at(t){return he(t.avg_latency)}function ct(t){return Pe(t.count)}function mt(t){return l.jsx("span",{className:"font-mono text-xs",children:t.queue})}function ut(t){return t.queue??"-"}export{Ht as default};
1
+ import{c as Je,u as Ce,j as l,X as je,K as Me,Y as Ee,e as fe,L as Ae}from"./inertia-DLew8ZNx.js";import{C as Te}from"./chart-hover-B1M9jc0y.js";import{V as Ie}from"./chart-panel-DUQTz_C8.js";import{C as Fe}from"./cursor-load-more-CRyuMeQb.js";import{D as xe}from"./data-table-BIlt7Rtm.js";import{E as ke}from"./empty-state-C38il627.js";import{F as Ke}from"./filter-bar-CYog9Alp.js";import{O as ve}from"./origin-identity-Bk9yHWZ1.js";import{P as He,E as Le}from"./env-layout-REF7OM4q.js";import{u as De,P as Re}from"./percentile-picker-DfSx9yJO.js";import{S as Be,W as we}from"./app-layout-DDyQa72H.js";import{S as Qe}from"./sparkline-cell-BON3qQUB.js";import{S as ge}from"./status-badge-BaUKP7Yo.js";import{C as Se,a as qe,b as Oe,c as Ne}from"./card-cAtqCxWl.js";import{m as he,c as Pe,w as Ve,p as We}from"./format-B9SDkrWj.js";import"./series-chart-Xf49v9cv.js";import"./chart-BBeBkkNa.js";import"./app-wordmark-o9CODKP0.js";import"./badge-CAxXV8za.js";import"./tenant-path-DPZPc985.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./checkbox-CmhMHWZO.js";function Ht(t){const e=Je.c(114),{environment:_e,window:s,range:n}=Ce().props,{percentile:c}=De(),r=_e.application_id,i=_e.id;let C;e[0]!==n?.from||e[1]!==n?.to||e[2]!==s?(C=s==="custom"?{from:n?.from,to:n?.to}:{window:s},e[0]=n?.from,e[1]=n?.to,e[2]=s,e[3]=C):C=e[3];const a=C;let M;e[4]!==n||e[5]!==a?(M=n?{from:n.from,to:n.to}:a,e[4]=n,e[5]=a,e[6]=M):M=e[6];const pe=M;let E;e[7]!==r||e[8]!==pe||e[9]!==i||e[10]!==t.pagination.limit||e[11]!==t.q?(E=o=>je(r,i,{...pe,q:t.q||void 0,cursor:o,limit:t.pagination.limit}),e[7]=r,e[8]=pe,e[9]=i,e[10]=t.pagination.limit,e[11]=t.q,e[12]=E):E=e[12];const be=E;let A;e[13]!==r||e[14]!==i?(A=o=>Me(r,i,o.execution_id),e[13]=r,e[14]=i,e[15]=A):A=e[15];const J=A;let T;e[16]!==r||e[17]!==i||e[18]!==t.q||e[19]!==a?(T=o=>Ee(r,i,o.group_hash,{...a,q:t.q||void 0}),e[16]=r,e[17]=i,e[18]=t.q,e[19]=a,e[20]=T):T=e[20];const m=T;let I;e[21]===Symbol.for("react.memo_cache_sentinel")?(I=l.jsx(He,{title:"Jobs",description:"Active Job attempts by class and queue, with queue latency and failures.",actions:l.jsxs(l.Fragment,{children:[l.jsx(Be,{page:"jobs"}),l.jsx(Re,{})]})}),e[21]=I):I=e[21];let u;e[22]!==t.deploys||e[23]!==t.series?(u=l.jsx(Ie,{legend:"job",label:"Job attempts",seriesLabel:"Attempts",data:t.series,deploys:t.deploys}),e[22]=t.deploys,e[23]=t.series,e[24]=u):u=e[24];let F;e[25]===Symbol.for("react.memo_cache_sentinel")?(F=l.jsx(Oe,{children:l.jsx(Ne,{children:"Queues"})}),e[25]=F):F=e[25];let K;e[26]===Symbol.for("react.memo_cache_sentinel")?(K=[{key:"q",header:"Queue",cell:mt},{key:"n",header:"Attempts",align:"right",cell:ct},{key:"lat",hideOnMobile:!0,header:"Avg wait",align:"right",cell:at},{key:"f",header:"Failed",align:"right",cell:st}],e[26]=K):K=e[26];let d;e[27]!==t.queues?(d=l.jsxs(Se,{className:"lg:col-span-1",children:[F,l.jsx(qe,{children:l.jsx(xe,{rows:t.queues,rowKey:ut,columns:K})})]}),e[27]=t.queues,e[28]=d):d=e[28];let H;e[29]===Symbol.for("react.memo_cache_sentinel")?(H=l.jsx(Oe,{children:l.jsx(Ne,{children:"Recent runs"})}),e[29]=H):H=e[29];let L,D,R,B,Q;e[30]===Symbol.for("react.memo_cache_sentinel")?(L={key:"after",label:"After"},D={key:"before",label:"Before"},R={key:"user",label:"User"},B={key:"tenant",label:"Tenant"},Q={key:"deploy",label:"Deploy"},e[30]=L,e[31]=D,e[32]=R,e[33]=B,e[34]=Q):(L=e[30],D=e[31],R=e[32],B=e[33],Q=e[34]);let V,W,U,X;e[35]===Symbol.for("react.memo_cache_sentinel")?(V={key:"kind",label:"Execution kind",options:["job"]},W={key:"queue",label:"Queue"},U={key:"class",label:"Job class"},X={key:"job_id",label:"Job ID"},e[35]=V,e[36]=W,e[37]=U,e[38]=X):(V=e[35],W=e[36],U=e[37],X=e[38]);let Y;e[39]===Symbol.for("react.memo_cache_sentinel")?(Y=[L,D,R,B,Q,V,W,U,X,{key:"outcome",label:"Outcome",options:["processed","failed"]}],e[39]=Y):Y=e[39];let f;e[40]!==r||e[41]!==i||e[42]!==a?(f=o=>fe.visit(je(r,i,{...a,q:o||void 0}),{only:["recent","pagination","q"],preserveState:!0,reset:["recent"]}),e[40]=r,e[41]=i,e[42]=a,e[43]=f):f=e[43];let h;e[44]!==t.q||e[45]!==f?(h=l.jsx(Ke,{value:t.q,fields:Y,onChange:f,placeholder:"queue:default outcome:failed"}),e[44]=t.q,e[45]=f,e[46]=h):h=e[46];let $;e[47]===Symbol.for("react.memo_cache_sentinel")?($=l.jsx(ke,{icon:we,title:"No job runs in this window",description:"Job classes appear here once Active Job executions are reported."}),e[47]=$):$=e[47];let p,b;e[48]!==J?(p=o=>fe.visit(J(o)),b={onOpen:(o,ye)=>ye?.newTab?globalThis.window.open(J(o),"_blank"):fe.visit(J(o))},e[48]=J,e[49]=p,e[50]=b):(p=e[49],b=e[50]);let z,G,Z,ee;e[51]===Symbol.for("react.memo_cache_sentinel")?(z={key:"when",header:"When",cell:it},G={key:"name",header:"Job",grow:!0,cell:rt},Z={key:"st",header:"Outcome",cell:ot},ee={key:"att",hideOnMobile:!0,header:"Attempt",align:"right",cell:lt},e[51]=z,e[52]=G,e[53]=Z,e[54]=ee):(z=e[51],G=e[52],Z=e[53],ee=e[54]);let y;e[55]!==r||e[56]!==i||e[57]!==n||e[58]!==s?(y={key:"user",hideOnMobile:!0,header:"Origin user",cell:o=>l.jsx(ve,{...o,applicationId:r,environmentId:i,kind:"user",range:n,window:s})},e[55]=r,e[56]=i,e[57]=n,e[58]=s,e[59]=y):y=e[59];let x;e[60]!==r||e[61]!==i||e[62]!==n||e[63]!==s?(x={key:"tenant",hideOnMobile:!0,header:"Origin tenant",cell:o=>l.jsx(ve,{...o,applicationId:r,environmentId:i,kind:"tenant",range:n,window:s})},e[60]=r,e[61]=i,e[62]=n,e[63]=s,e[64]=x):x=e[64];let te;e[65]===Symbol.for("react.memo_cache_sentinel")?(te={key:"ex",hideOnMobile:!0,header:"Exception",cell:tt},e[65]=te):te=e[65];let g;e[66]!==y||e[67]!==x?(g=[z,G,Z,ee,y,x,te],e[66]=y,e[67]=x,e[68]=g):g=e[68];let _;e[69]!==t.recent||e[70]!==p||e[71]!==b||e[72]!==g?(_=l.jsx(xe,{rows:t.recent,rowKey:nt,empty:$,onRowClick:p,keyboardNav:b,columns:g}),e[69]=t.recent,e[70]=p,e[71]=b,e[72]=g,e[73]=_):_=e[73];let le;e[74]===Symbol.for("react.memo_cache_sentinel")?(le=["recent","pagination"],e[74]=le):le=e[74];let j;e[75]!==t.pagination||e[76]!==be?(j=l.jsx(Fe,{meta:t.pagination,href:be,only:le}),e[75]=t.pagination,e[76]=be,e[77]=j):j=e[77];let k;e[78]!==h||e[79]!==_||e[80]!==j?(k=l.jsxs(Se,{className:"lg:col-span-2",children:[H,l.jsxs(qe,{className:"space-y-3",children:[h,_,j]})]}),e[78]=h,e[79]=_,e[80]=j,e[81]=k):k=e[81];let v;e[82]!==k||e[83]!==d?(v=l.jsxs("div",{className:"grid gap-4 lg:grid-cols-3",children:[d,k]}),e[82]=k,e[83]=d,e[84]=v):v=e[84];let oe;e[85]===Symbol.for("react.memo_cache_sentinel")?(oe=l.jsx(ke,{icon:we,title:"No job attempts in this window",description:"Individual job executions appear here as they run."}),e[85]=oe):oe=e[85];let w;e[86]!==m?(w={onOpen:(o,ye)=>ye?.newTab?globalThis.window.open(m(o),"_blank"):fe.visit(m(o))},e[86]=m,e[87]=w):w=e[87];let S;e[88]!==m?(S={key:"name",header:"Job",grow:!0,cell:o=>l.jsx(Ae,{className:"font-mono text-xs hover:underline",href:m(o),children:o.name})},e[88]=m,e[89]=S):S=e[89];let re,ie,ne,se,ae;e[90]===Symbol.for("react.memo_cache_sentinel")?(re={key:"trend",hideOnMobile:!0,header:"Trend",cell:Ge},ie={key:"n",header:"Attempts",align:"right",cell:ze},ne={key:"f",header:"Failed",align:"right",cell:$e},se={key:"fr",hideOnMobile:!0,header:"Failure %",align:"right",cell:Ye},ae={key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:Xe},e[90]=re,e[91]=ie,e[92]=ne,e[93]=se,e[94]=ae):(re=e[90],ie=e[91],ne=e[92],se=e[93],ae=e[94]);let q;e[95]!==c?(q=o=>l.jsx("span",{className:"font-semibold",children:he(o[c])}),e[95]=c,e[96]=q):q=e[96];let O;e[97]!==c||e[98]!==q?(O={key:c,header:c,align:"right",cell:q},e[97]=c,e[98]=q,e[99]=O):O=e[99];let ce;e[100]===Symbol.for("react.memo_cache_sentinel")?(ce={key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:Ue},e[100]=ce):ce=e[100];let N;e[101]!==S||e[102]!==O?(N=[S,re,ie,ne,se,ae,O,ce],e[101]=S,e[102]=O,e[103]=N):N=e[103];let P;e[104]!==t.classes||e[105]!==w||e[106]!==N?(P=l.jsx(xe,{rows:t.classes,rowKey:et,empty:oe,hoverKey:Ze,keyboardNav:w,columns:N}),e[104]=t.classes,e[105]=w,e[106]=N,e[107]=P):P=e[107];let me;e[108]===Symbol.for("react.memo_cache_sentinel")?(me=l.jsx(ge,{outcome:"processed"}),e[108]=me):me=e[108];let ue;e[109]===Symbol.for("react.memo_cache_sentinel")?(ue=l.jsxs("p",{className:"text-muted-foreground text-xs",children:[me," processed ·"," ",l.jsx(ge,{outcome:"failed"})," failed"]}),e[109]=ue):ue=e[109];let de;return e[110]!==v||e[111]!==P||e[112]!==u?(de=l.jsx(Le,{title:"Jobs",children:l.jsxs(Te,{children:[I,u,v,P,ue]})}),e[110]=v,e[111]=P,e[112]=u,e[113]=de):de=e[113],de}function Ue(t){return he(t.max)}function Xe(t){return he(t.avg)}function Ye(t){return We(t.errors,t.count)}function $e(t){return l.jsx("span",{className:t.errors?"text-destructive":"",children:t.errors})}function ze(t){return Pe(t.count)}function Ge(t){return l.jsx(Qe,{data:t.sparkline,hoverKey:t.group_hash})}function Ze(t){return t.group_hash}function et(t){return t.group_hash}function tt(t){return l.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview})}function lt(t){return t.attempt}function ot(t){return l.jsx(ge,{outcome:t.outcome})}function rt(t){return l.jsx("span",{className:"font-mono text-xs",children:t.name})}function it(t){return l.jsx("span",{className:"text-xs",children:Ve(t.occurred_at)})}function nt(t){return t.execution_id}function st(t){return t.failed}function at(t){return he(t.avg_latency)}function ct(t){return Pe(t.count)}function mt(t){return l.jsx("span",{className:"font-mono text-xs",children:t.queue})}function ut(t){return t.queue??"-"}export{Ht as default};
@@ -1 +1 @@
1
- import{c as M,u as T,j as l,L as N,G as O}from"./inertia-CUTKXjxg.js";import{D as $}from"./data-table-CwtPkw_i.js";import{E as D}from"./empty-state-CshhuRUU.js";import{P as F,E as H}from"./env-layout-Dkp_4NvM.js";import{R as I}from"./relative-time-CV7V8aSP.js";import{S as R,a as C}from"./stat-IghK3WjD.js";import{c as d,p as G,m as K}from"./format-B9SDkrWj.js";import{y as W}from"./app-layout-DUk54qUM.js";import"./chart-hover-DMWx5-Rs.js";import"./badge-s7YDycYg.js";import"./app-wordmark-DDNuuq5_.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./arrow-up-DYTCBENO.js";import"./checkbox-C2AqEZXX.js";function de(i){const e=M.c(40),{environment:A,window:b}=T().props,S=A.application_id,k=A.id,t=i.summary;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(F,{title:"Profiles",description:"Sampled stack profiles, grouped by the execution they profiled."}),e[0]=h):h=e[0];let o;e[1]!==t.profiles?(o=d(t.profiles),e[1]=t.profiles,e[2]=o):o=e[2];let s;e[3]!==o?(s=l.jsx(R,{label:"Profiles",value:o}),e[3]=o,e[4]=s):s=e[4];let r;e[5]!==t.executions||e[6]!==t.profiled?(r=G(t.profiled,t.executions),e[5]=t.executions,e[6]=t.profiled,e[7]=r):r=e[7];let x;e[8]!==t.profiled?(x=d(t.profiled),e[8]=t.profiled,e[9]=x):x=e[9];let _;e[10]!==t.executions?(_=d(t.executions),e[10]=t.executions,e[11]=_):_=e[11];const w=`${x} of ${_}`;let a;e[12]!==r||e[13]!==w?(a=l.jsx(R,{label:"Executions profiled",value:r,hint:w}),e[12]=r,e[13]=w,e[14]=a):a=e[14];let n;e[15]!==t.avg_samples?(n=d(t.avg_samples),e[15]=t.avg_samples,e[16]=n):n=e[16];let m;e[17]!==n?(m=l.jsx(R,{label:"Avg samples",value:n}),e[17]=n,e[18]=m):m=e[18];let p;e[19]!==s||e[20]!==a||e[21]!==m?(p=l.jsxs(C,{children:[s,a,m]}),e[19]=s,e[20]=a,e[21]=m,e[22]=p):p=e[22];let g;e[23]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx(D,{icon:W,title:"No profiles in this window",description:"Set RAILWATCH_PROFILE_SAMPLE_RATE in the app to profile slow executions."}),e[23]=g):g=e[23];let f;e[24]!==S||e[25]!==k||e[26]!==b?(f={key:"name",header:"Execution",className:"max-w-0",cell:L=>l.jsx(N,{href:O(S,k,L.profile_id,{window:b}),className:"block truncate font-mono text-xs hover:underline",children:L.name??L.group_hash})},e[24]=S,e[25]=k,e[26]=b,e[27]=f):f=e[27];let y,v,j,E;e[28]===Symbol.for("react.memo_cache_sentinel")?(y={key:"n",header:"Profiles",align:"right",cell:J},v={key:"avg",header:"Avg duration",align:"right",cell:B},j={key:"samples",hideOnMobile:!0,header:"Max samples",align:"right",cell:z},E={key:"last",hideOnMobile:!0,header:"Last seen",align:"right",cell:q},e[28]=y,e[29]=v,e[30]=j,e[31]=E):(y=e[28],v=e[29],j=e[30],E=e[31]);let c;e[32]!==f?(c=[f,y,v,j,E],e[32]=f,e[33]=c):c=e[33];let u;e[34]!==i.profiles||e[35]!==c?(u=l.jsx($,{rows:i.profiles,rowKey:Q,empty:g,columns:c}),e[34]=i.profiles,e[35]=c,e[36]=u):u=e[36];let P;return e[37]!==p||e[38]!==u?(P=l.jsxs(H,{title:"Profiles",children:[h,p,u]}),e[37]=p,e[38]=u,e[39]=P):P=e[39],P}function q(i){return l.jsx(I,{iso:i.last_seen_at})}function z(i){return d(i.max_samples)}function B(i){return K(i.avg_duration)}function J(i){return d(i.count)}function Q(i){return i.group_hash}export{de as default};
1
+ import{c as M,u as N,j as l,L as T,G as O}from"./inertia-DLew8ZNx.js";import{D as $}from"./data-table-BIlt7Rtm.js";import{E as D}from"./empty-state-C38il627.js";import{P as F,E as H}from"./env-layout-REF7OM4q.js";import{R as I}from"./relative-time-CjIjb8Lg.js";import{S as R,a as C}from"./stat-DFEyFxkO.js";import{c as d,p as G,m as K}from"./format-B9SDkrWj.js";import{N as W}from"./app-layout-DDyQa72H.js";import"./chart-hover-B1M9jc0y.js";import"./badge-CAxXV8za.js";import"./app-wordmark-o9CODKP0.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./arrow-up-C6PxDiY3.js";import"./checkbox-CmhMHWZO.js";function de(i){const e=M.c(40),{environment:A,window:b}=N().props,S=A.application_id,k=A.id,t=i.summary;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(F,{title:"Profiles",description:"Sampled stack profiles, grouped by the execution they profiled."}),e[0]=h):h=e[0];let o;e[1]!==t.profiles?(o=d(t.profiles),e[1]=t.profiles,e[2]=o):o=e[2];let s;e[3]!==o?(s=l.jsx(R,{label:"Profiles",value:o}),e[3]=o,e[4]=s):s=e[4];let r;e[5]!==t.executions||e[6]!==t.profiled?(r=G(t.profiled,t.executions),e[5]=t.executions,e[6]=t.profiled,e[7]=r):r=e[7];let x;e[8]!==t.profiled?(x=d(t.profiled),e[8]=t.profiled,e[9]=x):x=e[9];let _;e[10]!==t.executions?(_=d(t.executions),e[10]=t.executions,e[11]=_):_=e[11];const w=`${x} of ${_}`;let a;e[12]!==r||e[13]!==w?(a=l.jsx(R,{label:"Executions profiled",value:r,hint:w}),e[12]=r,e[13]=w,e[14]=a):a=e[14];let n;e[15]!==t.avg_samples?(n=d(t.avg_samples),e[15]=t.avg_samples,e[16]=n):n=e[16];let m;e[17]!==n?(m=l.jsx(R,{label:"Avg samples",value:n}),e[17]=n,e[18]=m):m=e[18];let p;e[19]!==s||e[20]!==a||e[21]!==m?(p=l.jsxs(C,{children:[s,a,m]}),e[19]=s,e[20]=a,e[21]=m,e[22]=p):p=e[22];let g;e[23]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx(D,{icon:W,title:"No profiles in this window",description:"Set RAILWATCH_PROFILE_SAMPLE_RATE in the app to profile slow executions."}),e[23]=g):g=e[23];let f;e[24]!==S||e[25]!==k||e[26]!==b?(f={key:"name",header:"Execution",className:"max-w-0",cell:L=>l.jsx(T,{href:O(S,k,L.profile_id,{window:b}),className:"block truncate font-mono text-xs hover:underline",children:L.name??L.group_hash})},e[24]=S,e[25]=k,e[26]=b,e[27]=f):f=e[27];let v,y,j,E;e[28]===Symbol.for("react.memo_cache_sentinel")?(v={key:"n",header:"Profiles",align:"right",cell:J},y={key:"avg",header:"Avg duration",align:"right",cell:B},j={key:"samples",hideOnMobile:!0,header:"Max samples",align:"right",cell:z},E={key:"last",hideOnMobile:!0,header:"Last seen",align:"right",cell:q},e[28]=v,e[29]=y,e[30]=j,e[31]=E):(v=e[28],y=e[29],j=e[30],E=e[31]);let c;e[32]!==f?(c=[f,v,y,j,E],e[32]=f,e[33]=c):c=e[33];let u;e[34]!==i.profiles||e[35]!==c?(u=l.jsx($,{rows:i.profiles,rowKey:Q,empty:g,columns:c}),e[34]=i.profiles,e[35]=c,e[36]=u):u=e[36];let P;return e[37]!==p||e[38]!==u?(P=l.jsxs(H,{title:"Profiles",children:[h,p,u]}),e[37]=p,e[38]=u,e[39]=P):P=e[39],P}function q(i){return l.jsx(I,{iso:i.last_seen_at})}function z(i){return d(i.max_samples)}function B(i){return K(i.avg_duration)}function J(i){return d(i.count)}function Q(i){return i.group_hash}export{de as default};
@@ -1 +1 @@
1
- import{c as x,u as _,j as o,y as b,e as h}from"./inertia-CUTKXjxg.js";import{D as k}from"./data-table-CwtPkw_i.js";import{E as w}from"./empty-state-CshhuRUU.js";import{E as j,P as v}from"./env-layout-Dkp_4NvM.js";import{w as N,c as R}from"./format-B9SDkrWj.js";import{R as D}from"./app-layout-DUk54qUM.js";import"./chart-hover-DMWx5-Rs.js";import"./badge-s7YDycYg.js";import"./app-wordmark-DDNuuq5_.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./checkbox-C2AqEZXX.js";function X(t){const e=x.c(13),{environment:y}=_().props,d=y.application_id,f=y.id;let s;e[0]!==d||e[1]!==f?(s=i=>b(d,f,i.id),e[0]=d,e[1]=f,e[2]=s):s=e[2];const l=s;let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(v,{withWindow:!1,title:"Deploys",description:"Recorded by bin/rails railwatch:deploy or the Kamal post-deploy hook. Click one to compare the hour before and after."}),e[3]=a):a=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(w,{icon:D,title:"No deploys recorded",description:"Run bin/rails railwatch:deploy or install the Kamal hook to track deploys."}),e[4]=m):m=e[4];let r,n;e[5]!==l?(r=i=>h.visit(l(i)),n={onOpen:(i,u)=>u?.newTab?window.open(l(i),"_blank"):h.visit(l(i))},e[5]=l,e[6]=r,e[7]=n):(r=e[6],n=e[7]);let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=[{key:"when",header:"When",cell:C},{key:"d",header:"Deploy",cell:P},{key:"r",hideOnMobile:!0,header:"Ref",cell:M},{key:"n",hideOnMobile:!0,header:"Name",cell:g},{key:"by",hideOnMobile:!0,header:"By",cell:S},{key:"c",hideOnMobile:!0,header:"Commits",align:"right",cell:O},{key:"s",header:"Server",cell:E}],e[8]=c):c=e[8];let p;return e[9]!==t.deploys||e[10]!==r||e[11]!==n?(p=o.jsxs(j,{title:"Deploys",children:[a,o.jsx(k,{rows:t.deploys,rowKey:K,empty:m,onRowClick:r,keyboardNav:n,columns:c})]}),e[9]=t.deploys,e[10]=r,e[11]=n,e[12]=p):p=e[12],p}function E(t){return o.jsx("span",{className:"font-mono text-xs",children:t.server})}function O(t){return R(t.commits_count)}function S(t){return o.jsx("span",{className:"text-xs",children:t.performer})}function g(t){return t.name}function M(t){return o.jsx("span",{className:"font-mono text-xs",children:t.ref})}function P(t){return o.jsx("span",{className:"font-mono text-xs",children:t.deploy})}function C(t){return o.jsx("span",{className:"text-xs",children:N(t.deployed_at)})}function K(t){return t.id}export{X as default};
1
+ import{c as x,u as _,j as o,y as b,e as h}from"./inertia-DLew8ZNx.js";import{D as k}from"./data-table-BIlt7Rtm.js";import{E as w}from"./empty-state-C38il627.js";import{E as j,P as v}from"./env-layout-REF7OM4q.js";import{w as N,c as R}from"./format-B9SDkrWj.js";import{R as D}from"./app-layout-DDyQa72H.js";import"./chart-hover-B1M9jc0y.js";import"./badge-CAxXV8za.js";import"./app-wordmark-o9CODKP0.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./checkbox-CmhMHWZO.js";function X(t){const e=x.c(13),{environment:y}=_().props,d=y.application_id,f=y.id;let s;e[0]!==d||e[1]!==f?(s=i=>b(d,f,i.id),e[0]=d,e[1]=f,e[2]=s):s=e[2];const l=s;let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(v,{withWindow:!1,title:"Deploys",description:"Recorded by bin/rails railwatch:deploy or the Kamal post-deploy hook. Click one to compare the hour before and after."}),e[3]=a):a=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(w,{icon:D,title:"No deploys recorded",description:"Run bin/rails railwatch:deploy or install the Kamal hook to track deploys."}),e[4]=m):m=e[4];let r,n;e[5]!==l?(r=i=>h.visit(l(i)),n={onOpen:(i,u)=>u?.newTab?window.open(l(i),"_blank"):h.visit(l(i))},e[5]=l,e[6]=r,e[7]=n):(r=e[6],n=e[7]);let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=[{key:"when",header:"When",cell:C},{key:"d",header:"Deploy",cell:P},{key:"r",hideOnMobile:!0,header:"Ref",cell:M},{key:"n",hideOnMobile:!0,header:"Name",cell:g},{key:"by",hideOnMobile:!0,header:"By",cell:S},{key:"c",hideOnMobile:!0,header:"Commits",align:"right",cell:O},{key:"s",header:"Server",cell:E}],e[8]=c):c=e[8];let p;return e[9]!==t.deploys||e[10]!==r||e[11]!==n?(p=o.jsxs(j,{title:"Deploys",children:[a,o.jsx(k,{rows:t.deploys,rowKey:K,empty:m,onRowClick:r,keyboardNav:n,columns:c})]}),e[9]=t.deploys,e[10]=r,e[11]=n,e[12]=p):p=e[12],p}function E(t){return o.jsx("span",{className:"font-mono text-xs",children:t.server})}function O(t){return R(t.commits_count)}function S(t){return o.jsx("span",{className:"text-xs",children:t.performer})}function g(t){return t.name}function M(t){return o.jsx("span",{className:"font-mono text-xs",children:t.ref})}function P(t){return o.jsx("span",{className:"font-mono text-xs",children:t.deploy})}function C(t){return o.jsx("span",{className:"text-xs",children:N(t.deployed_at)})}function K(t){return t.id}export{X as default};
@@ -1 +1 @@
1
- import{c as x,u as g,j as r,az as j,e as h}from"./inertia-CUTKXjxg.js";import{D as _}from"./data-table-CwtPkw_i.js";import{E as w}from"./empty-state-CshhuRUU.js";import{E as b,P as v}from"./env-layout-Dkp_4NvM.js";import{c as k,a as E}from"./format-B9SDkrWj.js";import{U as N}from"./app-layout-DUk54qUM.js";import"./chart-hover-DMWx5-Rs.js";import"./badge-s7YDycYg.js";import"./app-wordmark-DDNuuq5_.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./checkbox-C2AqEZXX.js";function Q(t){const e=x.c(13),{environment:f}=g().props,u=f.application_id,d=f.id;let a;e[0]!==u||e[1]!==d?(a=i=>j(u,d,i.ref),e[0]=u,e[1]=d,e[2]=a):a=e[2];const o=a;let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx(v,{title:"Users",description:"Your application's users as seen in telemetry, with their activity and errors."}),e[3]=l):l=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(w,{icon:N,title:"No authenticated activity in this window",description:"People appear here once requests are tagged with an authenticated user."}),e[4]=m):m=e[4];let s,n;e[5]!==o?(s=i=>h.visit(o(i)),n={onOpen:(i,y)=>y?.newTab?window.open(o(i),"_blank"):h.visit(o(i))},e[5]=o,e[6]=s,e[7]=n):(s=e[6],n=e[7]);let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=[{key:"n",header:"User",cell:q},{key:"t",hideOnMobile:!0,header:"Tenant",cell:S},{key:"r",header:"Requests",align:"right",cell:R},{key:"e",hideOnMobile:!0,header:"Errors",align:"right",cell:U},{key:"l",header:"Last seen",align:"right",cell:P}],e[8]=c):c=e[8];let p;return e[9]!==t.people||e[10]!==s||e[11]!==n?(p=r.jsxs(b,{title:"Users",children:[l,r.jsx(_,{rows:t.people,rowKey:O,empty:m,onRowClick:s,keyboardNav:n,columns:c})]}),e[9]=t.people,e[10]=s,e[11]=n,e[12]=p):p=e[12],p}function P(t){return E(t.last_seen_at)}function U(t){return r.jsx("span",{className:t.errors?"text-destructive":"",children:t.errors})}function R(t){return k(t.requests)}function S(t){return r.jsx("span",{className:"font-mono text-xs",children:t.tenant??""})}function q(t){return r.jsxs("span",{className:"text-xs",children:[r.jsx("span",{className:"font-medium",children:t.name??t.ref}),t.email&&r.jsxs("span",{className:"text-muted-foreground",children:[" · ",t.email]})]})}function O(t){return t.ref}export{Q as default};
1
+ import{c as x,u as g,j as r,az as j,e as h}from"./inertia-DLew8ZNx.js";import{D as _}from"./data-table-BIlt7Rtm.js";import{E as w}from"./empty-state-C38il627.js";import{E as b,P as v}from"./env-layout-REF7OM4q.js";import{c as k,a as E}from"./format-B9SDkrWj.js";import{U as N}from"./app-layout-DDyQa72H.js";import"./chart-hover-B1M9jc0y.js";import"./badge-CAxXV8za.js";import"./app-wordmark-o9CODKP0.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./checkbox-CmhMHWZO.js";function Q(t){const e=x.c(13),{environment:f}=g().props,u=f.application_id,d=f.id;let a;e[0]!==u||e[1]!==d?(a=i=>j(u,d,i.ref),e[0]=u,e[1]=d,e[2]=a):a=e[2];const o=a;let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx(v,{title:"Users",description:"Your application's users as seen in telemetry, with their activity and errors."}),e[3]=l):l=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(w,{icon:N,title:"No authenticated activity in this window",description:"People appear here once requests are tagged with an authenticated user."}),e[4]=m):m=e[4];let s,n;e[5]!==o?(s=i=>h.visit(o(i)),n={onOpen:(i,y)=>y?.newTab?window.open(o(i),"_blank"):h.visit(o(i))},e[5]=o,e[6]=s,e[7]=n):(s=e[6],n=e[7]);let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=[{key:"n",header:"User",cell:q},{key:"t",hideOnMobile:!0,header:"Tenant",cell:S},{key:"r",header:"Requests",align:"right",cell:R},{key:"e",hideOnMobile:!0,header:"Errors",align:"right",cell:U},{key:"l",header:"Last seen",align:"right",cell:P}],e[8]=c):c=e[8];let p;return e[9]!==t.people||e[10]!==s||e[11]!==n?(p=r.jsxs(b,{title:"Users",children:[l,r.jsx(_,{rows:t.people,rowKey:O,empty:m,onRowClick:s,keyboardNav:n,columns:c})]}),e[9]=t.people,e[10]=s,e[11]=n,e[12]=p):p=e[12],p}function P(t){return E(t.last_seen_at)}function U(t){return r.jsx("span",{className:t.errors?"text-destructive":"",children:t.errors})}function R(t){return k(t.requests)}function S(t){return r.jsx("span",{className:"font-mono text-xs",children:t.tenant??""})}function q(t){return r.jsxs("span",{className:"text-xs",children:[r.jsx("span",{className:"font-medium",children:t.name??t.ref}),t.email&&r.jsxs("span",{className:"text-muted-foreground",children:[" · ",t.email]})]})}function O(t){return t.ref}export{Q as default};
@@ -1 +1 @@
1
- import{c as M,u as A,j as n,t as K,e as P,L as R}from"./inertia-CUTKXjxg.js";import{D as S}from"./data-table-CwtPkw_i.js";import{E as B}from"./empty-state-CshhuRUU.js";import{P as $,E as D}from"./env-layout-Dkp_4NvM.js";import{B as L}from"./badge-s7YDycYg.js";import{c as T,b as O,m as C,w as H}from"./format-B9SDkrWj.js";import{b as E}from"./app-layout-DUk54qUM.js";import"./chart-hover-DMWx5-Rs.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./app-wordmark-DDNuuq5_.js";import"./index-BpnfuXi-.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./checkbox-C2AqEZXX.js";function fe(t){const e=M.c(26),{environment:N}=A().props,j=N.application_id,w=N.id;let c;e[0]!==j||e[1]!==w?(c=r=>r.execution_id?K(j,w,r.execution_id):null,e[0]=j,e[1]=w,e[2]=c):c=e[2];const i=c;let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx($,{title:"Broadcasts",description:"Action Cable broadcasts, transmits, and channel actions (covers inertia_cable and Turbo Streams)."}),e[3]=m):m=e[3];let d,u;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(B,{icon:E,title:"No broadcasts in this window",description:"Action Cable broadcasts appear here as your app sends them."}),u=[{key:"k",header:"Kind",cell:X},{key:"n",header:"Stream / channel",cell:V},{key:"c",hideOnMobile:!0,header:"Count",align:"right",cell:U},{key:"b",hideOnMobile:!0,header:"Bytes",align:"right",cell:Q},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:J}],e[4]=d,e[5]=u):(d=e[4],u=e[5]);let a;e[6]!==t.streams?(a=n.jsx(S,{rows:t.streams,rowKey:Y,empty:d,columns:u}),e[6]=t.streams,e[7]=a):a=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[8]=p):p=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(B,{icon:E,title:"No broadcasts in this window",description:"Action Cable broadcasts appear here as your app sends them."}),e[9]=h):h=e[9];let s;e[10]!==i?(s={onOpen:(r,g)=>{const v=i(r);v&&(g?.newTab?window.open(v,"_blank"):P.visit(v))}},e[10]=i,e[11]=s):s=e[11];let f,b,x,y,_;e[12]===Symbol.for("react.memo_cache_sentinel")?(y={key:"when",header:"When",cell:F},_={key:"k",header:"Kind",cell:z},f={key:"s",header:"Stream / channel",cell:W},b={key:"b",hideOnMobile:!0,header:"Bytes",align:"right",cell:I},x={key:"d",header:"Duration",align:"right",cell:q},e[12]=f,e[13]=b,e[14]=x,e[15]=y,e[16]=_):(f=e[12],b=e[13],x=e[14],y=e[15],_=e[16]);let o;e[17]!==i?(o=[y,_,f,b,x,{key:"in",hideOnMobile:!0,header:"In",cell:r=>{const g=i(r);return g?n.jsx(R,{className:"font-mono text-xs hover:underline",href:g,children:r.execution_preview}):null}}],e[17]=i,e[18]=o):o=e[18];let l;e[19]!==t.recent||e[20]!==o||e[21]!==s?(l=n.jsx(S,{rows:t.recent,rowKey:G,empty:h,keyboardNav:s,columns:o}),e[19]=t.recent,e[20]=o,e[21]=s,e[22]=l):l=e[22];let k;return e[23]!==l||e[24]!==a?(k=n.jsxs(D,{title:"Broadcasts",children:[m,a,p,l]}),e[23]=l,e[24]=a,e[25]=k):k=e[25],k}function q(t){return C(t.duration,3)}function I(t){return O(t.bytes)}function W(t){return n.jsxs("span",{className:"font-mono text-xs",children:[t.stream??t.channel,t.action?`#${t.action}`:""]})}function z(t){return t.failed?n.jsxs("span",{className:"flex items-center gap-1.5",children:[t.kind,n.jsx(L,{variant:"destructive",children:"failed"})]}):t.kind}function F(t){return n.jsx("span",{className:"text-xs",children:H(t.occurred_at)})}function G(t){return t.id}function J(t){return C(t.avg,3)}function Q(t){return O(t.bytes)}function U(t){return T(t.count)}function V(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function X(t){return t.kind}function Y(t){return`${t.group_hash}-${t.kind}`}export{fe as default};
1
+ import{c as M,u as A,j as n,t as K,e as P,L as R}from"./inertia-DLew8ZNx.js";import{D as S}from"./data-table-BIlt7Rtm.js";import{E as B}from"./empty-state-C38il627.js";import{P as $,E as D}from"./env-layout-REF7OM4q.js";import{B as L}from"./badge-CAxXV8za.js";import{c as T,b as O,m as C,w as H}from"./format-B9SDkrWj.js";import{b as E}from"./app-layout-DDyQa72H.js";import"./chart-hover-B1M9jc0y.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./app-wordmark-o9CODKP0.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./checkbox-CmhMHWZO.js";function fe(t){const e=M.c(26),{environment:N}=A().props,j=N.application_id,w=N.id;let c;e[0]!==j||e[1]!==w?(c=r=>r.execution_id?K(j,w,r.execution_id):null,e[0]=j,e[1]=w,e[2]=c):c=e[2];const i=c;let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx($,{title:"Broadcasts",description:"Action Cable broadcasts, transmits, and channel actions (covers inertia_cable and Turbo Streams)."}),e[3]=m):m=e[3];let d,u;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(B,{icon:E,title:"No broadcasts in this window",description:"Action Cable broadcasts appear here as your app sends them."}),u=[{key:"k",header:"Kind",cell:X},{key:"n",header:"Stream / channel",cell:V},{key:"c",hideOnMobile:!0,header:"Count",align:"right",cell:U},{key:"b",hideOnMobile:!0,header:"Bytes",align:"right",cell:Q},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:J}],e[4]=d,e[5]=u):(d=e[4],u=e[5]);let a;e[6]!==t.streams?(a=n.jsx(S,{rows:t.streams,rowKey:Y,empty:d,columns:u}),e[6]=t.streams,e[7]=a):a=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[8]=p):p=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(B,{icon:E,title:"No broadcasts in this window",description:"Action Cable broadcasts appear here as your app sends them."}),e[9]=h):h=e[9];let s;e[10]!==i?(s={onOpen:(r,g)=>{const v=i(r);v&&(g?.newTab?window.open(v,"_blank"):P.visit(v))}},e[10]=i,e[11]=s):s=e[11];let f,b,x,y,_;e[12]===Symbol.for("react.memo_cache_sentinel")?(y={key:"when",header:"When",cell:F},_={key:"k",header:"Kind",cell:z},f={key:"s",header:"Stream / channel",cell:W},b={key:"b",hideOnMobile:!0,header:"Bytes",align:"right",cell:I},x={key:"d",header:"Duration",align:"right",cell:q},e[12]=f,e[13]=b,e[14]=x,e[15]=y,e[16]=_):(f=e[12],b=e[13],x=e[14],y=e[15],_=e[16]);let o;e[17]!==i?(o=[y,_,f,b,x,{key:"in",hideOnMobile:!0,header:"In",cell:r=>{const g=i(r);return g?n.jsx(R,{className:"font-mono text-xs hover:underline",href:g,children:r.execution_preview}):null}}],e[17]=i,e[18]=o):o=e[18];let l;e[19]!==t.recent||e[20]!==o||e[21]!==s?(l=n.jsx(S,{rows:t.recent,rowKey:G,empty:h,keyboardNav:s,columns:o}),e[19]=t.recent,e[20]=o,e[21]=s,e[22]=l):l=e[22];let k;return e[23]!==l||e[24]!==a?(k=n.jsxs(D,{title:"Broadcasts",children:[m,a,p,l]}),e[23]=l,e[24]=a,e[25]=k):k=e[25],k}function q(t){return C(t.duration,3)}function I(t){return O(t.bytes)}function W(t){return n.jsxs("span",{className:"font-mono text-xs",children:[t.stream??t.channel,t.action?`#${t.action}`:""]})}function z(t){return t.failed?n.jsxs("span",{className:"flex items-center gap-1.5",children:[t.kind,n.jsx(L,{variant:"destructive",children:"failed"})]}):t.kind}function F(t){return n.jsx("span",{className:"text-xs",children:H(t.occurred_at)})}function G(t){return t.id}function J(t){return C(t.avg,3)}function Q(t){return O(t.bytes)}function U(t){return T(t.count)}function V(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function X(t){return t.kind}function Y(t){return`${t.group_hash}-${t.kind}`}export{fe as default};
@@ -1 +1 @@
1
- import{c as Z,u as ee,j as s,t as te,e as W,a0 as se,L as oe,r as G}from"./inertia-CUTKXjxg.js";import{V as re,D as ne}from"./chart-panel-BlirnMrQ.js";import{D as J}from"./data-table-CwtPkw_i.js";import{E as Q}from"./empty-state-CshhuRUU.js";import{F as le}from"./filter-bar-BMHf8xBb.js";import{P as ie,E as ae}from"./env-layout-Dkp_4NvM.js";import{u as ce,P as me}from"./percentile-picker-_wllqYoJ.js";import{S as ue}from"./sparkline-cell-BwdBz0yv.js";import{S as de}from"./status-badge-XYUN9gUA.js";import{u as fe,C as pe}from"./use-clipboard-D5i6e5kf.js";import{m as V,c as he,p as xe,w as ge,b as X}from"./format-B9SDkrWj.js";import{q as Y,C as ye,a as be}from"./app-layout-DUk54qUM.js";import{C as _e}from"./index-BpnfuXi-.js";import"./series-chart-C1YrNlID.js";import"./chart-hover-DMWx5-Rs.js";import"./chart-nsdZV0Dv.js";import"./badge-s7YDycYg.js";import"./app-wordmark-DDNuuq5_.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./checkbox-C2AqEZXX.js";function je(t){const e=Z.c(16),{body:p}=t,[o,i]=G.useState(!1),[,m]=fe(),[u,h]=G.useState(!1),d=o?ye:be;let a;e[0]!==o?(a=()=>i(!o),e[0]=o,e[1]=a):a=e[1];let r;e[2]!==d?(r=s.jsx(d,{className:"size-3"}),e[2]=d,e[3]=r):r=e[3];let n;e[4]!==o||e[5]!==a||e[6]!==r?(n=s.jsxs("button",{type:"button",onClick:a,"aria-expanded":o,className:"text-muted-foreground hover:text-foreground inline-flex items-center gap-1",children:[r,"Body"]}),e[4]=o,e[5]=a,e[6]=r,e[7]=n):n=e[7];let l;e[8]!==p||e[9]!==u||e[10]!==m||e[11]!==o?(l=o&&s.jsxs("div",{className:"w-[70vw] max-w-[36rem] space-y-1 text-left",children:[s.jsxs("button",{type:"button",onClick:()=>{(async()=>await m(p)&&(h(!0),setTimeout(()=>h(!1),1200)))()},className:"text-muted-foreground hover:text-foreground inline-flex items-center gap-1",children:[u?s.jsx(_e,{className:"size-3"}):s.jsx(pe,{className:"size-3"}),"Copy"]}),s.jsx("pre",{className:"bg-muted max-h-64 overflow-auto rounded p-2 font-mono text-[10px] break-all whitespace-pre-wrap",children:p})]}),e[8]=p,e[9]=u,e[10]=m,e[11]=o,e[12]=l):l=e[12];let f;return e[13]!==n||e[14]!==l?(f=s.jsxs("div",{className:"flex flex-col items-end gap-1",children:[n,l]}),e[13]=n,e[14]=l,e[15]=f):f=e[15],f}function it(t){const e=Z.c(62),{environment:p,window:o}=ee().props,{percentile:i}=ce(),m=p.application_id,u=p.id;let h;e[0]!==m||e[1]!==u?(h=c=>c.execution_id?te(m,u,c.execution_id):null,e[0]=m,e[1]=u,e[2]=h):h=e[2];const d=h;let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(ie,{title:"Outgoing requests",description:"HTTP calls your app makes to other services, by host and method.",actions:s.jsx(me,{})}),e[3]=a):a=e[3];let r;e[4]!==t.series?(r=s.jsx(re,{legend:"request",label:"Outgoing requests",seriesLabel:"Calls",data:t.series}),e[4]=t.series,e[5]=r):r=e[5];let n;e[6]!==t.series||e[7]!==i?(n=s.jsx(ne,{label:"Latency",data:t.series,percentile:i}),e[6]=t.series,e[7]=i,e[8]=n):n=e[8];let l;e[9]!==r||e[10]!==n?(l=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[r,n]}),e[9]=r,e[10]=n,e[11]=l):l=e[11];let f,S,C,q,O,P;e[12]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Q,{icon:Y,title:"No outgoing requests in this window",description:"HTTP calls your app makes to other services appear here."}),C={key:"h",header:"Host",cell:He},q={key:"trend",hideOnMobile:!0,header:"Trend",cell:Me},O={key:"n",header:"Calls",align:"right",cell:Ee},P={key:"f",hideOnMobile:!0,header:"Failed",align:"right",cell:Te},f={key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:Re},e[12]=f,e[13]=S,e[14]=C,e[15]=q,e[16]=O,e[17]=P):(f=e[12],S=e[13],C=e[14],q=e[15],O=e[16],P=e[17]);let x;e[18]!==i?(x=c=>s.jsx("span",{className:"font-semibold",children:V(c[i])}),e[18]=i,e[19]=x):x=e[19];let g;e[20]!==i||e[21]!==x?(g={key:i,header:i,align:"right",cell:x},e[20]=i,e[21]=x,e[22]=g):g=e[22];let R;e[23]===Symbol.for("react.memo_cache_sentinel")?(R={key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:Pe},e[23]=R):R=e[23];let y;e[24]!==g?(y=[C,q,O,P,f,g,R],e[24]=g,e[25]=y):y=e[25];let b;e[26]!==t.hosts||e[27]!==y?(b=s.jsx(J,{rows:t.hosts,rowKey:ze,empty:S,columns:y}),e[26]=t.hosts,e[27]=y,e[28]=b):b=e[28];let T;e[29]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[29]=T):T=e[29];let E;e[30]===Symbol.for("react.memo_cache_sentinel")?(E={key:"host",label:"Host"},e[30]=E):E=e[30];let M;e[31]===Symbol.for("react.memo_cache_sentinel")?(M=[E,{key:"status",label:"Status",options:["2xx","3xx","4xx","5xx"]}],e[31]=M):M=e[31];let _;e[32]!==m||e[33]!==u||e[34]!==o?(_=c=>W.visit(se(m,u,{window:o,q:c||void 0}),{preserveState:!0}),e[32]=m,e[33]=u,e[34]=o,e[35]=_):_=e[35];let j;e[36]!==t.q||e[37]!==_?(j=s.jsx(le,{value:t.q,fields:M,onChange:_,placeholder:"host:api.test status:5xx"}),e[36]=t.q,e[37]=_,e[38]=j):j=e[38];let H;e[39]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(Q,{icon:Y,title:"No outgoing requests in this window",description:"HTTP calls your app makes to other services appear here."}),e[39]=H):H=e[39];let k;e[40]!==d?(k={onOpen:(c,K)=>{const U=d(c);U&&(K?.newTab?globalThis.window.open(U,"_blank"):W.visit(U))}},e[40]=d,e[41]=k):k=e[41];let z,D,L,B,$,F;e[42]===Symbol.for("react.memo_cache_sentinel")?(z={key:"when",header:"When",cell:qe},D={key:"st",header:"Status",cell:Ce},L={key:"u",hideOnMobile:!0,header:"Request",cell:Se},B={key:"sz",hideOnMobile:!0,header:"In/out",align:"right",cell:Ne},$={key:"d",header:"Duration",align:"right",cell:we},F={key:"src",hideOnMobile:!0,header:"Source",cell:ve},e[42]=z,e[43]=D,e[44]=L,e[45]=B,e[46]=$,e[47]=F):(z=e[42],D=e[43],L=e[44],B=e[45],$=e[46],F=e[47]);let v;e[48]!==d?(v={key:"in",hideOnMobile:!0,header:"In",cell:c=>{const K=d(c);return K?s.jsx(oe,{className:"font-mono text-xs hover:underline",href:K,children:c.execution_preview}):null}},e[48]=d,e[49]=v):v=e[49];let A;e[50]===Symbol.for("react.memo_cache_sentinel")?(A={key:"body",header:"Response",align:"right",cell:ke},e[50]=A):A=e[50];let w;e[51]!==v?(w=[z,D,L,B,$,F,v,A],e[51]=v,e[52]=w):w=e[52];let N;e[53]!==t.recent||e[54]!==k||e[55]!==w?(N=s.jsx(J,{rows:t.recent,rowKey:Oe,empty:H,keyboardNav:k,columns:w}),e[53]=t.recent,e[54]=k,e[55]=w,e[56]=N):N=e[56];let I;return e[57]!==b||e[58]!==j||e[59]!==N||e[60]!==l?(I=s.jsxs(ae,{title:"Outgoing requests",children:[a,l,b,T,j,N]}),e[57]=b,e[58]=j,e[59]=N,e[60]=l,e[61]=I):I=e[61],I}function ke(t){return t.response_body?s.jsx(je,{body:t.response_body}):s.jsx("span",{className:"text-muted-foreground",children:"–"})}function ve(t){return s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source??""})}function we(t){return V(t.duration)}function Ne(t){return`${X(t.request_size)} / ${X(t.response_size)}`}function Se(t){return s.jsxs("span",{className:"font-mono text-xs",children:[s.jsx("span",{className:"font-semibold",children:t.method})," ",t.url]})}function Ce(t){return s.jsx(de,{status:t.status_code,label:t.error?"error":void 0,outcome:t.error?"failed":void 0})}function qe(t){return s.jsx("span",{className:"text-xs",children:ge(t.occurred_at)})}function Oe(t){return t.id}function Pe(t){return V(t.max)}function Re(t){return V(t.avg)}function Te(t){return s.jsx("span",{className:t.errors?"text-destructive":"",children:xe(t.errors,t.count)})}function Ee(t){return he(t.count)}function Me(t){return s.jsx(ue,{data:t.sparkline})}function He(t){return s.jsx("span",{className:"font-mono text-xs",children:t.name})}function ze(t){return t.group_hash}export{it as default};
1
+ import{c as Z,u as ee,j as s,t as te,e as W,a0 as se,L as oe,r as G}from"./inertia-DLew8ZNx.js";import{V as re,D as ne}from"./chart-panel-DUQTz_C8.js";import{D as J}from"./data-table-BIlt7Rtm.js";import{E as Q}from"./empty-state-C38il627.js";import{F as le}from"./filter-bar-CYog9Alp.js";import{P as ie,E as ae}from"./env-layout-REF7OM4q.js";import{u as ce,P as me}from"./percentile-picker-DfSx9yJO.js";import{S as ue}from"./sparkline-cell-BON3qQUB.js";import{S as de}from"./status-badge-BaUKP7Yo.js";import{u as fe,C as pe}from"./use-clipboard-ByoUGQqA.js";import{m as V,c as he,p as xe,w as ge,b as X}from"./format-B9SDkrWj.js";import{q as Y,C as ye,a as be}from"./app-layout-DDyQa72H.js";import{C as _e}from"./index-umIAl-pL.js";import"./series-chart-Xf49v9cv.js";import"./chart-hover-B1M9jc0y.js";import"./chart-BBeBkkNa.js";import"./badge-CAxXV8za.js";import"./app-wordmark-o9CODKP0.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./checkbox-CmhMHWZO.js";function je(t){const e=Z.c(16),{body:p}=t,[o,i]=G.useState(!1),[,m]=fe(),[u,h]=G.useState(!1),d=o?ye:be;let a;e[0]!==o?(a=()=>i(!o),e[0]=o,e[1]=a):a=e[1];let r;e[2]!==d?(r=s.jsx(d,{className:"size-3"}),e[2]=d,e[3]=r):r=e[3];let n;e[4]!==o||e[5]!==a||e[6]!==r?(n=s.jsxs("button",{type:"button",onClick:a,"aria-expanded":o,className:"text-muted-foreground hover:text-foreground inline-flex items-center gap-1",children:[r,"Body"]}),e[4]=o,e[5]=a,e[6]=r,e[7]=n):n=e[7];let l;e[8]!==p||e[9]!==u||e[10]!==m||e[11]!==o?(l=o&&s.jsxs("div",{className:"w-[70vw] max-w-[36rem] space-y-1 text-left",children:[s.jsxs("button",{type:"button",onClick:()=>{(async()=>await m(p)&&(h(!0),setTimeout(()=>h(!1),1200)))()},className:"text-muted-foreground hover:text-foreground inline-flex items-center gap-1",children:[u?s.jsx(_e,{className:"size-3"}):s.jsx(pe,{className:"size-3"}),"Copy"]}),s.jsx("pre",{className:"bg-muted max-h-64 overflow-auto rounded p-2 font-mono text-[10px] break-all whitespace-pre-wrap",children:p})]}),e[8]=p,e[9]=u,e[10]=m,e[11]=o,e[12]=l):l=e[12];let f;return e[13]!==n||e[14]!==l?(f=s.jsxs("div",{className:"flex flex-col items-end gap-1",children:[n,l]}),e[13]=n,e[14]=l,e[15]=f):f=e[15],f}function it(t){const e=Z.c(62),{environment:p,window:o}=ee().props,{percentile:i}=ce(),m=p.application_id,u=p.id;let h;e[0]!==m||e[1]!==u?(h=c=>c.execution_id?te(m,u,c.execution_id):null,e[0]=m,e[1]=u,e[2]=h):h=e[2];const d=h;let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(ie,{title:"Outgoing requests",description:"HTTP calls your app makes to other services, by host and method.",actions:s.jsx(me,{})}),e[3]=a):a=e[3];let r;e[4]!==t.series?(r=s.jsx(re,{legend:"request",label:"Outgoing requests",seriesLabel:"Calls",data:t.series}),e[4]=t.series,e[5]=r):r=e[5];let n;e[6]!==t.series||e[7]!==i?(n=s.jsx(ne,{label:"Latency",data:t.series,percentile:i}),e[6]=t.series,e[7]=i,e[8]=n):n=e[8];let l;e[9]!==r||e[10]!==n?(l=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[r,n]}),e[9]=r,e[10]=n,e[11]=l):l=e[11];let f,S,C,q,O,P;e[12]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Q,{icon:Y,title:"No outgoing requests in this window",description:"HTTP calls your app makes to other services appear here."}),C={key:"h",header:"Host",cell:He},q={key:"trend",hideOnMobile:!0,header:"Trend",cell:Me},O={key:"n",header:"Calls",align:"right",cell:Ee},P={key:"f",hideOnMobile:!0,header:"Failed",align:"right",cell:Te},f={key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:Re},e[12]=f,e[13]=S,e[14]=C,e[15]=q,e[16]=O,e[17]=P):(f=e[12],S=e[13],C=e[14],q=e[15],O=e[16],P=e[17]);let x;e[18]!==i?(x=c=>s.jsx("span",{className:"font-semibold",children:V(c[i])}),e[18]=i,e[19]=x):x=e[19];let g;e[20]!==i||e[21]!==x?(g={key:i,header:i,align:"right",cell:x},e[20]=i,e[21]=x,e[22]=g):g=e[22];let R;e[23]===Symbol.for("react.memo_cache_sentinel")?(R={key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:Pe},e[23]=R):R=e[23];let y;e[24]!==g?(y=[C,q,O,P,f,g,R],e[24]=g,e[25]=y):y=e[25];let b;e[26]!==t.hosts||e[27]!==y?(b=s.jsx(J,{rows:t.hosts,rowKey:ze,empty:S,columns:y}),e[26]=t.hosts,e[27]=y,e[28]=b):b=e[28];let T;e[29]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[29]=T):T=e[29];let E;e[30]===Symbol.for("react.memo_cache_sentinel")?(E={key:"host",label:"Host"},e[30]=E):E=e[30];let M;e[31]===Symbol.for("react.memo_cache_sentinel")?(M=[E,{key:"status",label:"Status",options:["2xx","3xx","4xx","5xx"]}],e[31]=M):M=e[31];let _;e[32]!==m||e[33]!==u||e[34]!==o?(_=c=>W.visit(se(m,u,{window:o,q:c||void 0}),{preserveState:!0}),e[32]=m,e[33]=u,e[34]=o,e[35]=_):_=e[35];let j;e[36]!==t.q||e[37]!==_?(j=s.jsx(le,{value:t.q,fields:M,onChange:_,placeholder:"host:api.test status:5xx"}),e[36]=t.q,e[37]=_,e[38]=j):j=e[38];let H;e[39]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(Q,{icon:Y,title:"No outgoing requests in this window",description:"HTTP calls your app makes to other services appear here."}),e[39]=H):H=e[39];let k;e[40]!==d?(k={onOpen:(c,K)=>{const U=d(c);U&&(K?.newTab?globalThis.window.open(U,"_blank"):W.visit(U))}},e[40]=d,e[41]=k):k=e[41];let z,D,L,B,$,F;e[42]===Symbol.for("react.memo_cache_sentinel")?(z={key:"when",header:"When",cell:qe},D={key:"st",header:"Status",cell:Ce},L={key:"u",hideOnMobile:!0,header:"Request",cell:Se},B={key:"sz",hideOnMobile:!0,header:"In/out",align:"right",cell:Ne},$={key:"d",header:"Duration",align:"right",cell:we},F={key:"src",hideOnMobile:!0,header:"Source",cell:ve},e[42]=z,e[43]=D,e[44]=L,e[45]=B,e[46]=$,e[47]=F):(z=e[42],D=e[43],L=e[44],B=e[45],$=e[46],F=e[47]);let v;e[48]!==d?(v={key:"in",hideOnMobile:!0,header:"In",cell:c=>{const K=d(c);return K?s.jsx(oe,{className:"font-mono text-xs hover:underline",href:K,children:c.execution_preview}):null}},e[48]=d,e[49]=v):v=e[49];let A;e[50]===Symbol.for("react.memo_cache_sentinel")?(A={key:"body",header:"Response",align:"right",cell:ke},e[50]=A):A=e[50];let w;e[51]!==v?(w=[z,D,L,B,$,F,v,A],e[51]=v,e[52]=w):w=e[52];let N;e[53]!==t.recent||e[54]!==k||e[55]!==w?(N=s.jsx(J,{rows:t.recent,rowKey:Oe,empty:H,keyboardNav:k,columns:w}),e[53]=t.recent,e[54]=k,e[55]=w,e[56]=N):N=e[56];let I;return e[57]!==b||e[58]!==j||e[59]!==N||e[60]!==l?(I=s.jsxs(ae,{title:"Outgoing requests",children:[a,l,b,T,j,N]}),e[57]=b,e[58]=j,e[59]=N,e[60]=l,e[61]=I):I=e[61],I}function ke(t){return t.response_body?s.jsx(je,{body:t.response_body}):s.jsx("span",{className:"text-muted-foreground",children:"–"})}function ve(t){return s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source??""})}function we(t){return V(t.duration)}function Ne(t){return`${X(t.request_size)} / ${X(t.response_size)}`}function Se(t){return s.jsxs("span",{className:"font-mono text-xs",children:[s.jsx("span",{className:"font-semibold",children:t.method})," ",t.url]})}function Ce(t){return s.jsx(de,{status:t.status_code,label:t.error?"error":void 0,outcome:t.error?"failed":void 0})}function qe(t){return s.jsx("span",{className:"text-xs",children:ge(t.occurred_at)})}function Oe(t){return t.id}function Pe(t){return V(t.max)}function Re(t){return V(t.avg)}function Te(t){return s.jsx("span",{className:t.errors?"text-destructive":"",children:xe(t.errors,t.count)})}function Ee(t){return he(t.count)}function Me(t){return s.jsx(ue,{data:t.sparkline})}function He(t){return s.jsx("span",{className:"font-mono text-xs",children:t.name})}function ze(t){return t.group_hash}export{it as default};
@@ -1 +1 @@
1
- import{c as B,u as C,j as n,ay as D,e as R,L as H,i as K}from"./inertia-CUTKXjxg.js";import{D as T}from"./data-table-CwtPkw_i.js";import{E as W}from"./empty-state-CshhuRUU.js";import{O as I}from"./origin-identity-DrJ4D2TX.js";import{P as A,E as F}from"./env-layout-Dkp_4NvM.js";import{R as J}from"./relative-time-CV7V8aSP.js";import{S as Q}from"./status-badge-XYUN9gUA.js";import{B as $}from"./badge-s7YDycYg.js";import{m as P,a as q,w as z}from"./format-B9SDkrWj.js";import{x as G}from"./app-layout-DUk54qUM.js";import"./chart-hover-DMWx5-Rs.js";import"./tenant-path-SxnZbfU1.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./app-wordmark-DDNuuq5_.js";import"./index-BpnfuXi-.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./checkbox-C2AqEZXX.js";function Te(t){const e=B.c(42),{environment:M,range:a,window:l}=C().props,i=M.application_id,s=M.id;let k;e[0]!==i||e[1]!==s?(k=r=>D(i,s,r.execution_id),e[0]=i,e[1]=s,e[2]=k):k=e[2];const x=k;let _;e[3]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(A,{title:"Scheduled tasks",description:"Solid Queue recurring tasks from config/recurring.yml: runs, failures, and missed schedules."}),e[3]=_):_=e[3];let o;e[4]!==t.missed?(o=t.missed.length>0&&n.jsx("div",{className:"flex flex-wrap gap-2",children:t.missed.map(de)}),e[4]=t.missed,e[5]=o):o=e[5];let y,g;e[6]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(W,{icon:G,title:"No scheduled task has run in this window",description:"Recurring and scheduled job runs appear here as they execute."}),g=[{key:"k",header:"Task",cell:oe},{key:"s",header:"Schedule",cell:le},{key:"next",hideOnMobile:!0,header:"Next run",cell:ae},{key:"n",header:"Runs",align:"right",cell:se},{key:"f",hideOnMobile:!0,header:"Failed",align:"right",cell:ie},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:re},{key:"last",header:"Last run",align:"right",cell:ne}],e[6]=y,e[7]=g):(y=e[6],g=e[7]);let c;e[8]!==t.tasks?(c=n.jsx(T,{rows:t.tasks,rowKey:ce,empty:y,columns:g}),e[8]=t.tasks,e[9]=c):c=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx("h2",{className:"text-sm font-semibold",children:"Recent runs"}),e[10]=j):j=e[10];let d,m;e[11]!==x?(d=r=>R.visit(x(r)),m={onOpen:(r,L)=>L?.newTab?window.open(x(r),"_blank"):R.visit(x(r))},e[11]=x,e[12]=d,e[13]=m):(d=e[12],m=e[13]);let w,b,v,O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O={key:"when",header:"When",cell:ee},w={key:"k",header:"Task",cell:Z},b={key:"job",hideOnMobile:!0,header:"Job",cell:Y},v={key:"o",header:"Outcome",cell:X},e[14]=w,e[15]=b,e[16]=v,e[17]=O):(w=e[14],b=e[15],v=e[16],O=e[17]);let u;e[18]!==i||e[19]!==s||e[20]!==a||e[21]!==l?(u={key:"user",hideOnMobile:!0,header:"Origin user",cell:r=>n.jsx(I,{...r,applicationId:i,environmentId:s,kind:"user",range:a,window:l})},e[18]=i,e[19]=s,e[20]=a,e[21]=l,e[22]=u):u=e[22];let h;e[23]!==i||e[24]!==s||e[25]!==a||e[26]!==l?(h={key:"tenant",hideOnMobile:!0,header:"Origin tenant",cell:r=>n.jsx(I,{...r,applicationId:i,environmentId:s,kind:"tenant",range:a,window:l})},e[23]=i,e[24]=s,e[25]=a,e[26]=l,e[27]=h):h=e[27];let S,N;e[28]===Symbol.for("react.memo_cache_sentinel")?(S={key:"d",hideOnMobile:!0,header:"Duration",align:"right",cell:V},N={key:"ex",hideOnMobile:!0,header:"Exception",cell:U},e[28]=S,e[29]=N):(S=e[28],N=e[29]);let f;e[30]!==u||e[31]!==h?(f=[O,w,b,v,u,h,S,N],e[30]=u,e[31]=h,e[32]=f):f=e[32];let p;e[33]!==t.runs||e[34]!==f||e[35]!==d||e[36]!==m?(p=n.jsx(T,{rows:t.runs,rowKey:te,onRowClick:d,keyboardNav:m,columns:f}),e[33]=t.runs,e[34]=f,e[35]=d,e[36]=m,e[37]=p):p=e[37];let E;return e[38]!==p||e[39]!==o||e[40]!==c?(E=n.jsxs(F,{title:"Scheduled tasks",children:[_,o,c,j,p]}),e[38]=p,e[39]=o,e[40]=c,e[41]=E):E=e[41],E}function U(t){return n.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function V(t){return P(t.duration)}function X(t){return n.jsx(Q,{outcome:t.outcome})}function Y(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function Z(t){return n.jsx("span",{className:"font-mono text-xs",children:t.task_key})}function ee(t){return n.jsx("span",{className:"text-xs",children:z(t.occurred_at)})}function te(t){return t.execution_id}function ne(t){return q(t.last_run_at)}function re(t){return P(t.avg)}function ie(t){return n.jsx("span",{className:t.failed?"text-destructive":"",children:t.failed})}function se(t){return t.runs}function ae(t){return n.jsx("span",{className:"text-muted-foreground text-xs",children:t.next_run_at?n.jsx(J,{iso:t.next_run_at}):"–"})}function le(t){return n.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.schedule??"–"})}function oe(t){return n.jsx("span",{className:"font-mono text-xs",children:t.task_key})}function ce(t){return t.task_key}function de(t){return n.jsx(H,{href:K(t.id),children:n.jsxs($,{variant:"destructive",children:[t.key," · ",t.title]})},t.id)}export{Te as default};
1
+ import{c as B,u as C,j as n,ay as D,e as R,L as K,i as H}from"./inertia-DLew8ZNx.js";import{D as T}from"./data-table-BIlt7Rtm.js";import{E as W}from"./empty-state-C38il627.js";import{O as I}from"./origin-identity-Bk9yHWZ1.js";import{P as A,E as F}from"./env-layout-REF7OM4q.js";import{R as J}from"./relative-time-CjIjb8Lg.js";import{S as Q}from"./status-badge-BaUKP7Yo.js";import{B as $}from"./badge-CAxXV8za.js";import{m as P,a as q,w as z}from"./format-B9SDkrWj.js";import{K as G}from"./app-layout-DDyQa72H.js";import"./chart-hover-B1M9jc0y.js";import"./tenant-path-DPZPc985.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./app-wordmark-o9CODKP0.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./checkbox-CmhMHWZO.js";function Te(t){const e=B.c(42),{environment:M,range:a,window:l}=C().props,i=M.application_id,s=M.id;let k;e[0]!==i||e[1]!==s?(k=r=>D(i,s,r.execution_id),e[0]=i,e[1]=s,e[2]=k):k=e[2];const x=k;let _;e[3]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(A,{title:"Scheduled tasks",description:"Solid Queue recurring tasks from config/recurring.yml: runs, failures, and missed schedules."}),e[3]=_):_=e[3];let o;e[4]!==t.missed?(o=t.missed.length>0&&n.jsx("div",{className:"flex flex-wrap gap-2",children:t.missed.map(de)}),e[4]=t.missed,e[5]=o):o=e[5];let y,g;e[6]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(W,{icon:G,title:"No scheduled task has run in this window",description:"Recurring and scheduled job runs appear here as they execute."}),g=[{key:"k",header:"Task",cell:oe},{key:"s",header:"Schedule",cell:le},{key:"next",hideOnMobile:!0,header:"Next run",cell:ae},{key:"n",header:"Runs",align:"right",cell:se},{key:"f",hideOnMobile:!0,header:"Failed",align:"right",cell:ie},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:re},{key:"last",header:"Last run",align:"right",cell:ne}],e[6]=y,e[7]=g):(y=e[6],g=e[7]);let c;e[8]!==t.tasks?(c=n.jsx(T,{rows:t.tasks,rowKey:ce,empty:y,columns:g}),e[8]=t.tasks,e[9]=c):c=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx("h2",{className:"text-sm font-semibold",children:"Recent runs"}),e[10]=j):j=e[10];let d,m;e[11]!==x?(d=r=>R.visit(x(r)),m={onOpen:(r,L)=>L?.newTab?window.open(x(r),"_blank"):R.visit(x(r))},e[11]=x,e[12]=d,e[13]=m):(d=e[12],m=e[13]);let w,b,v,O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O={key:"when",header:"When",cell:ee},w={key:"k",header:"Task",cell:Z},b={key:"job",hideOnMobile:!0,header:"Job",cell:Y},v={key:"o",header:"Outcome",cell:X},e[14]=w,e[15]=b,e[16]=v,e[17]=O):(w=e[14],b=e[15],v=e[16],O=e[17]);let u;e[18]!==i||e[19]!==s||e[20]!==a||e[21]!==l?(u={key:"user",hideOnMobile:!0,header:"Origin user",cell:r=>n.jsx(I,{...r,applicationId:i,environmentId:s,kind:"user",range:a,window:l})},e[18]=i,e[19]=s,e[20]=a,e[21]=l,e[22]=u):u=e[22];let h;e[23]!==i||e[24]!==s||e[25]!==a||e[26]!==l?(h={key:"tenant",hideOnMobile:!0,header:"Origin tenant",cell:r=>n.jsx(I,{...r,applicationId:i,environmentId:s,kind:"tenant",range:a,window:l})},e[23]=i,e[24]=s,e[25]=a,e[26]=l,e[27]=h):h=e[27];let S,N;e[28]===Symbol.for("react.memo_cache_sentinel")?(S={key:"d",hideOnMobile:!0,header:"Duration",align:"right",cell:V},N={key:"ex",hideOnMobile:!0,header:"Exception",cell:U},e[28]=S,e[29]=N):(S=e[28],N=e[29]);let f;e[30]!==u||e[31]!==h?(f=[O,w,b,v,u,h,S,N],e[30]=u,e[31]=h,e[32]=f):f=e[32];let p;e[33]!==t.runs||e[34]!==f||e[35]!==d||e[36]!==m?(p=n.jsx(T,{rows:t.runs,rowKey:te,onRowClick:d,keyboardNav:m,columns:f}),e[33]=t.runs,e[34]=f,e[35]=d,e[36]=m,e[37]=p):p=e[37];let E;return e[38]!==p||e[39]!==o||e[40]!==c?(E=n.jsxs(F,{title:"Scheduled tasks",children:[_,o,c,j,p]}),e[38]=p,e[39]=o,e[40]=c,e[41]=E):E=e[41],E}function U(t){return n.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function V(t){return P(t.duration)}function X(t){return n.jsx(Q,{outcome:t.outcome})}function Y(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function Z(t){return n.jsx("span",{className:"font-mono text-xs",children:t.task_key})}function ee(t){return n.jsx("span",{className:"text-xs",children:z(t.occurred_at)})}function te(t){return t.execution_id}function ne(t){return q(t.last_run_at)}function re(t){return P(t.avg)}function ie(t){return n.jsx("span",{className:t.failed?"text-destructive":"",children:t.failed})}function se(t){return t.runs}function ae(t){return n.jsx("span",{className:"text-muted-foreground text-xs",children:t.next_run_at?n.jsx(J,{iso:t.next_run_at}):"–"})}function le(t){return n.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.schedule??"–"})}function oe(t){return n.jsx("span",{className:"font-mono text-xs",children:t.task_key})}function ce(t){return t.task_key}function de(t){return n.jsx(K,{href:H(t.id),children:n.jsxs($,{variant:"destructive",children:[t.key," · ",t.title]})},t.id)}export{Te as default};
@@ -1 +1 @@
1
- import{c as D,u as A,au as I,j as s,F as M,aR as G,H,e as p,aS as B,aT as L,aU as $,aV as K}from"./inertia-CUTKXjxg.js";import{G as O}from"./google-sign-in-button-CAvsXYb4.js";import{I as k}from"./input-error-C8ycyeD0.js";import{D as T}from"./data-table-CwtPkw_i.js";import{B as z}from"./badge-s7YDycYg.js";import{B as x}from"./app-wordmark-DDNuuq5_.js";import{C as P,b as S,c as F,a as R}from"./card-DiW-JhK3.js";import{L as N,I as E}from"./label-B32Ks8n7.js";import{A as q}from"./app-layout-DUk54qUM.js";import{a as U}from"./format-B9SDkrWj.js";import"./separator-UUo0bkyc.js";import"./index-n16aviHx.js";import"./chart-hover-DMWx5-Rs.js";import"./empty-state-CshhuRUU.js";import"./live-dot-Bb1UYT9F.js";import"./index-BpnfuXi-.js";import"./checkbox-C2AqEZXX.js";function ve(t){const e=D.c(31),{account:a,auth:n}=A().props;let f,j;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=[{title:"Members",href:I()}],j=s.jsx(H,{title:"Members"}),e[0]=f,e[1]=j):(f=e[0],j=e[1]);let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-semibold",children:"Members"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"People who can see this account's applications and issues."})]}),e[2]=g):g=e[2];let w;e[3]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(S,{children:s.jsx(F,{className:"text-sm",children:"Add member"})}),e[3]=w):w=e[3];let b;e[4]===Symbol.for("react.memo_cache_sentinel")?(b=I(),e[4]=b):b=e[4];let i;e[5]!==t.roles?(i=s.jsxs(P,{className:"max-w-lg",children:[w,s.jsx(R,{children:s.jsx(M,{method:"post",action:b,className:"flex flex-wrap items-end gap-3",resetOnSuccess:!0,children:r=>{const{errors:u,processing:C}=r;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid flex-1 gap-1",children:[s.jsx(N,{htmlFor:"email",children:"Email"}),s.jsx(E,{id:"email",name:"email",type:"email",required:!0}),s.jsx(k,{messages:u.email})]}),s.jsxs("div",{className:"grid gap-1",children:[s.jsx(N,{htmlFor:"role",children:"Role"}),s.jsx("select",{id:"role",name:"role",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:t.roles.filter(ne).map(re)})]}),s.jsx(x,{disabled:C,children:"Invite"})]})}})})]}),e[5]=t.roles,e[6]=i):i=e[6];let l;e[7]!==t.invitations?(l=t.invitations.length>0&&s.jsxs(P,{children:[s.jsx(S,{children:s.jsx(F,{children:"Pending invitations"})}),s.jsx(R,{children:s.jsx(T,{rows:t.invitations,rowKey:te,columns:[{key:"e",header:"Email",cell:se},{key:"r",header:"Role",cell:ee},{key:"x",header:"Expires",cell:Z},{key:"a",header:"",align:"right",cell:X}]})})]}),e[7]=t.invitations,e[8]=l):l=e[8];let _,v;e[9]===Symbol.for("react.memo_cache_sentinel")?(_={key:"n",header:"Name",cell:J},v={key:"e",header:"Email",cell:Y},e[9]=_,e[10]=v):(_=e[9],v=e[10]);let o;e[11]!==t.roles?(o={key:"r",header:"Role",cell:r=>r.role==="owner"?s.jsx(z,{variant:"outline",children:"owner"}):s.jsx("select",{value:r.role,"aria-label":`Role for ${r.name}`,onChange:u=>p.patch(B(r.id),{role:u.target.value}),className:"border-input bg-background h-7 rounded-md border px-2 text-xs",children:t.roles.filter(W).map(V)})},e[11]=t.roles,e[12]=o):o=e[12];let c;e[13]!==t.ownership.can_transfer||e[14]!==t.ownership.current_user_id?(c={key:"x",header:"",align:"right",cell:r=>s.jsxs("span",{className:"flex justify-end gap-1",children:[t.ownership.can_transfer&&r.user_id!==t.ownership.current_user_id&&s.jsx(x,{size:"sm",variant:"outline",onClick:()=>{window.confirm(`Transfer ownership to ${r.name}? Your role will become admin.`)&&p.post(L(r.id))},children:"Transfer ownership"}),r.role!=="owner"&&s.jsx(x,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>p.delete(B(r.id)),children:"Remove"})]})},e[13]=t.ownership.can_transfer,e[14]=t.ownership.current_user_id,e[15]=c):c=e[15];let d;e[16]!==c||e[17]!==o?(d=[_,v,o,c],e[16]=c,e[17]=o,e[18]=d):d=e[18];let m;e[19]!==t.members||e[20]!==d?(m=s.jsx(T,{rows:t.members,rowKey:Q,columns:d}),e[19]=t.members,e[20]=d,e[21]=m):m=e[21];let h;e[22]!==a||e[23]!==n||e[24]!==t.ownership.can_delete_account?(h=t.ownership.can_delete_account&&a&&s.jsxs(P,{className:"border-destructive/30 max-w-lg",children:[s.jsx(S,{children:s.jsx(F,{className:"text-destructive text-sm",children:"Delete account"})}),s.jsxs(R,{className:"space-y-4",children:[s.jsxs("p",{className:"text-muted-foreground text-sm",children:["Permanently deletes ",a.name,", its applications, ingest tokens, alerts, and telemetry databases. This cannot be undone."]}),n.user.provider&&!n.session.recently_authenticated&&s.jsx(O,{label:"Confirm with Google",reauthenticateFor:"account",separated:!1}),s.jsx(M,{method:"delete",action:G(a.id),className:"grid gap-3",children:r=>{const{errors:u,processing:C}=r;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-1",children:[s.jsxs(N,{htmlFor:"account-deletion-confirmation",children:["Enter ",a.name," to confirm"]}),s.jsx(E,{id:"account-deletion-confirmation",name:"confirmation",autoComplete:"off"}),s.jsx(k,{messages:u.confirmation})]}),!n.user.provider&&s.jsxs("div",{className:"grid gap-1",children:[s.jsx(N,{htmlFor:"account-password-challenge",children:"Current password"}),s.jsx(E,{id:"account-password-challenge",type:"password",name:"password_challenge",autoComplete:"current-password"}),s.jsx(k,{messages:u.password_challenge})]}),s.jsx(x,{variant:"destructive",className:"w-fit",disabled:C||!!n.user.provider&&!n.session.recently_authenticated,children:"Delete account and telemetry"})]})}})]})]}),e[22]=a,e[23]=n,e[24]=t.ownership.can_delete_account,e[25]=h):h=e[25];let y;return e[26]!==m||e[27]!==h||e[28]!==i||e[29]!==l?(y=s.jsxs(q,{breadcrumbs:f,children:[j,s.jsxs("div",{className:"flex flex-1 flex-col gap-6 p-4 md:p-6",children:[g,i,l,m,h]})]}),e[26]=m,e[27]=h,e[28]=i,e[29]=l,e[30]=y):y=e[30],y}function V(t){return s.jsx("option",{value:t,children:t},t)}function W(t){return t!=="owner"}function Y(t){return s.jsx("span",{className:"font-mono text-xs",children:t.email})}function J(t){return t.name}function Q(t){return t.id}function X(t){return s.jsxs("span",{className:"flex justify-end gap-1",children:[s.jsx(x,{size:"sm",variant:"ghost",onClick:()=>p.post($(t.id)),children:"Resend"}),s.jsx(x,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>p.delete(K(t.id)),children:"Withdraw"})]})}function Z(t){return s.jsx("span",{className:"text-muted-foreground text-xs",children:U(t.expires_at)})}function ee(t){return s.jsx(z,{variant:"outline",children:t.role})}function se(t){return s.jsx("span",{className:"font-mono text-xs",children:t.email})}function te(t){return t.id}function re(t){return s.jsx("option",{value:t,children:t},t)}function ne(t){return t!=="owner"}export{ve as default};
1
+ import{c as D,u as A,au as I,j as s,F as M,aR as G,H,e as p,aS as B,aT as L,aU as $,aV as K}from"./inertia-DLew8ZNx.js";import{G as O}from"./google-sign-in-button-BQiIKFdd.js";import{I as k}from"./input-error-cvM6_Jht.js";import{D as T}from"./data-table-BIlt7Rtm.js";import{B as z}from"./badge-CAxXV8za.js";import{B as x}from"./app-wordmark-o9CODKP0.js";import{C as P,b as S,c as F,a as R}from"./card-cAtqCxWl.js";import{L as N,I as E}from"./label-GWl7I6sf.js";import{A as q}from"./app-layout-DDyQa72H.js";import{a as U}from"./format-B9SDkrWj.js";import"./separator-BXzEdZ_8.js";import"./index-so4lRrRq.js";import"./chart-hover-B1M9jc0y.js";import"./empty-state-C38il627.js";import"./live-dot-D1n_BreY.js";import"./index-umIAl-pL.js";import"./checkbox-CmhMHWZO.js";function ve(t){const e=D.c(31),{account:a,auth:n}=A().props;let f,j;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=[{title:"Members",href:I()}],j=s.jsx(H,{title:"Members"}),e[0]=f,e[1]=j):(f=e[0],j=e[1]);let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-semibold",children:"Members"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"People who can see this account's applications and issues."})]}),e[2]=g):g=e[2];let w;e[3]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(S,{children:s.jsx(F,{className:"text-sm",children:"Add member"})}),e[3]=w):w=e[3];let b;e[4]===Symbol.for("react.memo_cache_sentinel")?(b=I(),e[4]=b):b=e[4];let i;e[5]!==t.roles?(i=s.jsxs(P,{className:"max-w-lg",children:[w,s.jsx(R,{children:s.jsx(M,{method:"post",action:b,className:"flex flex-wrap items-end gap-3",resetOnSuccess:!0,children:r=>{const{errors:u,processing:C}=r;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid flex-1 gap-1",children:[s.jsx(N,{htmlFor:"email",children:"Email"}),s.jsx(E,{id:"email",name:"email",type:"email",required:!0}),s.jsx(k,{messages:u.email})]}),s.jsxs("div",{className:"grid gap-1",children:[s.jsx(N,{htmlFor:"role",children:"Role"}),s.jsx("select",{id:"role",name:"role",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:t.roles.filter(ne).map(re)})]}),s.jsx(x,{disabled:C,children:"Invite"})]})}})})]}),e[5]=t.roles,e[6]=i):i=e[6];let l;e[7]!==t.invitations?(l=t.invitations.length>0&&s.jsxs(P,{children:[s.jsx(S,{children:s.jsx(F,{children:"Pending invitations"})}),s.jsx(R,{children:s.jsx(T,{rows:t.invitations,rowKey:te,columns:[{key:"e",header:"Email",cell:se},{key:"r",header:"Role",cell:ee},{key:"x",header:"Expires",cell:Z},{key:"a",header:"",align:"right",cell:X}]})})]}),e[7]=t.invitations,e[8]=l):l=e[8];let _,v;e[9]===Symbol.for("react.memo_cache_sentinel")?(_={key:"n",header:"Name",cell:J},v={key:"e",header:"Email",cell:Y},e[9]=_,e[10]=v):(_=e[9],v=e[10]);let o;e[11]!==t.roles?(o={key:"r",header:"Role",cell:r=>r.role==="owner"?s.jsx(z,{variant:"outline",children:"owner"}):s.jsx("select",{value:r.role,"aria-label":`Role for ${r.name}`,onChange:u=>p.patch(B(r.id),{role:u.target.value}),className:"border-input bg-background h-7 rounded-md border px-2 text-xs",children:t.roles.filter(W).map(V)})},e[11]=t.roles,e[12]=o):o=e[12];let c;e[13]!==t.ownership.can_transfer||e[14]!==t.ownership.current_user_id?(c={key:"x",header:"",align:"right",cell:r=>s.jsxs("span",{className:"flex justify-end gap-1",children:[t.ownership.can_transfer&&r.user_id!==t.ownership.current_user_id&&s.jsx(x,{size:"sm",variant:"outline",onClick:()=>{window.confirm(`Transfer ownership to ${r.name}? Your role will become admin.`)&&p.post(L(r.id))},children:"Transfer ownership"}),r.role!=="owner"&&s.jsx(x,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>p.delete(B(r.id)),children:"Remove"})]})},e[13]=t.ownership.can_transfer,e[14]=t.ownership.current_user_id,e[15]=c):c=e[15];let d;e[16]!==c||e[17]!==o?(d=[_,v,o,c],e[16]=c,e[17]=o,e[18]=d):d=e[18];let m;e[19]!==t.members||e[20]!==d?(m=s.jsx(T,{rows:t.members,rowKey:Q,columns:d}),e[19]=t.members,e[20]=d,e[21]=m):m=e[21];let h;e[22]!==a||e[23]!==n||e[24]!==t.ownership.can_delete_account?(h=t.ownership.can_delete_account&&a&&s.jsxs(P,{className:"border-destructive/30 max-w-lg",children:[s.jsx(S,{children:s.jsx(F,{className:"text-destructive text-sm",children:"Delete account"})}),s.jsxs(R,{className:"space-y-4",children:[s.jsxs("p",{className:"text-muted-foreground text-sm",children:["Permanently deletes ",a.name,", its applications, ingest tokens, alerts, and telemetry databases. This cannot be undone."]}),n.user.provider&&!n.session.recently_authenticated&&s.jsx(O,{label:"Confirm with Google",reauthenticateFor:"account",separated:!1}),s.jsx(M,{method:"delete",action:G(a.id),className:"grid gap-3",children:r=>{const{errors:u,processing:C}=r;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-1",children:[s.jsxs(N,{htmlFor:"account-deletion-confirmation",children:["Enter ",a.name," to confirm"]}),s.jsx(E,{id:"account-deletion-confirmation",name:"confirmation",autoComplete:"off"}),s.jsx(k,{messages:u.confirmation})]}),!n.user.provider&&s.jsxs("div",{className:"grid gap-1",children:[s.jsx(N,{htmlFor:"account-password-challenge",children:"Current password"}),s.jsx(E,{id:"account-password-challenge",type:"password",name:"password_challenge",autoComplete:"current-password"}),s.jsx(k,{messages:u.password_challenge})]}),s.jsx(x,{variant:"destructive",className:"w-fit",disabled:C||!!n.user.provider&&!n.session.recently_authenticated,children:"Delete account and telemetry"})]})}})]})]}),e[22]=a,e[23]=n,e[24]=t.ownership.can_delete_account,e[25]=h):h=e[25];let y;return e[26]!==m||e[27]!==h||e[28]!==i||e[29]!==l?(y=s.jsxs(q,{breadcrumbs:f,children:[j,s.jsxs("div",{className:"flex flex-1 flex-col gap-6 p-4 md:p-6",children:[g,i,l,m,h]})]}),e[26]=m,e[27]=h,e[28]=i,e[29]=l,e[30]=y):y=e[30],y}function V(t){return s.jsx("option",{value:t,children:t},t)}function W(t){return t!=="owner"}function Y(t){return s.jsx("span",{className:"font-mono text-xs",children:t.email})}function J(t){return t.name}function Q(t){return t.id}function X(t){return s.jsxs("span",{className:"flex justify-end gap-1",children:[s.jsx(x,{size:"sm",variant:"ghost",onClick:()=>p.post($(t.id)),children:"Resend"}),s.jsx(x,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>p.delete(K(t.id)),children:"Withdraw"})]})}function Z(t){return s.jsx("span",{className:"text-muted-foreground text-xs",children:U(t.expires_at)})}function ee(t){return s.jsx(z,{variant:"outline",children:t.role})}function se(t){return s.jsx("span",{className:"font-mono text-xs",children:t.email})}function te(t){return t.id}function re(t){return s.jsx("option",{value:t,children:t},t)}function ne(t){return t!=="owner"}export{ve as default};
@@ -1 +1 @@
1
- import{c as p,u,j as s,H as x,L as f,a7 as h,aI as j}from"./inertia-CUTKXjxg.js";import{H as g,S as v}from"./layout-5ZhRtywp.js";import{B as y}from"./badge-s7YDycYg.js";import{B as S}from"./app-wordmark-DDNuuq5_.js";import{A as N}from"./app-layout-DUk54qUM.js";import"./separator-UUo0bkyc.js";import"./index-n16aviHx.js";import"./live-dot-Bb1UYT9F.js";import"./index-BpnfuXi-.js";import"./checkbox-C2AqEZXX.js";import"./label-B32Ks8n7.js";const d=[{title:"Sessions",href:j()}];function R(m){const e=p.c(9),{sessions:n}=m,{auth:a}=u().props;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(x,{title:d[d.length-1].title}),e[0]=r):r=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(g,{title:"Sessions",description:"Manage your active sessions across devices"}),e[1]=l):l=e[1];let i;if(e[2]!==a||e[3]!==n){let c;e[5]!==a?(c=t=>s.jsx("div",{className:"flex flex-col space-y-2 rounded-lg border p-4",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsxs("p",{className:"font-medium",children:[t.user_agent,t.id===a.session.id&&s.jsx(y,{variant:"secondary",className:"ml-2",children:"Current"})]}),s.jsxs("p",{className:"text-muted-foreground text-sm",children:["IP: ",t.ip_address]}),s.jsxs("p",{className:"text-muted-foreground text-sm",children:["Active since:"," ",new Date(t.created_at).toLocaleString()]})]}),t.id!==a.session.id&&s.jsx(S,{variant:"destructive",asChild:!0,children:s.jsx(f,{method:"delete",href:h({id:t.id}),as:"button",children:"Log out"})})]})},t.id),e[5]=a,e[6]=c):c=e[6],i=n.map(c),e[2]=a,e[3]=n,e[4]=i}else i=e[4];let o;return e[7]!==i?(o=s.jsxs(N,{breadcrumbs:d,children:[r,s.jsx(v,{children:s.jsxs("div",{className:"space-y-6",children:[l,s.jsx("div",{className:"space-y-4",children:i})]})})]}),e[7]=i,e[8]=o):o=e[8],o}export{R as default};
1
+ import{c as p,u,j as s,H as x,L as f,a7 as h,aI as j}from"./inertia-DLew8ZNx.js";import{H as g,S as v}from"./layout-0ZAnD3zl.js";import{B as y}from"./badge-CAxXV8za.js";import{B as S}from"./app-wordmark-o9CODKP0.js";import{A as N}from"./app-layout-DDyQa72H.js";import"./separator-BXzEdZ_8.js";import"./index-so4lRrRq.js";import"./live-dot-D1n_BreY.js";import"./index-umIAl-pL.js";import"./checkbox-CmhMHWZO.js";import"./label-GWl7I6sf.js";const d=[{title:"Sessions",href:j()}];function R(m){const e=p.c(9),{sessions:n}=m,{auth:a}=u().props;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(x,{title:d[d.length-1].title}),e[0]=r):r=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(g,{title:"Sessions",description:"Manage your active sessions across devices"}),e[1]=l):l=e[1];let i;if(e[2]!==a||e[3]!==n){let c;e[5]!==a?(c=t=>s.jsx("div",{className:"flex flex-col space-y-2 rounded-lg border p-4",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsxs("p",{className:"font-medium",children:[t.user_agent,t.id===a.session.id&&s.jsx(y,{variant:"secondary",className:"ml-2",children:"Current"})]}),s.jsxs("p",{className:"text-muted-foreground text-sm",children:["IP: ",t.ip_address]}),s.jsxs("p",{className:"text-muted-foreground text-sm",children:["Active since:"," ",new Date(t.created_at).toLocaleString()]})]}),t.id!==a.session.id&&s.jsx(S,{variant:"destructive",asChild:!0,children:s.jsx(f,{method:"delete",href:h({id:t.id}),as:"button",children:"Log out"})})]})},t.id),e[5]=a,e[6]=c):c=e[6],i=n.map(c),e[2]=a,e[3]=n,e[4]=i}else i=e[4];let o;return e[7]!==i?(o=s.jsxs(N,{breadcrumbs:d,children:[r,s.jsx(v,{children:s.jsxs("div",{className:"space-y-6",children:[l,s.jsx("div",{className:"space-y-4",children:i})]})})]}),e[7]=i,e[8]=o):o=e[8],o}export{R as default};
@@ -0,0 +1 @@
1
+ import{c as ne,u as re,r as M,ar as ie,j as t,a_ as le,F as U,e as q,a$ as oe,b0 as G}from"./inertia-DLew8ZNx.js";import{I as v}from"./input-error-cvM6_Jht.js";import{D as J}from"./data-table-BIlt7Rtm.js";import{E as Q}from"./empty-state-C38il627.js";import{P as de,E as me}from"./env-layout-REF7OM4q.js";import{R as ce}from"./relative-time-CjIjb8Lg.js";import{B as N}from"./app-wordmark-o9CODKP0.js";import{b as X,c as Y,C as Z,a as ee}from"./card-cAtqCxWl.js";import{L as r,I as o}from"./label-GWl7I6sf.js";import{B as te}from"./live-dot-D1n_BreY.js";import"./chart-hover-B1M9jc0y.js";import"./badge-CAxXV8za.js";import"./app-layout-DDyQa72H.js";import"./index-umIAl-pL.js";import"./index-so4lRrRq.js";import"./checkbox-CmhMHWZO.js";import"./use-live-D7xKz2ma.js";import"./format-B9SDkrWj.js";import"./segmented-BgbT3wZa.js";function qe(s){const e=ne.c(56),{environment:z}=re().props,[k,se]=M.useState(s.kinds[0]),[y,H]=M.useState(s.metrics[0]),[w,ae]=M.useState(s.anomaly_target_kinds[0]),[F,O]=M.useState(s.anomaly_metrics[0]),B=s.anomaly_metrics_for_kind[w]??s.anomaly_metrics,D=s.metrics_for_kind[k]??s.metrics,I=s.units[y]??"ms",W=I==="$"?"Limit (US$)":I==="%"?"Limit (%)":I===""?"Limit (count)":"Limit (ms)",a=z.application_id,n=z.id;let S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(de,{withWindow:!1,title:"Thresholds",description:"Performance rules. When a route, job, or query crosses one, Railwatch opens a performance issue and alerts the rules subscribed to thresholds."}),e[0]=S):S=e[0];let C;e[1]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(X,{children:t.jsx(Y,{children:"Add a threshold"})}),e[1]=C):C=e[1];let d;e[2]!==a||e[3]!==n?(d=ie(a,n),e[2]=a,e[3]=n,e[4]=d):d=e[4];let m;e[5]!==D||e[6]!==k||e[7]!==W||e[8]!==y||e[9]!==s.jobs||e[10]!==s.kinds||e[11]!==s.llm_models||e[12]!==s.metrics||e[13]!==s.metrics_for_kind||e[14]!==s.routes?(m=i=>{const{errors:_,processing:$}=i;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"target_kind",children:"Kind"}),t.jsx("select",{id:"target_kind",name:"target_kind",value:k,onChange:l=>{se(l.target.value);const b=s.metrics_for_kind[l.target.value]??s.metrics;b.includes(y)||H(b[0])},className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:s.kinds.map(Ne)})]}),t.jsxs("div",{className:"grid gap-1 md:col-span-2",children:[t.jsx(r,{htmlFor:"target",children:"Target"}),t.jsx(o,{id:"target",name:"target",defaultValue:"*",list:"targets",placeholder:"* for all, or a route / job name"}),t.jsxs("datalist",{id:"targets",children:[t.jsx("option",{value:"*"}),t.jsx("option",{value:"unmatched"}),s.routes.map(ve),s.jobs.map(be),s.llm_models.map(ye)]}),t.jsx(v,{messages:_.target})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"metric",children:"Metric"}),t.jsx("select",{id:"metric",name:"metric",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",value:y,onChange:l=>H(l.target.value),children:D.map(_e)})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"limit",children:W}),t.jsx(o,{id:"limit",name:"limit",type:"number",step:"any",defaultValue:2e3}),t.jsx(v,{messages:_.limit})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"window_minutes",children:"Window (min)"}),t.jsx(o,{id:"window_minutes",name:"window_minutes",type:"number",defaultValue:5})]}),t.jsx("div",{className:"md:col-span-6",children:t.jsx(N,{disabled:$,children:"Add threshold"})})]})},e[5]=D,e[6]=k,e[7]=W,e[8]=y,e[9]=s.jobs,e[10]=s.kinds,e[11]=s.llm_models,e[12]=s.metrics,e[13]=s.metrics_for_kind,e[14]=s.routes,e[15]=m):m=e[15];let c;e[16]!==d||e[17]!==m?(c=t.jsxs(Z,{children:[C,t.jsx(ee,{children:t.jsx(U,{method:"post",action:d,className:"grid gap-3 md:grid-cols-6",children:m})})]}),e[16]=d,e[17]=m,e[18]=c):c=e[18];let E,A;e[19]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Q,{icon:te,title:"No thresholds yet",description:"Start with requests * p95 2000ms to get alerted on regressions."}),A={key:"d",header:"Rule",cell:je},e[19]=E,e[20]=A):(E=e[19],A=e[20]);let h;e[21]!==a||e[22]!==n?(h=[A,{key:"x",header:"",align:"right",cell:i=>t.jsx(N,{size:"sm",variant:"ghost",onClick:()=>q.delete(oe(a,n,i.id)),children:"Remove"})}],e[21]=a,e[22]=n,e[23]=h):h=e[23];let u;e[24]!==s.thresholds||e[25]!==h?(u=t.jsx(J,{rows:s.thresholds,rowKey:fe,empty:E,columns:h}),e[24]=s.thresholds,e[25]=h,e[26]=u):u=e[26];let R;e[27]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsxs("div",{children:[t.jsx("h2",{className:"text-base font-semibold",children:"Anomaly rules"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"A threshold needs a number you already know. An anomaly rule learns one: it compares the last few minutes against the same clock window on each of the previous days and opens an issue when today sits more than the given number of standard deviations above that baseline."})]}),e[27]=R):R=e[27];let T;e[28]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(X,{children:t.jsx(Y,{children:"Add an anomaly rule"})}),e[28]=T):T=e[28];let x;e[29]!==a||e[30]!==n?(x=le(a,n),e[29]=a,e[30]=n,e[31]=x):x=e[31];let p;e[32]!==B||e[33]!==w||e[34]!==F||e[35]!==s.anomaly_metrics||e[36]!==s.anomaly_metrics_for_kind||e[37]!==s.anomaly_target_kinds?(p=i=>{const{errors:_,processing:$}=i;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"anomaly_target_kind",children:"Kind"}),t.jsx("select",{id:"anomaly_target_kind",name:"target_kind",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",value:w,onChange:l=>{ae(l.target.value);const b=s.anomaly_metrics_for_kind[l.target.value]??s.anomaly_metrics;b.includes(F)||O(b[0])},children:s.anomaly_target_kinds.map(ge)})]}),t.jsxs("div",{className:"grid gap-1 md:col-span-2",children:[t.jsx(r,{htmlFor:"anomaly_target",children:"Target"}),t.jsx(o,{id:"anomaly_target",name:"target",defaultValue:"*",list:"targets",placeholder:"* for all, or a route / job name"}),t.jsx(v,{messages:_.target})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"anomaly_metric",children:"Metric"}),t.jsx("select",{id:"anomaly_metric",name:"metric",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",value:F,onChange:l=>O(l.target.value),children:B.map(pe)})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"deviation",children:"Deviation (σ)"}),t.jsx(o,{id:"deviation",name:"deviation",type:"number",step:"0.5",min:"0.5",defaultValue:3}),t.jsx(v,{messages:_.deviation})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"anomaly_window_minutes",children:"Window (min)"}),t.jsx(o,{id:"anomaly_window_minutes",name:"window_minutes",type:"number",defaultValue:15})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"baseline_days",children:"Baseline (days)"}),t.jsx(o,{id:"baseline_days",name:"baseline_days",type:"number",defaultValue:7}),t.jsx(v,{messages:_.baseline_days})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"enabled",children:"Status"}),t.jsxs("select",{id:"enabled",name:"enabled",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:[t.jsx("option",{value:"true",children:"enabled"}),t.jsx("option",{value:"false",children:"disabled"})]})]}),t.jsx("div",{className:"md:col-span-6",children:t.jsx(N,{disabled:$,children:"Add anomaly rule"})})]})},e[32]=B,e[33]=w,e[34]=F,e[35]=s.anomaly_metrics,e[36]=s.anomaly_metrics_for_kind,e[37]=s.anomaly_target_kinds,e[38]=p):p=e[38];let g;e[39]!==x||e[40]!==p?(g=t.jsxs(Z,{children:[T,t.jsx(ee,{children:t.jsx(U,{method:"post",action:x,className:"grid gap-3 md:grid-cols-6",children:p})})]}),e[39]=x,e[40]=p,e[41]=g):g=e[41];let L,P,K;e[42]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(Q,{icon:te,title:"No anomaly rules yet",description:"Start with requests * p95 at 3σ over a 7-day baseline."}),P={key:"d",header:"Rule",cell:ue},K={key:"f",header:"Last fired",hideOnMobile:!0,cell:he},e[42]=L,e[43]=P,e[44]=K):(L=e[42],P=e[43],K=e[44]);let j;e[45]!==a||e[46]!==n?(j=[P,K,{key:"x",header:"",align:"right",cell:i=>t.jsxs("span",{className:"flex justify-end gap-1",children:[t.jsx(N,{size:"sm",variant:"ghost",onClick:()=>q.patch(G(a,n,i.id),{enabled:!i.enabled}),children:i.enabled?"Disable":"Enable"}),t.jsx(N,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>q.delete(G(a,n,i.id)),children:"Remove"})]})}],e[45]=a,e[46]=n,e[47]=j):j=e[47];let f;e[48]!==s.anomaly_rules||e[49]!==j?(f=t.jsx(J,{rows:s.anomaly_rules,rowKey:xe,empty:L,columns:j}),e[48]=s.anomaly_rules,e[49]=j,e[50]=f):f=e[50];let V;return e[51]!==g||e[52]!==f||e[53]!==c||e[54]!==u?(V=t.jsxs(me,{title:"Thresholds",children:[S,c,u,R,g,f]}),e[51]=g,e[52]=f,e[53]=c,e[54]=u,e[55]=V):V=e[55],V}function he(s){return t.jsx(ce,{iso:s.last_fired_at,className:"text-muted-foreground font-mono text-xs"})}function ue(s){return t.jsxs("span",{className:"text-sm",children:[s.description,s.enabled?null:t.jsx("span",{className:"text-muted-foreground label-caps ml-2",children:"disabled"})]})}function xe(s){return s.id}function pe(s){return t.jsx("option",{value:s,children:s},s)}function ge(s){return t.jsx("option",{value:s,children:s},s)}function je(s){return t.jsx("span",{className:"text-sm",children:s.description})}function fe(s){return s.id}function _e(s){return t.jsx("option",{value:s,children:s},s)}function ye(s){return t.jsx("option",{value:s},s)}function be(s){return t.jsx("option",{value:s},s)}function ve(s){return t.jsx("option",{value:s},s)}function Ne(s){return t.jsx("option",{value:s,children:s},s)}export{qe as default};
@@ -1 +1 @@
1
- import{c as le,u as ce,j as s,e as ie,ao as me,L as de}from"./inertia-CUTKXjxg.js";import{C as ue}from"./chart-hover-DMWx5-Rs.js";import{D as fe}from"./data-table-CwtPkw_i.js";import{E as he}from"./empty-state-CshhuRUU.js";import{F as ye}from"./filter-bar-BMHf8xBb.js";import{P as ge,E as pe}from"./env-layout-Dkp_4NvM.js";import{S as W}from"./sort-header-CqQQhaxg.js";import{S as xe}from"./sparkline-cell-BwdBz0yv.js";import{S as Y,a as _e}from"./stat-IghK3WjD.js";import{c as a,m as ve,a as be}from"./format-B9SDkrWj.js";import{t as je}from"./tenant-path-SxnZbfU1.js";import{K as ke}from"./app-layout-DUk54qUM.js";import"./badge-s7YDycYg.js";import"./app-wordmark-DDNuuq5_.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./arrow-up-DYTCBENO.js";import"./series-chart-C1YrNlID.js";import"./chart-nsdZV0Dv.js";import"./checkbox-C2AqEZXX.js";function it(t){const e=le.c(91),{environment:ae,window:o}=ce().props,l=ae.application_id,c=ae.id;let P;e[0]!==l||e[1]!==c||e[2]!==t.dir||e[3]!==t.q||e[4]!==t.sort||e[5]!==o?(P=r=>ie.visit(me(l,c,{window:o,sort:t.sort,dir:t.dir,q:t.q||void 0,...r}),{preserveState:!0}),e[0]=l,e[1]=c,e[2]=t.dir,e[3]=t.q,e[4]=t.sort,e[5]=o,e[6]=P):P=e[6];const m=P;let M;e[7]!==t.dir||e[8]!==t.sort||e[9]!==m?(M=r=>m({sort:r,dir:t.sort===r&&t.dir==="desc"?"asc":"desc"}),e[7]=t.dir,e[8]=t.sort,e[9]=m,e[10]=M):M=e[10];const n=M;let F;e[11]!==l||e[12]!==c||e[13]!==o?(F=r=>je(l,c,r.tenant,{window:o}),e[11]=l,e[12]=c,e[13]=o,e[14]=F):F=e[14];const i=F;let K;e[15]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(ge,{title:"Tenants",description:"Your application's own tenants, aggregated from the tenant tag on every record."}),e[15]=K):K=e[15];let d;e[16]!==t.summary.tenants?(d=a(t.summary.tenants),e[16]=t.summary.tenants,e[17]=d):d=e[17];let u;e[18]!==d?(u=s.jsx(Y,{label:"Tenants active",value:d}),e[18]=d,e[19]=u):u=e[19];const z=`${t.summary.top_share}%`,G=t.summary.top_tenant??"none";let f;e[20]!==z||e[21]!==G?(f=s.jsx(Y,{label:"Top tenant",value:z,hint:G}),e[20]=z,e[21]=G,e[22]=f):f=e[22];let h;e[23]!==t.summary.with_errors?(h=a(t.summary.with_errors),e[23]=t.summary.with_errors,e[24]=h):h=e[24];const I=t.summary.with_errors?"destructive":"success";let y;e[25]!==I||e[26]!==h?(y=s.jsx(Y,{label:"With 5xx",value:h,tone:I}),e[25]=I,e[26]=h,e[27]=y):y=e[27];const Q=`${t.summary.untagged_share}%`;let g;e[28]!==Q?(g=s.jsx(Y,{label:"Untagged",value:Q,hint:"requests with no tenant"}),e[28]=Q,e[29]=g):g=e[29];let p;e[30]!==y||e[31]!==g||e[32]!==u||e[33]!==f?(p=s.jsxs(_e,{children:[u,f,y,g]}),e[30]=y,e[31]=g,e[32]=u,e[33]=f,e[34]=p):p=e[34];let L;e[35]===Symbol.for("react.memo_cache_sentinel")?(L=[],e[35]=L):L=e[35];let x;e[36]!==m?(x=r=>m({q:r||void 0}),e[36]=m,e[37]=x):x=e[37];let _;e[38]!==t.q||e[39]!==x?(_=s.jsx(ye,{value:t.q,fields:L,onChange:x,placeholder:"Filter tenants"}),e[38]=t.q,e[39]=x,e[40]=_):_=e[40];let B;e[41]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(he,{icon:ke,title:"No tenant-tagged records in this window",description:"Records carry the tenant from ActiveRecord::Tenanted / TenantRecord.current_tenant, or call Railwatch.context(tenant: org.slug)"}),e[41]=B):B=e[41];let v,b;e[42]!==i?(v=r=>ie.visit(i(r)),b={onOpen:(r,oe)=>oe?.newTab?globalThis.window.open(i(r),"_blank"):ie.visit(i(r))},e[42]=i,e[43]=v,e[44]=b):(v=e[43],b=e[44]);let j;e[45]!==i?(j={key:"tenant",header:"Tenant",cell:r=>s.jsx(de,{className:"font-mono text-xs hover:underline",href:i(r),children:r.tenant})},e[45]=i,e[46]=j):j=e[46];let H;e[47]===Symbol.for("react.memo_cache_sentinel")?(H={key:"trend",hideOnMobile:!0,header:"Trend",cell:Oe},e[47]=H):H=e[47];const V=t.sort==="requests",X=t.dir==="asc"?"asc":"desc";let k;e[48]!==n?(k=()=>n("requests"),e[48]=n,e[49]=k):k=e[49];let w;e[50]!==V||e[51]!==X||e[52]!==k?(w={key:"requests",header:s.jsx(W,{label:"Requests",active:V,dir:X,onClick:k}),align:"right",cell:Ne},e[50]=V,e[51]=X,e[52]=k,e[53]=w):w=e[53];const Z=t.sort==="errors",ee=t.dir==="asc"?"asc":"desc";let S;e[54]!==n?(S=()=>n("errors"),e[54]=n,e[55]=S):S=e[55];let q;e[56]!==Z||e[57]!==ee||e[58]!==S?(q={key:"5xx",header:s.jsx(W,{label:"5xx",active:Z,dir:ee,onClick:S}),align:"right",cell:Re},e[56]=Z,e[57]=ee,e[58]=S,e[59]=q):q=e[59];const te=t.sort==="p95",se=t.dir==="asc"?"asc":"desc";let T;e[60]!==n?(T=()=>n("p95"),e[60]=n,e[61]=T):T=e[61];let C;e[62]!==te||e[63]!==se||e[64]!==T?(C={key:"p95",header:s.jsx(W,{label:"p95",active:te,dir:se,onClick:T}),align:"right",cell:Ee},e[62]=te,e[63]=se,e[64]=T,e[65]=C):C=e[65];let $,D,U;e[66]===Symbol.for("react.memo_cache_sentinel")?($={key:"jobs",hideOnMobile:!0,header:"Jobs",align:"right",cell:Ce},D={key:"failed",hideOnMobile:!0,header:"Failed",align:"right",cell:Te},U={key:"exceptions",hideOnMobile:!0,header:"Exceptions",align:"right",cell:qe},e[66]=$,e[67]=D,e[68]=U):($=e[66],D=e[67],U=e[68]);const re=t.sort==="users",ne=t.dir==="asc"?"asc":"desc";let E;e[69]!==n?(E=()=>n("users"),e[69]=n,e[70]=E):E=e[70];let R;e[71]!==re||e[72]!==ne||e[73]!==E?(R={key:"users",hideOnMobile:!0,header:s.jsx(W,{label:"Users",active:re,dir:ne,onClick:E}),align:"right",cell:Se},e[71]=re,e[72]=ne,e[73]=E,e[74]=R):R=e[74];let A;e[75]===Symbol.for("react.memo_cache_sentinel")?(A={key:"seen",header:"Last seen",align:"right",cell:we},e[75]=A):A=e[75];let N;e[76]!==j||e[77]!==w||e[78]!==q||e[79]!==C||e[80]!==R?(N=[j,H,w,q,C,$,D,U,R,A],e[76]=j,e[77]=w,e[78]=q,e[79]=C,e[80]=R,e[81]=N):N=e[81];let O;e[82]!==t.tenants||e[83]!==v||e[84]!==b||e[85]!==N?(O=s.jsx(fe,{rows:t.tenants,rowKey:Me,empty:B,hoverKey:Pe,onRowClick:v,keyboardNav:b,columns:N}),e[82]=t.tenants,e[83]=v,e[84]=b,e[85]=N,e[86]=O):O=e[86];let J;return e[87]!==p||e[88]!==_||e[89]!==O?(J=s.jsx(pe,{title:"Tenants",children:s.jsxs(ue,{children:[K,p,_,O]})}),e[87]=p,e[88]=_,e[89]=O,e[90]=J):J=e[90],J}function we(t){return be(t.last_seen_at)}function Se(t){return a(t.users)}function qe(t){return a(t.exceptions)}function Te(t){return s.jsx("span",{className:t.failed_jobs?"text-destructive":"",children:a(t.failed_jobs)})}function Ce(t){return a(t.jobs)}function Ee(t){return s.jsx("span",{className:"font-semibold",children:ve(t.p95)})}function Re(t){return s.jsx("span",{className:t.errors?"text-destructive":"",children:a(t.errors)})}function Ne(t){return a(t.requests)}function Oe(t){return s.jsx(xe,{data:t.sparkline,hoverKey:t.tenant})}function Pe(t){return t.tenant}function Me(t){return t.tenant}export{it as default};
1
+ import{c as le,u as ce,j as s,e as ie,ao as me,L as de}from"./inertia-DLew8ZNx.js";import{C as ue}from"./chart-hover-B1M9jc0y.js";import{D as fe}from"./data-table-BIlt7Rtm.js";import{E as he}from"./empty-state-C38il627.js";import{F as ye}from"./filter-bar-CYog9Alp.js";import{P as ge,E as pe}from"./env-layout-REF7OM4q.js";import{S as W}from"./sort-header-Dcq9bzmo.js";import{S as xe}from"./sparkline-cell-BON3qQUB.js";import{S as Y,a as _e}from"./stat-DFEyFxkO.js";import{c as a,m as ve,a as be}from"./format-B9SDkrWj.js";import{t as je}from"./tenant-path-DPZPc985.js";import{$ as ke}from"./app-layout-DDyQa72H.js";import"./badge-CAxXV8za.js";import"./app-wordmark-o9CODKP0.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./arrow-up-C6PxDiY3.js";import"./series-chart-Xf49v9cv.js";import"./chart-BBeBkkNa.js";import"./checkbox-CmhMHWZO.js";function it(t){const e=le.c(91),{environment:ae,window:o}=ce().props,l=ae.application_id,c=ae.id;let P;e[0]!==l||e[1]!==c||e[2]!==t.dir||e[3]!==t.q||e[4]!==t.sort||e[5]!==o?(P=r=>ie.visit(me(l,c,{window:o,sort:t.sort,dir:t.dir,q:t.q||void 0,...r}),{preserveState:!0}),e[0]=l,e[1]=c,e[2]=t.dir,e[3]=t.q,e[4]=t.sort,e[5]=o,e[6]=P):P=e[6];const m=P;let M;e[7]!==t.dir||e[8]!==t.sort||e[9]!==m?(M=r=>m({sort:r,dir:t.sort===r&&t.dir==="desc"?"asc":"desc"}),e[7]=t.dir,e[8]=t.sort,e[9]=m,e[10]=M):M=e[10];const n=M;let F;e[11]!==l||e[12]!==c||e[13]!==o?(F=r=>je(l,c,r.tenant,{window:o}),e[11]=l,e[12]=c,e[13]=o,e[14]=F):F=e[14];const i=F;let L;e[15]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(ge,{title:"Tenants",description:"Your application's own tenants, aggregated from the tenant tag on every record."}),e[15]=L):L=e[15];let d;e[16]!==t.summary.tenants?(d=a(t.summary.tenants),e[16]=t.summary.tenants,e[17]=d):d=e[17];let u;e[18]!==d?(u=s.jsx(Y,{label:"Tenants active",value:d}),e[18]=d,e[19]=u):u=e[19];const z=`${t.summary.top_share}%`,G=t.summary.top_tenant??"none";let f;e[20]!==z||e[21]!==G?(f=s.jsx(Y,{label:"Top tenant",value:z,hint:G}),e[20]=z,e[21]=G,e[22]=f):f=e[22];let h;e[23]!==t.summary.with_errors?(h=a(t.summary.with_errors),e[23]=t.summary.with_errors,e[24]=h):h=e[24];const I=t.summary.with_errors?"destructive":"success";let y;e[25]!==I||e[26]!==h?(y=s.jsx(Y,{label:"With 5xx",value:h,tone:I}),e[25]=I,e[26]=h,e[27]=y):y=e[27];const Q=`${t.summary.untagged_share}%`;let g;e[28]!==Q?(g=s.jsx(Y,{label:"Untagged",value:Q,hint:"requests with no tenant"}),e[28]=Q,e[29]=g):g=e[29];let p;e[30]!==y||e[31]!==g||e[32]!==u||e[33]!==f?(p=s.jsxs(_e,{children:[u,f,y,g]}),e[30]=y,e[31]=g,e[32]=u,e[33]=f,e[34]=p):p=e[34];let $;e[35]===Symbol.for("react.memo_cache_sentinel")?($=[],e[35]=$):$=e[35];let x;e[36]!==m?(x=r=>m({q:r||void 0}),e[36]=m,e[37]=x):x=e[37];let _;e[38]!==t.q||e[39]!==x?(_=s.jsx(ye,{value:t.q,fields:$,onChange:x,placeholder:"Filter tenants"}),e[38]=t.q,e[39]=x,e[40]=_):_=e[40];let B;e[41]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(he,{icon:ke,title:"No tenant-tagged records in this window",description:"Records carry the tenant from ActiveRecord::Tenanted / TenantRecord.current_tenant, or call Railwatch.context(tenant: org.slug)"}),e[41]=B):B=e[41];let v,b;e[42]!==i?(v=r=>ie.visit(i(r)),b={onOpen:(r,oe)=>oe?.newTab?globalThis.window.open(i(r),"_blank"):ie.visit(i(r))},e[42]=i,e[43]=v,e[44]=b):(v=e[43],b=e[44]);let j;e[45]!==i?(j={key:"tenant",header:"Tenant",cell:r=>s.jsx(de,{className:"font-mono text-xs hover:underline",href:i(r),children:r.tenant})},e[45]=i,e[46]=j):j=e[46];let H;e[47]===Symbol.for("react.memo_cache_sentinel")?(H={key:"trend",hideOnMobile:!0,header:"Trend",cell:Oe},e[47]=H):H=e[47];const V=t.sort==="requests",X=t.dir==="asc"?"asc":"desc";let k;e[48]!==n?(k=()=>n("requests"),e[48]=n,e[49]=k):k=e[49];let w;e[50]!==V||e[51]!==X||e[52]!==k?(w={key:"requests",header:s.jsx(W,{label:"Requests",active:V,dir:X,onClick:k}),align:"right",cell:Ne},e[50]=V,e[51]=X,e[52]=k,e[53]=w):w=e[53];const Z=t.sort==="errors",ee=t.dir==="asc"?"asc":"desc";let S;e[54]!==n?(S=()=>n("errors"),e[54]=n,e[55]=S):S=e[55];let q;e[56]!==Z||e[57]!==ee||e[58]!==S?(q={key:"5xx",header:s.jsx(W,{label:"5xx",active:Z,dir:ee,onClick:S}),align:"right",cell:Re},e[56]=Z,e[57]=ee,e[58]=S,e[59]=q):q=e[59];const te=t.sort==="p95",se=t.dir==="asc"?"asc":"desc";let T;e[60]!==n?(T=()=>n("p95"),e[60]=n,e[61]=T):T=e[61];let C;e[62]!==te||e[63]!==se||e[64]!==T?(C={key:"p95",header:s.jsx(W,{label:"p95",active:te,dir:se,onClick:T}),align:"right",cell:Ee},e[62]=te,e[63]=se,e[64]=T,e[65]=C):C=e[65];let K,D,U;e[66]===Symbol.for("react.memo_cache_sentinel")?(K={key:"jobs",hideOnMobile:!0,header:"Jobs",align:"right",cell:Ce},D={key:"failed",hideOnMobile:!0,header:"Failed",align:"right",cell:Te},U={key:"exceptions",hideOnMobile:!0,header:"Exceptions",align:"right",cell:qe},e[66]=K,e[67]=D,e[68]=U):(K=e[66],D=e[67],U=e[68]);const re=t.sort==="users",ne=t.dir==="asc"?"asc":"desc";let E;e[69]!==n?(E=()=>n("users"),e[69]=n,e[70]=E):E=e[70];let R;e[71]!==re||e[72]!==ne||e[73]!==E?(R={key:"users",hideOnMobile:!0,header:s.jsx(W,{label:"Users",active:re,dir:ne,onClick:E}),align:"right",cell:Se},e[71]=re,e[72]=ne,e[73]=E,e[74]=R):R=e[74];let A;e[75]===Symbol.for("react.memo_cache_sentinel")?(A={key:"seen",header:"Last seen",align:"right",cell:we},e[75]=A):A=e[75];let N;e[76]!==j||e[77]!==w||e[78]!==q||e[79]!==C||e[80]!==R?(N=[j,H,w,q,C,K,D,U,R,A],e[76]=j,e[77]=w,e[78]=q,e[79]=C,e[80]=R,e[81]=N):N=e[81];let O;e[82]!==t.tenants||e[83]!==v||e[84]!==b||e[85]!==N?(O=s.jsx(fe,{rows:t.tenants,rowKey:Me,empty:B,hoverKey:Pe,onRowClick:v,keyboardNav:b,columns:N}),e[82]=t.tenants,e[83]=v,e[84]=b,e[85]=N,e[86]=O):O=e[86];let J;return e[87]!==p||e[88]!==_||e[89]!==O?(J=s.jsx(pe,{title:"Tenants",children:s.jsxs(ue,{children:[L,p,_,O]})}),e[87]=p,e[88]=_,e[89]=O,e[90]=J):J=e[90],J}function we(t){return be(t.last_seen_at)}function Se(t){return a(t.users)}function qe(t){return a(t.exceptions)}function Te(t){return s.jsx("span",{className:t.failed_jobs?"text-destructive":"",children:a(t.failed_jobs)})}function Ce(t){return a(t.jobs)}function Ee(t){return s.jsx("span",{className:"font-semibold",children:ve(t.p95)})}function Re(t){return s.jsx("span",{className:t.errors?"text-destructive":"",children:a(t.errors)})}function Ne(t){return a(t.requests)}function Oe(t){return s.jsx(xe,{data:t.sparkline,hoverKey:t.tenant})}function Pe(t){return t.tenant}function Me(t){return t.tenant}export{it as default};
@@ -1 +1 @@
1
- import{c as ee,u as ne,j as s,E as se,e as ie,L as le,i as oe}from"./inertia-CUTKXjxg.js";import{V as ae}from"./chart-panel-BlirnMrQ.js";import{C as re}from"./cursor-load-more-JfSVBn9C.js";import{D as ce}from"./data-table-CwtPkw_i.js";import{F as me}from"./filter-bar-BMHf8xBb.js";import{P as de,E as fe}from"./env-layout-Dkp_4NvM.js";import{S as ue}from"./app-layout-DUk54qUM.js";import{B as te}from"./badge-s7YDycYg.js";import{C as X,a as Y}from"./card-DiW-JhK3.js";import{e as xe}from"./execution-path-CdEerUGH.js";import{c as Z,w as pe}from"./format-B9SDkrWj.js";import"./series-chart-C1YrNlID.js";import"./chart-hover-DMWx5-Rs.js";import"./chart-nsdZV0Dv.js";import"./app-wordmark-DDNuuq5_.js";import"./empty-state-CshhuRUU.js";import"./use-live-V-slSdFJ.js";import"./live-dot-Bb1UYT9F.js";import"./index-n16aviHx.js";import"./index-BpnfuXi-.js";import"./segmented-Bj70Htrs.js";import"./label-B32Ks8n7.js";import"./checkbox-C2AqEZXX.js";function he(t){const e=ee.c(3),{handled:n}=t,o=n?"secondary":"destructive",l=n?"handled":"unhandled";let i;return e[0]!==o||e[1]!==l?(i=s.jsx(te,{variant:o,children:l}),e[0]=o,e[1]=l,e[2]=i):i=e[2],i}function ye(t){const e=ee.c(3),{severity:n}=t;if(!n)return null;const o=n==="fatal"||n==="error"?"destructive":n==="warning"?"secondary":"outline";let l;return e[0]!==n||e[1]!==o?(l=s.jsx(te,{variant:o,className:"capitalize",children:n}),e[0]=n,e[1]=o,e[2]=l):l=e[2],l}function Je(t){const e=ee.c(76),{environment:n,window:o,range:l}=ne().props,i=n.application_id,a=n.id;let N;e[0]!==l?.from||e[1]!==l?.to||e[2]!==o?(N=o==="custom"?{from:l?.from,to:l?.to}:{window:o},e[0]=l?.from,e[1]=l?.to,e[2]=o,e[3]=N):N=e[3];const c=N;let w;e[4]!==l||e[5]!==c?(w=l?{from:l.from,to:l.to}:c,e[4]=l,e[5]=c,e[6]=w):w=e[6];const J=w;let S;e[7]!==i||e[8]!==J||e[9]!==a||e[10]!==t.pagination.limit||e[11]!==t.q?(S=r=>se(i,a,{...J,q:t.q||void 0,cursor:r,limit:t.pagination.limit}),e[7]=i,e[8]=J,e[9]=a,e[10]=t.pagination.limit,e[11]=t.q,e[12]=S):S=e[12];const Q=S;let E;e[13]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(de,{title:"Exceptions",description:"Every exception raised, handled or not -- distinct from Issues, which group and track these over time.",actions:s.jsx(ue,{page:"exceptions"})}),e[13]=E):E=e[13];let m;e[14]!==t.series?(m=s.jsx(ae,{legend:"exception",label:"Exceptions",seriesLabel:"Exceptions",data:t.series}),e[14]=t.series,e[15]=m):m=e[15];let q;e[16]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Total"}),e[16]=q):q=e[16];let d;e[17]!==t.total?(d=Z(t.total),e[17]=t.total,e[18]=d):d=e[18];let f;e[19]!==d?(f=s.jsx(X,{className:"gap-1 py-4",children:s.jsxs(Y,{className:"px-4",children:[q,s.jsx("div",{className:"mt-1 text-2xl font-semibold tabular-nums",children:d})]})}),e[19]=d,e[20]=f):f=e[20];let P;e[21]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Unhandled"}),e[21]=P):P=e[21];let u;e[22]!==t.unhandled?(u=Z(t.unhandled),e[22]=t.unhandled,e[23]=u):u=e[23];let x;e[24]!==u?(x=s.jsx(X,{className:"gap-1 py-4",children:s.jsxs(Y,{className:"px-4",children:[P,s.jsx("div",{className:"text-destructive mt-1 text-2xl font-semibold tabular-nums",children:u})]})}),e[24]=u,e[25]=x):x=e[25];let C;e[26]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Top classes"}),e[26]=C):C=e[26];let p;e[27]!==t.classes?(p=t.classes.slice(0,5).map(we),e[27]=t.classes,e[28]=p):p=e[28];let h;e[29]!==p?(h=s.jsx(X,{className:"gap-1 py-4",children:s.jsxs(Y,{className:"px-4",children:[C,s.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:p})]})}),e[29]=p,e[30]=h):h=e[30];let y;e[31]!==x||e[32]!==h||e[33]!==f?(y=s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[f,x,h]}),e[31]=x,e[32]=h,e[33]=f,e[34]=y):y=e[34];let B,M,I,L,T,H;e[35]===Symbol.for("react.memo_cache_sentinel")?(B={key:"after",label:"After"},M={key:"before",label:"Before"},I={key:"user",label:"User"},L={key:"tenant",label:"Tenant"},T={key:"deploy",label:"Deploy"},H={key:"source",label:"Source"},e[35]=B,e[36]=M,e[37]=I,e[38]=L,e[39]=T,e[40]=H):(B=e[35],M=e[36],I=e[37],L=e[38],T=e[39],H=e[40]);let O,R;e[41]===Symbol.for("react.memo_cache_sentinel")?(O={key:"kind",label:"Execution kind",options:["request","job","scheduled_task","command"]},R={key:"class",label:"Class"},e[41]=O,e[42]=R):(O=e[41],R=e[42]);let D;e[43]===Symbol.for("react.memo_cache_sentinel")?(D={key:"handled",label:"Handled",options:["true","false"]},e[43]=D):D=e[43];let F;e[44]===Symbol.for("react.memo_cache_sentinel")?(F=[B,M,I,L,T,H,O,R,D,{key:"severity",label:"Severity",options:["fatal","error","warning","info"]}],e[44]=F):F=e[44];let g;e[45]!==i||e[46]!==a||e[47]!==c?(g=r=>ie.visit(se(i,a,{...c,q:r||void 0}),{only:["exceptions","pagination","q"],preserveState:!0,reset:["exceptions"]}),e[45]=i,e[46]=a,e[47]=c,e[48]=g):g=e[48];let v;e[49]!==t.q||e[50]!==g?(v=s.jsx(me,{value:t.q,fields:F,onChange:g,placeholder:"class:ActiveRecord::RecordNotFound handled:false"}),e[49]=t.q,e[50]=g,e[51]=v):v=e[51];let U,V,$,A,z;e[52]===Symbol.for("react.memo_cache_sentinel")?(U={key:"when",header:"When",className:"w-40",cell:ke},V={key:"class",header:"Class",grow:!0,cell:_e},$={key:"handled",header:"Handled",cell:je},A={key:"sev",hideOnMobile:!0,header:"Severity",cell:be},z={key:"source",hideOnMobile:!0,header:"Source",cell:ve},e[52]=U,e[53]=V,e[54]=$,e[55]=A,e[56]=z):(U=e[52],V=e[53],$=e[54],A=e[55],z=e[56]);let b;e[57]!==i||e[58]!==a?(b={key:"in",hideOnMobile:!0,header:"In",cell:r=>r.execution_id?s.jsx(le,{className:"font-mono text-xs hover:underline",href:xe({applicationId:i,environmentId:a,source:r.execution_source,executionId:r.execution_id}),children:r.execution_preview}):s.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})},e[57]=i,e[58]=a,e[59]=b):b=e[59];let K;e[60]===Symbol.for("react.memo_cache_sentinel")?(K={key:"user",hideOnMobile:!0,header:"User",cell:ge},e[60]=K):K=e[60];let j;e[61]!==b?(j=[U,V,$,A,z,b,K],e[61]=b,e[62]=j):j=e[62];let _;e[63]!==t.exceptions||e[64]!==j?(_=s.jsx(ce,{rows:t.exceptions,rowKey:Ne,empty:"No exceptions in this window.",columns:j}),e[63]=t.exceptions,e[64]=j,e[65]=_):_=e[65];let W;e[66]===Symbol.for("react.memo_cache_sentinel")?(W=["exceptions","pagination"],e[66]=W):W=e[66];let k;e[67]!==Q||e[68]!==t.pagination?(k=s.jsx(re,{meta:t.pagination,href:Q,only:W}),e[67]=Q,e[68]=t.pagination,e[69]=k):k=e[69];let G;return e[70]!==y||e[71]!==v||e[72]!==_||e[73]!==k||e[74]!==m?(G=s.jsxs(fe,{title:"Exceptions",children:[E,m,y,v,_,k]}),e[70]=y,e[71]=v,e[72]=_,e[73]=k,e[74]=m,e[75]=G):G=e[75],G}function ge(t){return s.jsx("span",{className:"font-mono text-xs",children:t.user_ref??""})}function ve(t){return s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source??""})}function be(t){return s.jsx(ye,{severity:t.severity})}function je(t){return s.jsx(he,{handled:t.handled})}function _e(t){return s.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.issue_key?s.jsx(le,{className:"font-mono text-xs font-semibold hover:underline",href:oe(t.issue_id),children:t.class_name}):s.jsx("span",{className:"font-mono text-xs font-semibold",children:t.class_name}),s.jsx("span",{className:"text-muted-foreground line-clamp-1 text-xs",children:t.message})]})}function ke(t){return s.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ne(t){return t.id}function we(t){const[e,n]=t;return s.jsxs(te,{variant:"outline",className:"font-mono",children:[e," (",Z(n),")"]},e)}export{Je as default};
1
+ import{c as ee,u as ne,j as s,E as se,e as ie,L as le,i as oe}from"./inertia-DLew8ZNx.js";import{V as ae}from"./chart-panel-DUQTz_C8.js";import{C as re}from"./cursor-load-more-CRyuMeQb.js";import{D as ce}from"./data-table-BIlt7Rtm.js";import{F as me}from"./filter-bar-CYog9Alp.js";import{P as de,E as fe}from"./env-layout-REF7OM4q.js";import{S as ue}from"./app-layout-DDyQa72H.js";import{B as te}from"./badge-CAxXV8za.js";import{C as X,a as Y}from"./card-cAtqCxWl.js";import{e as xe}from"./execution-path-FYLq1TwC.js";import{c as Z,w as pe}from"./format-B9SDkrWj.js";import"./series-chart-Xf49v9cv.js";import"./chart-hover-B1M9jc0y.js";import"./chart-BBeBkkNa.js";import"./app-wordmark-o9CODKP0.js";import"./empty-state-C38il627.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./checkbox-CmhMHWZO.js";function he(t){const e=ee.c(3),{handled:n}=t,o=n?"secondary":"destructive",l=n?"handled":"unhandled";let i;return e[0]!==o||e[1]!==l?(i=s.jsx(te,{variant:o,children:l}),e[0]=o,e[1]=l,e[2]=i):i=e[2],i}function ye(t){const e=ee.c(3),{severity:n}=t;if(!n)return null;const o=n==="fatal"||n==="error"?"destructive":n==="warning"?"secondary":"outline";let l;return e[0]!==n||e[1]!==o?(l=s.jsx(te,{variant:o,className:"capitalize",children:n}),e[0]=n,e[1]=o,e[2]=l):l=e[2],l}function Je(t){const e=ee.c(76),{environment:n,window:o,range:l}=ne().props,i=n.application_id,a=n.id;let N;e[0]!==l?.from||e[1]!==l?.to||e[2]!==o?(N=o==="custom"?{from:l?.from,to:l?.to}:{window:o},e[0]=l?.from,e[1]=l?.to,e[2]=o,e[3]=N):N=e[3];const c=N;let w;e[4]!==l||e[5]!==c?(w=l?{from:l.from,to:l.to}:c,e[4]=l,e[5]=c,e[6]=w):w=e[6];const J=w;let S;e[7]!==i||e[8]!==J||e[9]!==a||e[10]!==t.pagination.limit||e[11]!==t.q?(S=r=>se(i,a,{...J,q:t.q||void 0,cursor:r,limit:t.pagination.limit}),e[7]=i,e[8]=J,e[9]=a,e[10]=t.pagination.limit,e[11]=t.q,e[12]=S):S=e[12];const Q=S;let E;e[13]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(de,{title:"Exceptions",description:"Every exception raised, handled or not -- distinct from Issues, which group and track these over time.",actions:s.jsx(ue,{page:"exceptions"})}),e[13]=E):E=e[13];let m;e[14]!==t.series?(m=s.jsx(ae,{legend:"exception",label:"Exceptions",seriesLabel:"Exceptions",data:t.series}),e[14]=t.series,e[15]=m):m=e[15];let q;e[16]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Total"}),e[16]=q):q=e[16];let d;e[17]!==t.total?(d=Z(t.total),e[17]=t.total,e[18]=d):d=e[18];let f;e[19]!==d?(f=s.jsx(X,{className:"gap-1 py-4",children:s.jsxs(Y,{className:"px-4",children:[q,s.jsx("div",{className:"mt-1 text-2xl font-semibold tabular-nums",children:d})]})}),e[19]=d,e[20]=f):f=e[20];let P;e[21]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Unhandled"}),e[21]=P):P=e[21];let u;e[22]!==t.unhandled?(u=Z(t.unhandled),e[22]=t.unhandled,e[23]=u):u=e[23];let x;e[24]!==u?(x=s.jsx(X,{className:"gap-1 py-4",children:s.jsxs(Y,{className:"px-4",children:[P,s.jsx("div",{className:"text-destructive mt-1 text-2xl font-semibold tabular-nums",children:u})]})}),e[24]=u,e[25]=x):x=e[25];let C;e[26]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Top classes"}),e[26]=C):C=e[26];let p;e[27]!==t.classes?(p=t.classes.slice(0,5).map(we),e[27]=t.classes,e[28]=p):p=e[28];let h;e[29]!==p?(h=s.jsx(X,{className:"gap-1 py-4",children:s.jsxs(Y,{className:"px-4",children:[C,s.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:p})]})}),e[29]=p,e[30]=h):h=e[30];let y;e[31]!==x||e[32]!==h||e[33]!==f?(y=s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[f,x,h]}),e[31]=x,e[32]=h,e[33]=f,e[34]=y):y=e[34];let B,M,I,L,T,H;e[35]===Symbol.for("react.memo_cache_sentinel")?(B={key:"after",label:"After"},M={key:"before",label:"Before"},I={key:"user",label:"User"},L={key:"tenant",label:"Tenant"},T={key:"deploy",label:"Deploy"},H={key:"source",label:"Source"},e[35]=B,e[36]=M,e[37]=I,e[38]=L,e[39]=T,e[40]=H):(B=e[35],M=e[36],I=e[37],L=e[38],T=e[39],H=e[40]);let O,R;e[41]===Symbol.for("react.memo_cache_sentinel")?(O={key:"kind",label:"Execution kind",options:["request","job","scheduled_task","command"]},R={key:"class",label:"Class"},e[41]=O,e[42]=R):(O=e[41],R=e[42]);let D;e[43]===Symbol.for("react.memo_cache_sentinel")?(D={key:"handled",label:"Handled",options:["true","false"]},e[43]=D):D=e[43];let F;e[44]===Symbol.for("react.memo_cache_sentinel")?(F=[B,M,I,L,T,H,O,R,D,{key:"severity",label:"Severity",options:["fatal","error","warning","info"]}],e[44]=F):F=e[44];let g;e[45]!==i||e[46]!==a||e[47]!==c?(g=r=>ie.visit(se(i,a,{...c,q:r||void 0}),{only:["exceptions","pagination","q"],preserveState:!0,reset:["exceptions"]}),e[45]=i,e[46]=a,e[47]=c,e[48]=g):g=e[48];let v;e[49]!==t.q||e[50]!==g?(v=s.jsx(me,{value:t.q,fields:F,onChange:g,placeholder:"class:ActiveRecord::RecordNotFound handled:false"}),e[49]=t.q,e[50]=g,e[51]=v):v=e[51];let U,V,$,A,z;e[52]===Symbol.for("react.memo_cache_sentinel")?(U={key:"when",header:"When",className:"w-40",cell:ke},V={key:"class",header:"Class",grow:!0,cell:_e},$={key:"handled",header:"Handled",cell:je},A={key:"sev",hideOnMobile:!0,header:"Severity",cell:be},z={key:"source",hideOnMobile:!0,header:"Source",cell:ve},e[52]=U,e[53]=V,e[54]=$,e[55]=A,e[56]=z):(U=e[52],V=e[53],$=e[54],A=e[55],z=e[56]);let b;e[57]!==i||e[58]!==a?(b={key:"in",hideOnMobile:!0,header:"In",cell:r=>r.execution_id?s.jsx(le,{className:"font-mono text-xs hover:underline",href:xe({applicationId:i,environmentId:a,source:r.execution_source,executionId:r.execution_id}),children:r.execution_preview}):s.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})},e[57]=i,e[58]=a,e[59]=b):b=e[59];let K;e[60]===Symbol.for("react.memo_cache_sentinel")?(K={key:"user",hideOnMobile:!0,header:"User",cell:ge},e[60]=K):K=e[60];let j;e[61]!==b?(j=[U,V,$,A,z,b,K],e[61]=b,e[62]=j):j=e[62];let _;e[63]!==t.exceptions||e[64]!==j?(_=s.jsx(ce,{rows:t.exceptions,rowKey:Ne,empty:"No exceptions in this window.",columns:j}),e[63]=t.exceptions,e[64]=j,e[65]=_):_=e[65];let W;e[66]===Symbol.for("react.memo_cache_sentinel")?(W=["exceptions","pagination"],e[66]=W):W=e[66];let k;e[67]!==Q||e[68]!==t.pagination?(k=s.jsx(re,{meta:t.pagination,href:Q,only:W}),e[67]=Q,e[68]=t.pagination,e[69]=k):k=e[69];let G;return e[70]!==y||e[71]!==v||e[72]!==_||e[73]!==k||e[74]!==m?(G=s.jsxs(fe,{title:"Exceptions",children:[E,m,y,v,_,k]}),e[70]=y,e[71]=v,e[72]=_,e[73]=k,e[74]=m,e[75]=G):G=e[75],G}function ge(t){return s.jsx("span",{className:"font-mono text-xs",children:t.user_ref??""})}function ve(t){return s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source??""})}function be(t){return s.jsx(ye,{severity:t.severity})}function je(t){return s.jsx(he,{handled:t.handled})}function _e(t){return s.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.issue_key?s.jsx(le,{className:"font-mono text-xs font-semibold hover:underline",href:oe(t.issue_id),children:t.class_name}):s.jsx("span",{className:"font-mono text-xs font-semibold",children:t.class_name}),s.jsx("span",{className:"text-muted-foreground line-clamp-1 text-xs",children:t.message})]})}function ke(t){return s.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ne(t){return t.id}function we(t){const[e,n]=t;return s.jsxs(te,{variant:"outline",className:"font-mono",children:[e," (",Z(n),")"]},e)}export{Je as default};