railwatch 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/AGENTS.md +6 -2
  3. data/CHANGELOG.md +133 -0
  4. data/README.md +21 -13
  5. data/app/controllers/railwatch/dashboard_controller.rb +1 -0
  6. data/app/controllers/railwatch/requests_controller.rb +1 -19
  7. data/app/models/railwatch/application_record.rb +2 -2
  8. data/app/models/railwatch/execution_presenter.rb +1 -1
  9. data/app/models/railwatch/filter_query.rb +20 -0
  10. data/app/models/railwatch/saved_view.rb +1 -1
  11. data/app/models/railwatch/telemetry_record.rb +2 -2
  12. data/docs/configuration.md +29 -13
  13. data/docs/embedded.md +32 -12
  14. data/docs/faq.md +6 -5
  15. data/docs/getting-started.md +9 -5
  16. data/docs/troubleshooting.md +10 -6
  17. data/lib/generators/railwatch/install/install_generator.rb +31 -16
  18. data/lib/generators/railwatch/install/templates/initializer.rb.tt +4 -4
  19. data/lib/puma/plugin/railwatch.rb +48 -3
  20. data/lib/railwatch/configuration.rb +16 -1
  21. data/lib/railwatch/engine.rb +14 -3
  22. data/lib/railwatch/reporter.rb +52 -16
  23. data/lib/railwatch/transport/http.rb +4 -9
  24. data/lib/railwatch/version.rb +1 -1
  25. data/lib/railwatch.rb +35 -1
  26. data/lib/tasks/railwatch_tasks.rake +11 -4
  27. data/llms.txt +8 -4
  28. data/public/railwatch/assets/{app-layout-DDyQa72H.js → app-layout-2xAKndVD.js} +1 -1
  29. data/public/railwatch/assets/{app-wordmark-o9CODKP0.js → app-wordmark-Bt6XqURo.js} +1 -1
  30. data/public/railwatch/assets/{appearance-BwuCXabr.js → appearance-DyCfeh9o.js} +1 -1
  31. data/public/railwatch/assets/{arrow-up-C6PxDiY3.js → arrow-up-EmePsTKP.js} +1 -1
  32. data/public/railwatch/assets/{auth-layout-BRt8MGFD.js → auth-layout-BuwogWMZ.js} +1 -1
  33. data/public/railwatch/assets/{badge-CAxXV8za.js → badge-Dv7I-ebP.js} +1 -1
  34. data/public/railwatch/assets/{braces-DgomTCNf.js → braces-iZ7MEfYP.js} +1 -1
  35. data/public/railwatch/assets/{card-cAtqCxWl.js → card-DqdEEKcJ.js} +1 -1
  36. data/public/railwatch/assets/{chart-BBeBkkNa.js → chart-C4k7Ub9W.js} +1 -1
  37. data/public/railwatch/assets/{chart-hover-B1M9jc0y.js → chart-hover-2yZG3w2u.js} +1 -1
  38. data/public/railwatch/assets/{chart-panel-DUQTz_C8.js → chart-panel-CONkZcn9.js} +1 -1
  39. data/public/railwatch/assets/{checkbox-CmhMHWZO.js → checkbox-DKbThbxr.js} +1 -1
  40. data/public/railwatch/assets/{code-DESvxyTj.js → code-CYahYQHZ.js} +1 -1
  41. data/public/railwatch/assets/{copy-block-BkSU5832.js → copy-block-CbJum9s8.js} +1 -1
  42. data/public/railwatch/assets/{copy-id-D03GhN9F.js → copy-id-JmvLfkmx.js} +1 -1
  43. data/public/railwatch/assets/{cursor-load-more-CRyuMeQb.js → cursor-load-more-C1ylbqqL.js} +1 -1
  44. data/public/railwatch/assets/{data-table-BIlt7Rtm.js → data-table-CVKR2wkq.js} +1 -1
  45. data/public/railwatch/assets/{edit-DJ0D0wHN.js → edit-BXF5oNYA.js} +1 -1
  46. data/public/railwatch/assets/{edit-O0NSBWxo.js → edit-BwSEVrTG.js} +1 -1
  47. data/public/railwatch/assets/{edit-Bb6MKoe4.js → edit-D5BRDwLT.js} +1 -1
  48. data/public/railwatch/assets/{empty-state-C38il627.js → empty-state-Bn48Gplm.js} +1 -1
  49. data/public/railwatch/assets/{env-layout-REF7OM4q.js → env-layout-CKLL8Ds7.js} +1 -1
  50. data/public/railwatch/assets/{execution-path-FYLq1TwC.js → execution-path-DWovhgLi.js} +1 -1
  51. data/public/railwatch/assets/{filter-bar-CYog9Alp.js → filter-bar-xcbJC93z.js} +1 -1
  52. data/public/railwatch/assets/{flamegraph-DSs69foN.js → flamegraph-BNbNIuKT.js} +1 -1
  53. data/public/railwatch/assets/{frames-BUi2J5Mk.js → frames-Bk39xfJG.js} +1 -1
  54. data/public/railwatch/assets/{google-sign-in-button-BQiIKFdd.js → google-sign-in-button-B5as2ps1.js} +1 -1
  55. data/public/railwatch/assets/{index-QpTtwFwu.js → index-Atp1FTgX.js} +1 -1
  56. data/public/railwatch/assets/{index-C-PmdhXA.js → index-B-FXAo1w.js} +1 -1
  57. data/public/railwatch/assets/{index-DqTFTP8p.js → index-B0xgzHuN.js} +1 -1
  58. data/public/railwatch/assets/{index-so4lRrRq.js → index-BDVShWMs.js} +1 -1
  59. data/public/railwatch/assets/{index-C_upSl_k.js → index-BRvRkfob.js} +1 -1
  60. data/public/railwatch/assets/{index-CsoN51vW.js → index-BVWapDeB.js} +1 -1
  61. data/public/railwatch/assets/{index-CrZ3vHDL.js → index-Bd4YpOIO.js} +1 -1
  62. data/public/railwatch/assets/{index-BaR1U9An.js → index-BeQw69GM.js} +1 -1
  63. data/public/railwatch/assets/{index-Dh4IRLFI.js → index-BfitxVBv.js} +1 -1
  64. data/public/railwatch/assets/{index-umIAl-pL.js → index-C-EwH4lO.js} +1 -1
  65. data/public/railwatch/assets/{index-CICUIFHL.js → index-C8JIdb3_.js} +1 -1
  66. data/public/railwatch/assets/{index-CFFpnzIS.js → index-CBFCtJAR.js} +1 -1
  67. data/public/railwatch/assets/{index-tpz-OGUP.js → index-CDXlITyG.js} +1 -1
  68. data/public/railwatch/assets/{index-DW2CBbxU.js → index-COd9lT84.js} +1 -1
  69. data/public/railwatch/assets/{index-FhUaPPab.js → index-C_hQmVTP.js} +1 -1
  70. data/public/railwatch/assets/{index-JdCVBrw8.js → index-CcennT28.js} +1 -1
  71. data/public/railwatch/assets/{index-DrcKVG2f.js → index-CiaeS-n7.js} +1 -1
  72. data/public/railwatch/assets/{index-BoUBioBP.js → index-CrA7jBTK.js} +1 -1
  73. data/public/railwatch/assets/{index-C3A_9imx.js → index-D0mKj3Hg.js} +1 -1
  74. data/public/railwatch/assets/{index-BiiyMcA0.js → index-DV5MdmpY.js} +1 -1
  75. data/public/railwatch/assets/{index-CiPo4Gob.js → index-DaE-1xhx.js} +1 -1
  76. data/public/railwatch/assets/{index-CpkI015n.js → index-DdVg9LKX.js} +1 -1
  77. data/public/railwatch/assets/{index-DvjY3dPD.js → index-DeLtMWou.js} +1 -1
  78. data/public/railwatch/assets/{index-CFRLPs4J.js → index-DiQ4mqT_.js} +1 -1
  79. data/public/railwatch/assets/{index-DtHmuB9Q.js → index-LKgpCzoR.js} +1 -1
  80. data/public/railwatch/assets/{index-BeOh2t_S.js → index-S0NVaLj9.js} +1 -1
  81. data/public/railwatch/assets/{index-C7OtLq_3.js → index-Vj93BTR5.js} +1 -1
  82. data/public/railwatch/assets/{index-ZOGOB8SA.js → index-XjXcV-EO.js} +1 -1
  83. data/public/railwatch/assets/{index-ZSZg9rtq.js → index-Zkt4W_CM.js} +1 -1
  84. data/public/railwatch/assets/{index-8-hnAhOD.js → index-aPCZX-pW.js} +1 -1
  85. data/public/railwatch/assets/{index-DDI_Zx5V.js → index-cTzBycCg.js} +1 -1
  86. data/public/railwatch/assets/{index-sTYvcbkh.js → index-dpG-19ZN.js} +1 -1
  87. data/public/railwatch/assets/{index-r0tSIplE.js → index-gCvuyG1l.js} +1 -1
  88. data/public/railwatch/assets/{index-DSvlZVWG.js → index-o1xqGvLo.js} +1 -1
  89. data/public/railwatch/assets/{index-CGs4m_fa.js → index-w_skgMmK.js} +1 -1
  90. data/public/railwatch/assets/{inertia-DLew8ZNx.js → inertia-CqnzqPVD.js} +2 -2
  91. data/public/railwatch/assets/{input-error-cvM6_Jht.js → input-error-ByT28UdP.js} +1 -1
  92. data/public/railwatch/assets/{json-viewer-D922McGi.js → json-viewer-Bnu9RsJL.js} +1 -1
  93. data/public/railwatch/assets/{klass-CrwICqN8.js → klass-nLiBV-Az.js} +1 -1
  94. data/public/railwatch/assets/{label-GWl7I6sf.js → label-1nSzpSB6.js} +1 -1
  95. data/public/railwatch/assets/{layout-0ZAnD3zl.js → layout-D7lE1Doo.js} +1 -1
  96. data/public/railwatch/assets/{live-dot-D1n_BreY.js → live-dot-UdzOfzJb.js} +1 -1
  97. data/public/railwatch/assets/{nav-DPxr1NNC.js → nav-BRCgp2w3.js} +1 -1
  98. data/public/railwatch/assets/{new-DHAHDrN7.js → new-C60G72DR.js} +1 -1
  99. data/public/railwatch/assets/{new-D-ZzUK9a.js → new-COyDKOOb.js} +1 -1
  100. data/public/railwatch/assets/{new-DEVkYv-z.js → new-Cd9zPNJ8.js} +1 -1
  101. data/public/railwatch/assets/{new-Dz4lZf1L.js → new-DMJGKjmH.js} +1 -1
  102. data/public/railwatch/assets/{new-GMrRFurX.js → new-Omvf-c9s.js} +1 -1
  103. data/public/railwatch/assets/{new-Cdl6pqST.js → new-vjRzERL3.js} +1 -1
  104. data/public/railwatch/assets/onboarding-gUjJQc-6.js +1 -0
  105. data/public/railwatch/assets/{origin-identity-Bk9yHWZ1.js → origin-identity-M1YUPYS0.js} +1 -1
  106. data/public/railwatch/assets/{percentile-picker-DfSx9yJO.js → percentile-picker-BxIVblBw.js} +1 -1
  107. data/public/railwatch/assets/{relative-time-CjIjb8Lg.js → relative-time-DQ4kjowZ.js} +1 -1
  108. data/public/railwatch/assets/{release-health-4b3tivEf.js → release-health-Cb1tMOOO.js} +1 -1
  109. data/public/railwatch/assets/{route-C_5BUtHK.js → route-BJkoEm7r.js} +1 -1
  110. data/public/railwatch/assets/{segmented-BgbT3wZa.js → segmented-C4oWE73o.js} +1 -1
  111. data/public/railwatch/assets/{select-DmunxCKE.js → select-ocdQJdQo.js} +1 -1
  112. data/public/railwatch/assets/{separator-BXzEdZ_8.js → separator-Ct2UcZ2x.js} +1 -1
  113. data/public/railwatch/assets/{series-chart-Xf49v9cv.js → series-chart-D6upsrSn.js} +1 -1
  114. data/public/railwatch/assets/{show-DlRVS18-.js → show-B4bwI9x2.js} +1 -1
  115. data/public/railwatch/assets/{show-DnR1Dnjd.js → show-BAjfddEn.js} +1 -1
  116. data/public/railwatch/assets/{show-mU38uGTg.js → show-BLJOyLb_.js} +1 -1
  117. data/public/railwatch/assets/{show-DYskfl3-.js → show-BoVyMQS6.js} +1 -1
  118. data/public/railwatch/assets/{show-DXs4deaC.js → show-Bsu1rvnK.js} +1 -1
  119. data/public/railwatch/assets/{show-Dn-GwFZL.js → show-C6OiJ6Hr.js} +1 -1
  120. data/public/railwatch/assets/{show-CAl7xcex.js → show-C8TkpEgm.js} +1 -1
  121. data/public/railwatch/assets/{show-BLpWUHWD.js → show-CBFBiBY2.js} +1 -1
  122. data/public/railwatch/assets/{show-Y74rM0VT.js → show-CEhPVMMT.js} +1 -1
  123. data/public/railwatch/assets/{show-SHwZjXb7.js → show-CV-lG2b6.js} +1 -1
  124. data/public/railwatch/assets/{show-Dily73Xk.js → show-CX_pab9S.js} +1 -1
  125. data/public/railwatch/assets/{show-DcpTFiLi.js → show-D6lgzL6n.js} +1 -1
  126. data/public/railwatch/assets/{show-vQ4bndYD.js → show-DDVsv-uS.js} +1 -1
  127. data/public/railwatch/assets/{show-SvLOcPrx.js → show-Dwiq-8hA.js} +1 -1
  128. data/public/railwatch/assets/{show-B2zLAW83.js → show-eKazflRI.js} +1 -1
  129. data/public/railwatch/assets/{show-DSP9Cq_C.js → show-gtwKsTsl.js} +1 -1
  130. data/public/railwatch/assets/{show-DI8IhNUH.js → show-yEOrk6Pt.js} +1 -1
  131. data/public/railwatch/assets/{sort-header-Dcq9bzmo.js → sort-header-CPM6fhXv.js} +1 -1
  132. data/public/railwatch/assets/{sparkline-cell-BON3qQUB.js → sparkline-cell-CXCxXPWt.js} +1 -1
  133. data/public/railwatch/assets/{stat-DFEyFxkO.js → stat-BNEfE8X1.js} +1 -1
  134. data/public/railwatch/assets/{status-badge-BaUKP7Yo.js → status-badge-D0aylrM5.js} +1 -1
  135. data/public/railwatch/assets/{tenant-path-DPZPc985.js → tenant-path-C4aM_cO0.js} +1 -1
  136. data/public/railwatch/assets/{text-link-BO77t9Xk.js → text-link-CP4lqUi6.js} +1 -1
  137. data/public/railwatch/assets/{textarea-DTqrCiV0.js → textarea-DzJo2ds4.js} +1 -1
  138. data/public/railwatch/assets/{timeline-D5rJ0es2.js → timeline-BNcJ9PMc.js} +1 -1
  139. data/public/railwatch/assets/{transition-DMIrZVth.js → transition-BX2M1iaq.js} +1 -1
  140. data/public/railwatch/assets/{use-clipboard-ByoUGQqA.js → use-clipboard-C1ApSwzA.js} +1 -1
  141. data/public/railwatch/assets/{use-live-D7xKz2ma.js → use-live-DWwLg1Nj.js} +1 -1
  142. data/public/railwatch/manifest.json +1283 -1283
  143. metadata +116 -116
  144. data/public/railwatch/assets/onboarding-D1vwaHYT.js +0 -1
  145. /data/db/railwatch_telemetry_migrate/{20260919000000_create_export_queue.rb → 20260919000100_create_export_queue.rb} +0 -0
