railwatch 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -0
- data/app/jobs/railwatch/prune_telemetry_job.rb +20 -1
- data/app/models/railwatch/telemetry_record.rb +48 -0
- data/db/railwatch_telemetry_migrate/20260903000000_enable_incremental_vacuum.rb +62 -0
- data/docs/embedded.md +47 -1
- data/lib/railwatch/version.rb +1 -1
- data/lib/tasks/railwatch_tasks.rake +161 -0
- data/public/railwatch/assets/{app-layout-yh-sPWgK.js → app-layout-CdJ5Qjms.js} +1 -1
- data/public/railwatch/assets/{app-wordmark-nbjkzxwQ.js → app-wordmark-B-0yZiDb.js} +1 -1
- data/public/railwatch/assets/{appearance-CDuRvQTB.js → appearance-CU28GBf1.js} +1 -1
- data/public/railwatch/assets/application-CwshqwM6.css +1 -0
- data/public/railwatch/assets/{arrow-up-DVtOGdVA.js → arrow-up-DY1fS0tD.js} +1 -1
- data/public/railwatch/assets/{auth-layout-TCwPpS1K.js → auth-layout-C3FKuUJz.js} +1 -1
- data/public/railwatch/assets/{badge-Daw4Hvr8.js → badge-DKvItdlb.js} +1 -1
- data/public/railwatch/assets/{braces-DhFbHPsz.js → braces-Bse5Gh3K.js} +1 -1
- data/public/railwatch/assets/{card-BX_3HXcJ.js → card-C9j_ffR9.js} +1 -1
- data/public/railwatch/assets/{chart-B14-N9g7.js → chart-Cmh6JEww.js} +1 -1
- data/public/railwatch/assets/{chart-hover-Vy52H4uD.js → chart-hover-B0SjyWFy.js} +1 -1
- data/public/railwatch/assets/{chart-panel-Cb4S_ej_.js → chart-panel-DKNxoauI.js} +1 -1
- data/public/railwatch/assets/{checkbox-D3aRSsBj.js → checkbox-BsBkRg5n.js} +1 -1
- data/public/railwatch/assets/{code-KvW8k7Jr.js → code-C879Qwgg.js} +1 -1
- data/public/railwatch/assets/{copy-block-BKFGd11J.js → copy-block-DtO_3esq.js} +1 -1
- data/public/railwatch/assets/{copy-id-Djks1fXB.js → copy-id-SeLCKsW2.js} +1 -1
- data/public/railwatch/assets/{cursor-load-more-BXV0f1D_.js → cursor-load-more-OpHbe_kE.js} +1 -1
- data/public/railwatch/assets/{data-table-iv1bdF6u.js → data-table-Bc3ZRnpb.js} +1 -1
- data/public/railwatch/assets/{edit-__9yJlO3.js → edit-BMpgcQhU.js} +1 -1
- data/public/railwatch/assets/{edit-DMKUF8Zi.js → edit-CTD1jSWh.js} +1 -1
- data/public/railwatch/assets/{edit-BZc_Iawe.js → edit-DDvf9mkq.js} +1 -1
- data/public/railwatch/assets/{empty-state-6j_0AaQQ.js → empty-state-CkPROZB0.js} +1 -1
- data/public/railwatch/assets/env-layout-aGQgTZRg.js +1 -0
- data/public/railwatch/assets/{execution-path-CzgBUi5e.js → execution-path-BX5NcXUZ.js} +1 -1
- data/public/railwatch/assets/{filter-bar-9SU5NrzX.js → filter-bar-C0O2rJVr.js} +1 -1
- data/public/railwatch/assets/{flamegraph-qcekju8V.js → flamegraph-Vj4QSAlT.js} +1 -1
- data/public/railwatch/assets/{frames-Cyu7KMxZ.js → frames-CTiGwm4E.js} +1 -1
- data/public/railwatch/assets/{google-sign-in-button-DsTSfmzY.js → google-sign-in-button-BzogBGeF.js} +1 -1
- data/public/railwatch/assets/index-B-kuWp-m.js +1 -0
- data/public/railwatch/assets/{index-1ol1-QWI.js → index-B2_QluAw.js} +1 -1
- data/public/railwatch/assets/index-B69Iad2U.js +1 -0
- data/public/railwatch/assets/index-BCLvKVhP.js +1 -0
- data/public/railwatch/assets/index-BKgAm-w2.js +1 -0
- data/public/railwatch/assets/index-BRN_bXV_.js +1 -0
- data/public/railwatch/assets/index-Ble4RoA3.js +1 -0
- data/public/railwatch/assets/index-Bvy021Vv.js +1 -0
- data/public/railwatch/assets/index-CCLMaY9k.js +1 -0
- data/public/railwatch/assets/index-CD4HIHq0.js +1 -0
- data/public/railwatch/assets/{index-Cmlwy1-V.js → index-CPQKOQxV.js} +1 -1
- data/public/railwatch/assets/{index-CeYKnapu.js → index-CY6lbwAC.js} +1 -1
- data/public/railwatch/assets/index-C__S10ze.js +1 -0
- data/public/railwatch/assets/index-ChQ1_u8u.js +1 -0
- data/public/railwatch/assets/index-CtT4T6kp.js +1 -0
- data/public/railwatch/assets/index-CxU1Jj35.js +1 -0
- data/public/railwatch/assets/index-D3Axxkk2.js +1 -0
- data/public/railwatch/assets/index-D5YVcrqR.js +1 -0
- data/public/railwatch/assets/index-D9cV-IQr.js +1 -0
- data/public/railwatch/assets/index-DbyRgbzQ.js +1 -0
- data/public/railwatch/assets/index-Dcxd_H-U.js +1 -0
- data/public/railwatch/assets/index-Dep2XomH.js +1 -0
- data/public/railwatch/assets/{index-DlumCsWY.js → index-DepurF6s.js} +2 -2
- data/public/railwatch/assets/{index-BRiq3SNR.js → index-DigUOHQ8.js} +1 -1
- data/public/railwatch/assets/index-DkgImCOg.js +1 -0
- data/public/railwatch/assets/{index-DU9F5b5d.js → index-DxuDLoTc.js} +1 -1
- data/public/railwatch/assets/{index-OqI59zPb.js → index-Dy7Wg880.js} +1 -1
- data/public/railwatch/assets/index-FgpFDA1Z.js +1 -0
- data/public/railwatch/assets/index-LaTKDe0-.js +1 -0
- data/public/railwatch/assets/index-Wb_U2_hz.js +1 -0
- data/public/railwatch/assets/index-chS28dvS.js +1 -0
- data/public/railwatch/assets/index-jSEU_Yp7.js +1 -0
- data/public/railwatch/assets/index-uuKg6Zqn.js +1 -0
- data/public/railwatch/assets/index-y2c8xKzI.js +1 -0
- data/public/railwatch/assets/index-z2YfKBJl.js +1 -0
- data/public/railwatch/assets/{inertia-TViv6kNv.js → inertia-CgBdJDaE.js} +2 -2
- data/public/railwatch/assets/{input-error-LxImUkxv.js → input-error-DfpIawjl.js} +1 -1
- data/public/railwatch/assets/{json-viewer-Ar4cjPDW.js → json-viewer-CH7nEIUs.js} +1 -1
- data/public/railwatch/assets/klass-BTg1l2AO.js +1 -0
- data/public/railwatch/assets/{label-COUKWqE_.js → label-BWgQzHCO.js} +1 -1
- data/public/railwatch/assets/{layout-DNSLAkw_.js → layout-neknbxn-.js} +1 -1
- data/public/railwatch/assets/{live-dot-ChfUtY3p.js → live-dot-Bejk0a5o.js} +1 -1
- data/public/railwatch/assets/{nav-CNnDqPlm.js → nav-C1M8941-.js} +1 -1
- data/public/railwatch/assets/{new-D4uewYC8.js → new-B8CzyoMu.js} +1 -1
- data/public/railwatch/assets/{new-Be55nmt9.js → new-BnGIYM37.js} +1 -1
- data/public/railwatch/assets/{new-Bi_xQiIb.js → new-DElC-JCS.js} +1 -1
- data/public/railwatch/assets/{new-D05SajFR.js → new-DGYPcz7w.js} +1 -1
- data/public/railwatch/assets/{new-84S8ZJq9.js → new-DLgCLBiW.js} +1 -1
- data/public/railwatch/assets/{new-BvCT8TMg.js → new-bBwawsEg.js} +1 -1
- data/public/railwatch/assets/{onboarding-CYZi5Cqc.js → onboarding-CW0jUhHT.js} +1 -1
- data/public/railwatch/assets/{origin-identity-6q1-CBts.js → origin-identity-bJMxeEHB.js} +1 -1
- data/public/railwatch/assets/{percentile-picker-gFZCXtdb.js → percentile-picker-DLAnTKY3.js} +1 -1
- data/public/railwatch/assets/{relative-time-IOOgl5n2.js → relative-time-BHbJh8HW.js} +1 -1
- data/public/railwatch/assets/release-health-2O1GRclB.js +1 -0
- data/public/railwatch/assets/route-DSw8aIZa.js +1 -0
- data/public/railwatch/assets/{segmented-h1VdDTqE.js → segmented-Dg8CES94.js} +1 -1
- data/public/railwatch/assets/{select-_AJsUa7X.js → select-CqKpvI98.js} +1 -1
- data/public/railwatch/assets/{separator-BwwTYtCF.js → separator-BOp2LHw3.js} +1 -1
- data/public/railwatch/assets/{series-chart-DaFPefku.js → series-chart-COEtj3PY.js} +1 -1
- data/public/railwatch/assets/show-B40560ZT.js +1 -0
- data/public/railwatch/assets/{show-C4Ltf5i9.js → show-B7Zqjlqc.js} +1 -1
- data/public/railwatch/assets/{show-CeTL4B37.js → show-BAxMoNvw.js} +2 -2
- data/public/railwatch/assets/show-B_QVoqKE.js +1 -0
- data/public/railwatch/assets/show-Bbs1i46N.js +1 -0
- data/public/railwatch/assets/{show-DACku6AD.js → show-C-xpDkoj.js} +3 -3
- data/public/railwatch/assets/{show-DgSIoRvA.js → show-C9Y1To9_.js} +1 -1
- data/public/railwatch/assets/show-CGv85sRo.js +1 -0
- data/public/railwatch/assets/{show-BM6X2Mpo.js → show-CPh-7VGL.js} +1 -1
- data/public/railwatch/assets/show-C_9M2nLy.js +1 -0
- data/public/railwatch/assets/{show-DIOSGcXV.js → show-DFlP1ktM.js} +2 -2
- data/public/railwatch/assets/show-DqtE0LI6.js +1 -0
- data/public/railwatch/assets/{show-C8sHalnw.js → show-DrhEDGPn.js} +1 -1
- data/public/railwatch/assets/{show-JxFtB4eK.js → show-HjjzcKRq.js} +2 -2
- data/public/railwatch/assets/show-Zr2xV4OD.js +1 -0
- data/public/railwatch/assets/show-dRDz8OVu.js +1 -0
- data/public/railwatch/assets/{show-DYteoYWW.js → show-pbkvGRER.js} +1 -1
- data/public/railwatch/assets/{sort-header-DpFzXblu.js → sort-header-DBxQ_KFX.js} +1 -1
- data/public/railwatch/assets/{sparkline-cell-C3-5vFkP.js → sparkline-cell-BbfXw3kA.js} +1 -1
- data/public/railwatch/assets/stat-Cd8QaTGw.js +1 -0
- data/public/railwatch/assets/{status-badge-8jVV-LA4.js → status-badge-Ys4b0fcG.js} +1 -1
- data/public/railwatch/assets/{tenant-path-G-6u9A-o.js → tenant-path-CQWzaNYR.js} +1 -1
- data/public/railwatch/assets/{text-link-DfsiaCcP.js → text-link-BY8FY-CJ.js} +1 -1
- data/public/railwatch/assets/{textarea-Dye72uP7.js → textarea-Bq2jjOMC.js} +1 -1
- data/public/railwatch/assets/{timeline-CD7WHnbo.js → timeline-SxStCFO2.js} +1 -1
- data/public/railwatch/assets/{transition-B_AW8rMK.js → transition-CQ9yvfPa.js} +1 -1
- data/public/railwatch/assets/{use-clipboard-ColgLyQ2.js → use-clipboard-3hTXU91g.js} +1 -1
- data/public/railwatch/assets/use-live-LwJStJvD.js +1 -0
- data/public/railwatch/manifest.json +1289 -1236
- metadata +117 -115
- data/public/railwatch/assets/application-DD4nJA5I.css +0 -1
- data/public/railwatch/assets/env-layout-DrT8rO6P.js +0 -1
- data/public/railwatch/assets/index-5jI4aFzC.js +0 -1
- data/public/railwatch/assets/index-9KTrVnrc.js +0 -1
- data/public/railwatch/assets/index-B0-8lcTp.js +0 -1
- data/public/railwatch/assets/index-B7jjfNfO.js +0 -1
- data/public/railwatch/assets/index-BBchRy0M.js +0 -1
- data/public/railwatch/assets/index-BgKj9xhr.js +0 -1
- data/public/railwatch/assets/index-BkTZqqOu.js +0 -1
- data/public/railwatch/assets/index-BprKx8QO.js +0 -1
- data/public/railwatch/assets/index-C3jzvPs3.js +0 -1
- data/public/railwatch/assets/index-Cbs6gGyQ.js +0 -1
- data/public/railwatch/assets/index-CdRZ6AWF.js +0 -1
- data/public/railwatch/assets/index-Cwx6058d.js +0 -1
- data/public/railwatch/assets/index-D4CSdbHv.js +0 -1
- data/public/railwatch/assets/index-DEFMSkdG.js +0 -1
- data/public/railwatch/assets/index-DFiHEBSh.js +0 -1
- data/public/railwatch/assets/index-DL4vWdWJ.js +0 -1
- data/public/railwatch/assets/index-DaXgPcGL.js +0 -1
- data/public/railwatch/assets/index-DbtaU-EE.js +0 -1
- data/public/railwatch/assets/index-DeOe83F4.js +0 -1
- data/public/railwatch/assets/index-DiucHN4B.js +0 -1
- data/public/railwatch/assets/index-DlnR_l9o.js +0 -1
- data/public/railwatch/assets/index-DmRd7aIG.js +0 -1
- data/public/railwatch/assets/index-DxSh2UpM.js +0 -1
- data/public/railwatch/assets/index-MIMGuFNt.js +0 -1
- data/public/railwatch/assets/index-P4rC7IlX.js +0 -1
- data/public/railwatch/assets/index-gpPOcFWq.js +0 -1
- data/public/railwatch/assets/index-oVkururr.js +0 -1
- data/public/railwatch/assets/index-p9puqVge.js +0 -1
- data/public/railwatch/assets/klass-CJ-J4INB.js +0 -1
- data/public/railwatch/assets/release-health-DC8oc7uw.js +0 -1
- data/public/railwatch/assets/route-Dv6LAWvT.js +0 -1
- data/public/railwatch/assets/show-B7NCgkEo.js +0 -1
- data/public/railwatch/assets/show-BKqyKjBK.js +0 -1
- data/public/railwatch/assets/show-BNw4tN5q.js +0 -1
- data/public/railwatch/assets/show-BO3bnG5h.js +0 -1
- data/public/railwatch/assets/show-BhrAVAEA.js +0 -1
- data/public/railwatch/assets/show-CpfgV1jP.js +0 -1
- data/public/railwatch/assets/show-DQp_1n-B.js +0 -1
- data/public/railwatch/assets/show-DVNz46RI.js +0 -1
- data/public/railwatch/assets/stat-s4RpOS9w.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aC as te,c as ae,u as le,j as r,e as re,L as ie}from"./inertia-TViv6kNv.js";import{C as oe}from"./chart-panel-Cb4S_ej_.js";import{D as ne}from"./data-table-iv1bdF6u.js";import{E as me}from"./empty-state-6j_0AaQQ.js";import{E as ue,P as ce}from"./env-layout-DrT8rO6P.js";import{b as fe}from"./series-chart-DaFPefku.js";import{S as Y,a as he}from"./stat-s4RpOS9w.js";import{c as a,w as de,m as ye}from"./format-B9SDkrWj.js";import{rate as Z,crashFreeTone as se}from"./release-health-DC8oc7uw.js";import{z as _e}from"./app-layout-yh-sPWgK.js";import"./chart-hover-Vy52H4uD.js";import"./badge-Daw4Hvr8.js";import"./app-wordmark-nbjkzxwQ.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./segmented-h1VdDTqE.js";import"./label-COUKWqE_.js";import"./chart-B14-N9g7.js";import"./arrow-up-DVtOGdVA.js";import"./checkbox-D3aRSsBj.js";function pe(s,e,H,q){const z=String(te(s,e,H,q)),[F,u]=z.split("?");return`${F.replace(/\./g,"%2E")}${u?`?${u}`:""}`}function Ue(s){const e=ae.c(98),{environment:H,window:q}=le().props,z=H.application_id,F=H.id;let u;e[0]!==z||e[1]!==F||e[2]!==q?(u=t=>pe(z,F,t.deploy,{window:q}),e[0]=z,e[1]=F,e[2]=q,e[3]=u):u=e[3];const l=u;let c,f,h,i,d,y,_,p,x,o,k,n;if(e[4]!==s.series||e[5]!==s.summary.crash_free_sessions||e[6]!==s.summary.crash_free_users||e[7]!==s.summary.releases||e[8]!==s.summary.sessions||e[9]!==s.summary.users){const t=s.series.reduce(Ce,{ok:0,errored:0,crashed:0});f=ue,k="Releases",e[22]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsx(ce,{title:"Releases",description:"Sessions per deploy, and how many of them ended without a crash. A release is the deploy stamped on every record the gem ships."}),e[22]=n):n=e[22];let m;e[23]!==s.summary.crash_free_sessions?(m=Z(s.summary.crash_free_sessions),e[23]=s.summary.crash_free_sessions,e[24]=m):m=e[24];let N;e[25]!==s.summary.crash_free_sessions?(N=se(s.summary.crash_free_sessions),e[25]=s.summary.crash_free_sessions,e[26]=N):N=e[26];let P;e[27]!==m||e[28]!==N?(P=r.jsx(Y,{label:"Crash-free sessions",value:m,tone:N}),e[27]=m,e[28]=N,e[29]=P):P=e[29];let T;e[30]!==s.summary.crash_free_users?(T=Z(s.summary.crash_free_users),e[30]=s.summary.crash_free_users,e[31]=T):T=e[31];let $;e[32]!==s.summary.crash_free_users?($=se(s.summary.crash_free_users),e[32]=s.summary.crash_free_users,e[33]=$):$=e[33];let A;e[34]!==T||e[35]!==$?(A=r.jsx(Y,{label:"Crash-free users",value:T,tone:$}),e[34]=T,e[35]=$,e[36]=A):A=e[36];let D;e[37]!==s.summary.sessions?(D=a(s.summary.sessions),e[37]=s.summary.sessions,e[38]=D):D=e[38];let X;e[39]!==s.summary.users?(X=a(s.summary.users),e[39]=s.summary.users,e[40]=X):X=e[40];const ee=`${X} users`;let O;e[41]!==D||e[42]!==ee?(O=r.jsx(Y,{label:"Sessions",value:D,hint:ee}),e[41]=D,e[42]=ee,e[43]=O):O=e[43];let L;e[44]!==s.summary.releases?(L=a(s.summary.releases),e[44]=s.summary.releases,e[45]=L):L=e[45];let M;e[46]!==L?(M=r.jsx(Y,{label:"Active releases",value:L}),e[46]=L,e[47]=M):M=e[47],e[48]!==P||e[49]!==A||e[50]!==O||e[51]!==M?(i=r.jsxs(he,{children:[P,A,O,M]}),e[48]=P,e[49]=A,e[50]=O,e[51]=M,e[52]=i):i=e[52],c=oe,x="Sessions by status",e[53]!==s.summary.sessions?(o=a(s.summary.sessions),e[53]=s.summary.sessions,e[54]=o):o=e[54],_={key:"ok",label:"ok",value:a(t.ok),color:"var(--ok)"},p={key:"errored",label:"errored",value:a(t.errored),color:"var(--warning)"},h="crashed",d="crashed",y=a(t.crashed),e[4]=s.series,e[5]=s.summary.crash_free_sessions,e[6]=s.summary.crash_free_users,e[7]=s.summary.releases,e[8]=s.summary.sessions,e[9]=s.summary.users,e[10]=c,e[11]=f,e[12]=h,e[13]=i,e[14]=d,e[15]=y,e[16]=_,e[17]=p,e[18]=x,e[19]=o,e[20]=k,e[21]=n}else c=e[10],f=e[11],h=e[12],i=e[13],d=e[14],y=e[15],_=e[16],p=e[17],x=e[18],o=e[19],k=e[20],n=e[21];let v;e[55]!==h||e[56]!==d||e[57]!==y?(v={key:h,label:d,value:y,color:"var(--danger)"},e[55]=h,e[56]=d,e[57]=y,e[58]=v):v=e[58];let b;e[59]!==v||e[60]!==_||e[61]!==p?(b=[_,p,v],e[59]=v,e[60]=_,e[61]=p,e[62]=b):b=e[62];let g;e[63]!==s.series?(g=r.jsx(fe,{data:s.series}),e[63]=s.series,e[64]=g):g=e[64];let w;e[65]!==c||e[66]!==b||e[67]!==g||e[68]!==x||e[69]!==o?(w=r.jsx(c,{label:x,value:o,legend:b,children:g}),e[65]=c,e[66]=b,e[67]=g,e[68]=x,e[69]=o,e[70]=w):w=e[70];let K;e[71]===Symbol.for("react.memo_cache_sentinel")?(K=r.jsx(me,{icon:_e,title:"No releases in this window",description:"A release appears once a deploy is recorded and the app reports sessions for it."}),e[71]=K):K=e[71];let j,S;e[72]!==l?(j=t=>re.visit(l(t)),S={onOpen:(t,m)=>m?.newTab?globalThis.window.open(l(t),"_blank"):re.visit(l(t))},e[72]=l,e[73]=j,e[74]=S):(j=e[73],S=e[74]);let C;e[75]!==l?(C={key:"ref",header:"Release",cell:t=>r.jsx(ie,{className:"font-mono text-xs hover:underline",href:l(t),children:t.ref})},e[75]=l,e[76]=C):C=e[76];let B,G,I,J,Q,U,V;e[77]===Symbol.for("react.memo_cache_sentinel")?(B={key:"at",header:"Deployed",cell:je},G={key:"adoption",header:"Adoption",align:"right",cell:we},I={key:"sessions",header:"Sessions",align:"right",cell:ge},J={key:"cfs",header:"Crash-free sessions",align:"right",cell:be},Q={key:"cfu",hideOnMobile:!0,header:"Crash-free users",align:"right",cell:ve},U={key:"issues",hideOnMobile:!0,header:"New issues",align:"right",cell:ke},V={key:"duration",hideOnMobile:!0,header:"Duration",align:"right",cell:xe},e[77]=B,e[78]=G,e[79]=I,e[80]=J,e[81]=Q,e[82]=U,e[83]=V):(B=e[77],G=e[78],I=e[79],J=e[80],Q=e[81],U=e[82],V=e[83]);let E;e[84]!==C?(E=[C,B,G,I,J,Q,U,V],e[84]=C,e[85]=E):E=e[85];let R;e[86]!==s.releases||e[87]!==j||e[88]!==S||e[89]!==E?(R=r.jsx(ne,{rows:s.releases,rowKey:Se,empty:K,onRowClick:j,keyboardNav:S,columns:E}),e[86]=s.releases,e[87]=j,e[88]=S,e[89]=E,e[90]=R):R=e[90];let W;return e[91]!==f||e[92]!==i||e[93]!==w||e[94]!==R||e[95]!==k||e[96]!==n?(W=r.jsxs(f,{title:k,children:[n,i,w,R]}),e[91]=f,e[92]=i,e[93]=w,e[94]=R,e[95]=k,e[96]=n,e[97]=W):W=e[97],W}function xe(s){return ye(s.avg_duration_ms)}function ke(s){return r.jsx("span",{className:s.new_issues?"text-destructive":"",children:a(s.new_issues)})}function ve(s){return Z(s.crash_free_users)}function be(s){return r.jsx("span",{className:se(s.crash_free_sessions)==="destructive"?"text-destructive font-semibold":"font-semibold",children:Z(s.crash_free_sessions)})}function ge(s){return a(s.sessions)}function we(s){return`${s.adoption}%`}function je(s){return r.jsx("span",{className:"text-xs",children:de(s.deployed_at)})}function Se(s){return s.deploy}function Ce(s,e){return{ok:s.ok+e.ok,errored:s.errored+e.errored,crashed:s.crashed+e.crashed}}export{Ue as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as le,u as ce,j as s,e as ie,ao as me,L as de}from"./inertia-TViv6kNv.js";import{C as ue}from"./chart-hover-Vy52H4uD.js";import{D as fe}from"./data-table-iv1bdF6u.js";import{E as he}from"./empty-state-6j_0AaQQ.js";import{F as ye}from"./filter-bar-9SU5NrzX.js";import{P as ge,E as pe}from"./env-layout-DrT8rO6P.js";import{S as W}from"./sort-header-DpFzXblu.js";import{S as xe}from"./sparkline-cell-C3-5vFkP.js";import{S as Y,a as _e}from"./stat-s4RpOS9w.js";import{c as a,m as ve,a as be}from"./format-B9SDkrWj.js";import{t as je}from"./tenant-path-G-6u9A-o.js";import{K as ke}from"./app-layout-yh-sPWgK.js";import"./badge-Daw4Hvr8.js";import"./app-wordmark-nbjkzxwQ.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./segmented-h1VdDTqE.js";import"./label-COUKWqE_.js";import"./arrow-up-DVtOGdVA.js";import"./series-chart-DaFPefku.js";import"./chart-B14-N9g7.js";import"./checkbox-D3aRSsBj.js";function nt(t){const e=le.c(91),{environment:ae,window:o}=ce().props,l=ae.application_id,c=ae.id;let P;e[0]!==l||e[1]!==c||e[2]!==t.dir||e[3]!==t.q||e[4]!==t.sort||e[5]!==o?(P=r=>ie.visit(me(l,c,{window:o,sort:t.sort,dir:t.dir,q:t.q||void 0,...r}),{preserveState:!0}),e[0]=l,e[1]=c,e[2]=t.dir,e[3]=t.q,e[4]=t.sort,e[5]=o,e[6]=P):P=e[6];const m=P;let M;e[7]!==t.dir||e[8]!==t.sort||e[9]!==m?(M=r=>m({sort:r,dir:t.sort===r&&t.dir==="desc"?"asc":"desc"}),e[7]=t.dir,e[8]=t.sort,e[9]=m,e[10]=M):M=e[10];const n=M;let F;e[11]!==l||e[12]!==c||e[13]!==o?(F=r=>je(l,c,r.tenant,{window:o}),e[11]=l,e[12]=c,e[13]=o,e[14]=F):F=e[14];const i=F;let K;e[15]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(ge,{title:"Tenants",description:"Your application's own tenants, aggregated from the tenant tag on every record."}),e[15]=K):K=e[15];let d;e[16]!==t.summary.tenants?(d=a(t.summary.tenants),e[16]=t.summary.tenants,e[17]=d):d=e[17];let u;e[18]!==d?(u=s.jsx(Y,{label:"Tenants active",value:d}),e[18]=d,e[19]=u):u=e[19];const z=`${t.summary.top_share}%`,G=t.summary.top_tenant??"none";let f;e[20]!==z||e[21]!==G?(f=s.jsx(Y,{label:"Top tenant",value:z,hint:G}),e[20]=z,e[21]=G,e[22]=f):f=e[22];let h;e[23]!==t.summary.with_errors?(h=a(t.summary.with_errors),e[23]=t.summary.with_errors,e[24]=h):h=e[24];const I=t.summary.with_errors?"destructive":"success";let y;e[25]!==I||e[26]!==h?(y=s.jsx(Y,{label:"With 5xx",value:h,tone:I}),e[25]=I,e[26]=h,e[27]=y):y=e[27];const Q=`${t.summary.untagged_share}%`;let g;e[28]!==Q?(g=s.jsx(Y,{label:"Untagged",value:Q,hint:"requests with no tenant"}),e[28]=Q,e[29]=g):g=e[29];let p;e[30]!==y||e[31]!==g||e[32]!==u||e[33]!==f?(p=s.jsxs(_e,{children:[u,f,y,g]}),e[30]=y,e[31]=g,e[32]=u,e[33]=f,e[34]=p):p=e[34];let L;e[35]===Symbol.for("react.memo_cache_sentinel")?(L=[],e[35]=L):L=e[35];let x;e[36]!==m?(x=r=>m({q:r||void 0}),e[36]=m,e[37]=x):x=e[37];let _;e[38]!==t.q||e[39]!==x?(_=s.jsx(ye,{value:t.q,fields:L,onChange:x,placeholder:"Filter tenants"}),e[38]=t.q,e[39]=x,e[40]=_):_=e[40];let B;e[41]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(he,{icon:ke,title:"No tenant-tagged records in this window",description:"Records carry the tenant from ActiveRecord::Tenanted / TenantRecord.current_tenant, or call Railwatch.context(tenant: org.slug)"}),e[41]=B):B=e[41];let v,b;e[42]!==i?(v=r=>ie.visit(i(r)),b={onOpen:(r,oe)=>oe?.newTab?globalThis.window.open(i(r),"_blank"):ie.visit(i(r))},e[42]=i,e[43]=v,e[44]=b):(v=e[43],b=e[44]);let j;e[45]!==i?(j={key:"tenant",header:"Tenant",cell:r=>s.jsx(de,{className:"font-mono text-xs hover:underline",href:i(r),children:r.tenant})},e[45]=i,e[46]=j):j=e[46];let H;e[47]===Symbol.for("react.memo_cache_sentinel")?(H={key:"trend",hideOnMobile:!0,header:"Trend",cell:Oe},e[47]=H):H=e[47];const V=t.sort==="requests",X=t.dir==="asc"?"asc":"desc";let k;e[48]!==n?(k=()=>n("requests"),e[48]=n,e[49]=k):k=e[49];let w;e[50]!==V||e[51]!==X||e[52]!==k?(w={key:"requests",header:s.jsx(W,{label:"Requests",active:V,dir:X,onClick:k}),align:"right",cell:Ne},e[50]=V,e[51]=X,e[52]=k,e[53]=w):w=e[53];const Z=t.sort==="errors",ee=t.dir==="asc"?"asc":"desc";let S;e[54]!==n?(S=()=>n("errors"),e[54]=n,e[55]=S):S=e[55];let q;e[56]!==Z||e[57]!==ee||e[58]!==S?(q={key:"5xx",header:s.jsx(W,{label:"5xx",active:Z,dir:ee,onClick:S}),align:"right",cell:Re},e[56]=Z,e[57]=ee,e[58]=S,e[59]=q):q=e[59];const te=t.sort==="p95",se=t.dir==="asc"?"asc":"desc";let T;e[60]!==n?(T=()=>n("p95"),e[60]=n,e[61]=T):T=e[61];let C;e[62]!==te||e[63]!==se||e[64]!==T?(C={key:"p95",header:s.jsx(W,{label:"p95",active:te,dir:se,onClick:T}),align:"right",cell:Ee},e[62]=te,e[63]=se,e[64]=T,e[65]=C):C=e[65];let $,D,U;e[66]===Symbol.for("react.memo_cache_sentinel")?($={key:"jobs",hideOnMobile:!0,header:"Jobs",align:"right",cell:Ce},D={key:"failed",hideOnMobile:!0,header:"Failed",align:"right",cell:Te},U={key:"exceptions",hideOnMobile:!0,header:"Exceptions",align:"right",cell:qe},e[66]=$,e[67]=D,e[68]=U):($=e[66],D=e[67],U=e[68]);const re=t.sort==="users",ne=t.dir==="asc"?"asc":"desc";let E;e[69]!==n?(E=()=>n("users"),e[69]=n,e[70]=E):E=e[70];let R;e[71]!==re||e[72]!==ne||e[73]!==E?(R={key:"users",hideOnMobile:!0,header:s.jsx(W,{label:"Users",active:re,dir:ne,onClick:E}),align:"right",cell:Se},e[71]=re,e[72]=ne,e[73]=E,e[74]=R):R=e[74];let A;e[75]===Symbol.for("react.memo_cache_sentinel")?(A={key:"seen",header:"Last seen",align:"right",cell:we},e[75]=A):A=e[75];let N;e[76]!==j||e[77]!==w||e[78]!==q||e[79]!==C||e[80]!==R?(N=[j,H,w,q,C,$,D,U,R,A],e[76]=j,e[77]=w,e[78]=q,e[79]=C,e[80]=R,e[81]=N):N=e[81];let O;e[82]!==t.tenants||e[83]!==v||e[84]!==b||e[85]!==N?(O=s.jsx(fe,{rows:t.tenants,rowKey:Me,empty:B,hoverKey:Pe,onRowClick:v,keyboardNav:b,columns:N}),e[82]=t.tenants,e[83]=v,e[84]=b,e[85]=N,e[86]=O):O=e[86];let J;return e[87]!==p||e[88]!==_||e[89]!==O?(J=s.jsx(pe,{title:"Tenants",children:s.jsxs(ue,{children:[K,p,_,O]})}),e[87]=p,e[88]=_,e[89]=O,e[90]=J):J=e[90],J}function we(t){return be(t.last_seen_at)}function Se(t){return a(t.users)}function qe(t){return a(t.exceptions)}function Te(t){return s.jsx("span",{className:t.failed_jobs?"text-destructive":"",children:a(t.failed_jobs)})}function Ce(t){return a(t.jobs)}function Ee(t){return s.jsx("span",{className:"font-semibold",children:ve(t.p95)})}function Re(t){return s.jsx("span",{className:t.errors?"text-destructive":"",children:a(t.errors)})}function Ne(t){return a(t.requests)}function Oe(t){return s.jsx(xe,{data:t.sparkline,hoverKey:t.tenant})}function Pe(t){return t.tenant}function Me(t){return t.tenant}export{nt as default};
|
|
@@ -1 +0,0 @@
|
|
|
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-TViv6kNv.js";import{V as ae}from"./chart-panel-Cb4S_ej_.js";import{C as re}from"./cursor-load-more-BXV0f1D_.js";import{D as ce}from"./data-table-iv1bdF6u.js";import{F as me}from"./filter-bar-9SU5NrzX.js";import{P as de,E as fe}from"./env-layout-DrT8rO6P.js";import{S as ue}from"./app-layout-yh-sPWgK.js";import{B as te}from"./badge-Daw4Hvr8.js";import{C as X,a as Y}from"./card-BX_3HXcJ.js";import{e as xe}from"./execution-path-CzgBUi5e.js";import{c as Z,w as pe}from"./format-B9SDkrWj.js";import"./series-chart-DaFPefku.js";import"./chart-hover-Vy52H4uD.js";import"./chart-B14-N9g7.js";import"./app-wordmark-nbjkzxwQ.js";import"./empty-state-6j_0AaQQ.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./segmented-h1VdDTqE.js";import"./label-COUKWqE_.js";import"./checkbox-D3aRSsBj.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 Ge(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{Ge as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as D,x as L,j as t,H as O,L as S,g as q,e as k,m as B,o as R,i as z,h as H}from"./inertia-TViv6kNv.js";import{D as M}from"./data-table-iv1bdF6u.js";import{E as T}from"./empty-state-6j_0AaQQ.js";import{L as $}from"./live-dot-ChfUtY3p.js";import{S as I}from"./sparkline-cell-C3-5vFkP.js";import{S as b,a as F}from"./stat-s4RpOS9w.js";import{B as C}from"./badge-Daw4Hvr8.js";import{B as E}from"./app-wordmark-nbjkzxwQ.js";import{C as y,a as N,b as A,c as K}from"./card-BX_3HXcJ.js";import{O as U,A as W,P as G}from"./app-layout-yh-sPWgK.js";import{c as w,a as P}from"./format-B9SDkrWj.js";import"./chart-hover-Vy52H4uD.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./series-chart-DaFPefku.js";import"./chart-B14-N9g7.js";import"./arrow-up-DVtOGdVA.js";import"./checkbox-D3aRSsBj.js";import"./label-COUKWqE_.js";function ye(s){const e=D.c(32);let d,u;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=[{title:"Dashboard",href:L()}],u=t.jsx(O,{title:"Dashboard"}),e[0]=d,e[1]=u):(d=e[0],u=e[1]);let i;e[2]!==s.overview_apps.length?(i=t.jsx(b,{label:"Applications",value:s.overview_apps.length}),e[2]=s.overview_apps.length,e[3]=i):i=e[3];const g=s.recent_issues.length?"destructive":"success";let a;e[4]!==s.recent_issues.length||e[5]!==g?(a=t.jsx(b,{label:"Open issues",value:s.recent_issues.length,tone:g}),e[4]=s.recent_issues.length,e[5]=g,e[6]=a):a=e[6];let r;e[7]!==s.usage.events_this_month?(r=w(s.usage.events_this_month),e[7]=s.usage.events_this_month,e[8]=r):r=e[8];let h;e[9]!==s.usage.quota?(h=w(s.usage.quota),e[9]=s.usage.quota,e[10]=h):h=e[10];const v=`of ${h} on ${s.usage.plan}`;let n;e[11]!==r||e[12]!==v?(n=t.jsx(b,{label:"Events this month",value:r,hint:v}),e[11]=r,e[12]=v,e[13]=n):n=e[13];let l;e[14]!==i||e[15]!==a||e[16]!==n?(l=t.jsxs(F,{children:[i,a,n]}),e[14]=i,e[15]=a,e[16]=n,e[17]=l):l=e[17];let o;e[18]!==s.overview_apps?(o=s.overview_apps.map(te),e[18]=s.overview_apps,e[19]=o):o=e[19];let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(y,{className:"border-dashed",children:t.jsx(N,{className:"flex h-full items-center justify-center pt-6",children:t.jsx(E,{variant:"outline",onClick:se,children:"Add application"})})}),e[20]=x):x=e[20];let c;e[21]!==o?(c=t.jsxs("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:[o,x]}),e[21]=o,e[22]=c):c=e[22];let f;e[23]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(A,{children:t.jsx(K,{children:"Recent open issues"})}),e[23]=f):f=e[23];let p;e[24]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(T,{icon:U,title:"No open issues",description:"Issues are opened when a request, job, or exception starts repeating."}),e[24]=p):p=e[24];let _;e[25]===Symbol.for("react.memo_cache_sentinel")?(_=[{key:"k",header:"Issue",cell:Y},{key:"t",header:"Title",cell:X},{key:"w",hideOnMobile:!0,header:"Where",cell:V},{key:"n",hideOnMobile:!0,header:"Events",align:"right",cell:Q},{key:"l",header:"Last",align:"right",cell:J}],e[25]=_):_=e[25];let m;e[26]!==s.recent_issues?(m=t.jsxs(y,{children:[f,t.jsx(N,{children:t.jsx(M,{rows:s.recent_issues,rowKey:ee,empty:p,onRowClick:Z,columns:_})})]}),e[26]=s.recent_issues,e[27]=m):m=e[27];let j;return e[28]!==c||e[29]!==m||e[30]!==l?(j=t.jsxs(W,{breadcrumbs:d,children:[u,t.jsxs("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6",children:[l,c,m]})]}),e[28]=c,e[29]=m,e[30]=l,e[31]=j):j=e[31],j}function J(s){return P(s.last_seen_at)}function Q(s){return w(s.occurrences)}function V(s){return t.jsxs("span",{className:"text-xs",children:[s.application," · ",s.environment]})}function X(s){return t.jsx("span",{className:"line-clamp-1 text-xs",children:s.title})}function Y(s){return t.jsx("span",{className:"font-mono text-xs font-semibold",children:s.key})}function Z(s){return k.visit(z(s.id))}function ee(s){return s.id}function se(){return k.visit(H())}function te(s){return t.jsxs(y,{children:[t.jsxs(A,{className:"flex-row items-center justify-between",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx("span",{className:"bg-muted flex size-8 shrink-0 items-center justify-center rounded-md font-mono text-xs font-semibold",children:s.name.slice(0,2).toUpperCase()}),t.jsxs("div",{className:"min-w-0",children:[t.jsx(S,{className:"block truncate text-sm font-semibold hover:underline",href:q(s.id),children:s.name}),t.jsx("div",{className:"label-caps",children:s.issue_prefix})]})]}),t.jsxs(E,{size:"sm",variant:"outline",className:"h-7 text-xs",onClick:()=>k.visit(B(s.id)),children:[t.jsx(G,{className:"size-3"}),"Environment"]})]}),t.jsx(N,{className:"space-y-2",children:s.environments.map(e=>t.jsxs(S,{href:R(s.id,e.id),className:"hover:bg-muted flex items-center justify-between rounded-md border px-3 py-2 text-sm",children:[t.jsxs("span",{className:"flex flex-1 items-center gap-2",children:[t.jsx($,{lastSeenAt:e.paused?null:e.last_seen_at,thresholdMs:6e5}),e.name]}),t.jsx(I,{data:e.request_sparkline}),t.jsxs("span",{className:"text-muted-foreground flex items-center gap-2 text-xs",children:[e.error_rate>0&&t.jsxs(C,{variant:"destructive",children:[(e.error_rate*100).toFixed(1),"% err"]}),e.open_issues>0&&t.jsx(C,{variant:"destructive",children:e.open_issues}),e.last_seen_at?P(e.last_seen_at):"no data"]})]},e.id))})]},s.id)}export{ye as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as pe,u as de,X as fe,j as s,e as ne,Y as he,K as be}from"./inertia-TViv6kNv.js";import{V as xe,D as ye}from"./chart-panel-Cb4S_ej_.js";import{D as ve}from"./data-table-iv1bdF6u.js";import{F as ge}from"./filter-bar-9SU5NrzX.js";import{O as ae}from"./origin-identity-6q1-CBts.js";import{u as _e,P as je,E as ke}from"./env-layout-DrT8rO6P.js";import{S as G,a as we}from"./stat-s4RpOS9w.js";import{S as Oe}from"./status-badge-8jVV-LA4.js";import{c as Se,p as qe,m as C,w as De}from"./format-B9SDkrWj.js";import"./series-chart-DaFPefku.js";import"./chart-hover-Vy52H4uD.js";import"./chart-B14-N9g7.js";import"./empty-state-6j_0AaQQ.js";import"./badge-Daw4Hvr8.js";import"./app-wordmark-nbjkzxwQ.js";import"./app-layout-yh-sPWgK.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.js";import"./label-COUKWqE_.js";import"./tenant-path-G-6u9A-o.js";import"./segmented-h1VdDTqE.js";import"./arrow-up-DVtOGdVA.js";function nt(t){const e=pe.c(104),{environment:re,window:r,range:n}=de().props,{window:ce,label:me}=_e(),i=re.application_id,l=re.id;let F;e[0]!==n?.from||e[1]!==n?.to||e[2]!==r?(F=r==="custom"?{from:n?.from,to:n?.to}:{window:r},e[0]=n?.from,e[1]=n?.to,e[2]=r,e[3]=F):F=e[3];const U=F,o=t.summary.current,c=t.summary.previous,m=ce==="custom"?"vs previous period":`vs previous ${me}`,ue=t.name;let u;e[4]!==i||e[5]!==l||e[6]!==r?(u=fe(i,l,{window:r}),e[4]=i,e[5]=l,e[6]=r,e[7]=u):u=e[7];let p;e[8]!==u?(p={title:"Jobs",href:u},e[8]=u,e[9]=p):p=e[9];let d;e[10]!==t.name?(d={title:t.name,href:"#"},e[10]=t.name,e[11]=d):d=e[11];let f;e[12]!==p||e[13]!==d?(f=[p,d],e[12]=p,e[13]=d,e[14]=f):f=e[14];let h;e[15]!==t.name?(h=s.jsx(je,{title:s.jsx("span",{className:"font-mono",children:t.name})}),e[15]=t.name,e[16]=h):h=e[16];let b;e[17]!==o.count?(b=Se(o.count),e[17]=o.count,e[18]=b):b=e[18];let x;e[19]!==b?(x=s.jsx(G,{label:"Attempts",value:b}),e[19]=b,e[20]=x):x=e[20];let y;e[21]!==o.count||e[22]!==o.errors?(y=qe(o.errors,o.count),e[21]=o.count,e[22]=o.errors,e[23]=y):y=e[23];const Z=o.errors?"destructive":"success",ee=o.count?o.errors/o.count*100:0,te=c.count?c.errors/c.count*100:0;let v;e[24]!==ee||e[25]!==te?(v={current:ee,previous:te,goodDirection:"down"},e[24]=ee,e[25]=te,e[26]=v):v=e[26];let g;e[27]!==m||e[28]!==Z||e[29]!==v||e[30]!==y?(g=s.jsx(G,{label:"Failed",value:y,tone:Z,delta:v,deltaCaption:m}),e[27]=m,e[28]=Z,e[29]=v,e[30]=y,e[31]=g):g=e[31];const oe=o.p50/1e3;let _;e[32]!==oe?(_=C(oe),e[32]=oe,e[33]=_):_=e[33];const se=o.p95/1e3;let N;e[34]!==se?(N=C(se),e[34]=se,e[35]=N):N=e[35];const ie=`p95 ${N}`;let j;e[36]!==c.p95||e[37]!==o.p95?(j={current:o.p95,previous:c.p95,goodDirection:"down"},e[36]=c.p95,e[37]=o.p95,e[38]=j):j=e[38];let k;e[39]!==m||e[40]!==_||e[41]!==ie||e[42]!==j?(k=s.jsx(G,{label:"p50 / p95",value:_,hint:ie,delta:j,deltaCaption:m}),e[39]=m,e[40]=_,e[41]=ie,e[42]=j,e[43]=k):k=e[43];const le=o.max/1e3;let w;e[44]!==le?(w=C(le),e[44]=le,e[45]=w):w=e[45];let O;e[46]!==w?(O=s.jsx(G,{label:"Max",value:w}),e[46]=w,e[47]=O):O=e[47];let S;e[48]!==g||e[49]!==k||e[50]!==O||e[51]!==x?(S=s.jsxs(we,{children:[x,g,k,O]}),e[48]=g,e[49]=k,e[50]=O,e[51]=x,e[52]=S):S=e[52];let q;e[53]!==t.deploys||e[54]!==t.series?(q=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[s.jsx(xe,{legend:"job",label:"Attempts",seriesLabel:"Attempts",data:t.series,deploys:t.deploys}),s.jsx(ye,{label:"Duration",data:t.series,deploys:t.deploys})]}),e[53]=t.deploys,e[54]=t.series,e[55]=q):q=e[55];let W,L,R,$;e[56]===Symbol.for("react.memo_cache_sentinel")?(W={key:"user",label:"Origin user"},L={key:"tenant",label:"Origin tenant"},R={key:"queue",label:"Queue"},$={key:"job_id",label:"Job ID"},e[56]=W,e[57]=L,e[58]=R,e[59]=$):(W=e[56],L=e[57],R=e[58],$=e[59]);let B;e[60]===Symbol.for("react.memo_cache_sentinel")?(B=[W,L,R,$,{key:"outcome",label:"Outcome",options:["processed","failed"]}],e[60]=B):B=e[60];let D;e[61]!==i||e[62]!==l||e[63]!==t.group_hash||e[64]!==U?(D=a=>ne.visit(he(i,l,t.group_hash,{...U,q:a||void 0}),{preserveState:!0}),e[61]=i,e[62]=l,e[63]=t.group_hash,e[64]=U,e[65]=D):D=e[65];let P;e[66]!==t.q||e[67]!==D?(P=s.jsx(ge,{value:t.q,fields:B,onChange:D,placeholder:"Filter attempts by origin, queue, or outcome"}),e[66]=t.q,e[67]=D,e[68]=P):P=e[68];let E;e[69]!==i||e[70]!==l?(E=a=>ne.visit(be(i,l,a.execution_id)),e[69]=i,e[70]=l,e[71]=E):E=e[71];let K,Q,V,H;e[72]===Symbol.for("react.memo_cache_sentinel")?(K={key:"when",header:"When",cell:Ce},Q={key:"st",header:"Outcome",cell:Ae},V={key:"att",hideOnMobile:!0,header:"Attempt",align:"right",cell:Me},H={key:"q",hideOnMobile:!0,header:"Queue",cell:Je},e[72]=K,e[73]=Q,e[74]=V,e[75]=H):(K=e[72],Q=e[73],V=e[74],H=e[75]);let I;e[76]!==i||e[77]!==l||e[78]!==n||e[79]!==r?(I={key:"user",hideOnMobile:!0,header:"Origin user",cell:a=>s.jsx(ae,{...a,applicationId:i,environmentId:l,kind:"user",range:n,window:r})},e[76]=i,e[77]=l,e[78]=n,e[79]=r,e[80]=I):I=e[80];let J;e[81]!==i||e[82]!==l||e[83]!==n||e[84]!==r?(J={key:"tenant",hideOnMobile:!0,header:"Origin tenant",cell:a=>s.jsx(ae,{...a,applicationId:i,environmentId:l,kind:"tenant",range:n,window:r})},e[81]=i,e[82]=l,e[83]=n,e[84]=r,e[85]=J):J=e[85];let T,X,Y;e[86]===Symbol.for("react.memo_cache_sentinel")?(T={key:"wait",hideOnMobile:!0,header:"Waited",align:"right",cell:Ie},X={key:"dur",header:"Duration",align:"right",cell:Ee},Y={key:"ex",header:"Exception",cell:Pe},e[86]=T,e[87]=X,e[88]=Y):(T=e[86],X=e[87],Y=e[88]);let M;e[89]!==I||e[90]!==J?(M=[K,Q,V,H,I,J,T,X,Y],e[89]=I,e[90]=J,e[91]=M):M=e[91];let A;e[92]!==t.attempts||e[93]!==E||e[94]!==M?(A=s.jsx(ve,{rows:t.attempts,rowKey:Fe,onRowClick:E,columns:M}),e[92]=t.attempts,e[93]=E,e[94]=M,e[95]=A):A=e[95];let z;return e[96]!==t.name||e[97]!==S||e[98]!==q||e[99]!==P||e[100]!==A||e[101]!==f||e[102]!==h?(z=s.jsxs(ke,{title:ue,crumbs:f,children:[h,S,q,P,A]}),e[96]=t.name,e[97]=S,e[98]=q,e[99]=P,e[100]=A,e[101]=f,e[102]=h,e[103]=z):z=e[103],z}function Pe(t){return s.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function Ee(t){return C(t.duration)}function Ie(t){return C(t.queue_latency)}function Je(t){return t.queue}function Me(t){return t.attempt}function Ae(t){return s.jsx(Oe,{outcome:t.outcome})}function Ce(t){return s.jsx("span",{className:"text-xs",children:De(t.occurred_at)})}function Fe(t){return t.execution_id}export{nt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as D,j as x}from"./inertia-TViv6kNv.js";import{S,a as H}from"./stat-s4RpOS9w.js";import{c as F,m as T}from"./format-B9SDkrWj.js";import"./arrow-up-DVtOGdVA.js";function R(r){return r===null?"default":r>=99.5?"success":r>=98?"warning":"destructive"}function E(r){return r===null?"–":`${r.toFixed(2)}%`}function w(r,e){if(!(r===null||e===null||e===void 0))return{current:r,previous:e,goodDirection:"up"}}function A(r){const e=D.c(43),{health:s,previous:C,deltaCaption:t}=r;let i;e[0]!==s.crash_free_sessions?(i=E(s.crash_free_sessions),e[0]=s.crash_free_sessions,e[1]=i):i=e[1];let l;e[2]!==s.crash_free_sessions?(l=R(s.crash_free_sessions),e[2]=s.crash_free_sessions,e[3]=l):l=e[3];const g=C?.crash_free_sessions;let n;e[4]!==s.crash_free_sessions||e[5]!==g?(n=w(s.crash_free_sessions,g),e[4]=s.crash_free_sessions,e[5]=g,e[6]=n):n=e[6];let a;e[7]!==s.errored?(a=s.errored===null?void 0:`${s.errored.toFixed(2)}% errored`,e[7]=s.errored,e[8]=a):a=e[8];let o;e[9]!==t||e[10]!==i||e[11]!==l||e[12]!==n||e[13]!==a?(o=x.jsx(S,{label:"Crash-free sessions",value:i,tone:l,delta:n,deltaCaption:t,hint:a}),e[9]=t,e[10]=i,e[11]=l,e[12]=n,e[13]=a,e[14]=o):o=e[14];let f;e[15]!==s.crash_free_users?(f=E(s.crash_free_users),e[15]=s.crash_free_users,e[16]=f):f=e[16];let _;e[17]!==s.crash_free_users?(_=R(s.crash_free_users),e[17]=s.crash_free_users,e[18]=_):_=e[18];const b=C?.crash_free_users;let u;e[19]!==s.crash_free_users||e[20]!==b?(u=w(s.crash_free_users,b),e[19]=s.crash_free_users,e[20]=b,e[21]=u):u=e[21];let c;e[22]!==t||e[23]!==u||e[24]!==f||e[25]!==_?(c=x.jsx(S,{label:"Crash-free users",value:f,tone:_,delta:u,deltaCaption:t}),e[22]=t,e[23]=u,e[24]=f,e[25]=_,e[26]=c):c=e[26];let h;e[27]!==s.sessions?(h=F(s.sessions),e[27]=s.sessions,e[28]=h):h=e[28];let v;e[29]!==s.users?(v=F(s.users),e[29]=s.users,e[30]=v):v=e[30];const $=`${v} users`;let d;e[31]!==h||e[32]!==$?(d=x.jsx(S,{label:"Sessions",value:h,hint:$}),e[31]=h,e[32]=$,e[33]=d):d=e[33];let m;e[34]!==s.avg_duration_ms?(m=T(s.avg_duration_ms),e[34]=s.avg_duration_ms,e[35]=m):m=e[35];let p;e[36]!==m?(p=x.jsx(S,{label:"Session duration",value:m,hint:"average"}),e[36]=m,e[37]=p):p=e[37];let j;return e[38]!==c||e[39]!==d||e[40]!==p||e[41]!==o?(j=x.jsxs(H,{children:[o,c,d,p]}),e[38]=c,e[39]=d,e[40]=p,e[41]=o,e[42]=j):j=e[42],j}export{A as ReleaseHealthStrip,R as crashFreeTone,E as rate};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as G,u as J,ab as X,j as r,e as Y,t as Z}from"./inertia-TViv6kNv.js";import{V as ee,D as te}from"./chart-panel-Cb4S_ej_.js";import{D as se}from"./data-table-iv1bdF6u.js";import{u as re,P as oe,E as ne}from"./env-layout-DrT8rO6P.js";import{S as D,a as ie}from"./stat-s4RpOS9w.js";import{S as le}from"./status-badge-8jVV-LA4.js";import{c as ae,p as ue,m as N,w as ce}from"./format-B9SDkrWj.js";import"./series-chart-DaFPefku.js";import"./chart-hover-Vy52H4uD.js";import"./chart-B14-N9g7.js";import"./empty-state-6j_0AaQQ.js";import"./badge-Daw4Hvr8.js";import"./app-wordmark-nbjkzxwQ.js";import"./app-layout-yh-sPWgK.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.js";import"./label-COUKWqE_.js";import"./segmented-h1VdDTqE.js";import"./arrow-up-DVtOGdVA.js";function He(t){const e=G.c(72),{environment:Q,window:O}=J().props,{window:z,label:A}=re(),o=Q.application_id,n=Q.id,s=t.summary.current,i=t.summary.previous,l=z==="custom"?"vs previous period":`vs previous ${A}`,F=t.route;let a;e[0]!==o||e[1]!==n||e[2]!==O?(a=X(o,n,{window:O}),e[0]=o,e[1]=n,e[2]=O,e[3]=a):a=e[3];let u;e[4]!==a?(u={title:"Requests",href:a},e[4]=a,e[5]=u):u=e[5];let c;e[6]!==t.route?(c={title:t.route,href:"#"},e[6]=t.route,e[7]=c):c=e[7];let m;e[8]!==u||e[9]!==c?(m=[u,c],e[8]=u,e[9]=c,e[10]=m):m=e[10];let p;e[11]!==t.route?(p=r.jsx(oe,{title:r.jsx("span",{className:"font-mono",children:t.route})}),e[11]=t.route,e[12]=p):p=e[12];let d;e[13]!==s.count?(d=ae(s.count),e[13]=s.count,e[14]=d):d=e[14];let f;e[15]!==d?(f=r.jsx(D,{label:"Requests",value:d}),e[15]=d,e[16]=f):f=e[16];let x;e[17]!==s.count||e[18]!==s.errors?(x=ue(s.errors,s.count),e[17]=s.count,e[18]=s.errors,e[19]=x):x=e[19];const L=s.errors?"destructive":"success",W=`${s.errors} 5xx · ${s.client_errors} 4xx`,C=s.count?s.errors/s.count*100:0,T=i.count?i.errors/i.count*100:0;let h;e[20]!==C||e[21]!==T?(h={current:C,previous:T,goodDirection:"down"},e[20]=C,e[21]=T,e[22]=h):h=e[22];let v;e[23]!==l||e[24]!==W||e[25]!==h||e[26]!==x||e[27]!==L?(v=r.jsx(D,{label:"Errors",value:x,tone:L,hint:W,delta:h,deltaCaption:l}),e[23]=l,e[24]=W,e[25]=h,e[26]=x,e[27]=L,e[28]=v):v=e[28];const V=s.p50/1e3;let j;e[29]!==V?(j=N(V),e[29]=V,e[30]=j):j=e[30];let y;e[31]!==j?(y=r.jsx(D,{label:"p50",value:j}),e[31]=j,e[32]=y):y=e[32];const B=s.p95/1e3;let _;e[33]!==B?(_=N(B),e[33]=B,e[34]=_):_=e[34];let b;e[35]!==i.p95||e[36]!==s.p95?(b={current:s.p95,previous:i.p95,goodDirection:"down"},e[35]=i.p95,e[36]=s.p95,e[37]=b):b=e[37];let w;e[38]!==l||e[39]!==_||e[40]!==b?(w=r.jsx(D,{label:"p95",value:_,delta:b,deltaCaption:l}),e[38]=l,e[39]=_,e[40]=b,e[41]=w):w=e[41];const H=s.p99/1e3;let g;e[42]!==H?(g=N(H),e[42]=H,e[43]=g):g=e[43];const I=s.max/1e3;let P;e[44]!==I?(P=N(I),e[44]=I,e[45]=P):P=e[45];const K=`max ${P}`;let q;e[46]!==g||e[47]!==K?(q=r.jsx(D,{label:"p99 / max",value:g,hint:K}),e[46]=g,e[47]=K,e[48]=q):q=e[48];let k;e[49]!==v||e[50]!==y||e[51]!==w||e[52]!==q||e[53]!==f?(k=r.jsxs(ie,{children:[f,v,y,w,q]}),e[49]=v,e[50]=y,e[51]=w,e[52]=q,e[53]=f,e[54]=k):k=e[54];let R;e[55]!==t.deploys||e[56]!==t.series?(R=r.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[r.jsx(ee,{label:"Requests",data:t.series,deploys:t.deploys}),r.jsx(te,{label:"Latency",data:t.series,deploys:t.deploys})]}),e[55]=t.deploys,e[56]=t.series,e[57]=R):R=e[57];let E;e[58]!==o||e[59]!==n?(E=U=>U.execution_id&&Y.visit(Z(o,n,U.execution_id)),e[58]=o,e[59]=n,e[60]=E):E=e[60];let $;e[61]===Symbol.for("react.memo_cache_sentinel")?($=[{key:"when",header:"When",cell:je},{key:"status",header:"Status",cell:ve},{key:"dur",header:"Duration",align:"right",cell:he},{key:"q",hideOnMobile:!0,header:"Queries",align:"right",cell:xe},{key:"user",hideOnMobile:!0,header:"User",cell:fe},{key:"tenant",hideOnMobile:!0,header:"Tenant",cell:de},{key:"comp",hideOnMobile:!0,header:"Inertia",cell:pe},{key:"ex",header:"Exception",cell:me}],e[61]=$):$=e[61];let S;e[62]!==t.requests||e[63]!==E?(S=r.jsx(se,{rows:t.requests,rowKey:ye,onRowClick:E,columns:$}),e[62]=t.requests,e[63]=E,e[64]=S):S=e[64];let M;return e[65]!==t.route||e[66]!==k||e[67]!==R||e[68]!==S||e[69]!==m||e[70]!==p?(M=r.jsxs(ne,{title:F,crumbs:m,children:[p,k,R,S]}),e[65]=t.route,e[66]=k,e[67]=R,e[68]=S,e[69]=m,e[70]=p,e[71]=M):M=e[71],M}function me(t){return r.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function pe(t){return r.jsx("span",{className:"font-mono text-xs",children:t.inertia_component??""})}function de(t){return r.jsx("span",{className:"font-mono text-xs",children:t.tenant??"–"})}function fe(t){return r.jsx("span",{className:"font-mono text-xs",children:t.user_ref??"–"})}function xe(t){return t.queries??"–"}function he(t){return N(t.duration)}function ve(t){return r.jsx(le,{status:t.status})}function je(t){return r.jsx("span",{className:"text-xs tabular-nums",children:ce(t.occurred_at)})}function ye(t){return t.execution_id}export{He as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as be,u as ke,r as ye,ao as _e,j as n,L as Z,a1 as ve,Y as we,t as he,e as xe,az as qe,i as Ne}from"./inertia-TViv6kNv.js";import{V as Ee,D as Re}from"./chart-panel-Cb4S_ej_.js";import{D as se}from"./data-table-iv1bdF6u.js";import{u as Pe,E as Se,P as Me}from"./env-layout-DrT8rO6P.js";import{a as De,S as Oe}from"./segmented-h1VdDTqE.js";import{S as X,a as Le}from"./stat-s4RpOS9w.js";import{S as Te}from"./status-badge-8jVV-LA4.js";import{c as m,p as $e,m as ee,w as pe,a as Ae}from"./format-B9SDkrWj.js";import"./series-chart-DaFPefku.js";import"./chart-hover-Vy52H4uD.js";import"./chart-B14-N9g7.js";import"./empty-state-6j_0AaQQ.js";import"./badge-Daw4Hvr8.js";import"./app-wordmark-nbjkzxwQ.js";import"./app-layout-yh-sPWgK.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.js";import"./label-COUKWqE_.js";import"./arrow-up-DVtOGdVA.js";function Mt(t){const e=be.c(167),{environment:de,window:u}=ke().props,{window:fe,label:ge}=Pe(),[i,je]=ye.useState("routes"),r=de.application_id,l=de.id,s=t.summary.current,o=t.summary.previous,c=fe==="custom"?"vs previous period":`vs previous ${ge}`;let f,g,j,b,k,y,d,h,x,p;if(e[0]!==r||e[1]!==c||e[2]!==l||e[3]!==t.exceptions.length||e[4]!==t.jobs.length||e[5]!==t.links.logs||e[6]!==t.links.people||e[7]!==t.people.length||e[8]!==t.recent_requests.length||e[9]!==t.routes.length||e[10]!==t.series||e[11]!==t.tenant||e[12]!==o.errors||e[13]!==o.exceptions||e[14]!==o.p95||e[15]!==o.requests||e[16]!==s.errors||e[17]!==s.exceptions||e[18]!==s.failed_jobs||e[19]!==s.jobs||e[20]!==s.logs||e[21]!==s.p95||e[22]!==s.requests||e[23]!==s.users||e[24]!==i||e[25]!==u){const a=[{key:"routes",label:"Routes",badge:t.routes.length},{key:"jobs",label:"Jobs",badge:t.jobs.length},{key:"exceptions",label:"Exceptions",badge:t.exceptions.length},{key:"people",label:"Users",badge:t.people.length},{key:"requests",label:"Recent requests",badge:t.recent_requests.length}];g=Se,y=t.tenant;let P;e[36]!==r||e[37]!==l||e[38]!==u?(P=_e(r,l,{window:u}),e[36]=r,e[37]=l,e[38]=u,e[39]=P):P=e[39];let S;e[40]!==P?(S={title:"Tenants",href:P},e[40]=P,e[41]=S):S=e[41];let M;e[42]!==t.tenant?(M={title:t.tenant,href:"#"},e[42]=t.tenant,e[43]=M):M=e[43],e[44]!==M||e[45]!==S?(d=[S,M],e[44]=M,e[45]=S,e[46]=d):d=e[46];let D;e[47]!==t.tenant?(D=n.jsx("span",{className:"font-mono",children:t.tenant}),e[47]=t.tenant,e[48]=D):D=e[48];let O;e[49]!==t.links.logs?(O=n.jsx(Z,{className:"text-xs underline",href:t.links.logs,children:"Logs"}),e[49]=t.links.logs,e[50]=O):O=e[50];let L;e[51]!==t.links.people?(L=n.jsx(Z,{className:"text-xs underline",href:t.links.people,children:"Users"}),e[51]=t.links.people,e[52]=L):L=e[52];let T;e[53]!==O||e[54]!==L?(T=n.jsxs(n.Fragment,{children:[O,L]}),e[53]=O,e[54]=L,e[55]=T):T=e[55],e[56]!==D||e[57]!==T?(h=n.jsx(Me,{title:D,actions:T}),e[56]=D,e[57]=T,e[58]=h):h=e[58];let $;e[59]!==s.requests?($=m(s.requests),e[59]=s.requests,e[60]=$):$=e[60];let A;e[61]!==o.requests||e[62]!==s.requests?(A={current:s.requests,previous:o.requests,goodDirection:"up"},e[61]=o.requests,e[62]=s.requests,e[63]=A):A=e[63];let C;e[64]!==c||e[65]!==$||e[66]!==A?(C=n.jsx(X,{label:"Requests",value:$,delta:A,deltaCaption:c}),e[64]=c,e[65]=$,e[66]=A,e[67]=C):C=e[67];let K;e[68]!==s.errors||e[69]!==s.requests?(K=$e(s.errors,s.requests),e[68]=s.errors,e[69]=s.requests,e[70]=K):K=e[70];const le=s.errors?"destructive":"success",oe=`${s.errors} of ${s.requests}`,ie=s.requests?s.errors/s.requests*100:0,ae=o.requests?o.errors/o.requests*100:0;let U;e[71]!==ie||e[72]!==ae?(U={current:ie,previous:ae,goodDirection:"down"},e[71]=ie,e[72]=ae,e[73]=U):U=e[73];let J;e[74]!==c||e[75]!==K||e[76]!==le||e[77]!==oe||e[78]!==U?(J=n.jsx(X,{label:"5xx",value:K,tone:le,hint:oe,delta:U,deltaCaption:c}),e[74]=c,e[75]=K,e[76]=le,e[77]=oe,e[78]=U,e[79]=J):J=e[79];let W;e[80]!==s.p95?(W=ee(s.p95),e[80]=s.p95,e[81]=W):W=e[81];let F;e[82]!==o.p95||e[83]!==s.p95?(F={current:s.p95,previous:o.p95,goodDirection:"down"},e[82]=o.p95,e[83]=s.p95,e[84]=F):F=e[84];let I;e[85]!==c||e[86]!==W||e[87]!==F?(I=n.jsx(X,{label:"p95",value:W,delta:F,deltaCaption:c}),e[85]=c,e[86]=W,e[87]=F,e[88]=I):I=e[88];let V;e[89]!==s.jobs?(V=m(s.jobs),e[89]=s.jobs,e[90]=V):V=e[90];const ce=`${s.failed_jobs} failed`,ue=s.failed_jobs?"destructive":"default";let z;e[91]!==V||e[92]!==ce||e[93]!==ue?(z=n.jsx(X,{label:"Jobs",value:V,hint:ce,tone:ue}),e[91]=V,e[92]=ce,e[93]=ue,e[94]=z):z=e[94];let B;e[95]!==s.exceptions?(B=m(s.exceptions),e[95]=s.exceptions,e[96]=B):B=e[96];let H;e[97]!==o.exceptions||e[98]!==s.exceptions?(H={current:s.exceptions,previous:o.exceptions,goodDirection:"down"},e[97]=o.exceptions,e[98]=s.exceptions,e[99]=H):H=e[99];let Y;e[100]!==c||e[101]!==B||e[102]!==H?(Y=n.jsx(X,{label:"Exceptions",value:B,delta:H,deltaCaption:c}),e[100]=c,e[101]=B,e[102]=H,e[103]=Y):Y=e[103];let G;e[104]!==s.users?(G=m(s.users),e[104]=s.users,e[105]=G):G=e[105];let re;e[106]!==s.logs?(re=m(s.logs),e[106]=s.logs,e[107]=re):re=e[107];const me=`${re} log lines`;let Q;e[108]!==G||e[109]!==me?(Q=n.jsx(X,{label:"Users",value:G,hint:me}),e[108]=G,e[109]=me,e[110]=Q):Q=e[110],e[111]!==C||e[112]!==J||e[113]!==I||e[114]!==z||e[115]!==Y||e[116]!==Q?(x=n.jsxs(Le,{children:[C,J,I,z,Y,Q]}),e[111]=C,e[112]=J,e[113]=I,e[114]=z,e[115]=Y,e[116]=Q,e[117]=x):x=e[117],e[118]!==t.series?(p=n.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[n.jsx(Ee,{label:"Requests",data:t.series}),n.jsx(Re,{label:"Latency",data:t.series})]}),e[118]=t.series,e[119]=p):p=e[119],k="-mx-3 [scrollbar-width:none] overflow-x-auto px-3 md:mx-0 md:px-0 [&::-webkit-scrollbar]:hidden",f=Oe,j="w-max",b=a.map(te=>n.jsxs(De,{mono:!1,active:i===te.key,onClick:()=>je(te.key),className:"gap-1.5 px-3",children:[te.label,n.jsx("span",{className:"opacity-60",children:m(te.badge)})]},te.key)),e[0]=r,e[1]=c,e[2]=l,e[3]=t.exceptions.length,e[4]=t.jobs.length,e[5]=t.links.logs,e[6]=t.links.people,e[7]=t.people.length,e[8]=t.recent_requests.length,e[9]=t.routes.length,e[10]=t.series,e[11]=t.tenant,e[12]=o.errors,e[13]=o.exceptions,e[14]=o.p95,e[15]=o.requests,e[16]=s.errors,e[17]=s.exceptions,e[18]=s.failed_jobs,e[19]=s.jobs,e[20]=s.logs,e[21]=s.p95,e[22]=s.requests,e[23]=s.users,e[24]=i,e[25]=u,e[26]=f,e[27]=g,e[28]=j,e[29]=b,e[30]=k,e[31]=y,e[32]=d,e[33]=h,e[34]=x,e[35]=p}else f=e[26],g=e[27],j=e[28],b=e[29],k=e[30],y=e[31],d=e[32],h=e[33],x=e[34],p=e[35];let _;e[120]!==f||e[121]!==j||e[122]!==b?(_=n.jsx(f,{className:j,children:b}),e[120]=f,e[121]=j,e[122]=b,e[123]=_):_=e[123];let v;e[124]!==k||e[125]!==_?(v=n.jsx("div",{className:k,children:_}),e[124]=k,e[125]=_,e[126]=v):v=e[126];let w;e[127]!==r||e[128]!==l||e[129]!==t.routes||e[130]!==i||e[131]!==u?(w=i==="routes"&&n.jsx(se,{rows:t.routes,rowKey:ct,empty:"No requests from this tenant in this window.",columns:[{key:"name",header:"Route",cell:a=>n.jsx(Z,{className:"font-mono text-xs hover:underline",href:ve(r,l,a.group_hash,{window:u}),children:a.name})},{key:"count",header:"Requests",align:"right",cell:at},{key:"errors",header:"5xx",align:"right",cell:it},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:ot},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:lt}]}),e[127]=r,e[128]=l,e[129]=t.routes,e[130]=i,e[131]=u,e[132]=w):w=e[132];let q;e[133]!==r||e[134]!==l||e[135]!==t.jobs||e[136]!==i||e[137]!==u?(q=i==="jobs"&&n.jsx(se,{rows:t.jobs,rowKey:rt,empty:"No job attempts from this tenant in this window.",columns:[{key:"name",header:"Job",cell:a=>n.jsx(Z,{className:"font-mono text-xs hover:underline",href:we(r,l,a.group_hash,{window:u}),children:a.name})},{key:"count",header:"Attempts",align:"right",cell:nt},{key:"failed",header:"Failed",align:"right",cell:st},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:tt},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:et}]}),e[133]=r,e[134]=l,e[135]=t.jobs,e[136]=i,e[137]=u,e[138]=q):q=e[138];let N;e[139]!==r||e[140]!==l||e[141]!==t.exceptions||e[142]!==i?(N=i==="exceptions"&&n.jsx(se,{rows:t.exceptions,rowKey:Ze,empty:"No exceptions from this tenant in this window.",columns:[{key:"when",header:"When",cell:Xe},{key:"class",header:"Class",cell:Qe},{key:"message",header:"Message",cell:Ge},{key:"issue",header:"Issue",cell:Ye},{key:"exe",hideOnMobile:!0,header:"Execution",cell:a=>a.execution_id?n.jsx(Z,{className:"font-mono text-xs hover:underline",href:he(r,l,a.execution_id),children:a.execution_id.slice(0,8)}):n.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})}]}),e[139]=r,e[140]=l,e[141]=t.exceptions,e[142]=i,e[143]=N):N=e[143];let E;e[144]!==r||e[145]!==l||e[146]!==t.people||e[147]!==i?(E=i==="people"&&n.jsx(se,{rows:t.people,rowKey:He,empty:"No users tagged with this tenant.",onRowClick:a=>xe.visit(qe(r,l,a.ref)),columns:[{key:"name",header:"User",cell:Be},{key:"ref",hideOnMobile:!0,header:"Ref",cell:ze},{key:"seen",header:"Last seen",align:"right",cell:Ve}]}),e[144]=r,e[145]=l,e[146]=t.people,e[147]=i,e[148]=E):E=e[148];let R;e[149]!==r||e[150]!==l||e[151]!==t.recent_requests||e[152]!==i?(R=i==="requests"&&n.jsx(se,{rows:t.recent_requests,rowKey:Ie,empty:"No requests from this tenant in this window.",onRowClick:a=>xe.visit(he(r,l,a.execution_id)),columns:[{key:"when",header:"When",cell:Fe},{key:"name",header:"Route",cell:We},{key:"status",header:"Status",cell:Je},{key:"dur",header:"Duration",align:"right",cell:Ue},{key:"user",hideOnMobile:!0,header:"User",cell:Ke},{key:"ex",hideOnMobile:!0,header:"Exception",cell:Ce}]}),e[149]=r,e[150]=l,e[151]=t.recent_requests,e[152]=i,e[153]=R):R=e[153];let ne;return e[154]!==g||e[155]!==w||e[156]!==q||e[157]!==N||e[158]!==E||e[159]!==R||e[160]!==y||e[161]!==d||e[162]!==h||e[163]!==x||e[164]!==p||e[165]!==v?(ne=n.jsxs(g,{title:y,crumbs:d,children:[h,x,p,v,w,q,N,E,R]}),e[154]=g,e[155]=w,e[156]=q,e[157]=N,e[158]=E,e[159]=R,e[160]=y,e[161]=d,e[162]=h,e[163]=x,e[164]=p,e[165]=v,e[166]=ne):ne=e[166],ne}function Ce(t){return n.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function Ke(t){return n.jsx("span",{className:"font-mono text-xs",children:t.user_ref??"–"})}function Ue(t){return ee(t.duration)}function Je(t){return n.jsx(Te,{status:t.status})}function We(t){return n.jsx("span",{className:"font-mono text-xs",children:t.name})}function Fe(t){return n.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ie(t){return t.execution_id}function Ve(t){return Ae(t.last_seen_at)}function ze(t){return n.jsx("span",{className:"font-mono text-xs",children:t.ref})}function Be(t){return n.jsxs("span",{className:"text-xs",children:[n.jsx("span",{className:"font-medium",children:t.name}),t.email&&n.jsxs("span",{className:"text-muted-foreground",children:[" · ",t.email]})]})}function He(t){return t.ref}function Ye(t){return t.issue_id?n.jsx(Z,{className:"font-mono text-xs hover:underline",href:Ne(t.issue_id),children:t.issue_key}):n.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})}function Ge(t){return n.jsx("span",{className:"line-clamp-1 text-xs",children:t.message})}function Qe(t){return n.jsx("span",{className:"font-mono text-xs",children:t.class_name})}function Xe(t){return n.jsx("span",{className:"text-xs tabular-nums",children:pe(t.occurred_at)})}function Ze(t){return t.id}function et(t){return ee(t.max)}function tt(t){return ee(t.avg)}function st(t){return n.jsx("span",{className:t.failed?"text-destructive":"",children:m(t.failed)})}function nt(t){return m(t.count)}function rt(t){return t.group_hash}function lt(t){return ee(t.max)}function ot(t){return ee(t.avg)}function it(t){return n.jsx("span",{className:t.errors?"text-destructive":"",children:m(t.errors)})}function at(t){return m(t.count)}function ct(t){return t.group_hash}export{Mt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as B,u as G,ag as J,j as s,L as K}from"./inertia-TViv6kNv.js";import{F as M}from"./flamegraph-qcekju8V.js";import{P as O,E as Q}from"./env-layout-DrT8rO6P.js";import{S as N,a as T}from"./stat-s4RpOS9w.js";import{C as U,a as V}from"./card-BX_3HXcJ.js";import{e as X}from"./execution-path-CzgBUi5e.js";import{w as Y,c as Z,m as A,b as ee}from"./format-B9SDkrWj.js";import"./data-table-iv1bdF6u.js";import"./chart-hover-Vy52H4uD.js";import"./empty-state-6j_0AaQQ.js";import"./segmented-h1VdDTqE.js";import"./label-COUKWqE_.js";import"./index-OqI59zPb.js";import"./app-wordmark-nbjkzxwQ.js";import"./badge-Daw4Hvr8.js";import"./app-layout-yh-sPWgK.js";import"./live-dot-ChfUtY3p.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.js";import"./arrow-up-DVtOGdVA.js";function ye(i){const e=B.c(71),{environment:z,window:I}=G().props,l=z.application_id,r=z.id,t=i.profile,L=t.execution_preview??"Profile";let o;e[0]!==l||e[1]!==r||e[2]!==I?(o=J(l,r,{window:I}),e[0]=l,e[1]=r,e[2]=I,e[3]=o):o=e[3];let a;e[4]!==o?(a={title:"Profiles",href:o},e[4]=o,e[5]=a):a=e[5];const F=t.execution_preview??`Profile ${t.id}`;let n;e[6]!==F?(n={title:F,href:"#"},e[6]=F,e[7]=n):n=e[7];let c;e[8]!==a||e[9]!==n?(c=[a,n],e[8]=a,e[9]=n,e[10]=c):c=e[10];const R=t.execution_preview??`Profile ${t.id}`;let p;e[11]!==R?(p=s.jsx("span",{className:"font-mono",children:R}),e[11]=R,e[12]=p):p=e[12];let d;e[13]!==t.occurred_at?(d=Y(t.occurred_at),e[13]=t.occurred_at,e[14]=d):d=e[14];let f;e[15]!==d?(f=s.jsx("span",{children:d}),e[15]=d,e[16]=f):f=e[16];const D=t.mode?` · ${t.mode}`:"";let m;e[17]!==D||e[18]!==t.profiler?(m=s.jsxs("span",{children:[t.profiler,D]}),e[17]=D,e[18]=t.profiler,e[19]=m):m=e[19];let u;e[20]!==t.server?(u=t.server&&s.jsxs("span",{children:["server ",t.server]}),e[20]=t.server,e[21]=u):u=e[21];let x;e[22]!==t.deploy?(x=t.deploy&&s.jsxs("span",{children:["deploy ",t.deploy.slice(0,12)]}),e[22]=t.deploy,e[23]=x):x=e[23];let v;e[24]!==l||e[25]!==r||e[26]!==t.execution_id||e[27]!==t.execution_source?(v=t.execution_id&&s.jsx(K,{className:"hover:underline",href:X({applicationId:l,environmentId:r,source:t.execution_source,executionId:t.execution_id}),children:"view execution"}),e[24]=l,e[25]=r,e[26]=t.execution_id,e[27]=t.execution_source,e[28]=v):v=e[28];let h;e[29]!==m||e[30]!==u||e[31]!==x||e[32]!==v||e[33]!==f?(h=s.jsxs("span",{className:"flex flex-wrap gap-x-3 text-xs",children:[f,m,u,x,v]}),e[29]=m,e[30]=u,e[31]=x,e[32]=v,e[33]=f,e[34]=h):h=e[34];let j;e[35]!==h||e[36]!==p?(j=s.jsx(O,{withWindow:!1,title:p,description:h}),e[35]=h,e[36]=p,e[37]=j):j=e[37];let _;e[38]!==t.samples?(_=Z(t.samples),e[38]=t.samples,e[39]=_):_=e[39];let w;e[40]!==_?(w=s.jsx(N,{label:"Samples",value:_}),e[40]=_,e[41]=w):w=e[41];let y;e[42]!==t.duration?(y=A(t.duration),e[42]=t.duration,e[43]=y):y=e[43];let P;e[44]!==t.interval?(P=t.interval?`every ${A(t.interval/1e3,2)}`:void 0,e[44]=t.interval,e[45]=P):P=e[45];let b;e[46]!==y||e[47]!==P?(b=s.jsx(N,{label:"Duration",value:y,hint:P}),e[46]=y,e[47]=P,e[48]=b):b=e[48];const H=t.mode??void 0;let S;e[49]!==H||e[50]!==t.profiler?(S=s.jsx(N,{label:"Profiler",value:t.profiler,hint:H}),e[49]=H,e[50]=t.profiler,e[51]=S):S=e[51];let g;e[52]!==t.stacks_bytes?(g=ee(t.stacks_bytes),e[52]=t.stacks_bytes,e[53]=g):g=e[53];const W=i.truncated?"truncated for display":"uncompressed",q=i.truncated?"warning":void 0;let k;e[54]!==g||e[55]!==W||e[56]!==q?(k=s.jsx(N,{label:"Stacks",value:g,hint:W,tone:q}),e[54]=g,e[55]=W,e[56]=q,e[57]=k):k=e[57];let E;e[58]!==w||e[59]!==b||e[60]!==S||e[61]!==k?(E=s.jsxs(T,{children:[w,b,S,k]}),e[58]=w,e[59]=b,e[60]=S,e[61]=k,e[62]=E):E=e[62];let $;e[63]!==i.collapsed?($=s.jsx(U,{children:s.jsx(V,{className:"pt-4",children:s.jsx(M,{collapsed:i.collapsed})})}),e[63]=i.collapsed,e[64]=$):$=e[64];let C;return e[65]!==L||e[66]!==j||e[67]!==E||e[68]!==$||e[69]!==c?(C=s.jsxs(Q,{title:L,crumbs:c,children:[j,E,$]}),e[65]=L,e[66]=j,e[67]=E,e[68]=$,e[69]=c,e[70]=C):C=e[70],C}export{ye as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,u as U,ap as W,j as t,L as K,y as F,i as G}from"./inertia-TViv6kNv.js";import{C as J}from"./chart-panel-Cb4S_ej_.js";import{D as z}from"./data-table-iv1bdF6u.js";import{E as A}from"./empty-state-6j_0AaQQ.js";import{P as Q,E as V}from"./env-layout-DrT8rO6P.js";import{b as X}from"./series-chart-DaFPefku.js";import{I as Y}from"./status-badge-8jVV-LA4.js";import{B as Z}from"./app-wordmark-nbjkzxwQ.js";import{C as M,a as T,b as q,c as B}from"./card-BX_3HXcJ.js";import{w as ee,c as R,m as se,a as te}from"./format-B9SDkrWj.js";import{ReleaseHealthStrip as re}from"./release-health-DC8oc7uw.js";import{E as ie,O as le}from"./app-layout-yh-sPWgK.js";import"./chart-hover-Vy52H4uD.js";import"./badge-Daw4Hvr8.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./segmented-h1VdDTqE.js";import"./label-COUKWqE_.js";import"./chart-B14-N9g7.js";import"./stat-s4RpOS9w.js";import"./arrow-up-DVtOGdVA.js";import"./checkbox-D3aRSsBj.js";function H(s){const e=L.c(6),{rows:o,empty:l}=s;let r;e[0]!==l?(r=t.jsx(A,{icon:le,...l}),e[0]=l,e[1]=r):r=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=[{key:"k",header:"Issue",cell:ne},{key:"t",header:"Title",cell:ae},{key:"s",header:"",cell:oe}],e[2]=i):i=e[2];let a;return e[3]!==o||e[4]!==r?(a=t.jsx(z,{rows:o,rowKey:me,empty:r,columns:i}),e[3]=o,e[4]=r,e[5]=a):a=e[5],a}function oe(s){return t.jsx(Y,{status:s.status})}function ae(s){return t.jsx("span",{className:"line-clamp-1 text-xs",children:s.title})}function ne(s){return t.jsx(K,{className:"font-mono text-xs hover:underline",href:G(s.id),children:s.key})}function me(s){return s.id}function Ae(s){const e=L.c(58),{environment:o,window:l}=U().props,r=o.application_id,i=o.id,a=s.release.ref;let n;e[0]!==r||e[1]!==i||e[2]!==l?(n=W(r,i,{window:l}),e[0]=r,e[1]=i,e[2]=l,e[3]=n):n=e[3];let m;e[4]!==n?(m={title:"Releases",href:n},e[4]=n,e[5]=m):m=e[5];let c;e[6]!==s.release.ref?(c={title:s.release.ref,href:"#"},e[6]=s.release.ref,e[7]=c):c=e[7];let d;e[8]!==m||e[9]!==c?(d=[m,c],e[8]=m,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==s.release.deploy?(u=t.jsx("span",{className:"font-mono",children:s.release.deploy}),e[11]=s.release.deploy,e[12]=u):u=e[12];let g;e[13]!==s.release.deployed_at?(g=s.release.deployed_at?ee(s.release.deployed_at):"never deployed",e[13]=s.release.deployed_at,e[14]=g):g=e[14];const O=`${g}${s.release.name?` · ${s.release.name}`:""}${s.release.previous_ref?` · after ${s.release.previous_ref}`:""}`;let f;e[15]!==r||e[16]!==i||e[17]!==s.release.deploy_id?(f=s.release.deploy_id&&t.jsx(Z,{asChild:!0,variant:"outline",size:"sm",children:t.jsx(K,{href:F(r,i,s.release.deploy_id),children:"Deploy"})}),e[15]=r,e[16]=i,e[17]=s.release.deploy_id,e[18]=f):f=e[18];let h;e[19]!==u||e[20]!==O||e[21]!==f?(h=t.jsx(Q,{withWindow:!1,title:u,description:O,actions:f}),e[19]=u,e[20]=O,e[21]=f,e[22]=h):h=e[22];const D=s.release.previous_ref?`vs ${s.release.previous_ref}`:void 0;let y;e[23]!==s.previous_summary||e[24]!==s.summary||e[25]!==D?(y=t.jsx(re,{health:s.summary,previous:s.previous_summary,deltaCaption:D}),e[23]=s.previous_summary,e[24]=s.summary,e[25]=D,e[26]=y):y=e[26];let p;e[27]!==s.summary.sessions?(p=R(s.summary.sessions),e[27]=s.summary.sessions,e[28]=p):p=e[28];let x;e[29]!==s.series?(x=t.jsx(X,{data:s.series}),e[29]=s.series,e[30]=x):x=e[30];let _;e[31]!==p||e[32]!==x?(_=t.jsx(J,{label:"Sessions by status",value:p,children:x}),e[31]=p,e[32]=x,e[33]=_):_=e[33];let S;e[34]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(q,{children:t.jsx(B,{children:"Issues first seen in this release"})}),e[34]=S):S=e[34];let k;e[35]===Symbol.for("react.memo_cache_sentinel")?(k={title:"No new issues in this release",description:"Issues first seen while this release was live would show here."},e[35]=k):k=e[35];let j;e[36]!==s.new_issues?(j=t.jsxs(M,{children:[S,t.jsx(T,{children:t.jsx(H,{rows:s.new_issues,empty:k})})]}),e[36]=s.new_issues,e[37]=j):j=e[37];let N;e[38]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(q,{children:t.jsx(B,{children:"Issues resolved in this release"})}),e[38]=N):N=e[38];let C;e[39]===Symbol.for("react.memo_cache_sentinel")?(C={title:"No issues marked resolved in this release",description:"Issues resolved and tagged with this deploy would show here."},e[39]=C):C=e[39];let v;e[40]!==s.resolved_issues?(v=t.jsxs(M,{children:[N,t.jsx(T,{children:t.jsx(H,{rows:s.resolved_issues,empty:C})})]}),e[40]=s.resolved_issues,e[41]=v):v=e[41];let w;e[42]!==j||e[43]!==v?(w=t.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[j,v]}),e[42]=j,e[43]=v,e[44]=w):w=e[44];let E;e[45]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx("h2",{className:"text-sm font-semibold",children:"Sessions"}),e[45]=E):E=e[45];let $,I;e[46]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(A,{icon:ie,title:"No sessions reported for this release",description:"Sessions come from the browser client and the gem's request middleware; config.track_sessions turns both off."}),I=[{key:"id",header:"Session",cell:xe},{key:"source",hideOnMobile:!0,header:"Source",cell:pe},{key:"status",header:"Status",cell:ye},{key:"user",hideOnMobile:!0,header:"User",cell:he},{key:"duration",header:"Duration",align:"right",cell:fe},{key:"activity",hideOnMobile:!0,header:"Requests / visits",align:"right",cell:ue},{key:"errors",hideOnMobile:!0,header:"Errors",align:"right",cell:de},{key:"started",header:"Started",align:"right",cell:ce}],e[46]=$,e[47]=I):($=e[46],I=e[47]);let b;e[48]!==s.sessions?(b=t.jsx(z,{rows:s.sessions,rowKey:je,rowClassName:_e,empty:$,columns:I}),e[48]=s.sessions,e[49]=b):b=e[49];let P;return e[50]!==s.release.ref||e[51]!==y||e[52]!==_||e[53]!==w||e[54]!==b||e[55]!==d||e[56]!==h?(P=t.jsxs(V,{title:a,crumbs:d,children:[h,y,_,w,E,b]}),e[50]=s.release.ref,e[51]=y,e[52]=_,e[53]=w,e[54]=b,e[55]=d,e[56]=h,e[57]=P):P=e[57],P}function ce(s){return te(s.started_at)}function de(s){return t.jsx("span",{className:s.errors?"text-destructive":"",children:R(s.errors)})}function ue(s){return`${R(s.requests)} / ${R(s.visits)}`}function fe(s){return se(s.duration)}function he(s){return t.jsx("span",{className:"font-mono text-xs",children:s.user_ref})}function ye(s){return t.jsx("span",{className:s.status==="crashed"?"text-destructive text-xs font-semibold":"text-xs",children:s.status})}function pe(s){return t.jsx("span",{className:"text-xs",children:s.source})}function xe(s){return t.jsx("span",{className:"font-mono text-xs",children:s.session_id})}function _e(s){return s.status==="crashed"?"bg-destructive/5":void 0}function je(s){return s.id}export{Ae as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Ge,u as Le,z as ze,j as s,L as Oe,i as Pe}from"./inertia-TViv6kNv.js";import{D as ke}from"./data-table-iv1bdF6u.js";import{E as Se}from"./empty-state-6j_0AaQQ.js";import{P as Be,E as Ke}from"./env-layout-DrT8rO6P.js";import{R as Ue}from"./relative-time-IOOgl5n2.js";import{S as ae,a as Ae}from"./stat-s4RpOS9w.js";import{I as We}from"./status-badge-8jVV-LA4.js";import{B as Je}from"./app-wordmark-nbjkzxwQ.js";import{C as Ee,a as He,b as Me,c as Ie}from"./card-BX_3HXcJ.js";import{w as Qe,m as Te,p as ce,c as De}from"./format-B9SDkrWj.js";import{c as Ve,a as Xe}from"./source-link-B2183i2-.js";import{ReleaseHealthStrip as Ye}from"./release-health-DC8oc7uw.js";import{G as Ze,O as Fe}from"./app-layout-yh-sPWgK.js";import"./chart-hover-Vy52H4uD.js";import"./badge-Daw4Hvr8.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./segmented-h1VdDTqE.js";import"./label-COUKWqE_.js";import"./arrow-up-DVtOGdVA.js";import"./checkbox-D3aRSsBj.js";function fe(t,e){if(!t)return null;const l=(e-t)/t*100;return s.jsxs("span",{className:l>10?"text-destructive":l<-10?"text-emerald-600":"text-muted-foreground",children:[l>0?"+":"",l.toFixed(0),"%"]})}function It(t){const e=Ge.c(132),{environment:l}=Le().props,me=l.application_id,de=l.id,r=t.compare.request,o=t.compare.job_attempt,i=l.repository_url;let z;e[0]!==t.deploy.previous_ref||e[1]!==t.deploy.repository_ref||e[2]!==i?(z=Ve(i,t.deploy.previous_ref,t.deploy.repository_ref),e[0]=t.deploy.previous_ref,e[1]=t.deploy.repository_ref,e[2]=i,e[3]=z):z=e[3];const B=z,ue=i?.includes("gitlab")?"GitLab":"GitHub",qe=t.deploy.ref;let n;e[4]!==me||e[5]!==de?(n=ze(me,de),e[4]=me,e[5]=de,e[6]=n):n=e[6];let a;e[7]!==n?(a={title:"Deploys",href:n},e[7]=n,e[8]=a):a=e[8];let c;e[9]!==t.deploy.ref?(c={title:t.deploy.ref,href:"#"},e[9]=t.deploy.ref,e[10]=c):c=e[10];let f;e[11]!==a||e[12]!==c?(f=[a,c],e[11]=a,e[12]=c,e[13]=f):f=e[13];let m;e[14]!==t.deploy.deploy?(m=s.jsx("span",{className:"font-mono",children:t.deploy.deploy}),e[14]=t.deploy.deploy,e[15]=m):m=e[15];let K;e[16]!==t.deploy.deployed_at?(K=Qe(t.deploy.deployed_at),e[16]=t.deploy.deployed_at,e[17]=K):K=e[17];const he=`${K}${t.deploy.name?` · ${t.deploy.name}`:""}${t.deploy.url?" · ":""}`;let d;e[18]!==t.deploy.url?(d=t.deploy.url&&s.jsx("a",{className:"text-sm underline",href:t.deploy.url,target:"_blank",rel:"noreferrer",children:"Open"}),e[18]=t.deploy.url,e[19]=d):d=e[19];let u;e[20]!==m||e[21]!==he||e[22]!==d?(u=s.jsx(Be,{withWindow:!1,title:m,description:he,actions:d}),e[20]=m,e[21]=he,e[22]=d,e[23]=u):u=e[23];let h;e[24]!==t.deploy.previous_ref?(h=t.deploy.previous_ref&&s.jsxs("span",{className:"text-muted-foreground ml-2 font-mono text-xs font-normal",children:["since ",t.deploy.previous_ref.slice(0,7)]}),e[24]=t.deploy.previous_ref,e[25]=h):h=e[25];let p;e[26]!==h?(p=s.jsxs("h2",{className:"text-sm font-semibold",children:["Changes",h]}),e[26]=h,e[27]=p):p=e[27];let x;e[28]!==ue||e[29]!==B?(x=B&&s.jsx(Je,{asChild:!0,variant:"outline",size:"sm",children:s.jsxs("a",{href:B,target:"_blank",rel:"noreferrer",children:["Compare on ",ue]})}),e[28]=ue,e[29]=B,e[30]=x):x=e[30];let y;e[31]!==p||e[32]!==x?(y=s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[p,x]}),e[31]=p,e[32]=x,e[33]=y):y=e[33];let U;e[34]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(Se,{icon:Ze,title:"No commits recorded",description:"The post-deploy hook sends the commits in each deploy. Reinstall it with bin/rails generate railwatch:install."}),e[34]=U):U=e[34];let b;e[35]!==i?(b={key:"sha",header:"Commit",cell:Ce=>{const Re=Xe(i,Ce.sha),$e=Ce.sha.slice(0,7);return Re?s.jsx("a",{className:"font-mono text-xs hover:underline",href:Re,target:"_blank",rel:"noreferrer",children:$e}):s.jsx("span",{className:"font-mono text-xs",children:$e})}},e[35]=i,e[36]=b):b=e[36];let A,W,J;e[37]===Symbol.for("react.memo_cache_sentinel")?(A={key:"m",header:"Message",cell:ct},W={key:"a",hideOnMobile:!0,header:"Author",cell:at},J={key:"at",hideOnMobile:!0,header:"When",align:"right",cell:nt},e[37]=A,e[38]=W,e[39]=J):(A=e[37],W=e[38],J=e[39]);let j;e[40]!==b?(j=[b,A,W,J],e[40]=b,e[41]=j):j=e[41];let _;e[42]!==t.deploy.commits||e[43]!==j?(_=s.jsx(ke,{rows:t.deploy.commits,rowKey:ft,empty:U,columns:j}),e[42]=t.deploy.commits,e[43]=j,e[44]=_):_=e[44];let Q;e[45]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx("h2",{className:"text-sm font-semibold",children:"Release health"}),e[45]=Q):Q=e[45];let v;e[46]!==t.health?(v=s.jsx(Ye,{health:t.health}),e[46]=t.health,e[47]=v):v=e[47];let V;e[48]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx("h2",{className:"text-sm font-semibold",children:"Hour before vs hour after"}),e[48]=V):V=e[48];const pe=r.after.p95/1e3;let w;e[49]!==pe?(w=Te(pe),e[49]=pe,e[50]=w):w=e[50];let g;e[51]!==r.after.p95||e[52]!==r.before.p95?(g=fe(r.before.p95,r.after.p95),e[51]=r.after.p95,e[52]=r.before.p95,e[53]=g):g=e[53];let N;e[54]!==w||e[55]!==g?(N=s.jsxs(s.Fragment,{children:[w," ",g]}),e[54]=w,e[55]=g,e[56]=N):N=e[56];const xe=r.before.p95/1e3;let X;e[57]!==xe?(X=Te(xe),e[57]=xe,e[58]=X):X=e[58];const ye=`was ${X}`;let k;e[59]!==N||e[60]!==ye?(k=s.jsx(ae,{label:"Request p95",value:N,hint:ye}),e[59]=N,e[60]=ye,e[61]=k):k=e[61];let S;e[62]!==r.after.count||e[63]!==r.after.errors?(S=ce(r.after.errors,r.after.count),e[62]=r.after.count,e[63]=r.after.errors,e[64]=S):S=e[64];const be=r.before.errors/Math.max(1,r.before.count),je=r.after.errors/Math.max(1,r.after.count);let C;e[65]!==be||e[66]!==je?(C=fe(be,je),e[65]=be,e[66]=je,e[67]=C):C=e[67];let R;e[68]!==S||e[69]!==C?(R=s.jsxs(s.Fragment,{children:[S," ",C]}),e[68]=S,e[69]=C,e[70]=R):R=e[70];let Y;e[71]!==r.before.count||e[72]!==r.before.errors?(Y=ce(r.before.errors,r.before.count),e[71]=r.before.count,e[72]=r.before.errors,e[73]=Y):Y=e[73];const _e=`was ${Y}`;let $;e[74]!==R||e[75]!==_e?($=s.jsx(ae,{label:"Request error rate",value:R,hint:_e}),e[74]=R,e[75]=_e,e[76]=$):$=e[76];let E;e[77]!==r.after.count?(E=De(r.after.count),e[77]=r.after.count,e[78]=E):E=e[78];let H;e[79]!==r.after.count||e[80]!==r.before.count?(H=fe(r.before.count,r.after.count),e[79]=r.after.count,e[80]=r.before.count,e[81]=H):H=e[81];let M;e[82]!==E||e[83]!==H?(M=s.jsxs(s.Fragment,{children:[E," ",H]}),e[82]=E,e[83]=H,e[84]=M):M=e[84];let Z;e[85]!==r.before.count?(Z=De(r.before.count),e[85]=r.before.count,e[86]=Z):Z=e[86];const ve=`was ${Z}`;let I;e[87]!==M||e[88]!==ve?(I=s.jsx(ae,{label:"Requests",value:M,hint:ve}),e[87]=M,e[88]=ve,e[89]=I):I=e[89];let T;e[90]!==o.after.count||e[91]!==o.after.errors?(T=ce(o.after.errors,o.after.count),e[90]=o.after.count,e[91]=o.after.errors,e[92]=T):T=e[92];const we=o.before.errors/Math.max(1,o.before.count),ge=o.after.errors/Math.max(1,o.after.count);let D;e[93]!==we||e[94]!==ge?(D=fe(we,ge),e[93]=we,e[94]=ge,e[95]=D):D=e[95];let F;e[96]!==T||e[97]!==D?(F=s.jsxs(s.Fragment,{children:[T," ",D]}),e[96]=T,e[97]=D,e[98]=F):F=e[98];let ee;e[99]!==o.before.count||e[100]!==o.before.errors?(ee=ce(o.before.errors,o.before.count),e[99]=o.before.count,e[100]=o.before.errors,e[101]=ee):ee=e[101];const Ne=`was ${ee}`;let O;e[102]!==F||e[103]!==Ne?(O=s.jsx(ae,{label:"Job failures",value:F,hint:Ne}),e[102]=F,e[103]=Ne,e[104]=O):O=e[104];let P;e[105]!==k||e[106]!==$||e[107]!==I||e[108]!==O?(P=s.jsxs(Ae,{children:[k,$,I,O]}),e[105]=k,e[106]=$,e[107]=I,e[108]=O,e[109]=P):P=e[109];let te;e[110]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(Me,{children:s.jsx(Ie,{children:"New issues after this deploy"})}),e[110]=te):te=e[110];let se,re;e[111]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(Se,{icon:Fe,title:"No new issues in the 24 hours after",description:"Issues first seen after this deploy would show here."}),re=[{key:"k",header:"Issue",cell:lt},{key:"t",header:"Title",cell:ot},{key:"s",header:"",cell:rt}],e[111]=se,e[112]=re):(se=e[111],re=e[112]);let q;e[113]!==t.new_issues?(q=s.jsxs(Ee,{children:[te,s.jsx(He,{children:s.jsx(ke,{rows:t.new_issues,rowKey:it,empty:se,columns:re})})]}),e[113]=t.new_issues,e[114]=q):q=e[114];let oe;e[115]===Symbol.for("react.memo_cache_sentinel")?(oe=s.jsx(Me,{children:s.jsx(Ie,{children:"Resolved in this deploy"})}),e[115]=oe):oe=e[115];let le,ie;e[116]===Symbol.for("react.memo_cache_sentinel")?(le=s.jsx(Se,{icon:Fe,title:"No issues marked resolved in this deploy",description:"Issues resolved and tagged with this deploy's ref would show here."}),ie=[{key:"k",header:"Issue",cell:tt},{key:"t",header:"Title",cell:et}],e[116]=le,e[117]=ie):(le=e[116],ie=e[117]);let G;e[118]!==t.resolved_issues?(G=s.jsxs(Ee,{children:[oe,s.jsx(He,{children:s.jsx(ke,{rows:t.resolved_issues,rowKey:st,empty:le,columns:ie})})]}),e[118]=t.resolved_issues,e[119]=G):G=e[119];let L;e[120]!==q||e[121]!==G?(L=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[q,G]}),e[120]=q,e[121]=G,e[122]=L):L=e[122];let ne;return e[123]!==t.deploy.ref||e[124]!==u||e[125]!==y||e[126]!==_||e[127]!==v||e[128]!==f||e[129]!==P||e[130]!==L?(ne=s.jsxs(Ke,{title:qe,crumbs:f,children:[u,y,_,Q,v,V,P,L]}),e[123]=t.deploy.ref,e[124]=u,e[125]=y,e[126]=_,e[127]=v,e[128]=f,e[129]=P,e[130]=L,e[131]=ne):ne=e[131],ne}function et(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function tt(t){return s.jsx(Oe,{className:"font-mono text-xs hover:underline",href:Pe(t.id),children:t.key})}function st(t){return t.id}function rt(t){return s.jsx(We,{status:t.status})}function ot(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function lt(t){return s.jsx(Oe,{className:"font-mono text-xs hover:underline",href:Pe(t.id),children:t.key})}function it(t){return t.id}function nt(t){return s.jsx(Ue,{className:"text-xs",iso:t.at})}function at(t){return s.jsx("span",{className:"text-xs",children:t.author})}function ct(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.message})}function ft(t){return t.sha}export{It as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as g,u as v,an as P,j as s,e as C,t as E,L as N,i as S}from"./inertia-TViv6kNv.js";import{D as y}from"./data-table-iv1bdF6u.js";import{P as $,E as b}from"./env-layout-DrT8rO6P.js";import{I,S as R}from"./status-badge-8jVV-LA4.js";import{C as D,b as H,c as K,a as L}from"./card-BX_3HXcJ.js";import{a as w,w as T,m as B}from"./format-B9SDkrWj.js";import"./chart-hover-Vy52H4uD.js";import"./empty-state-6j_0AaQQ.js";import"./badge-Daw4Hvr8.js";import"./app-wordmark-nbjkzxwQ.js";import"./app-layout-yh-sPWgK.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.js";import"./label-COUKWqE_.js";import"./segmented-h1VdDTqE.js";function fe(t){const e=g.c(31),{environment:j,window:_}=v().props,r=j.application_id,i=j.id,n=t.person?.name??t.person_ref;let o;e[0]!==r||e[1]!==i||e[2]!==_?(o=P(r,i,{window:_}),e[0]=r,e[1]=i,e[2]=_,e[3]=o):o=e[3];let a;e[4]!==o?(a={title:"Users",href:o},e[4]=o,e[5]=a):a=e[5];let l;e[6]!==n?(l={title:n,href:"#"},e[6]=n,e[7]=l):l=e[7];let c;e[8]!==a||e[9]!==l?(c=[a,l],e[8]=a,e[9]=l,e[10]=c):c=e[10];let u;e[11]!==t.person?(u=t.person?`${t.person.email??""} ${t.person.tenant?`· tenant ${t.person.tenant}`:""} · first seen ${w(t.person.first_seen_at)} · last seen ${w(t.person.last_seen_at)}`:"Not yet identified.",e[11]=t.person,e[12]=u):u=e[12];let m;e[13]!==n||e[14]!==u?(m=s.jsx($,{title:n,description:u}),e[13]=n,e[14]=u,e[15]=m):m=e[15];let d;e[16]!==t.issues?(d=t.issues.length>0&&s.jsxs(D,{children:[s.jsx(H,{children:s.jsx(K,{children:"Issues affecting this user"})}),s.jsx(L,{children:s.jsx(y,{rows:t.issues,rowKey:V,columns:[{key:"k",header:"Issue",cell:Q},{key:"t",header:"Title",cell:O},{key:"s",header:"",cell:M},{key:"n",header:"Hits",align:"right",cell:J}]})})]}),e[16]=t.issues,e[17]=d):d=e[17];let p;e[18]!==r||e[19]!==i?(p=k=>k.execution_id&&C.visit(E(r,i,k.execution_id)),e[18]=r,e[19]=i,e[20]=p):p=e[20];let x;e[21]===Symbol.for("react.memo_cache_sentinel")?(x=[{key:"when",header:"When",cell:F},{key:"k",header:"Kind",cell:A},{key:"n",header:"Name",cell:z},{key:"st",header:"Status",cell:W},{key:"d",header:"Duration",align:"right",cell:U},{key:"ex",header:"Exception",cell:q}],e[21]=x):x=e[21];let f;e[22]!==t.executions||e[23]!==p?(f=s.jsx(y,{rows:t.executions,rowKey:G,onRowClick:p,columns:x}),e[22]=t.executions,e[23]=p,e[24]=f):f=e[24];let h;return e[25]!==n||e[26]!==c||e[27]!==m||e[28]!==d||e[29]!==f?(h=s.jsxs(b,{title:n,crumbs:c,children:[m,d,f]}),e[25]=n,e[26]=c,e[27]=m,e[28]=d,e[29]=f,e[30]=h):h=e[30],h}function q(t){return s.jsx("span",{className:"text-destructive line-clamp-1 text-xs",children:t.exception_preview??""})}function U(t){return B(t.duration)}function W(t){return s.jsx(R,{status:t.status,outcome:t.outcome})}function z(t){return s.jsx("span",{className:"font-mono text-xs",children:t.name})}function A(t){return t.kind}function F(t){return s.jsx("span",{className:"text-xs",children:T(t.occurred_at)})}function G(t){return t.execution_id}function J(t){return t.count}function M(t){return s.jsx(I,{status:t.status})}function O(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function Q(t){return s.jsx(N,{className:"font-mono text-xs hover:underline",href:S(t.id),children:t.key})}function V(t){return t.id}export{fe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as se,u as ne,af as re,j as s,L as oe,t as ie}from"./inertia-TViv6kNv.js";import{V as ae,D as le}from"./chart-panel-Cb4S_ej_.js";import{D as Z}from"./data-table-iv1bdF6u.js";import{E as ee}from"./empty-state-6j_0AaQQ.js";import{P as ce,E as me}from"./env-layout-DrT8rO6P.js";import{S as T,a as ue}from"./stat-s4RpOS9w.js";import{S as de}from"./status-badge-8jVV-LA4.js";import{C as pe,a as fe,b as xe,c as he}from"./card-BX_3HXcJ.js";import{c as Y,m as P,w as je}from"./format-B9SDkrWj.js";import{B as te}from"./braces-DhFbHPsz.js";import"./series-chart-DaFPefku.js";import"./chart-hover-Vy52H4uD.js";import"./chart-B14-N9g7.js";import"./badge-Daw4Hvr8.js";import"./app-wordmark-nbjkzxwQ.js";import"./app-layout-yh-sPWgK.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./index-1ol1-QWI.js";import"./checkbox-D3aRSsBj.js";import"./label-COUKWqE_.js";import"./segmented-h1VdDTqE.js";import"./arrow-up-DVtOGdVA.js";function ge(t){const e=se.c(5),{attributes:i}=t;let a;e[0]!==i?(a=Object.entries(i),e[0]=i,e[1]=a):a=e[1];const r=a;if(r.length===0){let n;return e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("span",{className:"text-muted-foreground text-xs",children:"–"}),e[2]=n):n=e[2],n}let o;return e[3]!==r?(o=s.jsx("span",{className:"flex flex-wrap gap-1",children:r.map(ye)}),e[3]=r,e[4]=o):o=e[4],o}function ye(t){const[e,i]=t;return s.jsxs("span",{className:"bg-muted rounded-sm px-1.5 font-mono text-[10px]",children:[e,"=",String(i)]},e)}function Ze(t){const e=se.c(73),{environment:i,window:a}=ne().props,r=i.application_id,o=i.id,n=t.summary.current,V=t.name??"Span";let l;e[0]!==r||e[1]!==o||e[2]!==a?(l=re(r,o,{window:a}),e[0]=r,e[1]=o,e[2]=a,e[3]=l):l=e[3];let c;e[4]!==l?(c={title:"Spans",href:l},e[4]=l,e[5]=c):c=e[5];const W=t.name??"Span";let m;e[6]!==W?(m={title:W,href:"#"},e[6]=W,e[7]=m):m=e[7];let u;e[8]!==c||e[9]!==m?(u=[c,m],e[8]=c,e[9]=m,e[10]=u):u=e[10];const q=t.name??"Span";let d;e[11]!==q?(d=s.jsx(ce,{title:s.jsx("span",{className:"font-mono",children:q}),description:"Every recording of this span in the window."}),e[11]=q,e[12]=d):d=e[12];let p;e[13]!==n.count?(p=Y(n.count),e[13]=n.count,e[14]=p):p=e[14];let f;e[15]!==n.count||e[16]!==t.summary.previous.count?(f={current:n.count,previous:t.summary.previous.count,goodDirection:"up"},e[15]=n.count,e[16]=t.summary.previous.count,e[17]=f):f=e[17];let x;e[18]!==p||e[19]!==f?(x=s.jsx(T,{label:"Recorded",value:p,delta:f,deltaCaption:"vs previous period"}),e[18]=p,e[19]=f,e[20]=x):x=e[20];let h;e[21]!==n.errors?(h=Y(n.errors),e[21]=n.errors,e[22]=h):h=e[22];const F=n.errors?"destructive":void 0;let j;e[23]!==h||e[24]!==F?(j=s.jsx(T,{label:"Failed",value:h,tone:F}),e[23]=h,e[24]=F,e[25]=j):j=e[25];const I=n.p95/1e3;let g;e[26]!==I?(g=P(I,2),e[26]=I,e[27]=g):g=e[27];const z=n.p99/1e3;let C;e[28]!==z?(C=P(z,2),e[28]=z,e[29]=C):C=e[29];const G=`p99 ${C}`;let y;e[30]!==g||e[31]!==G?(y=s.jsx(T,{label:"p95",value:g,hint:G}),e[30]=g,e[31]=G,e[32]=y):y=e[32];const J=n.max/1e3;let b;e[33]!==J?(b=P(J,2),e[33]=J,e[34]=b):b=e[34];const Q=n.avg/1e3;let D;e[35]!==Q?(D=P(Q,2),e[35]=Q,e[36]=D):D=e[36];const U=`avg ${D}`;let v;e[37]!==b||e[38]!==U?(v=s.jsx(T,{label:"Max",value:b,hint:U}),e[37]=b,e[38]=U,e[39]=v):v=e[39];let _;e[40]!==x||e[41]!==j||e[42]!==y||e[43]!==v?(_=s.jsxs(ue,{children:[x,j,y,v]}),e[40]=x,e[41]=j,e[42]=y,e[43]=v,e[44]=_):_=e[44];let S;e[45]!==t.series?(S=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[s.jsx(ae,{legend:"outcome",label:"Recordings",seriesLabel:"Spans",data:t.series}),s.jsx(le,{label:"Duration",data:t.series})]}),e[45]=t.series,e[46]=S):S=e[46];let R;e[47]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(xe,{children:s.jsx(he,{children:"Attributes"})}),e[47]=R):R=e[47];let L,M;e[48]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(ee,{icon:te,title:"No attributes recorded",description:"Pass a hash to Railwatch.span to tag each recording."}),M=[{key:"k",header:"Key",cell:Pe},{key:"v",header:"Most common values",cell:ke},{key:"n",header:"Spans",align:"right",cell:Ne}],e[48]=L,e[49]=M):(L=e[48],M=e[49]);let w;e[50]!==t.facets?(w=s.jsxs(pe,{children:[R,s.jsx(fe,{children:s.jsx(Z,{rows:t.facets,rowKey:Ce,empty:L,columns:M})})]}),e[50]=t.facets,e[51]=w):w=e[51];let $,A,B;e[52]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ee,{icon:te,title:"No recordings in this window",description:"Widen the time window to see older recordings of this span."}),A={key:"when",header:"When",cell:Se},B={key:"status",header:"Status",cell:_e},e[52]=$,e[53]=A,e[54]=B):($=e[52],A=e[53],B=e[54]);let N;e[55]!==r||e[56]!==o?(N={key:"in",hideOnMobile:!0,header:"In",cell:X=>X.execution_id?s.jsx(oe,{className:"font-mono text-xs hover:underline",href:ie(r,o,X.execution_id),children:X.execution_preview}):s.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})},e[55]=r,e[56]=o,e[57]=N):N=e[57];let K,O;e[58]===Symbol.for("react.memo_cache_sentinel")?(K={key:"attrs",hideOnMobile:!0,header:"Attributes",cell:ve},O={key:"d",header:"Duration",align:"right",cell:be},e[58]=K,e[59]=O):(K=e[58],O=e[59]);let k;e[60]!==N?(k=[A,B,N,K,O],e[60]=N,e[61]=k):k=e[61];let E;e[62]!==t.samples||e[63]!==k?(E=s.jsx(Z,{rows:t.samples,rowKey:we,empty:$,columns:k}),e[62]=t.samples,e[63]=k,e[64]=E):E=e[64];let H;return e[65]!==V||e[66]!==_||e[67]!==S||e[68]!==w||e[69]!==E||e[70]!==u||e[71]!==d?(H=s.jsxs(me,{title:V,crumbs:u,children:[d,_,S,w,E]}),e[65]=V,e[66]=_,e[67]=S,e[68]=w,e[69]=E,e[70]=u,e[71]=d,e[72]=H):H=e[72],H}function be(t){return P(t.duration,2)}function ve(t){return s.jsx(ge,{attributes:t.attributes})}function _e(t){return s.jsx(de,{outcome:t.status})}function Se(t){return s.jsx("span",{className:"text-xs",children:je(t.occurred_at)})}function we(t){return t.id}function Ne(t){return Y(t.count)}function ke(t){return s.jsx("span",{className:"flex flex-wrap gap-1",children:t.values.map(Ee)})}function Ee(t){const[e,i]=t;return s.jsxs("span",{className:"bg-muted rounded-sm px-1.5 font-mono text-[10px]",children:[e,s.jsxs("span",{className:"text-muted-foreground",children:[" ×",i]})]},e)}function Pe(t){return s.jsx("span",{className:"font-mono text-xs",children:t.key})}function Ce(t){return t.key}export{Ze as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,u as P,j as i,C as N,L as C}from"./inertia-TViv6kNv.js";import{C as I}from"./copy-id-Djks1fXB.js";import{E as R}from"./empty-state-6j_0AaQQ.js";import{P as q,E as K}from"./env-layout-DrT8rO6P.js";import{a as B,S as w}from"./stat-s4RpOS9w.js";import{K as H}from"./status-badge-8jVV-LA4.js";import{e as W}from"./execution-path-CzgBUi5e.js";import{c as E,m as L,s as T}from"./format-B9SDkrWj.js";import"./app-wordmark-nbjkzxwQ.js";import"./use-clipboard-ColgLyQ2.js";import"./index-1ol1-QWI.js";import"./badge-Daw4Hvr8.js";import"./app-layout-yh-sPWgK.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./checkbox-D3aRSsBj.js";import"./label-COUKWqE_.js";import"./segmented-h1VdDTqE.js";import"./arrow-up-DVtOGdVA.js";const A={request:"REQ",job_attempt:"JOB",scheduled_task:"TASK",command:"CMD",outgoing_request:"HTTP"};function M(t,e,s,h=0){return t.flatMap(p=>{const r=p.execution;return[{key:r.execution_id,depth:h,kind:r.kind,label:r.name,server:r.server,offset:r.offset,duration:r.duration,href:W({applicationId:e,environmentId:s,source:r.kind,executionId:r.execution_id}),failed:T(r.status,r.outcome)==="destructive"},...r.outgoing.map(a=>({key:`o-${a.id}`,depth:h+1,kind:"outgoing_request",label:`${a.method??""} ${a.url}`.trim(),server:null,offset:a.offset,duration:a.duration??0,href:null,failed:T(a.status_code)==="destructive"})),...M(p.children,e,s,h+1)]})}function D(t){const e=$.c(33),{row:s,scale:h}=t,p=`${s.depth*.75}rem`;let r;e[0]!==p?(r={paddingLeft:p},e[0]=p,e[1]=r):r=e[1];const a=s.failed?"destructive":"muted",g=A[s.kind]??s.kind;let l;e[2]!==a||e[3]!==g?(l=i.jsx(H,{tone:a,children:g}),e[2]=a,e[3]=g,e[4]=l):l=e[4];let n;e[5]!==s.label?(n=i.jsx("span",{className:"truncate font-mono",children:s.label}),e[5]=s.label,e[6]=n):n=e[6];let o;e[7]!==s.server?(o=s.server&&i.jsx("span",{className:"text-muted-foreground hidden shrink-0 font-mono text-[10px] sm:inline",children:s.server}),e[7]=s.server,e[8]=o):o=e[8];let c;e[9]!==r||e[10]!==l||e[11]!==n||e[12]!==o?(c=i.jsxs("span",{className:"col-start-1 row-start-1 flex min-w-0 items-center gap-1.5",style:r,children:[l,n,o]}),e[9]=r,e[10]=l,e[11]=n,e[12]=o,e[13]=c):c=e[13];let d;e[14]!==s.duration?(d=L(s.duration),e[14]=s.duration,e[15]=d):d=e[15];let f;e[16]!==d?(f=i.jsx("span",{className:"col-start-2 row-start-1 text-right font-mono tabular-nums md:col-start-3",children:d}),e[16]=d,e[17]=f):f=e[17];const j=s.failed?"bg-danger":s.href?"bg-primary":"bg-ok";let b;e[18]!==j?(b=N("block h-full rounded",j),e[18]=j,e[19]=b):b=e[19];const y=`${Math.min(99,s.offset/h*100)}%`,k=`${Math.max(.5,s.duration/h*100)}%`;let m;e[20]!==y||e[21]!==k?(m={marginLeft:y,width:k},e[20]=y,e[21]=k,e[22]=m):m=e[22];let u;e[23]!==b||e[24]!==m?(u=i.jsx("span",{className:"bg-muted/30 col-span-2 col-start-1 row-start-2 h-2 rounded md:col-span-1 md:col-start-2 md:row-start-1 md:h-3",children:i.jsx("span",{className:b,style:m})}),e[23]=b,e[24]=m,e[25]=u):u=e[25];let v;e[26]!==f||e[27]!==u||e[28]!==c?(v=i.jsxs(i.Fragment,{children:[c,f,u]}),e[26]=f,e[27]=u,e[28]=c,e[29]=v):v=e[29];const x=v;let _;return e[30]!==x||e[31]!==s.href?(_=s.href?i.jsx(C,{href:s.href,className:N("grid grid-cols-[1fr_4rem] items-center gap-x-2 gap-y-1 border-b px-2 py-1.5 text-xs last:border-b-0 md:grid-cols-[minmax(0,18rem)_1fr_4rem]","hover:bg-muted/40"),children:x}):i.jsx("div",{className:N("grid grid-cols-[1fr_4rem] items-center gap-x-2 gap-y-1 border-b px-2 py-1.5 text-xs last:border-b-0 md:grid-cols-[minmax(0,18rem)_1fr_4rem]","text-muted-foreground"),children:x}),e[30]=x,e[31]=s.href,e[32]=_):_=e[32],_}function de(t){const e=$.c(38),{environment:s}=P().props,h=s.application_id,p=s.id;let r,a,g,l,n,o,c;if(e[0]!==h||e[1]!==p||e[2]!==t.duration||e[3]!==t.roots||e[4]!==t.services||e[5]!==t.span_count||e[6]!==t.trace_id){const j=M(t.roots,h,p),b=j.filter(J),y=b.filter(F).length,k=Math.max(t.duration,1);r=K,l="Trace",e[14]===Symbol.for("react.memo_cache_sentinel")?(n=[{title:"Trace",href:"#"}],e[14]=n):n=e[14],e[15]!==t.trace_id?(o=i.jsx(q,{withWindow:!1,title:i.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[i.jsx("span",{className:"truncate font-mono text-base md:text-xl",children:t.trace_id}),i.jsx(I,{value:t.trace_id,label:""})]}),description:"Every execution that shares this trace id, nested by the call that started it."}),e[15]=t.trace_id,e[16]=o):o=e[16];let m;e[17]!==t.services.length?(m=E(t.services.length),e[17]=t.services.length,e[18]=m):m=e[18];let u;e[19]!==t.services?(u=t.services.join(" · "),e[19]=t.services,e[20]=u):u=e[20];let v;e[21]!==m||e[22]!==u?(v=i.jsx(w,{label:"Services",value:m,hint:u}),e[21]=m,e[22]=u,e[23]=v):v=e[23];let x;e[24]!==t.duration?(x=L(t.duration),e[24]=t.duration,e[25]=x):x=e[25];let _;e[26]!==x?(_=i.jsx(w,{label:"Total duration",value:x}),e[26]=x,e[27]=_):_=e[27],c=i.jsxs(B,{children:[i.jsx(w,{label:"Executions",value:E(b.length),hint:`${t.span_count} spans`}),v,_,i.jsx(w,{label:"Errors",value:E(y),tone:y?"destructive":void 0})]}),a="bg-card -mx-3 overflow-hidden border-y md:mx-0 md:rounded-lg md:border",g=j.length===0?i.jsx(R,{title:"Nothing in this trace",description:"No execution reported this trace id."}):j.map(S=>i.jsx(D,{row:S,scale:k},S.key)),e[0]=h,e[1]=p,e[2]=t.duration,e[3]=t.roots,e[4]=t.services,e[5]=t.span_count,e[6]=t.trace_id,e[7]=r,e[8]=a,e[9]=g,e[10]=l,e[11]=n,e[12]=o,e[13]=c}else r=e[7],a=e[8],g=e[9],l=e[10],n=e[11],o=e[12],c=e[13];let d;e[28]!==a||e[29]!==g?(d=i.jsx("div",{className:a,children:g}),e[28]=a,e[29]=g,e[30]=d):d=e[30];let f;return e[31]!==r||e[32]!==l||e[33]!==n||e[34]!==o||e[35]!==c||e[36]!==d?(f=i.jsxs(r,{title:l,crumbs:n,children:[o,c,d]}),e[31]=r,e[32]=l,e[33]=n,e[34]=o,e[35]=c,e[36]=d,e[37]=f):f=e[37],f}function F(t){return t.failed}function J(t){return t.href!==null}export{de as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Oe,u as Ce,j as s,L as be,a1 as Re,i as $e}from"./inertia-TViv6kNv.js";import{C as qe}from"./chart-hover-Vy52H4uD.js";import{V as ye,D as Ne}from"./chart-panel-Cb4S_ej_.js";import{D as he}from"./data-table-iv1bdF6u.js";import{E as ge}from"./empty-state-6j_0AaQQ.js";import{O as Pe}from"./onboarding-CYZi5Cqc.js";import{u as De,P as Ee,E as Le}from"./env-layout-DrT8rO6P.js";import{R as Me}from"./relative-time-IOOgl5n2.js";import{S as Te}from"./sparkline-cell-C3-5vFkP.js";import{S as D,a as Ke}from"./stat-s4RpOS9w.js";import{I as Ie}from"./status-badge-8jVV-LA4.js";import{C as fe,a as pe,b as _e,c as xe}from"./card-BX_3HXcJ.js";import{c as E,p as ve,m as Z,a as ke}from"./format-B9SDkrWj.js";import{crashFreeTone as Ae,rate as He}from"./release-health-DC8oc7uw.js";import{O as Be,r as Fe}from"./app-layout-yh-sPWgK.js";import"./series-chart-DaFPefku.js";import"./chart-B14-N9g7.js";import"./copy-block-BKFGd11J.js";import"./app-wordmark-nbjkzxwQ.js";import"./use-clipboard-ColgLyQ2.js";import"./index-1ol1-QWI.js";import"./live-dot-ChfUtY3p.js";import"./index-OqI59zPb.js";import"./badge-Daw4Hvr8.js";import"./segmented-h1VdDTqE.js";import"./label-COUKWqE_.js";import"./arrow-up-DVtOGdVA.js";import"./checkbox-D3aRSsBj.js";function Mt(t){const e=Oe.c(109),{environment:o}=Ce().props,{window:we,label:Se}=De(),ee=o.application_id,te=o.id,r=t.totals.requests.current,i=t.totals.requests.previous,l=t.totals.jobs.current,se=t.totals.jobs.previous,n=we==="custom"?"vs previous period":`vs previous ${Se}`;let L;e[0]===Symbol.for("react.memo_cache_sentinel")?(L=[{title:"Overview",href:"#"}],e[0]=L):L=e[0];const re=`${o.application_name} · ${o.name}`;let a;e[1]!==o.last_seen_at?(a=o.last_seen_at?s.jsxs(s.Fragment,{children:["Last event ",s.jsx(Me,{iso:o.last_seen_at})]}):"No events received yet.",e[1]=o.last_seen_at,e[2]=a):a=e[2];let c;e[3]!==re||e[4]!==a?(c=s.jsx(Ee,{title:re,description:a}),e[3]=re,e[4]=a,e[5]=c):c=e[5];let u;e[6]!==o.last_seen_at||e[7]!==o.token_prefix?(u=!o.last_seen_at&&s.jsx(Pe,{tokenPrefix:o.token_prefix}),e[6]=o.last_seen_at,e[7]=o.token_prefix,e[8]=u):u=e[8];let m;e[9]!==r.count?(m=E(r.count),e[9]=r.count,e[10]=m):m=e[10];let M;e[11]!==r.count||e[12]!==r.errors?(M=ve(r.errors,r.count),e[11]=r.count,e[12]=r.errors,e[13]=M):M=e[13];let T;e[14]!==r.client_errors||e[15]!==r.count?(T=ve(r.client_errors,r.count),e[14]=r.client_errors,e[15]=r.count,e[16]=T):T=e[16];const oe=`${M} 5xx · ${T} 4xx`,le=r.errors>0?"warning":void 0;let d;e[17]!==r.count||e[18]!==i.count?(d={current:r.count,previous:i.count,goodDirection:"up"},e[17]=r.count,e[18]=i.count,e[19]=d):d=e[19];let h;e[20]!==n||e[21]!==d||e[22]!==m||e[23]!==oe||e[24]!==le?(h=s.jsx(D,{label:"Requests",value:m,hint:oe,tone:le,delta:d,deltaCaption:n}),e[20]=n,e[21]=d,e[22]=m,e[23]=oe,e[24]=le,e[25]=h):h=e[25];const ne=r.p95/1e3;let f;e[26]!==ne?(f=Z(ne),e[26]=ne,e[27]=f):f=e[27];const ie=r.avg/1e3;let K;e[28]!==ie?(K=Z(ie),e[28]=ie,e[29]=K):K=e[29];const ae=r.max/1e3;let I;e[30]!==ae?(I=Z(ae),e[30]=ae,e[31]=I):I=e[31];const ce=`avg ${K} · max ${I}`;let p;e[32]!==r.p95||e[33]!==i.p95?(p={current:r.p95,previous:i.p95,goodDirection:"down"},e[32]=r.p95,e[33]=i.p95,e[34]=p):p=e[34];let _;e[35]!==n||e[36]!==f||e[37]!==ce||e[38]!==p?(_=s.jsx(D,{label:"Request p95",value:f,hint:ce,delta:p,deltaCaption:n}),e[35]=n,e[36]=f,e[37]=ce,e[38]=p,e[39]=_):_=e[39];let x;e[40]!==l.count?(x=E(l.count),e[40]=l.count,e[41]=x):x=e[41];let A;e[42]!==l.count||e[43]!==l.errors?(A=ve(l.errors,l.count),e[42]=l.count,e[43]=l.errors,e[44]=A):A=e[44];const ue=`${A} failed`,me=l.errors>0?"warning":void 0;let v;e[45]!==l.count||e[46]!==se.count?(v={current:l.count,previous:se.count,goodDirection:"up"},e[45]=l.count,e[46]=se.count,e[47]=v):v=e[47];let j;e[48]!==n||e[49]!==x||e[50]!==ue||e[51]!==me||e[52]!==v?(j=s.jsx(D,{label:"Job attempts",value:x,hint:ue,tone:me,delta:v,deltaCaption:n}),e[48]=n,e[49]=x,e[50]=ue,e[51]=me,e[52]=v,e[53]=j):j=e[53];const de=t.issues.length?"destructive":"success";let y;e[54]!==t.issues.length||e[55]!==de?(y=s.jsx(D,{label:"Open issues",value:t.issues.length,tone:de}),e[54]=t.issues.length,e[55]=de,e[56]=y):y=e[56];let g;e[57]!==t.release_health?(g=t.release_health&&s.jsx(D,{label:"Crash-free sessions",value:He(t.release_health.crash_free_sessions),tone:Ae(t.release_health.crash_free_sessions),hint:`${t.release_health.ref} · ${E(t.release_health.sessions)} sessions`}),e[57]=t.release_health,e[58]=g):g=e[58];let b;e[59]!==h||e[60]!==_||e[61]!==j||e[62]!==y||e[63]!==g?(b=s.jsxs(Ke,{children:[h,_,j,y,g]}),e[59]=h,e[60]=_,e[61]=j,e[62]=y,e[63]=g,e[64]=b):b=e[64];let k;e[65]!==t.deploys||e[66]!==t.request_series?(k=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[s.jsx(ye,{label:"Requests",data:t.request_series,deploys:t.deploys}),s.jsx(Ne,{label:"Request latency",data:t.request_series,deploys:t.deploys})]}),e[65]=t.deploys,e[66]=t.request_series,e[67]=k):k=e[67];let H;e[68]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(_e,{children:s.jsx(xe,{children:"Slowest routes (p95)"})}),e[68]=H):H=e[68];let w;e[69]!==ee||e[70]!==te?(w={key:"name",header:"Route",grow:!0,cell:je=>s.jsx(be,{className:"font-mono text-xs hover:underline",href:Re(ee,te,je.group_hash),children:je.name})},e[69]=ee,e[70]=te,e[71]=w):w=e[71];let B,F,J,V;e[72]===Symbol.for("react.memo_cache_sentinel")?(B={key:"trend",hideOnMobile:!0,header:"Trend",cell:lt},F={key:"count",header:"Count",align:"right",cell:ot},J={key:"p95",header:"p95",align:"right",cell:rt},V={key:"errors",hideOnMobile:!0,header:"5xx",align:"right",cell:st},e[72]=B,e[73]=F,e[74]=J,e[75]=V):(B=e[72],F=e[73],J=e[74],V=e[75]);let S;e[76]!==w?(S=[w,B,F,J,V],e[76]=w,e[77]=S):S=e[77];let O;e[78]!==t.slow_routes||e[79]!==S?(O=s.jsxs(fe,{children:[H,s.jsx(pe,{children:s.jsx(he,{rows:t.slow_routes,rowKey:it,hoverKey:nt,columns:S})})]}),e[78]=t.slow_routes,e[79]=S,e[80]=O):O=e[80];let W;e[81]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(_e,{children:s.jsx(xe,{children:"Open issues"})}),e[81]=W):W=e[81];let z,G;e[82]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(ge,{icon:Be,title:"No open issues",description:"Issues are grouped from repeated request, job, and exception errors."}),G=[{key:"key",header:"Issue",cell:et},{key:"title",header:"Title",cell:Ze},{key:"status",hideOnMobile:!0,header:"",cell:Ye},{key:"n",hideOnMobile:!0,header:"Count",align:"right",cell:Xe},{key:"last",header:"Last",align:"right",cell:Ue}],e[82]=z,e[83]=G):(z=e[82],G=e[83]);let C;e[84]!==t.issues?(C=s.jsxs(fe,{children:[W,s.jsx(pe,{children:s.jsx(he,{rows:t.issues,rowKey:tt,empty:z,columns:G})})]}),e[84]=t.issues,e[85]=C):C=e[85];let R;e[86]!==O||e[87]!==C?(R=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[O,C]}),e[86]=O,e[87]=C,e[88]=R):R=e[88];let $;e[89]!==t.deploys||e[90]!==t.job_series?($=s.jsx(ye,{label:"Jobs",legend:"job",seriesLabel:"Attempts",data:t.job_series,deploys:t.deploys}),e[89]=t.deploys,e[90]=t.job_series,e[91]=$):$=e[91];let Q;e[92]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(_e,{children:s.jsx(xe,{children:"Servers"})}),e[92]=Q):Q=e[92];let q;e[93]!==t.processes?(q=Object.entries(t.processes),e[93]=t.processes,e[94]=q):q=e[94];let U,X;e[95]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(ge,{icon:Fe,title:"No process has reported yet",description:"Server processes report here once they boot with the gem installed."}),X=[{key:"server",header:"Server",cell:Ge},{key:"role",header:"Role",cell:ze},{key:"deploy",header:"Deploy",cell:We},{key:"ver",hideOnMobile:!0,header:"Ruby / Rails",cell:Ve},{key:"boot",hideOnMobile:!0,header:"Booted",align:"right",cell:Je}],e[95]=U,e[96]=X):(U=e[95],X=e[96]);let N;e[97]!==q?(N=s.jsxs(fe,{children:[Q,s.jsx(pe,{children:s.jsx(he,{rows:q,rowKey:Qe,empty:U,columns:X})})]}),e[97]=q,e[98]=N):N=e[98];let P;e[99]!==$||e[100]!==N?(P=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[$,N]}),e[99]=$,e[100]=N,e[101]=P):P=e[101];let Y;return e[102]!==c||e[103]!==b||e[104]!==k||e[105]!==u||e[106]!==R||e[107]!==P?(Y=s.jsx(Le,{title:"Overview",crumbs:L,children:s.jsxs(qe,{children:[c,u,b,k,R,P]})}),e[102]=c,e[103]=b,e[104]=k,e[105]=u,e[106]=R,e[107]=P,e[108]=Y):Y=e[108],Y}function Je(t){const[,e]=t;return ke(e.booted_at)}function Ve(t){const[,e]=t;return`${e.ruby_version} / ${e.rails_version}`}function We(t){const[,e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e.deploy?.slice(0,10)})}function ze(t){const[,e]=t;return e.role}function Ge(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e})}function Qe(t){const[e]=t;return e}function Ue(t){return ke(t.last_seen_at)}function Xe(t){return E(t.occurrences)}function Ye(t){return s.jsx(Ie,{status:t.status})}function Ze(t){return s.jsx("span",{className:"line-clamp-1 text-xs",children:t.title})}function et(t){return s.jsx(be,{className:"font-mono text-xs hover:underline",href:$e(t.id),children:t.key})}function tt(t){return t.id}function st(t){return t.errors}function rt(t){return Z(t.p95)}function ot(t){return E(t.count)}function lt(t){return s.jsx(Te,{data:t.sparkline,hoverKey:t.group_hash})}function nt(t){return t.group_hash}function it(t){return t.group_hash}export{Mt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as A,C as S,j as n}from"./inertia-TViv6kNv.js";import{A as D,a as $}from"./arrow-up-DVtOGdVA.js";function C(j){const e=A.c(15),{current:x,previous:c,goodDirection:t,caption:s}=j;if(!c)return null;const r=(x-c)/c*100;if(r===0)return null;const u=r>0?"up":"down",N=u===t,m=u==="up"?D:$,w=N?"text-live":"text-destructive";let o;e[0]!==w?(o=S("inline-flex items-center gap-0.5 font-mono text-xs tabular-nums",w),e[0]=w,e[1]=o):o=e[1];let l;e[2]!==m?(l=n.jsx(m,{className:"size-3"}),e[2]=m,e[3]=l):l=e[3];let i;e[4]!==r?(i=Math.abs(r).toFixed(1),e[4]=r,e[5]=i):i=e[5];let d;e[6]!==o||e[7]!==l||e[8]!==i?(d=n.jsxs("span",{className:o,children:[l,i,"%"]}),e[6]=o,e[7]=l,e[8]=i,e[9]=d):d=e[9];let a;e[10]!==s?(a=s&&n.jsx("span",{className:"text-muted-foreground text-[11px]",children:s}),e[10]=s,e[11]=a):a=e[11];let f;return e[12]!==d||e[13]!==a?(f=n.jsxs(n.Fragment,{children:[d,a]}),e[12]=d,e[13]=a,e[14]=f):f=e[14],f}function R(j){const e=A.c(25),{label:x,value:c,hint:t,tone:s,delta:r,deltaCaption:u,card:N,className:m}=j,o=(N===void 0?!1:N)&&"bg-card rounded-lg border";let l;e[0]!==m||e[1]!==o?(l=S("flex min-w-0 flex-col gap-1 px-4 py-3",o,m),e[0]=m,e[1]=o,e[2]=l):l=e[2];let i;e[3]!==x?(i=n.jsx("div",{className:"label-caps truncate",children:x}),e[3]=x,e[4]=i):i=e[4];const d=s==="destructive"&&"text-destructive",a=s==="warning"&&"text-warning",f=s==="success"&&"text-live";let p;e[5]!==d||e[6]!==a||e[7]!==f?(p=S("text-xl font-semibold tracking-tight tabular-nums sm:text-2xl",d,a,f),e[5]=d,e[6]=a,e[7]=f,e[8]=p):p=e[8];let h;e[9]!==p||e[10]!==c?(h=n.jsx("div",{className:p,children:c}),e[9]=p,e[10]=c,e[11]=h):h=e[11];let g;e[12]!==r||e[13]!==u?(g=r&&n.jsx(C,{...r,caption:u}),e[12]=r,e[13]=u,e[14]=g):g=e[14];let v;e[15]!==g||e[16]!==h?(v=n.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[h,g]}),e[15]=g,e[16]=h,e[17]=v):v=e[17];let b;e[18]!==t?(b=t&&n.jsx("div",{className:"text-muted-foreground truncate font-mono text-[11px]",children:t}),e[18]=t,e[19]=b):b=e[19];let y;return e[20]!==v||e[21]!==b||e[22]!==l||e[23]!==i?(y=n.jsxs("div",{className:l,children:[i,v,b]}),e[20]=v,e[21]=b,e[22]=l,e[23]=i,e[24]=y):y=e[24],y}function k(j){const e=A.c(5),{children:x,className:c}=j;let t;e[0]!==c?(t=S("bg-card divide-border grid grid-cols-2 divide-y overflow-hidden rounded-lg border sm:divide-x sm:divide-y-0","[&>*:nth-child(odd)]:border-r sm:[&>*:nth-child(odd)]:border-r-0","[&>*:nth-child(odd):last-child]:col-span-2 [&>*:nth-child(odd):last-child]:border-r-0 sm:[&>*:nth-child(odd):last-child]:col-span-1","sm:auto-cols-fr sm:grid-flow-col",c),e[0]=c,e[1]=t):t=e[1];let s;return e[2]!==x||e[3]!==t?(s=n.jsx("div",{className:t,children:x}),e[2]=x,e[3]=t,e[4]=s):s=e[4],s}export{R as S,k as a};
|