railwatch 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AGENTS.md +42 -26
- data/CHANGELOG.md +28 -0
- data/README.md +40 -29
- data/app/jobs/railwatch/rollup_job.rb +3 -1
- data/app/models/railwatch/ingest/rollup_absorber.rb +1 -1
- data/docs/ai-and-mcp.md +9 -3
- data/docs/configuration.md +68 -27
- data/docs/embedded.md +76 -43
- data/docs/faq.md +22 -10
- data/docs/getting-started.md +116 -41
- data/docs/records.md +13 -10
- data/docs/replacing-nightwatch.md +16 -14
- data/docs/replacing-sentry.md +19 -10
- data/docs/security.md +24 -3
- data/docs/self-hosting.md +9 -1
- data/docs/testing.md +14 -4
- data/docs/troubleshooting.md +62 -23
- data/lib/generators/railwatch/install/install_generator.rb +5 -4
- data/lib/generators/railwatch/install/templates/initializer.rb.tt +2 -2
- data/lib/railwatch/version.rb +1 -1
- data/llms.txt +21 -18
- data/public/railwatch/assets/{app-layout-2xAKndVD.js → app-layout-Zc0v-hYh.js} +1 -1
- data/public/railwatch/assets/{app-wordmark-Bt6XqURo.js → app-wordmark-BA_60AVb.js} +1 -1
- data/public/railwatch/assets/{appearance-DyCfeh9o.js → appearance-CcfP9tZ7.js} +1 -1
- data/public/railwatch/assets/application-BrN3Sz94.css +1 -0
- data/public/railwatch/assets/{arrow-up-EmePsTKP.js → arrow-up-CLQ-7heQ.js} +1 -1
- data/public/railwatch/assets/{auth-layout-BuwogWMZ.js → auth-layout-C05gEBIQ.js} +1 -1
- data/public/railwatch/assets/{badge-Dv7I-ebP.js → badge-DRae8XwK.js} +1 -1
- data/public/railwatch/assets/{braces-iZ7MEfYP.js → braces-rSYydpLY.js} +1 -1
- data/public/railwatch/assets/{card-DqdEEKcJ.js → card-DPjFKfen.js} +1 -1
- data/public/railwatch/assets/{chart-C4k7Ub9W.js → chart-DWh7l8yM.js} +1 -1
- data/public/railwatch/assets/{chart-hover-2yZG3w2u.js → chart-hover-CfoZUY4J.js} +1 -1
- data/public/railwatch/assets/{chart-panel-CONkZcn9.js → chart-panel-CC49WTQL.js} +1 -1
- data/public/railwatch/assets/{checkbox-DKbThbxr.js → checkbox-DPkLUiwM.js} +1 -1
- data/public/railwatch/assets/{code-CYahYQHZ.js → code-CLmYS6FU.js} +1 -1
- data/public/railwatch/assets/{copy-block-CbJum9s8.js → copy-block-CGcXxp8J.js} +1 -1
- data/public/railwatch/assets/{copy-id-JmvLfkmx.js → copy-id-vBYHQwxg.js} +1 -1
- data/public/railwatch/assets/{cursor-load-more-C1ylbqqL.js → cursor-load-more-Ddwxe5dZ.js} +1 -1
- data/public/railwatch/assets/{data-table-CVKR2wkq.js → data-table-CzKTEE-O.js} +1 -1
- data/public/railwatch/assets/{edit-BwSEVrTG.js → edit-B1kmWkzd.js} +1 -1
- data/public/railwatch/assets/{edit-BXF5oNYA.js → edit-D9cx4pbG.js} +1 -1
- data/public/railwatch/assets/{edit-D5BRDwLT.js → edit-yv6j9p-V.js} +1 -1
- data/public/railwatch/assets/{empty-state-Bn48Gplm.js → empty-state-CW4wclK_.js} +1 -1
- data/public/railwatch/assets/{env-layout-CKLL8Ds7.js → env-layout-Kz7wks1x.js} +1 -1
- data/public/railwatch/assets/{execution-path-DWovhgLi.js → execution-path-FAuIzOXB.js} +1 -1
- data/public/railwatch/assets/{filter-bar-xcbJC93z.js → filter-bar-CJDjWFib.js} +1 -1
- data/public/railwatch/assets/{flamegraph-BNbNIuKT.js → flamegraph-EaGkP2NT.js} +1 -1
- data/public/railwatch/assets/{frames-Bk39xfJG.js → frames-zZuIaNH9.js} +1 -1
- data/public/railwatch/assets/{google-sign-in-button-B5as2ps1.js → google-sign-in-button-2_zgbgVy.js} +1 -1
- data/public/railwatch/assets/{index-XjXcV-EO.js → index-B49SWz7K.js} +1 -1
- data/public/railwatch/assets/{index-B0xgzHuN.js → index-BHlY4wKe.js} +1 -1
- data/public/railwatch/assets/{index-CiaeS-n7.js → index-BZpPtyFY.js} +1 -1
- data/public/railwatch/assets/{index-BfitxVBv.js → index-BeVK6jCL.js} +1 -1
- data/public/railwatch/assets/{index-C-EwH4lO.js → index-BfbSo01U.js} +1 -1
- data/public/railwatch/assets/{index-CrA7jBTK.js → index-BfgncAv6.js} +1 -1
- data/public/railwatch/assets/{index-D0mKj3Hg.js → index-BhNszK1k.js} +1 -1
- data/public/railwatch/assets/{index-CDXlITyG.js → index-Bu01uWvw.js} +1 -1
- data/public/railwatch/assets/{index-w_skgMmK.js → index-C1s_hK3p.js} +1 -1
- data/public/railwatch/assets/{index-Zkt4W_CM.js → index-C8Cggnbw.js} +1 -1
- data/public/railwatch/assets/{index-BDVShWMs.js → index-CBip6V4z.js} +1 -1
- data/public/railwatch/assets/{index-DeLtMWou.js → index-CMJGss5R.js} +1 -1
- data/public/railwatch/assets/{index-LKgpCzoR.js → index-CRo3yK20.js} +1 -1
- data/public/railwatch/assets/{index-gCvuyG1l.js → index-CWB_p2J8.js} +1 -1
- data/public/railwatch/assets/{index-C8JIdb3_.js → index-CWHpndGc.js} +1 -1
- data/public/railwatch/assets/{index-CBFCtJAR.js → index-Ca_S4Sc3.js} +1 -1
- data/public/railwatch/assets/{index-o1xqGvLo.js → index-CanPDDOa.js} +1 -1
- data/public/railwatch/assets/{index-Bd4YpOIO.js → index-Cie90Yat.js} +1 -1
- data/public/railwatch/assets/{index-C_hQmVTP.js → index-CiepQ_pR.js} +1 -1
- data/public/railwatch/assets/{index-BRvRkfob.js → index-Cm1uCIGN.js} +1 -1
- data/public/railwatch/assets/{index-dpG-19ZN.js → index-CzitnnSC.js} +1 -1
- data/public/railwatch/assets/{index-Vj93BTR5.js → index-DEUfClv3.js} +1 -1
- data/public/railwatch/assets/index-DJKwo-mI.js +1 -0
- data/public/railwatch/assets/{index-cTzBycCg.js → index-DK6y0YHp.js} +1 -1
- data/public/railwatch/assets/{index-B-FXAo1w.js → index-DMNPpLH9.js} +1 -1
- data/public/railwatch/assets/{index-BeQw69GM.js → index-DZO1mSfX.js} +1 -1
- data/public/railwatch/assets/{index-BVWapDeB.js → index-Db5wj3M5.js} +1 -1
- data/public/railwatch/assets/{index-DV5MdmpY.js → index-Dcy5WktB.js} +1 -1
- data/public/railwatch/assets/{index-aPCZX-pW.js → index-DvG0-7Lx.js} +1 -1
- data/public/railwatch/assets/{index-Atp1FTgX.js → index-Dvj1wuka.js} +1 -1
- data/public/railwatch/assets/{index-COd9lT84.js → index-KyZX46qX.js} +1 -1
- data/public/railwatch/assets/{index-S0NVaLj9.js → index-Ze-KP-sl.js} +1 -1
- data/public/railwatch/assets/{index-DaE-1xhx.js → index-mhRbWLBM.js} +1 -1
- data/public/railwatch/assets/{index-DdVg9LKX.js → index-x099JL5f.js} +1 -1
- data/public/railwatch/assets/{index-CcennT28.js → index-x28zb_nf.js} +1 -1
- data/public/railwatch/assets/{inertia-CqnzqPVD.js → inertia-Cuyz2ZHO.js} +2 -2
- data/public/railwatch/assets/{input-error-ByT28UdP.js → input-error-hog6gGxg.js} +1 -1
- data/public/railwatch/assets/{json-viewer-Bnu9RsJL.js → json-viewer-DH2W9HXf.js} +1 -1
- data/public/railwatch/assets/{klass-nLiBV-Az.js → klass-DHbDelLk.js} +1 -1
- data/public/railwatch/assets/{label-1nSzpSB6.js → label-DdCBgiUn.js} +1 -1
- data/public/railwatch/assets/{layout-D7lE1Doo.js → layout-Cueyl7c5.js} +1 -1
- data/public/railwatch/assets/{live-dot-UdzOfzJb.js → live-dot-BZgYTYdt.js} +1 -1
- data/public/railwatch/assets/{nav-BRCgp2w3.js → nav-BSSGObDZ.js} +1 -1
- data/public/railwatch/assets/{new-COyDKOOb.js → new-B8FSb8Bl.js} +1 -1
- data/public/railwatch/assets/{new-Cd9zPNJ8.js → new-C39_v2Ll.js} +1 -1
- data/public/railwatch/assets/{new-vjRzERL3.js → new-DVOPwaC5.js} +1 -1
- data/public/railwatch/assets/{new-C60G72DR.js → new-Dd40nvJR.js} +1 -1
- data/public/railwatch/assets/{new-DMJGKjmH.js → new-SxnYe1SE.js} +1 -1
- data/public/railwatch/assets/{new-Omvf-c9s.js → new-eP5vKD3Y.js} +1 -1
- data/public/railwatch/assets/{onboarding-gUjJQc-6.js → onboarding-CUpZl5KB.js} +1 -1
- data/public/railwatch/assets/{origin-identity-M1YUPYS0.js → origin-identity-BYt2uiuo.js} +1 -1
- data/public/railwatch/assets/{percentile-picker-BxIVblBw.js → percentile-picker-CeQgllxD.js} +1 -1
- data/public/railwatch/assets/{relative-time-DQ4kjowZ.js → relative-time-D5UbF4oO.js} +1 -1
- data/public/railwatch/assets/{release-health-Cb1tMOOO.js → release-health-uP-GF3_V.js} +1 -1
- data/public/railwatch/assets/{route-BJkoEm7r.js → route-DQAY8JEr.js} +1 -1
- data/public/railwatch/assets/{segmented-C4oWE73o.js → segmented-BeIe4uqk.js} +1 -1
- data/public/railwatch/assets/{select-ocdQJdQo.js → select-2R16457Z.js} +1 -1
- data/public/railwatch/assets/{separator-Ct2UcZ2x.js → separator-D5I0UCB5.js} +1 -1
- data/public/railwatch/assets/series-chart-gnrzhmM6.js +1 -0
- data/public/railwatch/assets/show-2BkeNRUC.js +2 -0
- data/public/railwatch/assets/{show-BLJOyLb_.js → show-B0X1hRQH.js} +1 -1
- data/public/railwatch/assets/{show-C8TkpEgm.js → show-BKUV5l5q.js} +1 -1
- data/public/railwatch/assets/{show-BAjfddEn.js → show-BQJD_CsF.js} +1 -1
- data/public/railwatch/assets/{show-C6OiJ6Hr.js → show-BhmD6Sxp.js} +1 -1
- data/public/railwatch/assets/{show-CEhPVMMT.js → show-C3KcnVo2.js} +1 -1
- data/public/railwatch/assets/{show-CX_pab9S.js → show-C95cHd06.js} +1 -1
- data/public/railwatch/assets/{show-Bsu1rvnK.js → show-CdB4uVQS.js} +1 -1
- data/public/railwatch/assets/{show-yEOrk6Pt.js → show-CoCqcVIp.js} +1 -1
- data/public/railwatch/assets/{show-DDVsv-uS.js → show-D2LqjEsU.js} +1 -1
- data/public/railwatch/assets/{show-D6lgzL6n.js → show-DNpnKyTh.js} +1 -1
- data/public/railwatch/assets/{show-eKazflRI.js → show-DOlTxbig.js} +1 -1
- data/public/railwatch/assets/{show-Dwiq-8hA.js → show-DQCkttL8.js} +1 -1
- data/public/railwatch/assets/{show-CBFBiBY2.js → show-DcxesipC.js} +1 -1
- data/public/railwatch/assets/{show-BoVyMQS6.js → show-IGJoc_X0.js} +1 -1
- data/public/railwatch/assets/{show-gtwKsTsl.js → show-YsNpqbcI.js} +1 -1
- data/public/railwatch/assets/{show-B4bwI9x2.js → show-qNV6H8SH.js} +1 -1
- data/public/railwatch/assets/{sort-header-CPM6fhXv.js → sort-header-mEJUM3Av.js} +1 -1
- data/public/railwatch/assets/{sparkline-cell-CXCxXPWt.js → sparkline-cell-Dwg7awwh.js} +1 -1
- data/public/railwatch/assets/{stat-BNEfE8X1.js → stat-ZtxGU8lE.js} +1 -1
- data/public/railwatch/assets/{status-badge-D0aylrM5.js → status-badge-CH5P-Xkj.js} +1 -1
- data/public/railwatch/assets/{tenant-path-C4aM_cO0.js → tenant-path-CQoP-BeF.js} +1 -1
- data/public/railwatch/assets/{text-link-CP4lqUi6.js → text-link-DHJ8BXx5.js} +1 -1
- data/public/railwatch/assets/{textarea-DzJo2ds4.js → textarea-BeQtQyl5.js} +1 -1
- data/public/railwatch/assets/{timeline-BNcJ9PMc.js → timeline-CaKQVu48.js} +1 -1
- data/public/railwatch/assets/{transition-BX2M1iaq.js → transition-ksDpqhKJ.js} +1 -1
- data/public/railwatch/assets/{use-clipboard-C1ApSwzA.js → use-clipboard-DNefo-ky.js} +1 -1
- data/public/railwatch/assets/{use-live-DWwLg1Nj.js → use-live-DMTuhKfB.js} +1 -1
- data/public/railwatch/manifest.json +1286 -1286
- metadata +116 -116
- data/public/railwatch/assets/application-B7h1MIhi.css +0 -1
- data/public/railwatch/assets/index-DiQ4mqT_.js +0 -1
- data/public/railwatch/assets/series-chart-D6upsrSn.js +0 -1
- data/public/railwatch/assets/show-CV-lG2b6.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ee,u as ne,j as s,E as se,e as ie,L as le,i as oe}from"./inertia-
|
|
1
|
+
import{c as ee,u as ne,j as s,E as se,e as ie,L as le,i as oe}from"./inertia-Cuyz2ZHO.js";import{V as ae}from"./chart-panel-CC49WTQL.js";import{C as re}from"./cursor-load-more-Ddwxe5dZ.js";import{D as ce}from"./data-table-CzKTEE-O.js";import{F as me}from"./filter-bar-CJDjWFib.js";import{P as de,E as fe}from"./env-layout-Kz7wks1x.js";import{S as ue}from"./app-layout-Zc0v-hYh.js";import{B as te}from"./badge-DRae8XwK.js";import{C as X,a as Y}from"./card-DPjFKfen.js";import{e as xe}from"./execution-path-FAuIzOXB.js";import{c as Z,w as pe}from"./format-B9SDkrWj.js";import"./series-chart-gnrzhmM6.js";import"./chart-hover-CfoZUY4J.js";import"./chart-DWh7l8yM.js";import"./app-wordmark-BA_60AVb.js";import"./empty-state-CW4wclK_.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./checkbox-DPkLUiwM.js";function he(t){const e=ee.c(3),{handled:n}=t,o=n?"secondary":"destructive",l=n?"handled":"unhandled";let i;return e[0]!==o||e[1]!==l?(i=s.jsx(te,{variant:o,children:l}),e[0]=o,e[1]=l,e[2]=i):i=e[2],i}function ye(t){const e=ee.c(3),{severity:n}=t;if(!n)return null;const o=n==="fatal"||n==="error"?"destructive":n==="warning"?"secondary":"outline";let l;return e[0]!==n||e[1]!==o?(l=s.jsx(te,{variant:o,className:"capitalize",children:n}),e[0]=n,e[1]=o,e[2]=l):l=e[2],l}function Je(t){const e=ee.c(76),{environment:n,window:o,range:l}=ne().props,i=n.application_id,a=n.id;let N;e[0]!==l?.from||e[1]!==l?.to||e[2]!==o?(N=o==="custom"?{from:l?.from,to:l?.to}:{window:o},e[0]=l?.from,e[1]=l?.to,e[2]=o,e[3]=N):N=e[3];const c=N;let w;e[4]!==l||e[5]!==c?(w=l?{from:l.from,to:l.to}:c,e[4]=l,e[5]=c,e[6]=w):w=e[6];const J=w;let S;e[7]!==i||e[8]!==J||e[9]!==a||e[10]!==t.pagination.limit||e[11]!==t.q?(S=r=>se(i,a,{...J,q:t.q||void 0,cursor:r,limit:t.pagination.limit}),e[7]=i,e[8]=J,e[9]=a,e[10]=t.pagination.limit,e[11]=t.q,e[12]=S):S=e[12];const Q=S;let E;e[13]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(de,{title:"Exceptions",description:"Every exception raised, handled or not -- distinct from Issues, which group and track these over time.",actions:s.jsx(ue,{page:"exceptions"})}),e[13]=E):E=e[13];let m;e[14]!==t.series?(m=s.jsx(ae,{legend:"exception",label:"Exceptions",seriesLabel:"Exceptions",data:t.series}),e[14]=t.series,e[15]=m):m=e[15];let q;e[16]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Total"}),e[16]=q):q=e[16];let d;e[17]!==t.total?(d=Z(t.total),e[17]=t.total,e[18]=d):d=e[18];let f;e[19]!==d?(f=s.jsx(X,{className:"gap-1 py-4",children:s.jsxs(Y,{className:"px-4",children:[q,s.jsx("div",{className:"mt-1 text-2xl font-semibold tabular-nums",children:d})]})}),e[19]=d,e[20]=f):f=e[20];let P;e[21]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Unhandled"}),e[21]=P):P=e[21];let u;e[22]!==t.unhandled?(u=Z(t.unhandled),e[22]=t.unhandled,e[23]=u):u=e[23];let x;e[24]!==u?(x=s.jsx(X,{className:"gap-1 py-4",children:s.jsxs(Y,{className:"px-4",children:[P,s.jsx("div",{className:"text-destructive mt-1 text-2xl font-semibold tabular-nums",children:u})]})}),e[24]=u,e[25]=x):x=e[25];let C;e[26]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:"Top classes"}),e[26]=C):C=e[26];let p;e[27]!==t.classes?(p=t.classes.slice(0,5).map(we),e[27]=t.classes,e[28]=p):p=e[28];let h;e[29]!==p?(h=s.jsx(X,{className:"gap-1 py-4",children:s.jsxs(Y,{className:"px-4",children:[C,s.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:p})]})}),e[29]=p,e[30]=h):h=e[30];let y;e[31]!==x||e[32]!==h||e[33]!==f?(y=s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[f,x,h]}),e[31]=x,e[32]=h,e[33]=f,e[34]=y):y=e[34];let B,M,I,L,T,H;e[35]===Symbol.for("react.memo_cache_sentinel")?(B={key:"after",label:"After"},M={key:"before",label:"Before"},I={key:"user",label:"User"},L={key:"tenant",label:"Tenant"},T={key:"deploy",label:"Deploy"},H={key:"source",label:"Source"},e[35]=B,e[36]=M,e[37]=I,e[38]=L,e[39]=T,e[40]=H):(B=e[35],M=e[36],I=e[37],L=e[38],T=e[39],H=e[40]);let O,R;e[41]===Symbol.for("react.memo_cache_sentinel")?(O={key:"kind",label:"Execution kind",options:["request","job","scheduled_task","command"]},R={key:"class",label:"Class"},e[41]=O,e[42]=R):(O=e[41],R=e[42]);let D;e[43]===Symbol.for("react.memo_cache_sentinel")?(D={key:"handled",label:"Handled",options:["true","false"]},e[43]=D):D=e[43];let F;e[44]===Symbol.for("react.memo_cache_sentinel")?(F=[B,M,I,L,T,H,O,R,D,{key:"severity",label:"Severity",options:["fatal","error","warning","info"]}],e[44]=F):F=e[44];let g;e[45]!==i||e[46]!==a||e[47]!==c?(g=r=>ie.visit(se(i,a,{...c,q:r||void 0}),{only:["exceptions","pagination","q"],preserveState:!0,reset:["exceptions"]}),e[45]=i,e[46]=a,e[47]=c,e[48]=g):g=e[48];let v;e[49]!==t.q||e[50]!==g?(v=s.jsx(me,{value:t.q,fields:F,onChange:g,placeholder:"class:ActiveRecord::RecordNotFound handled:false"}),e[49]=t.q,e[50]=g,e[51]=v):v=e[51];let U,V,$,A,z;e[52]===Symbol.for("react.memo_cache_sentinel")?(U={key:"when",header:"When",className:"w-40",cell:ke},V={key:"class",header:"Class",grow:!0,cell:_e},$={key:"handled",header:"Handled",cell:je},A={key:"sev",hideOnMobile:!0,header:"Severity",cell:be},z={key:"source",hideOnMobile:!0,header:"Source",cell:ve},e[52]=U,e[53]=V,e[54]=$,e[55]=A,e[56]=z):(U=e[52],V=e[53],$=e[54],A=e[55],z=e[56]);let b;e[57]!==i||e[58]!==a?(b={key:"in",hideOnMobile:!0,header:"In",cell:r=>r.execution_id?s.jsx(le,{className:"font-mono text-xs hover:underline",href:xe({applicationId:i,environmentId:a,source:r.execution_source,executionId:r.execution_id}),children:r.execution_preview}):s.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})},e[57]=i,e[58]=a,e[59]=b):b=e[59];let K;e[60]===Symbol.for("react.memo_cache_sentinel")?(K={key:"user",hideOnMobile:!0,header:"User",cell:ge},e[60]=K):K=e[60];let j;e[61]!==b?(j=[U,V,$,A,z,b,K],e[61]=b,e[62]=j):j=e[62];let _;e[63]!==t.exceptions||e[64]!==j?(_=s.jsx(ce,{rows:t.exceptions,rowKey:Ne,empty:"No exceptions in this window.",columns:j}),e[63]=t.exceptions,e[64]=j,e[65]=_):_=e[65];let W;e[66]===Symbol.for("react.memo_cache_sentinel")?(W=["exceptions","pagination"],e[66]=W):W=e[66];let k;e[67]!==Q||e[68]!==t.pagination?(k=s.jsx(re,{meta:t.pagination,href:Q,only:W}),e[67]=Q,e[68]=t.pagination,e[69]=k):k=e[69];let G;return e[70]!==y||e[71]!==v||e[72]!==_||e[73]!==k||e[74]!==m?(G=s.jsxs(fe,{title:"Exceptions",children:[E,m,y,v,_,k]}),e[70]=y,e[71]=v,e[72]=_,e[73]=k,e[74]=m,e[75]=G):G=e[75],G}function ge(t){return s.jsx("span",{className:"font-mono text-xs",children:t.user_ref??""})}function ve(t){return s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source??""})}function be(t){return s.jsx(ye,{severity:t.severity})}function je(t){return s.jsx(he,{handled:t.handled})}function _e(t){return s.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.issue_key?s.jsx(le,{className:"font-mono text-xs font-semibold hover:underline",href:oe(t.issue_id),children:t.class_name}):s.jsx("span",{className:"font-mono text-xs font-semibold",children:t.class_name}),s.jsx("span",{className:"text-muted-foreground line-clamp-1 text-xs",children:t.message})]})}function ke(t){return s.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ne(t){return t.id}function we(t){const[e,n]=t;return s.jsxs(te,{variant:"outline",className:"font-mono",children:[e," (",Z(n),")"]},e)}export{Je as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as H,r as c,j as T,a3 as x}from"./inertia-
|
|
1
|
+
import{B as H,r as c,j as T,a3 as x}from"./inertia-Cuyz2ZHO.js";const V=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ae=H("check",V);var Y=Object.defineProperty,w=(e,t)=>Y(e,"name",{value:t,configurable:!0}),I=!!(typeof window<"u"&&window.document&&window.document.createElement);function X(e,t,{checkForDefaultPrevented:n=!0}={}){return w(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}w(X,"composeEventHandlers");function q(e){if(!I)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}w(q,"getOwnerWindow");function R(e){if(!I)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}w(R,"getOwnerDocument");function $(e,t=!1){const{activeElement:n}=R(e);if(!n?.nodeName)return null;if(j(n)&&n.contentDocument)return $(n.contentDocument.body,t);if(t){const o=n.getAttribute("aria-activedescendant");if(o){const r=R(n).getElementById(o);if(r)return r}}return n}w($,"getActiveElement");function j(e){return e.tagName==="IFRAME"}w(j,"isFrame");var G=Object.defineProperty,S=(e,t)=>G(e,"name",{value:t,configurable:!0});function J(e,t){const n=c.createContext(t);n.displayName=e+"Context";const o=S(i=>{const{children:s,...u}=i,a=c.useMemo(()=>u,Object.values(u));return T.jsx(n.Provider,{value:a,children:s})},"Provider");o.displayName=e+"Provider";function r(i,s={}){const{optional:u=!1}=s,a=c.useContext(n);if(a)return a;if(t!==void 0)return t;if(!u)throw new Error(`\`${i}\` must be used within \`${e}\``)}return S(r,"useContext"),[o,r]}S(J,"createContext");function K(e,t=[]){let n=[];function o(i,s){const u=c.createContext(s);u.displayName=i+"Context";const a=n.length;n=[...n,s];const d=S(f=>{const{scope:v,children:p,...m}=f,E=v?.[e]?.[a]||u,g=c.useMemo(()=>m,Object.values(m));return T.jsx(E.Provider,{value:g,children:p})},"Provider");d.displayName=i+"Provider";function l(f,v,p={}){const{optional:m=!1}=p,E=v?.[e]?.[a]||u,g=c.useContext(E);if(g)return g;if(s!==void 0)return s;if(!m)throw new Error(`\`${f}\` must be used within \`${i}\``)}return S(l,"useContext"),[d,l]}S(o,"createContext");const r=S(()=>{const i=n.map(s=>c.createContext(s));return S(function(u){const a=u?.[e]||i;return c.useMemo(()=>({[`__scope${e}`]:{...u,[e]:a}}),[u,a])},"useScope")},"createScope");return r.scopeName=e,[o,D(r,...t)]}S(K,"createContextScope");function D(...e){const t=e[0];if(e.length===1)return t;const n=S(()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return S(function(i){const s=o.reduce((u,{useScope:a,scopeName:d})=>{const f=a(i)[`__scope${d}`];return{...u,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}S(D,"composeContextScopes");var b=globalThis?.document?c.useLayoutEffect:()=>{},Q=Object.defineProperty,Z=(e,t)=>Q(e,"name",{value:t,configurable:!0}),A=x[" useEffectEvent ".trim().toString()],O=x[" useInsertionEffect ".trim().toString()];function U(e){if(typeof A=="function")return A(e);const t=c.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof O=="function"?O(()=>{t.current=e}):b(()=>{t.current=e}),c.useMemo(()=>((...n)=>t.current?.(...n)),[])}Z(U,"useEffectEvent");var ee=Object.defineProperty,P=(e,t)=>ee(e,"name",{value:t,configurable:!0}),te=x[" useInsertionEffect ".trim().toString()]||b;function ne({prop:e,defaultProp:t,onChange:n=P(()=>{},"onChange"),caller:o}){const[r,i,s]=z({defaultProp:t,onChange:n}),u=e!==void 0,a=u?e:r,d=c.useCallback(l=>{if(u){const f=F(l)?l(e):l;f!==e&&s.current?.(f)}else i(l)},[u,e,i,s]);return[a,d]}P(ne,"useControllableState");function z({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),i=c.useRef(t);return te(()=>{i.current=t},[t]),c.useEffect(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}P(z,"useUncontrolledState");function F(e){return typeof e=="function"}P(F,"isFunction");var M=Symbol("RADIX:SYNC_STATE");function re(e,t,n,o){const{prop:r,defaultProp:i,onChange:s,caller:u}=t,a=r!==void 0,d=U(s),l=[{...n,state:i}];o&&l.push(o);const[f,v]=c.useReducer((g,y)=>{if(y.type===M)return{...g,state:y.state};const N=e(g,y);return a&&!Object.is(N.state,g.state)&&d(N.state),N},...l),p=f.state,m=c.useRef(p);c.useEffect(()=>{m.current!==p&&(m.current=p,a||d(p))},[p,m,a]);const E=c.useMemo(()=>r!==void 0?{...f,state:r}:f,[f,r]);return c.useEffect(()=>{a&&!Object.is(r,f.state)&&v({type:M,state:r})},[r,f.state,a]),[E,v]}P(re,"useControllableStateReducer");var oe=Object.defineProperty,h=(e,t)=>oe(e,"name",{value:t,configurable:!0});function W(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}h(W,"useStateMachine");var fe=h(e=>{const{present:t,children:n}=e,o=L(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),i=k(o.ref,B(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:i}):null},"Presence");function L(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),i=c.useRef("none"),s=c.useRef(void 0),u=e?"mounted":"unmounted",[a,d]=W(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{a==="mounted"?(i.current=s.current??C(o.current),s.current=void 0):i.current="none"},[a]),b(()=>{const l=o.current,f=r.current;if(f!==e){const p=i.current,m=C(l);e?(s.current=m,d("MOUNT")):m==="none"||l?.display==="none"?d("UNMOUNT"):d(f&&p!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),b(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,v=h(m=>{const g=C(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(d("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),p=h(m=>{m.target===t&&(i.current=C(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(l=>{if(l){const f=getComputedStyle(l);o.current=f,s.current=C(f)}else o.current=null;n(l)},[])}}h(L,"usePresence");function _(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}h(_,"setRef");function k(...e){const t=c.useRef(e);return t.current=e,c.useCallback(n=>{const o=t.current;let r=!1;const i=o.map(s=>{const u=_(s,n);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let s=0;s<i.length;s++){const u=i[s];typeof u=="function"?u():_(o[s],null)}}},[])}h(k,"useStableComposedRefs");function C(e){return e?.animationName||"none"}h(C,"getAnimationName");function B(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}h(B,"getElementRef");var se=Object.defineProperty,ce=(e,t)=>se(e,"name",{value:t,configurable:!0});function ie(e){const[t,n]=c.useState(void 0);return b(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,u;if("borderBoxSize"in i){const a=i.borderBoxSize,d=Array.isArray(a)?a[0]:a;s=d.inlineSize,u=d.blockSize}else s=e.offsetWidth,u=e.offsetHeight;n({width:s,height:u})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}ce(ie,"useSize");export{ae as C,fe as P,X as a,b,K as c,ie as d,ne as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,u as V,j as o,e as X,ah as Y,L as Z}from"./inertia-
|
|
1
|
+
import{c as U,u as V,j as o,e as X,ah as Y,L as Z}from"./inertia-Cuyz2ZHO.js";import{D as ee}from"./chart-panel-CC49WTQL.js";import{D as Q}from"./data-table-CzKTEE-O.js";import{P as te,E as ne}from"./env-layout-Kz7wks1x.js";import{u as oe,P as re}from"./percentile-picker-CeQgllxD.js";import{S as L}from"./sort-header-mEJUM3Av.js";import{S as se}from"./sparkline-cell-Dwg7awwh.js";import{B as ie}from"./badge-DRae8XwK.js";import{e as ce}from"./execution-path-FAuIzOXB.js";import{m as G,c as J,w as ae}from"./format-B9SDkrWj.js";import"./series-chart-gnrzhmM6.js";import"./chart-hover-CfoZUY4J.js";import"./chart-DWh7l8yM.js";import"./empty-state-CW4wclK_.js";import"./app-layout-Zc0v-hYh.js";import"./app-wordmark-BA_60AVb.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";import"./use-live-DMTuhKfB.js";import"./segmented-BeIe4uqk.js";import"./arrow-up-CLQ-7heQ.js";function le(t){const e=U.c(3),{outcome:c}=t,a=c==="rollback"?"destructive":c==="restart"?"secondary":c==="commit"?"outline":"secondary",n=c||"open";let s;return e[0]!==n||e[1]!==a?(s=o.jsx(ie,{variant:a,className:"font-mono",children:n}),e[0]=n,e[1]=a,e[2]=s):s=e[2],s}function Ge(t){const e=U.c(70),{environment:c,window:a}=V().props,{percentile:n}=oe(),s=c.application_id,l=c.id;let N;e[0]!==s||e[1]!==l||e[2]!==t.dir||e[3]!==t.sort||e[4]!==a?(N=i=>X.visit(Y(s,l,{window:a,sort:i,dir:t.sort===i&&t.dir==="desc"?"asc":"desc"}),{preserveState:!0}),e[0]=s,e[1]=l,e[2]=t.dir,e[3]=t.sort,e[4]=a,e[5]=N):N=e[5];const r=N;let P;e[6]===Symbol.for("react.memo_cache_sentinel")?(P=o.jsx(te,{title:"Transactions",description:"ActiveRecord transactions, grouped by connection and outcome.",actions:o.jsx(re,{})}),e[6]=P):P=e[6];let m;e[7]!==t.series||e[8]!==n?(m=o.jsx(ee,{label:"Duration",data:t.series,percentile:n}),e[7]=t.series,e[8]=n,e[9]=m):m=e[9];let C,O;e[10]===Symbol.for("react.memo_cache_sentinel")?(C={key:"name",header:"Connection · outcome",cell:be},O={key:"trend",hideOnMobile:!0,header:"Trend",cell:ge},e[10]=C,e[11]=O):(C=e[10],O=e[11]);const A=t.sort==="count",H=t.dir==="asc"?"asc":"desc";let u;e[12]!==r?(u=()=>r("count"),e[12]=r,e[13]=u):u=e[13];let d;e[14]!==A||e[15]!==H||e[16]!==u?(d={key:"n",header:o.jsx(L,{label:"Count",active:A,dir:H,onClick:u}),align:"right",cell:ye},e[14]=A,e[15]=H,e[16]=u,e[17]=d):d=e[17];const K=t.sort==="errors",$=t.dir==="asc"?"asc":"desc";let f;e[18]!==r?(f=()=>r("errors"),e[18]=r,e[19]=f):f=e[19];let h;e[20]!==$||e[21]!==f||e[22]!==K?(h={key:"errors",hideOnMobile:!0,header:o.jsx(L,{label:"Rollbacks",active:K,dir:$,onClick:f}),align:"right",cell:_e},e[20]=$,e[21]=f,e[22]=K,e[23]=h):h=e[23];const W=t.sort==="avg",q=t.dir==="asc"?"asc":"desc";let x;e[24]!==r?(x=()=>r("avg"),e[24]=r,e[25]=x):x=e[25];let p;e[26]!==W||e[27]!==q||e[28]!==x?(p={key:"avg",hideOnMobile:!0,header:o.jsx(L,{label:"Avg",active:W,dir:q,onClick:x}),align:"right",cell:pe},e[26]=W,e[27]=q,e[28]=x,e[29]=p):p=e[29];const z=t.sort===n,F=t.dir==="asc"?"asc":"desc";let _;e[30]!==n||e[31]!==r?(_=()=>r(n),e[30]=n,e[31]=r,e[32]=_):_=e[32];let y;e[33]!==n||e[34]!==z||e[35]!==F||e[36]!==_?(y=o.jsx(L,{label:n,active:z,dir:F,onClick:_}),e[33]=n,e[34]=z,e[35]=F,e[36]=_,e[37]=y):y=e[37];let g;e[38]!==n?(g=i=>o.jsx("span",{className:"font-semibold",children:G(i[n],2)}),e[38]=n,e[39]=g):g=e[39];let b;e[40]!==n||e[41]!==y||e[42]!==g?(b={key:n,header:y,align:"right",cell:g},e[40]=n,e[41]=y,e[42]=g,e[43]=b):b=e[43];let j;e[44]!==h||e[45]!==p||e[46]!==b||e[47]!==d?(j=[C,O,d,h,p,b],e[44]=h,e[45]=p,e[46]=b,e[47]=d,e[48]=j):j=e[48];let k;e[49]!==t.transactions||e[50]!==j?(k=o.jsx(Q,{rows:t.transactions,rowKey:je,empty:"No transactions in this window.",columns:j}),e[49]=t.transactions,e[50]=j,e[51]=k):k=e[51];let D;e[52]===Symbol.for("react.memo_cache_sentinel")?(D=o.jsx("h2",{className:"text-sm font-semibold",children:"Recent transactions"}),e[52]=D):D=e[52];let M,T,E,R;e[53]===Symbol.for("react.memo_cache_sentinel")?(M={key:"when",header:"When",className:"w-40",cell:he},T={key:"conn",hideOnMobile:!0,header:"Connection",cell:fe},E={key:"outcome",header:"Outcome",cell:de},R={key:"statements",hideOnMobile:!0,header:"Statements",align:"right",cell:ue},e[53]=M,e[54]=T,e[55]=E,e[56]=R):(M=e[53],T=e[54],E=e[55],R=e[56]);let v;e[57]!==s||e[58]!==l?(v={key:"in",hideOnMobile:!0,header:"In",cell:i=>i.execution_id?o.jsx(Z,{className:"font-mono text-xs hover:underline",href:ce({applicationId:s,environmentId:l,source:i.execution_source,executionId:i.execution_id}),children:i.execution_preview}):o.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})},e[57]=s,e[58]=l,e[59]=v):v=e[59];let B;e[60]===Symbol.for("react.memo_cache_sentinel")?(B={key:"d",header:"Duration",align:"right",cell:me},e[60]=B):B=e[60];let w;e[61]!==v?(w=[M,T,E,R,v,B],e[61]=v,e[62]=w):w=e[62];let S;e[63]!==t.recent||e[64]!==w?(S=o.jsx(Q,{rows:t.recent,rowKey:xe,columns:w}),e[63]=t.recent,e[64]=w,e[65]=S):S=e[65];let I;return e[66]!==m||e[67]!==k||e[68]!==S?(I=o.jsxs(ne,{title:"Transactions",children:[P,m,k,D,S]}),e[66]=m,e[67]=k,e[68]=S,e[69]=I):I=e[69],I}function me(t){return G(t.duration,2)}function ue(t){return t.statement_count===null?"—":J(t.statement_count)}function de(t){return o.jsx(le,{outcome:t.outcome})}function fe(t){return o.jsx("span",{className:"font-mono text-xs",children:t.connection??""})}function he(t){return o.jsx("span",{className:"text-xs tabular-nums",children:ae(t.occurred_at)})}function xe(t){return t.id}function pe(t){return G(t.avg,2)}function _e(t){return J(t.errors)}function ye(t){return J(t.count)}function ge(t){return o.jsx(se,{data:t.sparkline})}function be(t){return o.jsx("span",{className:"font-mono text-xs",children:t.name})}function je(t){return t.group_hash}export{Ge as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,u as R,j as n,t as A,e as D,L}from"./inertia-
|
|
1
|
+
import{c as M,u as R,j as n,t as A,e as D,L}from"./inertia-Cuyz2ZHO.js";import{D as N}from"./data-table-CzKTEE-O.js";import{E as O}from"./empty-state-CW4wclK_.js";import{P,E as H}from"./env-layout-Kz7wks1x.js";import{c as K,m as j,w as $}from"./format-B9SDkrWj.js";import{_ as E}from"./app-layout-Zc0v-hYh.js";import"./chart-hover-CfoZUY4J.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./checkbox-DPkLUiwM.js";function pe(t){const e=M.c(25),{environment:S}=R().props,w=S.application_id,b=S.id;let c;e[0]!==w||e[1]!==b?(c=r=>r.execution_id?A(w,b,r.execution_id):null,e[0]=w,e[1]=b,e[2]=c):c=e[2];const o=c;let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(P,{title:"Storage",description:"Active Storage service operations: uploads, downloads, deletes, URL generation, analysis, and transforms."}),e[3]=m):m=e[3];let p,u;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(O,{icon:E,title:"No storage operations in this window",description:"Active Storage reads and writes instrumented by the gem appear here."}),u=[{key:"s",header:"Service",cell:G},{key:"o",header:"Operation",cell:F},{key:"n",header:"Count",align:"right",cell:B},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:z},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:W}],e[4]=p,e[5]=u):(p=e[4],u=e[5]);let i;e[6]!==t.ops?(i=n.jsx(N,{rows:t.ops,rowKey:J,empty:p,columns:u}),e[6]=t.ops,e[7]=i):i=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[8]=d):d=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(O,{icon:E,title:"No storage operations in this window",description:"Active Storage reads and writes instrumented by the gem appear here."}),e[9]=f):f=e[9];let s;e[10]!==o?(s={onOpen:(r,v)=>{const k=o(r);k&&(v?.newTab?window.open(k,"_blank"):D.visit(k))}},e[10]=o,e[11]=s):s=e[11];let h,x,_,y;e[12]===Symbol.for("react.memo_cache_sentinel")?(_={key:"when",header:"When",cell:I},y={key:"o",header:"Op",cell:C},h={key:"k",hideOnMobile:!0,header:"Key",cell:q},x={key:"d",header:"Duration",align:"right",cell:T},e[12]=h,e[13]=x,e[14]=_,e[15]=y):(h=e[12],x=e[13],_=e[14],y=e[15]);let a;e[16]!==o?(a=[_,y,h,x,{key:"in",hideOnMobile:!0,header:"In",cell:r=>{const v=o(r);return v?n.jsx(L,{className:"font-mono text-xs hover:underline",href:v,children:r.execution_preview}):null}}],e[16]=o,e[17]=a):a=e[17];let l;e[18]!==t.recent||e[19]!==a||e[20]!==s?(l=n.jsx(N,{rows:t.recent,rowKey:U,empty:f,keyboardNav:s,columns:a}),e[18]=t.recent,e[19]=a,e[20]=s,e[21]=l):l=e[21];let g;return e[22]!==l||e[23]!==i?(g=n.jsxs(H,{title:"Storage",children:[m,i,d,l]}),e[22]=l,e[23]=i,e[24]=g):g=e[24],g}function T(t){return j(t.duration)}function q(t){return n.jsx("span",{className:"font-mono text-xs",children:t.key})}function C(t){return n.jsxs("span",{className:"font-mono text-xs",children:[t.service," ",t.op]})}function I(t){return n.jsx("span",{className:"text-xs",children:$(t.occurred_at)})}function U(t){return t.id}function W(t){return j(t.max)}function z(t){return j(t.avg)}function B(t){return K(t.count)}function F(t){return n.jsx("span",{className:"font-mono text-xs",children:t.op})}function G(t){return t.service}function J(t){return`${t.service}-${t.op}`}export{pe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,u as F,j as t,e as I,A as R,r as A,L as $}from"./inertia-
|
|
1
|
+
import{c as B,u as F,j as t,e as I,A as R,r as A,L as $}from"./inertia-Cuyz2ZHO.js";import{E as G}from"./empty-state-CW4wclK_.js";import{F as H}from"./filter-bar-CJDjWFib.js";import{P as O,E as T}from"./env-layout-Kz7wks1x.js";import{S as J}from"./series-chart-gnrzhmM6.js";import{S as q}from"./stat-ZtxGU8lE.js";import{B as L}from"./badge-DRae8XwK.js";import{C as K,a as M}from"./card-DPjFKfen.js";import{e as Q}from"./execution-path-FAuIzOXB.js";import{c as P,w as z}from"./format-B9SDkrWj.js";import"./app-wordmark-BA_60AVb.js";import"./app-layout-Zc0v-hYh.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./checkbox-DPkLUiwM.js";import"./label-DdCBgiUn.js";import"./use-live-DMTuhKfB.js";import"./segmented-BeIe4uqk.js";import"./chart-hover-CfoZUY4J.js";import"./chart-DWh7l8yM.js";import"./arrow-up-CLQ-7heQ.js";function U(i){const e=B.c(51),{d:s,a:g,e:j}=i,[_,w]=A.useState(!1);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>w(V),e[0]=f):f=e[0];let l;e[1]!==s.gem_name?(l=s.gem_name&&t.jsx(L,{variant:"secondary",className:"font-mono",children:s.gem_name}),e[1]=s.gem_name,e[2]=l):l=e[2];let r;e[3]!==s.horizon?(r=s.horizon&&t.jsxs(L,{variant:"outline",className:"font-mono",children:["removed in ",s.horizon]}),e[3]=s.horizon,e[4]=r):r=e[4];let a;e[5]!==l||e[6]!==r?(a=t.jsxs("div",{className:"flex items-center gap-2",children:[l,r]}),e[5]=l,e[6]=r,e[7]=a):a=e[7];let n;e[8]!==s.message?(n=t.jsx("p",{className:"mt-1 font-mono text-xs whitespace-pre-wrap",children:s.message}),e[8]=s.message,e[9]=n):n=e[9];let o;e[10]!==s.source?(o=s.source&&t.jsx("p",{className:"text-muted-foreground mt-1 font-mono text-xs",children:s.source}),e[10]=s.source,e[11]=o):o=e[11];let c;e[12]!==a||e[13]!==n||e[14]!==o?(c=t.jsxs("div",{className:"min-w-0 flex-1",children:[a,n,o]}),e[12]=a,e[13]=n,e[14]=o,e[15]=c):c=e[15];let x;e[16]!==s.sparkline?(x=t.jsx(J,{data:s.sparkline,className:"h-10 w-32"}),e[16]=s.sparkline,e[17]=x):x=e[17];let m;e[18]!==s.count?(m=P(s.count),e[18]=s.count,e[19]=m):m=e[19];let d;e[20]!==m?(d=t.jsx("div",{className:"text-lg font-semibold tabular-nums",children:m}),e[20]=m,e[21]=d):d=e[21];let p;e[22]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"text-muted-foreground text-xs",children:"occurrences"}),e[22]=p):p=e[22];let u;e[23]!==d?(u=t.jsxs("div",{className:"text-right",children:[d,p]}),e[23]=d,e[24]=u):u=e[24];let h;e[25]!==u||e[26]!==x?(h=t.jsxs("div",{className:"flex shrink-0 items-center gap-4",children:[x,u]}),e[25]=u,e[26]=x,e[27]=h):h=e[27];let v;e[28]!==h||e[29]!==c?(v=t.jsxs("button",{type:"button",onClick:f,className:"flex flex-wrap items-start justify-between gap-4 text-left",children:[c,h]}),e[28]=h,e[29]=c,e[30]=v):v=e[30];let N;e[31]!==s.first_seen_at?(N=z(s.first_seen_at),e[31]=s.first_seen_at,e[32]=N):N=e[32];let b;e[33]!==N?(b=t.jsxs("span",{children:["First seen ",N]}),e[33]=N,e[34]=b):b=e[34];let y;e[35]!==s.last_seen_at?(y=z(s.last_seen_at),e[35]=s.last_seen_at,e[36]=y):y=e[36];let S;e[37]!==y?(S=t.jsxs("span",{children:["Last seen ",y]}),e[37]=y,e[38]=S):S=e[38];let k;e[39]!==b||e[40]!==S?(k=t.jsxs("div",{className:"text-muted-foreground flex gap-4 text-xs",children:[b,S]}),e[39]=b,e[40]=S,e[41]=k):k=e[41];let E;e[42]!==g||e[43]!==s.occurrences||e[44]!==j||e[45]!==_?(E=_&&t.jsx("div",{className:"mt-2 overflow-hidden rounded-lg border",children:t.jsx("table",{className:"w-full text-xs",children:t.jsx("tbody",{children:s.occurrences.map(D=>t.jsxs("tr",{className:"border-t first:border-t-0",children:[t.jsx("td",{className:"px-3 py-1.5 tabular-nums",children:z(D.occurred_at)}),t.jsx("td",{className:"px-3 py-1.5",children:D.execution_id?t.jsx($,{className:"font-mono hover:underline",href:Q({applicationId:g,environmentId:j,source:D.execution_source,executionId:D.execution_id}),children:D.execution_preview}):t.jsx("span",{className:"text-muted-foreground",children:"–"})})]},D.id))})})}),e[42]=g,e[43]=s.occurrences,e[44]=j,e[45]=_,e[46]=E):E=e[46];let C;return e[47]!==v||e[48]!==k||e[49]!==E?(C=t.jsx(K,{children:t.jsxs(M,{className:"flex flex-col gap-2 pt-4",children:[v,k,E]})}),e[47]=v,e[48]=k,e[49]=E,e[50]=C):C=e[50],C}function V(i){return!i}function _e(i){const e=B.c(33),{environment:s,window:g}=F().props,j=s.application_id,_=s.id;let w;e[0]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(O,{title:"Deprecations",description:"ActiveSupport::Deprecation warnings, grouped by gem and message."}),e[0]=w):w=e[0];let f;e[1]!==i.distinct?(f=P(i.distinct),e[1]=i.distinct,e[2]=f):f=e[2];let l;e[3]!==f?(l=t.jsx(q,{label:"Distinct deprecations",value:f}),e[3]=f,e[4]=l):l=e[4];let r;e[5]!==i.total_occurrences?(r=P(i.total_occurrences),e[5]=i.total_occurrences,e[6]=r):r=e[6];let a;e[7]!==r?(a=t.jsx(q,{label:"Total occurrences",value:r}),e[7]=r,e[8]=a):a=e[8];let n;e[9]!==i.new_this_window?(n=P(i.new_this_window),e[9]=i.new_this_window,e[10]=n):n=e[10];let o;e[11]!==n?(o=t.jsx(q,{label:"New this window",value:n}),e[11]=n,e[12]=o):o=e[12];let c;e[13]!==l||e[14]!==a||e[15]!==o?(c=t.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[l,a,o]}),e[13]=l,e[14]=a,e[15]=o,e[16]=c):c=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=[{key:"gem",label:"Gem"}],e[17]=x):x=e[17];let m;e[18]!==j||e[19]!==_||e[20]!==g?(m=h=>I.visit(R(j,_,{window:g,q:h||void 0}),{preserveState:!0}),e[18]=j,e[19]=_,e[20]=g,e[21]=m):m=e[21];let d;e[22]!==i.q||e[23]!==m?(d=t.jsx(H,{value:i.q,fields:x,onChange:m,placeholder:"gem:rails deprecated method"}),e[22]=i.q,e[23]=m,e[24]=d):d=e[24];let p;e[25]!==j||e[26]!==_||e[27]!==i.deprecations?(p=i.deprecations.length===0?t.jsx(G,{title:"No deprecations in this window."}):t.jsx("div",{className:"flex flex-col gap-3",children:i.deprecations.map(h=>t.jsx(U,{d:h,a:j,e:_},h.group_hash))}),e[25]=j,e[26]=_,e[27]=i.deprecations,e[28]=p):p=e[28];let u;return e[29]!==d||e[30]!==p||e[31]!==c?(u=t.jsxs(T,{title:"Deprecations",children:[w,c,d,p]}),e[29]=d,e[30]=p,e[31]=c,e[32]=u):u=e[32],u}export{_e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,u as N,j as l,L as T,G as O}from"./inertia-
|
|
1
|
+
import{c as M,u as N,j as l,L as T,G as O}from"./inertia-Cuyz2ZHO.js";import{D as $}from"./data-table-CzKTEE-O.js";import{E as D}from"./empty-state-CW4wclK_.js";import{P as F,E as H}from"./env-layout-Kz7wks1x.js";import{R as I}from"./relative-time-D5UbF4oO.js";import{S as R,a as C}from"./stat-ZtxGU8lE.js";import{c as d,p as G,m as K}from"./format-B9SDkrWj.js";import{N as W}from"./app-layout-Zc0v-hYh.js";import"./chart-hover-CfoZUY4J.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./arrow-up-CLQ-7heQ.js";import"./checkbox-DPkLUiwM.js";function de(i){const e=M.c(40),{environment:A,window:b}=N().props,S=A.application_id,k=A.id,t=i.summary;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(F,{title:"Profiles",description:"Sampled stack profiles, grouped by the execution they profiled."}),e[0]=h):h=e[0];let o;e[1]!==t.profiles?(o=d(t.profiles),e[1]=t.profiles,e[2]=o):o=e[2];let s;e[3]!==o?(s=l.jsx(R,{label:"Profiles",value:o}),e[3]=o,e[4]=s):s=e[4];let r;e[5]!==t.executions||e[6]!==t.profiled?(r=G(t.profiled,t.executions),e[5]=t.executions,e[6]=t.profiled,e[7]=r):r=e[7];let x;e[8]!==t.profiled?(x=d(t.profiled),e[8]=t.profiled,e[9]=x):x=e[9];let _;e[10]!==t.executions?(_=d(t.executions),e[10]=t.executions,e[11]=_):_=e[11];const w=`${x} of ${_}`;let a;e[12]!==r||e[13]!==w?(a=l.jsx(R,{label:"Executions profiled",value:r,hint:w}),e[12]=r,e[13]=w,e[14]=a):a=e[14];let n;e[15]!==t.avg_samples?(n=d(t.avg_samples),e[15]=t.avg_samples,e[16]=n):n=e[16];let m;e[17]!==n?(m=l.jsx(R,{label:"Avg samples",value:n}),e[17]=n,e[18]=m):m=e[18];let p;e[19]!==s||e[20]!==a||e[21]!==m?(p=l.jsxs(C,{children:[s,a,m]}),e[19]=s,e[20]=a,e[21]=m,e[22]=p):p=e[22];let g;e[23]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx(D,{icon:W,title:"No profiles in this window",description:"Set RAILWATCH_PROFILE_SAMPLE_RATE in the app to profile slow executions."}),e[23]=g):g=e[23];let f;e[24]!==S||e[25]!==k||e[26]!==b?(f={key:"name",header:"Execution",className:"max-w-0",cell:L=>l.jsx(T,{href:O(S,k,L.profile_id,{window:b}),className:"block truncate font-mono text-xs hover:underline",children:L.name??L.group_hash})},e[24]=S,e[25]=k,e[26]=b,e[27]=f):f=e[27];let v,y,j,E;e[28]===Symbol.for("react.memo_cache_sentinel")?(v={key:"n",header:"Profiles",align:"right",cell:J},y={key:"avg",header:"Avg duration",align:"right",cell:B},j={key:"samples",hideOnMobile:!0,header:"Max samples",align:"right",cell:z},E={key:"last",hideOnMobile:!0,header:"Last seen",align:"right",cell:q},e[28]=v,e[29]=y,e[30]=j,e[31]=E):(v=e[28],y=e[29],j=e[30],E=e[31]);let c;e[32]!==f?(c=[f,v,y,j,E],e[32]=f,e[33]=c):c=e[33];let u;e[34]!==i.profiles||e[35]!==c?(u=l.jsx($,{rows:i.profiles,rowKey:Q,empty:g,columns:c}),e[34]=i.profiles,e[35]=c,e[36]=u):u=e[36];let P;return e[37]!==p||e[38]!==u?(P=l.jsxs(H,{title:"Profiles",children:[h,p,u]}),e[37]=p,e[38]=u,e[39]=P):P=e[39],P}function q(i){return l.jsx(I,{iso:i.last_seen_at})}function z(i){return d(i.max_samples)}function B(i){return K(i.avg_duration)}function J(i){return d(i.count)}function Q(i){return i.group_hash}export{de as default};
|
|
@@ -1,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-
|
|
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-Cuyz2ZHO.js";import{C as fe}from"./cursor-load-more-Ddwxe5dZ.js";import{D as de}from"./data-table-CzKTEE-O.js";import{E as he}from"./empty-state-CW4wclK_.js";import{p as Z,F as ue,s as se}from"./filter-bar-CJDjWFib.js";import{P as ge,E as xe}from"./env-layout-Kz7wks1x.js";import{S as pe,F as be}from"./app-layout-Zc0v-hYh.js";import{a as le,S as ve}from"./segmented-BeIe4uqk.js";import{L as ye}from"./status-badge-CH5P-Xkj.js";import{c as oe,w as je}from"./format-B9SDkrWj.js";import"./app-wordmark-BA_60AVb.js";import"./chart-hover-CfoZUY4J.js";import"./badge-DRae8XwK.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./label-DdCBgiUn.js";import"./checkbox-DPkLUiwM.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{r as p,j as c,W as f}from"./inertia-
|
|
1
|
+
import{r as p,j as c,W as f}from"./inertia-Cuyz2ZHO.js";import{a as u}from"./app-wordmark-BA_60AVb.js";var d=Object.defineProperty,v=(r,t)=>d(r,"name",{value:t,configurable:!0}),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],P=l.reduce((r,t)=>{const i=u(`Primitive.${t}`),e=p.forwardRef((o,s)=>{const{asChild:a,...n}=o,m=a?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...n,ref:s})});return e.displayName=`Primitive.${t}`,{...r,[t]:e}},{});function h(r,t){r&&f.flushSync(()=>r.dispatchEvent(t))}v(h,"dispatchDiscreteCustomEvent");export{P,h as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _,u as x,j as r,e as k,v as b}from"./inertia-
|
|
1
|
+
import{c as _,u as x,j as r,e as k,v as b}from"./inertia-Cuyz2ZHO.js";import{V as v}from"./chart-panel-CC49WTQL.js";import{D as j}from"./data-table-CzKTEE-O.js";import{E as S}from"./empty-state-CW4wclK_.js";import{F as C}from"./filter-bar-CJDjWFib.js";import{P as E,E as w}from"./env-layout-Kz7wks1x.js";import{S as M}from"./sparkline-cell-Dwg7awwh.js";import{c as f,m as O}from"./format-B9SDkrWj.js";import{L as P}from"./app-layout-Zc0v-hYh.js";import"./series-chart-gnrzhmM6.js";import"./chart-hover-CfoZUY4J.js";import"./chart-DWh7l8yM.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./checkbox-DPkLUiwM.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 j,u as v,j as n,w as E,e as b}from"./inertia-
|
|
1
|
+
import{c as j,u as v,j as n,w as E,e as b}from"./inertia-Cuyz2ZHO.js";import{D as k}from"./data-table-CzKTEE-O.js";import{E as N}from"./empty-state-CW4wclK_.js";import{P as S,E as C}from"./env-layout-Kz7wks1x.js";import{S as M}from"./status-badge-CH5P-Xkj.js";import{c as O,m as y,w as R}from"./format-B9SDkrWj.js";import{T as P}from"./app-layout-Zc0v-hYh.js";import"./chart-hover-CfoZUY4J.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./checkbox-DPkLUiwM.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{c as z,u as G,j as i,t as J,e as V,$ as Q,L as U}from"./inertia-
|
|
1
|
+
import{c as z,u as G,j as i,t as J,e as V,$ as Q,L as U}from"./inertia-Cuyz2ZHO.js";import{V as X}from"./chart-panel-CC49WTQL.js";import{D as H}from"./data-table-CzKTEE-O.js";import{E as W}from"./empty-state-CW4wclK_.js";import{F as Y}from"./filter-bar-CJDjWFib.js";import{P as Z,E as ee}from"./env-layout-Kz7wks1x.js";import{u as te,P as ie}from"./percentile-picker-CeQgllxD.js";import{S as re}from"./sparkline-cell-Dwg7awwh.js";import{B as le}from"./badge-DRae8XwK.js";import{m as F,c as ne,w as ae}from"./format-B9SDkrWj.js";import{M as I}from"./app-layout-Zc0v-hYh.js";import"./series-chart-gnrzhmM6.js";import"./chart-hover-CfoZUY4J.js";import"./chart-DWh7l8yM.js";import"./app-wordmark-BA_60AVb.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./checkbox-DPkLUiwM.js";function We(t){const e=z.c(51),{environment:K,window:L}=G().props,{percentile:l}=te(),n=K.application_id,a=K.id;let y;e[0]!==n||e[1]!==a?(y=r=>r.execution_id?J(n,a,r.execution_id):null,e[0]=n,e[1]=a,e[2]=y):y=e[2];const s=y;let _;e[3]===Symbol.for("react.memo_cache_sentinel")?(_=i.jsx(Z,{title:"Mail",description:"Action Mailer deliveries: recipients, delivery method, render and send time.",actions:i.jsx(ie,{})}),e[3]=_):_=e[3];let o;e[4]!==t.series?(o=i.jsx(X,{legend:"outcome",label:"Deliveries",seriesLabel:"Deliveries",data:t.series}),e[4]=t.series,e[5]=o):o=e[5];let b,g,k,v,j,M;e[6]===Symbol.for("react.memo_cache_sentinel")?(b=i.jsx(W,{icon:I,title:"No mail sent in this window",description:"ActionMailer deliveries appear here as your app sends them."}),g={key:"m",header:"Mailer",cell:ge},k={key:"trend",hideOnMobile:!0,header:"Trend",cell:be},v={key:"n",header:"Sent",align:"right",cell:_e},j={key:"f",hideOnMobile:!0,header:"Failed",align:"right",cell:ye},M={key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:xe},e[6]=b,e[7]=g,e[8]=k,e[9]=v,e[10]=j,e[11]=M):(b=e[6],g=e[7],k=e[8],v=e[9],j=e[10],M=e[11]);let c;e[12]!==l?(c=r=>i.jsx("span",{className:"font-semibold",children:F(r[l])}),e[12]=l,e[13]=c):c=e[13];let m;e[14]!==l||e[15]!==c?(m=[g,k,v,j,M,{key:l,header:l,align:"right",cell:c}],e[14]=l,e[15]=c,e[16]=m):m=e[16];let d;e[17]!==t.mailers||e[18]!==m?(d=i.jsx(H,{rows:t.mailers,rowKey:ke,empty:b,columns:m}),e[17]=t.mailers,e[18]=m,e[19]=d):d=e[19];let w;e[20]===Symbol.for("react.memo_cache_sentinel")?(w=i.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[20]=w):w=e[20];let S;e[21]===Symbol.for("react.memo_cache_sentinel")?(S=[{key:"mailer",label:"Mailer"},{key:"kind",label:"Kind"}],e[21]=S):S=e[21];let u;e[22]!==n||e[23]!==a||e[24]!==L?(u=r=>V.visit(Q(n,a,{window:L,q:r||void 0}),{preserveState:!0}),e[22]=n,e[23]=a,e[24]=L,e[25]=u):u=e[25];let h;e[26]!==t.q||e[27]!==u?(h=i.jsx(Y,{value:t.q,fields:S,onChange:u,placeholder:"mailer:WidgetMailer kind:smtp"}),e[26]=t.q,e[27]=u,e[28]=h):h=e[28];let N;e[29]===Symbol.for("react.memo_cache_sentinel")?(N=i.jsx(W,{icon:I,title:"No mail sent in this window",description:"ActionMailer deliveries appear here as your app sends them."}),e[29]=N):N=e[29];let p;e[30]!==s?(p={onOpen:(r,B)=>{const R=s(r);R&&(B?.newTab?globalThis.window.open(R,"_blank"):V.visit(R))}},e[30]=s,e[31]=p):p=e[31];let P,O,E,C,q,A,D,T;e[32]===Symbol.for("react.memo_cache_sentinel")?(P={key:"when",header:"When",cell:pe},O={key:"m",header:"Mailer",cell:he},E={key:"s",header:"Subject",cell:ue},C={key:"to",hideOnMobile:!0,header:"To/CC/BCC",align:"right",cell:de},q={key:"att",hideOnMobile:!0,header:"Att.",align:"right",cell:me},A={key:"dm",hideOnMobile:!0,header:"Via",cell:ce},D={key:"st",header:"",cell:oe},T={key:"d",hideOnMobile:!0,header:"Duration",align:"right",cell:se},e[32]=P,e[33]=O,e[34]=E,e[35]=C,e[36]=q,e[37]=A,e[38]=D,e[39]=T):(P=e[32],O=e[33],E=e[34],C=e[35],q=e[36],A=e[37],D=e[38],T=e[39]);let f;e[40]!==s?(f=[P,O,E,C,q,A,D,T,{key:"in",hideOnMobile:!0,header:"In",cell:r=>{const B=s(r);return B?i.jsx(U,{className:"font-mono text-xs hover:underline",href:B,children:r.execution_preview}):null}}],e[40]=s,e[41]=f):f=e[41];let x;e[42]!==t.recent||e[43]!==p||e[44]!==f?(x=i.jsx(H,{rows:t.recent,rowKey:fe,empty:N,keyboardNav:p,columns:f}),e[42]=t.recent,e[43]=p,e[44]=f,e[45]=x):x=e[45];let $;return e[46]!==d||e[47]!==h||e[48]!==o||e[49]!==x?($=i.jsxs(ee,{title:"Mail",children:[_,o,d,w,h,x]}),e[46]=d,e[47]=h,e[48]=o,e[49]=x,e[50]=$):$=e[50],$}function se(t){return F(t.duration)}function oe(t){return t.failed?i.jsx(le,{variant:"destructive",children:"failed"}):null}function ce(t){return t.delivery_method}function me(t){return t.attachments}function de(t){return`${t.to}/${t.cc}/${t.bcc}`}function ue(t){return i.jsx("span",{className:"line-clamp-1 text-xs",children:t.subject})}function he(t){return i.jsx("span",{className:"font-mono text-xs",children:t.mailer})}function pe(t){return i.jsx("span",{className:"text-xs",children:ae(t.occurred_at)})}function fe(t){return t.id}function xe(t){return F(t.avg)}function ye(t){return t.errors}function _e(t){return ne(t.count)}function be(t){return i.jsx(re,{data:t.sparkline})}function ge(t){return i.jsx("span",{className:"font-mono text-xs",children:t.name})}function ke(t){return t.group_hash}export{We as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,u as _,j as o,y as b,e as h}from"./inertia-
|
|
1
|
+
import{c as x,u as _,j as o,y as b,e as h}from"./inertia-Cuyz2ZHO.js";import{D as k}from"./data-table-CzKTEE-O.js";import{E as w}from"./empty-state-CW4wclK_.js";import{E as j,P as v}from"./env-layout-Kz7wks1x.js";import{w as N,c as R}from"./format-B9SDkrWj.js";import{R as D}from"./app-layout-Zc0v-hYh.js";import"./chart-hover-CfoZUY4J.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./checkbox-DPkLUiwM.js";function X(t){const e=x.c(13),{environment:y}=_().props,d=y.application_id,f=y.id;let s;e[0]!==d||e[1]!==f?(s=i=>b(d,f,i.id),e[0]=d,e[1]=f,e[2]=s):s=e[2];const l=s;let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(v,{withWindow:!1,title:"Deploys",description:"Recorded by bin/rails railwatch:deploy or the Kamal post-deploy hook. Click one to compare the hour before and after."}),e[3]=a):a=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(w,{icon:D,title:"No deploys recorded",description:"Run bin/rails railwatch:deploy or install the Kamal hook to track deploys."}),e[4]=m):m=e[4];let r,n;e[5]!==l?(r=i=>h.visit(l(i)),n={onOpen:(i,u)=>u?.newTab?window.open(l(i),"_blank"):h.visit(l(i))},e[5]=l,e[6]=r,e[7]=n):(r=e[6],n=e[7]);let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=[{key:"when",header:"When",cell:C},{key:"d",header:"Deploy",cell:P},{key:"r",hideOnMobile:!0,header:"Ref",cell:M},{key:"n",hideOnMobile:!0,header:"Name",cell:g},{key:"by",hideOnMobile:!0,header:"By",cell:S},{key:"c",hideOnMobile:!0,header:"Commits",align:"right",cell:O},{key:"s",header:"Server",cell:E}],e[8]=c):c=e[8];let p;return e[9]!==t.deploys||e[10]!==r||e[11]!==n?(p=o.jsxs(j,{title:"Deploys",children:[a,o.jsx(k,{rows:t.deploys,rowKey:K,empty:m,onRowClick:r,keyboardNav:n,columns:c})]}),e[9]=t.deploys,e[10]=r,e[11]=n,e[12]=p):p=e[12],p}function E(t){return o.jsx("span",{className:"font-mono text-xs",children:t.server})}function O(t){return R(t.commits_count)}function S(t){return o.jsx("span",{className:"text-xs",children:t.performer})}function g(t){return t.name}function M(t){return o.jsx("span",{className:"font-mono text-xs",children:t.ref})}function P(t){return o.jsx("span",{className:"font-mono text-xs",children:t.deploy})}function C(t){return o.jsx("span",{className:"text-xs",children:N(t.deployed_at)})}function K(t){return t.id}export{X as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,u as S,r as F,j as s,L as z,i as A,b as R,d as B,e as w,f as L}from"./inertia-
|
|
1
|
+
import{c as C,u as S,r as F,j as s,L as z,i as A,b as R,d as B,e as w,f as L}from"./inertia-Cuyz2ZHO.js";import{E as J}from"./empty-state-CW4wclK_.js";import{p as O,F as D,s as H}from"./filter-bar-CJDjWFib.js";import{J as I}from"./json-viewer-DH2W9HXf.js";import{P as T,E as V}from"./env-layout-Kz7wks1x.js";import{R as W}from"./relative-time-D5UbF4oO.js";import{B as $}from"./badge-DRae8XwK.js";import{B as b}from"./app-wordmark-BA_60AVb.js";import{C as G,a as K}from"./app-layout-Zc0v-hYh.js";import"./use-clipboard-DNefo-ky.js";import"./index-BfbSo01U.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./format-B9SDkrWj.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./checkbox-DPkLUiwM.js";function xe(i){const e=C.c(30),{environment:c}=S().props,[y,E]=F.useState(null);let f;e[0]!==c?(f=t=>{const u=c?R(c.application_id,c.id,{q:t||void 0}):B({q:t||void 0});w.visit(u,{preserveState:!0,preserveScroll:!0})},e[0]=c,e[1]=f):f=e[1];const l=f,P=Q;let x;e[2]!==i.q?(x=O(i.q),e[2]=i.q,e[3]=x):x=e[3];const r=x,p=r.fields.status==="failed";let h;e[4]!==p||e[5]!==r.fields||e[6]!==r.text||e[7]!==l?(h=()=>{const t={...r.fields};p?delete t.status:t.status="failed",l(H({text:r.text,fields:t}))},e[4]=p,e[5]=r.fields,e[6]=r.text,e[7]=l,e[8]=h):h=e[8];const _=h;let v,j;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=[{title:"Alerts",href:"#"}],j=s.jsx(T,{withWindow:!1,title:"Alerts",description:"Fired alerts across your integrations, newest first."}),e[9]=v,e[10]=j):(v=e[9],j=e[10]);let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g={key:"event",label:"Event",options:["new_issue","regressed_issue","threshold","quota"]},e[11]=g):g=e[11];let a;e[12]!==i.statuses?(a=[g,{key:"status",label:"Status",options:i.statuses}],e[12]=i.statuses,e[13]=a):a=e[13];let o;e[14]!==i.q||e[15]!==a||e[16]!==l?(o=s.jsx(D,{value:i.q,fields:a,onChange:l,placeholder:"event:new_issue status:failed"}),e[14]=i.q,e[15]=a,e[16]=l,e[17]=o):o=e[17];const k=p?"default":"outline";let n;e[18]!==k||e[19]!==_?(n=s.jsx(b,{size:"sm",variant:k,className:"h-8",onClick:_,children:"Failed only"}),e[18]=k,e[19]=_,e[20]=n):n=e[20];let d;e[21]!==o||e[22]!==n?(d=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[o,n]}),e[21]=o,e[22]=n,e[23]=d):d=e[23];let m;e[24]!==y||e[25]!==i.alerts?(m=i.alerts.length===0?s.jsx(J,{title:"No alerts have fired."}):s.jsx("div",{className:"divide-y rounded-md border",children:i.alerts.map(t=>{const u=y===t.id;return s.jsxs("div",{className:"p-3",children:[s.jsxs("button",{type:"button",className:"flex w-full flex-wrap items-center gap-3 text-left text-sm",onClick:()=>E(u?null:t.id),children:[u?s.jsx(G,{className:"text-muted-foreground size-4 shrink-0"}):s.jsx(K,{className:"text-muted-foreground size-4 shrink-0"}),s.jsx("span",{className:"font-mono text-xs",children:t.event}),s.jsxs("span",{className:"text-muted-foreground text-xs",children:[t.integration.name," (",t.integration.kind,")"]}),t.issue&&s.jsxs(z,{href:A(t.issue.id),onClick:M,className:"text-xs hover:underline",children:[s.jsx("span",{className:"font-mono font-semibold",children:t.issue.key})," ",s.jsx("span",{className:"text-muted-foreground",children:t.issue.title})]}),s.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[s.jsx($,{variant:t.status==="failed"?"destructive":"outline",className:"capitalize",title:t.error??void 0,children:t.status}),s.jsx(W,{iso:t.sent_at??t.created_at,className:"text-muted-foreground text-xs"}),t.status==="failed"&&s.jsx(b,{size:"sm",variant:"outline",onClick:q=>{q.stopPropagation(),P(t.id)},children:"Retry"})]})]}),u&&s.jsxs("div",{className:"mt-3 space-y-2 pl-7",children:[t.error&&s.jsx("p",{className:"text-destructive text-xs",children:t.error}),s.jsx(I,{data:t.payload})]})]},t.id)})}),e[24]=y,e[25]=i.alerts,e[26]=m):m=e[26];let N;return e[27]!==d||e[28]!==m?(N=s.jsxs(V,{title:"Alerts",crumbs:v,children:[j,d,m]}),e[27]=d,e[28]=m,e[29]=N):N=e[29],N}function M(i){return i.stopPropagation()}function Q(i){return w.post(L(i),{},{preserveScroll:!0})}export{xe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ne,u as re,r as M,ar as ie,j as t,a_ as le,F as U,e as q,a$ as oe,b0 as G}from"./inertia-
|
|
1
|
+
import{c as ne,u as re,r as M,ar as ie,j as t,a_ as le,F as U,e as q,a$ as oe,b0 as G}from"./inertia-Cuyz2ZHO.js";import{I as v}from"./input-error-hog6gGxg.js";import{D as J}from"./data-table-CzKTEE-O.js";import{E as Q}from"./empty-state-CW4wclK_.js";import{P as de,E as me}from"./env-layout-Kz7wks1x.js";import{R as ce}from"./relative-time-D5UbF4oO.js";import{B as N}from"./app-wordmark-BA_60AVb.js";import{b as X,c as Y,C as Z,a as ee}from"./card-DPjFKfen.js";import{L as r,I as o}from"./label-DdCBgiUn.js";import{B as te}from"./live-dot-BZgYTYdt.js";import"./chart-hover-CfoZUY4J.js";import"./badge-DRae8XwK.js";import"./app-layout-Zc0v-hYh.js";import"./index-BfbSo01U.js";import"./index-CBip6V4z.js";import"./checkbox-DPkLUiwM.js";import"./use-live-DMTuhKfB.js";import"./format-B9SDkrWj.js";import"./segmented-BeIe4uqk.js";function qe(s){const e=ne.c(56),{environment:z}=re().props,[k,se]=M.useState(s.kinds[0]),[y,H]=M.useState(s.metrics[0]),[w,ae]=M.useState(s.anomaly_target_kinds[0]),[F,O]=M.useState(s.anomaly_metrics[0]),B=s.anomaly_metrics_for_kind[w]??s.anomaly_metrics,D=s.metrics_for_kind[k]??s.metrics,I=s.units[y]??"ms",W=I==="$"?"Limit (US$)":I==="%"?"Limit (%)":I===""?"Limit (count)":"Limit (ms)",a=z.application_id,n=z.id;let S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(de,{withWindow:!1,title:"Thresholds",description:"Performance rules. When a route, job, or query crosses one, Railwatch opens a performance issue and alerts the rules subscribed to thresholds."}),e[0]=S):S=e[0];let C;e[1]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(X,{children:t.jsx(Y,{children:"Add a threshold"})}),e[1]=C):C=e[1];let d;e[2]!==a||e[3]!==n?(d=ie(a,n),e[2]=a,e[3]=n,e[4]=d):d=e[4];let m;e[5]!==D||e[6]!==k||e[7]!==W||e[8]!==y||e[9]!==s.jobs||e[10]!==s.kinds||e[11]!==s.llm_models||e[12]!==s.metrics||e[13]!==s.metrics_for_kind||e[14]!==s.routes?(m=i=>{const{errors:_,processing:$}=i;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"target_kind",children:"Kind"}),t.jsx("select",{id:"target_kind",name:"target_kind",value:k,onChange:l=>{se(l.target.value);const b=s.metrics_for_kind[l.target.value]??s.metrics;b.includes(y)||H(b[0])},className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:s.kinds.map(Ne)})]}),t.jsxs("div",{className:"grid gap-1 md:col-span-2",children:[t.jsx(r,{htmlFor:"target",children:"Target"}),t.jsx(o,{id:"target",name:"target",defaultValue:"*",list:"targets",placeholder:"* for all, or a route / job name"}),t.jsxs("datalist",{id:"targets",children:[t.jsx("option",{value:"*"}),t.jsx("option",{value:"unmatched"}),s.routes.map(ve),s.jobs.map(be),s.llm_models.map(ye)]}),t.jsx(v,{messages:_.target})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"metric",children:"Metric"}),t.jsx("select",{id:"metric",name:"metric",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",value:y,onChange:l=>H(l.target.value),children:D.map(_e)})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"limit",children:W}),t.jsx(o,{id:"limit",name:"limit",type:"number",step:"any",defaultValue:2e3}),t.jsx(v,{messages:_.limit})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"window_minutes",children:"Window (min)"}),t.jsx(o,{id:"window_minutes",name:"window_minutes",type:"number",defaultValue:5})]}),t.jsx("div",{className:"md:col-span-6",children:t.jsx(N,{disabled:$,children:"Add threshold"})})]})},e[5]=D,e[6]=k,e[7]=W,e[8]=y,e[9]=s.jobs,e[10]=s.kinds,e[11]=s.llm_models,e[12]=s.metrics,e[13]=s.metrics_for_kind,e[14]=s.routes,e[15]=m):m=e[15];let c;e[16]!==d||e[17]!==m?(c=t.jsxs(Z,{children:[C,t.jsx(ee,{children:t.jsx(U,{method:"post",action:d,className:"grid gap-3 md:grid-cols-6",children:m})})]}),e[16]=d,e[17]=m,e[18]=c):c=e[18];let E,A;e[19]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Q,{icon:te,title:"No thresholds yet",description:"Start with requests * p95 2000ms to get alerted on regressions."}),A={key:"d",header:"Rule",cell:je},e[19]=E,e[20]=A):(E=e[19],A=e[20]);let h;e[21]!==a||e[22]!==n?(h=[A,{key:"x",header:"",align:"right",cell:i=>t.jsx(N,{size:"sm",variant:"ghost",onClick:()=>q.delete(oe(a,n,i.id)),children:"Remove"})}],e[21]=a,e[22]=n,e[23]=h):h=e[23];let u;e[24]!==s.thresholds||e[25]!==h?(u=t.jsx(J,{rows:s.thresholds,rowKey:fe,empty:E,columns:h}),e[24]=s.thresholds,e[25]=h,e[26]=u):u=e[26];let R;e[27]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsxs("div",{children:[t.jsx("h2",{className:"text-base font-semibold",children:"Anomaly rules"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"A threshold needs a number you already know. An anomaly rule learns one: it compares the last few minutes against the same clock window on each of the previous days and opens an issue when today sits more than the given number of standard deviations above that baseline."})]}),e[27]=R):R=e[27];let T;e[28]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(X,{children:t.jsx(Y,{children:"Add an anomaly rule"})}),e[28]=T):T=e[28];let x;e[29]!==a||e[30]!==n?(x=le(a,n),e[29]=a,e[30]=n,e[31]=x):x=e[31];let p;e[32]!==B||e[33]!==w||e[34]!==F||e[35]!==s.anomaly_metrics||e[36]!==s.anomaly_metrics_for_kind||e[37]!==s.anomaly_target_kinds?(p=i=>{const{errors:_,processing:$}=i;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"anomaly_target_kind",children:"Kind"}),t.jsx("select",{id:"anomaly_target_kind",name:"target_kind",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",value:w,onChange:l=>{ae(l.target.value);const b=s.anomaly_metrics_for_kind[l.target.value]??s.anomaly_metrics;b.includes(F)||O(b[0])},children:s.anomaly_target_kinds.map(ge)})]}),t.jsxs("div",{className:"grid gap-1 md:col-span-2",children:[t.jsx(r,{htmlFor:"anomaly_target",children:"Target"}),t.jsx(o,{id:"anomaly_target",name:"target",defaultValue:"*",list:"targets",placeholder:"* for all, or a route / job name"}),t.jsx(v,{messages:_.target})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"anomaly_metric",children:"Metric"}),t.jsx("select",{id:"anomaly_metric",name:"metric",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",value:F,onChange:l=>O(l.target.value),children:B.map(pe)})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"deviation",children:"Deviation (σ)"}),t.jsx(o,{id:"deviation",name:"deviation",type:"number",step:"0.5",min:"0.5",defaultValue:3}),t.jsx(v,{messages:_.deviation})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"anomaly_window_minutes",children:"Window (min)"}),t.jsx(o,{id:"anomaly_window_minutes",name:"window_minutes",type:"number",defaultValue:15})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"baseline_days",children:"Baseline (days)"}),t.jsx(o,{id:"baseline_days",name:"baseline_days",type:"number",defaultValue:7}),t.jsx(v,{messages:_.baseline_days})]}),t.jsxs("div",{className:"grid gap-1",children:[t.jsx(r,{htmlFor:"enabled",children:"Status"}),t.jsxs("select",{id:"enabled",name:"enabled",className:"border-input h-9 rounded-md border bg-transparent px-2 text-sm",children:[t.jsx("option",{value:"true",children:"enabled"}),t.jsx("option",{value:"false",children:"disabled"})]})]}),t.jsx("div",{className:"md:col-span-6",children:t.jsx(N,{disabled:$,children:"Add anomaly rule"})})]})},e[32]=B,e[33]=w,e[34]=F,e[35]=s.anomaly_metrics,e[36]=s.anomaly_metrics_for_kind,e[37]=s.anomaly_target_kinds,e[38]=p):p=e[38];let g;e[39]!==x||e[40]!==p?(g=t.jsxs(Z,{children:[T,t.jsx(ee,{children:t.jsx(U,{method:"post",action:x,className:"grid gap-3 md:grid-cols-6",children:p})})]}),e[39]=x,e[40]=p,e[41]=g):g=e[41];let L,P,K;e[42]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(Q,{icon:te,title:"No anomaly rules yet",description:"Start with requests * p95 at 3σ over a 7-day baseline."}),P={key:"d",header:"Rule",cell:ue},K={key:"f",header:"Last fired",hideOnMobile:!0,cell:he},e[42]=L,e[43]=P,e[44]=K):(L=e[42],P=e[43],K=e[44]);let j;e[45]!==a||e[46]!==n?(j=[P,K,{key:"x",header:"",align:"right",cell:i=>t.jsxs("span",{className:"flex justify-end gap-1",children:[t.jsx(N,{size:"sm",variant:"ghost",onClick:()=>q.patch(G(a,n,i.id),{enabled:!i.enabled}),children:i.enabled?"Disable":"Enable"}),t.jsx(N,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>q.delete(G(a,n,i.id)),children:"Remove"})]})}],e[45]=a,e[46]=n,e[47]=j):j=e[47];let f;e[48]!==s.anomaly_rules||e[49]!==j?(f=t.jsx(J,{rows:s.anomaly_rules,rowKey:xe,empty:L,columns:j}),e[48]=s.anomaly_rules,e[49]=j,e[50]=f):f=e[50];let V;return e[51]!==g||e[52]!==f||e[53]!==c||e[54]!==u?(V=t.jsxs(me,{title:"Thresholds",children:[S,c,u,R,g,f]}),e[51]=g,e[52]=f,e[53]=c,e[54]=u,e[55]=V):V=e[55],V}function he(s){return t.jsx(ce,{iso:s.last_fired_at,className:"text-muted-foreground font-mono text-xs"})}function ue(s){return t.jsxs("span",{className:"text-sm",children:[s.description,s.enabled?null:t.jsx("span",{className:"text-muted-foreground label-caps ml-2",children:"disabled"})]})}function xe(s){return s.id}function pe(s){return t.jsx("option",{value:s,children:s},s)}function ge(s){return t.jsx("option",{value:s,children:s},s)}function je(s){return t.jsx("span",{className:"text-sm",children:s.description})}function fe(s){return s.id}function _e(s){return t.jsx("option",{value:s,children:s},s)}function ye(s){return t.jsx("option",{value:s},s)}function be(s){return t.jsx("option",{value:s},s)}function ve(s){return t.jsx("option",{value:s},s)}function Ne(s){return t.jsx("option",{value:s,children:s},s)}export{qe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,u as C,j as n,ay as D,e as R,L as K,i as H}from"./inertia-
|
|
1
|
+
import{c as B,u as C,j as n,ay as D,e as R,L as K,i as H}from"./inertia-Cuyz2ZHO.js";import{D as T}from"./data-table-CzKTEE-O.js";import{E as W}from"./empty-state-CW4wclK_.js";import{O as I}from"./origin-identity-BYt2uiuo.js";import{P as A,E as F}from"./env-layout-Kz7wks1x.js";import{R as J}from"./relative-time-D5UbF4oO.js";import{S as Q}from"./status-badge-CH5P-Xkj.js";import{B as $}from"./badge-DRae8XwK.js";import{m as P,a as q,w as z}from"./format-B9SDkrWj.js";import{K as G}from"./app-layout-Zc0v-hYh.js";import"./chart-hover-CfoZUY4J.js";import"./tenant-path-CQoP-BeF.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./app-wordmark-BA_60AVb.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./checkbox-DPkLUiwM.js";function Te(t){const e=B.c(42),{environment:M,range:a,window:l}=C().props,i=M.application_id,s=M.id;let k;e[0]!==i||e[1]!==s?(k=r=>D(i,s,r.execution_id),e[0]=i,e[1]=s,e[2]=k):k=e[2];const x=k;let _;e[3]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(A,{title:"Scheduled tasks",description:"Solid Queue recurring tasks from config/recurring.yml: runs, failures, and missed schedules."}),e[3]=_):_=e[3];let o;e[4]!==t.missed?(o=t.missed.length>0&&n.jsx("div",{className:"flex flex-wrap gap-2",children:t.missed.map(de)}),e[4]=t.missed,e[5]=o):o=e[5];let y,g;e[6]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(W,{icon:G,title:"No scheduled task has run in this window",description:"Recurring and scheduled job runs appear here as they execute."}),g=[{key:"k",header:"Task",cell:oe},{key:"s",header:"Schedule",cell:le},{key:"next",hideOnMobile:!0,header:"Next run",cell:ae},{key:"n",header:"Runs",align:"right",cell:se},{key:"f",hideOnMobile:!0,header:"Failed",align:"right",cell:ie},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:re},{key:"last",header:"Last run",align:"right",cell:ne}],e[6]=y,e[7]=g):(y=e[6],g=e[7]);let c;e[8]!==t.tasks?(c=n.jsx(T,{rows:t.tasks,rowKey:ce,empty:y,columns:g}),e[8]=t.tasks,e[9]=c):c=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx("h2",{className:"text-sm font-semibold",children:"Recent runs"}),e[10]=j):j=e[10];let d,m;e[11]!==x?(d=r=>R.visit(x(r)),m={onOpen:(r,L)=>L?.newTab?window.open(x(r),"_blank"):R.visit(x(r))},e[11]=x,e[12]=d,e[13]=m):(d=e[12],m=e[13]);let w,b,v,O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O={key:"when",header:"When",cell:ee},w={key:"k",header:"Task",cell:Z},b={key:"job",hideOnMobile:!0,header:"Job",cell:Y},v={key:"o",header:"Outcome",cell:X},e[14]=w,e[15]=b,e[16]=v,e[17]=O):(w=e[14],b=e[15],v=e[16],O=e[17]);let u;e[18]!==i||e[19]!==s||e[20]!==a||e[21]!==l?(u={key:"user",hideOnMobile:!0,header:"Origin user",cell:r=>n.jsx(I,{...r,applicationId:i,environmentId:s,kind:"user",range:a,window:l})},e[18]=i,e[19]=s,e[20]=a,e[21]=l,e[22]=u):u=e[22];let h;e[23]!==i||e[24]!==s||e[25]!==a||e[26]!==l?(h={key:"tenant",hideOnMobile:!0,header:"Origin tenant",cell:r=>n.jsx(I,{...r,applicationId:i,environmentId:s,kind:"tenant",range:a,window:l})},e[23]=i,e[24]=s,e[25]=a,e[26]=l,e[27]=h):h=e[27];let S,N;e[28]===Symbol.for("react.memo_cache_sentinel")?(S={key:"d",hideOnMobile:!0,header:"Duration",align:"right",cell:V},N={key:"ex",hideOnMobile:!0,header:"Exception",cell:U},e[28]=S,e[29]=N):(S=e[28],N=e[29]);let f;e[30]!==u||e[31]!==h?(f=[O,w,b,v,u,h,S,N],e[30]=u,e[31]=h,e[32]=f):f=e[32];let p;e[33]!==t.runs||e[34]!==f||e[35]!==d||e[36]!==m?(p=n.jsx(T,{rows:t.runs,rowKey:te,onRowClick:d,keyboardNav:m,columns:f}),e[33]=t.runs,e[34]=f,e[35]=d,e[36]=m,e[37]=p):p=e[37];let E;return e[38]!==p||e[39]!==o||e[40]!==c?(E=n.jsxs(F,{title:"Scheduled tasks",children:[_,o,c,j,p]}),e[38]=p,e[39]=o,e[40]=c,e[41]=E):E=e[41],E}function U(t){return n.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function V(t){return P(t.duration)}function X(t){return n.jsx(Q,{outcome:t.outcome})}function Y(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function Z(t){return n.jsx("span",{className:"font-mono text-xs",children:t.task_key})}function ee(t){return n.jsx("span",{className:"text-xs",children:z(t.occurred_at)})}function te(t){return t.execution_id}function ne(t){return q(t.last_run_at)}function re(t){return P(t.avg)}function ie(t){return n.jsx("span",{className:t.failed?"text-destructive":"",children:t.failed})}function se(t){return t.runs}function ae(t){return n.jsx("span",{className:"text-muted-foreground text-xs",children:t.next_run_at?n.jsx(J,{iso:t.next_run_at}):"–"})}function le(t){return n.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.schedule??"–"})}function oe(t){return n.jsx("span",{className:"font-mono text-xs",children:t.task_key})}function ce(t){return t.task_key}function de(t){return n.jsx(K,{href:H(t.id),children:n.jsxs($,{variant:"destructive",children:[t.key," · ",t.title]})},t.id)}export{Te as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as D,u as P,j as i,t as L,e as A,L as B}from"./inertia-
|
|
1
|
+
import{c as D,u as P,j as i,t as L,e as A,L as B}from"./inertia-Cuyz2ZHO.js";import{D as M}from"./data-table-CzKTEE-O.js";import{E as O}from"./empty-state-CW4wclK_.js";import{P as F,E as H}from"./env-layout-Kz7wks1x.js";import{c as R,m as j,w as K}from"./format-B9SDkrWj.js";import{B as S}from"./app-layout-Zc0v-hYh.js";import"./chart-hover-CfoZUY4J.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./checkbox-DPkLUiwM.js";function pe(t){const e=D.c(26),{environment:E}=P().props,N=E.application_id,w=E.id;let c;e[0]!==N||e[1]!==w?(c=n=>n.execution_id?L(N,w,n.execution_id):null,e[0]=N,e[1]=w,e[2]=c):c=e[2];const r=c;let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(F,{title:"Notifications",description:"ActionMailer/Noticed deliveries, grouped by notifier and delivery method."}),e[3]=m):m=e[3];let u,f;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx(O,{icon:S,title:"No notifications in this window",description:"Notifications delivered by your app appear here as they're sent."}),f=[{key:"n",header:"Notifier",cell:U},{key:"c",hideOnMobile:!0,header:"Count",align:"right",cell:Q},{key:"f",hideOnMobile:!0,header:"Failed",align:"right",cell:J},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:G},{key:"p95",header:"p95",align:"right",cell:z}],e[4]=u,e[5]=f):(u=e[4],f=e[5]);let o;e[6]!==t.groups?(o=i.jsx(M,{rows:t.groups,rowKey:V,empty:u,columns:f}),e[6]=t.groups,e[7]=o):o=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=i.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[8]=p):p=e[8];let d;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=i.jsx(O,{icon:S,title:"No notifications in this window",description:"Notifications delivered by your app appear here as they're sent."}),e[9]=d):d=e[9];let l;e[10]!==r?(l={onOpen:(n,v)=>{const k=r(n);k&&(v?.newTab?window.open(k,"_blank"):A.visit(k))}},e[10]=r,e[11]=l):l=e[11];let h,y,_,x,g;e[12]===Symbol.for("react.memo_cache_sentinel")?(x={key:"when",header:"When",cell:W},g={key:"n",header:"Notifier",cell:I},h={key:"dm",hideOnMobile:!0,header:"Delivery method",cell:C},y={key:"f",hideOnMobile:!0,header:"Failed",cell:q},_={key:"d",header:"Duration",align:"right",cell:T},e[12]=h,e[13]=y,e[14]=_,e[15]=x,e[16]=g):(h=e[12],y=e[13],_=e[14],x=e[15],g=e[16]);let s;e[17]!==r?(s=[x,g,h,y,_,{key:"in",hideOnMobile:!0,header:"In",cell:n=>{const v=r(n);return v?i.jsx(B,{className:"font-mono text-xs hover:underline",href:v,children:n.execution_preview}):null}}],e[17]=r,e[18]=s):s=e[18];let a;e[19]!==t.recent||e[20]!==s||e[21]!==l?(a=i.jsx(M,{rows:t.recent,rowKey:$,empty:d,keyboardNav:l,columns:s}),e[19]=t.recent,e[20]=s,e[21]=l,e[22]=a):a=e[22];let b;return e[23]!==a||e[24]!==o?(b=i.jsxs(H,{title:"Notifications",children:[m,o,p,a]}),e[23]=a,e[24]=o,e[25]=b):b=e[25],b}function T(t){return j(t.duration,3)}function q(t){return t.failed?"yes":""}function C(t){return t.delivery_method}function I(t){return i.jsx("span",{className:"font-mono text-xs",children:t.notifier})}function W(t){return i.jsx("span",{className:"text-xs",children:K(t.occurred_at)})}function $(t){return t.id}function z(t){return j(t.p95,3)}function G(t){return j(t.avg,3)}function J(t){return R(t.errors)}function Q(t){return R(t.count)}function U(t){return i.jsx("span",{className:"font-mono text-xs",children:t.name})}function V(t){return t.group_hash}export{pe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,u as g,j as r,az as j,e as h}from"./inertia-
|
|
1
|
+
import{c as x,u as g,j as r,az as j,e as h}from"./inertia-Cuyz2ZHO.js";import{D as _}from"./data-table-CzKTEE-O.js";import{E as w}from"./empty-state-CW4wclK_.js";import{E as b,P as v}from"./env-layout-Kz7wks1x.js";import{c as k,a as E}from"./format-B9SDkrWj.js";import{U as N}from"./app-layout-Zc0v-hYh.js";import"./chart-hover-CfoZUY4J.js";import"./badge-DRae8XwK.js";import"./app-wordmark-BA_60AVb.js";import"./use-live-DMTuhKfB.js";import"./live-dot-BZgYTYdt.js";import"./index-CBip6V4z.js";import"./index-BfbSo01U.js";import"./segmented-BeIe4uqk.js";import"./label-DdCBgiUn.js";import"./checkbox-DPkLUiwM.js";function Q(t){const e=x.c(13),{environment:f}=g().props,u=f.application_id,d=f.id;let a;e[0]!==u||e[1]!==d?(a=i=>j(u,d,i.ref),e[0]=u,e[1]=d,e[2]=a):a=e[2];const o=a;let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx(v,{title:"Users",description:"Your application's users as seen in telemetry, with their activity and errors."}),e[3]=l):l=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(w,{icon:N,title:"No authenticated activity in this window",description:"People appear here once requests are tagged with an authenticated user."}),e[4]=m):m=e[4];let s,n;e[5]!==o?(s=i=>h.visit(o(i)),n={onOpen:(i,y)=>y?.newTab?window.open(o(i),"_blank"):h.visit(o(i))},e[5]=o,e[6]=s,e[7]=n):(s=e[6],n=e[7]);let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=[{key:"n",header:"User",cell:q},{key:"t",hideOnMobile:!0,header:"Tenant",cell:S},{key:"r",header:"Requests",align:"right",cell:R},{key:"e",hideOnMobile:!0,header:"Errors",align:"right",cell:U},{key:"l",header:"Last seen",align:"right",cell:P}],e[8]=c):c=e[8];let p;return e[9]!==t.people||e[10]!==s||e[11]!==n?(p=r.jsxs(b,{title:"Users",children:[l,r.jsx(_,{rows:t.people,rowKey:O,empty:m,onRowClick:s,keyboardNav:n,columns:c})]}),e[9]=t.people,e[10]=s,e[11]=n,e[12]=p):p=e[12],p}function P(t){return E(t.last_seen_at)}function U(t){return r.jsx("span",{className:t.errors?"text-destructive":"",children:t.errors})}function R(t){return k(t.requests)}function S(t){return r.jsx("span",{className:"font-mono text-xs",children:t.tenant??""})}function q(t){return r.jsxs("span",{className:"text-xs",children:[r.jsx("span",{className:"font-medium",children:t.name??t.ref}),t.email&&r.jsxs("span",{className:"text-muted-foreground",children:[" · ",t.email]})]})}function O(t){return t.ref}export{Q as default};
|