@@ -1 +1 @@
1
- import{c as G,r as D,at as T,aL as J,j as t,H as V,F as z,e as o,aM as Y,aN as R,aO as Z,aP as ee,aQ as te}from"./inertia-DLew8ZNx.js";import{I as O}from"./input-error-cvM6_Jht.js";import{D as E}from"./data-table-BIlt7Rtm.js";import{R as se}from"./relative-time-CjIjb8Lg.js";import{B as K}from"./badge-CAxXV8za.js";import{B as i}from"./app-wordmark-o9CODKP0.js";import{b as H,c as B,C as M,a as W}from"./card-cAtqCxWl.js";import{C as U}from"./checkbox-CmhMHWZO.js";import{L as r,I as l}from"./label-GWl7I6sf.js";import{A as ne}from"./app-layout-DDyQa72H.js";import"./chart-hover-B1M9jc0y.js";import"./empty-state-C38il627.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./format-B9SDkrWj.js";const re={slack:"Slack hook id — incoming webhooks do not expose their channel"},$={slack:{key:"webhook_url",label:"New Slack incoming webhook URL"},webhook:{key:"secret",label:"New signing secret"},linear:{key:"api_key",label:"New Linear API key"}};function ie(e){const s=$[e.kind];if(!s)return;const n=window.prompt(s.label)?.trim();n&&o.patch(R(e.id),{enabled:!0,settings:{[s.key]:n}})}const Q={new_issue:"New issue",regressed_issue:"Regressed or reopened issue",resolved_issue:"Issue resolved",ignored_issue:"Issue ignored",assigned_issue:"Issue assigned",threshold:"Threshold exceeded",quota:"Quota reached"};function ae(e,s){const n=e.filters??{};return[...(s[e.application_id]??[]).filter(a=>(n.environment_ids??[]).includes(a.id)).map(a=>a.name),...n.kinds??[],n.min_priority?`>= ${n.min_priority}`:null,n.title_pattern].filter(Boolean).join(" · ")}function Ke(e){const s=G.c(40),[n,q]=D.useState("slack"),[a,X]=D.useState(e.application_options[0]?.id);let j,f;s[0]===Symbol.for("react.memo_cache_sentinel")?(j=[{title:"Integrations",href:T()}],f=t.jsx(V,{title:"Integrations"}),s[0]=j,s[1]=f):(j=s[0],f=s[1]);let _;s[2]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsxs("div",{children:[t.jsx("h1",{className:"text-xl font-semibold",children:"Integrations and alerts"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"Where alerts go, and which events trigger them per application."})]}),s[2]=_):_=s[2];let b;s[3]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(H,{children:t.jsx(B,{className:"text-sm",children:"Add integration"})}),s[3]=b):b=s[3];let k;s[4]===Symbol.for("react.memo_cache_sentinel")?(k=T(),s[4]=k):k=s[4];let d;s[5]!==n||s[6]!==e.kinds||s[7]!==e.linear_oauth_enabled?(d=t.jsxs(M,{children:[b,t.jsx(W,{children:t.jsx(z,{method:"post",action:k,className:"space-y-3",resetOnSuccess:!0,children:g=>{const{errors:L,processing:A}=g;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"kind",children:"Kind"}),t.jsx("select",{id:"kind",name:"kind",value:n,onChange:P=>q(P.target.value),className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:e.kinds.map(Ce)})]}),!(n==="linear"&&e.linear_oauth_enabled)&&t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"name",children:"Name"}),t.jsx(l,{id:"name",name:"name",required:!0,placeholder:"#alerts"}),t.jsx(O,{messages:L.name})]}),n==="email"&&t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"to",children:"Send to"}),t.jsx(l,{id:"to",name:"settings[to]",type:"email",required:!0})]}),n==="slack"&&t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"webhook_url",children:"Incoming webhook URL"}),t.jsx(l,{id:"webhook_url",name:"settings[webhook_url]",type:"url",required:!0,placeholder:"https://hooks.slack.com/services/…"})]}),n==="webhook"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"url",children:"URL"}),t.jsx(l,{id:"url",name:"settings[url]",type:"url",required:!0})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"secret",children:"Signing secret (optional)"}),t.jsx(l,{id:"secret",name:"settings[secret]"}),t.jsx("p",{className:"text-muted-foreground text-xs",children:"Sent as X-Railwatch-Signature: sha256=HMAC(body)."})]})]}),n==="linear"&&e.linear_oauth_enabled&&t.jsxs("div",{className:"bg-muted/40 space-y-2 rounded-md border p-3",children:[t.jsx("p",{className:"text-sm",children:"Linear uses OAuth to discover your workspace and teams. Connect your workspace, then select a team."}),t.jsx("p",{className:"text-muted-foreground text-xs",children:"Railwatch names the integration from the Linear workspace."})]}),n==="linear"&&!e.linear_oauth_enabled&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"api_key",children:"API key"}),t.jsx(l,{id:"api_key",name:"settings[api_key]",required:!0})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"team_id",children:"Team ID"}),t.jsx(l,{id:"team_id",name:"settings[team_id]",required:!0})]})]}),t.jsx(O,{messages:L.settings}),n==="linear"&&e.linear_oauth_enabled?t.jsx(i,{type:"button",onClick:Se,children:"Connect Linear workspace"}):t.jsx(i,{disabled:A,children:"Add"})]})}})})]}),s[5]=n,s[6]=e.kinds,s[7]=e.linear_oauth_enabled,s[8]=d):d=s[8];let v;s[9]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(H,{children:t.jsx(B,{className:"text-sm",children:"Add alert rule"})}),s[9]=v):v=s[9];let y;s[10]===Symbol.for("react.memo_cache_sentinel")?(y=J(),s[10]=y):y=s[10];let c;s[11]!==a||s[12]!==e.application_options||s[13]!==e.environment_options||s[14]!==e.events||s[15]!==e.integrations||s[16]!==e.issue_kinds||s[17]!==e.priorities?(c=t.jsxs(M,{children:[v,t.jsx(W,{children:t.jsx(z,{method:"post",action:y,className:"space-y-3",children:g=>{const{errors:L,processing:A}=g;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"application_id",children:"Application"}),t.jsx("select",{id:"application_id",name:"application_id",value:a??"",onChange:P=>X(Number(P.target.value)),className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:e.application_options.map(we)})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"event",children:"When"}),t.jsx("select",{id:"event",name:"event",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:e.events.map(Ne)})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"integration_id",children:"Notify"}),t.jsx("select",{id:"integration_id",name:"integration_id",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:e.integrations.map(ye)})]}),t.jsxs("div",{className:"space-y-3 border-t pt-3",children:[t.jsx("p",{className:"label-caps",children:"Only notify when (optional)"}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx("span",{className:"text-sm",children:"Environments"}),t.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-2",children:(e.environment_options[a??0]??[]).map(ve)})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx("span",{className:"text-sm",children:"Issue kinds"}),t.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-2",children:e.issue_kinds.map(ke)})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"min_priority",children:"Minimum priority"}),t.jsxs("select",{id:"min_priority",name:"filters[min_priority]",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:[t.jsx("option",{value:"",children:"any"}),e.priorities.map(be)]})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"title_pattern",children:"Title matches"}),t.jsx(l,{id:"title_pattern",name:"filters[title_pattern]",placeholder:"timeout, or /Redis.*timeout/"}),t.jsx("p",{className:"text-muted-foreground text-xs",children:"Case-insensitive substring, or a regular expression when wrapped in slashes."})]})]}),t.jsx(O,{messages:L.event}),t.jsx(i,{disabled:A||e.integrations.length===0,children:"Add rule"})]})}})})]}),s[11]=a,s[12]=e.application_options,s[13]=e.environment_options,s[14]=e.events,s[15]=e.integrations,s[16]=e.issue_kinds,s[17]=e.priorities,s[18]=c):c=s[18];let m;s[19]!==d||s[20]!==c?(m=t.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[d,c]}),s[19]=d,s[20]=c,s[21]=m):m=s[21];let N;s[22]===Symbol.for("react.memo_cache_sentinel")?(N=[{key:"n",header:"Integration",cell:fe},{key:"k",header:"Kind",cell:je},{key:"s",header:"Destination",cell:ge},{key:"d",header:"Health",hideOnMobile:!0,cell:xe},{key:"e",header:"",cell:pe},{key:"x",header:"",align:"right",cell:he}],s[22]=N):N=s[22];let h;s[23]!==e.integrations?(h=t.jsx(E,{rows:e.integrations,rowKey:_e,empty:"No integrations yet.",columns:N}),s[23]=e.integrations,s[24]=h):h=s[24];let w,S,C;s[25]===Symbol.for("react.memo_cache_sentinel")?(w={key:"a",header:"Application",cell:ce},S={key:"e",header:"When",cell:de},C={key:"i",header:"Notify",cell:oe},s[25]=w,s[26]=S,s[27]=C):(w=s[25],S=s[26],C=s[27]);let u;s[28]!==e.environment_options?(u={key:"f",header:"Only when",hideOnMobile:!0,cell:g=>t.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:ae(g,e.environment_options)||"—"})},s[28]=e.environment_options,s[29]=u):u=s[29];let I;s[30]===Symbol.for("react.memo_cache_sentinel")?(I={key:"x",header:"",align:"right",cell:le},s[30]=I):I=s[30];let p;s[31]!==u?(p=[w,S,C,u,I],s[31]=u,s[32]=p):p=s[32];let x;s[33]!==e.alert_rules||s[34]!==p?(x=t.jsx(E,{rows:e.alert_rules,rowKey:me,empty:"No alert rules yet.",columns:p}),s[33]=e.alert_rules,s[34]=p,s[35]=x):x=s[35];let F;return s[36]!==h||s[37]!==x||s[38]!==m?(F=t.jsxs(ne,{breadcrumbs:j,children:[f,t.jsxs("div",{className:"flex flex-1 flex-col gap-6 p-4 md:p-6",children:[_,m,h,x]})]}),s[36]=h,s[37]=x,s[38]=m,s[39]=F):F=s[39],F}function le(e){return t.jsx(i,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>o.delete(te(e.id)),children:"Remove"})}function oe(e){return e.integration}function de(e){return Q[e.event]??e.event}function ce(e){return e.application}function me(e){return e.id}function he(e){return t.jsxs("span",{className:"flex flex-wrap justify-end gap-1",children:[e.kind==="linear"&&(e.settings.team_options?.length??0)>0&&t.jsxs("select",{"aria-label":`Linear team for ${e.name}`,value:e.settings.team_id??"",onChange:s=>o.patch(R(e.id),{enabled:!0,settings:{team_id:s.target.value}}),className:"border-input h-8 rounded-md border bg-transparent px-2 text-xs",children:[t.jsx("option",{value:"",children:"Select team…"}),e.settings.team_options?.map(ue)]}),t.jsx(i,{size:"sm",variant:"ghost",onClick:()=>o.post(Z(e.id),{},{preserveScroll:!0}),children:"Send test"}),$[e.kind]&&!(e.kind==="linear"&&e.settings.oauth)&&t.jsx(i,{size:"sm",variant:"ghost",onClick:()=>ie(e),children:"Rotate"}),e.kind==="linear"&&e.settings.oauth&&e.settings.credential&&t.jsx(i,{size:"sm",variant:"ghost",onClick:()=>o.delete(ee(e.id)),children:"Disconnect"}),t.jsx(i,{size:"sm",variant:"ghost",onClick:()=>o.patch(R(e.id),{enabled:!e.enabled}),children:e.enabled?"Disable":"Enable"}),t.jsx(i,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>o.delete(R(e.id)),children:"Remove"})]})}function ue(e){return t.jsxs("option",{value:e.id,children:[e.name," (",e.key,")"]},e.id)}function pe(e){return e.enabled?null:t.jsx(K,{variant:"secondary",children:"disabled"})}function xe(e){return t.jsxs("span",{className:"flex flex-col gap-0.5",children:[t.jsxs("span",{className:"text-muted-foreground text-xs",children:[e.kind==="linear"?"Last sync ":"Last delivery ",t.jsx(se,{iso:e.kind==="linear"?e.last_synced_at:e.last_delivered_at})]}),e.kind==="linear"&&e.webhook_health&&t.jsxs("span",{className:"text-muted-foreground text-xs",children:["Webhooks: ",e.webhook_health.pending," pending ·"," ",e.webhook_health.failed," failed"]}),e.last_error&&t.jsx("span",{className:"text-destructive max-w-64 truncate text-xs",title:e.last_error,children:e.last_error})]})}function ge(e){return t.jsx("span",{className:"font-mono text-xs",title:re[e.kind],children:e.destination??"—"})}function je(e){return t.jsx(K,{variant:"outline",children:e.kind})}function fe(e){return t.jsx("span",{className:"font-medium",children:e.name})}function _e(e){return e.id}function be(e){return t.jsx("option",{value:e,children:e},e)}function ke(e){return t.jsxs(r,{className:"text-muted-foreground gap-1.5 font-normal",children:[t.jsx(U,{name:"filters[kinds][]",value:e}),e]},e)}function ve(e){return t.jsxs(r,{className:"text-muted-foreground gap-1.5 font-normal",children:[t.jsx(U,{name:"filters[environment_ids][]",value:String(e.id)}),e.name]},e.id)}function ye(e){return t.jsxs("option",{value:e.id,children:[e.name," (",e.kind,")"]},e.id)}function Ne(e){return t.jsx("option",{value:e,children:Q[e]??e},e)}function we(e){return t.jsx("option",{value:e.id,children:e.name},e.id)}function Se(){return o.post(Y())}function Ce(e){return t.jsx("option",{value:e,children:e},e)}export{Ke as default};
1
+ import{c as G,r as D,at as T,aL as J,j as t,H as V,F as z,e as o,aM as Y,aN as R,aO as Z,aP as ee,aQ as te}from"./inertia-CqnzqPVD.js";import{I as O}from"./input-error-ByT28UdP.js";import{D as E}from"./data-table-CVKR2wkq.js";import{R as se}from"./relative-time-DQ4kjowZ.js";import{B as K}from"./badge-Dv7I-ebP.js";import{B as i}from"./app-wordmark-Bt6XqURo.js";import{b as H,c as B,C as M,a as W}from"./card-DqdEEKcJ.js";import{C as U}from"./checkbox-DKbThbxr.js";import{L as r,I as l}from"./label-1nSzpSB6.js";import{A as ne}from"./app-layout-2xAKndVD.js";import"./chart-hover-2yZG3w2u.js";import"./empty-state-Bn48Gplm.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./format-B9SDkrWj.js";const re={slack:"Slack hook id — incoming webhooks do not expose their channel"},$={slack:{key:"webhook_url",label:"New Slack incoming webhook URL"},webhook:{key:"secret",label:"New signing secret"},linear:{key:"api_key",label:"New Linear API key"}};function ie(e){const s=$[e.kind];if(!s)return;const n=window.prompt(s.label)?.trim();n&&o.patch(R(e.id),{enabled:!0,settings:{[s.key]:n}})}const Q={new_issue:"New issue",regressed_issue:"Regressed or reopened issue",resolved_issue:"Issue resolved",ignored_issue:"Issue ignored",assigned_issue:"Issue assigned",threshold:"Threshold exceeded",quota:"Quota reached"};function ae(e,s){const n=e.filters??{};return[...(s[e.application_id]??[]).filter(a=>(n.environment_ids??[]).includes(a.id)).map(a=>a.name),...n.kinds??[],n.min_priority?`>= ${n.min_priority}`:null,n.title_pattern].filter(Boolean).join(" · ")}function Ke(e){const s=G.c(40),[n,q]=D.useState("slack"),[a,X]=D.useState(e.application_options[0]?.id);let j,f;s[0]===Symbol.for("react.memo_cache_sentinel")?(j=[{title:"Integrations",href:T()}],f=t.jsx(V,{title:"Integrations"}),s[0]=j,s[1]=f):(j=s[0],f=s[1]);let _;s[2]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsxs("div",{children:[t.jsx("h1",{className:"text-xl font-semibold",children:"Integrations and alerts"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"Where alerts go, and which events trigger them per application."})]}),s[2]=_):_=s[2];let b;s[3]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(H,{children:t.jsx(B,{className:"text-sm",children:"Add integration"})}),s[3]=b):b=s[3];let k;s[4]===Symbol.for("react.memo_cache_sentinel")?(k=T(),s[4]=k):k=s[4];let d;s[5]!==n||s[6]!==e.kinds||s[7]!==e.linear_oauth_enabled?(d=t.jsxs(M,{children:[b,t.jsx(W,{children:t.jsx(z,{method:"post",action:k,className:"space-y-3",resetOnSuccess:!0,children:g=>{const{errors:L,processing:A}=g;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"kind",children:"Kind"}),t.jsx("select",{id:"kind",name:"kind",value:n,onChange:P=>q(P.target.value),className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:e.kinds.map(Ce)})]}),!(n==="linear"&&e.linear_oauth_enabled)&&t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"name",children:"Name"}),t.jsx(l,{id:"name",name:"name",required:!0,placeholder:"#alerts"}),t.jsx(O,{messages:L.name})]}),n==="email"&&t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"to",children:"Send to"}),t.jsx(l,{id:"to",name:"settings[to]",type:"email",required:!0})]}),n==="slack"&&t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"webhook_url",children:"Incoming webhook URL"}),t.jsx(l,{id:"webhook_url",name:"settings[webhook_url]",type:"url",required:!0,placeholder:"https://hooks.slack.com/services/…"})]}),n==="webhook"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"url",children:"URL"}),t.jsx(l,{id:"url",name:"settings[url]",type:"url",required:!0})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"secret",children:"Signing secret (optional)"}),t.jsx(l,{id:"secret",name:"settings[secret]"}),t.jsx("p",{className:"text-muted-foreground text-xs",children:"Sent as X-Railwatch-Signature: sha256=HMAC(body)."})]})]}),n==="linear"&&e.linear_oauth_enabled&&t.jsxs("div",{className:"bg-muted/40 space-y-2 rounded-md border p-3",children:[t.jsx("p",{className:"text-sm",children:"Linear uses OAuth to discover your workspace and teams. Connect your workspace, then select a team."}),t.jsx("p",{className:"text-muted-foreground text-xs",children:"Railwatch names the integration from the Linear workspace."})]}),n==="linear"&&!e.linear_oauth_enabled&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"api_key",children:"API key"}),t.jsx(l,{id:"api_key",name:"settings[api_key]",required:!0})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"team_id",children:"Team ID"}),t.jsx(l,{id:"team_id",name:"settings[team_id]",required:!0})]})]}),t.jsx(O,{messages:L.settings}),n==="linear"&&e.linear_oauth_enabled?t.jsx(i,{type:"button",onClick:Se,children:"Connect Linear workspace"}):t.jsx(i,{disabled:A,children:"Add"})]})}})})]}),s[5]=n,s[6]=e.kinds,s[7]=e.linear_oauth_enabled,s[8]=d):d=s[8];let v;s[9]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(H,{children:t.jsx(B,{className:"text-sm",children:"Add alert rule"})}),s[9]=v):v=s[9];let y;s[10]===Symbol.for("react.memo_cache_sentinel")?(y=J(),s[10]=y):y=s[10];let c;s[11]!==a||s[12]!==e.application_options||s[13]!==e.environment_options||s[14]!==e.events||s[15]!==e.integrations||s[16]!==e.issue_kinds||s[17]!==e.priorities?(c=t.jsxs(M,{children:[v,t.jsx(W,{children:t.jsx(z,{method:"post",action:y,className:"space-y-3",children:g=>{const{errors:L,processing:A}=g;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"application_id",children:"Application"}),t.jsx("select",{id:"application_id",name:"application_id",value:a??"",onChange:P=>X(Number(P.target.value)),className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:e.application_options.map(we)})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"event",children:"When"}),t.jsx("select",{id:"event",name:"event",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:e.events.map(Ne)})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"integration_id",children:"Notify"}),t.jsx("select",{id:"integration_id",name:"integration_id",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:e.integrations.map(ye)})]}),t.jsxs("div",{className:"space-y-3 border-t pt-3",children:[t.jsx("p",{className:"label-caps",children:"Only notify when (optional)"}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx("span",{className:"text-sm",children:"Environments"}),t.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-2",children:(e.environment_options[a??0]??[]).map(ve)})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx("span",{className:"text-sm",children:"Issue kinds"}),t.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-2",children:e.issue_kinds.map(ke)})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"min_priority",children:"Minimum priority"}),t.jsxs("select",{id:"min_priority",name:"filters[min_priority]",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:[t.jsx("option",{value:"",children:"any"}),e.priorities.map(be)]})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"title_pattern",children:"Title matches"}),t.jsx(l,{id:"title_pattern",name:"filters[title_pattern]",placeholder:"timeout, or /Redis.*timeout/"}),t.jsx("p",{className:"text-muted-foreground text-xs",children:"Case-insensitive substring, or a regular expression when wrapped in slashes."})]})]}),t.jsx(O,{messages:L.event}),t.jsx(i,{disabled:A||e.integrations.length===0,children:"Add rule"})]})}})})]}),s[11]=a,s[12]=e.application_options,s[13]=e.environment_options,s[14]=e.events,s[15]=e.integrations,s[16]=e.issue_kinds,s[17]=e.priorities,s[18]=c):c=s[18];let m;s[19]!==d||s[20]!==c?(m=t.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[d,c]}),s[19]=d,s[20]=c,s[21]=m):m=s[21];let N;s[22]===Symbol.for("react.memo_cache_sentinel")?(N=[{key:"n",header:"Integration",cell:fe},{key:"k",header:"Kind",cell:je},{key:"s",header:"Destination",cell:ge},{key:"d",header:"Health",hideOnMobile:!0,cell:xe},{key:"e",header:"",cell:pe},{key:"x",header:"",align:"right",cell:he}],s[22]=N):N=s[22];let h;s[23]!==e.integrations?(h=t.jsx(E,{rows:e.integrations,rowKey:_e,empty:"No integrations yet.",columns:N}),s[23]=e.integrations,s[24]=h):h=s[24];let w,S,C;s[25]===Symbol.for("react.memo_cache_sentinel")?(w={key:"a",header:"Application",cell:ce},S={key:"e",header:"When",cell:de},C={key:"i",header:"Notify",cell:oe},s[25]=w,s[26]=S,s[27]=C):(w=s[25],S=s[26],C=s[27]);let u;s[28]!==e.environment_options?(u={key:"f",header:"Only when",hideOnMobile:!0,cell:g=>t.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:ae(g,e.environment_options)||"—"})},s[28]=e.environment_options,s[29]=u):u=s[29];let I;s[30]===Symbol.for("react.memo_cache_sentinel")?(I={key:"x",header:"",align:"right",cell:le},s[30]=I):I=s[30];let p;s[31]!==u?(p=[w,S,C,u,I],s[31]=u,s[32]=p):p=s[32];let x;s[33]!==e.alert_rules||s[34]!==p?(x=t.jsx(E,{rows:e.alert_rules,rowKey:me,empty:"No alert rules yet.",columns:p}),s[33]=e.alert_rules,s[34]=p,s[35]=x):x=s[35];let F;return s[36]!==h||s[37]!==x||s[38]!==m?(F=t.jsxs(ne,{breadcrumbs:j,children:[f,t.jsxs("div",{className:"flex flex-1 flex-col gap-6 p-4 md:p-6",children:[_,m,h,x]})]}),s[36]=h,s[37]=x,s[38]=m,s[39]=F):F=s[39],F}function le(e){return t.jsx(i,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>o.delete(te(e.id)),children:"Remove"})}function oe(e){return e.integration}function de(e){return Q[e.event]??e.event}function ce(e){return e.application}function me(e){return e.id}function he(e){return t.jsxs("span",{className:"flex flex-wrap justify-end gap-1",children:[e.kind==="linear"&&(e.settings.team_options?.length??0)>0&&t.jsxs("select",{"aria-label":`Linear team for ${e.name}`,value:e.settings.team_id??"",onChange:s=>o.patch(R(e.id),{enabled:!0,settings:{team_id:s.target.value}}),className:"border-input h-8 rounded-md border bg-transparent px-2 text-xs",children:[t.jsx("option",{value:"",children:"Select team…"}),e.settings.team_options?.map(ue)]}),t.jsx(i,{size:"sm",variant:"ghost",onClick:()=>o.post(Z(e.id),{},{preserveScroll:!0}),children:"Send test"}),$[e.kind]&&!(e.kind==="linear"&&e.settings.oauth)&&t.jsx(i,{size:"sm",variant:"ghost",onClick:()=>ie(e),children:"Rotate"}),e.kind==="linear"&&e.settings.oauth&&e.settings.credential&&t.jsx(i,{size:"sm",variant:"ghost",onClick:()=>o.delete(ee(e.id)),children:"Disconnect"}),t.jsx(i,{size:"sm",variant:"ghost",onClick:()=>o.patch(R(e.id),{enabled:!e.enabled}),children:e.enabled?"Disable":"Enable"}),t.jsx(i,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>o.delete(R(e.id)),children:"Remove"})]})}function ue(e){return t.jsxs("option",{value:e.id,children:[e.name," (",e.key,")"]},e.id)}function pe(e){return e.enabled?null:t.jsx(K,{variant:"secondary",children:"disabled"})}function xe(e){return t.jsxs("span",{className:"flex flex-col gap-0.5",children:[t.jsxs("span",{className:"text-muted-foreground text-xs",children:[e.kind==="linear"?"Last sync ":"Last delivery ",t.jsx(se,{iso:e.kind==="linear"?e.last_synced_at:e.last_delivered_at})]}),e.kind==="linear"&&e.webhook_health&&t.jsxs("span",{className:"text-muted-foreground text-xs",children:["Webhooks: ",e.webhook_health.pending," pending ·"," ",e.webhook_health.failed," failed"]}),e.last_error&&t.jsx("span",{className:"text-destructive max-w-64 truncate text-xs",title:e.last_error,children:e.last_error})]})}function ge(e){return t.jsx("span",{className:"font-mono text-xs",title:re[e.kind],children:e.destination??"—"})}function je(e){return t.jsx(K,{variant:"outline",children:e.kind})}function fe(e){return t.jsx("span",{className:"font-medium",children:e.name})}function _e(e){return e.id}function be(e){return t.jsx("option",{value:e,children:e},e)}function ke(e){return t.jsxs(r,{className:"text-muted-foreground gap-1.5 font-normal",children:[t.jsx(U,{name:"filters[kinds][]",value:e}),e]},e)}function ve(e){return t.jsxs(r,{className:"text-muted-foreground gap-1.5 font-normal",children:[t.jsx(U,{name:"filters[environment_ids][]",value:String(e.id)}),e.name]},e.id)}function ye(e){return t.jsxs("option",{value:e.id,children:[e.name," (",e.kind,")"]},e.id)}function Ne(e){return t.jsx("option",{value:e,children:Q[e]??e},e)}function we(e){return t.jsx("option",{value:e.id,children:e.name},e.id)}function Se(){return o.post(Y())}function Ce(e){return t.jsx("option",{value:e,children:e},e)}export{Ke 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-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
+ import{c as M,u as A,j as n,t as K,e as P,L as R}from"./inertia-CqnzqPVD.js";import{D as S}from"./data-table-CVKR2wkq.js";import{E as B}from"./empty-state-Bn48Gplm.js";import{P as $,E as D}from"./env-layout-CKLL8Ds7.js";import{B as L}from"./badge-Dv7I-ebP.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-2xAKndVD.js";import"./chart-hover-2yZG3w2u.js";import"./use-live-DWwLg1Nj.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./app-wordmark-Bt6XqURo.js";import"./index-C-EwH4lO.js";import"./segmented-C4oWE73o.js";import"./label-1nSzpSB6.js";import"./checkbox-DKbThbxr.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-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
+ 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-CqnzqPVD.js";import{V as re,D as ne}from"./chart-panel-CONkZcn9.js";import{D as J}from"./data-table-CVKR2wkq.js";import{E as Q}from"./empty-state-Bn48Gplm.js";import{F as le}from"./filter-bar-xcbJC93z.js";import{P as ie,E as ae}from"./env-layout-CKLL8Ds7.js";import{u as ce,P as me}from"./percentile-picker-BxIVblBw.js";import{S as ue}from"./sparkline-cell-CXCxXPWt.js";import{S as de}from"./status-badge-D0aylrM5.js";import{u as fe,C as pe}from"./use-clipboard-C1ApSwzA.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-2xAKndVD.js";import{C as _e}from"./index-C-EwH4lO.js";import"./series-chart-D6upsrSn.js";import"./chart-hover-2yZG3w2u.js";import"./chart-C4k7Ub9W.js";import"./badge-Dv7I-ebP.js";import"./app-wordmark-Bt6XqURo.js";import"./use-live-DWwLg1Nj.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./segmented-C4oWE73o.js";import"./label-1nSzpSB6.js";import"./checkbox-DKbThbxr.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 _,u as x,j as r,e as k,v as b}from"./inertia-DLew8ZNx.js";import{V as v}from"./chart-panel-DUQTz_C8.js";import{D as j}from"./data-table-BIlt7Rtm.js";import{E as S}from"./empty-state-C38il627.js";import{F as C}from"./filter-bar-CYog9Alp.js";import{P as E,E as w}from"./env-layout-REF7OM4q.js";import{S as M}from"./sparkline-cell-BON3qQUB.js";import{c as f,m as O}from"./format-B9SDkrWj.js";import{L as P}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"./checkbox-CmhMHWZO.js";function oe(t){const e=_.c(19),{environment:y,window:h}=x().props,u=y.application_id,d=y.id;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsx(E,{title:"Cache",description:"Rails.cache reads, writes, and hit rates by key shape (ids collapsed)."}),e[0]=n):n=e[0];let i;e[1]!==t.series?(i=r.jsx(v,{legend:"cache",label:"Cache ops",seriesLabel:"Cache ops",data:t.series}),e[1]=t.series,e[2]=i):i=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=[{key:"store",label:"Store"}],e[3]=l):l=e[3];let s;e[4]!==u||e[5]!==d||e[6]!==h?(s=g=>k.visit(b(u,d,{window:h,q:g||void 0}),{preserveState:!0}),e[4]=u,e[5]=d,e[6]=h,e[7]=s):s=e[7];let a;e[8]!==t.q||e[9]!==s?(a=r.jsx(C,{value:t.q,fields:l,onChange:s,placeholder:"store:MemoryStore"}),e[8]=t.q,e[9]=s,e[10]=a):a=e[10];let m,c;e[11]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(S,{icon:P,title:"No cache activity in this window",description:"Cache reads and writes instrumented by the gem appear here."}),c=[{key:"k",header:"Store · key",cell:F},{key:"trend",hideOnMobile:!0,header:"Trend",cell:D},{key:"n",header:"Ops",align:"right",cell:R},{key:"h",header:"Hits",align:"right",cell:N},{key:"m",hideOnMobile:!0,header:"Misses",align:"right",cell:H},{key:"r",hideOnMobile:!0,header:"Hit rate",align:"right",cell:L},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:q}],e[11]=m,e[12]=c):(m=e[11],c=e[12]);let o;e[13]!==t.keys?(o=r.jsx(j,{rows:t.keys,rowKey:T,empty:m,columns:c}),e[13]=t.keys,e[14]=o):o=e[14];let p;return e[15]!==i||e[16]!==a||e[17]!==o?(p=r.jsxs(w,{title:"Cache",children:[n,i,a,o]}),e[15]=i,e[16]=a,e[17]=o,e[18]=p):p=e[18],p}function q(t){return O(t.avg,3)}function L(t){return t.hit_rate==null?"–":r.jsxs("span",{className:t.hit_rate<50?"text-amber-600":"",children:[t.hit_rate,"%"]})}function H(t){return f(t.misses)}function N(t){return f(t.hits)}function R(t){return f(t.count)}function D(t){return r.jsx(M,{data:t.sparkline})}function F(t){return r.jsx("span",{className:"font-mono text-xs",children:t.key})}function T(t){return t.group_hash}export{oe as default};
1
+ import{c as _,u as x,j as r,e as k,v as b}from"./inertia-CqnzqPVD.js";import{V as v}from"./chart-panel-CONkZcn9.js";import{D as j}from"./data-table-CVKR2wkq.js";import{E as S}from"./empty-state-Bn48Gplm.js";import{F as C}from"./filter-bar-xcbJC93z.js";import{P as E,E as w}from"./env-layout-CKLL8Ds7.js";import{S as M}from"./sparkline-cell-CXCxXPWt.js";import{c as f,m as O}from"./format-B9SDkrWj.js";import{L as P}from"./app-layout-2xAKndVD.js";import"./series-chart-D6upsrSn.js";import"./chart-hover-2yZG3w2u.js";import"./chart-C4k7Ub9W.js";import"./badge-Dv7I-ebP.js";import"./app-wordmark-Bt6XqURo.js";import"./use-live-DWwLg1Nj.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./segmented-C4oWE73o.js";import"./label-1nSzpSB6.js";import"./checkbox-DKbThbxr.js";function oe(t){const e=_.c(19),{environment:y,window:h}=x().props,u=y.application_id,d=y.id;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsx(E,{title:"Cache",description:"Rails.cache reads, writes, and hit rates by key shape (ids collapsed)."}),e[0]=n):n=e[0];let i;e[1]!==t.series?(i=r.jsx(v,{legend:"cache",label:"Cache ops",seriesLabel:"Cache ops",data:t.series}),e[1]=t.series,e[2]=i):i=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=[{key:"store",label:"Store"}],e[3]=l):l=e[3];let s;e[4]!==u||e[5]!==d||e[6]!==h?(s=g=>k.visit(b(u,d,{window:h,q:g||void 0}),{preserveState:!0}),e[4]=u,e[5]=d,e[6]=h,e[7]=s):s=e[7];let a;e[8]!==t.q||e[9]!==s?(a=r.jsx(C,{value:t.q,fields:l,onChange:s,placeholder:"store:MemoryStore"}),e[8]=t.q,e[9]=s,e[10]=a):a=e[10];let m,c;e[11]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(S,{icon:P,title:"No cache activity in this window",description:"Cache reads and writes instrumented by the gem appear here."}),c=[{key:"k",header:"Store · key",cell:F},{key:"trend",hideOnMobile:!0,header:"Trend",cell:D},{key:"n",header:"Ops",align:"right",cell:R},{key:"h",header:"Hits",align:"right",cell:N},{key:"m",hideOnMobile:!0,header:"Misses",align:"right",cell:H},{key:"r",hideOnMobile:!0,header:"Hit rate",align:"right",cell:L},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:q}],e[11]=m,e[12]=c):(m=e[11],c=e[12]);let o;e[13]!==t.keys?(o=r.jsx(j,{rows:t.keys,rowKey:T,empty:m,columns:c}),e[13]=t.keys,e[14]=o):o=e[14];let p;return e[15]!==i||e[16]!==a||e[17]!==o?(p=r.jsxs(w,{title:"Cache",children:[n,i,a,o]}),e[15]=i,e[16]=a,e[17]=o,e[18]=p):p=e[18],p}function q(t){return O(t.avg,3)}function L(t){return t.hit_rate==null?"–":r.jsxs("span",{className:t.hit_rate<50?"text-amber-600":"",children:[t.hit_rate,"%"]})}function H(t){return f(t.misses)}function N(t){return f(t.hits)}function R(t){return f(t.count)}function D(t){return r.jsx(M,{data:t.sparkline})}function F(t){return r.jsx("span",{className:"font-mono text-xs",children:t.key})}function T(t){return t.group_hash}export{oe 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-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
+ 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-CqnzqPVD.js";import{C as Te}from"./chart-hover-2yZG3w2u.js";import{V as Ie}from"./chart-panel-CONkZcn9.js";import{C as Fe}from"./cursor-load-more-C1ylbqqL.js";import{D as xe}from"./data-table-CVKR2wkq.js";import{E as ke}from"./empty-state-Bn48Gplm.js";import{F as Ke}from"./filter-bar-xcbJC93z.js";import{O as ve}from"./origin-identity-M1YUPYS0.js";import{P as He,E as Le}from"./env-layout-CKLL8Ds7.js";import{u as De,P as Re}from"./percentile-picker-BxIVblBw.js";import{S as Be,W as we}from"./app-layout-2xAKndVD.js";import{S as Qe}from"./sparkline-cell-CXCxXPWt.js";import{S as ge}from"./status-badge-D0aylrM5.js";import{C as Se,a as qe,b as Oe,c as Ne}from"./card-DqdEEKcJ.js";import{m as he,c as Pe,w as Ve,p as We}from"./format-B9SDkrWj.js";import"./series-chart-D6upsrSn.js";import"./chart-C4k7Ub9W.js";import"./app-wordmark-Bt6XqURo.js";import"./badge-Dv7I-ebP.js";import"./tenant-path-C4aM_cO0.js";import"./use-live-DWwLg1Nj.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./segmented-C4oWE73o.js";import"./label-1nSzpSB6.js";import"./checkbox-DKbThbxr.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 j,u as v,j as n,w as E,e as b}from"./inertia-DLew8ZNx.js";import{D as k}from"./data-table-BIlt7Rtm.js";import{E as N}from"./empty-state-C38il627.js";import{P as S,E as C}from"./env-layout-REF7OM4q.js";import{S as M}from"./status-badge-BaUKP7Yo.js";import{c as O,m as y,w as R}from"./format-B9SDkrWj.js";import{T as P}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 le(t){const e=j.c(20),{environment:g}=v().props,x=g.application_id,_=g.id;let l;e[0]!==x||e[1]!==_?(l=a=>E(x,_,a.execution_id),e[0]=x,e[1]=_,e[2]=l):l=e[2];const m=l;let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(S,{title:"Commands",description:"Rake tasks and rails runner executions."}),e[3]=c):c=e[3];let u,d;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(N,{icon:P,title:"No commands ran in this window",description:"rails runner and console executions reported by the gem appear here."}),d=[{key:"n",header:"Command",cell:F},{key:"c",header:"Runs",align:"right",cell:q},{key:"f",hideOnMobile:!0,header:"Non-zero exit",align:"right",cell:$},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:W},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:L}],e[4]=u,e[5]=d):(u=e[4],d=e[5]);let r;e[6]!==t.commands?(r=n.jsx(k,{rows:t.commands,rowKey:G,empty:u,columns:d}),e[6]=t.commands,e[7]=r):r=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx("h2",{className:"text-sm font-semibold",children:"Recent runs"}),e[8]=p):p=e[8];let o,i;e[9]!==m?(o=a=>b.visit(m(a)),i={onOpen:(a,w)=>w?.newTab?window.open(m(a),"_blank"):b.visit(m(a))},e[9]=m,e[10]=o,e[11]=i):(o=e[10],i=e[11]);let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=[{key:"when",header:"When",cell:A},{key:"n",header:"Command",cell:z},{key:"x",hideOnMobile:!0,header:"Exit",cell:K},{key:"d",header:"Duration",align:"right",cell:H},{key:"s",hideOnMobile:!0,header:"Server",cell:D},{key:"ex",hideOnMobile:!0,header:"Exception",cell:T}],e[12]=h):h=e[12];let s;e[13]!==t.runs||e[14]!==o||e[15]!==i?(s=n.jsx(k,{rows:t.runs,rowKey:B,onRowClick:o,keyboardNav:i,columns:h}),e[13]=t.runs,e[14]=o,e[15]=i,e[16]=s):s=e[16];let f;return e[17]!==r||e[18]!==s?(f=n.jsxs(C,{title:"Commands",children:[c,r,p,s]}),e[17]=r,e[18]=s,e[19]=f):f=e[19],f}function T(t){return n.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function D(t){return n.jsx("span",{className:"font-mono text-xs",children:t.server})}function H(t){return y(t.duration)}function K(t){return n.jsx(M,{label:String(t.status??"?"),outcome:t.status?"failed":"processed"})}function z(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function A(t){return n.jsx("span",{className:"text-xs",children:R(t.occurred_at)})}function B(t){return t.execution_id}function L(t){return y(t.max)}function W(t){return y(t.avg)}function $(t){return t.errors}function q(t){return O(t.count)}function F(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function G(t){return t.group_hash}export{le as default};
1
+ import{c as j,u as v,j as n,w as E,e as b}from"./inertia-CqnzqPVD.js";import{D as k}from"./data-table-CVKR2wkq.js";import{E as N}from"./empty-state-Bn48Gplm.js";import{P as S,E as C}from"./env-layout-CKLL8Ds7.js";import{S as M}from"./status-badge-D0aylrM5.js";import{c as O,m as y,w as R}from"./format-B9SDkrWj.js";import{T as P}from"./app-layout-2xAKndVD.js";import"./chart-hover-2yZG3w2u.js";import"./badge-Dv7I-ebP.js";import"./app-wordmark-Bt6XqURo.js";import"./use-live-DWwLg1Nj.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./segmented-C4oWE73o.js";import"./label-1nSzpSB6.js";import"./checkbox-DKbThbxr.js";function le(t){const e=j.c(20),{environment:g}=v().props,x=g.application_id,_=g.id;let l;e[0]!==x||e[1]!==_?(l=a=>E(x,_,a.execution_id),e[0]=x,e[1]=_,e[2]=l):l=e[2];const m=l;let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(S,{title:"Commands",description:"Rake tasks and rails runner executions."}),e[3]=c):c=e[3];let u,d;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(N,{icon:P,title:"No commands ran in this window",description:"rails runner and console executions reported by the gem appear here."}),d=[{key:"n",header:"Command",cell:F},{key:"c",header:"Runs",align:"right",cell:q},{key:"f",hideOnMobile:!0,header:"Non-zero exit",align:"right",cell:$},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:W},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:L}],e[4]=u,e[5]=d):(u=e[4],d=e[5]);let r;e[6]!==t.commands?(r=n.jsx(k,{rows:t.commands,rowKey:G,empty:u,columns:d}),e[6]=t.commands,e[7]=r):r=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx("h2",{className:"text-sm font-semibold",children:"Recent runs"}),e[8]=p):p=e[8];let o,i;e[9]!==m?(o=a=>b.visit(m(a)),i={onOpen:(a,w)=>w?.newTab?window.open(m(a),"_blank"):b.visit(m(a))},e[9]=m,e[10]=o,e[11]=i):(o=e[10],i=e[11]);let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=[{key:"when",header:"When",cell:A},{key:"n",header:"Command",cell:z},{key:"x",hideOnMobile:!0,header:"Exit",cell:K},{key:"d",header:"Duration",align:"right",cell:H},{key:"s",hideOnMobile:!0,header:"Server",cell:D},{key:"ex",hideOnMobile:!0,header:"Exception",cell:T}],e[12]=h):h=e[12];let s;e[13]!==t.runs||e[14]!==o||e[15]!==i?(s=n.jsx(k,{rows:t.runs,rowKey:B,onRowClick:o,keyboardNav:i,columns:h}),e[13]=t.runs,e[14]=o,e[15]=i,e[16]=s):s=e[16];let f;return e[17]!==r||e[18]!==s?(f=n.jsxs(C,{title:"Commands",children:[c,r,p,s]}),e[17]=r,e[18]=s,e[19]=f):f=e[19],f}function T(t){return n.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function D(t){return n.jsx("span",{className:"font-mono text-xs",children:t.server})}function H(t){return y(t.duration)}function K(t){return n.jsx(M,{label:String(t.status??"?"),outcome:t.status?"failed":"processed"})}function z(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function A(t){return n.jsx("span",{className:"text-xs",children:R(t.occurred_at)})}function B(t){return t.execution_id}function L(t){return y(t.max)}function W(t){return y(t.avg)}function $(t){return t.errors}function q(t){return O(t.count)}function F(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function G(t){return t.group_hash}export{le as default};
@@ -1 +1 @@
1
- import{aC as te,c as ae,u as le,j as r,e as re,L as ie}from"./inertia-DLew8ZNx.js";import{C as oe}from"./chart-panel-DUQTz_C8.js";import{D as ne}from"./data-table-BIlt7Rtm.js";import{E as me}from"./empty-state-C38il627.js";import{E as ue,P as ce}from"./env-layout-REF7OM4q.js";import{b as fe}from"./series-chart-Xf49v9cv.js";import{S as Y,a as he}from"./stat-DFEyFxkO.js";import{c as a,w as de,m as ye}from"./format-B9SDkrWj.js";import{rate as Z,crashFreeTone as se}from"./release-health-4b3tivEf.js";import{X 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"./chart-BBeBkkNa.js";import"./arrow-up-C6PxDiY3.js";import"./checkbox-CmhMHWZO.js";function pe(s,e,K,q){const F=String(te(s,e,K,q)),[H,u]=F.split("?");return`${H.replace(/\./g,"%2E")}${u?`?${u}`:""}`}function Ue(s){const e=ae.c(98),{environment:K,window:q}=le().props,F=K.application_id,H=K.id;let u;e[0]!==F||e[1]!==H||e[2]!==q?(u=t=>pe(F,H,t.deploy,{window:q}),e[0]=F,e[1]=H,e[2]=q,e[3]=u):u=e[3];const l=u;let c,f,h,i,d,y,_,p,x,o,k,n;if(e[4]!==s.series||e[5]!==s.summary.crash_free_sessions||e[6]!==s.summary.crash_free_users||e[7]!==s.summary.releases||e[8]!==s.summary.sessions||e[9]!==s.summary.users){const t=s.series.reduce(Ce,{ok:0,errored:0,crashed:0});f=ue,k="Releases",e[22]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsx(ce,{title:"Releases",description:"Sessions per deploy, and how many of them ended without a crash. A release is the deploy stamped on every record the gem ships."}),e[22]=n):n=e[22];let m;e[23]!==s.summary.crash_free_sessions?(m=Z(s.summary.crash_free_sessions),e[23]=s.summary.crash_free_sessions,e[24]=m):m=e[24];let N;e[25]!==s.summary.crash_free_sessions?(N=se(s.summary.crash_free_sessions),e[25]=s.summary.crash_free_sessions,e[26]=N):N=e[26];let P;e[27]!==m||e[28]!==N?(P=r.jsx(Y,{label:"Crash-free sessions",value:m,tone:N}),e[27]=m,e[28]=N,e[29]=P):P=e[29];let T;e[30]!==s.summary.crash_free_users?(T=Z(s.summary.crash_free_users),e[30]=s.summary.crash_free_users,e[31]=T):T=e[31];let $;e[32]!==s.summary.crash_free_users?($=se(s.summary.crash_free_users),e[32]=s.summary.crash_free_users,e[33]=$):$=e[33];let A;e[34]!==T||e[35]!==$?(A=r.jsx(Y,{label:"Crash-free users",value:T,tone:$}),e[34]=T,e[35]=$,e[36]=A):A=e[36];let D;e[37]!==s.summary.sessions?(D=a(s.summary.sessions),e[37]=s.summary.sessions,e[38]=D):D=e[38];let W;e[39]!==s.summary.users?(W=a(s.summary.users),e[39]=s.summary.users,e[40]=W):W=e[40];const ee=`${W} users`;let O;e[41]!==D||e[42]!==ee?(O=r.jsx(Y,{label:"Sessions",value:D,hint:ee}),e[41]=D,e[42]=ee,e[43]=O):O=e[43];let L;e[44]!==s.summary.releases?(L=a(s.summary.releases),e[44]=s.summary.releases,e[45]=L):L=e[45];let M;e[46]!==L?(M=r.jsx(Y,{label:"Active releases",value:L}),e[46]=L,e[47]=M):M=e[47],e[48]!==P||e[49]!==A||e[50]!==O||e[51]!==M?(i=r.jsxs(he,{children:[P,A,O,M]}),e[48]=P,e[49]=A,e[50]=O,e[51]=M,e[52]=i):i=e[52],c=oe,x="Sessions by status",e[53]!==s.summary.sessions?(o=a(s.summary.sessions),e[53]=s.summary.sessions,e[54]=o):o=e[54],_={key:"ok",label:"ok",value:a(t.ok),color:"var(--ok)"},p={key:"errored",label:"errored",value:a(t.errored),color:"var(--warning)"},h="crashed",d="crashed",y=a(t.crashed),e[4]=s.series,e[5]=s.summary.crash_free_sessions,e[6]=s.summary.crash_free_users,e[7]=s.summary.releases,e[8]=s.summary.sessions,e[9]=s.summary.users,e[10]=c,e[11]=f,e[12]=h,e[13]=i,e[14]=d,e[15]=y,e[16]=_,e[17]=p,e[18]=x,e[19]=o,e[20]=k,e[21]=n}else c=e[10],f=e[11],h=e[12],i=e[13],d=e[14],y=e[15],_=e[16],p=e[17],x=e[18],o=e[19],k=e[20],n=e[21];let v;e[55]!==h||e[56]!==d||e[57]!==y?(v={key:h,label:d,value:y,color:"var(--danger)"},e[55]=h,e[56]=d,e[57]=y,e[58]=v):v=e[58];let b;e[59]!==v||e[60]!==_||e[61]!==p?(b=[_,p,v],e[59]=v,e[60]=_,e[61]=p,e[62]=b):b=e[62];let g;e[63]!==s.series?(g=r.jsx(fe,{data:s.series}),e[63]=s.series,e[64]=g):g=e[64];let w;e[65]!==c||e[66]!==b||e[67]!==g||e[68]!==x||e[69]!==o?(w=r.jsx(c,{label:x,value:o,legend:b,children:g}),e[65]=c,e[66]=b,e[67]=g,e[68]=x,e[69]=o,e[70]=w):w=e[70];let X;e[71]===Symbol.for("react.memo_cache_sentinel")?(X=r.jsx(me,{icon:_e,title:"No releases in this window",description:"A release appears once a deploy is recorded and the app reports sessions for it."}),e[71]=X):X=e[71];let j,S;e[72]!==l?(j=t=>re.visit(l(t)),S={onOpen:(t,m)=>m?.newTab?globalThis.window.open(l(t),"_blank"):re.visit(l(t))},e[72]=l,e[73]=j,e[74]=S):(j=e[73],S=e[74]);let C;e[75]!==l?(C={key:"ref",header:"Release",cell:t=>r.jsx(ie,{className:"font-mono text-xs hover:underline",href:l(t),children:t.ref})},e[75]=l,e[76]=C):C=e[76];let z,B,G,I,J,Q,U;e[77]===Symbol.for("react.memo_cache_sentinel")?(z={key:"at",header:"Deployed",cell:je},B={key:"adoption",header:"Adoption",align:"right",cell:we},G={key:"sessions",header:"Sessions",align:"right",cell:ge},I={key:"cfs",header:"Crash-free sessions",align:"right",cell:be},J={key:"cfu",hideOnMobile:!0,header:"Crash-free users",align:"right",cell:ve},Q={key:"issues",hideOnMobile:!0,header:"New issues",align:"right",cell:ke},U={key:"duration",hideOnMobile:!0,header:"Duration",align:"right",cell:xe},e[77]=z,e[78]=B,e[79]=G,e[80]=I,e[81]=J,e[82]=Q,e[83]=U):(z=e[77],B=e[78],G=e[79],I=e[80],J=e[81],Q=e[82],U=e[83]);let E;e[84]!==C?(E=[C,z,B,G,I,J,Q,U],e[84]=C,e[85]=E):E=e[85];let R;e[86]!==s.releases||e[87]!==j||e[88]!==S||e[89]!==E?(R=r.jsx(ne,{rows:s.releases,rowKey:Se,empty:X,onRowClick:j,keyboardNav:S,columns:E}),e[86]=s.releases,e[87]=j,e[88]=S,e[89]=E,e[90]=R):R=e[90];let V;return e[91]!==f||e[92]!==i||e[93]!==w||e[94]!==R||e[95]!==k||e[96]!==n?(V=r.jsxs(f,{title:k,children:[n,i,w,R]}),e[91]=f,e[92]=i,e[93]=w,e[94]=R,e[95]=k,e[96]=n,e[97]=V):V=e[97],V}function xe(s){return ye(s.avg_duration_ms)}function ke(s){return r.jsx("span",{className:s.new_issues?"text-destructive":"",children:a(s.new_issues)})}function ve(s){return Z(s.crash_free_users)}function be(s){return r.jsx("span",{className:se(s.crash_free_sessions)==="destructive"?"text-destructive font-semibold":"font-semibold",children:Z(s.crash_free_sessions)})}function ge(s){return a(s.sessions)}function we(s){return`${s.adoption}%`}function je(s){return r.jsx("span",{className:"text-xs",children:de(s.deployed_at)})}function Se(s){return s.deploy}function Ce(s,e){return{ok:s.ok+e.ok,errored:s.errored+e.errored,crashed:s.crashed+e.crashed}}export{Ue as default};
1
+ import{aC as te,c as ae,u as le,j as r,e as re,L as ie}from"./inertia-CqnzqPVD.js";import{C as oe}from"./chart-panel-CONkZcn9.js";import{D as ne}from"./data-table-CVKR2wkq.js";import{E as me}from"./empty-state-Bn48Gplm.js";import{E as ue,P as ce}from"./env-layout-CKLL8Ds7.js";import{b as fe}from"./series-chart-D6upsrSn.js";import{S as Y,a as he}from"./stat-BNEfE8X1.js";import{c as a,w as de,m as ye}from"./format-B9SDkrWj.js";import{rate as Z,crashFreeTone as se}from"./release-health-Cb1tMOOO.js";import{X as _e}from"./app-layout-2xAKndVD.js";import"./chart-hover-2yZG3w2u.js";import"./badge-Dv7I-ebP.js";import"./app-wordmark-Bt6XqURo.js";import"./use-live-DWwLg1Nj.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./segmented-C4oWE73o.js";import"./label-1nSzpSB6.js";import"./chart-C4k7Ub9W.js";import"./arrow-up-EmePsTKP.js";import"./checkbox-DKbThbxr.js";function pe(s,e,K,q){const F=String(te(s,e,K,q)),[H,u]=F.split("?");return`${H.replace(/\./g,"%2E")}${u?`?${u}`:""}`}function Ue(s){const e=ae.c(98),{environment:K,window:q}=le().props,F=K.application_id,H=K.id;let u;e[0]!==F||e[1]!==H||e[2]!==q?(u=t=>pe(F,H,t.deploy,{window:q}),e[0]=F,e[1]=H,e[2]=q,e[3]=u):u=e[3];const l=u;let c,f,h,i,d,y,_,p,x,o,k,n;if(e[4]!==s.series||e[5]!==s.summary.crash_free_sessions||e[6]!==s.summary.crash_free_users||e[7]!==s.summary.releases||e[8]!==s.summary.sessions||e[9]!==s.summary.users){const t=s.series.reduce(Ce,{ok:0,errored:0,crashed:0});f=ue,k="Releases",e[22]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsx(ce,{title:"Releases",description:"Sessions per deploy, and how many of them ended without a crash. A release is the deploy stamped on every record the gem ships."}),e[22]=n):n=e[22];let m;e[23]!==s.summary.crash_free_sessions?(m=Z(s.summary.crash_free_sessions),e[23]=s.summary.crash_free_sessions,e[24]=m):m=e[24];let N;e[25]!==s.summary.crash_free_sessions?(N=se(s.summary.crash_free_sessions),e[25]=s.summary.crash_free_sessions,e[26]=N):N=e[26];let P;e[27]!==m||e[28]!==N?(P=r.jsx(Y,{label:"Crash-free sessions",value:m,tone:N}),e[27]=m,e[28]=N,e[29]=P):P=e[29];let T;e[30]!==s.summary.crash_free_users?(T=Z(s.summary.crash_free_users),e[30]=s.summary.crash_free_users,e[31]=T):T=e[31];let $;e[32]!==s.summary.crash_free_users?($=se(s.summary.crash_free_users),e[32]=s.summary.crash_free_users,e[33]=$):$=e[33];let A;e[34]!==T||e[35]!==$?(A=r.jsx(Y,{label:"Crash-free users",value:T,tone:$}),e[34]=T,e[35]=$,e[36]=A):A=e[36];let D;e[37]!==s.summary.sessions?(D=a(s.summary.sessions),e[37]=s.summary.sessions,e[38]=D):D=e[38];let W;e[39]!==s.summary.users?(W=a(s.summary.users),e[39]=s.summary.users,e[40]=W):W=e[40];const ee=`${W} users`;let O;e[41]!==D||e[42]!==ee?(O=r.jsx(Y,{label:"Sessions",value:D,hint:ee}),e[41]=D,e[42]=ee,e[43]=O):O=e[43];let L;e[44]!==s.summary.releases?(L=a(s.summary.releases),e[44]=s.summary.releases,e[45]=L):L=e[45];let M;e[46]!==L?(M=r.jsx(Y,{label:"Active releases",value:L}),e[46]=L,e[47]=M):M=e[47],e[48]!==P||e[49]!==A||e[50]!==O||e[51]!==M?(i=r.jsxs(he,{children:[P,A,O,M]}),e[48]=P,e[49]=A,e[50]=O,e[51]=M,e[52]=i):i=e[52],c=oe,x="Sessions by status",e[53]!==s.summary.sessions?(o=a(s.summary.sessions),e[53]=s.summary.sessions,e[54]=o):o=e[54],_={key:"ok",label:"ok",value:a(t.ok),color:"var(--ok)"},p={key:"errored",label:"errored",value:a(t.errored),color:"var(--warning)"},h="crashed",d="crashed",y=a(t.crashed),e[4]=s.series,e[5]=s.summary.crash_free_sessions,e[6]=s.summary.crash_free_users,e[7]=s.summary.releases,e[8]=s.summary.sessions,e[9]=s.summary.users,e[10]=c,e[11]=f,e[12]=h,e[13]=i,e[14]=d,e[15]=y,e[16]=_,e[17]=p,e[18]=x,e[19]=o,e[20]=k,e[21]=n}else c=e[10],f=e[11],h=e[12],i=e[13],d=e[14],y=e[15],_=e[16],p=e[17],x=e[18],o=e[19],k=e[20],n=e[21];let v;e[55]!==h||e[56]!==d||e[57]!==y?(v={key:h,label:d,value:y,color:"var(--danger)"},e[55]=h,e[56]=d,e[57]=y,e[58]=v):v=e[58];let b;e[59]!==v||e[60]!==_||e[61]!==p?(b=[_,p,v],e[59]=v,e[60]=_,e[61]=p,e[62]=b):b=e[62];let g;e[63]!==s.series?(g=r.jsx(fe,{data:s.series}),e[63]=s.series,e[64]=g):g=e[64];let w;e[65]!==c||e[66]!==b||e[67]!==g||e[68]!==x||e[69]!==o?(w=r.jsx(c,{label:x,value:o,legend:b,children:g}),e[65]=c,e[66]=b,e[67]=g,e[68]=x,e[69]=o,e[70]=w):w=e[70];let X;e[71]===Symbol.for("react.memo_cache_sentinel")?(X=r.jsx(me,{icon:_e,title:"No releases in this window",description:"A release appears once a deploy is recorded and the app reports sessions for it."}),e[71]=X):X=e[71];let j,S;e[72]!==l?(j=t=>re.visit(l(t)),S={onOpen:(t,m)=>m?.newTab?globalThis.window.open(l(t),"_blank"):re.visit(l(t))},e[72]=l,e[73]=j,e[74]=S):(j=e[73],S=e[74]);let C;e[75]!==l?(C={key:"ref",header:"Release",cell:t=>r.jsx(ie,{className:"font-mono text-xs hover:underline",href:l(t),children:t.ref})},e[75]=l,e[76]=C):C=e[76];let z,B,G,I,J,Q,U;e[77]===Symbol.for("react.memo_cache_sentinel")?(z={key:"at",header:"Deployed",cell:je},B={key:"adoption",header:"Adoption",align:"right",cell:we},G={key:"sessions",header:"Sessions",align:"right",cell:ge},I={key:"cfs",header:"Crash-free sessions",align:"right",cell:be},J={key:"cfu",hideOnMobile:!0,header:"Crash-free users",align:"right",cell:ve},Q={key:"issues",hideOnMobile:!0,header:"New issues",align:"right",cell:ke},U={key:"duration",hideOnMobile:!0,header:"Duration",align:"right",cell:xe},e[77]=z,e[78]=B,e[79]=G,e[80]=I,e[81]=J,e[82]=Q,e[83]=U):(z=e[77],B=e[78],G=e[79],I=e[80],J=e[81],Q=e[82],U=e[83]);let E;e[84]!==C?(E=[C,z,B,G,I,J,Q,U],e[84]=C,e[85]=E):E=e[85];let R;e[86]!==s.releases||e[87]!==j||e[88]!==S||e[89]!==E?(R=r.jsx(ne,{rows:s.releases,rowKey:Se,empty:X,onRowClick:j,keyboardNav:S,columns:E}),e[86]=s.releases,e[87]=j,e[88]=S,e[89]=E,e[90]=R):R=e[90];let V;return e[91]!==f||e[92]!==i||e[93]!==w||e[94]!==R||e[95]!==k||e[96]!==n?(V=r.jsxs(f,{title:k,children:[n,i,w,R]}),e[91]=f,e[92]=i,e[93]=w,e[94]=R,e[95]=k,e[96]=n,e[97]=V):V=e[97],V}function xe(s){return ye(s.avg_duration_ms)}function ke(s){return r.jsx("span",{className:s.new_issues?"text-destructive":"",children:a(s.new_issues)})}function ve(s){return Z(s.crash_free_users)}function be(s){return r.jsx("span",{className:se(s.crash_free_sessions)==="destructive"?"text-destructive font-semibold":"font-semibold",children:Z(s.crash_free_sessions)})}function ge(s){return a(s.sessions)}function we(s){return`${s.adoption}%`}function je(s){return r.jsx("span",{className:"text-xs",children:de(s.deployed_at)})}function Se(s){return s.deploy}function Ce(s,e){return{ok:s.ok+e.ok,errored:s.errored+e.errored,crashed:s.crashed+e.crashed}}export{Ue as default};
@@ -1 +1 @@
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
+ import{c as te,u as se,j as s,e as Q,am as X}from"./inertia-CqnzqPVD.js";import{V as re,D as ie}from"./chart-panel-CONkZcn9.js";import{D as Z}from"./data-table-CVKR2wkq.js";import{E as le}from"./empty-state-Bn48Gplm.js";import{F as ne}from"./filter-bar-xcbJC93z.js";import{E as oe,P as ae}from"./env-layout-CKLL8Ds7.js";import{u as ce,P as me}from"./percentile-picker-BxIVblBw.js";import{S as G}from"./sort-header-CPM6fhXv.js";import{S as ue}from"./sparkline-cell-CXCxXPWt.js";import{a as de,S as pe}from"./stat-BNEfE8X1.js";import{S as fe}from"./status-badge-D0aylrM5.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-2xAKndVD.js";import"./series-chart-D6upsrSn.js";import"./chart-hover-2yZG3w2u.js";import"./chart-C4k7Ub9W.js";import"./badge-Dv7I-ebP.js";import"./app-wordmark-Bt6XqURo.js";import"./use-live-DWwLg1Nj.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./segmented-C4oWE73o.js";import"./label-1nSzpSB6.js";import"./arrow-up-EmePsTKP.js";import"./checkbox-DKbThbxr.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 le,u as ae,j as r,e as oe,ab as ne,a1 as ce,L as me}from"./inertia-DLew8ZNx.js";import{C as de}from"./chart-hover-B1M9jc0y.js";import{V as ue,D as fe}from"./chart-panel-DUQTz_C8.js";import{D as he}from"./data-table-BIlt7Rtm.js";import{E as xe}from"./empty-state-C38il627.js";import{F as pe}from"./filter-bar-CYog9Alp.js";import{P as ye,E as ge}from"./env-layout-REF7OM4q.js";import{u as ve,P as be}from"./percentile-picker-DfSx9yJO.js";import{S as ke,Z as je}from"./app-layout-DDyQa72H.js";import{S as M}from"./sort-header-Dcq9bzmo.js";import{S as _e}from"./sparkline-cell-BON3qQUB.js";import{m as re,c as Z,p as qe}from"./format-B9SDkrWj.js";import"./series-chart-Xf49v9cv.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"./checkbox-CmhMHWZO.js";import"./arrow-up-C6PxDiY3.js";function it(t){const e=le.c(95),{environment:se,window:a}=ae().props,{percentile:o}=ve(),n=se.application_id,c=se.id;let O;e[0]!==n||e[1]!==c||e[2]!==t.dir||e[3]!==t.q||e[4]!==t.sort||e[5]!==a?(O=s=>oe.visit(ne(n,c,{window:a,sort:t.sort,dir:t.dir,q:t.q||void 0,...s}),{preserveState:!0}),e[0]=n,e[1]=c,e[2]=t.dir,e[3]=t.q,e[4]=t.sort,e[5]=a,e[6]=O):O=e[6];const m=O;let H;e[7]!==t.dir||e[8]!==t.sort||e[9]!==m?(H=s=>m({sort:s,dir:t.sort===s&&t.dir==="desc"?"asc":"desc"}),e[7]=t.dir,e[8]=t.sort,e[9]=m,e[10]=H):H=e[10];const i=H;let N;e[11]!==n||e[12]!==c||e[13]!==a?(N=s=>ce(n,c,s.group_hash,{window:a}),e[11]=n,e[12]=c,e[13]=a,e[14]=N):N=e[14];const l=N;let D;e[15]===Symbol.for("react.memo_cache_sentinel")?(D=r.jsx(ye,{title:"Requests",description:"Every route your app served, with error rates and percentiles.",actions:r.jsxs(r.Fragment,{children:[r.jsx(ke,{page:"requests"}),r.jsx(be,{})]})}),e[15]=D):D=e[15];let L;e[16]===Symbol.for("react.memo_cache_sentinel")?(L={key:"method",label:"Method",options:["GET","POST","PUT","PATCH","DELETE"]},e[16]=L):L=e[16];let A;e[17]===Symbol.for("react.memo_cache_sentinel")?(A=[L,{key:"status",label:"Status",options:["2xx","3xx","4xx","5xx"]},{key:"route",label:"Route"}],e[17]=A):A=e[17];let d;e[18]!==m?(d=s=>m({q:s||void 0}),e[18]=m,e[19]=d):d=e[19];let u;e[20]!==t.q||e[21]!==d?(u=r.jsx(pe,{value:t.q,fields:A,onChange:d,placeholder:"method:GET status:5xx route:/widgets"}),e[20]=t.q,e[21]=d,e[22]=u):u=e[22];let f;e[23]!==t.deploys||e[24]!==t.series?(f=r.jsx(ue,{label:"Requests",data:t.series,deploys:t.deploys}),e[23]=t.deploys,e[24]=t.series,e[25]=f):f=e[25];let h;e[26]!==t.deploys||e[27]!==t.series||e[28]!==o?(h=r.jsx(fe,{label:"Latency",data:t.series,deploys:t.deploys,percentile:o}),e[26]=t.deploys,e[27]=t.series,e[28]=o,e[29]=h):h=e[29];let x;e[30]!==f||e[31]!==h?(x=r.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[f,h]}),e[30]=f,e[31]=h,e[32]=x):x=e[32];let F;e[33]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx(xe,{icon:je,title:"No requests in this window",description:"HTTP requests to your app appear here as they're reported."}),e[33]=F):F=e[33];let p;e[34]!==l?(p={onOpen:(s,ie)=>ie?.newTab?globalThis.window.open(l(s),"_blank"):oe.visit(l(s))},e[34]=l,e[35]=p):p=e[35];let y;e[36]!==l?(y={key:"name",header:"Route",grow:!0,cell:s=>r.jsx(me,{className:"font-mono text-xs hover:underline",href:l(s),title:s.name,children:s.name})},e[36]=l,e[37]=y):y=e[37];let K,V,B;e[38]===Symbol.for("react.memo_cache_sentinel")?(K={key:"trend",hideOnMobile:!0,header:"Trend",cell:Me},V={key:"ok",hideOnMobile:!0,header:"2xx",align:"right",cell:Re},B={key:"4xx",hideOnMobile:!0,header:"4xx",align:"right",cell:Ce},e[38]=K,e[39]=V,e[40]=B):(K=e[38],V=e[39],B=e[40]);const $=t.sort==="errors",z=t.dir==="asc"?"asc":"desc";let g;e[41]!==i?(g=()=>i("errors"),e[41]=i,e[42]=g):g=e[42];let v;e[43]!==$||e[44]!==z||e[45]!==g?(v={key:"5xx",header:r.jsx(M,{label:"5xx",active:$,dir:z,onClick:g}),align:"right",cell:Te},e[43]=$,e[44]=z,e[45]=g,e[46]=v):v=e[46];const I=t.sort==="count",J=t.dir==="asc"?"asc":"desc";let b;e[47]!==i?(b=()=>i("count"),e[47]=i,e[48]=b):b=e[48];let k;e[49]!==I||e[50]!==J||e[51]!==b?(k={key:"total",header:r.jsx(M,{label:"Total",active:I,dir:J,onClick:b}),align:"right",cell:we},e[49]=I,e[50]=J,e[51]=b,e[52]=k):k=e[52];let G;e[53]===Symbol.for("react.memo_cache_sentinel")?(G={key:"err",hideOnMobile:!0,header:"Error %",align:"right",cell:Ee},e[53]=G):G=e[53];const Q=t.sort==="avg",W=t.dir==="asc"?"asc":"desc";let j;e[54]!==i?(j=()=>i("avg"),e[54]=i,e[55]=j):j=e[55];let _;e[56]!==Q||e[57]!==W||e[58]!==j?(_={key:"avg",hideOnMobile:!0,header:r.jsx(M,{label:"Avg",active:Q,dir:W,onClick:j}),align:"right",cell:Se},e[56]=Q,e[57]=W,e[58]=j,e[59]=_):_=e[59];const X=t.sort===o,Y=t.dir==="asc"?"asc":"desc";let q;e[60]!==o||e[61]!==i?(q=()=>i(o),e[60]=o,e[61]=i,e[62]=q):q=e[62];let P;e[63]!==o||e[64]!==X||e[65]!==Y||e[66]!==q?(P=r.jsx(M,{label:o,active:X,dir:Y,onClick:q}),e[63]=o,e[64]=X,e[65]=Y,e[66]=q,e[67]=P):P=e[67];let S;e[68]!==o?(S=s=>r.jsx("span",{className:"font-semibold",children:re(s[o])}),e[68]=o,e[69]=S):S=e[69];let E;e[70]!==o||e[71]!==P||e[72]!==S?(E={key:o,header:P,align:"right",cell:S},e[70]=o,e[71]=P,e[72]=S,e[73]=E):E=e[73];const ee=t.sort==="max",te=t.dir==="asc"?"asc":"desc";let w;e[74]!==i?(w=()=>i("max"),e[74]=i,e[75]=w):w=e[75];let T;e[76]!==ee||e[77]!==te||e[78]!==w?(T={key:"max",hideOnMobile:!0,header:r.jsx(M,{label:"Max",active:ee,dir:te,onClick:w}),align:"right",cell:Pe},e[76]=ee,e[77]=te,e[78]=w,e[79]=T):T=e[79];let C;e[80]!==y||e[81]!==v||e[82]!==k||e[83]!==_||e[84]!==E||e[85]!==T?(C=[y,K,V,B,v,k,G,_,E,T],e[80]=y,e[81]=v,e[82]=k,e[83]=_,e[84]=E,e[85]=T,e[86]=C):C=e[86];let R;e[87]!==t.routes||e[88]!==p||e[89]!==C?(R=r.jsx(he,{rows:t.routes,rowKey:He,empty:F,hoverKey:Oe,keyboardNav:p,columns:C}),e[87]=t.routes,e[88]=p,e[89]=C,e[90]=R):R=e[90];let U;return e[91]!==x||e[92]!==R||e[93]!==u?(U=r.jsx(ge,{title:"Requests",children:r.jsxs(de,{children:[D,u,x,R]})}),e[91]=x,e[92]=R,e[93]=u,e[94]=U):U=e[94],U}function Pe(t){return re(t.max)}function Se(t){return re(t.avg)}function Ee(t){return qe(t.errors,t.count)}function we(t){return Z(t.count)}function Te(t){return r.jsx("span",{className:t.errors?"text-destructive":"",children:Z(t.errors)})}function Ce(t){return Z(t.client_errors)}function Re(t){return Z(t.count-t.errors-t.client_errors)}function Me(t){return r.jsx(_e,{data:t.sparkline,hoverKey:t.group_hash})}function Oe(t){return t.group_hash}function He(t){return t.group_hash}export{it as default};
1
+ import{c as le,u as ae,j as r,e as oe,ab as ne,a1 as ce,L as me}from"./inertia-CqnzqPVD.js";import{C as de}from"./chart-hover-2yZG3w2u.js";import{V as ue,D as fe}from"./chart-panel-CONkZcn9.js";import{D as he}from"./data-table-CVKR2wkq.js";import{E as xe}from"./empty-state-Bn48Gplm.js";import{F as pe}from"./filter-bar-xcbJC93z.js";import{P as ye,E as ge}from"./env-layout-CKLL8Ds7.js";import{u as ve,P as be}from"./percentile-picker-BxIVblBw.js";import{S as ke,Z as je}from"./app-layout-2xAKndVD.js";import{S as M}from"./sort-header-CPM6fhXv.js";import{S as _e}from"./sparkline-cell-CXCxXPWt.js";import{m as re,c as Z,p as qe}from"./format-B9SDkrWj.js";import"./series-chart-D6upsrSn.js";import"./chart-C4k7Ub9W.js";import"./badge-Dv7I-ebP.js";import"./app-wordmark-Bt6XqURo.js";import"./use-live-DWwLg1Nj.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./segmented-C4oWE73o.js";import"./label-1nSzpSB6.js";import"./checkbox-DKbThbxr.js";import"./arrow-up-EmePsTKP.js";function it(t){const e=le.c(95),{environment:se,window:a}=ae().props,{percentile:o}=ve(),n=se.application_id,c=se.id;let O;e[0]!==n||e[1]!==c||e[2]!==t.dir||e[3]!==t.q||e[4]!==t.sort||e[5]!==a?(O=s=>oe.visit(ne(n,c,{window:a,sort:t.sort,dir:t.dir,q:t.q||void 0,...s}),{preserveState:!0}),e[0]=n,e[1]=c,e[2]=t.dir,e[3]=t.q,e[4]=t.sort,e[5]=a,e[6]=O):O=e[6];const m=O;let H;e[7]!==t.dir||e[8]!==t.sort||e[9]!==m?(H=s=>m({sort:s,dir:t.sort===s&&t.dir==="desc"?"asc":"desc"}),e[7]=t.dir,e[8]=t.sort,e[9]=m,e[10]=H):H=e[10];const i=H;let N;e[11]!==n||e[12]!==c||e[13]!==a?(N=s=>ce(n,c,s.group_hash,{window:a}),e[11]=n,e[12]=c,e[13]=a,e[14]=N):N=e[14];const l=N;let D;e[15]===Symbol.for("react.memo_cache_sentinel")?(D=r.jsx(ye,{title:"Requests",description:"Every route your app served, with error rates and percentiles.",actions:r.jsxs(r.Fragment,{children:[r.jsx(ke,{page:"requests"}),r.jsx(be,{})]})}),e[15]=D):D=e[15];let L;e[16]===Symbol.for("react.memo_cache_sentinel")?(L={key:"method",label:"Method",options:["GET","POST","PUT","PATCH","DELETE"]},e[16]=L):L=e[16];let A;e[17]===Symbol.for("react.memo_cache_sentinel")?(A=[L,{key:"status",label:"Status",options:["2xx","3xx","4xx","5xx"]},{key:"route",label:"Route"}],e[17]=A):A=e[17];let d;e[18]!==m?(d=s=>m({q:s||void 0}),e[18]=m,e[19]=d):d=e[19];let u;e[20]!==t.q||e[21]!==d?(u=r.jsx(pe,{value:t.q,fields:A,onChange:d,placeholder:"method:GET status:5xx route:/widgets"}),e[20]=t.q,e[21]=d,e[22]=u):u=e[22];let f;e[23]!==t.deploys||e[24]!==t.series?(f=r.jsx(ue,{label:"Requests",data:t.series,deploys:t.deploys}),e[23]=t.deploys,e[24]=t.series,e[25]=f):f=e[25];let h;e[26]!==t.deploys||e[27]!==t.series||e[28]!==o?(h=r.jsx(fe,{label:"Latency",data:t.series,deploys:t.deploys,percentile:o}),e[26]=t.deploys,e[27]=t.series,e[28]=o,e[29]=h):h=e[29];let x;e[30]!==f||e[31]!==h?(x=r.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[f,h]}),e[30]=f,e[31]=h,e[32]=x):x=e[32];let F;e[33]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx(xe,{icon:je,title:"No requests in this window",description:"HTTP requests to your app appear here as they're reported."}),e[33]=F):F=e[33];let p;e[34]!==l?(p={onOpen:(s,ie)=>ie?.newTab?globalThis.window.open(l(s),"_blank"):oe.visit(l(s))},e[34]=l,e[35]=p):p=e[35];let y;e[36]!==l?(y={key:"name",header:"Route",grow:!0,cell:s=>r.jsx(me,{className:"font-mono text-xs hover:underline",href:l(s),title:s.name,children:s.name})},e[36]=l,e[37]=y):y=e[37];let K,V,B;e[38]===Symbol.for("react.memo_cache_sentinel")?(K={key:"trend",hideOnMobile:!0,header:"Trend",cell:Me},V={key:"ok",hideOnMobile:!0,header:"2xx",align:"right",cell:Re},B={key:"4xx",hideOnMobile:!0,header:"4xx",align:"right",cell:Ce},e[38]=K,e[39]=V,e[40]=B):(K=e[38],V=e[39],B=e[40]);const $=t.sort==="errors",z=t.dir==="asc"?"asc":"desc";let g;e[41]!==i?(g=()=>i("errors"),e[41]=i,e[42]=g):g=e[42];let v;e[43]!==$||e[44]!==z||e[45]!==g?(v={key:"5xx",header:r.jsx(M,{label:"5xx",active:$,dir:z,onClick:g}),align:"right",cell:Te},e[43]=$,e[44]=z,e[45]=g,e[46]=v):v=e[46];const I=t.sort==="count",J=t.dir==="asc"?"asc":"desc";let b;e[47]!==i?(b=()=>i("count"),e[47]=i,e[48]=b):b=e[48];let k;e[49]!==I||e[50]!==J||e[51]!==b?(k={key:"total",header:r.jsx(M,{label:"Total",active:I,dir:J,onClick:b}),align:"right",cell:we},e[49]=I,e[50]=J,e[51]=b,e[52]=k):k=e[52];let G;e[53]===Symbol.for("react.memo_cache_sentinel")?(G={key:"err",hideOnMobile:!0,header:"Error %",align:"right",cell:Ee},e[53]=G):G=e[53];const Q=t.sort==="avg",W=t.dir==="asc"?"asc":"desc";let j;e[54]!==i?(j=()=>i("avg"),e[54]=i,e[55]=j):j=e[55];let _;e[56]!==Q||e[57]!==W||e[58]!==j?(_={key:"avg",hideOnMobile:!0,header:r.jsx(M,{label:"Avg",active:Q,dir:W,onClick:j}),align:"right",cell:Se},e[56]=Q,e[57]=W,e[58]=j,e[59]=_):_=e[59];const X=t.sort===o,Y=t.dir==="asc"?"asc":"desc";let q;e[60]!==o||e[61]!==i?(q=()=>i(o),e[60]=o,e[61]=i,e[62]=q):q=e[62];let P;e[63]!==o||e[64]!==X||e[65]!==Y||e[66]!==q?(P=r.jsx(M,{label:o,active:X,dir:Y,onClick:q}),e[63]=o,e[64]=X,e[65]=Y,e[66]=q,e[67]=P):P=e[67];let S;e[68]!==o?(S=s=>r.jsx("span",{className:"font-semibold",children:re(s[o])}),e[68]=o,e[69]=S):S=e[69];let E;e[70]!==o||e[71]!==P||e[72]!==S?(E={key:o,header:P,align:"right",cell:S},e[70]=o,e[71]=P,e[72]=S,e[73]=E):E=e[73];const ee=t.sort==="max",te=t.dir==="asc"?"asc":"desc";let w;e[74]!==i?(w=()=>i("max"),e[74]=i,e[75]=w):w=e[75];let T;e[76]!==ee||e[77]!==te||e[78]!==w?(T={key:"max",hideOnMobile:!0,header:r.jsx(M,{label:"Max",active:ee,dir:te,onClick:w}),align:"right",cell:Pe},e[76]=ee,e[77]=te,e[78]=w,e[79]=T):T=e[79];let C;e[80]!==y||e[81]!==v||e[82]!==k||e[83]!==_||e[84]!==E||e[85]!==T?(C=[y,K,V,B,v,k,G,_,E,T],e[80]=y,e[81]=v,e[82]=k,e[83]=_,e[84]=E,e[85]=T,e[86]=C):C=e[86];let R;e[87]!==t.routes||e[88]!==p||e[89]!==C?(R=r.jsx(he,{rows:t.routes,rowKey:He,empty:F,hoverKey:Oe,keyboardNav:p,columns:C}),e[87]=t.routes,e[88]=p,e[89]=C,e[90]=R):R=e[90];let U;return e[91]!==x||e[92]!==R||e[93]!==u?(U=r.jsx(ge,{title:"Requests",children:r.jsxs(de,{children:[D,u,x,R]})}),e[91]=x,e[92]=R,e[93]=u,e[94]=U):U=e[94],U}function Pe(t){return re(t.max)}function Se(t){return re(t.avg)}function Ee(t){return qe(t.errors,t.count)}function we(t){return Z(t.count)}function Te(t){return r.jsx("span",{className:t.errors?"text-destructive":"",children:Z(t.errors)})}function Ce(t){return Z(t.client_errors)}function Re(t){return Z(t.count-t.errors-t.client_errors)}function Me(t){return r.jsx(_e,{data:t.sparkline,hoverKey:t.group_hash})}function Oe(t){return t.group_hash}function He(t){return t.group_hash}export{it as default};
@@ -1,2 +1,2 @@
1
- import{c as ee,u as ne,j as s,e as ie,_ as te,L as ae,t as re,r as ce,C as me}from"./inertia-DLew8ZNx.js";import{C as fe}from"./cursor-load-more-CRyuMeQb.js";import{D as de}from"./data-table-BIlt7Rtm.js";import{E as he}from"./empty-state-C38il627.js";import{p as Z,F as ue,s as se}from"./filter-bar-CYog9Alp.js";import{P as ge,E as xe}from"./env-layout-REF7OM4q.js";import{S as pe,F as be}from"./app-layout-DDyQa72H.js";import{a as le,S as ve}from"./segmented-BgbT3wZa.js";import{L as ye}from"./status-badge-BaUKP7Yo.js";import{c as oe,w as je}from"./format-B9SDkrWj.js";import"./app-wordmark-o9CODKP0.js";import"./chart-hover-B1M9jc0y.js";import"./badge-CAxXV8za.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./label-GWl7I6sf.js";import"./checkbox-CmhMHWZO.js";const ke="",_e=160;function we(t){const e=ee.c(18),{message:a,highlight:i,tags:o}=t,[n,m]=ce.useState(!1);let d,c;e[0]!==a||e[1]!==n?(d=a.length>_e||a.includes(`
1
+ import{c as ee,u as ne,j as s,e as ie,_ as te,L as ae,t as re,r as ce,C as me}from"./inertia-CqnzqPVD.js";import{C as fe}from"./cursor-load-more-C1ylbqqL.js";import{D as de}from"./data-table-CVKR2wkq.js";import{E as he}from"./empty-state-Bn48Gplm.js";import{p as Z,F as ue,s as se}from"./filter-bar-xcbJC93z.js";import{P as ge,E as xe}from"./env-layout-CKLL8Ds7.js";import{S as pe,F as be}from"./app-layout-2xAKndVD.js";import{a as le,S as ve}from"./segmented-C4oWE73o.js";import{L as ye}from"./status-badge-D0aylrM5.js";import{c as oe,w as je}from"./format-B9SDkrWj.js";import"./app-wordmark-Bt6XqURo.js";import"./chart-hover-2yZG3w2u.js";import"./badge-Dv7I-ebP.js";import"./use-live-DWwLg1Nj.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./label-1nSzpSB6.js";import"./checkbox-DKbThbxr.js";const ke="",_e=160;function we(t){const e=ee.c(18),{message:a,highlight:i,tags:o}=t,[n,m]=ce.useState(!1);let d,c;e[0]!==a||e[1]!==n?(d=a.length>_e||a.includes(`
2
2
  `),c=me("font-mono text-xs break-all whitespace-pre-wrap",d&&!n&&"line-clamp-3"),e[0]=a,e[1]=n,e[2]=d,e[3]=c):(d=e[2],c=e[3]);let f;e[4]!==i||e[5]!==a?(f=i?s.jsx(Se,{text:i}):a,e[4]=i,e[5]=a,e[6]=f):f=e[6];let h;e[7]!==o?(h=o.length>0&&s.jsxs("span",{className:"text-muted-foreground",children:[" [",o.join(", "),"]"]}),e[7]=o,e[8]=h):h=e[8];let u;e[9]!==c||e[10]!==f||e[11]!==h?(u=s.jsxs("span",{className:c,children:[f,h]}),e[9]=c,e[10]=f,e[11]=h,e[12]=u):u=e[12];const r=u;if(!d)return r;let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=()=>m(qe),e[13]=g):g=e[13];const p=n?"Collapse":"Expand";let x;return e[14]!==r||e[15]!==n||e[16]!==p?(x=s.jsx("button",{type:"button",onClick:g,"aria-expanded":n,className:"block w-full cursor-pointer text-left",title:p,children:r}),e[14]=r,e[15]=n,e[16]=p,e[17]=x):x=e[17],x}function qe(t){return!t}function Se(t){const e=ee.c(4),{text:a}=t;let i;e[0]!==a?(i=a.split(ke).map(Le),e[0]=a,e[1]=i):i=e[1];let o;return e[2]!==i?(o=s.jsx(s.Fragment,{children:i}),e[2]=i,e[3]=o):o=e[3],o}function Le(t,e){return e%2===1?s.jsx("mark",{className:"fts-mark",children:t},e):s.jsx("span",{children:t},e)}function Qe(t){const e=ee.c(81),{environment:a,window:i,range:o}=ne().props,n=a.application_id,m=a.id;let d;e[0]!==o?.from||e[1]!==o?.to||e[2]!==i?(d=i==="custom"?{from:o?.from,to:o?.to}:{window:i},e[0]=o?.from,e[1]=o?.to,e[2]=i,e[3]=d):d=e[3];const c=d;let f;e[4]!==o||e[5]!==c?(f=o?{from:o.from,to:o.to}:c,e[4]=o,e[5]=c,e[6]=f):f=e[6];const h=f;let u;e[7]!==n||e[8]!==m||e[9]!==c?(u=l=>ie.visit(te(n,m,{...c,q:l||void 0}),{only:["logs","pagination","highlights","counts","q"],preserveState:!0,preserveScroll:!0,reset:["logs","highlights"]}),e[7]=n,e[8]=m,e[9]=c,e[10]=u):u=e[10];const r=u;let g;e[11]!==n||e[12]!==h||e[13]!==m||e[14]!==t.pagination.limit||e[15]!==t.q?(g=l=>te(n,m,{...h,q:t.q||void 0,cursor:l,limit:t.pagination.limit}),e[11]=n,e[12]=h,e[13]=m,e[14]=t.pagination.limit,e[15]=t.q,e[16]=g):g=e[16];const p=g;let x;e[17]!==t.q?(x=Z(t.q),e[17]=t.q,e[18]=x):x=e[18];const R=x.fields.level;let T;e[19]!==t.q||e[20]!==r?(T=l=>{const M=Z(t.q),Y={...M.fields};l?Y.level=l:delete Y.level,r(se({text:M.text,fields:Y}))},e[19]=t.q,e[20]=r,e[21]=T):T=e[21];const b=T;let A;e[22]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ge,{title:"Logs",description:"Rails.logger lines and Rails.event structured events, linked to the request or job that wrote them.",actions:s.jsx(pe,{page:"logs"})}),e[22]=A):A=e[22];const Q=!R;let v;e[23]!==b?(v=()=>b(void 0),e[23]=b,e[24]=v):v=e[24];let y;e[25]!==Q||e[26]!==v?(y=s.jsx(le,{active:Q,onClick:v,children:"All"}),e[25]=Q,e[26]=v,e[27]=y):y=e[27];let B;e[28]===Symbol.for("react.memo_cache_sentinel")?(B=["debug","info","warn","error","fatal","event"],e[28]=B):B=e[28];let j;e[29]!==R||e[30]!==t.counts||e[31]!==b?(j=B.map(l=>s.jsxs(le,{active:R===l,onClick:()=>b(l),className:"gap-1.5",children:[l,s.jsx("span",{className:"opacity-60",children:oe(t.counts[l]??0)})]},l)),e[29]=R,e[30]=t.counts,e[31]=b,e[32]=j):j=e[32];let k;e[33]!==j||e[34]!==y?(k=s.jsx("div",{className:"-mx-3 [scrollbar-width:none] overflow-x-auto px-3 md:mx-0 md:px-0 [&::-webkit-scrollbar]:hidden",children:s.jsxs(ve,{className:"w-max",children:[y,j]})}),e[33]=j,e[34]=y,e[35]=k):k=e[35];let D,O,$,I;e[36]===Symbol.for("react.memo_cache_sentinel")?(D={key:"after",label:"After"},O={key:"before",label:"Before"},$={key:"user",label:"User"},I={key:"deploy",label:"Deploy"},e[36]=D,e[37]=O,e[38]=$,e[39]=I):(D=e[36],O=e[37],$=e[38],I=e[39]);let K;e[40]===Symbol.for("react.memo_cache_sentinel")?(K={key:"level",label:"Level",options:["debug","info","warn","error","fatal","event","unknown"]},e[40]=K):K=e[40];let z;e[41]===Symbol.for("react.memo_cache_sentinel")?(z=[D,O,$,I,K,{key:"kind",label:"Execution kind",options:["request","job","scheduled_task","command"]},{key:"source",label:"Source"},{key:"tenant",label:"Tenant"}],e[41]=z):z=e[41];let _;e[42]!==t.q||e[43]!==r?(_=s.jsx(ue,{value:t.q,fields:z,onChange:r,placeholder:"level:error kind:job source:app/jobs/sync_job.rb:12"}),e[42]=t.q,e[43]=r,e[44]=_):_=e[44];let w;e[45]!==t.logs.length?(w=oe(t.logs.length),e[45]=t.logs.length,e[46]=w):w=e[46];const X=t.logs.length===1?"line":"lines";let q;e[47]!==w||e[48]!==X?(q=s.jsxs("span",{className:"font-mono tabular-nums",children:[w," ",X]}),e[47]=w,e[48]=X,e[49]=q):q=e[49];let H;e[50]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx("span",{children:"Full-text search: quotes for phrases, -word to exclude, prefixes match"}),e[50]=H):H=e[50];let S;e[51]!==q?(S=s.jsxs("div",{className:"text-muted-foreground flex flex-wrap items-baseline gap-x-3 gap-y-1 text-xs",children:[q,H]}),e[51]=q,e[52]=S):S=e[52];let U,V,W;e[53]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(he,{icon:be,title:"No log lines match",signal:"caution",description:"Log lines are captured from your app's Rails logger."}),V={key:"when",header:"When",className:"w-40",cell:Ee},W={key:"lvl",header:"Level",cell:Ne},e[53]=U,e[54]=V,e[55]=W):(U=e[53],V=e[54],W=e[55]);let L;e[56]!==t.highlights?(L={key:"msg",header:"Message",grow:!0,className:"whitespace-normal",cell:l=>s.jsx(we,{message:l.message,highlight:t.highlights[l.id],tags:l.tags})},e[56]=t.highlights,e[57]=L):L=e[57];let N;e[58]!==n||e[59]!==m?(N={key:"in",hideOnMobile:!0,header:"In",cell:l=>l.execution_id?s.jsx(ae,{className:"font-mono text-xs hover:underline",href:re(n,m,l.execution_id),children:l.execution_preview}):null},e[58]=n,e[59]=m,e[60]=N):N=e[60];let E;e[61]!==t.q||e[62]!==r?(E={key:"t",hideOnMobile:!0,header:"Tenant",cell:l=>l.tenant?s.jsx("button",{className:"font-mono text-xs hover:underline",onClick:()=>{const M=Z(t.q);r(se({text:M.text,fields:{...M.fields,tenant:l.tenant}}))},children:l.tenant}):null},e[61]=t.q,e[62]=r,e[63]=E):E=e[63];let C;e[64]!==L||e[65]!==N||e[66]!==E?(C=[V,W,L,N,E],e[64]=L,e[65]=N,e[66]=E,e[67]=C):C=e[67];let P;e[68]!==t.logs||e[69]!==C?(P=s.jsx(de,{rows:t.logs,rowKey:Ce,empty:U,columns:C}),e[68]=t.logs,e[69]=C,e[70]=P):P=e[70];let G;e[71]===Symbol.for("react.memo_cache_sentinel")?(G=["logs","pagination","highlights"],e[71]=G):G=e[71];let F;e[72]!==p||e[73]!==t.pagination?(F=s.jsx(fe,{meta:t.pagination,href:p,only:G}),e[72]=p,e[73]=t.pagination,e[74]=F):F=e[74];let J;return e[75]!==k||e[76]!==_||e[77]!==S||e[78]!==P||e[79]!==F?(J=s.jsxs(xe,{title:"Logs",children:[A,k,_,S,P,F]}),e[75]=k,e[76]=_,e[77]=S,e[78]=P,e[79]=F,e[80]=J):J=e[80],J}function Ne(t){return s.jsx(ye,{level:t.level})}function Ee(t){return s.jsx("span",{className:"text-xs tabular-nums",children:je(t.occurred_at)})}function Ce(t){return t.id}export{Qe as default};
@@ -1 +1 @@
1
- import{c as D,x as L,j as t,H as O,L as S,g as q,e as k,m as B,o as R,i as z,h as H}from"./inertia-DLew8ZNx.js";import{D as M}from"./data-table-BIlt7Rtm.js";import{E as T}from"./empty-state-C38il627.js";import{L as $}from"./live-dot-D1n_BreY.js";import{S as I}from"./sparkline-cell-BON3qQUB.js";import{S as b,a as F}from"./stat-DFEyFxkO.js";import{B as C}from"./badge-CAxXV8za.js";import{B as E}from"./app-wordmark-o9CODKP0.js";import{C as y,a as N,b as A,c as K}from"./card-cAtqCxWl.js";import{O as U,A as W,P as G}from"./app-layout-DDyQa72H.js";import{c as w,a as P}from"./format-B9SDkrWj.js";import"./chart-hover-B1M9jc0y.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./series-chart-Xf49v9cv.js";import"./chart-BBeBkkNa.js";import"./use-live-D7xKz2ma.js";import"./arrow-up-C6PxDiY3.js";import"./checkbox-CmhMHWZO.js";import"./label-GWl7I6sf.js";function Ne(s){const e=D.c(32);let d,u;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=[{title:"Dashboard",href:L()}],u=t.jsx(O,{title:"Dashboard"}),e[0]=d,e[1]=u):(d=e[0],u=e[1]);let i;e[2]!==s.overview_apps.length?(i=t.jsx(b,{label:"Applications",value:s.overview_apps.length}),e[2]=s.overview_apps.length,e[3]=i):i=e[3];const g=s.recent_issues.length?"destructive":"success";let a;e[4]!==s.recent_issues.length||e[5]!==g?(a=t.jsx(b,{label:"Open issues",value:s.recent_issues.length,tone:g}),e[4]=s.recent_issues.length,e[5]=g,e[6]=a):a=e[6];let r;e[7]!==s.usage.events_this_month?(r=w(s.usage.events_this_month),e[7]=s.usage.events_this_month,e[8]=r):r=e[8];let h;e[9]!==s.usage.quota?(h=w(s.usage.quota),e[9]=s.usage.quota,e[10]=h):h=e[10];const v=`of ${h} on ${s.usage.plan}`;let n;e[11]!==r||e[12]!==v?(n=t.jsx(b,{label:"Events this month",value:r,hint:v}),e[11]=r,e[12]=v,e[13]=n):n=e[13];let l;e[14]!==i||e[15]!==a||e[16]!==n?(l=t.jsxs(F,{children:[i,a,n]}),e[14]=i,e[15]=a,e[16]=n,e[17]=l):l=e[17];let o;e[18]!==s.overview_apps?(o=s.overview_apps.map(te),e[18]=s.overview_apps,e[19]=o):o=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(y,{className:"border-dashed",children:t.jsx(N,{className:"flex h-full items-center justify-center pt-6",children:t.jsx(E,{variant:"outline",onClick:se,children:"Add application"})})}),e[20]=x):x=e[20];let c;e[21]!==o?(c=t.jsxs("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:[o,x]}),e[21]=o,e[22]=c):c=e[22];let f;e[23]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(A,{children:t.jsx(K,{children:"Recent open issues"})}),e[23]=f):f=e[23];let p;e[24]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(T,{icon:U,title:"No open issues",description:"Issues are opened when a request, job, or exception starts repeating."}),e[24]=p):p=e[24];let _;e[25]===Symbol.for("react.memo_cache_sentinel")?(_=[{key:"k",header:"Issue",cell:Y},{key:"t",header:"Title",cell:X},{key:"w",hideOnMobile:!0,header:"Where",cell:V},{key:"n",hideOnMobile:!0,header:"Events",align:"right",cell:Q},{key:"l",header:"Last",align:"right",cell:J}],e[25]=_):_=e[25];let m;e[26]!==s.recent_issues?(m=t.jsxs(y,{children:[f,t.jsx(N,{children:t.jsx(M,{rows:s.recent_issues,rowKey:ee,empty:p,onRowClick:Z,columns:_})})]}),e[26]=s.recent_issues,e[27]=m):m=e[27];let j;return e[28]!==c||e[29]!==m||e[30]!==l?(j=t.jsxs(W,{breadcrumbs:d,children:[u,t.jsxs("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6",children:[l,c,m]})]}),e[28]=c,e[29]=m,e[30]=l,e[31]=j):j=e[31],j}function J(s){return P(s.last_seen_at)}function Q(s){return w(s.occurrences)}function V(s){return t.jsxs("span",{className:"text-xs",children:[s.application," · ",s.environment]})}function X(s){return t.jsx("span",{className:"line-clamp-1 text-xs",children:s.title})}function Y(s){return t.jsx("span",{className:"font-mono text-xs font-semibold",children:s.key})}function Z(s){return k.visit(z(s.id))}function ee(s){return s.id}function se(){return k.visit(H())}function te(s){return t.jsxs(y,{children:[t.jsxs(A,{className:"flex-row items-center justify-between",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx("span",{className:"bg-muted flex size-8 shrink-0 items-center justify-center rounded-md font-mono text-xs font-semibold",children:s.name.slice(0,2).toUpperCase()}),t.jsxs("div",{className:"min-w-0",children:[t.jsx(S,{className:"block truncate text-sm font-semibold hover:underline",href:q(s.id),children:s.name}),t.jsx("div",{className:"label-caps",children:s.issue_prefix})]})]}),t.jsxs(E,{size:"sm",variant:"outline",className:"h-7 text-xs",onClick:()=>k.visit(B(s.id)),children:[t.jsx(G,{className:"size-3"}),"Environment"]})]}),t.jsx(N,{className:"space-y-2",children:s.environments.map(e=>t.jsxs(S,{href:R(s.id,e.id),className:"hover:bg-muted flex items-center justify-between rounded-md border px-3 py-2 text-sm",children:[t.jsxs("span",{className:"flex flex-1 items-center gap-2",children:[t.jsx($,{lastSeenAt:e.paused?null:e.last_seen_at,thresholdMs:6e5}),e.name]}),t.jsx(I,{data:e.request_sparkline}),t.jsxs("span",{className:"text-muted-foreground flex items-center gap-2 text-xs",children:[e.error_rate>0&&t.jsxs(C,{variant:"destructive",children:[(e.error_rate*100).toFixed(1),"% err"]}),e.open_issues>0&&t.jsx(C,{variant:"destructive",children:e.open_issues}),e.last_seen_at?P(e.last_seen_at):"no data"]})]},e.id))})]},s.id)}export{Ne as default};
1
+ import{c as D,x as L,j as t,H as O,L as S,g as q,e as k,m as B,o as R,i as z,h as H}from"./inertia-CqnzqPVD.js";import{D as M}from"./data-table-CVKR2wkq.js";import{E as T}from"./empty-state-Bn48Gplm.js";import{L as $}from"./live-dot-UdzOfzJb.js";import{S as I}from"./sparkline-cell-CXCxXPWt.js";import{S as b,a as F}from"./stat-BNEfE8X1.js";import{B as C}from"./badge-Dv7I-ebP.js";import{B as E}from"./app-wordmark-Bt6XqURo.js";import{C as y,a as N,b as A,c as K}from"./card-DqdEEKcJ.js";import{O as U,A as W,P as G}from"./app-layout-2xAKndVD.js";import{c as w,a as P}from"./format-B9SDkrWj.js";import"./chart-hover-2yZG3w2u.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./series-chart-D6upsrSn.js";import"./chart-C4k7Ub9W.js";import"./use-live-DWwLg1Nj.js";import"./arrow-up-EmePsTKP.js";import"./checkbox-DKbThbxr.js";import"./label-1nSzpSB6.js";function Ne(s){const e=D.c(32);let d,u;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=[{title:"Dashboard",href:L()}],u=t.jsx(O,{title:"Dashboard"}),e[0]=d,e[1]=u):(d=e[0],u=e[1]);let i;e[2]!==s.overview_apps.length?(i=t.jsx(b,{label:"Applications",value:s.overview_apps.length}),e[2]=s.overview_apps.length,e[3]=i):i=e[3];const g=s.recent_issues.length?"destructive":"success";let a;e[4]!==s.recent_issues.length||e[5]!==g?(a=t.jsx(b,{label:"Open issues",value:s.recent_issues.length,tone:g}),e[4]=s.recent_issues.length,e[5]=g,e[6]=a):a=e[6];let r;e[7]!==s.usage.events_this_month?(r=w(s.usage.events_this_month),e[7]=s.usage.events_this_month,e[8]=r):r=e[8];let h;e[9]!==s.usage.quota?(h=w(s.usage.quota),e[9]=s.usage.quota,e[10]=h):h=e[10];const v=`of ${h} on ${s.usage.plan}`;let n;e[11]!==r||e[12]!==v?(n=t.jsx(b,{label:"Events this month",value:r,hint:v}),e[11]=r,e[12]=v,e[13]=n):n=e[13];let l;e[14]!==i||e[15]!==a||e[16]!==n?(l=t.jsxs(F,{children:[i,a,n]}),e[14]=i,e[15]=a,e[16]=n,e[17]=l):l=e[17];let o;e[18]!==s.overview_apps?(o=s.overview_apps.map(te),e[18]=s.overview_apps,e[19]=o):o=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(y,{className:"border-dashed",children:t.jsx(N,{className:"flex h-full items-center justify-center pt-6",children:t.jsx(E,{variant:"outline",onClick:se,children:"Add application"})})}),e[20]=x):x=e[20];let c;e[21]!==o?(c=t.jsxs("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:[o,x]}),e[21]=o,e[22]=c):c=e[22];let f;e[23]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(A,{children:t.jsx(K,{children:"Recent open issues"})}),e[23]=f):f=e[23];let p;e[24]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(T,{icon:U,title:"No open issues",description:"Issues are opened when a request, job, or exception starts repeating."}),e[24]=p):p=e[24];let _;e[25]===Symbol.for("react.memo_cache_sentinel")?(_=[{key:"k",header:"Issue",cell:Y},{key:"t",header:"Title",cell:X},{key:"w",hideOnMobile:!0,header:"Where",cell:V},{key:"n",hideOnMobile:!0,header:"Events",align:"right",cell:Q},{key:"l",header:"Last",align:"right",cell:J}],e[25]=_):_=e[25];let m;e[26]!==s.recent_issues?(m=t.jsxs(y,{children:[f,t.jsx(N,{children:t.jsx(M,{rows:s.recent_issues,rowKey:ee,empty:p,onRowClick:Z,columns:_})})]}),e[26]=s.recent_issues,e[27]=m):m=e[27];let j;return e[28]!==c||e[29]!==m||e[30]!==l?(j=t.jsxs(W,{breadcrumbs:d,children:[u,t.jsxs("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6",children:[l,c,m]})]}),e[28]=c,e[29]=m,e[30]=l,e[31]=j):j=e[31],j}function J(s){return P(s.last_seen_at)}function Q(s){return w(s.occurrences)}function V(s){return t.jsxs("span",{className:"text-xs",children:[s.application," · ",s.environment]})}function X(s){return t.jsx("span",{className:"line-clamp-1 text-xs",children:s.title})}function Y(s){return t.jsx("span",{className:"font-mono text-xs font-semibold",children:s.key})}function Z(s){return k.visit(z(s.id))}function ee(s){return s.id}function se(){return k.visit(H())}function te(s){return t.jsxs(y,{children:[t.jsxs(A,{className:"flex-row items-center justify-between",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx("span",{className:"bg-muted flex size-8 shrink-0 items-center justify-center rounded-md font-mono text-xs font-semibold",children:s.name.slice(0,2).toUpperCase()}),t.jsxs("div",{className:"min-w-0",children:[t.jsx(S,{className:"block truncate text-sm font-semibold hover:underline",href:q(s.id),children:s.name}),t.jsx("div",{className:"label-caps",children:s.issue_prefix})]})]}),t.jsxs(E,{size:"sm",variant:"outline",className:"h-7 text-xs",onClick:()=>k.visit(B(s.id)),children:[t.jsx(G,{className:"size-3"}),"Environment"]})]}),t.jsx(N,{className:"space-y-2",children:s.environments.map(e=>t.jsxs(S,{href:R(s.id,e.id),className:"hover:bg-muted flex items-center justify-between rounded-md border px-3 py-2 text-sm",children:[t.jsxs("span",{className:"flex flex-1 items-center gap-2",children:[t.jsx($,{lastSeenAt:e.paused?null:e.last_seen_at,thresholdMs:6e5}),e.name]}),t.jsx(I,{data:e.request_sparkline}),t.jsxs("span",{className:"text-muted-foreground flex items-center gap-2 text-xs",children:[e.error_rate>0&&t.jsxs(C,{variant:"destructive",children:[(e.error_rate*100).toFixed(1),"% err"]}),e.open_issues>0&&t.jsx(C,{variant:"destructive",children:e.open_issues}),e.last_seen_at?P(e.last_seen_at):"no data"]})]},e.id))})]},s.id)}export{Ne 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-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};
1
+ import{c as p,u,j as s,H as x,L as f,a7 as h,aI as j}from"./inertia-CqnzqPVD.js";import{H as g,S as v}from"./layout-D7lE1Doo.js";import{B as y}from"./badge-Dv7I-ebP.js";import{B as S}from"./app-wordmark-Bt6XqURo.js";import{A as N}from"./app-layout-2xAKndVD.js";import"./separator-Ct2UcZ2x.js";import"./index-BDVShWMs.js";import"./live-dot-UdzOfzJb.js";import"./index-C-EwH4lO.js";import"./checkbox-DKbThbxr.js";import"./label-1nSzpSB6.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 +1 @@
1
- import{c as N,j as s,r as v,C as z,L as ae,M as ue,N as pe,u as fe,H as xe}from"./inertia-DLew8ZNx.js";import{C as oe,a as ie,b as ge}from"./card-cAtqCxWl.js";import{D as be,a as je,b as ye,c as we,L as ve,B as Ne}from"./live-dot-D1n_BreY.js";import{R as Se,M as _e,a as ke}from"./nav-DPxr1NNC.js";import{B as ne}from"./app-wordmark-o9CODKP0.js";import{H as Ce,a as Ee,b as $e}from"./copy-DaQMJWoT.js";import{S as Ae}from"./empty-state-C38il627.js";import{S as J,a as Re}from"./stat-DFEyFxkO.js";import{I as Te}from"./status-badge-BaUKP7Yo.js";import{T as Ie}from"./timeline-D5rJ0es2.js";import{C as Le}from"./index-umIAl-pL.js";import"./index-so4lRrRq.js";import"./use-live-D7xKz2ma.js";import"./arrow-up-C6PxDiY3.js";import"./badge-CAxXV8za.js";import"./format-B9SDkrWj.js";const Me='claude mcp add railwatch --transport http https://railwatch.rebulk.com/mcp --header "Authorization: Bearer $RAILWATCH_MCP_TOKEN"';function Pe(){const e=N.c(4);let t,o,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx("p",{className:"text-primary mb-2 font-mono text-[11px] tracking-[0.2em] uppercase",children:"MCP"}),o=s.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Works with your AI assistant"}),n=s.jsx("p",{className:"text-muted-foreground mt-2",children:"Railwatch speaks MCP, so Claude Code, Cursor, VS Code, and Zed can read your production data directly — issues, slow routes, query plans, stack profiles, logs, deploys. It ships prompts too: point one at an issue key and it pulls the occurrence, the timeline around it, and the deploy it started after. Writes are attributed to you, so a comment or a status change an assistant makes is signed in the issue's activity feed."}),e[0]=t,e[1]=o,e[2]=n):(t=e[0],o=e[1],n=e[2]);let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs("section",{className:"mx-auto max-w-2xl px-6 pb-16 text-center",children:[t,o,n,s.jsx(oe,{className:"mt-6 text-left",children:s.jsxs(ie,{children:[s.jsx("p",{className:"text-muted-foreground font-mono text-sm",children:"# one line, then ask it what broke today"}),s.jsx("p",{className:"mt-1 font-mono text-sm break-all",children:Me})]})})]}),e[3]=a):a=e[3],a}const De=[{title:"Requests",description:"Every route's throughput, latency percentiles, and status codes, down to a single request's waterfall.",image:"requests",alt:"The Requests page: throughput and latency charts over a table of every route with its 2xx, 4xx, 5xx counts, error rate, and p95"},{title:"Jobs & scheduled tasks",description:"Queue depth, retries, and run history for Active Job and your recurring tasks.",image:"jobs",alt:"The Jobs page: attempts per hour split into processed and failed, a queue table with average wait, and the most recent runs"},{title:"Queries & N+1s",description:"Slow queries and N+1 patterns grouped by source location, not buried in a log line.",image:"queries",alt:"The Queries page: two N+1 patterns with a suggested fix and the source line, above every SQL shape ranked by count and p95"},{title:"Exceptions → Issues",description:"Exceptions are grouped into Issues that track occurrences, assignees, and status over time.",image:"issues",alt:"An issue page: a resolved NoMethodError with the raising line of source highlighted, its breadcrumbs, and the alerts it sent"},{title:"Inertia visits",description:"Page-by-page render and payload size, so a slow visit is obvious before support tickets show up.",image:"visits",alt:"The Inertia visits page: p75 web vitals, visits per hour, and a table of components with visit count, LCP, INP, and p95"},{title:"Deploy comparison",description:"Every chart is annotated with deploys, so a regression points straight at the change that caused it.",image:"deploys",alt:"A deploy page: the commits it shipped, its crash-free rate, and request p95, error rate, and job failures for the hour before and after"},{title:"Alerts",description:"Threshold and issue alerts delivered where your team already works.",image:"alerts",alt:"The Alerts page: new, resolved, and threshold alerts delivered to Slack and email, newest first"},{title:"MCP / API",description:"A JSON-RPC MCP endpoint and a token-authenticated API, so your AI assistant can query production directly.",image:"mcp",alt:"A request page with its Copy as Markdown button: the same timeline an assistant reads over MCP"}];function Oe(){const e=N.c(9),[t,o]=v.useState(null);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:De.map(l=>{const{title:m,description:f,image:h,alt:g}=l;return s.jsxs("div",{className:"bg-card flex flex-col overflow-hidden rounded-lg border",children:[s.jsx("button",{type:"button",onClick:()=>o(l),className:"group relative aspect-[4/3] w-full cursor-zoom-in overflow-hidden border-b bg-[#020618] text-left","aria-label":`Open a full screenshot of ${m}`,children:s.jsx("img",{src:`/marketing/${h}.webp`,alt:g,loading:"lazy",width:1200,height:900,className:"h-full w-full object-cover object-top transition-transform duration-500 ease-out group-hover:scale-[1.03] motion-reduce:transition-none"})}),s.jsxs("div",{className:"space-y-1 px-4 py-3",children:[s.jsx("h3",{className:"text-sm font-semibold",children:m}),s.jsx("p",{className:"text-muted-foreground text-[13px] leading-snug",children:f})]})]},m)})}),e[0]=n):n=e[0];const a=t!==null;let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=l=>!l&&o(null),e[1]=c):c=e[1];let i;e[2]!==t?(i=t&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"border-b px-5 py-3",children:[s.jsx(be,{className:"text-base",children:t.title}),s.jsx(je,{children:t.description})]}),s.jsx("img",{src:`/marketing/${t.image}-full.webp`,alt:t.alt,width:1920,height:1200,className:"block max-h-[calc(92vh-4.5rem)] w-full object-contain object-top"})]}),e[2]=t,e[3]=i):i=e[3];let d;e[4]!==i?(d=s.jsx(ye,{className:"bg-background max-h-[92vh] w-[min(96vw,1400px)] gap-0 overflow-hidden p-0 sm:max-w-none",children:i}),e[4]=i,e[5]=d):d=e[5];let r;return e[6]!==a||e[7]!==d?(r=s.jsxs("section",{className:"mx-auto max-w-5xl px-6 pb-16",children:[n,s.jsx(we,{open:a,onOpenChange:c,children:d})]}),e[6]=a,e[7]=d,e[8]=r):r=e[8],r}const de=v.createContext("departed"),me=()=>v.useContext(de),qe=[["approaching",100],["braking",2300],["held",3300],["caution",6400],["clear",7200],["departed",8300]],ze=3200,Fe=1800,He={arriving:"clear",approaching:"clear",braking:"clear",held:"stop",caution:"caution",clear:"clear",departed:"clear"};function he(){const[e]=v.useState(Be);return e}function Be(){return typeof window<"u"&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches}function We(){const e=he(),[t,o]=v.useState(e?"arriving":"departed");return v.useEffect(()=>{if(!e)return;const n=qe.map(([a,c])=>setTimeout(()=>o(a),c));return()=>n.forEach(clearTimeout)},[]),{stage:t,animated:e}}const Ge=72,le=13.5,re=112,Ue=14;function Je(e,t,o,n){let a=0,[c,i]=e;for(let d=1;d<=64;d++){const r=d/64,l=1-r,m=l*l*l*e[0]+3*l*l*r*t[0]+3*l*r*r*o[0]+r*r*r*n[0],f=l*l*l*e[1]+3*l*l*r*t[1]+3*l*r*r*o[1]+r*r*r*n[1];a+=Math.hypot(m-c,f-i),c=m,i=f}return a}function Qe(e){const t=e.querySelector("h1"),o=e.querySelector("[data-hero-strip]");if(!t||!o)return null;const n=e.getBoundingClientRect(),a=t.getBoundingClientRect(),c=o.getBoundingClientRect(),i=n.width,d=n.height,r=i<768,l=i/2,m=r?10:Math.max(16,l-520),f=c.top-n.top+60,h=Ge,g=l+(r?120:220),u=[l-(r?30:60),a.top-n.top+a.height+4],b=[m,f-h],x=b[1]-u[1],y=[u[0]-x*.55,u[1]+x*.32],p=[m,b[1]-x*.42],w=Je(u,y,p,b),j=Math.PI*h/2,S=g-Ue-re/2,_=w+j+(S-(m+h)),C=w+j+(i+re+40-(m+h));return{w:i,h:d,p0:u,c1:y,c2:p,p3:b,xL:m,yL:f,r:h,cx:l,xSignal:g,yFadeTop:u[1],yFadeFull:u[1]+x*.7,stop:_,total:C}}function Q(e,t){const[o,n]=e.p0,a=e.r+t,c=t;return[`M ${o+c*.5} ${n-c*.85}`,`C ${e.c1[0]+c*.5} ${e.c1[1]-c*.85}, ${e.c2[0]-t} ${e.c2[1]}, ${e.p3[0]-t} ${e.p3[1]}`,`A ${a} ${a} 0 0 0 ${e.xL+e.r} ${e.yL+t}`,`L ${e.w+re+40} ${e.yL+t}`].join(" ")}const K=[{at:-41,w:30},{at:-4,w:34},{at:37,w:38}],Ke=K.length-1,Ve=1;function Xe(e){const t=N.c(14),{index:o,held:n,style:a}=e,c=K[o],i=-c.w/2;let d;t[0]!==c.w||t[1]!==i?(d=s.jsx("rect",{x:i,y:"-7",width:c.w,height:"14",rx:"3",fill:"currentColor"}),t[0]=c.w,t[1]=i,t[2]=d):d=t[2];let r;t[3]!==c.w||t[4]!==o?(r=o===Ke&&s.jsx("rect",{x:c.w/2-6,y:"-4",width:"4",height:"8",rx:"1",className:"text-primary",fill:"currentColor"}),t[3]=c.w,t[4]=o,t[5]=r):r=t[5];let l;t[6]!==n||t[7]!==o?(l=o===Ve&&s.jsx("rect",{x:"-5",y:"-25",width:"10",height:"10",transform:"rotate(45 0 -20)",className:z("transition-opacity duration-300",n?"opacity-100":"opacity-0"),fill:"rgb(239 68 68)"}),t[6]=n,t[7]=o,t[8]=l):l=t[8];let m;return t[9]!==a||t[10]!==d||t[11]!==r||t[12]!==l?(m=s.jsxs("g",{className:"text-foreground/85",style:a,children:[d,r,l]}),t[9]=a,t[10]=d,t[11]=r,t[12]=l,t[13]=m):m=t[13],m}function Ye(e){const t=N.c(3),{children:o}=e,{stage:n}=We();let a;return t[0]!==o||t[1]!==n?(a=s.jsx(de.Provider,{value:n,children:o}),t[0]=o,t[1]=n,t[2]=a):a=t[2],a}function Ze(e){const t=N.c(21),{children:o}=e,n=v.useRef(null),[a,c]=v.useState(null),i=me(),d=he(),r=v.useId();let l,m;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{const p=n.current;if(!p)return;const w=()=>c(Qe(p));w();const j=new ResizeObserver(w);return j.observe(p),()=>j.disconnect()},m=[],t[0]=l,t[1]=m):(l=t[0],m=t[1]),v.useEffect(l,m);const f=i==="held";let h,g,u;if(t[2]!==d||t[3]!==f||t[4]!==a||t[5]!==r||t[6]!==i){let p;if(a)e:switch(i){case"arriving":{p={distance:0};break e}case"approaching":case"braking":case"held":case"caution":{p={distance:a.stop,transition:`offset-distance ${ze}ms cubic-bezier(.45,.05,.25,1)`};break e}case"clear":{p={distance:a.stop+120,transition:"offset-distance 900ms ease-in-out"};break e}case"departed":p={distance:a.total,transition:`offset-distance ${Fe}ms cubic-bezier(.4,0,.8,.6)`}}const w=j=>a&&p?{offsetPath:`path("${Q(a,0)}")`,offsetRotate:"auto",offsetDistance:`${p.distance+K[j].at}px`,transition:p.transition}:void 0;h=n,g="relative overflow-hidden",u=a&&s.jsxs("svg",{"aria-hidden":!0,className:"text-foreground/30 pointer-events-none absolute inset-0 z-0 h-full w-full [mask-image:linear-gradient(to_right,black_86%,transparent)]",width:a.w,height:a.h,viewBox:`0 0 ${a.w} ${a.h}`,children:[s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:`${r}-fade`,gradientUnits:"userSpaceOnUse",x1:"0",y1:a.yFadeTop,x2:"0",y2:a.yFadeFull,children:[s.jsx("stop",{offset:"0",stopColor:"white",stopOpacity:"0"}),s.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"1"})]}),s.jsx("mask",{id:r,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:a.w,height:a.h,children:s.jsx("rect",{width:a.w,height:a.h,fill:`url(#${r}-fade)`})})]}),s.jsxs("g",{mask:`url(#${r})`,children:[s.jsx("path",{d:Q(a,0),fill:"none",stroke:"currentColor",strokeWidth:"30",strokeDasharray:"4 18"}),s.jsx("path",{d:Q(a,le/2),fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),s.jsx("path",{d:Q(a,-le/2),fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),d&&K.map((j,S)=>s.jsx(Xe,{index:S,held:f,style:w(S)},S))]})]}),t[2]=d,t[3]=f,t[4]=a,t[5]=r,t[6]=i,t[7]=h,t[8]=g,t[9]=u}else h=t[7],g=t[8],u=t[9];let b;t[10]!==o?(b=s.jsx("div",{className:"relative z-10",children:o}),t[10]=o,t[11]=b):b=t[11];let x;t[12]!==a||t[13]!==i?(x=a&&s.jsx(s.Fragment,{children:s.jsx("div",{className:"pointer-events-none absolute z-10 h-0 w-0",style:{left:a.xSignal,top:a.yL},"aria-hidden":!0,children:s.jsx(Ae,{aspect:He[i],className:"left-0 md:left-0"})})}),t[12]=a,t[13]=i,t[14]=x):x=t[14];let y;return t[15]!==h||t[16]!==g||t[17]!==u||t[18]!==b||t[19]!==x?(y=s.jsxs("div",{ref:h,className:g,children:[u,b,x]}),t[15]=h,t[16]=g,t[17]=u,t[18]=b,t[19]=x,t[20]=y):y=t[20],y}function et(e){const t=N.c(11),{signedIn:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("p",{className:"text-primary mb-5 flex items-baseline justify-center gap-3 font-mono text-[11px] tracking-[0.2em] uppercase",children:["Built by",s.jsx("a",{href:"https://rebulk.com",className:"text-foreground hover:text-primary transition-colors",children:s.jsx(Se,{className:"h-2.5 w-auto"})})]}),t[0]=n):n=t[0];let a,c;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs("h1",{className:"text-5xl font-black tracking-tight text-balance sm:text-6xl",children:[Ce,s.jsx("span",{className:"text-primary",children:Ee})]}),c=s.jsx("p",{className:"text-muted-foreground mx-auto mt-5 max-w-xl text-lg text-balance",children:$e}),t[1]=a,t[2]=c):(a=t[1],c=t[2]);let i;t[3]!==o?(i=o?s.jsx(ne,{asChild:!0,size:"lg",children:s.jsx(ae,{href:"/dashboard",children:"Open dashboard"})}):s.jsx(ne,{asChild:!0,size:"lg",children:s.jsx(ae,{href:ue(),children:"Get started"})}),t[3]=o,t[4]=i):i=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(ne,{asChild:!0,variant:"outline",size:"lg",children:s.jsx(ae,{href:pe(),children:"Read the docs"})}),t[5]=d):d=t[5];let r;t[6]!==i?(r=s.jsxs("div",{className:"mt-8 flex items-center justify-center gap-3",children:[i,d]}),t[6]=i,t[7]=r):r=t[7];let l;t[8]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"mt-6 h-32","data-hero-strip":!0}),t[8]=l):l=t[8];let m;return t[9]!==r?(m=s.jsx(Ze,{children:s.jsxs("section",{className:"relative mx-auto max-w-3xl px-6 pt-14 pb-0 text-center",children:[n,a,c,r,l]})}),t[9]=r,t[10]=m):m=t[10],m}const tt=[{comment:"# 1. add the gem",lines:["bundle add railwatch"]},{comment:"# 2. initializer, routes, Kamal hook, browser client, matchers",lines:["bin/rails generate railwatch:install --prompt-token --kamal-secrets"]},{comment:"# 3. check every piece is wired up",lines:["bin/rails railwatch:doctor"]},{comment:"# 4. connect your editor's assistant",lines:["bin/rails railwatch:mcp"]}];function st(){const e=N.c(4);let t,o,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx("p",{className:"text-primary mb-2 font-mono text-[11px] tracking-[0.2em] uppercase",children:"Install"}),o=s.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Five-minute install"}),n=s.jsx("p",{className:"text-muted-foreground mt-2",children:"One gem, one generator, no dashboard to build. The generator finishes by running the doctor, so you see a ✓ or a ✗ per check before you deploy."}),e[0]=t,e[1]=o,e[2]=n):(t=e[0],o=e[1],n=e[2]);let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs("section",{className:"mx-auto max-w-2xl px-6 pb-16 text-center",children:[t,o,n,s.jsx(oe,{className:"mt-6 text-left",children:s.jsx(ie,{className:"space-y-1 font-mono text-sm",children:tt.map(at)})})]}),e[3]=a):a=e[3],a}function at(e,t){return s.jsxs("div",{className:t>0?"pt-3":void 0,children:[s.jsx("p",{className:"text-muted-foreground",children:e.comment}),e.lines.map(nt)]},e.comment)}function nt(e){return s.jsx("p",{className:"break-all",children:e},e)}const ce=[{type:"query",id:1,offset:2,duration:4.2,label:"SELECT users",stage:"action",sql:'SELECT "users".* FROM "users" WHERE "users"."id" = ?'},{type:"cache_event",id:2,offset:8,duration:.4,label:"read widgets/42",stage:"action",detail:{op:"read",key:"widgets/42"}},{type:"query",id:3,offset:11,duration:12.8,label:"SELECT widgets",stage:"action",sql:'SELECT "widgets".* FROM "widgets" WHERE "widgets"."account_id" = ?'},{type:"outgoing_request",id:4,offset:26,duration:40.1,label:"GET api.stripe.com",stage:"action",detail:{method:"GET",url:"https://api.stripe.com/v1/charges",status:200}},{type:"view_render",id:5,offset:68,duration:6.5,label:"widgets/index.html.erb",stage:"render"},{type:"enqueued_job",id:6,offset:70,duration:null,label:"WidgetSyncJob",stage:"render"}],rt={type:"exception",id:7,offset:66.4,duration:null,label:"NoMethodError: undefined method `total' for nil",stage:"action",source:"app/controllers/widgets_controller.rb:31"};function ot(){const e=N.c(68),t=me(),o=t==="braking"||t==="held",n=t==="held";let a;e[0]!==n?(a=n?[...ce,rt]:ce,e[0]=n,e[1]=a):a=e[1];const c=a,i=t==="held"?"new":t==="caution"||t==="clear"?"resolved":null;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=new Date().toISOString(),e[2]=d):d=e[2];let r;e[3]!==o?(r=s.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium",children:[s.jsx(ve,{lastSeenAt:d,erroring:o}),"storefront · production"]}),e[3]=o,e[4]=r):r=e[4];const l=n?"bg-danger/15 text-danger":"bg-live/15 text-live";let m;e[5]!==l?(m=z("rounded px-1.5 py-0.5 font-semibold transition-colors duration-500",l),e[5]=l,e[6]=m):m=e[6];const f=n?"500":"200";let h;e[7]!==m||e[8]!==f?(h=s.jsxs("span",{className:"text-muted-foreground flex items-center gap-2 font-mono text-xs",children:["GET /widgets",s.jsx("span",{className:m,children:f})]}),e[7]=m,e[8]=f,e[9]=h):h=e[9];const g=i?"translate-x-0":"translate-x-[calc(100%+2px)]";let u;e[10]!==g?(u=z("bg-popover absolute right-0 flex items-center gap-2 border-l px-3 text-xs shadow-[-12px_0_16px_-8px_rgba(0,0,0,.5)] transition-transform duration-500 ease-out motion-reduce:transition-none","max-md:bottom-2.5 max-md:gap-1.5 max-md:rounded-l-md max-md:border-y max-md:px-2.5 max-md:py-1.5 max-md:text-[11px] md:inset-y-0",g),e[10]=g,e[11]=u):u=e[11];const b=i==="resolved"?"bg-live/15 text-live":"bg-danger/15 text-danger";let x;e[12]!==b?(x=z("flex size-6 shrink-0 items-center justify-center rounded-full",b),e[12]=b,e[13]=x):x=e[13];let y;e[14]!==i?(y=i==="resolved"?s.jsx(Le,{className:"size-3.5"}):s.jsx(Ne,{className:"size-3.5"}),e[14]=i,e[15]=y):y=e[15];let p;e[16]!==x||e[17]!==y?(p=s.jsx("span",{className:x,children:y}),e[16]=x,e[17]=y,e[18]=p):p=e[18];const w=i==="resolved"?"SF-142 resolved":"New issue SF-142";let j;e[19]!==w?(j=s.jsx("span",{className:"block leading-tight font-medium",children:w}),e[19]=w,e[20]=j):j=e[20];const S=i==="resolved"?"Slack #storefront-alerts · just now":"Sent to Slack #storefront-alerts";let _;e[21]!==S?(_=s.jsx("span",{className:"max-md:hidden",children:S}),e[21]=S,e[22]=_):_=e[22];let C;e[23]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("span",{className:"md:hidden",children:"Slack #storefront-alerts"}),e[23]=C):C=e[23];let E;e[24]!==_?(E=s.jsxs("span",{className:"text-muted-foreground block leading-tight",children:[_,C]}),e[24]=_,e[25]=E):E=e[25];let $;e[26]!==j||e[27]!==E?($=s.jsxs("span",{className:"min-w-0",children:[j,E]}),e[26]=j,e[27]=E,e[28]=$):$=e[28];let A;e[29]!==p||e[30]!==$||e[31]!==u?(A=s.jsxs("div",{"aria-live":"polite",className:u,children:[p,$]}),e[29]=p,e[30]=$,e[31]=u,e[32]=A):A=e[32];let R;e[33]!==r||e[34]!==A||e[35]!==h?(R=s.jsxs(ge,{className:"relative flex-row items-center justify-between overflow-hidden border-b pb-6 max-md:flex-wrap max-md:gap-y-3",children:[r,h,A]}),e[33]=r,e[34]=A,e[35]=h,e[36]=R):R=e[36];let F;e[37]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(J,{label:"p50 latency",value:"42ms",hint:"last 24h"}),e[37]=F):F=e[37];const V=n?"2.1%":"0.4%",X=n?"destructive":"success",Y=n?"3 of 143 requests":"last 24h";let T;e[38]!==V||e[39]!==X||e[40]!==Y?(T=s.jsx(J,{label:"error rate",value:V,tone:X,hint:Y}),e[38]=V,e[39]=X,e[40]=Y,e[41]=T):T=e[41];let H;e[42]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(J,{label:"requests/min",value:"1.2k"}),e[42]=H):H=e[42];const Z=n?"1":"0",ee=n?"destructive":"success";let I;e[43]!==Z||e[44]!==ee?(I=s.jsx(J,{label:"open issues",value:Z,tone:ee}),e[43]=Z,e[44]=ee,e[45]=I):I=e[45];let L;e[46]!==T||e[47]!==I?(L=s.jsxs(Re,{children:[F,T,H,I]}),e[46]=T,e[47]=I,e[48]=L):L=e[48];const te=n?"border-danger/40 bg-danger/5":"bg-muted/30";let M;e[49]!==te?(M=z("flex items-center justify-between gap-3 rounded-md border px-3 py-2 text-xs transition-colors duration-500",te),e[49]=te,e[50]=M):M=e[50];let B;e[51]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[s.jsx("span",{className:"shrink-0 font-mono font-semibold",children:"SF-142"}),s.jsx("span",{className:"truncate",children:"NoMethodError in WidgetsController#index"})]}),e[51]=B):B=e[51];let W;e[52]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx("span",{className:"hidden sm:inline",children:"3 events"}),e[52]=W):W=e[52];const se=n?"open":"resolved";let P;e[53]!==se?(P=s.jsxs("div",{className:"text-muted-foreground flex shrink-0 items-center gap-3 font-mono",children:[W,s.jsx(Te,{status:se})]}),e[53]=se,e[54]=P):P=e[54];let D;e[55]!==M||e[56]!==P?(D=s.jsxs("div",{className:M,children:[B,P]}),e[55]=M,e[56]=P,e[57]=D):D=e[57];let G;e[58]===Symbol.for("react.memo_cache_sentinel")?(G={action:66,render:24},e[58]=G):G=e[58];let O;e[59]!==c?(O=s.jsx(Ie,{entries:c,total:90,stages:G}),e[59]=c,e[60]=O):O=e[60];let q;e[61]!==L||e[62]!==D||e[63]!==O?(q=s.jsxs(ie,{className:"grid gap-6",children:[L,D,O]}),e[61]=L,e[62]=D,e[63]=O,e[64]=q):q=e[64];let U;return e[65]!==R||e[66]!==q?(U=s.jsx("section",{className:"relative z-20 mx-auto -mt-8 max-w-5xl px-6 pb-16 md:-mt-4",children:s.jsxs(oe,{className:"overflow-hidden",children:[R,q]})}),e[65]=R,e[66]=q,e[67]=U):U=e[67],U}const it=110;function k(e){const t=N.c(8),{step:o,className:n,children:a}=e,c=o===void 0?0:o;let i;t[0]!==n?(i=z("motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-bottom-2 motion-safe:fill-mode-both motion-safe:duration-700 motion-safe:ease-out",n),t[0]=n,t[1]=i):i=t[1];const d=`${c*it}ms`;let r;t[2]!==d?(r={animationDelay:d},t[2]=d,t[3]=r):r=t[3];let l;return t[4]!==a||t[5]!==i||t[6]!==r?(l=s.jsx("div",{className:i,style:r,children:a}),t[4]=a,t[5]=i,t[6]=r,t[7]=l):l=t[7],l}function St(){const e=N.c(15),{auth:t}=fe().props,o=!!t.user;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(xe,{title:"Railwatch — monitoring for Rails apps"}),e[0]=n):n=e[0];let a;e[1]!==o?(a=s.jsx(k,{step:0,children:s.jsx(_e,{signedIn:o})}),e[1]=o,e[2]=a):a=e[2];let c;e[3]!==o?(c=s.jsx(k,{step:1,children:s.jsx(et,{signedIn:o})}),e[3]=o,e[4]=c):c=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(k,{step:2,children:s.jsx(ot,{})}),e[5]=i):i=e[5];let d;e[6]!==c?(d=s.jsxs(Ye,{children:[c,i]}),e[6]=c,e[7]=d):d=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(k,{step:3,children:s.jsx(Oe,{})}),e[8]=r):r=e[8];let l;e[9]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(k,{step:4,children:s.jsx(Pe,{})}),e[9]=l):l=e[9];let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(k,{step:4,children:s.jsx(st,{})}),e[10]=m):m=e[10];let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(k,{step:5,children:s.jsx(ke,{})}),e[11]=f):f=e[11];let h;return e[12]!==a||e[13]!==d?(h=s.jsxs(s.Fragment,{children:[n,s.jsxs("div",{className:"dark bg-background text-foreground min-h-screen",children:[a,d,r,l,m,f]})]}),e[12]=a,e[13]=d,e[14]=h):h=e[14],h}export{St as default};
1
+ import{c as N,j as s,r as v,C as z,L as ae,M as ue,N as pe,u as fe,H as xe}from"./inertia-CqnzqPVD.js";import{C as oe,a as ie,b as ge}from"./card-DqdEEKcJ.js";import{D as be,a as je,b as ye,c as we,L as ve,B as Ne}from"./live-dot-UdzOfzJb.js";import{R as Se,M as _e,a as ke}from"./nav-BRCgp2w3.js";import{B as ne}from"./app-wordmark-Bt6XqURo.js";import{H as Ce,a as Ee,b as $e}from"./copy-DaQMJWoT.js";import{S as Ae}from"./empty-state-Bn48Gplm.js";import{S as J,a as Re}from"./stat-BNEfE8X1.js";import{I as Te}from"./status-badge-D0aylrM5.js";import{T as Ie}from"./timeline-BNcJ9PMc.js";import{C as Le}from"./index-C-EwH4lO.js";import"./index-BDVShWMs.js";import"./use-live-DWwLg1Nj.js";import"./arrow-up-EmePsTKP.js";import"./badge-Dv7I-ebP.js";import"./format-B9SDkrWj.js";const Me='claude mcp add railwatch --transport http https://railwatch.rebulk.com/mcp --header "Authorization: Bearer $RAILWATCH_MCP_TOKEN"';function Pe(){const e=N.c(4);let t,o,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx("p",{className:"text-primary mb-2 font-mono text-[11px] tracking-[0.2em] uppercase",children:"MCP"}),o=s.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Works with your AI assistant"}),n=s.jsx("p",{className:"text-muted-foreground mt-2",children:"Railwatch speaks MCP, so Claude Code, Cursor, VS Code, and Zed can read your production data directly — issues, slow routes, query plans, stack profiles, logs, deploys. It ships prompts too: point one at an issue key and it pulls the occurrence, the timeline around it, and the deploy it started after. Writes are attributed to you, so a comment or a status change an assistant makes is signed in the issue's activity feed."}),e[0]=t,e[1]=o,e[2]=n):(t=e[0],o=e[1],n=e[2]);let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs("section",{className:"mx-auto max-w-2xl px-6 pb-16 text-center",children:[t,o,n,s.jsx(oe,{className:"mt-6 text-left",children:s.jsxs(ie,{children:[s.jsx("p",{className:"text-muted-foreground font-mono text-sm",children:"# one line, then ask it what broke today"}),s.jsx("p",{className:"mt-1 font-mono text-sm break-all",children:Me})]})})]}),e[3]=a):a=e[3],a}const De=[{title:"Requests",description:"Every route's throughput, latency percentiles, and status codes, down to a single request's waterfall.",image:"requests",alt:"The Requests page: throughput and latency charts over a table of every route with its 2xx, 4xx, 5xx counts, error rate, and p95"},{title:"Jobs & scheduled tasks",description:"Queue depth, retries, and run history for Active Job and your recurring tasks.",image:"jobs",alt:"The Jobs page: attempts per hour split into processed and failed, a queue table with average wait, and the most recent runs"},{title:"Queries & N+1s",description:"Slow queries and N+1 patterns grouped by source location, not buried in a log line.",image:"queries",alt:"The Queries page: two N+1 patterns with a suggested fix and the source line, above every SQL shape ranked by count and p95"},{title:"Exceptions → Issues",description:"Exceptions are grouped into Issues that track occurrences, assignees, and status over time.",image:"issues",alt:"An issue page: a resolved NoMethodError with the raising line of source highlighted, its breadcrumbs, and the alerts it sent"},{title:"Inertia visits",description:"Page-by-page render and payload size, so a slow visit is obvious before support tickets show up.",image:"visits",alt:"The Inertia visits page: p75 web vitals, visits per hour, and a table of components with visit count, LCP, INP, and p95"},{title:"Deploy comparison",description:"Every chart is annotated with deploys, so a regression points straight at the change that caused it.",image:"deploys",alt:"A deploy page: the commits it shipped, its crash-free rate, and request p95, error rate, and job failures for the hour before and after"},{title:"Alerts",description:"Threshold and issue alerts delivered where your team already works.",image:"alerts",alt:"The Alerts page: new, resolved, and threshold alerts delivered to Slack and email, newest first"},{title:"MCP / API",description:"A JSON-RPC MCP endpoint and a token-authenticated API, so your AI assistant can query production directly.",image:"mcp",alt:"A request page with its Copy as Markdown button: the same timeline an assistant reads over MCP"}];function Oe(){const e=N.c(9),[t,o]=v.useState(null);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:De.map(l=>{const{title:m,description:f,image:h,alt:g}=l;return s.jsxs("div",{className:"bg-card flex flex-col overflow-hidden rounded-lg border",children:[s.jsx("button",{type:"button",onClick:()=>o(l),className:"group relative aspect-[4/3] w-full cursor-zoom-in overflow-hidden border-b bg-[#020618] text-left","aria-label":`Open a full screenshot of ${m}`,children:s.jsx("img",{src:`/marketing/${h}.webp`,alt:g,loading:"lazy",width:1200,height:900,className:"h-full w-full object-cover object-top transition-transform duration-500 ease-out group-hover:scale-[1.03] motion-reduce:transition-none"})}),s.jsxs("div",{className:"space-y-1 px-4 py-3",children:[s.jsx("h3",{className:"text-sm font-semibold",children:m}),s.jsx("p",{className:"text-muted-foreground text-[13px] leading-snug",children:f})]})]},m)})}),e[0]=n):n=e[0];const a=t!==null;let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=l=>!l&&o(null),e[1]=c):c=e[1];let i;e[2]!==t?(i=t&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"border-b px-5 py-3",children:[s.jsx(be,{className:"text-base",children:t.title}),s.jsx(je,{children:t.description})]}),s.jsx("img",{src:`/marketing/${t.image}-full.webp`,alt:t.alt,width:1920,height:1200,className:"block max-h-[calc(92vh-4.5rem)] w-full object-contain object-top"})]}),e[2]=t,e[3]=i):i=e[3];let d;e[4]!==i?(d=s.jsx(ye,{className:"bg-background max-h-[92vh] w-[min(96vw,1400px)] gap-0 overflow-hidden p-0 sm:max-w-none",children:i}),e[4]=i,e[5]=d):d=e[5];let r;return e[6]!==a||e[7]!==d?(r=s.jsxs("section",{className:"mx-auto max-w-5xl px-6 pb-16",children:[n,s.jsx(we,{open:a,onOpenChange:c,children:d})]}),e[6]=a,e[7]=d,e[8]=r):r=e[8],r}const de=v.createContext("departed"),me=()=>v.useContext(de),qe=[["approaching",100],["braking",2300],["held",3300],["caution",6400],["clear",7200],["departed",8300]],ze=3200,Fe=1800,He={arriving:"clear",approaching:"clear",braking:"clear",held:"stop",caution:"caution",clear:"clear",departed:"clear"};function he(){const[e]=v.useState(Be);return e}function Be(){return typeof window<"u"&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches}function We(){const e=he(),[t,o]=v.useState(e?"arriving":"departed");return v.useEffect(()=>{if(!e)return;const n=qe.map(([a,c])=>setTimeout(()=>o(a),c));return()=>n.forEach(clearTimeout)},[]),{stage:t,animated:e}}const Ge=72,le=13.5,re=112,Ue=14;function Je(e,t,o,n){let a=0,[c,i]=e;for(let d=1;d<=64;d++){const r=d/64,l=1-r,m=l*l*l*e[0]+3*l*l*r*t[0]+3*l*r*r*o[0]+r*r*r*n[0],f=l*l*l*e[1]+3*l*l*r*t[1]+3*l*r*r*o[1]+r*r*r*n[1];a+=Math.hypot(m-c,f-i),c=m,i=f}return a}function Qe(e){const t=e.querySelector("h1"),o=e.querySelector("[data-hero-strip]");if(!t||!o)return null;const n=e.getBoundingClientRect(),a=t.getBoundingClientRect(),c=o.getBoundingClientRect(),i=n.width,d=n.height,r=i<768,l=i/2,m=r?10:Math.max(16,l-520),f=c.top-n.top+60,h=Ge,g=l+(r?120:220),u=[l-(r?30:60),a.top-n.top+a.height+4],b=[m,f-h],x=b[1]-u[1],y=[u[0]-x*.55,u[1]+x*.32],p=[m,b[1]-x*.42],w=Je(u,y,p,b),j=Math.PI*h/2,S=g-Ue-re/2,_=w+j+(S-(m+h)),C=w+j+(i+re+40-(m+h));return{w:i,h:d,p0:u,c1:y,c2:p,p3:b,xL:m,yL:f,r:h,cx:l,xSignal:g,yFadeTop:u[1],yFadeFull:u[1]+x*.7,stop:_,total:C}}function Q(e,t){const[o,n]=e.p0,a=e.r+t,c=t;return[`M ${o+c*.5} ${n-c*.85}`,`C ${e.c1[0]+c*.5} ${e.c1[1]-c*.85}, ${e.c2[0]-t} ${e.c2[1]}, ${e.p3[0]-t} ${e.p3[1]}`,`A ${a} ${a} 0 0 0 ${e.xL+e.r} ${e.yL+t}`,`L ${e.w+re+40} ${e.yL+t}`].join(" ")}const K=[{at:-41,w:30},{at:-4,w:34},{at:37,w:38}],Ke=K.length-1,Ve=1;function Xe(e){const t=N.c(14),{index:o,held:n,style:a}=e,c=K[o],i=-c.w/2;let d;t[0]!==c.w||t[1]!==i?(d=s.jsx("rect",{x:i,y:"-7",width:c.w,height:"14",rx:"3",fill:"currentColor"}),t[0]=c.w,t[1]=i,t[2]=d):d=t[2];let r;t[3]!==c.w||t[4]!==o?(r=o===Ke&&s.jsx("rect",{x:c.w/2-6,y:"-4",width:"4",height:"8",rx:"1",className:"text-primary",fill:"currentColor"}),t[3]=c.w,t[4]=o,t[5]=r):r=t[5];let l;t[6]!==n||t[7]!==o?(l=o===Ve&&s.jsx("rect",{x:"-5",y:"-25",width:"10",height:"10",transform:"rotate(45 0 -20)",className:z("transition-opacity duration-300",n?"opacity-100":"opacity-0"),fill:"rgb(239 68 68)"}),t[6]=n,t[7]=o,t[8]=l):l=t[8];let m;return t[9]!==a||t[10]!==d||t[11]!==r||t[12]!==l?(m=s.jsxs("g",{className:"text-foreground/85",style:a,children:[d,r,l]}),t[9]=a,t[10]=d,t[11]=r,t[12]=l,t[13]=m):m=t[13],m}function Ye(e){const t=N.c(3),{children:o}=e,{stage:n}=We();let a;return t[0]!==o||t[1]!==n?(a=s.jsx(de.Provider,{value:n,children:o}),t[0]=o,t[1]=n,t[2]=a):a=t[2],a}function Ze(e){const t=N.c(21),{children:o}=e,n=v.useRef(null),[a,c]=v.useState(null),i=me(),d=he(),r=v.useId();let l,m;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{const p=n.current;if(!p)return;const w=()=>c(Qe(p));w();const j=new ResizeObserver(w);return j.observe(p),()=>j.disconnect()},m=[],t[0]=l,t[1]=m):(l=t[0],m=t[1]),v.useEffect(l,m);const f=i==="held";let h,g,u;if(t[2]!==d||t[3]!==f||t[4]!==a||t[5]!==r||t[6]!==i){let p;if(a)e:switch(i){case"arriving":{p={distance:0};break e}case"approaching":case"braking":case"held":case"caution":{p={distance:a.stop,transition:`offset-distance ${ze}ms cubic-bezier(.45,.05,.25,1)`};break e}case"clear":{p={distance:a.stop+120,transition:"offset-distance 900ms ease-in-out"};break e}case"departed":p={distance:a.total,transition:`offset-distance ${Fe}ms cubic-bezier(.4,0,.8,.6)`}}const w=j=>a&&p?{offsetPath:`path("${Q(a,0)}")`,offsetRotate:"auto",offsetDistance:`${p.distance+K[j].at}px`,transition:p.transition}:void 0;h=n,g="relative overflow-hidden",u=a&&s.jsxs("svg",{"aria-hidden":!0,className:"text-foreground/30 pointer-events-none absolute inset-0 z-0 h-full w-full [mask-image:linear-gradient(to_right,black_86%,transparent)]",width:a.w,height:a.h,viewBox:`0 0 ${a.w} ${a.h}`,children:[s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:`${r}-fade`,gradientUnits:"userSpaceOnUse",x1:"0",y1:a.yFadeTop,x2:"0",y2:a.yFadeFull,children:[s.jsx("stop",{offset:"0",stopColor:"white",stopOpacity:"0"}),s.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"1"})]}),s.jsx("mask",{id:r,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:a.w,height:a.h,children:s.jsx("rect",{width:a.w,height:a.h,fill:`url(#${r}-fade)`})})]}),s.jsxs("g",{mask:`url(#${r})`,children:[s.jsx("path",{d:Q(a,0),fill:"none",stroke:"currentColor",strokeWidth:"30",strokeDasharray:"4 18"}),s.jsx("path",{d:Q(a,le/2),fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),s.jsx("path",{d:Q(a,-le/2),fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),d&&K.map((j,S)=>s.jsx(Xe,{index:S,held:f,style:w(S)},S))]})]}),t[2]=d,t[3]=f,t[4]=a,t[5]=r,t[6]=i,t[7]=h,t[8]=g,t[9]=u}else h=t[7],g=t[8],u=t[9];let b;t[10]!==o?(b=s.jsx("div",{className:"relative z-10",children:o}),t[10]=o,t[11]=b):b=t[11];let x;t[12]!==a||t[13]!==i?(x=a&&s.jsx(s.Fragment,{children:s.jsx("div",{className:"pointer-events-none absolute z-10 h-0 w-0",style:{left:a.xSignal,top:a.yL},"aria-hidden":!0,children:s.jsx(Ae,{aspect:He[i],className:"left-0 md:left-0"})})}),t[12]=a,t[13]=i,t[14]=x):x=t[14];let y;return t[15]!==h||t[16]!==g||t[17]!==u||t[18]!==b||t[19]!==x?(y=s.jsxs("div",{ref:h,className:g,children:[u,b,x]}),t[15]=h,t[16]=g,t[17]=u,t[18]=b,t[19]=x,t[20]=y):y=t[20],y}function et(e){const t=N.c(11),{signedIn:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("p",{className:"text-primary mb-5 flex items-baseline justify-center gap-3 font-mono text-[11px] tracking-[0.2em] uppercase",children:["Built by",s.jsx("a",{href:"https://rebulk.com",className:"text-foreground hover:text-primary transition-colors",children:s.jsx(Se,{className:"h-2.5 w-auto"})})]}),t[0]=n):n=t[0];let a,c;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs("h1",{className:"text-5xl font-black tracking-tight text-balance sm:text-6xl",children:[Ce,s.jsx("span",{className:"text-primary",children:Ee})]}),c=s.jsx("p",{className:"text-muted-foreground mx-auto mt-5 max-w-xl text-lg text-balance",children:$e}),t[1]=a,t[2]=c):(a=t[1],c=t[2]);let i;t[3]!==o?(i=o?s.jsx(ne,{asChild:!0,size:"lg",children:s.jsx(ae,{href:"/dashboard",children:"Open dashboard"})}):s.jsx(ne,{asChild:!0,size:"lg",children:s.jsx(ae,{href:ue(),children:"Get started"})}),t[3]=o,t[4]=i):i=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(ne,{asChild:!0,variant:"outline",size:"lg",children:s.jsx(ae,{href:pe(),children:"Read the docs"})}),t[5]=d):d=t[5];let r;t[6]!==i?(r=s.jsxs("div",{className:"mt-8 flex items-center justify-center gap-3",children:[i,d]}),t[6]=i,t[7]=r):r=t[7];let l;t[8]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"mt-6 h-32","data-hero-strip":!0}),t[8]=l):l=t[8];let m;return t[9]!==r?(m=s.jsx(Ze,{children:s.jsxs("section",{className:"relative mx-auto max-w-3xl px-6 pt-14 pb-0 text-center",children:[n,a,c,r,l]})}),t[9]=r,t[10]=m):m=t[10],m}const tt=[{comment:"# 1. add the gem",lines:["bundle add railwatch"]},{comment:"# 2. initializer, routes, Kamal hook, browser client, matchers",lines:["bin/rails generate railwatch:install --prompt-token --kamal-secrets"]},{comment:"# 3. check every piece is wired up",lines:["bin/rails railwatch:doctor"]},{comment:"# 4. connect your editor's assistant",lines:["bin/rails railwatch:mcp"]}];function st(){const e=N.c(4);let t,o,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx("p",{className:"text-primary mb-2 font-mono text-[11px] tracking-[0.2em] uppercase",children:"Install"}),o=s.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Five-minute install"}),n=s.jsx("p",{className:"text-muted-foreground mt-2",children:"One gem, one generator, no dashboard to build. The generator finishes by running the doctor, so you see a ✓ or a ✗ per check before you deploy."}),e[0]=t,e[1]=o,e[2]=n):(t=e[0],o=e[1],n=e[2]);let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs("section",{className:"mx-auto max-w-2xl px-6 pb-16 text-center",children:[t,o,n,s.jsx(oe,{className:"mt-6 text-left",children:s.jsx(ie,{className:"space-y-1 font-mono text-sm",children:tt.map(at)})})]}),e[3]=a):a=e[3],a}function at(e,t){return s.jsxs("div",{className:t>0?"pt-3":void 0,children:[s.jsx("p",{className:"text-muted-foreground",children:e.comment}),e.lines.map(nt)]},e.comment)}function nt(e){return s.jsx("p",{className:"break-all",children:e},e)}const ce=[{type:"query",id:1,offset:2,duration:4.2,label:"SELECT users",stage:"action",sql:'SELECT "users".* FROM "users" WHERE "users"."id" = ?'},{type:"cache_event",id:2,offset:8,duration:.4,label:"read widgets/42",stage:"action",detail:{op:"read",key:"widgets/42"}},{type:"query",id:3,offset:11,duration:12.8,label:"SELECT widgets",stage:"action",sql:'SELECT "widgets".* FROM "widgets" WHERE "widgets"."account_id" = ?'},{type:"outgoing_request",id:4,offset:26,duration:40.1,label:"GET api.stripe.com",stage:"action",detail:{method:"GET",url:"https://api.stripe.com/v1/charges",status:200}},{type:"view_render",id:5,offset:68,duration:6.5,label:"widgets/index.html.erb",stage:"render"},{type:"enqueued_job",id:6,offset:70,duration:null,label:"WidgetSyncJob",stage:"render"}],rt={type:"exception",id:7,offset:66.4,duration:null,label:"NoMethodError: undefined method `total' for nil",stage:"action",source:"app/controllers/widgets_controller.rb:31"};function ot(){const e=N.c(68),t=me(),o=t==="braking"||t==="held",n=t==="held";let a;e[0]!==n?(a=n?[...ce,rt]:ce,e[0]=n,e[1]=a):a=e[1];const c=a,i=t==="held"?"new":t==="caution"||t==="clear"?"resolved":null;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=new Date().toISOString(),e[2]=d):d=e[2];let r;e[3]!==o?(r=s.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium",children:[s.jsx(ve,{lastSeenAt:d,erroring:o}),"storefront · production"]}),e[3]=o,e[4]=r):r=e[4];const l=n?"bg-danger/15 text-danger":"bg-live/15 text-live";let m;e[5]!==l?(m=z("rounded px-1.5 py-0.5 font-semibold transition-colors duration-500",l),e[5]=l,e[6]=m):m=e[6];const f=n?"500":"200";let h;e[7]!==m||e[8]!==f?(h=s.jsxs("span",{className:"text-muted-foreground flex items-center gap-2 font-mono text-xs",children:["GET /widgets",s.jsx("span",{className:m,children:f})]}),e[7]=m,e[8]=f,e[9]=h):h=e[9];const g=i?"translate-x-0":"translate-x-[calc(100%+2px)]";let u;e[10]!==g?(u=z("bg-popover absolute right-0 flex items-center gap-2 border-l px-3 text-xs shadow-[-12px_0_16px_-8px_rgba(0,0,0,.5)] transition-transform duration-500 ease-out motion-reduce:transition-none","max-md:bottom-2.5 max-md:gap-1.5 max-md:rounded-l-md max-md:border-y max-md:px-2.5 max-md:py-1.5 max-md:text-[11px] md:inset-y-0",g),e[10]=g,e[11]=u):u=e[11];const b=i==="resolved"?"bg-live/15 text-live":"bg-danger/15 text-danger";let x;e[12]!==b?(x=z("flex size-6 shrink-0 items-center justify-center rounded-full",b),e[12]=b,e[13]=x):x=e[13];let y;e[14]!==i?(y=i==="resolved"?s.jsx(Le,{className:"size-3.5"}):s.jsx(Ne,{className:"size-3.5"}),e[14]=i,e[15]=y):y=e[15];let p;e[16]!==x||e[17]!==y?(p=s.jsx("span",{className:x,children:y}),e[16]=x,e[17]=y,e[18]=p):p=e[18];const w=i==="resolved"?"SF-142 resolved":"New issue SF-142";let j;e[19]!==w?(j=s.jsx("span",{className:"block leading-tight font-medium",children:w}),e[19]=w,e[20]=j):j=e[20];const S=i==="resolved"?"Slack #storefront-alerts · just now":"Sent to Slack #storefront-alerts";let _;e[21]!==S?(_=s.jsx("span",{className:"max-md:hidden",children:S}),e[21]=S,e[22]=_):_=e[22];let C;e[23]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("span",{className:"md:hidden",children:"Slack #storefront-alerts"}),e[23]=C):C=e[23];let E;e[24]!==_?(E=s.jsxs("span",{className:"text-muted-foreground block leading-tight",children:[_,C]}),e[24]=_,e[25]=E):E=e[25];let $;e[26]!==j||e[27]!==E?($=s.jsxs("span",{className:"min-w-0",children:[j,E]}),e[26]=j,e[27]=E,e[28]=$):$=e[28];let A;e[29]!==p||e[30]!==$||e[31]!==u?(A=s.jsxs("div",{"aria-live":"polite",className:u,children:[p,$]}),e[29]=p,e[30]=$,e[31]=u,e[32]=A):A=e[32];let R;e[33]!==r||e[34]!==A||e[35]!==h?(R=s.jsxs(ge,{className:"relative flex-row items-center justify-between overflow-hidden border-b pb-6 max-md:flex-wrap max-md:gap-y-3",children:[r,h,A]}),e[33]=r,e[34]=A,e[35]=h,e[36]=R):R=e[36];let F;e[37]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(J,{label:"p50 latency",value:"42ms",hint:"last 24h"}),e[37]=F):F=e[37];const V=n?"2.1%":"0.4%",X=n?"destructive":"success",Y=n?"3 of 143 requests":"last 24h";let T;e[38]!==V||e[39]!==X||e[40]!==Y?(T=s.jsx(J,{label:"error rate",value:V,tone:X,hint:Y}),e[38]=V,e[39]=X,e[40]=Y,e[41]=T):T=e[41];let H;e[42]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(J,{label:"requests/min",value:"1.2k"}),e[42]=H):H=e[42];const Z=n?"1":"0",ee=n?"destructive":"success";let I;e[43]!==Z||e[44]!==ee?(I=s.jsx(J,{label:"open issues",value:Z,tone:ee}),e[43]=Z,e[44]=ee,e[45]=I):I=e[45];let L;e[46]!==T||e[47]!==I?(L=s.jsxs(Re,{children:[F,T,H,I]}),e[46]=T,e[47]=I,e[48]=L):L=e[48];const te=n?"border-danger/40 bg-danger/5":"bg-muted/30";let M;e[49]!==te?(M=z("flex items-center justify-between gap-3 rounded-md border px-3 py-2 text-xs transition-colors duration-500",te),e[49]=te,e[50]=M):M=e[50];let B;e[51]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[s.jsx("span",{className:"shrink-0 font-mono font-semibold",children:"SF-142"}),s.jsx("span",{className:"truncate",children:"NoMethodError in WidgetsController#index"})]}),e[51]=B):B=e[51];let W;e[52]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx("span",{className:"hidden sm:inline",children:"3 events"}),e[52]=W):W=e[52];const se=n?"open":"resolved";let P;e[53]!==se?(P=s.jsxs("div",{className:"text-muted-foreground flex shrink-0 items-center gap-3 font-mono",children:[W,s.jsx(Te,{status:se})]}),e[53]=se,e[54]=P):P=e[54];let D;e[55]!==M||e[56]!==P?(D=s.jsxs("div",{className:M,children:[B,P]}),e[55]=M,e[56]=P,e[57]=D):D=e[57];let G;e[58]===Symbol.for("react.memo_cache_sentinel")?(G={action:66,render:24},e[58]=G):G=e[58];let O;e[59]!==c?(O=s.jsx(Ie,{entries:c,total:90,stages:G}),e[59]=c,e[60]=O):O=e[60];let q;e[61]!==L||e[62]!==D||e[63]!==O?(q=s.jsxs(ie,{className:"grid gap-6",children:[L,D,O]}),e[61]=L,e[62]=D,e[63]=O,e[64]=q):q=e[64];let U;return e[65]!==R||e[66]!==q?(U=s.jsx("section",{className:"relative z-20 mx-auto -mt-8 max-w-5xl px-6 pb-16 md:-mt-4",children:s.jsxs(oe,{className:"overflow-hidden",children:[R,q]})}),e[65]=R,e[66]=q,e[67]=U):U=e[67],U}const it=110;function k(e){const t=N.c(8),{step:o,className:n,children:a}=e,c=o===void 0?0:o;let i;t[0]!==n?(i=z("motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-bottom-2 motion-safe:fill-mode-both motion-safe:duration-700 motion-safe:ease-out",n),t[0]=n,t[1]=i):i=t[1];const d=`${c*it}ms`;let r;t[2]!==d?(r={animationDelay:d},t[2]=d,t[3]=r):r=t[3];let l;return t[4]!==a||t[5]!==i||t[6]!==r?(l=s.jsx("div",{className:i,style:r,children:a}),t[4]=a,t[5]=i,t[6]=r,t[7]=l):l=t[7],l}function St(){const e=N.c(15),{auth:t}=fe().props,o=!!t.user;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(xe,{title:"Railwatch — monitoring for Rails apps"}),e[0]=n):n=e[0];let a;e[1]!==o?(a=s.jsx(k,{step:0,children:s.jsx(_e,{signedIn:o})}),e[1]=o,e[2]=a):a=e[2];let c;e[3]!==o?(c=s.jsx(k,{step:1,children:s.jsx(et,{signedIn:o})}),e[3]=o,e[4]=c):c=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(k,{step:2,children:s.jsx(ot,{})}),e[5]=i):i=e[5];let d;e[6]!==c?(d=s.jsxs(Ye,{children:[c,i]}),e[6]=c,e[7]=d):d=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(k,{step:3,children:s.jsx(Oe,{})}),e[8]=r):r=e[8];let l;e[9]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(k,{step:4,children:s.jsx(Pe,{})}),e[9]=l):l=e[9];let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(k,{step:4,children:s.jsx(st,{})}),e[10]=m):m=e[10];let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(k,{step:5,children:s.jsx(ke,{})}),e[11]=f):f=e[11];let h;return e[12]!==a||e[13]!==d?(h=s.jsxs(s.Fragment,{children:[n,s.jsxs("div",{className:"dark bg-background text-foreground min-h-screen",children:[a,d,r,l,m,f]})]}),e[12]=a,e[13]=d,e[14]=h):h=e[14],h}export{St as default};