railwatch 0.3.4 → 0.3.6
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 +41 -2
- data/app/channels/railwatch/environment_channel.rb +17 -4
- data/app/jobs/railwatch/prune_telemetry_job.rb +20 -1
- data/app/models/railwatch/ingest/batch.rb +1 -1
- data/app/models/railwatch/ingest/mapper.rb +1 -3
- 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 +64 -7
- data/docs/getting-started.md +0 -2
- data/docs/source-maps.md +1 -3
- data/lib/generators/railwatch/install/install_generator.rb +0 -8
- data/lib/railwatch/backtrace.rb +12 -2
- data/lib/railwatch/configuration.rb +6 -5
- data/lib/railwatch/engine.rb +2 -2
- data/lib/railwatch/export/client.rb +10 -3
- data/lib/railwatch/reporter.rb +2 -12
- data/lib/railwatch/source_maps.rb +13 -1
- data/lib/railwatch/spec_helper.rb +1 -1
- data/lib/railwatch/transport/http.rb +14 -5
- 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-B5Fcdwfz.js} +1 -1
- data/public/railwatch/assets/{app-wordmark-nbjkzxwQ.js → app-wordmark-1SRllgHv.js} +1 -1
- data/public/railwatch/assets/{appearance-CDuRvQTB.js → appearance-DbwahDrc.js} +1 -1
- data/public/railwatch/assets/application-CwshqwM6.css +1 -0
- data/public/railwatch/assets/{arrow-up-DVtOGdVA.js → arrow-up-DwKQcab4.js} +1 -1
- data/public/railwatch/assets/{auth-layout-TCwPpS1K.js → auth-layout-DXfxXAN_.js} +1 -1
- data/public/railwatch/assets/{badge-Daw4Hvr8.js → badge-CApjyWcg.js} +1 -1
- data/public/railwatch/assets/{braces-DhFbHPsz.js → braces-kGSgxWnS.js} +1 -1
- data/public/railwatch/assets/{card-BX_3HXcJ.js → card-BaJ8kNkp.js} +1 -1
- data/public/railwatch/assets/{chart-B14-N9g7.js → chart-Xnrz1Nqw.js} +1 -1
- data/public/railwatch/assets/{chart-hover-Vy52H4uD.js → chart-hover-XYPNE2CX.js} +1 -1
- data/public/railwatch/assets/{chart-panel-Cb4S_ej_.js → chart-panel-BYk68mJJ.js} +1 -1
- data/public/railwatch/assets/{checkbox-D3aRSsBj.js → checkbox-Bf41R8W6.js} +1 -1
- data/public/railwatch/assets/{code-KvW8k7Jr.js → code-a-9sh36A.js} +1 -1
- data/public/railwatch/assets/{copy-block-BKFGd11J.js → copy-block-zykZWQym.js} +1 -1
- data/public/railwatch/assets/{copy-id-Djks1fXB.js → copy-id-b6CW5ESL.js} +1 -1
- data/public/railwatch/assets/{cursor-load-more-BXV0f1D_.js → cursor-load-more-0cHzbTPT.js} +1 -1
- data/public/railwatch/assets/{data-table-iv1bdF6u.js → data-table-IvA7xvrK.js} +1 -1
- data/public/railwatch/assets/{edit-BZc_Iawe.js → edit-7lmf3k80.js} +1 -1
- data/public/railwatch/assets/{edit-__9yJlO3.js → edit-DTtRV1fO.js} +1 -1
- data/public/railwatch/assets/{edit-DMKUF8Zi.js → edit-ZKE15r-F.js} +1 -1
- data/public/railwatch/assets/{empty-state-6j_0AaQQ.js → empty-state-BFTnQ2oT.js} +1 -1
- data/public/railwatch/assets/env-layout-erSDpIXg.js +1 -0
- data/public/railwatch/assets/{execution-path-CzgBUi5e.js → execution-path-Di5uUHi-.js} +1 -1
- data/public/railwatch/assets/{filter-bar-9SU5NrzX.js → filter-bar-Btm__gQi.js} +1 -1
- data/public/railwatch/assets/{flamegraph-qcekju8V.js → flamegraph-C-mZdqa7.js} +1 -1
- data/public/railwatch/assets/{frames-Cyu7KMxZ.js → frames-KZBsjg6-.js} +1 -1
- data/public/railwatch/assets/{google-sign-in-button-DsTSfmzY.js → google-sign-in-button-DJRoD72g.js} +1 -1
- data/public/railwatch/assets/index-9LL_C3eG.js +1 -0
- data/public/railwatch/assets/index-B-bSm1jB.js +1 -0
- data/public/railwatch/assets/{index-OqI59zPb.js → index-B0VXzXYG.js} +1 -1
- data/public/railwatch/assets/index-BAkZNNEh.js +1 -0
- data/public/railwatch/assets/{index-Cmlwy1-V.js → index-BWSyQRZI.js} +1 -1
- data/public/railwatch/assets/index-Bjw4sTXU.js +1 -0
- data/public/railwatch/assets/index-Bo8hrjbs.js +1 -0
- data/public/railwatch/assets/index-BoTOVM0v.js +1 -0
- data/public/railwatch/assets/index-Bot7kHMA.js +1 -0
- data/public/railwatch/assets/index-BsrCnQqg.js +1 -0
- data/public/railwatch/assets/index-BtSlLmkg.js +1 -0
- data/public/railwatch/assets/{index-BRiq3SNR.js → index-CAzQkw-h.js} +1 -1
- data/public/railwatch/assets/index-CBJZQgHA.js +1 -0
- data/public/railwatch/assets/index-CIUl9POV.js +1 -0
- data/public/railwatch/assets/{index-DlumCsWY.js → index-CP6jrrPT.js} +2 -2
- data/public/railwatch/assets/index-CU6yhEyt.js +1 -0
- data/public/railwatch/assets/{index-1ol1-QWI.js → index-CX8Br7m9.js} +1 -1
- data/public/railwatch/assets/index-CYYmZpZu.js +1 -0
- data/public/railwatch/assets/{index-DU9F5b5d.js → index-CeqMDByC.js} +1 -1
- data/public/railwatch/assets/index-Cj3_jD1E.js +1 -0
- data/public/railwatch/assets/index-D4968-TC.js +1 -0
- data/public/railwatch/assets/index-DAEzO_vq.js +1 -0
- data/public/railwatch/assets/index-DBTxQw77.js +1 -0
- data/public/railwatch/assets/index-DCAho97K.js +1 -0
- data/public/railwatch/assets/index-DEfu_YvU.js +1 -0
- data/public/railwatch/assets/{index-CeYKnapu.js → index-DXUwhSCQ.js} +1 -1
- data/public/railwatch/assets/index-DcItJxa5.js +1 -0
- data/public/railwatch/assets/index-EGU__DOB.js +1 -0
- data/public/railwatch/assets/index-HCJmFcZu.js +1 -0
- data/public/railwatch/assets/index-P_e_cI0O.js +1 -0
- data/public/railwatch/assets/index-QyHE9WsU.js +1 -0
- data/public/railwatch/assets/index-Z1c4nFL0.js +1 -0
- data/public/railwatch/assets/index-kNhZPLVj.js +1 -0
- data/public/railwatch/assets/index-uHBVO8Lh.js +1 -0
- data/public/railwatch/assets/index-wOj5j0KC.js +1 -0
- data/public/railwatch/assets/{inertia-TViv6kNv.js → inertia-Degv_G9N.js} +2 -2
- data/public/railwatch/assets/{input-error-LxImUkxv.js → input-error-C6SqO_iU.js} +1 -1
- data/public/railwatch/assets/{json-viewer-Ar4cjPDW.js → json-viewer-DcQIxT86.js} +1 -1
- data/public/railwatch/assets/klass-WgQEfWpo.js +1 -0
- data/public/railwatch/assets/{label-COUKWqE_.js → label-B_vK19tR.js} +1 -1
- data/public/railwatch/assets/{layout-DNSLAkw_.js → layout-C8q7GUlZ.js} +1 -1
- data/public/railwatch/assets/{live-dot-ChfUtY3p.js → live-dot-DaXEbkXo.js} +1 -1
- data/public/railwatch/assets/{nav-CNnDqPlm.js → nav-BnD5XArZ.js} +1 -1
- data/public/railwatch/assets/{new-Be55nmt9.js → new-BL9OqXHe.js} +1 -1
- data/public/railwatch/assets/{new-D05SajFR.js → new-BhRnQn4w.js} +1 -1
- data/public/railwatch/assets/{new-Bi_xQiIb.js → new-BqP0NhOF.js} +1 -1
- data/public/railwatch/assets/{new-BvCT8TMg.js → new-CWP3wtwt.js} +1 -1
- data/public/railwatch/assets/{new-D4uewYC8.js → new-DIjwu2jF.js} +1 -1
- data/public/railwatch/assets/{new-84S8ZJq9.js → new-uxMnBtoY.js} +1 -1
- data/public/railwatch/assets/{onboarding-CYZi5Cqc.js → onboarding-C_Y3xTsH.js} +1 -1
- data/public/railwatch/assets/{origin-identity-6q1-CBts.js → origin-identity-CNhOnfBa.js} +1 -1
- data/public/railwatch/assets/{percentile-picker-gFZCXtdb.js → percentile-picker-BujVEhP6.js} +1 -1
- data/public/railwatch/assets/{relative-time-IOOgl5n2.js → relative-time-6CoKr1lN.js} +1 -1
- data/public/railwatch/assets/release-health-1Qzc_XhT.js +1 -0
- data/public/railwatch/assets/route-xqgYjOwJ.js +1 -0
- data/public/railwatch/assets/{segmented-h1VdDTqE.js → segmented-CVKq2Xpa.js} +1 -1
- data/public/railwatch/assets/{select-_AJsUa7X.js → select-CsmSXsJ4.js} +1 -1
- data/public/railwatch/assets/{separator-BwwTYtCF.js → separator-CrM10Oot.js} +1 -1
- data/public/railwatch/assets/{series-chart-DaFPefku.js → series-chart-D33UhdG2.js} +1 -1
- data/public/railwatch/assets/{show-C8sHalnw.js → show-8H9WAGav.js} +1 -1
- data/public/railwatch/assets/show-9jDeBNpc.js +1 -0
- data/public/railwatch/assets/{show-DACku6AD.js → show-B0nHy31L.js} +3 -3
- data/public/railwatch/assets/{show-C4Ltf5i9.js → show-B3izvRdU.js} +1 -1
- data/public/railwatch/assets/show-B7NhcWgp.js +1 -0
- data/public/railwatch/assets/show-BM-E2iYc.js +1 -0
- data/public/railwatch/assets/show-BlNR3ZOZ.js +1 -0
- data/public/railwatch/assets/{show-DgSIoRvA.js → show-CJMeX75E.js} +1 -1
- data/public/railwatch/assets/{show-CeTL4B37.js → show-CMisHNAI.js} +2 -2
- data/public/railwatch/assets/{show-JxFtB4eK.js → show-CQ4Ze-Un.js} +2 -2
- data/public/railwatch/assets/{show-BM6X2Mpo.js → show-CvNV23gH.js} +1 -1
- data/public/railwatch/assets/show-DMZlwzL_.js +1 -0
- data/public/railwatch/assets/show-DUwQlohF.js +1 -0
- data/public/railwatch/assets/{show-DIOSGcXV.js → show-DZwcZZrz.js} +2 -2
- data/public/railwatch/assets/show-ixK2r2f1.js +1 -0
- data/public/railwatch/assets/{show-DYteoYWW.js → show-rysBbvt-.js} +1 -1
- data/public/railwatch/assets/show-zxVxhUel.js +1 -0
- data/public/railwatch/assets/{sort-header-DpFzXblu.js → sort-header-CKj_7G3U.js} +1 -1
- data/public/railwatch/assets/{sparkline-cell-C3-5vFkP.js → sparkline-cell-Ckg29yVq.js} +1 -1
- data/public/railwatch/assets/stat-TxvoBiC8.js +1 -0
- data/public/railwatch/assets/{status-badge-8jVV-LA4.js → status-badge-5NCVJHjo.js} +1 -1
- data/public/railwatch/assets/{tenant-path-G-6u9A-o.js → tenant-path-B5ZRK4x3.js} +1 -1
- data/public/railwatch/assets/{text-link-DfsiaCcP.js → text-link-BPllRj0F.js} +1 -1
- data/public/railwatch/assets/{textarea-Dye72uP7.js → textarea-DtD5yZp_.js} +1 -1
- data/public/railwatch/assets/{timeline-CD7WHnbo.js → timeline-DZz5ZnHN.js} +1 -1
- data/public/railwatch/assets/{transition-B_AW8rMK.js → transition-Ds6Cakuc.js} +1 -1
- data/public/railwatch/assets/{use-clipboard-ColgLyQ2.js → use-clipboard-BLjjYH8V.js} +1 -1
- data/public/railwatch/assets/use-live-GKze1mNC.js +1 -0
- data/public/railwatch/manifest.json +1291 -1238
- 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,2 +1,2 @@
|
|
|
1
|
-
import{B as Xt,c as is,r as Q,S as ys,i as mt,j as s,L as Mt,I as Zt,U as vs,e as Qt,V as bs,H as Ns,F as ks,J as ws}from"./inertia-
|
|
2
|
-
`)}function it(t,e){return t==null?"–":e==="milliseconds"?`${t.toLocaleString()} ms`:e==="percent"?`${t.toLocaleString()}%`:e==="events_per_minute"?`${t.toLocaleString()} / min`:t.toLocaleString()}function ln(t){const e=is.c(80),{issue:n,detail:i}=t;if(!i.available){let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(d,{children:s.jsx(m,{children:"Detector sample"})}),e[0]=y):y=e[0];let u;return e[1]!==n.sample?(u=s.jsxs(c,{children:[y,s.jsx(o,{children:s.jsx(rs,{data:n.sample})})]}),e[1]=n.sample,e[2]=u):u=e[2],u}let l;e[3]!==i.representative_records?(l=i.representative_records??[],e[3]=i.representative_records,e[4]=l):l=e[4];const B=l;let T;e[5]!==i.deploy_comparison?(T=i.deploy_comparison??[],e[5]=i.deploy_comparison,e[6]=T):T=e[6];const q=T;let v;e[7]!==i.trend?(v=i.trend??[],e[7]=i.trend,e[8]=v):v=e[8];const K=v,a=i.metric==="missed",W=a?"Missed scheduled task":i.kind==="anomaly"?"Anomaly measurement":"Threshold breach";let b;e[9]!==W?(b=s.jsx(d,{children:s.jsx(m,{children:W})}),e[9]=W,e[10]=b):b=e[10];let E;e[11]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("p",{className:"text-muted-foreground text-xs",children:"Target"}),e[11]=E):E=e[11];let A;e[12]!==i.target?(A=s.jsxs("div",{children:[E,s.jsx("p",{className:"font-mono text-sm",children:i.target})]}),e[12]=i.target,e[13]=A):A=e[13];const lt=a?"Schedule":"Metric";let P;e[14]!==lt?(P=s.jsx("p",{className:"text-muted-foreground text-xs",children:lt}),e[14]=lt,e[15]=P):P=e[15];const at=a?i.rule?.schedule:i.metric;let M;e[16]!==at?(M=s.jsx("p",{className:"text-sm",children:at}),e[16]=at,e[17]=M):M=e[17];let V;e[18]!==M||e[19]!==P?(V=s.jsxs("div",{children:[P,M]}),e[18]=M,e[19]=P,e[20]=V):V=e[20];const ct=a?"Expected":"Measured";let N;e[21]!==ct?(N=s.jsx("p",{className:"text-muted-foreground text-xs",children:ct}),e[21]=ct,e[22]=N):N=e[22];let R;e[23]!==i.measurement?.value||e[24]!==i.rule||e[25]!==i.unit||e[26]!==a?(R=a&&i.rule?.expected?rt(i.rule.expected):it(i.measurement?.value,i.unit),e[23]=i.measurement?.value,e[24]=i.rule,e[25]=i.unit,e[26]=a,e[27]=R):R=e[27];let k;e[28]!==R?(k=s.jsx("p",{className:"text-sm font-semibold",children:R}),e[28]=R,e[29]=k):k=e[29];let w;e[30]!==N||e[31]!==k?(w=s.jsxs("div",{children:[N,k]}),e[30]=N,e[31]=k,e[32]=w):w=e[32];const G=a?"Last run":i.kind==="anomaly"?"Baseline":"Limit";let S;e[33]!==G?(S=s.jsx("p",{className:"text-muted-foreground text-xs",children:G}),e[33]=G,e[34]=S):S=e[34];let z;e[35]!==i.baseline?.mean||e[36]!==i.kind||e[37]!==i.measurement?.limit||e[38]!==i.rule||e[39]!==i.unit||e[40]!==a?(z=a&&i.rule?.last_run?rt(i.rule.last_run):i.kind==="anomaly"?it(i.baseline?.mean,i.unit):it(i.measurement?.limit,i.unit),e[35]=i.baseline?.mean,e[36]=i.kind,e[37]=i.measurement?.limit,e[38]=i.rule,e[39]=i.unit,e[40]=a,e[41]=z):z=e[41];let C;e[42]!==z?(C=s.jsx("p",{className:"text-sm",children:z}),e[42]=z,e[43]=C):C=e[43];let U;e[44]!==S||e[45]!==C?(U=s.jsxs("div",{children:[S,C]}),e[44]=S,e[45]=C,e[46]=U):U=e[46];let f;e[47]!==V||e[48]!==w||e[49]!==U||e[50]!==A?(f=s.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[A,V,w,U]}),e[47]=V,e[48]=w,e[49]=U,e[50]=A,e[51]=f):f=e[51];const D=i.window?.minutes,J=i.baseline?.sigmas!=null&&` · ${i.baseline.sigmas}σ above a ${i.baseline.days}-day baseline`;let h;e[52]!==i.telemetry_group_hash||e[53]!==i.telemetry_type||e[54]!==D||e[55]!==J?(h=s.jsxs("p",{className:"text-muted-foreground text-xs",children:[i.telemetry_type," group ",i.telemetry_group_hash," ·"," ",D," minute window",J]}),e[52]=i.telemetry_group_hash,e[53]=i.telemetry_type,e[54]=D,e[55]=J,e[56]=h):h=e[56];let H;e[57]!==f||e[58]!==h?(H=s.jsxs(o,{className:"space-y-4",children:[f,h]}),e[57]=f,e[58]=h,e[59]=H):H=e[59];let x;e[60]!==H||e[61]!==b?(x=s.jsxs(c,{children:[b,H]}),e[60]=H,e[61]=b,e[62]=x):x=e[62];let p;e[63]!==i.metric||e[64]!==K?(p=K.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsxs(m,{children:[i.metric," trend (30d)"]})}),s.jsx(o,{children:s.jsx(hs,{config:en,className:"h-48 w-full",children:s.jsxs(xs,{data:K,children:[s.jsx(cs,{vertical:!1}),s.jsx(os,{dataKey:"day",tickLine:!1,axisLine:!1,minTickGap:24,tickFormatter:gn}),s.jsx(ds,{width:45,tickLine:!1,axisLine:!1}),s.jsx(ms,{content:s.jsx(us,{})}),s.jsx(fs,{dataKey:"value",fill:"var(--color-value)",radius:2})]})})})]}),e[63]=i.metric,e[64]=K,e[65]=p):p=e[65];let $;e[66]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(d,{children:s.jsx(m,{children:"Representative telemetry"})}),e[66]=$):$=e[66];let g;e[67]!==n?(g=y=>{const u=sn(n,y.drilldown);u&&Qt.visit(u)},e[67]=n,e[68]=g):g=e[68];let L;e[69]===Symbol.for("react.memo_cache_sentinel")?(L=[{key:"when",header:"When",cell:xn},{key:"record",header:"Record",className:"max-w-0",cell:hn},{key:"duration",header:"Duration",align:"right",cell:fn},{key:"deploy",header:"Deploy",cell:un}],e[69]=L):L=e[69];let j;e[70]!==B||e[71]!==g?(j=s.jsxs(c,{children:[$,s.jsx(o,{children:s.jsx(nt,{rows:B,rowKey:pn,empty:"Representative raw telemetry has been pruned.",onRowClick:g,columns:L})})]}),e[70]=B,e[71]=g,e[72]=j):j=e[72];let _;e[73]!==q?(_=q.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Deploy comparison (30d)"})}),s.jsx(o,{children:s.jsx(nt,{rows:q,rowKey:mn,columns:[{key:"deploy",header:"Deploy",cell:dn},{key:"events",header:"Events",align:"right",cell:on},{key:"avg",header:"Avg",align:"right",cell:cn},{key:"max",header:"Max",align:"right",cell:an}]})})]}),e[73]=q,e[74]=_):_=e[74];let I;return e[75]!==x||e[76]!==p||e[77]!==j||e[78]!==_?(I=s.jsxs(s.Fragment,{children:[x,p,j,_]}),e[75]=x,e[76]=p,e[77]=j,e[78]=_,e[79]=I):I=e[79],I}function an(t){return`${t.max_ms} ms`}function cn(t){return`${t.avg_ms} ms`}function on(t){return Rt(t.events)}function dn(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy.slice(0,12)})}function mn(t){return t.deploy}function un(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy?.slice(0,10)})}function fn(t){return`${t.duration_ms.toLocaleString()} ms`}function hn(t){return s.jsx("span",{className:"block truncate font-mono text-xs",children:t.name})}function xn(t){return s.jsx("span",{className:"text-xs",children:rt(t.occurred_at)})}function pn(t){return`${t.record_type}-${t.record_id}`}function gn(t){return new Date(t).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function yi(t){const e=is.c(255),n=t.issue;let i;e[0]!==n.id?(i=(r,F)=>{const ot=F===void 0?{}:F;return Qt.patch(mt(n.id),{action_name:r,...ot},{preserveScroll:!0})},e[0]=n.id,e[1]=i):i=e[1];const l=i,[,B]=Gs(),[T,q]=Q.useState(!1),[v,K]=Q.useState(!1),[a,W]=Q.useState("");let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[2]=b):b=e[2];const[E,A]=Q.useState(b),[lt,P]=Q.useState(!1),[at,M]=Q.useState(!1),V=new Map(t.members.map(qn)),ct=Fs();let N;e[3]!==n.application.id||e[4]!==n.environment.id?(N=r=>Wt({applicationId:n.application.id,environmentId:n.environment.id,source:r.execution_source,executionId:r.execution_id}),e[3]=n.application.id,e[4]=n.environment.id,e[5]=N):N=e[5];const R=N;let k;e[6]!==n.application.id||e[7]!==n.environment.id||e[8]!==t.latest?(k=t.latest?Wt({applicationId:n.application.id,environmentId:n.environment.id,source:t.latest.execution_source,executionId:t.latest.execution_id}):null,e[6]=n.application.id,e[7]=n.environment.id,e[8]=t.latest,e[9]=k):k=e[9];const w=k;let G,S;e[10]!==n.id||e[11]!==v||e[12]!==a?(G=()=>{if(!v)return;const r=new AbortController,F=window.setTimeout(()=>{P(!0),M(!1),fetch(bs(n.id,{q:a}),{headers:{Accept:"application/json"},credentials:"same-origin",signal:r.signal}).then(Hn).then(ot=>{const{issues:Tt}=ot;return A(Tt)}).catch(()=>{r.signal.aborted||(A([]),M(!0))}).finally(()=>{r.signal.aborted||P(!1)})},150);return()=>{window.clearTimeout(F),r.abort()}},S=[n.id,v,a],e[10]=n.id,e[11]=v,e[12]=a,e[13]=G,e[14]=S):(G=e[13],S=e[14]),Q.useEffect(G,S);const z=Ds;let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C={title:"Issues",href:ys()},e[15]=C):C=e[15];const U=n.key;let f;e[16]!==n.id?(f=mt(n.id),e[16]=n.id,e[17]=f):f=e[17];let D;e[18]!==n.key||e[19]!==f?(D=[C,{title:U,href:f}],e[18]=n.key,e[19]=f,e[20]=D):D=e[20];const J=`${n.key} ${n.title}`;let h;e[21]!==J?(h=s.jsx(Ns,{title:J}),e[21]=J,e[22]=h):h=e[22];const H="flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6";let x;e[23]!==n.key?(x=s.jsx("span",{className:"font-mono text-sm font-semibold",children:n.key}),e[23]=n.key,e[24]=x):x=e[24];let p;e[25]!==n.status?(p=s.jsx(as,{status:n.status}),e[25]=n.status,e[26]=p):p=e[26];let $;e[27]!==n.kind?($=s.jsx(ut,{variant:"outline",children:n.kind}),e[27]=n.kind,e[28]=$):$=e[28];let g;e[29]!==n.source?(g=n.source==="browser"&&s.jsxs(ut,{variant:"outline",className:"gap-1",children:[s.jsx(Ws,{className:"size-3"}),"browser"]}),e[29]=n.source,e[30]=g):g=e[30];let L;e[31]!==n.application.name||e[32]!==n.environment.name?(L=s.jsxs("span",{className:"text-muted-foreground text-xs",children:[n.application.name," · ",n.environment.name]}),e[31]=n.application.name,e[32]=n.environment.name,e[33]=L):L=e[33];let j;e[34]!==x||e[35]!==p||e[36]!==$||e[37]!==g||e[38]!==L?(j=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[x,p,$,g,L]}),e[34]=x,e[35]=p,e[36]=$,e[37]=g,e[38]=L,e[39]=j):j=e[39];let _;e[40]!==n.title?(_=s.jsx("h1",{className:"mt-1 text-lg font-semibold break-words",children:n.title}),e[40]=n.title,e[41]=_):_=e[41];let I;e[42]!==n.culprit||e[43]!==n.sample?(I=n.culprit&&s.jsx("div",{className:"text-muted-foreground",children:s.jsx(Ss,{location:n.culprit,deploy:n.sample.deploy})}),e[42]=n.culprit,e[43]=n.sample,e[44]=I):I=e[44];let y;e[45]!==j||e[46]!==_||e[47]!==I?(y=s.jsxs("div",{className:"min-w-0",children:[j,_,I]}),e[45]=j,e[46]=_,e[47]=I,e[48]=y):y=e[48];let u;e[49]!==l?(u=r=>l("priority",{priority:r}),e[49]=l,e[50]=u):u=e[50];let ft;e[51]===Symbol.for("react.memo_cache_sentinel")?(ft=s.jsx(ts,{className:"w-28",children:s.jsx(ss,{})}),e[51]=ft):ft=e[51];let ht;e[52]===Symbol.for("react.memo_cache_sentinel")?(ht=s.jsx(ns,{children:["low","normal","high","urgent"].map(Un)}),e[52]=ht):ht=e[52];let X;e[53]!==n.priority||e[54]!==u?(X=s.jsxs(es,{value:n.priority,onValueChange:u,children:[ft,ht]}),e[53]=n.priority,e[54]=u,e[55]=X):X=e[55];const zt=n.assignee?String(n.assignee.id):"none";let Y;e[56]!==l?(Y=r=>l("assign",{assignee_id:r==="none"?null:r}),e[56]=l,e[57]=Y):Y=e[57];let xt;e[58]===Symbol.for("react.memo_cache_sentinel")?(xt=s.jsx(ts,{className:"w-40",children:s.jsx(ss,{placeholder:"Assign"})}),e[58]=xt):xt=e[58];let pt;e[59]===Symbol.for("react.memo_cache_sentinel")?(pt=s.jsx(Yt,{value:"none",children:"Unassigned"}),e[59]=pt):pt=e[59];let Z;e[60]!==t.members?(Z=t.members.map(Gn),e[60]=t.members,e[61]=Z):Z=e[61];let ee;e[62]!==Z?(ee=s.jsxs(ns,{children:[pt,Z]}),e[62]=Z,e[63]=ee):ee=e[63];let te;e[64]!==zt||e[65]!==Y||e[66]!==ee?(te=s.jsxs(es,{value:zt,onValueChange:Y,children:[xt,ee]}),e[64]=zt,e[65]=Y,e[66]=ee,e[67]=te):te=e[67];let se;e[68]!==l||e[69]!==n.status?(se=n.status==="merged"?s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("unmerge"),children:"Unmerge"}):n.status==="open"?s.jsxs(s.Fragment,{children:[s.jsx(O,{size:"sm",onClick:()=>l("resolve"),children:"Resolve"}),s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("ignore"),children:"Ignore"})]}):s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("reopen"),children:"Reopen"}),e[68]=l,e[69]=n.status,e[70]=se):se=e[70];let ne;e[71]!==n.status?(ne=n.status!=="merged"&&s.jsxs(O,{size:"sm",variant:"outline",onClick:()=>K(!0),children:[s.jsx(Js,{"data-icon":"inline-start"}),"Merge into…"]}),e[71]=n.status,e[72]=ne):ne=e[72];let ie;e[73]!==B||e[74]!==t?(ie=()=>{(async()=>await B(rn(t))&&(q(!0),setTimeout(()=>q(!1),1200)))()},e[73]=B,e[74]=t,e[75]=ie):ie=e[75];let re;e[76]!==T?(re=T?s.jsx(Hs,{className:"size-3.5"}):s.jsx(Is,{className:"size-3.5"}),e[76]=T,e[77]=re):re=e[77];let le;e[78]!==ie||e[79]!==re?(le=s.jsxs(O,{size:"sm",variant:"outline",onClick:ie,children:[re,"Copy for AI"]}),e[78]=ie,e[79]=re,e[80]=le):le=e[80];let ae;e[81]!==X||e[82]!==te||e[83]!==se||e[84]!==ne||e[85]!==le?(ae=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[X,te,se,ne,le]}),e[81]=X,e[82]=te,e[83]=se,e[84]=ne,e[85]=le,e[86]=ae):ae=e[86];let ce;e[87]!==y||e[88]!==ae?(ce=s.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[y,ae]}),e[87]=y,e[88]=ae,e[89]=ce):ce=e[89];let oe;e[90]!==l||e[91]!==t.merged_into?(oe=t.merged_into&&s.jsxs("div",{className:"bg-muted flex flex-wrap items-center justify-between gap-2 rounded-md border px-4 py-3 text-sm",children:[s.jsxs("span",{children:["Merged into"," ",s.jsx(Mt,{href:mt(t.merged_into.id),className:"font-mono font-semibold underline",children:t.merged_into.key})," ",s.jsx("span",{className:"text-muted-foreground",children:t.merged_into.title})]}),s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("unmerge"),children:"Unmerge"})]}),e[90]=l,e[91]=t.merged_into,e[92]=oe):oe=e[92];let gt;e[93]===Symbol.for("react.memo_cache_sentinel")?(gt=r=>{K(r),r||(W(""),A([]),M(!1))},e[93]=gt):gt=e[93];let de;e[94]!==a?(de=s.jsx(Bs,{placeholder:"Search issues by key or title…",value:a,onValueChange:W}),e[94]=a,e[95]=de):de=e[95];const Dt=lt?"Searching…":at?"Search failed. Try again.":"No open issues found.";let me;e[96]!==Dt?(me=s.jsx(Es,{children:Dt}),e[96]=Dt,e[97]=me):me=e[97];let ue;e[98]!==l||e[99]!==E?(ue=E.length>0&&s.jsx(As,{children:E.map(r=>s.jsxs(Ms,{value:`${r.key} ${r.title}`,onSelect:()=>{l("merge",{target_id:r.id}),K(!1)},children:[s.jsx("span",{className:"font-mono font-semibold",children:r.key}),s.jsx("span",{className:"text-muted-foreground truncate",children:r.title})]},r.id))}),e[98]=l,e[99]=E,e[100]=ue):ue=e[100];let fe;e[101]!==me||e[102]!==ue?(fe=s.jsxs(Ps,{children:[me,ue]}),e[101]=me,e[102]=ue,e[103]=fe):fe=e[103];let he;e[104]!==v||e[105]!==de||e[106]!==fe?(he=s.jsxs(Os,{open:v,onOpenChange:gt,title:"Merge into…",description:"Search issues to merge this one into",children:[de,fe]}),e[104]=v,e[105]=de,e[106]=fe,e[107]=he):he=e[107];const Ft=t.detection?.count_label??"Events",Bt=t.detection?.breached_windows??n.occurrences;let xe;e[108]!==Bt?(xe=Rt(Bt),e[108]=Bt,e[109]=xe):xe=e[109];let pe;e[110]!==Ft||e[111]!==xe?(pe=s.jsx(dt,{label:Ft,value:xe}),e[110]=Ft,e[111]=xe,e[112]=pe):pe=e[112];const Et=t.detection?"Events in measured window":"Users affected";let ge;e[113]!==n.affected_users||e[114]!==t.detection?(ge=t.detection?t.detection.event_count==null?"–":Rt(t.detection.event_count):n.affected_users,e[113]=n.affected_users,e[114]=t.detection,e[115]=ge):ge=e[115];let je;e[116]!==Et||e[117]!==ge?(je=s.jsx(dt,{label:Et,value:ge}),e[116]=Et,e[117]=ge,e[118]=je):je=e[118];let _e;e[119]!==n.first_seen_at?(_e=At(n.first_seen_at),e[119]=n.first_seen_at,e[120]=_e):_e=e[120];let ye;e[121]!==n.first_seen_at?(ye=rt(n.first_seen_at),e[121]=n.first_seen_at,e[122]=ye):ye=e[122];let ve;e[123]!==_e||e[124]!==ye?(ve=s.jsx(dt,{label:"First seen",value:_e,hint:ye}),e[123]=_e,e[124]=ye,e[125]=ve):ve=e[125];let be;e[126]!==n.last_seen_at?(be=At(n.last_seen_at),e[126]=n.last_seen_at,e[127]=be):be=e[127];let Ne;e[128]!==n.last_seen_at?(Ne=rt(n.last_seen_at),e[128]=n.last_seen_at,e[129]=Ne):Ne=e[129];let ke;e[130]!==be||e[131]!==Ne?(ke=s.jsx(dt,{label:"Last seen",value:be,hint:Ne}),e[130]=be,e[131]=Ne,e[132]=ke):ke=e[132];const Pt=n.regressed_at?"Regressed":"Resolved";let we;e[133]!==n.regressed_at||e[134]!==n.resolved_at?(we=n.regressed_at?At(n.regressed_at):n.resolved_at?At(n.resolved_at):"–",e[133]=n.regressed_at,e[134]=n.resolved_at,e[135]=we):we=e[135];let Se;e[136]!==n.resolved_in_deploy?(Se=n.resolved_in_deploy?`in ${n.resolved_in_deploy.slice(0,12)}`:void 0,e[136]=n.resolved_in_deploy,e[137]=Se):Se=e[137];const Ot=n.regressed_at?"destructive":void 0;let Ce;e[138]!==Pt||e[139]!==we||e[140]!==Se||e[141]!==Ot?(Ce=s.jsx(dt,{label:Pt,value:we,hint:Se,tone:Ot}),e[138]=Pt,e[139]=we,e[140]=Se,e[141]=Ot,e[142]=Ce):Ce=e[142];let $e;e[143]!==pe||e[144]!==je||e[145]!==ve||e[146]!==ke||e[147]!==Ce?($e=s.jsxs(Ts,{children:[pe,je,ve,ke,Ce]}),e[143]=pe,e[144]=je,e[145]=ve,e[146]=ke,e[147]=Ce,e[148]=$e):$e=e[148];const ps="grid gap-6 lg:grid-cols-3";let Le;e[149]!==n||e[150]!==w||e[151]!==t.breadcrumbs||e[152]!==t.browser_breadcrumbs||e[153]!==t.detection||e[154]!==t.latest?(Le=t.detection?s.jsx(ln,{issue:n,detail:t.detection}):t.latest?s.jsxs(c,{children:[s.jsxs(d,{className:"flex-row items-center justify-between",children:[s.jsx(m,{children:"Latest occurrence"}),w&&s.jsxs(Mt,{className:"text-xs underline",href:w,children:["Open ",t.latest.execution_preview]})]}),s.jsxs(o,{children:[s.jsx(Cs,{exception:t.latest,deploy:t.latest.deploy}),s.jsxs("div",{className:"mt-4 space-y-4",children:[s.jsx($s,{entries:t.breadcrumbs}),s.jsx(Ls,{crumbs:t.browser_breadcrumbs})]}),(t.latest.ruby_version??t.latest.rails_version)&&s.jsxs("p",{className:"text-muted-foreground mt-3 text-xs",children:["Ruby ",t.latest.ruby_version," · Rails"," ",t.latest.rails_version]})]})]}):s.jsx(c,{children:s.jsx(o,{children:s.jsx(rs,{data:n.sample})})}),e[149]=n,e[150]=w,e[151]=t.breadcrumbs,e[152]=t.browser_breadcrumbs,e[153]=t.detection,e[154]=t.latest,e[155]=Le):Le=e[155];const Kt=t.detection?"hidden":void 0;let jt;e[156]===Symbol.for("react.memo_cache_sentinel")?(jt=s.jsx(d,{children:s.jsx(m,{children:"Occurrences (30d)"})}),e[156]=jt):jt=e[156];let Ie;e[157]!==R?(Ie=r=>{const F=R(r);F&&Qt.visit(F)},e[157]=R,e[158]=Ie):Ie=e[158];let _t;e[159]===Symbol.for("react.memo_cache_sentinel")?(_t=[{key:"when",header:"When",cell:Kn},{key:"in",header:"In",cell:On},{key:"u",header:"User",cell:Pn},{key:"t",header:"Tenant",cell:En},{key:"d",header:"Deploy",cell:Bn},{key:"h",header:"",cell:Fn}],e[159]=_t):_t=e[159];let Te;e[160]!==t.occurrences||e[161]!==Ie?(Te=s.jsx(o,{children:s.jsx(nt,{rows:t.occurrences,rowKey:Vn,empty:"Raw occurrences have been pruned.",onRowClick:Ie,columns:_t})}),e[160]=t.occurrences,e[161]=Ie,e[162]=Te):Te=e[162];let Ae;e[163]!==Kt||e[164]!==Te?(Ae=s.jsxs(c,{className:Kt,children:[jt,Te]}),e[163]=Kt,e[164]=Te,e[165]=Ae):Ae=e[165];let Me;e[166]!==n.application.id||e[167]!==n.environment.id||e[168]!==t.attachments?(Me=t.attachments.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Attachments"})}),s.jsx(o,{children:s.jsx(nt,{rows:t.attachments,rowKey:Dn,columns:[{key:"name",header:"Name",className:"max-w-0",cell:zn},{key:"in",header:"In",cell:Rn},{key:"size",header:"Size",align:"right",cell:Mn},{key:"links",header:"",align:"right",cell:r=>s.jsxs("span",{className:"flex justify-end gap-3",children:[r.viewable&&s.jsx("a",{className:"text-primary hover:underline",href:Zt(n.application.id,n.environment.id,r.id,{view:1}),children:"View"}),s.jsx("a",{className:"text-primary hover:underline",href:Zt(n.application.id,n.environment.id,r.id),children:"Download"})]})}]})})]}),e[166]=n.application.id,e[167]=n.environment.id,e[168]=t.attachments,e[169]=Me):Me=e[169];let Re;e[170]!==Le||e[171]!==Ae||e[172]!==Me?(Re=s.jsxs("div",{className:"space-y-6 lg:col-span-2",children:[Le,Ae,Me]}),e[170]=Le,e[171]=Ae,e[172]=Me,e[173]=Re):Re=e[173];const gs="space-y-6",Vt=t.detection?"hidden":void 0;let yt;e[174]===Symbol.for("react.memo_cache_sentinel")?(yt=s.jsx(d,{children:s.jsx(m,{children:"Daily (30d)"})}),e[174]=yt):yt=e[174];const js=t.daily;let vt,bt,Nt;e[175]===Symbol.for("react.memo_cache_sentinel")?(vt=s.jsx(cs,{vertical:!1}),bt=s.jsx(os,{dataKey:"day",tickLine:!1,axisLine:!1,minTickGap:24,tickFormatter:An}),Nt=s.jsx(ds,{width:28,tickLine:!1,axisLine:!1,allowDecimals:!1}),e[175]=vt,e[176]=bt,e[177]=Nt):(vt=e[175],bt=e[176],Nt=e[177]);let kt,wt;e[178]===Symbol.for("react.memo_cache_sentinel")?(kt=s.jsx(ms,{content:s.jsx(us,{labelFormatter:Tn})}),wt=s.jsx(fs,{dataKey:"count",fill:"var(--color-count)",radius:2}),e[178]=kt,e[179]=wt):(kt=e[178],wt=e[179]);let ze;e[180]!==t.deploys?(ze=t.deploys.map(In),e[180]=t.deploys,e[181]=ze):ze=e[181];let De;e[182]!==t.daily||e[183]!==ze?(De=s.jsx(o,{children:s.jsx(hs,{config:Zs,className:"h-40 w-full",children:s.jsxs(xs,{data:js,children:[vt,bt,Nt,kt,wt,ze]})})}),e[182]=t.daily,e[183]=ze,e[184]=De):De=e[184];let Fe;e[185]!==Vt||e[186]!==De?(Fe=s.jsxs(c,{className:Vt,children:[yt,De]}),e[185]=Vt,e[186]=De,e[187]=Fe):Fe=e[187];const Gt=t.detection?"hidden":void 0;let St;e[188]===Symbol.for("react.memo_cache_sentinel")?(St=s.jsx(d,{children:s.jsx(m,{children:"Grouping"})}),e[188]=St):St=e[188];let Be;e[189]!==t.fingerprint?(Be=t.fingerprint.length>0&&s.jsx("div",{className:"flex flex-wrap gap-1",children:t.fingerprint.map(Ln)}),e[189]=t.fingerprint,e[190]=Be):Be=e[190];const Ut=tn[t.fingerprint_source??"default"]??`Fingerprint from ${t.fingerprint_source}.`;let Ee;e[191]!==Ut?(Ee=s.jsx("p",{className:"text-muted-foreground text-xs",children:Ut}),e[191]=Ut,e[192]=Ee):Ee=e[192];let Pe;e[193]!==l||e[194]!==t.distinct_messages||e[195]!==t.top_messages?(Pe=t.distinct_messages>1&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"space-y-1",children:t.top_messages.map($n)}),s.jsxs(O,{size:"sm",variant:"outline",onClick:()=>l("split",{by:"message"}),children:[s.jsx(Ys,{className:"size-3.5"}),"Split into ",t.distinct_messages," issues"]})]}),e[193]=l,e[194]=t.distinct_messages,e[195]=t.top_messages,e[196]=Pe):Pe=e[196];let Oe;e[197]!==Be||e[198]!==Ee||e[199]!==Pe?(Oe=s.jsxs(o,{className:"space-y-3",children:[Be,Ee,Pe]}),e[197]=Be,e[198]=Ee,e[199]=Pe,e[200]=Oe):Oe=e[200];let Ke;e[201]!==Gt||e[202]!==Oe?(Ke=s.jsxs(c,{className:Gt,children:[St,Oe]}),e[201]=Gt,e[202]=Oe,e[203]=Ke):Ke=e[203];let Ve;e[204]!==t.related_issues?(Ve=t.related_issues.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Related issues"})}),s.jsx(o,{className:"space-y-2",children:t.related_issues.map(Cn)})]}),e[204]=t.related_issues,e[205]=Ve):Ve=e[205];let Ge;e[206]!==t.merged_issues?(Ge=t.merged_issues.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Merged issues"})}),s.jsx(o,{className:"space-y-2",children:t.merged_issues.map(Sn)})]}),e[206]=t.merged_issues,e[207]=Ge):Ge=e[207];let Ue;e[208]!==t.alerts?(Ue=t.alerts.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Alerts"})}),s.jsx(o,{className:"space-y-2",children:t.alerts.map(wn)})]}),e[208]=t.alerts,e[209]=Ue):Ue=e[209];let Ct;e[210]===Symbol.for("react.memo_cache_sentinel")?(Ct=s.jsx(d,{children:s.jsx(m,{children:"By deploy"})}),e[210]=Ct):Ct=e[210];let He;e[211]!==t.by_deploy?(He=Object.entries(t.by_deploy),e[211]=t.by_deploy,e[212]=He):He=e[212];let $t;e[213]===Symbol.for("react.memo_cache_sentinel")?($t=[{key:"d",header:"Deploy",cell:Nn},{key:"n",header:"Count",align:"right",cell:bn}],e[213]=$t):$t=e[213];let qe;e[214]!==He?(qe=s.jsxs(c,{children:[Ct,s.jsx(o,{children:s.jsx(nt,{rows:He,rowKey:kn,columns:$t})})]}),e[214]=He,e[215]=qe):qe=e[215];let Je;e[216]!==t.by_tenant?(Je=Object.keys(t.by_tenant).length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"By tenant"})}),s.jsx(o,{children:s.jsx(nt,{rows:Object.entries(t.by_tenant),rowKey:vn,columns:[{key:"t",header:"Tenant",cell:yn},{key:"n",header:"Count",align:"right",cell:_n}]})})]}),e[216]=t.by_tenant,e[217]=Je):Je=e[217];const Ht=c;let Qe;e[218]===Symbol.for("react.memo_cache_sentinel")?(Qe=s.jsx(d,{children:s.jsx(m,{children:"Activity"})}),e[218]=Qe):Qe=e[218];const qt=o,_s="space-y-3",Jt=t.activities.map(r=>{const F=r.data.source==="linear",ot=typeof r.data.author_name=="string"?r.data.author_name:"Linear",Tt=r.user?.name??(F?ot:"System");return s.jsxs("div",{className:"flex gap-2 text-sm",children:[s.jsx(Rs,{className:"size-6",children:s.jsx(zs,{className:"text-[10px]",children:r.user||F?ct(Tt):"sys"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"text-xs",children:[s.jsx("span",{className:"font-medium",children:Tt})," ",s.jsx("span",{className:"text-muted-foreground",children:nn(r,V)})," ",s.jsx(ls,{iso:r.created_at,className:"text-muted-foreground"})]}),r.kind==="comment"&&s.jsx("div",{className:"mt-0.5 whitespace-pre-wrap",children:String(r.data.body)})]})]},r.id)});let We;e[219]!==n.id?(We=vs(n.id),e[219]=n.id,e[220]=We):We=e[220];let Lt;e[221]===Symbol.for("react.memo_cache_sentinel")?(Lt={preserveScroll:!0},e[221]=Lt):Lt=e[221];let Xe;e[222]!==We?(Xe=s.jsx(ks,{method:"post",action:We,options:Lt,resetOnSuccess:!0,className:"space-y-2",children:jn}),e[222]=We,e[223]=Xe):Xe=e[223];let Ye;e[224]!==qt||e[225]!==Jt||e[226]!==Xe?(Ye=s.jsxs(qt,{className:_s,children:[Jt,Xe]}),e[224]=qt,e[225]=Jt,e[226]=Xe,e[227]=Ye):Ye=e[227];let Ze;e[228]!==Ht||e[229]!==Qe||e[230]!==Ye?(Ze=s.jsxs(Ht,{children:[Qe,Ye]}),e[228]=Ht,e[229]=Qe,e[230]=Ye,e[231]=Ze):Ze=e[231];let et;e[232]!==qe||e[233]!==Je||e[234]!==Ze||e[235]!==Fe||e[236]!==Ke||e[237]!==Ve||e[238]!==Ge||e[239]!==Ue?(et=s.jsxs("div",{className:gs,children:[Fe,Ke,Ve,Ge,Ue,qe,Je,Ze]}),e[232]=qe,e[233]=Je,e[234]=Ze,e[235]=Fe,e[236]=Ke,e[237]=Ve,e[238]=Ge,e[239]=Ue,e[240]=et):et=e[240];let tt;e[241]!==et||e[242]!==Re?(tt=s.jsxs("div",{className:ps,children:[Re,et]}),e[241]=et,e[242]=Re,e[243]=tt):tt=e[243];let st;e[244]!==tt||e[245]!==ce||e[246]!==oe||e[247]!==he||e[248]!==$e?(st=s.jsxs("div",{className:H,children:[ce,oe,he,$e,tt]}),e[244]=tt,e[245]=ce,e[246]=oe,e[247]=he,e[248]=$e,e[249]=st):st=e[249];let It;return e[250]!==z||e[251]!==h||e[252]!==st||e[253]!==D?(It=s.jsxs(z,{breadcrumbs:D,children:[h,st]}),e[250]=z,e[251]=h,e[252]=st,e[253]=D,e[254]=It):It=e[254],It}function jn(t){const{processing:e}=t;return s.jsxs(s.Fragment,{children:[s.jsx(Vs,{name:"body",placeholder:"Add a comment…",required:!0,rows:3}),s.jsx(O,{size:"sm",disabled:e,children:"Comment"})]})}function _n(t){const[,e]=t;return e}function yn(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e})}function vn(t){const[e]=t;return e}function bn(t){const[,e]=t;return e}function Nn(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e??"unknown"})}function kn(t){const[e]=t;return e??"none"}function wn(t){return s.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",title:t.error??void 0,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ut,{variant:t.status==="failed"?"destructive":"outline",className:"capitalize",children:t.status}),s.jsxs("span",{children:[t.event," via ",t.integration.name]}),s.jsx(ls,{iso:t.sent_at,className:"text-muted-foreground"})]}),t.error&&s.jsx("span",{className:"text-destructive",children:t.error})]},t.id)}function Sn(t){return s.jsxs(Mt,{href:mt(t.id),className:"hover:bg-muted/60 -mx-2 flex flex-col rounded px-2 py-1 text-xs",children:[s.jsx("span",{className:"font-mono font-semibold",children:t.key}),s.jsx("span",{className:"text-muted-foreground line-clamp-1",children:t.title})]},t.id)}function Cn(t){return s.jsxs(Mt,{href:mt(t.id),className:"hover:bg-muted/60 -mx-2 flex flex-col rounded px-2 py-1 text-xs",children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"font-mono font-semibold",children:t.key}),s.jsx(as,{status:t.status})]}),s.jsx("span",{className:"text-muted-foreground line-clamp-1",children:t.title}),s.jsx("span",{className:"text-muted-foreground",children:t.environment.name})]},t.id)}function $n(t){return s.jsxs("div",{className:"flex items-start justify-between gap-2 text-xs",children:[s.jsx("span",{className:"line-clamp-1 font-mono",children:t.message}),s.jsx("span",{className:"text-muted-foreground",children:Rt(t.count)})]},t.message)}function Ln(t,e){return s.jsx("span",{className:"bg-muted rounded px-1.5 py-0.5 font-mono text-[11px] break-all",children:t},`${e}-${t}`)}function In(t){return s.jsx(Ks,{x:t.at.slice(0,10),stroke:"var(--muted-foreground)",strokeDasharray:"3 3",label:{value:t.ref,position:"insideTopRight",fontSize:10}},t.deploy)}function Tn(t){return String(t)}function An(t){return new Date(t).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Mn(t){return Us(t.bytes)}function Rn(t){return s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.execution_preview??"–"})}function zn(t){return s.jsxs("span",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"truncate font-mono text-xs",children:t.name}),t.truncated&&s.jsx(ut,{variant:"secondary",children:"truncated"})]})}function Dn(t){return t.id}function Fn(t){return t.handled?s.jsx(ut,{variant:"secondary",children:"handled"}):null}function Bn(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy?.slice(0,10)})}function En(t){return s.jsx("span",{className:"font-mono text-xs",children:t.tenant??""})}function Pn(t){return s.jsx("span",{className:"font-mono text-xs",children:t.user_ref??""})}function On(t){return s.jsxs("span",{className:"font-mono text-xs",children:[t.execution_source," ",t.execution_preview]})}function Kn(t){return s.jsx("span",{className:"text-xs",children:rt(t.occurred_at)})}function Vn(t){return t.id}function Gn(t){return s.jsx(Yt,{value:String(t.id),children:t.name},t.id)}function Un(t){return s.jsx(Yt,{value:t,children:t},t)}function Hn(t){if(!t.ok)throw new Error(`HTTP ${t.status}`);return t.json()}function qn(t){return[t.id,t.name]}export{yi as default};
|
|
1
|
+
import{B as Xt,c as is,r as Q,S as ys,i as mt,j as s,L as Mt,I as Zt,U as vs,e as Qt,V as bs,H as Ns,F as ks,J as ws}from"./inertia-Degv_G9N.js";import{D as nt}from"./data-table-IvA7xvrK.js";import{S as Ss,E as Cs,B as $s,a as Ls,C as Is}from"./frames-KZBsjg6-.js";import{J as rs}from"./json-viewer-DcQIxT86.js";import{R as ls}from"./relative-time-6CoKr1lN.js";import{S as dt,a as Ts}from"./stat-TxvoBiC8.js";import{I as as}from"./status-badge-5NCVJHjo.js";import{f as As,g as Ms,h as Rs,i as zs,A as Ds,j as Fs,k as Bs,l as Es,m as Ps,n as Os}from"./app-layout-B5Fcdwfz.js";import{B as ut}from"./badge-CApjyWcg.js";import{B as O}from"./app-wordmark-1SRllgHv.js";import{C as c,b as d,c as m,a as o}from"./card-BaJ8kNkp.js";import{C as cs,X as os,Y as ds,a as ms,b as us,B as fs,c as hs,d as xs,R as Ks}from"./chart-Xnrz1Nqw.js";import{S as es,a as ts,b as ss,c as ns,d as Yt}from"./select-CsmSXsJ4.js";import{T as Vs}from"./textarea-DtD5yZp_.js";import{u as Gs}from"./use-clipboard-BLjjYH8V.js";import{e as Wt}from"./execution-path-Di5uUHi-.js";import{c as Rt,a as At,w as rt,b as Us}from"./format-B9SDkrWj.js";import{C as Hs}from"./index-CX8Br7m9.js";import"./chart-hover-XYPNE2CX.js";import"./empty-state-BFTnQ2oT.js";import"./source-link-B2183i2-.js";import"./live-dot-DaXEbkXo.js";import"./index-B0VXzXYG.js";import"./use-live-GKze1mNC.js";import"./arrow-up-DwKQcab4.js";import"./checkbox-Bf41R8W6.js";import"./label-B_vK19tR.js";const qs=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Js=Xt("git-merge",qs);const Qs=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Ws=Xt("globe",Qs);const Xs=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],Ys=Xt("split",Xs),Zs={count:{label:"Occurrences",color:"var(--chart-5)"}},en={value:{label:"Measured value",color:"var(--chart-2)"}},tn={report:"Fingerprint passed to Railwatch.report.",error:"Fingerprint from the error's own #railwatch_fingerprint.",resolver:"Fingerprint from the app's Railwatch.fingerprint block.",default:"Railwatch's default: exception class, top in-app frame, and the message with its variable data removed."};function sn(t,e){return e?e.kind==="query"?e.group_hash?ws(t.application.id,t.environment.id,e.group_hash):null:Wt({applicationId:t.application.id,environmentId:t.environment.id,source:e.kind,executionId:e.execution_id}):null}function nn(t,e){const n=t.data;switch(t.kind){case"created":return"opened this issue";case"status":return`changed status ${n.from} → ${n.to}`;case"priority":return`changed priority ${n.from} → ${n.to}`;case"assignee":{const i=n.from_id?e.get(Number(n.from_id))??"someone":"unassigned",l=n.to_id?e.get(Number(n.to_id))??"someone":"unassigned";return`reassigned ${i} → ${l}`}case"merge":return`merged this issue into ${n.target_key}`;case"absorbed":return`merged ${n.source_key} into this issue (${n.occurrences} events)`;case"unmerge":return"unmerged this issue";case"split":{const i=Array.isArray(t.data.into)?t.data.into:[];return n.from_key?`split ${n.occurrences} events out of ${n.from_key}`:`split ${n.occurrences} events by message into ${i.join(", ")}`}case"regressed":return"regressed — a new occurrence reopened this issue";case"alert":return`sent a "${n.event}" alert via ${n.integration}`;case"agent":return`acted via ${String(n.agent??"an AI agent")} (MCP)`;case"comment":return"commented";default:return String(t.kind)}}function rn(t){const e=t.issue,n=[];if(n.push(`# ${e.key}: ${e.title}`),e.culprit&&n.push(`Culprit: ${e.culprit}`),n.push(`Environment: ${e.application.name} / ${e.environment.name}`),t.detection?.available&&(n.push(""),n.push("## Detector measurement"),n.push(`${t.detection.metric} for ${t.detection.target}: ${it(t.detection.measurement?.value,t.detection.unit)}`),t.detection.measurement?.limit!=null&&n.push(`Limit: ${it(t.detection.measurement.limit,t.detection.unit)}`),t.detection.baseline?.mean!=null&&n.push(`Baseline: ${it(t.detection.baseline.mean,t.detection.unit)} (${t.detection.baseline.sigmas}σ)`),n.push(`Underlying telemetry: ${t.detection.telemetry_type} ${t.detection.telemetry_group_hash}`)),t.latest){n.push(""),n.push(`## ${t.latest.class_name}`),n.push(t.latest.message);const i=t.latest.frames.filter(l=>l.in_app);if(i.length>0){n.push(""),n.push("### Frames");for(const l of i)if(n.push(`${l.file}:${l.line} in \`${l.function}\``),l.code)for(const[B,T]of Object.entries(l.code))n.push(`${B}: ${T}`)}t.latest.context&&(n.push(""),n.push("### Context"),n.push(String(t.latest.context)))}return n.join(`
|
|
2
|
+
`)}function it(t,e){return t==null?"–":e==="milliseconds"?`${t.toLocaleString()} ms`:e==="percent"?`${t.toLocaleString()}%`:e==="events_per_minute"?`${t.toLocaleString()} / min`:t.toLocaleString()}function ln(t){const e=is.c(80),{issue:n,detail:i}=t;if(!i.available){let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(d,{children:s.jsx(m,{children:"Detector sample"})}),e[0]=y):y=e[0];let u;return e[1]!==n.sample?(u=s.jsxs(c,{children:[y,s.jsx(o,{children:s.jsx(rs,{data:n.sample})})]}),e[1]=n.sample,e[2]=u):u=e[2],u}let l;e[3]!==i.representative_records?(l=i.representative_records??[],e[3]=i.representative_records,e[4]=l):l=e[4];const B=l;let T;e[5]!==i.deploy_comparison?(T=i.deploy_comparison??[],e[5]=i.deploy_comparison,e[6]=T):T=e[6];const q=T;let v;e[7]!==i.trend?(v=i.trend??[],e[7]=i.trend,e[8]=v):v=e[8];const K=v,a=i.metric==="missed",W=a?"Missed scheduled task":i.kind==="anomaly"?"Anomaly measurement":"Threshold breach";let b;e[9]!==W?(b=s.jsx(d,{children:s.jsx(m,{children:W})}),e[9]=W,e[10]=b):b=e[10];let E;e[11]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("p",{className:"text-muted-foreground text-xs",children:"Target"}),e[11]=E):E=e[11];let A;e[12]!==i.target?(A=s.jsxs("div",{children:[E,s.jsx("p",{className:"font-mono text-sm",children:i.target})]}),e[12]=i.target,e[13]=A):A=e[13];const lt=a?"Schedule":"Metric";let P;e[14]!==lt?(P=s.jsx("p",{className:"text-muted-foreground text-xs",children:lt}),e[14]=lt,e[15]=P):P=e[15];const at=a?i.rule?.schedule:i.metric;let M;e[16]!==at?(M=s.jsx("p",{className:"text-sm",children:at}),e[16]=at,e[17]=M):M=e[17];let V;e[18]!==M||e[19]!==P?(V=s.jsxs("div",{children:[P,M]}),e[18]=M,e[19]=P,e[20]=V):V=e[20];const ct=a?"Expected":"Measured";let N;e[21]!==ct?(N=s.jsx("p",{className:"text-muted-foreground text-xs",children:ct}),e[21]=ct,e[22]=N):N=e[22];let R;e[23]!==i.measurement?.value||e[24]!==i.rule||e[25]!==i.unit||e[26]!==a?(R=a&&i.rule?.expected?rt(i.rule.expected):it(i.measurement?.value,i.unit),e[23]=i.measurement?.value,e[24]=i.rule,e[25]=i.unit,e[26]=a,e[27]=R):R=e[27];let k;e[28]!==R?(k=s.jsx("p",{className:"text-sm font-semibold",children:R}),e[28]=R,e[29]=k):k=e[29];let w;e[30]!==N||e[31]!==k?(w=s.jsxs("div",{children:[N,k]}),e[30]=N,e[31]=k,e[32]=w):w=e[32];const G=a?"Last run":i.kind==="anomaly"?"Baseline":"Limit";let S;e[33]!==G?(S=s.jsx("p",{className:"text-muted-foreground text-xs",children:G}),e[33]=G,e[34]=S):S=e[34];let z;e[35]!==i.baseline?.mean||e[36]!==i.kind||e[37]!==i.measurement?.limit||e[38]!==i.rule||e[39]!==i.unit||e[40]!==a?(z=a&&i.rule?.last_run?rt(i.rule.last_run):i.kind==="anomaly"?it(i.baseline?.mean,i.unit):it(i.measurement?.limit,i.unit),e[35]=i.baseline?.mean,e[36]=i.kind,e[37]=i.measurement?.limit,e[38]=i.rule,e[39]=i.unit,e[40]=a,e[41]=z):z=e[41];let C;e[42]!==z?(C=s.jsx("p",{className:"text-sm",children:z}),e[42]=z,e[43]=C):C=e[43];let U;e[44]!==S||e[45]!==C?(U=s.jsxs("div",{children:[S,C]}),e[44]=S,e[45]=C,e[46]=U):U=e[46];let f;e[47]!==V||e[48]!==w||e[49]!==U||e[50]!==A?(f=s.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[A,V,w,U]}),e[47]=V,e[48]=w,e[49]=U,e[50]=A,e[51]=f):f=e[51];const D=i.window?.minutes,J=i.baseline?.sigmas!=null&&` · ${i.baseline.sigmas}σ above a ${i.baseline.days}-day baseline`;let h;e[52]!==i.telemetry_group_hash||e[53]!==i.telemetry_type||e[54]!==D||e[55]!==J?(h=s.jsxs("p",{className:"text-muted-foreground text-xs",children:[i.telemetry_type," group ",i.telemetry_group_hash," ·"," ",D," minute window",J]}),e[52]=i.telemetry_group_hash,e[53]=i.telemetry_type,e[54]=D,e[55]=J,e[56]=h):h=e[56];let H;e[57]!==f||e[58]!==h?(H=s.jsxs(o,{className:"space-y-4",children:[f,h]}),e[57]=f,e[58]=h,e[59]=H):H=e[59];let x;e[60]!==H||e[61]!==b?(x=s.jsxs(c,{children:[b,H]}),e[60]=H,e[61]=b,e[62]=x):x=e[62];let p;e[63]!==i.metric||e[64]!==K?(p=K.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsxs(m,{children:[i.metric," trend (30d)"]})}),s.jsx(o,{children:s.jsx(hs,{config:en,className:"h-48 w-full",children:s.jsxs(xs,{data:K,children:[s.jsx(cs,{vertical:!1}),s.jsx(os,{dataKey:"day",tickLine:!1,axisLine:!1,minTickGap:24,tickFormatter:gn}),s.jsx(ds,{width:45,tickLine:!1,axisLine:!1}),s.jsx(ms,{content:s.jsx(us,{})}),s.jsx(fs,{dataKey:"value",fill:"var(--color-value)",radius:2})]})})})]}),e[63]=i.metric,e[64]=K,e[65]=p):p=e[65];let $;e[66]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(d,{children:s.jsx(m,{children:"Representative telemetry"})}),e[66]=$):$=e[66];let g;e[67]!==n?(g=y=>{const u=sn(n,y.drilldown);u&&Qt.visit(u)},e[67]=n,e[68]=g):g=e[68];let L;e[69]===Symbol.for("react.memo_cache_sentinel")?(L=[{key:"when",header:"When",cell:xn},{key:"record",header:"Record",className:"max-w-0",cell:hn},{key:"duration",header:"Duration",align:"right",cell:fn},{key:"deploy",header:"Deploy",cell:un}],e[69]=L):L=e[69];let j;e[70]!==B||e[71]!==g?(j=s.jsxs(c,{children:[$,s.jsx(o,{children:s.jsx(nt,{rows:B,rowKey:pn,empty:"Representative raw telemetry has been pruned.",onRowClick:g,columns:L})})]}),e[70]=B,e[71]=g,e[72]=j):j=e[72];let _;e[73]!==q?(_=q.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Deploy comparison (30d)"})}),s.jsx(o,{children:s.jsx(nt,{rows:q,rowKey:mn,columns:[{key:"deploy",header:"Deploy",cell:dn},{key:"events",header:"Events",align:"right",cell:on},{key:"avg",header:"Avg",align:"right",cell:cn},{key:"max",header:"Max",align:"right",cell:an}]})})]}),e[73]=q,e[74]=_):_=e[74];let I;return e[75]!==x||e[76]!==p||e[77]!==j||e[78]!==_?(I=s.jsxs(s.Fragment,{children:[x,p,j,_]}),e[75]=x,e[76]=p,e[77]=j,e[78]=_,e[79]=I):I=e[79],I}function an(t){return`${t.max_ms} ms`}function cn(t){return`${t.avg_ms} ms`}function on(t){return Rt(t.events)}function dn(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy.slice(0,12)})}function mn(t){return t.deploy}function un(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy?.slice(0,10)})}function fn(t){return`${t.duration_ms.toLocaleString()} ms`}function hn(t){return s.jsx("span",{className:"block truncate font-mono text-xs",children:t.name})}function xn(t){return s.jsx("span",{className:"text-xs",children:rt(t.occurred_at)})}function pn(t){return`${t.record_type}-${t.record_id}`}function gn(t){return new Date(t).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function vi(t){const e=is.c(255),n=t.issue;let i;e[0]!==n.id?(i=(r,F)=>{const ot=F===void 0?{}:F;return Qt.patch(mt(n.id),{action_name:r,...ot},{preserveScroll:!0})},e[0]=n.id,e[1]=i):i=e[1];const l=i,[,B]=Gs(),[T,q]=Q.useState(!1),[v,K]=Q.useState(!1),[a,W]=Q.useState("");let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[2]=b):b=e[2];const[E,A]=Q.useState(b),[lt,P]=Q.useState(!1),[at,M]=Q.useState(!1),V=new Map(t.members.map(qn)),ct=Fs();let N;e[3]!==n.application.id||e[4]!==n.environment.id?(N=r=>Wt({applicationId:n.application.id,environmentId:n.environment.id,source:r.execution_source,executionId:r.execution_id}),e[3]=n.application.id,e[4]=n.environment.id,e[5]=N):N=e[5];const R=N;let k;e[6]!==n.application.id||e[7]!==n.environment.id||e[8]!==t.latest?(k=t.latest?Wt({applicationId:n.application.id,environmentId:n.environment.id,source:t.latest.execution_source,executionId:t.latest.execution_id}):null,e[6]=n.application.id,e[7]=n.environment.id,e[8]=t.latest,e[9]=k):k=e[9];const w=k;let G,S;e[10]!==n.id||e[11]!==v||e[12]!==a?(G=()=>{if(!v)return;const r=new AbortController,F=window.setTimeout(()=>{P(!0),M(!1),fetch(bs(n.id,{q:a}),{headers:{Accept:"application/json"},credentials:"same-origin",signal:r.signal}).then(Hn).then(ot=>{const{issues:Tt}=ot;return A(Tt)}).catch(()=>{r.signal.aborted||(A([]),M(!0))}).finally(()=>{r.signal.aborted||P(!1)})},150);return()=>{window.clearTimeout(F),r.abort()}},S=[n.id,v,a],e[10]=n.id,e[11]=v,e[12]=a,e[13]=G,e[14]=S):(G=e[13],S=e[14]),Q.useEffect(G,S);const z=Ds;let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C={title:"Issues",href:ys()},e[15]=C):C=e[15];const U=n.key;let f;e[16]!==n.id?(f=mt(n.id),e[16]=n.id,e[17]=f):f=e[17];let D;e[18]!==n.key||e[19]!==f?(D=[C,{title:U,href:f}],e[18]=n.key,e[19]=f,e[20]=D):D=e[20];const J=`${n.key} ${n.title}`;let h;e[21]!==J?(h=s.jsx(Ns,{title:J}),e[21]=J,e[22]=h):h=e[22];const H="flex flex-1 flex-col gap-4 p-3 md:gap-5 md:px-6 md:pt-2 md:pb-6";let x;e[23]!==n.key?(x=s.jsx("span",{className:"font-mono text-sm font-semibold",children:n.key}),e[23]=n.key,e[24]=x):x=e[24];let p;e[25]!==n.status?(p=s.jsx(as,{status:n.status}),e[25]=n.status,e[26]=p):p=e[26];let $;e[27]!==n.kind?($=s.jsx(ut,{variant:"outline",children:n.kind}),e[27]=n.kind,e[28]=$):$=e[28];let g;e[29]!==n.source?(g=n.source==="browser"&&s.jsxs(ut,{variant:"outline",className:"gap-1",children:[s.jsx(Ws,{className:"size-3"}),"browser"]}),e[29]=n.source,e[30]=g):g=e[30];let L;e[31]!==n.application.name||e[32]!==n.environment.name?(L=s.jsxs("span",{className:"text-muted-foreground text-xs",children:[n.application.name," · ",n.environment.name]}),e[31]=n.application.name,e[32]=n.environment.name,e[33]=L):L=e[33];let j;e[34]!==x||e[35]!==p||e[36]!==$||e[37]!==g||e[38]!==L?(j=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[x,p,$,g,L]}),e[34]=x,e[35]=p,e[36]=$,e[37]=g,e[38]=L,e[39]=j):j=e[39];let _;e[40]!==n.title?(_=s.jsx("h1",{className:"mt-1 text-lg font-semibold break-words",children:n.title}),e[40]=n.title,e[41]=_):_=e[41];let I;e[42]!==n.culprit||e[43]!==n.sample?(I=n.culprit&&s.jsx("div",{className:"text-muted-foreground",children:s.jsx(Ss,{location:n.culprit,deploy:n.sample.deploy})}),e[42]=n.culprit,e[43]=n.sample,e[44]=I):I=e[44];let y;e[45]!==j||e[46]!==_||e[47]!==I?(y=s.jsxs("div",{className:"min-w-0",children:[j,_,I]}),e[45]=j,e[46]=_,e[47]=I,e[48]=y):y=e[48];let u;e[49]!==l?(u=r=>l("priority",{priority:r}),e[49]=l,e[50]=u):u=e[50];let ft;e[51]===Symbol.for("react.memo_cache_sentinel")?(ft=s.jsx(ts,{className:"w-28",children:s.jsx(ss,{})}),e[51]=ft):ft=e[51];let ht;e[52]===Symbol.for("react.memo_cache_sentinel")?(ht=s.jsx(ns,{children:["low","normal","high","urgent"].map(Un)}),e[52]=ht):ht=e[52];let X;e[53]!==n.priority||e[54]!==u?(X=s.jsxs(es,{value:n.priority,onValueChange:u,children:[ft,ht]}),e[53]=n.priority,e[54]=u,e[55]=X):X=e[55];const zt=n.assignee?String(n.assignee.id):"none";let Y;e[56]!==l?(Y=r=>l("assign",{assignee_id:r==="none"?null:r}),e[56]=l,e[57]=Y):Y=e[57];let xt;e[58]===Symbol.for("react.memo_cache_sentinel")?(xt=s.jsx(ts,{className:"w-40",children:s.jsx(ss,{placeholder:"Assign"})}),e[58]=xt):xt=e[58];let pt;e[59]===Symbol.for("react.memo_cache_sentinel")?(pt=s.jsx(Yt,{value:"none",children:"Unassigned"}),e[59]=pt):pt=e[59];let Z;e[60]!==t.members?(Z=t.members.map(Gn),e[60]=t.members,e[61]=Z):Z=e[61];let ee;e[62]!==Z?(ee=s.jsxs(ns,{children:[pt,Z]}),e[62]=Z,e[63]=ee):ee=e[63];let te;e[64]!==zt||e[65]!==Y||e[66]!==ee?(te=s.jsxs(es,{value:zt,onValueChange:Y,children:[xt,ee]}),e[64]=zt,e[65]=Y,e[66]=ee,e[67]=te):te=e[67];let se;e[68]!==l||e[69]!==n.status?(se=n.status==="merged"?s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("unmerge"),children:"Unmerge"}):n.status==="open"?s.jsxs(s.Fragment,{children:[s.jsx(O,{size:"sm",onClick:()=>l("resolve"),children:"Resolve"}),s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("ignore"),children:"Ignore"})]}):s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("reopen"),children:"Reopen"}),e[68]=l,e[69]=n.status,e[70]=se):se=e[70];let ne;e[71]!==n.status?(ne=n.status!=="merged"&&s.jsxs(O,{size:"sm",variant:"outline",onClick:()=>K(!0),children:[s.jsx(Js,{"data-icon":"inline-start"}),"Merge into…"]}),e[71]=n.status,e[72]=ne):ne=e[72];let ie;e[73]!==B||e[74]!==t?(ie=()=>{(async()=>await B(rn(t))&&(q(!0),setTimeout(()=>q(!1),1200)))()},e[73]=B,e[74]=t,e[75]=ie):ie=e[75];let re;e[76]!==T?(re=T?s.jsx(Hs,{className:"size-3.5"}):s.jsx(Is,{className:"size-3.5"}),e[76]=T,e[77]=re):re=e[77];let le;e[78]!==ie||e[79]!==re?(le=s.jsxs(O,{size:"sm",variant:"outline",onClick:ie,children:[re,"Copy for AI"]}),e[78]=ie,e[79]=re,e[80]=le):le=e[80];let ae;e[81]!==X||e[82]!==te||e[83]!==se||e[84]!==ne||e[85]!==le?(ae=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[X,te,se,ne,le]}),e[81]=X,e[82]=te,e[83]=se,e[84]=ne,e[85]=le,e[86]=ae):ae=e[86];let ce;e[87]!==y||e[88]!==ae?(ce=s.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[y,ae]}),e[87]=y,e[88]=ae,e[89]=ce):ce=e[89];let oe;e[90]!==l||e[91]!==t.merged_into?(oe=t.merged_into&&s.jsxs("div",{className:"bg-muted flex flex-wrap items-center justify-between gap-2 rounded-md border px-4 py-3 text-sm",children:[s.jsxs("span",{children:["Merged into"," ",s.jsx(Mt,{href:mt(t.merged_into.id),className:"font-mono font-semibold underline",children:t.merged_into.key})," ",s.jsx("span",{className:"text-muted-foreground",children:t.merged_into.title})]}),s.jsx(O,{size:"sm",variant:"outline",onClick:()=>l("unmerge"),children:"Unmerge"})]}),e[90]=l,e[91]=t.merged_into,e[92]=oe):oe=e[92];let gt;e[93]===Symbol.for("react.memo_cache_sentinel")?(gt=r=>{K(r),r||(W(""),A([]),M(!1))},e[93]=gt):gt=e[93];let de;e[94]!==a?(de=s.jsx(Bs,{placeholder:"Search issues by key or title…",value:a,onValueChange:W}),e[94]=a,e[95]=de):de=e[95];const Dt=lt?"Searching…":at?"Search failed. Try again.":"No open issues found.";let me;e[96]!==Dt?(me=s.jsx(Es,{children:Dt}),e[96]=Dt,e[97]=me):me=e[97];let ue;e[98]!==l||e[99]!==E?(ue=E.length>0&&s.jsx(As,{children:E.map(r=>s.jsxs(Ms,{value:`${r.key} ${r.title}`,onSelect:()=>{l("merge",{target_id:r.id}),K(!1)},children:[s.jsx("span",{className:"font-mono font-semibold",children:r.key}),s.jsx("span",{className:"text-muted-foreground truncate",children:r.title})]},r.id))}),e[98]=l,e[99]=E,e[100]=ue):ue=e[100];let fe;e[101]!==me||e[102]!==ue?(fe=s.jsxs(Ps,{children:[me,ue]}),e[101]=me,e[102]=ue,e[103]=fe):fe=e[103];let he;e[104]!==v||e[105]!==de||e[106]!==fe?(he=s.jsxs(Os,{open:v,onOpenChange:gt,title:"Merge into…",description:"Search issues to merge this one into",children:[de,fe]}),e[104]=v,e[105]=de,e[106]=fe,e[107]=he):he=e[107];const Ft=t.detection?.count_label??"Events",Bt=t.detection?.breached_windows??n.occurrences;let xe;e[108]!==Bt?(xe=Rt(Bt),e[108]=Bt,e[109]=xe):xe=e[109];let pe;e[110]!==Ft||e[111]!==xe?(pe=s.jsx(dt,{label:Ft,value:xe}),e[110]=Ft,e[111]=xe,e[112]=pe):pe=e[112];const Et=t.detection?"Events in measured window":"Users affected";let ge;e[113]!==n.affected_users||e[114]!==t.detection?(ge=t.detection?t.detection.event_count==null?"–":Rt(t.detection.event_count):n.affected_users,e[113]=n.affected_users,e[114]=t.detection,e[115]=ge):ge=e[115];let je;e[116]!==Et||e[117]!==ge?(je=s.jsx(dt,{label:Et,value:ge}),e[116]=Et,e[117]=ge,e[118]=je):je=e[118];let _e;e[119]!==n.first_seen_at?(_e=At(n.first_seen_at),e[119]=n.first_seen_at,e[120]=_e):_e=e[120];let ye;e[121]!==n.first_seen_at?(ye=rt(n.first_seen_at),e[121]=n.first_seen_at,e[122]=ye):ye=e[122];let ve;e[123]!==_e||e[124]!==ye?(ve=s.jsx(dt,{label:"First seen",value:_e,hint:ye}),e[123]=_e,e[124]=ye,e[125]=ve):ve=e[125];let be;e[126]!==n.last_seen_at?(be=At(n.last_seen_at),e[126]=n.last_seen_at,e[127]=be):be=e[127];let Ne;e[128]!==n.last_seen_at?(Ne=rt(n.last_seen_at),e[128]=n.last_seen_at,e[129]=Ne):Ne=e[129];let ke;e[130]!==be||e[131]!==Ne?(ke=s.jsx(dt,{label:"Last seen",value:be,hint:Ne}),e[130]=be,e[131]=Ne,e[132]=ke):ke=e[132];const Pt=n.regressed_at?"Regressed":"Resolved";let we;e[133]!==n.regressed_at||e[134]!==n.resolved_at?(we=n.regressed_at?At(n.regressed_at):n.resolved_at?At(n.resolved_at):"–",e[133]=n.regressed_at,e[134]=n.resolved_at,e[135]=we):we=e[135];let Se;e[136]!==n.resolved_in_deploy?(Se=n.resolved_in_deploy?`in ${n.resolved_in_deploy.slice(0,12)}`:void 0,e[136]=n.resolved_in_deploy,e[137]=Se):Se=e[137];const Ot=n.regressed_at?"destructive":void 0;let Ce;e[138]!==Pt||e[139]!==we||e[140]!==Se||e[141]!==Ot?(Ce=s.jsx(dt,{label:Pt,value:we,hint:Se,tone:Ot}),e[138]=Pt,e[139]=we,e[140]=Se,e[141]=Ot,e[142]=Ce):Ce=e[142];let $e;e[143]!==pe||e[144]!==je||e[145]!==ve||e[146]!==ke||e[147]!==Ce?($e=s.jsxs(Ts,{children:[pe,je,ve,ke,Ce]}),e[143]=pe,e[144]=je,e[145]=ve,e[146]=ke,e[147]=Ce,e[148]=$e):$e=e[148];const ps="grid gap-6 lg:grid-cols-3";let Le;e[149]!==n||e[150]!==w||e[151]!==t.breadcrumbs||e[152]!==t.browser_breadcrumbs||e[153]!==t.detection||e[154]!==t.latest?(Le=t.detection?s.jsx(ln,{issue:n,detail:t.detection}):t.latest?s.jsxs(c,{children:[s.jsxs(d,{className:"flex-row items-center justify-between",children:[s.jsx(m,{children:"Latest occurrence"}),w&&s.jsxs(Mt,{className:"text-xs underline",href:w,children:["Open ",t.latest.execution_preview]})]}),s.jsxs(o,{children:[s.jsx(Cs,{exception:t.latest,deploy:t.latest.deploy}),s.jsxs("div",{className:"mt-4 space-y-4",children:[s.jsx($s,{entries:t.breadcrumbs}),s.jsx(Ls,{crumbs:t.browser_breadcrumbs})]}),(t.latest.ruby_version??t.latest.rails_version)&&s.jsxs("p",{className:"text-muted-foreground mt-3 text-xs",children:["Ruby ",t.latest.ruby_version," · Rails"," ",t.latest.rails_version]})]})]}):s.jsx(c,{children:s.jsx(o,{children:s.jsx(rs,{data:n.sample})})}),e[149]=n,e[150]=w,e[151]=t.breadcrumbs,e[152]=t.browser_breadcrumbs,e[153]=t.detection,e[154]=t.latest,e[155]=Le):Le=e[155];const Kt=t.detection?"hidden":void 0;let jt;e[156]===Symbol.for("react.memo_cache_sentinel")?(jt=s.jsx(d,{children:s.jsx(m,{children:"Occurrences (30d)"})}),e[156]=jt):jt=e[156];let Ie;e[157]!==R?(Ie=r=>{const F=R(r);F&&Qt.visit(F)},e[157]=R,e[158]=Ie):Ie=e[158];let _t;e[159]===Symbol.for("react.memo_cache_sentinel")?(_t=[{key:"when",header:"When",cell:Kn},{key:"in",header:"In",cell:On},{key:"u",header:"User",cell:Pn},{key:"t",header:"Tenant",cell:En},{key:"d",header:"Deploy",cell:Bn},{key:"h",header:"",cell:Fn}],e[159]=_t):_t=e[159];let Te;e[160]!==t.occurrences||e[161]!==Ie?(Te=s.jsx(o,{children:s.jsx(nt,{rows:t.occurrences,rowKey:Vn,empty:"Raw occurrences have been pruned.",onRowClick:Ie,columns:_t})}),e[160]=t.occurrences,e[161]=Ie,e[162]=Te):Te=e[162];let Ae;e[163]!==Kt||e[164]!==Te?(Ae=s.jsxs(c,{className:Kt,children:[jt,Te]}),e[163]=Kt,e[164]=Te,e[165]=Ae):Ae=e[165];let Me;e[166]!==n.application.id||e[167]!==n.environment.id||e[168]!==t.attachments?(Me=t.attachments.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Attachments"})}),s.jsx(o,{children:s.jsx(nt,{rows:t.attachments,rowKey:Dn,columns:[{key:"name",header:"Name",className:"max-w-0",cell:zn},{key:"in",header:"In",cell:Rn},{key:"size",header:"Size",align:"right",cell:Mn},{key:"links",header:"",align:"right",cell:r=>s.jsxs("span",{className:"flex justify-end gap-3",children:[r.viewable&&s.jsx("a",{className:"text-primary hover:underline",href:Zt(n.application.id,n.environment.id,r.id,{view:1}),children:"View"}),s.jsx("a",{className:"text-primary hover:underline",href:Zt(n.application.id,n.environment.id,r.id),children:"Download"})]})}]})})]}),e[166]=n.application.id,e[167]=n.environment.id,e[168]=t.attachments,e[169]=Me):Me=e[169];let Re;e[170]!==Le||e[171]!==Ae||e[172]!==Me?(Re=s.jsxs("div",{className:"space-y-6 lg:col-span-2",children:[Le,Ae,Me]}),e[170]=Le,e[171]=Ae,e[172]=Me,e[173]=Re):Re=e[173];const gs="space-y-6",Vt=t.detection?"hidden":void 0;let yt;e[174]===Symbol.for("react.memo_cache_sentinel")?(yt=s.jsx(d,{children:s.jsx(m,{children:"Daily (30d)"})}),e[174]=yt):yt=e[174];const js=t.daily;let vt,bt,Nt;e[175]===Symbol.for("react.memo_cache_sentinel")?(vt=s.jsx(cs,{vertical:!1}),bt=s.jsx(os,{dataKey:"day",tickLine:!1,axisLine:!1,minTickGap:24,tickFormatter:An}),Nt=s.jsx(ds,{width:28,tickLine:!1,axisLine:!1,allowDecimals:!1}),e[175]=vt,e[176]=bt,e[177]=Nt):(vt=e[175],bt=e[176],Nt=e[177]);let kt,wt;e[178]===Symbol.for("react.memo_cache_sentinel")?(kt=s.jsx(ms,{content:s.jsx(us,{labelFormatter:Tn})}),wt=s.jsx(fs,{dataKey:"count",fill:"var(--color-count)",radius:2}),e[178]=kt,e[179]=wt):(kt=e[178],wt=e[179]);let ze;e[180]!==t.deploys?(ze=t.deploys.map(In),e[180]=t.deploys,e[181]=ze):ze=e[181];let De;e[182]!==t.daily||e[183]!==ze?(De=s.jsx(o,{children:s.jsx(hs,{config:Zs,className:"h-40 w-full",children:s.jsxs(xs,{data:js,children:[vt,bt,Nt,kt,wt,ze]})})}),e[182]=t.daily,e[183]=ze,e[184]=De):De=e[184];let Fe;e[185]!==Vt||e[186]!==De?(Fe=s.jsxs(c,{className:Vt,children:[yt,De]}),e[185]=Vt,e[186]=De,e[187]=Fe):Fe=e[187];const Gt=t.detection?"hidden":void 0;let St;e[188]===Symbol.for("react.memo_cache_sentinel")?(St=s.jsx(d,{children:s.jsx(m,{children:"Grouping"})}),e[188]=St):St=e[188];let Be;e[189]!==t.fingerprint?(Be=t.fingerprint.length>0&&s.jsx("div",{className:"flex flex-wrap gap-1",children:t.fingerprint.map(Ln)}),e[189]=t.fingerprint,e[190]=Be):Be=e[190];const Ut=tn[t.fingerprint_source??"default"]??`Fingerprint from ${t.fingerprint_source}.`;let Ee;e[191]!==Ut?(Ee=s.jsx("p",{className:"text-muted-foreground text-xs",children:Ut}),e[191]=Ut,e[192]=Ee):Ee=e[192];let Pe;e[193]!==l||e[194]!==t.distinct_messages||e[195]!==t.top_messages?(Pe=t.distinct_messages>1&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"space-y-1",children:t.top_messages.map($n)}),s.jsxs(O,{size:"sm",variant:"outline",onClick:()=>l("split",{by:"message"}),children:[s.jsx(Ys,{className:"size-3.5"}),"Split into ",t.distinct_messages," issues"]})]}),e[193]=l,e[194]=t.distinct_messages,e[195]=t.top_messages,e[196]=Pe):Pe=e[196];let Oe;e[197]!==Be||e[198]!==Ee||e[199]!==Pe?(Oe=s.jsxs(o,{className:"space-y-3",children:[Be,Ee,Pe]}),e[197]=Be,e[198]=Ee,e[199]=Pe,e[200]=Oe):Oe=e[200];let Ke;e[201]!==Gt||e[202]!==Oe?(Ke=s.jsxs(c,{className:Gt,children:[St,Oe]}),e[201]=Gt,e[202]=Oe,e[203]=Ke):Ke=e[203];let Ve;e[204]!==t.related_issues?(Ve=t.related_issues.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Related issues"})}),s.jsx(o,{className:"space-y-2",children:t.related_issues.map(Cn)})]}),e[204]=t.related_issues,e[205]=Ve):Ve=e[205];let Ge;e[206]!==t.merged_issues?(Ge=t.merged_issues.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Merged issues"})}),s.jsx(o,{className:"space-y-2",children:t.merged_issues.map(Sn)})]}),e[206]=t.merged_issues,e[207]=Ge):Ge=e[207];let Ue;e[208]!==t.alerts?(Ue=t.alerts.length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"Alerts"})}),s.jsx(o,{className:"space-y-2",children:t.alerts.map(wn)})]}),e[208]=t.alerts,e[209]=Ue):Ue=e[209];let Ct;e[210]===Symbol.for("react.memo_cache_sentinel")?(Ct=s.jsx(d,{children:s.jsx(m,{children:"By deploy"})}),e[210]=Ct):Ct=e[210];let He;e[211]!==t.by_deploy?(He=Object.entries(t.by_deploy),e[211]=t.by_deploy,e[212]=He):He=e[212];let $t;e[213]===Symbol.for("react.memo_cache_sentinel")?($t=[{key:"d",header:"Deploy",cell:Nn},{key:"n",header:"Count",align:"right",cell:bn}],e[213]=$t):$t=e[213];let qe;e[214]!==He?(qe=s.jsxs(c,{children:[Ct,s.jsx(o,{children:s.jsx(nt,{rows:He,rowKey:kn,columns:$t})})]}),e[214]=He,e[215]=qe):qe=e[215];let Je;e[216]!==t.by_tenant?(Je=Object.keys(t.by_tenant).length>0&&s.jsxs(c,{children:[s.jsx(d,{children:s.jsx(m,{children:"By tenant"})}),s.jsx(o,{children:s.jsx(nt,{rows:Object.entries(t.by_tenant),rowKey:vn,columns:[{key:"t",header:"Tenant",cell:yn},{key:"n",header:"Count",align:"right",cell:_n}]})})]}),e[216]=t.by_tenant,e[217]=Je):Je=e[217];const Ht=c;let Qe;e[218]===Symbol.for("react.memo_cache_sentinel")?(Qe=s.jsx(d,{children:s.jsx(m,{children:"Activity"})}),e[218]=Qe):Qe=e[218];const qt=o,_s="space-y-3",Jt=t.activities.map(r=>{const F=r.data.source==="linear",ot=typeof r.data.author_name=="string"?r.data.author_name:"Linear",Tt=r.user?.name??(F?ot:"System");return s.jsxs("div",{className:"flex gap-2 text-sm",children:[s.jsx(Rs,{className:"size-6",children:s.jsx(zs,{className:"text-[10px]",children:r.user||F?ct(Tt):"sys"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"text-xs",children:[s.jsx("span",{className:"font-medium",children:Tt})," ",s.jsx("span",{className:"text-muted-foreground",children:nn(r,V)})," ",s.jsx(ls,{iso:r.created_at,className:"text-muted-foreground"})]}),r.kind==="comment"&&s.jsx("div",{className:"mt-0.5 whitespace-pre-wrap",children:String(r.data.body)})]})]},r.id)});let We;e[219]!==n.id?(We=vs(n.id),e[219]=n.id,e[220]=We):We=e[220];let Lt;e[221]===Symbol.for("react.memo_cache_sentinel")?(Lt={preserveScroll:!0},e[221]=Lt):Lt=e[221];let Xe;e[222]!==We?(Xe=s.jsx(ks,{method:"post",action:We,options:Lt,resetOnSuccess:!0,className:"space-y-2",children:jn}),e[222]=We,e[223]=Xe):Xe=e[223];let Ye;e[224]!==qt||e[225]!==Jt||e[226]!==Xe?(Ye=s.jsxs(qt,{className:_s,children:[Jt,Xe]}),e[224]=qt,e[225]=Jt,e[226]=Xe,e[227]=Ye):Ye=e[227];let Ze;e[228]!==Ht||e[229]!==Qe||e[230]!==Ye?(Ze=s.jsxs(Ht,{children:[Qe,Ye]}),e[228]=Ht,e[229]=Qe,e[230]=Ye,e[231]=Ze):Ze=e[231];let et;e[232]!==qe||e[233]!==Je||e[234]!==Ze||e[235]!==Fe||e[236]!==Ke||e[237]!==Ve||e[238]!==Ge||e[239]!==Ue?(et=s.jsxs("div",{className:gs,children:[Fe,Ke,Ve,Ge,Ue,qe,Je,Ze]}),e[232]=qe,e[233]=Je,e[234]=Ze,e[235]=Fe,e[236]=Ke,e[237]=Ve,e[238]=Ge,e[239]=Ue,e[240]=et):et=e[240];let tt;e[241]!==et||e[242]!==Re?(tt=s.jsxs("div",{className:ps,children:[Re,et]}),e[241]=et,e[242]=Re,e[243]=tt):tt=e[243];let st;e[244]!==tt||e[245]!==ce||e[246]!==oe||e[247]!==he||e[248]!==$e?(st=s.jsxs("div",{className:H,children:[ce,oe,he,$e,tt]}),e[244]=tt,e[245]=ce,e[246]=oe,e[247]=he,e[248]=$e,e[249]=st):st=e[249];let It;return e[250]!==z||e[251]!==h||e[252]!==st||e[253]!==D?(It=s.jsxs(z,{breadcrumbs:D,children:[h,st]}),e[250]=z,e[251]=h,e[252]=st,e[253]=D,e[254]=It):It=e[254],It}function jn(t){const{processing:e}=t;return s.jsxs(s.Fragment,{children:[s.jsx(Vs,{name:"body",placeholder:"Add a comment…",required:!0,rows:3}),s.jsx(O,{size:"sm",disabled:e,children:"Comment"})]})}function _n(t){const[,e]=t;return e}function yn(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e})}function vn(t){const[e]=t;return e}function bn(t){const[,e]=t;return e}function Nn(t){const[e]=t;return s.jsx("span",{className:"font-mono text-xs",children:e??"unknown"})}function kn(t){const[e]=t;return e??"none"}function wn(t){return s.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",title:t.error??void 0,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ut,{variant:t.status==="failed"?"destructive":"outline",className:"capitalize",children:t.status}),s.jsxs("span",{children:[t.event," via ",t.integration.name]}),s.jsx(ls,{iso:t.sent_at,className:"text-muted-foreground"})]}),t.error&&s.jsx("span",{className:"text-destructive",children:t.error})]},t.id)}function Sn(t){return s.jsxs(Mt,{href:mt(t.id),className:"hover:bg-muted/60 -mx-2 flex flex-col rounded px-2 py-1 text-xs",children:[s.jsx("span",{className:"font-mono font-semibold",children:t.key}),s.jsx("span",{className:"text-muted-foreground line-clamp-1",children:t.title})]},t.id)}function Cn(t){return s.jsxs(Mt,{href:mt(t.id),className:"hover:bg-muted/60 -mx-2 flex flex-col rounded px-2 py-1 text-xs",children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"font-mono font-semibold",children:t.key}),s.jsx(as,{status:t.status})]}),s.jsx("span",{className:"text-muted-foreground line-clamp-1",children:t.title}),s.jsx("span",{className:"text-muted-foreground",children:t.environment.name})]},t.id)}function $n(t){return s.jsxs("div",{className:"flex items-start justify-between gap-2 text-xs",children:[s.jsx("span",{className:"line-clamp-1 font-mono",children:t.message}),s.jsx("span",{className:"text-muted-foreground",children:Rt(t.count)})]},t.message)}function Ln(t,e){return s.jsx("span",{className:"bg-muted rounded px-1.5 py-0.5 font-mono text-[11px] break-all",children:t},`${e}-${t}`)}function In(t){return s.jsx(Ks,{x:t.at.slice(0,10),stroke:"var(--muted-foreground)",strokeDasharray:"3 3",label:{value:t.ref,position:"insideTopRight",fontSize:10}},t.deploy)}function Tn(t){return String(t)}function An(t){return new Date(t).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Mn(t){return Us(t.bytes)}function Rn(t){return s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.execution_preview??"–"})}function zn(t){return s.jsxs("span",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"truncate font-mono text-xs",children:t.name}),t.truncated&&s.jsx(ut,{variant:"secondary",children:"truncated"})]})}function Dn(t){return t.id}function Fn(t){return t.handled?s.jsx(ut,{variant:"secondary",children:"handled"}):null}function Bn(t){return s.jsx("span",{className:"font-mono text-xs",children:t.deploy?.slice(0,10)})}function En(t){return s.jsx("span",{className:"font-mono text-xs",children:t.tenant??""})}function Pn(t){return s.jsx("span",{className:"font-mono text-xs",children:t.user_ref??""})}function On(t){return s.jsxs("span",{className:"font-mono text-xs",children:[t.execution_source," ",t.execution_preview]})}function Kn(t){return s.jsx("span",{className:"text-xs",children:rt(t.occurred_at)})}function Vn(t){return t.id}function Gn(t){return s.jsx(Yt,{value:String(t.id),children:t.name},t.id)}function Un(t){return s.jsx(Yt,{value:t,children:t},t)}function Hn(t){if(!t.ok)throw new Error(`HTTP ${t.status}`);return t.json()}function qn(t){return[t.id,t.name]}export{vi as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as y,j as a,c as Ce,C as Qe,u as vt,L as qe,G as yt,I as mt,J as kt,K as Nt,i as wt}from"./inertia-
|
|
2
|
-
`)}function ba(t){const e=Ce.c(244),{environment:i,range:c,window:o}=vt().props,r=i.application_id,l=i.id,s=t.execution,n=s.detail;let f;e[0]!==n.headers?(f=n.headers??{},e[0]=n.headers,e[1]=f):f=e[1];const g=f,m=n.inertia,[,d]=gt(),[x,dt]=y.useState(!1),jt=s.name,We=us[s.kind]??s.kind;let N;e[2]!==We?(N={title:We,href:"#"},e[2]=We,e[3]=N):N=e[3];let w;e[4]!==s.name?(w={title:s.name,href:"#"},e[4]=s.name,e[5]=w):w=e[5];let T;e[6]!==N||e[7]!==w?(T=[N,w],e[6]=N,e[7]=w,e[8]=T):T=e[8];let q;e[9]!==s.outcome||e[10]!==s.status?(q=a.jsx(Ge,{status:s.status,outcome:s.outcome}),e[9]=s.outcome,e[10]=s.status,e[11]=q):q=e[11];let C;e[12]!==s.name?(C=a.jsx("span",{className:"font-mono",children:s.name}),e[12]=s.name,e[13]=C):C=e[13];let S;e[14]!==s.profiled?(S=s.profiled&&a.jsx(it,{variant:"secondary",className:"font-mono",children:"profiled"}),e[14]=s.profiled,e[15]=S):S=e[15];let $;e[16]!==q||e[17]!==C||e[18]!==S?($=a.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[q,C,S]}),e[16]=q,e[17]=C,e[18]=S,e[19]=$):$=e[19];let I;e[20]!==s.occurred_at?(I=Gt(s.occurred_at),e[20]=s.occurred_at,e[21]=I):I=e[21];let E;e[22]!==I?(E=a.jsx("span",{children:I}),e[22]=I,e[23]=E):E=e[23];let P;e[24]!==s.server?(P=s.server&&a.jsxs("span",{children:["server ",s.server]}),e[24]=s.server,e[25]=P):P=e[25];let z;e[26]!==s.deploy?(z=s.deploy&&a.jsxs("span",{children:["deploy ",s.deploy.slice(0,12)]}),e[26]=s.deploy,e[27]=z):z=e[27];let A;e[28]!==r||e[29]!==l||e[30]!==t.person||e[31]!==c||e[32]!==o||e[33]!==s.tenant||e[34]!==s.user_ref?(A=s.user_ref&&a.jsxs("span",{className:"inline-flex items-center gap-1",children:["origin user",a.jsx(ft,{applicationId:r,environmentId:l,kind:"user",range:c,window:o,user_ref:s.user_ref,tenant:s.tenant,person:t.person&&{ref:t.person.ref,name:t.person.name??t.person.ref}})]}),e[28]=r,e[29]=l,e[30]=t.person,e[31]=c,e[32]=o,e[33]=s.tenant,e[34]=s.user_ref,e[35]=A):A=e[35];let R;e[36]!==r||e[37]!==l||e[38]!==c||e[39]!==o||e[40]!==s.tenant||e[41]!==s.user_ref?(R=s.tenant&&a.jsxs("span",{className:"inline-flex items-center gap-1",children:["origin tenant",a.jsx(ft,{applicationId:r,environmentId:l,kind:"tenant",range:c,window:o,user_ref:s.user_ref,tenant:s.tenant,person:null})]}),e[36]=r,e[37]=l,e[38]=c,e[39]=o,e[40]=s.tenant,e[41]=s.user_ref,e[42]=R):R=e[42];let L;e[43]!==E||e[44]!==P||e[45]!==z||e[46]!==A||e[47]!==R?(L=a.jsxs("span",{className:"flex flex-wrap gap-x-3 text-xs",children:[E,P,z,A,R]}),e[43]=E,e[44]=P,e[45]=z,e[46]=A,e[47]=R,e[48]=L):L=e[48];let M;e[49]!==d||e[50]!==t||e[51]!==s?(M=()=>{(async()=>await d(fs(t,s))&&(dt(!0),setTimeout(()=>dt(!1),1200)))()},e[49]=d,e[50]=t,e[51]=s,e[52]=M):M=e[52];let D;e[53]!==x?(D=x?a.jsx(xt,{className:"size-3.5"}):a.jsx(qt,{className:"size-3.5"}),e[53]=x,e[54]=D):D=e[54];let F;e[55]!==M||e[56]!==D?(F=a.jsxs(Rt,{type:"button",variant:"outline",size:"sm",onClick:M,children:[D,"Copy as Markdown"]}),e[55]=M,e[56]=D,e[57]=F):F=e[57];let O;e[58]!==L||e[59]!==F||e[60]!==$?(O=a.jsx(St,{withWindow:!1,title:$,description:L,actions:F}),e[58]=L,e[59]=F,e[60]=$,e[61]=O):O=e[61];let V;e[62]!==t.issues?(V=t.issues.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2",children:t.issues.map(Bs)}),e[62]=t.issues,e[63]=V):V=e[63];let B;e[64]!==s.duration?(B=h(s.duration),e[64]=s.duration,e[65]=B):B=e[65];let K;e[66]!==s.queue_latency?(K=s.queue_latency!=null?`queued ${h(s.queue_latency)}`:void 0,e[66]=s.queue_latency,e[67]=K):K=e[67];let J;e[68]!==B||e[69]!==K?(J=a.jsx(k,{label:"Duration",value:B,hint:K}),e[68]=B,e[69]=K,e[70]=J):J=e[70];const Ue=s.counters.queries??0,Xe=`${s.counters.cached_queries??0} cached · ${s.counters.hydrated_models??0} models`;let G;e[71]!==Ue||e[72]!==Xe?(G=a.jsx(k,{label:"Queries",value:Ue,hint:Xe}),e[71]=Ue,e[72]=Xe,e[73]=G):G=e[73];let Q;e[74]!==s.queue_time?(Q=s.queue_time!=null&&a.jsx(k,{label:"Queue time",value:h(s.queue_time)}),e[74]=s.queue_time,e[75]=Q):Q=e[75];const Ye=s.counters.cache_events??0;let H;e[76]!==Ye?(H=a.jsx(k,{label:"Cache",value:Ye}),e[76]=Ye,e[77]=H):H=e[77];const Ze=s.counters.outgoing_requests??0,et=`${s.counters.jobs_enqueued??0} jobs enqueued · ${s.counters.mail??0} mail`;let W;e[78]!==Ze||e[79]!==et?(W=a.jsx(k,{label:"Outgoing",value:Ze,hint:et}),e[78]=Ze,e[79]=et,e[80]=W):W=e[80];let U;e[81]!==s.allocations?(U=pt(s.allocations),e[81]=s.allocations,e[82]=U):U=e[82];let X;e[83]!==s.peak_memory?(X=s.peak_memory?`RSS ${_t(s.peak_memory)}`:void 0,e[83]=s.peak_memory,e[84]=X):X=e[84];let Y;e[85]!==U||e[86]!==X?(Y=a.jsx(k,{label:"Allocations",value:U,hint:X}),e[85]=U,e[86]=X,e[87]=Y):Y=e[87];const tt=s.counters.exceptions??0,st=s.counters.exceptions?"destructive":void 0,at=s.counters.lazy_loads?`${s.counters.lazy_loads} lazy loads`:void 0;let Z;e[88]!==tt||e[89]!==st||e[90]!==at?(Z=a.jsx(k,{label:"Exceptions",value:tt,tone:st,hint:at}),e[88]=tt,e[89]=st,e[90]=at,e[91]=Z):Z=e[91];let ee;e[92]!==J||e[93]!==G||e[94]!==Q||e[95]!==H||e[96]!==W||e[97]!==Y||e[98]!==Z?(ee=a.jsxs(Pt,{children:[J,G,Q,H,W,Y,Z]}),e[92]=J,e[93]=G,e[94]=Q,e[95]=H,e[96]=W,e[97]=Y,e[98]=Z,e[99]=ee):ee=e[99];let te;e[100]!==r||e[101]!==l||e[102]!==t.trace||e[103]!==t.trace_url?(te=t.trace.length>1&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsxs(j,{className:"flex flex-wrap items-center justify-between gap-2",children:["Trace",t.trace_url&&a.jsx(qe,{href:t.trace_url,className:"text-primary text-xs font-normal hover:underline",children:"View distributed trace"})]})}),a.jsx(v,{children:a.jsx("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:t.trace.map((u,p)=>{const Te=Math.max(...t.trace.map(Vs),1);return a.jsxs("span",{className:"flex items-center gap-2",children:[p>0&&a.jsx("span",{className:"text-muted-foreground",children:"→"}),a.jsxs(qe,{href:Jt({applicationId:r,environmentId:l,source:u.kind,executionId:u.execution_id}),className:u.current?"bg-muted flex items-center gap-1.5 rounded px-2 py-1 font-semibold":"hover:bg-muted flex items-center gap-1.5 rounded px-2 py-1",children:[a.jsx(Ge,{status:u.status,outcome:u.outcome})," ",a.jsx("span",{className:"font-mono",children:u.name}),a.jsx("span",{className:"bg-muted-foreground/25 relative h-1.5 w-10 overflow-hidden rounded-full",children:a.jsx("span",{className:"bg-primary absolute inset-y-0 left-0 rounded-full",style:{width:`${Math.max(4,u.duration/Te*100)}%`}})}),a.jsx("span",{className:"text-muted-foreground",children:h(u.duration)})]})]},u.execution_id)})})})]}),e[100]=r,e[101]=l,e[102]=t.trace,e[103]=t.trace_url,e[104]=te):te=e[104];let se;if(e[105]!==t.exceptions||e[106]!==t.execution){let u;e[108]!==t.execution?(u=p=>a.jsxs(_,{className:"border-destructive/40",children:[a.jsx(b,{children:a.jsx(j,{children:"Exception"})}),a.jsx(v,{children:a.jsx(Ct,{exception:p,deploy:t.execution.deploy})})]},p.id),e[108]=t.execution,e[109]=u):u=e[109],se=t.exceptions.map(u),e[105]=t.exceptions,e[106]=t.execution,e[107]=se}else se=e[107];let Ie;e[110]===Symbol.for("react.memo_cache_sentinel")?(Ie=a.jsx(b,{children:a.jsx(j,{children:"Timeline"})}),e[110]=Ie):Ie=e[110];let ae;e[111]!==t.timeline||e[112]!==s.duration||e[113]!==s.stages?(ae=a.jsxs(_,{children:[Ie,a.jsx(v,{children:a.jsx(It,{entries:t.timeline,total:s.duration,stages:s.stages})})]}),e[111]=t.timeline,e[112]=s.duration,e[113]=s.stages,e[114]=ae):ae=e[114];let ne;e[115]!==t.spans?(ne=t.spans.length>0&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsx(j,{children:"Spans"})}),a.jsx(v,{children:a.jsx($e,{rows:t.spans,rowKey:Os,columns:[{key:"off",header:"+ms",align:"right",cell:Fs},{key:"name",header:"Span",cell:Ds},{key:"status",header:"Status",cell:Ms},{key:"attrs",header:"Attributes",cell:Rs},{key:"dur",header:"Duration",align:"right",cell:As}]})})]}),e[115]=t.spans,e[116]=ne):ne=e[116];let re;e[117]!==r||e[118]!==l||e[119]!==t.profile?(re=t.profile&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsxs(j,{className:"flex flex-wrap items-center justify-between gap-2",children:["Profile",a.jsx(qe,{href:yt(r,l,t.profile.id),className:"text-primary text-xs font-normal hover:underline",children:"Open full profile"})]})}),a.jsxs(v,{className:"space-y-2",children:[a.jsxs("p",{className:"text-muted-foreground font-mono text-[11px]",children:[t.profile.profiler,t.profile.mode?` · ${t.profile.mode}`:""," ·"," ",pt(t.profile.samples)," samples · ",h(t.profile.duration),t.profile.truncated&&" · truncated for this page"]}),a.jsx(Tt,{collapsed:t.profile.collapsed})]})]}),e[117]=r,e[118]=l,e[119]=t.profile,e[120]=re):re=e[120];let ie;e[121]!==r||e[122]!==l||e[123]!==t.attachments?(ie=t.attachments.length>0&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsx(j,{children:"Attachments"})}),a.jsx(v,{children:a.jsx($e,{rows:t.attachments,rowKey:zs,columns:[{key:"name",header:"Name",className:"max-w-0",cell:Ps},{key:"type",hideOnMobile:!0,header:"Type",cell:Es},{key:"size",header:"Size",align:"right",cell:Is},{key:"links",header:"",align:"right",cell:u=>a.jsxs("span",{className:"flex justify-end gap-3",children:[u.viewable&&a.jsx("a",{className:"text-primary hover:underline",href:mt(r,l,u.id,{view:1}),children:"View"}),a.jsx("a",{className:"text-primary hover:underline",href:mt(r,l,u.id),children:"Download"})]})}]})})]}),e[121]=r,e[122]=l,e[123]=t.attachments,e[124]=ie):ie=e[124];let oe;e[125]!==t.queries.length?(oe=a.jsxs(Ke,{value:"queries",children:["Queries (",t.queries.length,")"]}),e[125]=t.queries.length,e[126]=oe):oe=e[126];let le;e[127]!==t.logs.length?(le=a.jsxs(Ke,{value:"logs",children:["Logs (",t.logs.length,")"]}),e[127]=t.logs.length,e[128]=le):le=e[128];let ce;e[129]!==t.enqueued_jobs.length?(ce=a.jsxs(Ke,{value:"jobs",children:["Enqueued jobs (",t.enqueued_jobs.length,")"]}),e[129]=t.enqueued_jobs.length,e[130]=ce):ce=e[130];let Ee;e[131]===Symbol.for("react.memo_cache_sentinel")?(Ee=a.jsx(Ke,{value:"request",children:"Details"}),e[131]=Ee):Ee=e[131];let ue;e[132]!==oe||e[133]!==le||e[134]!==ce?(ue=a.jsxs(cs,{children:[oe,le,ce,Ee]}),e[132]=oe,e[133]=le,e[134]=ce,e[135]=ue):ue=e[135];let Pe;e[136]===Symbol.for("react.memo_cache_sentinel")?(Pe={key:"off",header:"+ms",align:"right",cell:Ss},e[136]=Pe):Pe=e[136];let de;e[137]!==r||e[138]!==l?(de={key:"sql",header:"SQL",cell:u=>a.jsx(qe,{href:kt(r,l,u.group_hash),children:a.jsx(Et,{sql:u.sql,className:"hover:underline"})})},e[137]=r,e[138]=l,e[139]=de):de=e[139];let ze,Ae,Re;e[140]===Symbol.for("react.memo_cache_sentinel")?(ze={key:"rows",header:"Rows",align:"right",cell:Cs},Ae={key:"src",header:"Source",cell:qs},Re={key:"dur",header:"Duration",align:"right",cell:Ts},e[140]=ze,e[141]=Ae,e[142]=Re):(ze=e[140],Ae=e[141],Re=e[142]);let me;e[143]!==de?(me=[Pe,de,ze,Ae,Re],e[143]=de,e[144]=me):me=e[144];let fe;e[145]!==t.queries||e[146]!==me?(fe=a.jsx(Je,{value:"queries",children:a.jsx($e,{rows:t.queries,rowKey:$s,empty:"No queries.",columns:me})}),e[145]=t.queries,e[146]=me,e[147]=fe):fe=e[147];let Le;e[148]===Symbol.for("react.memo_cache_sentinel")?(Le=[{key:"lvl",header:"Level",cell:Ns},{key:"msg",header:"Message",cell:ks},{key:"tags",header:"Tags",cell:ys},{key:"stage",header:"Stage",cell:vs}],e[148]=Le):Le=e[148];let pe;e[149]!==t.logs?(pe=a.jsx(Je,{value:"logs",children:a.jsx($e,{rows:t.logs,rowKey:ws,empty:"No logs.",columns:Le})}),e[149]=t.logs,e[150]=pe):pe=e[150];let Me,De,Fe;e[151]===Symbol.for("react.memo_cache_sentinel")?(Me={key:"name",header:"Job",cell:bs},De={key:"queue",header:"Queue",cell:_s},Fe={key:"id",header:"Job id",cell:gs},e[151]=Me,e[152]=De,e[153]=Fe):(Me=e[151],De=e[152],Fe=e[153]);let xe;e[154]!==r||e[155]!==l?(xe=[Me,De,Fe,{key:"attempt",header:"Attempt",cell:u=>u.attempt_execution_id?a.jsx(qe,{className:"hover:underline",href:Nt(r,l,u.attempt_execution_id),children:a.jsx(Ge,{outcome:u.attempt_outcome})}):a.jsx("span",{className:"text-muted-foreground text-xs",children:"not seen yet"})}],e[154]=r,e[155]=l,e[156]=xe):xe=e[156];let he;e[157]!==t.enqueued_jobs||e[158]!==xe?(he=a.jsx(Je,{value:"jobs",children:a.jsx($e,{rows:t.enqueued_jobs,rowKey:js,empty:"No jobs enqueued.",columns:xe})}),e[157]=t.enqueued_jobs,e[158]=xe,e[159]=he):he=e[159];let Oe;e[160]===Symbol.for("react.memo_cache_sentinel")?(Oe=a.jsx(b,{children:a.jsx(j,{children:"Execution"})}),e[160]=Oe):Oe=e[160];let ge;if(e[161]!==n.arguments_preview||e[162]!==n.db_runtime||e[163]!==n.format||e[164]!==n.halted_callback||e[165]!==n.ip||e[166]!==n.redirect_to||e[167]!==n.schedule||e[168]!==n.url||e[169]!==n.user_agent||e[170]!==n.view_runtime||e[171]!==s.action||e[172]!==s.attempt||e[173]!==s.controller||e[174]!==s.execution_id||e[175]!==s.inertia_component||e[176]!==s.job_id||e[177]!==s.kind||e[178]!==s.queue||e[179]!==s.route||e[180]!==s.task_key||e[181]!==s.trace_id){const u=s.controller&&`${s.controller}#${s.action}`;let p;e[183]!==n.arguments_preview?(p=Array.isArray(n.arguments_preview)?n.arguments_preview.join(", "):void 0,e[183]=n.arguments_preview,e[184]=p):p=e[184];let Te;e[185]!==n.db_runtime||e[186]!==n.format||e[187]!==n.halted_callback||e[188]!==n.ip||e[189]!==n.redirect_to||e[190]!==n.schedule||e[191]!==n.url||e[192]!==n.user_agent||e[193]!==n.view_runtime||e[194]!==u||e[195]!==p||e[196]!==s.attempt||e[197]!==s.execution_id||e[198]!==s.inertia_component||e[199]!==s.job_id||e[200]!==s.kind||e[201]!==s.queue||e[202]!==s.route||e[203]!==s.task_key||e[204]!==s.trace_id?(Te={kind:s.kind,trace_id:s.trace_id,execution_id:s.execution_id,controller:u,route:s.route,url:n.url,ip:n.ip,format:n.format,queue:s.queue,attempt:s.attempt,job_id:s.job_id,task_key:s.task_key,schedule:n.schedule,inertia_component:s.inertia_component,redirect_to:n.redirect_to,halted_callback:n.halted_callback,view_runtime:n.view_runtime,db_runtime:n.db_runtime,user_agent:n.user_agent,arguments:p},e[185]=n.db_runtime,e[186]=n.format,e[187]=n.halted_callback,e[188]=n.ip,e[189]=n.redirect_to,e[190]=n.schedule,e[191]=n.url,e[192]=n.user_agent,e[193]=n.view_runtime,e[194]=u,e[195]=p,e[196]=s.attempt,e[197]=s.execution_id,e[198]=s.inertia_component,e[199]=s.job_id,e[200]=s.kind,e[201]=s.queue,e[202]=s.route,e[203]=s.task_key,e[204]=s.trace_id,e[205]=Te):Te=e[205],ge=a.jsx("dl",{className:"grid gap-y-1 text-xs sm:grid-cols-[10rem_1fr]",children:Object.entries(Te).filter(hs).map(xs)}),e[161]=n.arguments_preview,e[162]=n.db_runtime,e[163]=n.format,e[164]=n.halted_callback,e[165]=n.ip,e[166]=n.redirect_to,e[167]=n.schedule,e[168]=n.url,e[169]=n.user_agent,e[170]=n.view_runtime,e[171]=s.action,e[172]=s.attempt,e[173]=s.controller,e[174]=s.execution_id,e[175]=s.inertia_component,e[176]=s.job_id,e[177]=s.kind,e[178]=s.queue,e[179]=s.route,e[180]=s.task_key,e[181]=s.trace_id,e[182]=ge}else ge=e[182];let _e;e[206]!==m?(_e=m&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:m})}),e[206]=m,e[207]=_e):_e=e[207];let be;e[208]!==n.context?(be=n.context&&n.context!=="{}"&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:ms(n.context)})}),e[208]=n.context,e[209]=be):be=e[209];let je;e[210]!==ge||e[211]!==_e||e[212]!==be?(je=a.jsxs(_,{children:[Oe,a.jsxs(v,{children:[ge,_e,be]})]}),e[210]=ge,e[211]=_e,e[212]=be,e[213]=je):je=e[213];let Ve;e[214]===Symbol.for("react.memo_cache_sentinel")?(Ve=a.jsx(b,{children:a.jsx(j,{children:"Headers"})}),e[214]=Ve):Ve=e[214];let ve;e[215]!==g?(ve=a.jsx("dl",{className:"grid gap-y-1 text-xs sm:grid-cols-[12rem_1fr]",children:Object.entries(g).map(ps)}),e[215]=g,e[216]=ve):ve=e[216];let ye;e[217]!==n.payload?(ye=n.payload!=null&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:n.payload})}),e[217]=n.payload,e[218]=ye):ye=e[218];let ke;e[219]!==ve||e[220]!==ye?(ke=a.jsxs(_,{children:[Ve,a.jsxs(v,{children:[ve,ye]})]}),e[219]=ve,e[220]=ye,e[221]=ke):ke=e[221];let Ne;e[222]!==je||e[223]!==ke?(Ne=a.jsx(Je,{value:"request",children:a.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[je,ke]})}),e[222]=je,e[223]=ke,e[224]=Ne):Ne=e[224];let we;e[225]!==ue||e[226]!==fe||e[227]!==pe||e[228]!==he||e[229]!==Ne?(we=a.jsxs(os,{defaultValue:"queries",children:[ue,fe,pe,he,Ne]}),e[225]=ue,e[226]=fe,e[227]=pe,e[228]=he,e[229]=Ne,e[230]=we):we=e[230];let Be;return e[231]!==O||e[232]!==V||e[233]!==ee||e[234]!==te||e[235]!==se||e[236]!==ae||e[237]!==ne||e[238]!==re||e[239]!==ie||e[240]!==T||e[241]!==we||e[242]!==s.name?(Be=a.jsxs($t,{title:jt,crumbs:T,children:[O,V,ee,te,se,ae,ne,re,ie,we]}),e[231]=O,e[232]=V,e[233]=ee,e[234]=te,e[235]=se,e[236]=ae,e[237]=ne,e[238]=re,e[239]=ie,e[240]=T,e[241]=we,e[242]=s.name,e[243]=Be):Be=e[243],Be}function ps(t){const[e,i]=t;return a.jsxs("div",{className:"contents",children:[a.jsx("dt",{className:"text-muted-foreground font-mono",children:e}),a.jsx("dd",{className:"font-mono break-all",children:i})]},e)}function xs(t){const[e,i]=t;return a.jsxs("div",{className:"contents",children:[a.jsx("dt",{className:"text-muted-foreground",children:e}),a.jsxs("dd",{className:"font-mono break-all",children:[String(i),(e==="trace_id"||e==="execution_id")&&a.jsx(ds,{value:String(i)})]})]},e)}function hs(t){const[,e]=t;return e!=null&&e!==""}function gs(t){return a.jsx("span",{className:"font-mono text-xs",children:t.job_id})}function _s(t){return t.queue}function bs(t){return a.jsx("span",{className:"font-mono text-xs",children:t.name})}function js(t){return t.id}function vs(t){return a.jsx("span",{className:"text-muted-foreground text-xs",children:t.stage??""})}function ys(t){return t.tags.join(" ")}function ks(t){return a.jsx("span",{className:"font-mono text-xs whitespace-pre-wrap",children:t.message})}function Ns(t){return a.jsx(zt,{level:t.level})}function ws(t){return t.id}function Ts(t){return h(t.duration,2)}function qs(t){return a.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source??""})}function Cs(t){return t.row_count??"–"}function Ss(t){return t.offset.toFixed(1)}function $s(t){return t.id}function Is(t){return _t(t.bytes)}function Es(t){return a.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.content_type??"–"})}function Ps(t){return a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:"truncate font-mono text-xs",children:t.name}),t.truncated&&a.jsx(it,{variant:"secondary",children:"truncated"})]})}function zs(t){return t.id}function As(t){return h(t.duration,2)}function Rs(t){return a.jsx("span",{className:"flex flex-wrap gap-1",children:Object.entries(t.attributes).map(Ls)})}function Ls(t){const[e,i]=t;return a.jsxs("span",{className:"bg-muted rounded-sm px-1.5 font-mono text-[10px]",children:[e,"=",String(i)]},e)}function Ms(t){return a.jsx(Ge,{outcome:t.status})}function Ds(t){return a.jsx("span",{className:"font-mono text-xs",children:t.name})}function Fs(t){return t.offset.toFixed(1)}function Os(t){return t.id}function Vs(t){return t.duration}function Bs(t){return a.jsx(qe,{href:wt(t.id),children:a.jsx(it,{variant:"destructive",className:"font-mono",children:t.key})},t.id)}export{ba as default};
|
|
1
|
+
import{r as y,j as a,c as Ce,C as Qe,u as vt,L as qe,G as yt,I as mt,J as kt,K as Nt,i as wt}from"./inertia-Degv_G9N.js";import{D as $e}from"./data-table-IvA7xvrK.js";import{F as Tt}from"./flamegraph-C-mZdqa7.js";import{C as qt,E as Ct}from"./frames-KZBsjg6-.js";import{J as nt}from"./json-viewer-DcQIxT86.js";import{O as ft}from"./origin-identity-CNhOnfBa.js";import{P as St,E as $t}from"./env-layout-erSDpIXg.js";import{T as It,S as Et}from"./timeline-DZz5ZnHN.js";import{S as k,a as Pt}from"./stat-TxvoBiC8.js";import{S as Ge,L as zt}from"./status-badge-5NCVJHjo.js";import{B as it}from"./badge-CApjyWcg.js";import{c as At,B as Rt}from"./app-wordmark-1SRllgHv.js";import{C as _,b,c as j,a as v}from"./card-BaJ8kNkp.js";import{c as Lt,u as Mt,a as rt,P as Dt,C as xt}from"./index-CX8Br7m9.js";import{c as ht,u as Ft,d as Ot,I as Vt}from"./app-layout-B5Fcdwfz.js";import{P as He}from"./index-B0VXzXYG.js";import{u as Bt}from"./live-dot-DaXEbkXo.js";import{u as gt,C as Kt}from"./use-clipboard-BLjjYH8V.js";import{e as Jt}from"./execution-path-Di5uUHi-.js";import{w as Gt,m as h,c as pt,b as _t}from"./format-B9SDkrWj.js";import"./chart-hover-XYPNE2CX.js";import"./empty-state-BFTnQ2oT.js";import"./segmented-CVKq2Xpa.js";import"./label-B_vK19tR.js";import"./source-link-B2183i2-.js";import"./tenant-path-B5ZRK4x3.js";import"./use-live-GKze1mNC.js";import"./arrow-up-DwKQcab4.js";import"./checkbox-Bf41R8W6.js";var Qt=Object.defineProperty,Se=(t,e)=>Qt(t,"name",{value:e,configurable:!0}),ot="Tabs",[Ht,ba]=Lt(ot,[ht]),bt=ht(),[Wt,lt]=Ht(ot),Ut=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,onValueChange:r,defaultValue:l,orientation:s="horizontal",dir:n,activationMode:f="automatic",...g}=e,m=Ft(n),[d,x]=Mt({prop:o,onChange:r,defaultProp:l??"",caller:ot});return a.jsx(Wt,{scope:c,baseId:Bt(),value:d,onValueChange:x,orientation:s,dir:m,activationMode:f,children:a.jsx(He.div,{dir:m,"data-orientation":s,...g,ref:i})})},"Tabs")),Xt="TabsList",Yt=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,loop:o=!0,...r}=e,l=lt(Xt,c),s=bt(c);return a.jsx(Ot,{asChild:!0,...s,orientation:l.orientation,dir:l.dir,loop:o,children:a.jsx(He.div,{role:"tablist","aria-orientation":l.orientation,...r,ref:i})})},"TabsList")),Zt="TabsTrigger",es=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,disabled:r=!1,...l}=e,s=lt(Zt,c),n=bt(c),f=ct(s.baseId,o),g=ut(s.baseId,o),m=o===s.value;return a.jsx(Vt,{asChild:!0,...n,focusable:!r,active:m,children:a.jsx(He.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":g,"data-state":m?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:f,...l,ref:i,onMouseDown:rt(e.onMouseDown,d=>{!r&&d.button===0&&d.ctrlKey===!1?s.onValueChange(o):d.preventDefault()}),onKeyDown:rt(e.onKeyDown,d=>{r||d.target!==d.currentTarget||[" ","Enter"].includes(d.key)&&s.onValueChange(o)}),onFocus:rt(e.onFocus,()=>{const d=s.activationMode!=="manual";!m&&!r&&d&&s.onValueChange(o)})})})},"TabsTrigger")),ts="TabsContent",ss=y.forwardRef(Se(function(e,i){const{__scopeTabs:c,value:o,forceMount:r,children:l,...s}=e,n=lt(ts,c),f=ct(n.baseId,o),g=ut(n.baseId,o),m=o===n.value,d=y.useRef(m);return y.useEffect(()=>{const x=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(x)},[]),a.jsx(Dt,{present:r||m,children:({present:x})=>a.jsx(He.div,{"data-state":m?"active":"inactive","data-orientation":n.orientation,role:"tabpanel","aria-labelledby":f,hidden:!x,id:g,tabIndex:0,...s,ref:i,style:{...e.style,animationDuration:d.current?"0s":void 0},children:x&&l})})},"TabsContent"));function ct(t,e){return`${t}-trigger-${e}`}Se(ct,"makeTriggerId");function ut(t,e){return`${t}-content-${e}`}Se(ut,"makeContentId");var as=Ut,ns=Yt,rs=es,is=ss;function os(t){const e=Ce.c(10);let i,c,o;e[0]!==t?({className:i,orientation:o,...c}=t,e[0]=t,e[1]=i,e[2]=c,e[3]=o):(i=e[1],c=e[2],o=e[3]);const r=o===void 0?"horizontal":o;let l;e[4]!==i?(l=Qe("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",i),e[4]=i,e[5]=l):l=e[5];let s;return e[6]!==r||e[7]!==c||e[8]!==l?(s=a.jsx(as,{"data-slot":"tabs","data-orientation":r,orientation:r,className:l,...c}),e[6]=r,e[7]=c,e[8]=l,e[9]=s):s=e[9],s}const ls=At("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function cs(t){const e=Ce.c(11);let i,c,o;e[0]!==t?({className:i,variant:o,...c}=t,e[0]=t,e[1]=i,e[2]=c,e[3]=o):(i=e[1],c=e[2],o=e[3]);const r=o===void 0?"default":o;let l;e[4]!==i||e[5]!==r?(l=Qe(ls({variant:r}),i),e[4]=i,e[5]=r,e[6]=l):l=e[6];let s;return e[7]!==c||e[8]!==l||e[9]!==r?(s=a.jsx(ns,{"data-slot":"tabs-list","data-variant":r,className:l,...c}),e[7]=c,e[8]=l,e[9]=r,e[10]=s):s=e[10],s}function Ke(t){const e=Ce.c(8);let i,c;e[0]!==t?({className:i,...c}=t,e[0]=t,e[1]=i,e[2]=c):(i=e[1],c=e[2]);let o;e[3]!==i?(o=Qe("text-foreground/60 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",i),e[3]=i,e[4]=o):o=e[4];let r;return e[5]!==c||e[6]!==o?(r=a.jsx(rs,{"data-slot":"tabs-trigger",className:o,...c}),e[5]=c,e[6]=o,e[7]=r):r=e[7],r}function Je(t){const e=Ce.c(8);let i,c;e[0]!==t?({className:i,...c}=t,e[0]=t,e[1]=i,e[2]=c):(i=e[1],c=e[2]);let o;e[3]!==i?(o=Qe("flex-1 outline-none",i),e[3]=i,e[4]=o):o=e[4];let r;return e[5]!==c||e[6]!==o?(r=a.jsx(is,{"data-slot":"tabs-content",className:o,...c}),e[5]=c,e[6]=o,e[7]=r):r=e[7],r}const us={request:"Request",job_attempt:"Job attempt",scheduled_task:"Scheduled task",command:"Command",channel_action:"Channel action"};function ds(t){const e=Ce.c(8),{value:i}=t,[,c]=gt(),[o,r]=y.useState(!1);let l;e[0]!==c||e[1]!==i?(l=()=>{(async()=>await c(i)&&(r(!0),setTimeout(()=>r(!1),1200)))()},e[0]=c,e[1]=i,e[2]=l):l=e[2];let s;e[3]!==o?(s=o?a.jsx(xt,{className:"size-3"}):a.jsx(Kt,{className:"size-3"}),e[3]=o,e[4]=s):s=e[4];let n;return e[5]!==l||e[6]!==s?(n=a.jsx("button",{type:"button",onClick:l,className:"hover:text-foreground text-muted-foreground ml-1 inline-flex align-middle",title:"Copy",children:s}),e[5]=l,e[6]=s,e[7]=n):n=e[7],n}function ms(t){try{return JSON.parse(String(t))}catch{return String(t)}}function fs(t,e){const i=[];i.push(`# ${e.name}`),i.push(""),i.push(`- status: ${e.status??e.outcome??"-"}`),i.push(`- duration: ${h(e.duration)}`),i.push(`- occurred_at: ${e.occurred_at}`),i.push(""),i.push("## Stages");for(const[o,r]of Object.entries(e.stages))i.push(`- ${o}: ${h(r)}`);i.push(""),i.push("## Counters");for(const[o,r]of Object.entries(e.counters))i.push(`- ${o}: ${r}`);if(t.exceptions.length>0){i.push(""),i.push("## Exceptions");for(const o of t.exceptions){i.push(`### ${o.class_name}: ${o.message}`);for(const r of o.frames.filter(l=>l.in_app))i.push(`- ${r.file}:${r.line} in \`${r.function}\``)}}const c=[...t.queries].sort((o,r)=>r.duration-o.duration).slice(0,5);if(c.length>0){i.push(""),i.push("## Slow queries");for(const o of c)i.push(`- ${h(o.duration,2)} — \`${o.sql}\``)}return i.join(`
|
|
2
|
+
`)}function ja(t){const e=Ce.c(244),{environment:i,range:c,window:o}=vt().props,r=i.application_id,l=i.id,s=t.execution,n=s.detail;let f;e[0]!==n.headers?(f=n.headers??{},e[0]=n.headers,e[1]=f):f=e[1];const g=f,m=n.inertia,[,d]=gt(),[x,dt]=y.useState(!1),jt=s.name,We=us[s.kind]??s.kind;let N;e[2]!==We?(N={title:We,href:"#"},e[2]=We,e[3]=N):N=e[3];let w;e[4]!==s.name?(w={title:s.name,href:"#"},e[4]=s.name,e[5]=w):w=e[5];let T;e[6]!==N||e[7]!==w?(T=[N,w],e[6]=N,e[7]=w,e[8]=T):T=e[8];let q;e[9]!==s.outcome||e[10]!==s.status?(q=a.jsx(Ge,{status:s.status,outcome:s.outcome}),e[9]=s.outcome,e[10]=s.status,e[11]=q):q=e[11];let C;e[12]!==s.name?(C=a.jsx("span",{className:"font-mono",children:s.name}),e[12]=s.name,e[13]=C):C=e[13];let S;e[14]!==s.profiled?(S=s.profiled&&a.jsx(it,{variant:"secondary",className:"font-mono",children:"profiled"}),e[14]=s.profiled,e[15]=S):S=e[15];let $;e[16]!==q||e[17]!==C||e[18]!==S?($=a.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[q,C,S]}),e[16]=q,e[17]=C,e[18]=S,e[19]=$):$=e[19];let I;e[20]!==s.occurred_at?(I=Gt(s.occurred_at),e[20]=s.occurred_at,e[21]=I):I=e[21];let E;e[22]!==I?(E=a.jsx("span",{children:I}),e[22]=I,e[23]=E):E=e[23];let P;e[24]!==s.server?(P=s.server&&a.jsxs("span",{children:["server ",s.server]}),e[24]=s.server,e[25]=P):P=e[25];let z;e[26]!==s.deploy?(z=s.deploy&&a.jsxs("span",{children:["deploy ",s.deploy.slice(0,12)]}),e[26]=s.deploy,e[27]=z):z=e[27];let A;e[28]!==r||e[29]!==l||e[30]!==t.person||e[31]!==c||e[32]!==o||e[33]!==s.tenant||e[34]!==s.user_ref?(A=s.user_ref&&a.jsxs("span",{className:"inline-flex items-center gap-1",children:["origin user",a.jsx(ft,{applicationId:r,environmentId:l,kind:"user",range:c,window:o,user_ref:s.user_ref,tenant:s.tenant,person:t.person&&{ref:t.person.ref,name:t.person.name??t.person.ref}})]}),e[28]=r,e[29]=l,e[30]=t.person,e[31]=c,e[32]=o,e[33]=s.tenant,e[34]=s.user_ref,e[35]=A):A=e[35];let R;e[36]!==r||e[37]!==l||e[38]!==c||e[39]!==o||e[40]!==s.tenant||e[41]!==s.user_ref?(R=s.tenant&&a.jsxs("span",{className:"inline-flex items-center gap-1",children:["origin tenant",a.jsx(ft,{applicationId:r,environmentId:l,kind:"tenant",range:c,window:o,user_ref:s.user_ref,tenant:s.tenant,person:null})]}),e[36]=r,e[37]=l,e[38]=c,e[39]=o,e[40]=s.tenant,e[41]=s.user_ref,e[42]=R):R=e[42];let L;e[43]!==E||e[44]!==P||e[45]!==z||e[46]!==A||e[47]!==R?(L=a.jsxs("span",{className:"flex flex-wrap gap-x-3 text-xs",children:[E,P,z,A,R]}),e[43]=E,e[44]=P,e[45]=z,e[46]=A,e[47]=R,e[48]=L):L=e[48];let M;e[49]!==d||e[50]!==t||e[51]!==s?(M=()=>{(async()=>await d(fs(t,s))&&(dt(!0),setTimeout(()=>dt(!1),1200)))()},e[49]=d,e[50]=t,e[51]=s,e[52]=M):M=e[52];let D;e[53]!==x?(D=x?a.jsx(xt,{className:"size-3.5"}):a.jsx(qt,{className:"size-3.5"}),e[53]=x,e[54]=D):D=e[54];let F;e[55]!==M||e[56]!==D?(F=a.jsxs(Rt,{type:"button",variant:"outline",size:"sm",onClick:M,children:[D,"Copy as Markdown"]}),e[55]=M,e[56]=D,e[57]=F):F=e[57];let O;e[58]!==L||e[59]!==F||e[60]!==$?(O=a.jsx(St,{withWindow:!1,title:$,description:L,actions:F}),e[58]=L,e[59]=F,e[60]=$,e[61]=O):O=e[61];let V;e[62]!==t.issues?(V=t.issues.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2",children:t.issues.map(Bs)}),e[62]=t.issues,e[63]=V):V=e[63];let B;e[64]!==s.duration?(B=h(s.duration),e[64]=s.duration,e[65]=B):B=e[65];let K;e[66]!==s.queue_latency?(K=s.queue_latency!=null?`queued ${h(s.queue_latency)}`:void 0,e[66]=s.queue_latency,e[67]=K):K=e[67];let J;e[68]!==B||e[69]!==K?(J=a.jsx(k,{label:"Duration",value:B,hint:K}),e[68]=B,e[69]=K,e[70]=J):J=e[70];const Ue=s.counters.queries??0,Xe=`${s.counters.cached_queries??0} cached · ${s.counters.hydrated_models??0} models`;let G;e[71]!==Ue||e[72]!==Xe?(G=a.jsx(k,{label:"Queries",value:Ue,hint:Xe}),e[71]=Ue,e[72]=Xe,e[73]=G):G=e[73];let Q;e[74]!==s.queue_time?(Q=s.queue_time!=null&&a.jsx(k,{label:"Queue time",value:h(s.queue_time)}),e[74]=s.queue_time,e[75]=Q):Q=e[75];const Ye=s.counters.cache_events??0;let H;e[76]!==Ye?(H=a.jsx(k,{label:"Cache",value:Ye}),e[76]=Ye,e[77]=H):H=e[77];const Ze=s.counters.outgoing_requests??0,et=`${s.counters.jobs_enqueued??0} jobs enqueued · ${s.counters.mail??0} mail`;let W;e[78]!==Ze||e[79]!==et?(W=a.jsx(k,{label:"Outgoing",value:Ze,hint:et}),e[78]=Ze,e[79]=et,e[80]=W):W=e[80];let U;e[81]!==s.allocations?(U=pt(s.allocations),e[81]=s.allocations,e[82]=U):U=e[82];let X;e[83]!==s.peak_memory?(X=s.peak_memory?`RSS ${_t(s.peak_memory)}`:void 0,e[83]=s.peak_memory,e[84]=X):X=e[84];let Y;e[85]!==U||e[86]!==X?(Y=a.jsx(k,{label:"Allocations",value:U,hint:X}),e[85]=U,e[86]=X,e[87]=Y):Y=e[87];const tt=s.counters.exceptions??0,st=s.counters.exceptions?"destructive":void 0,at=s.counters.lazy_loads?`${s.counters.lazy_loads} lazy loads`:void 0;let Z;e[88]!==tt||e[89]!==st||e[90]!==at?(Z=a.jsx(k,{label:"Exceptions",value:tt,tone:st,hint:at}),e[88]=tt,e[89]=st,e[90]=at,e[91]=Z):Z=e[91];let ee;e[92]!==J||e[93]!==G||e[94]!==Q||e[95]!==H||e[96]!==W||e[97]!==Y||e[98]!==Z?(ee=a.jsxs(Pt,{children:[J,G,Q,H,W,Y,Z]}),e[92]=J,e[93]=G,e[94]=Q,e[95]=H,e[96]=W,e[97]=Y,e[98]=Z,e[99]=ee):ee=e[99];let te;e[100]!==r||e[101]!==l||e[102]!==t.trace||e[103]!==t.trace_url?(te=t.trace.length>1&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsxs(j,{className:"flex flex-wrap items-center justify-between gap-2",children:["Trace",t.trace_url&&a.jsx(qe,{href:t.trace_url,className:"text-primary text-xs font-normal hover:underline",children:"View distributed trace"})]})}),a.jsx(v,{children:a.jsx("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:t.trace.map((u,p)=>{const Te=Math.max(...t.trace.map(Vs),1);return a.jsxs("span",{className:"flex items-center gap-2",children:[p>0&&a.jsx("span",{className:"text-muted-foreground",children:"→"}),a.jsxs(qe,{href:Jt({applicationId:r,environmentId:l,source:u.kind,executionId:u.execution_id}),className:u.current?"bg-muted flex items-center gap-1.5 rounded px-2 py-1 font-semibold":"hover:bg-muted flex items-center gap-1.5 rounded px-2 py-1",children:[a.jsx(Ge,{status:u.status,outcome:u.outcome})," ",a.jsx("span",{className:"font-mono",children:u.name}),a.jsx("span",{className:"bg-muted-foreground/25 relative h-1.5 w-10 overflow-hidden rounded-full",children:a.jsx("span",{className:"bg-primary absolute inset-y-0 left-0 rounded-full",style:{width:`${Math.max(4,u.duration/Te*100)}%`}})}),a.jsx("span",{className:"text-muted-foreground",children:h(u.duration)})]})]},u.execution_id)})})})]}),e[100]=r,e[101]=l,e[102]=t.trace,e[103]=t.trace_url,e[104]=te):te=e[104];let se;if(e[105]!==t.exceptions||e[106]!==t.execution){let u;e[108]!==t.execution?(u=p=>a.jsxs(_,{className:"border-destructive/40",children:[a.jsx(b,{children:a.jsx(j,{children:"Exception"})}),a.jsx(v,{children:a.jsx(Ct,{exception:p,deploy:t.execution.deploy})})]},p.id),e[108]=t.execution,e[109]=u):u=e[109],se=t.exceptions.map(u),e[105]=t.exceptions,e[106]=t.execution,e[107]=se}else se=e[107];let Ie;e[110]===Symbol.for("react.memo_cache_sentinel")?(Ie=a.jsx(b,{children:a.jsx(j,{children:"Timeline"})}),e[110]=Ie):Ie=e[110];let ae;e[111]!==t.timeline||e[112]!==s.duration||e[113]!==s.stages?(ae=a.jsxs(_,{children:[Ie,a.jsx(v,{children:a.jsx(It,{entries:t.timeline,total:s.duration,stages:s.stages})})]}),e[111]=t.timeline,e[112]=s.duration,e[113]=s.stages,e[114]=ae):ae=e[114];let ne;e[115]!==t.spans?(ne=t.spans.length>0&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsx(j,{children:"Spans"})}),a.jsx(v,{children:a.jsx($e,{rows:t.spans,rowKey:Os,columns:[{key:"off",header:"+ms",align:"right",cell:Fs},{key:"name",header:"Span",cell:Ds},{key:"status",header:"Status",cell:Ms},{key:"attrs",header:"Attributes",cell:Rs},{key:"dur",header:"Duration",align:"right",cell:As}]})})]}),e[115]=t.spans,e[116]=ne):ne=e[116];let re;e[117]!==r||e[118]!==l||e[119]!==t.profile?(re=t.profile&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsxs(j,{className:"flex flex-wrap items-center justify-between gap-2",children:["Profile",a.jsx(qe,{href:yt(r,l,t.profile.id),className:"text-primary text-xs font-normal hover:underline",children:"Open full profile"})]})}),a.jsxs(v,{className:"space-y-2",children:[a.jsxs("p",{className:"text-muted-foreground font-mono text-[11px]",children:[t.profile.profiler,t.profile.mode?` · ${t.profile.mode}`:""," ·"," ",pt(t.profile.samples)," samples · ",h(t.profile.duration),t.profile.truncated&&" · truncated for this page"]}),a.jsx(Tt,{collapsed:t.profile.collapsed})]})]}),e[117]=r,e[118]=l,e[119]=t.profile,e[120]=re):re=e[120];let ie;e[121]!==r||e[122]!==l||e[123]!==t.attachments?(ie=t.attachments.length>0&&a.jsxs(_,{children:[a.jsx(b,{children:a.jsx(j,{children:"Attachments"})}),a.jsx(v,{children:a.jsx($e,{rows:t.attachments,rowKey:zs,columns:[{key:"name",header:"Name",className:"max-w-0",cell:Ps},{key:"type",hideOnMobile:!0,header:"Type",cell:Es},{key:"size",header:"Size",align:"right",cell:Is},{key:"links",header:"",align:"right",cell:u=>a.jsxs("span",{className:"flex justify-end gap-3",children:[u.viewable&&a.jsx("a",{className:"text-primary hover:underline",href:mt(r,l,u.id,{view:1}),children:"View"}),a.jsx("a",{className:"text-primary hover:underline",href:mt(r,l,u.id),children:"Download"})]})}]})})]}),e[121]=r,e[122]=l,e[123]=t.attachments,e[124]=ie):ie=e[124];let oe;e[125]!==t.queries.length?(oe=a.jsxs(Ke,{value:"queries",children:["Queries (",t.queries.length,")"]}),e[125]=t.queries.length,e[126]=oe):oe=e[126];let le;e[127]!==t.logs.length?(le=a.jsxs(Ke,{value:"logs",children:["Logs (",t.logs.length,")"]}),e[127]=t.logs.length,e[128]=le):le=e[128];let ce;e[129]!==t.enqueued_jobs.length?(ce=a.jsxs(Ke,{value:"jobs",children:["Enqueued jobs (",t.enqueued_jobs.length,")"]}),e[129]=t.enqueued_jobs.length,e[130]=ce):ce=e[130];let Ee;e[131]===Symbol.for("react.memo_cache_sentinel")?(Ee=a.jsx(Ke,{value:"request",children:"Details"}),e[131]=Ee):Ee=e[131];let ue;e[132]!==oe||e[133]!==le||e[134]!==ce?(ue=a.jsxs(cs,{children:[oe,le,ce,Ee]}),e[132]=oe,e[133]=le,e[134]=ce,e[135]=ue):ue=e[135];let Pe;e[136]===Symbol.for("react.memo_cache_sentinel")?(Pe={key:"off",header:"+ms",align:"right",cell:Ss},e[136]=Pe):Pe=e[136];let de;e[137]!==r||e[138]!==l?(de={key:"sql",header:"SQL",cell:u=>a.jsx(qe,{href:kt(r,l,u.group_hash),children:a.jsx(Et,{sql:u.sql,className:"hover:underline"})})},e[137]=r,e[138]=l,e[139]=de):de=e[139];let ze,Ae,Re;e[140]===Symbol.for("react.memo_cache_sentinel")?(ze={key:"rows",header:"Rows",align:"right",cell:Cs},Ae={key:"src",header:"Source",cell:qs},Re={key:"dur",header:"Duration",align:"right",cell:Ts},e[140]=ze,e[141]=Ae,e[142]=Re):(ze=e[140],Ae=e[141],Re=e[142]);let me;e[143]!==de?(me=[Pe,de,ze,Ae,Re],e[143]=de,e[144]=me):me=e[144];let fe;e[145]!==t.queries||e[146]!==me?(fe=a.jsx(Je,{value:"queries",children:a.jsx($e,{rows:t.queries,rowKey:$s,empty:"No queries.",columns:me})}),e[145]=t.queries,e[146]=me,e[147]=fe):fe=e[147];let Le;e[148]===Symbol.for("react.memo_cache_sentinel")?(Le=[{key:"lvl",header:"Level",cell:Ns},{key:"msg",header:"Message",cell:ks},{key:"tags",header:"Tags",cell:ys},{key:"stage",header:"Stage",cell:vs}],e[148]=Le):Le=e[148];let pe;e[149]!==t.logs?(pe=a.jsx(Je,{value:"logs",children:a.jsx($e,{rows:t.logs,rowKey:ws,empty:"No logs.",columns:Le})}),e[149]=t.logs,e[150]=pe):pe=e[150];let Me,De,Fe;e[151]===Symbol.for("react.memo_cache_sentinel")?(Me={key:"name",header:"Job",cell:bs},De={key:"queue",header:"Queue",cell:_s},Fe={key:"id",header:"Job id",cell:gs},e[151]=Me,e[152]=De,e[153]=Fe):(Me=e[151],De=e[152],Fe=e[153]);let xe;e[154]!==r||e[155]!==l?(xe=[Me,De,Fe,{key:"attempt",header:"Attempt",cell:u=>u.attempt_execution_id?a.jsx(qe,{className:"hover:underline",href:Nt(r,l,u.attempt_execution_id),children:a.jsx(Ge,{outcome:u.attempt_outcome})}):a.jsx("span",{className:"text-muted-foreground text-xs",children:"not seen yet"})}],e[154]=r,e[155]=l,e[156]=xe):xe=e[156];let he;e[157]!==t.enqueued_jobs||e[158]!==xe?(he=a.jsx(Je,{value:"jobs",children:a.jsx($e,{rows:t.enqueued_jobs,rowKey:js,empty:"No jobs enqueued.",columns:xe})}),e[157]=t.enqueued_jobs,e[158]=xe,e[159]=he):he=e[159];let Oe;e[160]===Symbol.for("react.memo_cache_sentinel")?(Oe=a.jsx(b,{children:a.jsx(j,{children:"Execution"})}),e[160]=Oe):Oe=e[160];let ge;if(e[161]!==n.arguments_preview||e[162]!==n.db_runtime||e[163]!==n.format||e[164]!==n.halted_callback||e[165]!==n.ip||e[166]!==n.redirect_to||e[167]!==n.schedule||e[168]!==n.url||e[169]!==n.user_agent||e[170]!==n.view_runtime||e[171]!==s.action||e[172]!==s.attempt||e[173]!==s.controller||e[174]!==s.execution_id||e[175]!==s.inertia_component||e[176]!==s.job_id||e[177]!==s.kind||e[178]!==s.queue||e[179]!==s.route||e[180]!==s.task_key||e[181]!==s.trace_id){const u=s.controller&&`${s.controller}#${s.action}`;let p;e[183]!==n.arguments_preview?(p=Array.isArray(n.arguments_preview)?n.arguments_preview.join(", "):void 0,e[183]=n.arguments_preview,e[184]=p):p=e[184];let Te;e[185]!==n.db_runtime||e[186]!==n.format||e[187]!==n.halted_callback||e[188]!==n.ip||e[189]!==n.redirect_to||e[190]!==n.schedule||e[191]!==n.url||e[192]!==n.user_agent||e[193]!==n.view_runtime||e[194]!==u||e[195]!==p||e[196]!==s.attempt||e[197]!==s.execution_id||e[198]!==s.inertia_component||e[199]!==s.job_id||e[200]!==s.kind||e[201]!==s.queue||e[202]!==s.route||e[203]!==s.task_key||e[204]!==s.trace_id?(Te={kind:s.kind,trace_id:s.trace_id,execution_id:s.execution_id,controller:u,route:s.route,url:n.url,ip:n.ip,format:n.format,queue:s.queue,attempt:s.attempt,job_id:s.job_id,task_key:s.task_key,schedule:n.schedule,inertia_component:s.inertia_component,redirect_to:n.redirect_to,halted_callback:n.halted_callback,view_runtime:n.view_runtime,db_runtime:n.db_runtime,user_agent:n.user_agent,arguments:p},e[185]=n.db_runtime,e[186]=n.format,e[187]=n.halted_callback,e[188]=n.ip,e[189]=n.redirect_to,e[190]=n.schedule,e[191]=n.url,e[192]=n.user_agent,e[193]=n.view_runtime,e[194]=u,e[195]=p,e[196]=s.attempt,e[197]=s.execution_id,e[198]=s.inertia_component,e[199]=s.job_id,e[200]=s.kind,e[201]=s.queue,e[202]=s.route,e[203]=s.task_key,e[204]=s.trace_id,e[205]=Te):Te=e[205],ge=a.jsx("dl",{className:"grid gap-y-1 text-xs sm:grid-cols-[10rem_1fr]",children:Object.entries(Te).filter(hs).map(xs)}),e[161]=n.arguments_preview,e[162]=n.db_runtime,e[163]=n.format,e[164]=n.halted_callback,e[165]=n.ip,e[166]=n.redirect_to,e[167]=n.schedule,e[168]=n.url,e[169]=n.user_agent,e[170]=n.view_runtime,e[171]=s.action,e[172]=s.attempt,e[173]=s.controller,e[174]=s.execution_id,e[175]=s.inertia_component,e[176]=s.job_id,e[177]=s.kind,e[178]=s.queue,e[179]=s.route,e[180]=s.task_key,e[181]=s.trace_id,e[182]=ge}else ge=e[182];let _e;e[206]!==m?(_e=m&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:m})}),e[206]=m,e[207]=_e):_e=e[207];let be;e[208]!==n.context?(be=n.context&&n.context!=="{}"&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:ms(n.context)})}),e[208]=n.context,e[209]=be):be=e[209];let je;e[210]!==ge||e[211]!==_e||e[212]!==be?(je=a.jsxs(_,{children:[Oe,a.jsxs(v,{children:[ge,_e,be]})]}),e[210]=ge,e[211]=_e,e[212]=be,e[213]=je):je=e[213];let Ve;e[214]===Symbol.for("react.memo_cache_sentinel")?(Ve=a.jsx(b,{children:a.jsx(j,{children:"Headers"})}),e[214]=Ve):Ve=e[214];let ve;e[215]!==g?(ve=a.jsx("dl",{className:"grid gap-y-1 text-xs sm:grid-cols-[12rem_1fr]",children:Object.entries(g).map(ps)}),e[215]=g,e[216]=ve):ve=e[216];let ye;e[217]!==n.payload?(ye=n.payload!=null&&a.jsx("div",{className:"mt-3",children:a.jsx(nt,{data:n.payload})}),e[217]=n.payload,e[218]=ye):ye=e[218];let ke;e[219]!==ve||e[220]!==ye?(ke=a.jsxs(_,{children:[Ve,a.jsxs(v,{children:[ve,ye]})]}),e[219]=ve,e[220]=ye,e[221]=ke):ke=e[221];let Ne;e[222]!==je||e[223]!==ke?(Ne=a.jsx(Je,{value:"request",children:a.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[je,ke]})}),e[222]=je,e[223]=ke,e[224]=Ne):Ne=e[224];let we;e[225]!==ue||e[226]!==fe||e[227]!==pe||e[228]!==he||e[229]!==Ne?(we=a.jsxs(os,{defaultValue:"queries",children:[ue,fe,pe,he,Ne]}),e[225]=ue,e[226]=fe,e[227]=pe,e[228]=he,e[229]=Ne,e[230]=we):we=e[230];let Be;return e[231]!==O||e[232]!==V||e[233]!==ee||e[234]!==te||e[235]!==se||e[236]!==ae||e[237]!==ne||e[238]!==re||e[239]!==ie||e[240]!==T||e[241]!==we||e[242]!==s.name?(Be=a.jsxs($t,{title:jt,crumbs:T,children:[O,V,ee,te,se,ae,ne,re,ie,we]}),e[231]=O,e[232]=V,e[233]=ee,e[234]=te,e[235]=se,e[236]=ae,e[237]=ne,e[238]=re,e[239]=ie,e[240]=T,e[241]=we,e[242]=s.name,e[243]=Be):Be=e[243],Be}function ps(t){const[e,i]=t;return a.jsxs("div",{className:"contents",children:[a.jsx("dt",{className:"text-muted-foreground font-mono",children:e}),a.jsx("dd",{className:"font-mono break-all",children:i})]},e)}function xs(t){const[e,i]=t;return a.jsxs("div",{className:"contents",children:[a.jsx("dt",{className:"text-muted-foreground",children:e}),a.jsxs("dd",{className:"font-mono break-all",children:[String(i),(e==="trace_id"||e==="execution_id")&&a.jsx(ds,{value:String(i)})]})]},e)}function hs(t){const[,e]=t;return e!=null&&e!==""}function gs(t){return a.jsx("span",{className:"font-mono text-xs",children:t.job_id})}function _s(t){return t.queue}function bs(t){return a.jsx("span",{className:"font-mono text-xs",children:t.name})}function js(t){return t.id}function vs(t){return a.jsx("span",{className:"text-muted-foreground text-xs",children:t.stage??""})}function ys(t){return t.tags.join(" ")}function ks(t){return a.jsx("span",{className:"font-mono text-xs whitespace-pre-wrap",children:t.message})}function Ns(t){return a.jsx(zt,{level:t.level})}function ws(t){return t.id}function Ts(t){return h(t.duration,2)}function qs(t){return a.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source??""})}function Cs(t){return t.row_count??"–"}function Ss(t){return t.offset.toFixed(1)}function $s(t){return t.id}function Is(t){return _t(t.bytes)}function Es(t){return a.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.content_type??"–"})}function Ps(t){return a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:"truncate font-mono text-xs",children:t.name}),t.truncated&&a.jsx(it,{variant:"secondary",children:"truncated"})]})}function zs(t){return t.id}function As(t){return h(t.duration,2)}function Rs(t){return a.jsx("span",{className:"flex flex-wrap gap-1",children:Object.entries(t.attributes).map(Ls)})}function Ls(t){const[e,i]=t;return a.jsxs("span",{className:"bg-muted rounded-sm px-1.5 font-mono text-[10px]",children:[e,"=",String(i)]},e)}function Ms(t){return a.jsx(Ge,{outcome:t.status})}function Ds(t){return a.jsx("span",{className:"font-mono text-xs",children:t.name})}function Fs(t){return t.offset.toFixed(1)}function Os(t){return t.id}function Vs(t){return t.duration}function Bs(t){return a.jsx(qe,{href:wt(t.id),children:a.jsx(it,{variant:"destructive",className:"font-mono",children:t.key})},t.id)}export{ja as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B,c as C,u as H,r as L,j as s,L as E,C as I,H as z}from"./inertia-
|
|
1
|
+
import{B,c as C,u as H,r as L,j as s,L as E,C as I,H as z}from"./inertia-Degv_G9N.js";import{M as D,a as F}from"./nav-BnD5XArZ.js";import{B as R}from"./app-wordmark-1SRllgHv.js";const $=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],O=B("menu",$);function G(t){const e=C.c(36),{auth:S}=H().props,[f,w]=L.useState(!1);let o;if(e[0]!==t.doc.id||e[1]!==t.nav){let v;e[3]!==t.doc.id?(v=M=>s.jsxs("div",{children:[s.jsx("div",{className:"label-caps mb-2",children:M.title}),s.jsx("ul",{className:"space-y-0.5",children:M.docs.map(k=>s.jsx("li",{children:s.jsx(E,{href:k.href,onClick:()=>w(!1),className:I("hover:bg-accent block rounded-md px-2 py-1",k.id===t.doc.id?"bg-accent font-medium":"text-muted-foreground"),children:k.title})},k.id))})]},M.section),e[3]=t.doc.id,e[4]=v):v=e[4],o=t.nav.map(v),e[0]=t.doc.id,e[1]=t.nav,e[2]=o}else o=e[2];let h;e[5]!==o?(h=s.jsx("nav",{className:"space-y-6 text-sm",children:o}),e[5]=o,e[6]=h):h=e[6];const l=h,N=`${t.doc.title} · Docs`;let n;e[7]!==N?(n=s.jsx(z,{title:N}),e[7]=N,e[8]=n):n=e[8];const y=!!S?.user;let a;e[9]!==y?(a=s.jsx(D,{signedIn:y}),e[9]=y,e[10]=a):a=e[10];let r;e[11]!==l?(r=s.jsx("aside",{className:"hidden w-56 shrink-0 md:block",children:s.jsx("div",{className:"sticky top-6",children:l})}),e[11]=l,e[12]=r):r=e[12];let u,j;e[13]===Symbol.for("react.memo_cache_sentinel")?(u=()=>w(P),j=s.jsx(O,{className:"size-4"}),e[13]=u,e[14]=j):(u=e[13],j=e[14]);const _=f?"Hide contents":"Contents";let c;e[15]!==_?(c=s.jsxs(R,{variant:"outline",size:"sm",onClick:u,children:[j,_]}),e[15]=_,e[16]=c):c=e[16];let i;e[17]!==f||e[18]!==l?(i=f&&s.jsx("div",{className:"bg-card mt-3 rounded-lg border p-4",children:l}),e[17]=f,e[18]=l,e[19]=i):i=e[19];let d;e[20]!==c||e[21]!==i?(d=s.jsxs("div",{className:"mb-4 md:hidden",children:[c,i]}),e[20]=c,e[21]=i,e[22]=d):d=e[22];let m;e[23]!==t.doc.html?(m=s.jsx("article",{className:"prose prose-neutral dark:prose-invert prose-headings:scroll-mt-6 prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-3xl prose-a:text-primary prose-code:rounded prose-code:bg-muted prose-code:px-1 prose-code:py-0.5 prose-code:font-mono prose-code:text-[0.85em] prose-code:font-normal prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-table:text-sm prose-th:label-caps max-w-none",dangerouslySetInnerHTML:{__html:t.doc.html}}),e[23]=t.doc.html,e[24]=m):m=e[24];let p;e[25]!==d||e[26]!==m?(p=s.jsxs("div",{className:"min-w-0 flex-1",children:[d,m]}),e[25]=d,e[26]=m,e[27]=p):p=e[27];let x;e[28]!==p||e[29]!==r?(x=s.jsxs("div",{className:"mx-auto flex w-full max-w-6xl gap-10 px-6 pb-16",children:[r,p]}),e[28]=p,e[29]=r,e[30]=x):x=e[30];let b;e[31]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(F,{}),e[31]=b):b=e[31];let g;return e[32]!==x||e[33]!==n||e[34]!==a?(g=s.jsxs(s.Fragment,{children:[n,a,x,b]}),e[32]=x,e[33]=n,e[34]=a,e[35]=g):g=e[35],g}function P(t){return!t}export{G as default};
|
|
@@ -0,0 +1 @@
|
|
|
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-Degv_G9N.js";import{V as Ee,D as Re}from"./chart-panel-BYk68mJJ.js";import{D as se}from"./data-table-IvA7xvrK.js";import{u as Pe,E as Se,P as Me}from"./env-layout-erSDpIXg.js";import{a as De,S as Oe}from"./segmented-CVKq2Xpa.js";import{S as X,a as Le}from"./stat-TxvoBiC8.js";import{S as Te}from"./status-badge-5NCVJHjo.js";import{c as m,p as $e,m as ee,w as pe,a as Ae}from"./format-B9SDkrWj.js";import"./series-chart-D33UhdG2.js";import"./chart-hover-XYPNE2CX.js";import"./chart-Xnrz1Nqw.js";import"./empty-state-BFTnQ2oT.js";import"./badge-CApjyWcg.js";import"./app-wordmark-1SRllgHv.js";import"./app-layout-B5Fcdwfz.js";import"./live-dot-DaXEbkXo.js";import"./index-B0VXzXYG.js";import"./index-CX8Br7m9.js";import"./checkbox-Bf41R8W6.js";import"./label-B_vK19tR.js";import"./use-live-GKze1mNC.js";import"./arrow-up-DwKQcab4.js";function Dt(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{Dt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as Ge,u as Le,z as ze,j as s,L as Oe,i as Pe}from"./inertia-Degv_G9N.js";import{D as ke}from"./data-table-IvA7xvrK.js";import{E as Se}from"./empty-state-BFTnQ2oT.js";import{P as Be,E as Ke}from"./env-layout-erSDpIXg.js";import{R as Ue}from"./relative-time-6CoKr1lN.js";import{S as ae,a as Ae}from"./stat-TxvoBiC8.js";import{I as We}from"./status-badge-5NCVJHjo.js";import{B as Je}from"./app-wordmark-1SRllgHv.js";import{C as Ee,a as He,b as Me,c as Ie}from"./card-BaJ8kNkp.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-1Qzc_XhT.js";import{G as Ze,O as Fe}from"./app-layout-B5Fcdwfz.js";import"./chart-hover-XYPNE2CX.js";import"./badge-CApjyWcg.js";import"./use-live-GKze1mNC.js";import"./live-dot-DaXEbkXo.js";import"./index-B0VXzXYG.js";import"./index-CX8Br7m9.js";import"./segmented-CVKq2Xpa.js";import"./label-B_vK19tR.js";import"./arrow-up-DwKQcab4.js";import"./checkbox-Bf41R8W6.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 Tt(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{Tt as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{r as ae,j as r,c as oe,C as fe}from"./inertia-
|
|
1
|
+
import{r as ae,j as r,c as oe,C as fe}from"./inertia-Degv_G9N.js";import{D as G}from"./data-table-IvA7xvrK.js";import{P as he,E as _e}from"./env-layout-erSDpIXg.js";import{S as L,a as pe}from"./stat-TxvoBiC8.js";import{C as M,a as V,b as z,c as Q}from"./card-BaJ8kNkp.js";import{c as xe}from"./index-CX8Br7m9.js";import{P as le}from"./index-B0VXzXYG.js";import{c as d,b as ie}from"./format-B9SDkrWj.js";import"./chart-hover-XYPNE2CX.js";import"./empty-state-BFTnQ2oT.js";import"./badge-CApjyWcg.js";import"./app-wordmark-1SRllgHv.js";import"./app-layout-B5Fcdwfz.js";import"./live-dot-DaXEbkXo.js";import"./checkbox-Bf41R8W6.js";import"./label-B_vK19tR.js";import"./use-live-GKze1mNC.js";import"./segmented-CVKq2Xpa.js";import"./arrow-up-DwKQcab4.js";var ye=Object.defineProperty,m=(t,e)=>ye(t,"name",{value:e,configurable:!0}),ce="Progress",se=100,[ve,ot]=xe(ce),[be,ge]=ve(ce),je=ae.forwardRef(m(function(e,a){const{__scopeProgress:o,value:i=null,max:s,getValueLabel:u=de,...l}=e;(s||s===0)&&!te(s)&&console.error(ue(`${s}`,"Progress"));const n=te(s)?s:se;i!==null&&!re(i,n)&&console.error(me(`${i}`,"Progress"));const c=re(i,n)?i:null,f=D(c)?u(c,n):void 0;return r.jsx(be,{scope:o,value:c,max:n,children:r.jsx(le.div,{"aria-valuemax":n,"aria-valuemin":0,"aria-valuenow":D(c)?c:void 0,"aria-valuetext":f,role:"progressbar","data-state":ne(c,n),"data-value":c??void 0,"data-max":n,...l,ref:a})})},"Progress")),Pe="ProgressIndicator",we=ae.forwardRef(m(function(e,a){const{__scopeProgress:o,...i}=e,s=ge(Pe,o);return r.jsx(le.div,{"data-state":ne(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:a})},"ProgressIndicator"));function de(t,e){return`${Math.round(t/e*100)}%`}m(de,"defaultGetValueLabel");function ne(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}m(ne,"getProgressState");function D(t){return typeof t=="number"}m(D,"isNumber");function te(t){return D(t)&&!isNaN(t)&&t>0}m(te,"isValidMaxNumber");function re(t,e){return D(t)&&!isNaN(t)&&t<=e&&t>=0}m(re,"isValidValueNumber");function ue(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${se}\`.`}m(ue,"getInvalidMaxError");function me(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be:
|
|
2
2
|
- a positive number
|
|
3
3
|
- less than the value passed to \`max\` (or ${se} if no \`max\` prop is set)
|
|
4
4
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
5
5
|
|
|
6
|
-
Defaulting to \`null\`.`}m(me,"getInvalidValueError");var Se=je,Ne=we;function Ee(t){const e=oe.c(12);let a,o,i;e[0]!==t?({className:a,value:i,...o}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=i):(a=e[1],o=e[2],i=e[3]);let s;e[4]!==a?(s=fe("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",a),e[4]=a,e[5]=s):s=e[5];const u=`translateX(-${100-(i??0)}%)`;let l;e[6]!==u?(l=r.jsx(Ne,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:u}}),e[6]=u,e[7]=l):l=e[7];let n;return e[8]!==o||e[9]!==s||e[10]!==l?(n=r.jsx(Se,{"data-slot":"progress",className:s,...o,children:l}),e[8]=o,e[9]=s,e[10]=l,e[11]=n):n=e[11],n}function
|
|
6
|
+
Defaulting to \`null\`.`}m(me,"getInvalidValueError");var Se=je,Ne=we;function Ee(t){const e=oe.c(12);let a,o,i;e[0]!==t?({className:a,value:i,...o}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=i):(a=e[1],o=e[2],i=e[3]);let s;e[4]!==a?(s=fe("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",a),e[4]=a,e[5]=s):s=e[5];const u=`translateX(-${100-(i??0)}%)`;let l;e[6]!==u?(l=r.jsx(Ne,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:u}}),e[6]=u,e[7]=l):l=e[7];let n;return e[8]!==o||e[9]!==s||e[10]!==l?(n=r.jsx(Se,{"data-slot":"progress",className:s,...o,children:l}),e[8]=o,e[9]=s,e[10]=l,e[11]=n):n=e[11],n}function lt(t){const e=oe.c(77),a=t.account.events_this_month,o=t.account.monthly_event_quota+t.account.additional_events_cap,i=t.account.plan;let s;e[0]!==t.account.monthly_event_quota?(s=d(t.account.monthly_event_quota),e[0]=t.account.monthly_event_quota,e[1]=s):s=e[1];const u=`Plan ${i} · ${s} events per month · ${t.account.retention_days}-day retention`;let l;e[2]!==u?(l=r.jsx(he,{withWindow:!1,title:"Usage",description:u}),e[2]=u,e[3]=l):l=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsx("span",{children:"Account events this month"}),e[4]=n):n=e[4];let c;e[5]!==a?(c=d(a),e[5]=a,e[6]=c):c=e[6];let f;e[7]!==o?(f=d(o),e[7]=o,e[8]=f):f=e[8];let h;e[9]!==c||e[10]!==f?(h=r.jsxs("div",{className:"flex justify-between text-sm",children:[n,r.jsxs("span",{className:"tabular-nums",children:[c," / ",f]})]}),e[9]=c,e[10]=f,e[11]=h):h=e[11];const X=Math.min(100,a/Math.max(1,o)*100);let _;e[12]!==X?(_=r.jsx(Ee,{value:X}),e[12]=X,e[13]=_):_=e[13];let U;e[14]===Symbol.for("react.memo_cache_sentinel")?(U=r.jsx("p",{className:"text-muted-foreground text-xs",children:"Ingest pauses at the quota. Raise it in account settings or lower RAILWATCH_REQUEST_SAMPLE_RATE in the app."}),e[14]=U):U=e[14];let p;e[15]!==h||e[16]!==_?(p=r.jsx(M,{children:r.jsxs(V,{className:"space-y-2 pt-4",children:[h,_,U]})}),e[15]=h,e[16]=_,e[17]=p):p=e[17];let x;e[18]!==t.environment_events?(x=d(t.environment_events),e[18]=t.environment_events,e[19]=x):x=e[19];let y;e[20]!==x?(y=r.jsx(L,{label:"This environment",value:x,hint:"events this month"}),e[20]=x,e[21]=y):y=e[21];let v;e[22]!==t.dropped_by_client?(v=d(t.dropped_by_client),e[22]=t.dropped_by_client,e[23]=v):v=e[23];const Y=t.dropped_by_client?"warning":void 0;let b;e[24]!==v||e[25]!==Y?(b=r.jsx(L,{label:"Dropped by client",value:v,hint:"buffer overflow in the app (30d)",tone:Y}),e[24]=v,e[25]=Y,e[26]=b):b=e[26];let g;e[27]!==t.backpressure_batches?(g=d(t.backpressure_batches),e[27]=t.backpressure_batches,e[28]=g):g=e[28];const Z=`batches sampled down in the app (30d), peak ${t.backpressure_peak}x; raise RAILWATCH_BUFFER_SIZE / RAILWATCH_BUFFER_BYTES or lower sample rates`,J=t.backpressure_batches>0?"warning":void 0;let j;e[29]!==g||e[30]!==Z||e[31]!==J?(j=r.jsx(L,{label:"Under backpressure",value:g,hint:Z,tone:J}),e[29]=g,e[30]=Z,e[31]=J,e[32]=j):j=e[32];let P;e[33]!==t.rejected?(P=d(t.rejected),e[33]=t.rejected,e[34]=P):P=e[34];const ee=t.rejected?"warning":void 0;let w;e[35]!==P||e[36]!==ee?(w=r.jsx(L,{label:"Rejected",value:P,hint:"malformed records (30d)",tone:ee}),e[35]=P,e[36]=ee,e[37]=w):w=e[37];let S;e[38]!==t.db_bytes?(S=ie(t.db_bytes),e[38]=t.db_bytes,e[39]=S):S=e[39];let N;e[40]!==S?(N=r.jsx(L,{label:"Telemetry DB",value:S,hint:"SQLite file on disk"}),e[40]=S,e[41]=N):N=e[41];let E;e[42]!==y||e[43]!==b||e[44]!==j||e[45]!==w||e[46]!==N?(E=r.jsxs(pe,{children:[y,b,j,w,N]}),e[42]=y,e[43]=b,e[44]=j,e[45]=w,e[46]=N,e[47]=E):E=e[47];let q;e[48]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsx(z,{children:r.jsx(Q,{children:"By record type (30d)"})}),e[48]=q):q=e[48];let B;e[49]===Symbol.for("react.memo_cache_sentinel")?(B=[{key:"t",header:"Type",cell:Ue},{key:"n",header:"Events",align:"right",cell:De}],e[49]=B):B=e[49];let R;e[50]!==t.by_type?(R=r.jsxs(M,{children:[q,r.jsx(V,{children:r.jsx(G,{rows:t.by_type,rowKey:qe,columns:B})})]}),e[50]=t.by_type,e[51]=R):R=e[51];let F;e[52]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx(z,{children:r.jsx(Q,{children:"By day (30d)"})}),e[52]=F):F=e[52];let H;e[53]===Symbol.for("react.memo_cache_sentinel")?(H=[{key:"d",header:"Day",cell:Me},{key:"n",header:"Events",align:"right",cell:Le}],e[53]=H):H=e[53];let $;e[54]!==t.by_day?($=r.jsxs(M,{children:[F,r.jsx(V,{children:r.jsx(G,{rows:t.by_day,rowKey:Ve,columns:H})})]}),e[54]=t.by_day,e[55]=$):$=e[55];let k;e[56]!==R||e[57]!==$?(k=r.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[R,$]}),e[56]=R,e[57]=$,e[58]=k):k=e[58];let K;e[59]===Symbol.for("react.memo_cache_sentinel")?(K=r.jsx(z,{children:r.jsx(Q,{children:"Stored payloads"})}),e[59]=K):K=e[59];let I;e[60]!==t.account.retention_days?(I=r.jsxs("p",{className:"text-muted-foreground mb-2 text-xs",children:["Profiles and attachments are the only records that store a blob. Sizes are the uncompressed bytes the app sent; both are pruned with everything else at ",t.account.retention_days," days."]}),e[60]=t.account.retention_days,e[61]=I):I=e[61];let O;e[62]===Symbol.for("react.memo_cache_sentinel")?(O=[{key:"n",header:"Record",cell:Ae},{key:"rows",header:"Rows",align:"right",cell:Te},{key:"b",header:"Size",align:"right",cell:Ie}],e[62]=O):O=e[62];let T;e[63]!==t.payloads?(T=r.jsx(G,{rows:t.payloads,rowKey:Ce,columns:O}),e[63]=t.payloads,e[64]=T):T=e[64];let A;e[65]!==I||e[66]!==T?(A=r.jsxs(M,{children:[K,r.jsxs(V,{children:[I,T]})]}),e[65]=I,e[66]=T,e[67]=A):A=e[67];let C;e[68]!==t.recent_rejections?(C=t.recent_rejections.length>0&&r.jsxs(M,{children:[r.jsx(z,{children:r.jsx(Q,{children:"Recent rejections"})}),r.jsx(V,{children:r.jsx(G,{rows:t.recent_rejections,rowKey:ke,columns:[{key:"t",header:"Type",cell:$e},{key:"r",header:"Reason",cell:Re}]})})]}),e[68]=t.recent_rejections,e[69]=C):C=e[69];let W;return e[70]!==p||e[71]!==E||e[72]!==l||e[73]!==k||e[74]!==A||e[75]!==C?(W=r.jsxs(_e,{title:"Usage",children:[l,p,E,k,A,C]}),e[70]=p,e[71]=E,e[72]=l,e[73]=k,e[74]=A,e[75]=C,e[76]=W):W=e[76],W}function Re(t){return r.jsx("span",{className:"font-mono text-xs",children:t.reason})}function $e(t){return r.jsx("span",{className:"font-mono text-xs",children:t.type})}function ke(t){return`${t.type}-${t.reason}`}function Ie(t){return ie(t.bytes)}function Te(t){return d(t.rows)}function Ae(t){return t.name}function Ce(t){return t.name}function Le(t){return d(t.count)}function Me(t){return t.day}function Ve(t){return t.day}function De(t){const[,e]=t;return d(e)}function Ue(t){const[e]=t;return r.jsx("span",{className:"font-mono text-xs",children:e})}function qe(t){const[e]=t;return e}export{lt as default};
|
|
@@ -0,0 +1 @@
|
|
|
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-Degv_G9N.js";import{C as J}from"./chart-panel-BYk68mJJ.js";import{D as z}from"./data-table-IvA7xvrK.js";import{E as A}from"./empty-state-BFTnQ2oT.js";import{P as Q,E as V}from"./env-layout-erSDpIXg.js";import{b as X}from"./series-chart-D33UhdG2.js";import{I as Y}from"./status-badge-5NCVJHjo.js";import{B as Z}from"./app-wordmark-1SRllgHv.js";import{C as M,a as T,b as q,c as B}from"./card-BaJ8kNkp.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-1Qzc_XhT.js";import{E as ie,O as le}from"./app-layout-B5Fcdwfz.js";import"./chart-hover-XYPNE2CX.js";import"./badge-CApjyWcg.js";import"./use-live-GKze1mNC.js";import"./live-dot-DaXEbkXo.js";import"./index-B0VXzXYG.js";import"./index-CX8Br7m9.js";import"./segmented-CVKq2Xpa.js";import"./label-B_vK19tR.js";import"./chart-Xnrz1Nqw.js";import"./stat-TxvoBiC8.js";import"./arrow-up-DwKQcab4.js";import"./checkbox-Bf41R8W6.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 Ue(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{Ue as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R,g as T,j as n,H,e as y,l as S,m as $,L as q,o as I,p as K,q as F,s as G}from"./inertia-
|
|
1
|
+
import{c as R,g as T,j as n,H,e as y,l as S,m as $,L as q,o as I,p as K,q as F,s as G}from"./inertia-Degv_G9N.js";import{D as J}from"./data-table-IvA7xvrK.js";import{O as M}from"./onboarding-C_Y3xTsH.js";import{B as D}from"./badge-CApjyWcg.js";import{B as w}from"./app-wordmark-1SRllgHv.js";import{A as Q}from"./app-layout-B5Fcdwfz.js";import{a as U,c as V}from"./format-B9SDkrWj.js";import"./chart-hover-XYPNE2CX.js";import"./empty-state-BFTnQ2oT.js";import"./copy-block-zykZWQym.js";import"./use-clipboard-BLjjYH8V.js";import"./index-CX8Br7m9.js";import"./live-dot-DaXEbkXo.js";import"./index-B0VXzXYG.js";import"./card-BaJ8kNkp.js";import"./checkbox-Bf41R8W6.js";import"./label-B_vK19tR.js";function _e(t){const e=R.c(54),i=t.application,B=i.name;let l;e[0]!==i.id?(l=T(i.id),e[0]=i.id,e[1]=l):l=e[1];let a;e[2]!==i.name||e[3]!==l?(a=[{title:B,href:l}],e[2]=i.name,e[3]=l,e[4]=a):a=e[4];let o;e[5]!==i.name?(o=n.jsx(H,{title:i.name}),e[5]=i.name,e[6]=o):o=e[6];let r;e[7]!==i.name?(r=n.jsx("h1",{className:"text-xl font-semibold",children:i.name}),e[7]=i.name,e[8]=r):r=e[8];let m;e[9]!==i.issue_prefix?(m=n.jsx("span",{className:"font-mono",children:i.issue_prefix}),e[9]=i.issue_prefix,e[10]=m):m=e[10];let d;e[11]!==t.issues_open||e[12]!==m?(d=n.jsxs("p",{className:"text-muted-foreground text-sm",children:["Issue prefix ",m," ","· ",t.issues_open," open issues"]}),e[11]=t.issues_open,e[12]=m,e[13]=d):d=e[13];let c;e[14]!==r||e[15]!==d?(c=n.jsxs("div",{children:[r,d]}),e[14]=r,e[15]=d,e[16]=c):c=e[16];let p;e[17]!==i.id?(p=n.jsx(w,{variant:"outline",size:"sm",onClick:()=>y.visit(S(i.id)),children:"Edit"}),e[17]=i.id,e[18]=p):p=e[18];let f;e[19]!==i.id?(f=n.jsx(w,{size:"sm",onClick:()=>y.visit($(i.id)),children:"Add environment"}),e[19]=i.id,e[20]=f):f=e[20];let u;e[21]!==p||e[22]!==f?(u=n.jsxs("div",{className:"flex gap-2",children:[p,f]}),e[21]=p,e[22]=f,e[23]=u):u=e[23];let x;e[24]!==u||e[25]!==c?(x=n.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[c,u]}),e[24]=u,e[25]=c,e[26]=x):x=e[26];let h;e[27]!==t.environments||e[28]!==t.new_token?(h=t.new_token&&(()=>{const s=t.new_token,L=t.environments.find(O=>O.token_prefix===s.slice(0,12));return n.jsx(M,{tokenPrefix:L?.token_prefix??s.slice(0,12),newToken:s})})(),e[27]=t.environments,e[28]=t.new_token,e[29]=h):h=e[29];let v;e[30]!==i.id?(v={key:"n",header:"Environment",cell:s=>n.jsx(q,{className:"font-medium hover:underline",href:I(i.id,s.id),children:s.name})},e[30]=i.id,e[31]=v):v=e[31];let N,E,P,b,A,z;e[32]===Symbol.for("react.memo_cache_sentinel")?(N={key:"tok",header:"Token",cell:te},E={key:"seen",header:"Last event",cell:ee},P={key:"ev",header:"Events (month)",align:"right",cell:Z},b={key:"d",header:"Deploys",align:"right",cell:Y},A={key:"i",header:"Open issues",align:"right",cell:X},z={key:"st",header:"",cell:W},e[32]=N,e[33]=E,e[34]=P,e[35]=b,e[36]=A,e[37]=z):(N=e[32],E=e[33],P=e[34],b=e[35],A=e[36],z=e[37]);let k;e[38]!==i.id?(k={key:"x",header:"",align:"right",cell:s=>n.jsxs("span",{className:"flex justify-end gap-1",children:[n.jsx(w,{size:"sm",variant:"ghost",onClick:()=>y.post(K(i.id,s.id)),children:"Rotate token"}),n.jsx(w,{size:"sm",variant:"ghost",onClick:()=>y.post(F(i.id,s.id)),children:s.paused?"Resume":"Pause"}),n.jsx(w,{size:"sm",variant:"ghost",className:"text-destructive",onClick:()=>confirm(`Delete ${s.name} and all its telemetry?`)&&y.delete(G(i.id,s.id)),children:"Delete"})]})},e[38]=i.id,e[39]=k):k=e[39];let j;e[40]!==v||e[41]!==k?(j=[v,N,E,P,b,A,z,k],e[40]=v,e[41]=k,e[42]=j):j=e[42];let _;e[43]!==t.environments||e[44]!==j?(_=n.jsx(J,{rows:t.environments,rowKey:ie,columns:j}),e[43]=t.environments,e[44]=j,e[45]=_):_=e[45];let g;e[46]!==x||e[47]!==h||e[48]!==_?(g=n.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:[x,h,_]}),e[46]=x,e[47]=h,e[48]=_,e[49]=g):g=e[49];let C;return e[50]!==a||e[51]!==g||e[52]!==o?(C=n.jsxs(Q,{breadcrumbs:a,children:[o,g]}),e[50]=a,e[51]=g,e[52]=o,e[53]=C):C=e[53],C}function W(t){return t.paused?n.jsx(D,{variant:"secondary",children:"paused"}):null}function X(t){return t.open_issues?n.jsx(D,{variant:"destructive",children:t.open_issues}):0}function Y(t){return t.deploys_count}function Z(t){return V(t.events_this_month)}function ee(t){return t.last_seen_at?U(t.last_seen_at):n.jsx("span",{className:"text-muted-foreground",children:"never"})}function te(t){return n.jsxs("span",{className:"font-mono text-xs",children:[t.token_prefix,"…"]})}function ie(t){return t.id}export{_e as default};
|
|
@@ -0,0 +1 @@
|
|
|
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-Degv_G9N.js";import{D as y}from"./data-table-IvA7xvrK.js";import{P as $,E as b}from"./env-layout-erSDpIXg.js";import{I,S as R}from"./status-badge-5NCVJHjo.js";import{C as D,b as H,c as K,a as L}from"./card-BaJ8kNkp.js";import{a as w,w as T,m as B}from"./format-B9SDkrWj.js";import"./chart-hover-XYPNE2CX.js";import"./empty-state-BFTnQ2oT.js";import"./badge-CApjyWcg.js";import"./app-wordmark-1SRllgHv.js";import"./app-layout-B5Fcdwfz.js";import"./live-dot-DaXEbkXo.js";import"./index-B0VXzXYG.js";import"./index-CX8Br7m9.js";import"./checkbox-Bf41R8W6.js";import"./label-B_vK19tR.js";import"./use-live-GKze1mNC.js";import"./segmented-CVKq2Xpa.js";function xe(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{xe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,C as x,j as c}from"./inertia-
|
|
1
|
+
import{c as f,C as x,j as c}from"./inertia-Degv_G9N.js";import{A as p,a as u}from"./arrow-up-DwKQcab4.js";function b(m){const e=f.c(10),{label:n,active:o,dir:i,onClick:a}=m,l=o&&"text-foreground font-semibold";let t;e[0]!==l?(t=x("hover:text-foreground inline-flex items-center gap-1",l),e[0]=l,e[1]=t):t=e[1];let s;e[2]!==o||e[3]!==i?(s=o&&(i==="asc"?c.jsx(p,{className:"size-3"}):c.jsx(u,{className:"size-3"})),e[2]=o,e[3]=i,e[4]=s):s=e[4];let r;return e[5]!==n||e[6]!==a||e[7]!==t||e[8]!==s?(r=c.jsxs("button",{type:"button",onClick:a,className:t,children:[n,s]}),e[5]=n,e[6]=a,e[7]=t,e[8]=s,e[9]=r):r=e[9],r}export{b as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,j as i}from"./inertia-
|
|
1
|
+
import{c as a,j as i}from"./inertia-Degv_G9N.js";import{S as n}from"./series-chart-D33UhdG2.js";function m(o){const e=a.c(3),{data:r,hoverKey:s}=o;let t;return e[0]!==r||e[1]!==s?(t=i.jsx(n,{data:r,className:"h-[10px] w-8",hoverKey:s}),e[0]=r,e[1]=s,e[2]=t):t=e[2],t}export{m as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as w,j as R,C,c as k}from"./inertia-Degv_G9N.js";import{a as M}from"./use-live-GKze1mNC.js";import{A as D,a as I}from"./arrow-up-DwKQcab4.js";const O=300,T="cubic-bezier(.22, 1, .36, 1)",F=2e3,Y="inline-block h-[1.15em] overflow-hidden leading-[1.15em] align-top",$="inline-block h-[1.15em] overflow-visible leading-[1.15em] align-top text-center",U="block will-change-transform",E="block h-[1.15em] leading-[1.15em]",z="inline-block h-[1.15em] leading-[1.15em]";function N(o){const t=document.createElement("span");return t.className=o,t}function P(o){let t=o.length;for(;t>0&&!/[0-9]/.test(o[t-1]);)t--;return{digits:o.slice(0,t),suffix:o.slice(t)}}function V(o){const t=N(o?$:Y);if(o)return{separator:!0,el:t,char:null};const a=N(U),s=N(E),l=N(E);return a.append(s,l),t.append(a),{separator:!1,el:t,strip:a,top:s,bottom:l,animation:null,char:null}}function q(o,{durationMs:t,easing:a}){const s=new Map;let l="";function d(e,n){e.animation?.cancel(),e.animation=null,e.top.textContent=n,e.bottom.textContent="",e.char=n}function g(e,n,m){if(typeof e.strip.animate!="function"){d(e,n);return}e.animation?.cancel();const i=e.char??n;m>0?(e.top.textContent=i,e.bottom.textContent=n):(e.top.textContent=n,e.bottom.textContent=i);const u=m>0?[{transform:"translateY(0)"},{transform:"translateY(-50%)"}]:[{transform:"translateY(-50%)"},{transform:"translateY(0)"}],r=e.strip.animate(u,{duration:t,easing:a,fill:"forwards"});e.animation=r,e.char=n,r.onfinish=()=>{e.animation===r&&d(e,n)}}function h(e){typeof e.el.animate=="function"&&e.el.animate([{opacity:0,transform:"translateY(0.35em)"},{opacity:1,transform:"none"}],{duration:t,easing:a})}return{paint(e,n){const{digits:m,suffix:i}=P(e),u=m.split(""),r=u.map((p,c)=>({key:u.length-1-c,char:p})),x=`${r.map(p=>p.key).join(",")}|${i}`,b=l==="";if(x!==l){const p=document.createDocumentFragment(),c=new Set;for(const{key:f,char:y}of r){c.add(f);const S=!/[0-9]/.test(y);let v=s.get(f);v?.separator!==S&&(v=V(S),s.set(f,v),!b&&n!==0&&h(v)),p.append(v.el)}for(const f of[...s.keys()])c.has(f)||s.delete(f);if(o.replaceChildren(p),i){const f=N(z);f.textContent=i,o.append(f)}l=x}for(const{key:p,char:c}of r){const f=s.get(p);!f||f.char===c||(f.separator?(f.el.textContent=c,f.char=c):f.char===null||n===0?d(f,c):g(f,c,n))}},destroy(){for(const e of s.values())e.separator||e.animation?.cancel()}}}function G({value:o,format:t,className:a,durationMs:s=O,easing:l=T,minIntervalMs:d=F}){const g=w.useRef(null),h=w.useRef(null),e=w.useRef(o),n=w.useRef(null),m=w.useRef(0),i=w.useRef(void 0),u=w.useRef({format:t,durationMs:s,easing:l,minIntervalMs:d});return w.useEffect(()=>{u.current={format:t,durationMs:s,easing:l,minIntervalMs:d}}),w.useEffect(()=>{const r=g.current;if(!r)return;const{format:x,durationMs:b,easing:p}=u.current,c=q(r,{durationMs:b,easing:p});return h.current=c,c.paint(x(e.current),0),()=>{clearTimeout(i.current),i.current=void 0,n.current=null,h.current=null,c.destroy()}},[]),w.useEffect(()=>{const r=h.current;if(!r||o===e.current)return;const x=c=>{m.current=Date.now(),r.paint(u.current.format(c),c>=e.current?1:-1),e.current=c},b=Date.now()-m.current,p=u.current.minIntervalMs-b;if(p<=0){x(o);return}n.current=o,i.current??=window.setTimeout(()=>{i.current=void 0;const c=n.current;n.current=null,c!==null&&c!==e.current&&x(c)},p)},[o]),R.jsx("span",{ref:g,className:C(a)})}const A="(prefers-reduced-motion: reduce)";function Q(o){const t=window.matchMedia(A);return t.addEventListener("change",o),()=>{t.removeEventListener("change",o)}}function X(){return window.matchMedia(A).matches}function B(){return w.useSyncExternalStore(Q,X,H)}function H(){return!0}function J(o){const t=k.c(15),{current:a,previous:s,goodDirection:l,caption:d}=o;if(!s)return null;const g=(a-s)/s*100;if(g===0)return null;const h=g>0?"up":"down",e=h===l,n=h==="up"?D:I,m=e?"text-live":"text-destructive";let i;t[0]!==m?(i=C("inline-flex items-center gap-0.5 font-mono text-xs tabular-nums",m),t[0]=m,t[1]=i):i=t[1];let u;t[2]!==n?(u=R.jsx(n,{className:"size-3"}),t[2]=n,t[3]=u):u=t[3];let r;t[4]!==g?(r=Math.abs(g).toFixed(1),t[4]=g,t[5]=r):r=t[5];let x;t[6]!==i||t[7]!==u||t[8]!==r?(x=R.jsxs("span",{className:i,children:[u,r,"%"]}),t[6]=i,t[7]=u,t[8]=r,t[9]=x):x=t[9];let b;t[10]!==d?(b=d&&R.jsx("span",{className:"text-muted-foreground text-[11px]",children:d}),t[10]=d,t[11]=b):b=t[11];let p;return t[12]!==x||t[13]!==b?(p=R.jsxs(R.Fragment,{children:[x,b]}),t[12]=x,t[13]=b,t[14]=p):p=t[14],p}function K(o){const t=k.c(15),{value:a,format:s}=o,l=M(),d=B();let g;t[0]!==s||t[1]!==a?(g=s(a),t[0]=s,t[1]=a,t[2]=g):g=t[2];const h=g,e=l&&!d;let n;t[3]!==e||t[4]!==s||t[5]!==h||t[6]!==a?(n=e?R.jsx(G,{value:a,format:s}):h,t[3]=e,t[4]=s,t[5]=h,t[6]=a,t[7]=n):n=t[7];let m;t[8]!==n?(m=R.jsx("span",{"aria-hidden":"true",children:n}),t[8]=n,t[9]=m):m=t[9];let i;t[10]!==h?(i=R.jsx("span",{className:"sr-only",children:h}),t[10]=h,t[11]=i):i=t[11];let u;return t[12]!==m||t[13]!==i?(u=R.jsxs(R.Fragment,{children:[m,i]}),t[12]=m,t[13]=i,t[14]=u):u=t[14],u}function et(o){const t=k.c(28),{label:a,value:s,roll:l,hint:d,tone:g,delta:h,deltaCaption:e,card:n,className:m}=o,u=(n===void 0?!1:n)&&"bg-card rounded-lg border";let r;t[0]!==m||t[1]!==u?(r=C("flex min-w-0 flex-col gap-1 px-4 py-3",u,m),t[0]=m,t[1]=u,t[2]=r):r=t[2];let x;t[3]!==a?(x=R.jsx("div",{className:"label-caps truncate",children:a}),t[3]=a,t[4]=x):x=t[4];const b=g==="destructive"&&"text-destructive",p=g==="warning"&&"text-warning",c=g==="success"&&"text-live";let f;t[5]!==b||t[6]!==p||t[7]!==c?(f=C("text-xl font-semibold tracking-tight tabular-nums sm:text-2xl",b,p,c),t[5]=b,t[6]=p,t[7]=c,t[8]=f):f=t[8];let y;t[9]!==l||t[10]!==s?(y=l?R.jsx(K,{...l}):s,t[9]=l,t[10]=s,t[11]=y):y=t[11];let S;t[12]!==f||t[13]!==y?(S=R.jsx("div",{className:f,children:y}),t[12]=f,t[13]=y,t[14]=S):S=t[14];let v;t[15]!==h||t[16]!==e?(v=h&&R.jsx(J,{...h,caption:e}),t[15]=h,t[16]=e,t[17]=v):v=t[17];let j;t[18]!==S||t[19]!==v?(j=R.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[S,v]}),t[18]=S,t[19]=v,t[20]=j):j=t[20];let L;t[21]!==d?(L=d&&R.jsx("div",{className:"text-muted-foreground truncate font-mono text-[11px]",children:d}),t[21]=d,t[22]=L):L=t[22];let _;return t[23]!==j||t[24]!==L||t[25]!==r||t[26]!==x?(_=R.jsxs("div",{className:r,children:[x,j,L]}),t[23]=j,t[24]=L,t[25]=r,t[26]=x,t[27]=_):_=t[27],_}function nt(o){const t=k.c(5),{children:a,className:s}=o;let l;t[0]!==s?(l=C("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",s),t[0]=s,t[1]=l):l=t[1];let d;return t[2]!==a||t[3]!==l?(d=R.jsx("div",{className:l,children:a}),t[2]=a,t[3]=l,t[4]=d):d=t[4],d}export{et as S,nt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,C as d,j as m}from"./inertia-
|
|
1
|
+
import{c as u,C as d,j as m}from"./inertia-Degv_G9N.js";import{B as g}from"./badge-CApjyWcg.js";import{s as x}from"./format-B9SDkrWj.js";const f={success:"border-live/30 bg-live/10 text-live",warning:"border-warning/40 bg-warning/10 text-warning",destructive:"border-danger/40 bg-danger/10 text-danger",muted:"border-border bg-muted text-muted-foreground"},v="rounded-sm px-1.5 font-mono text-[10px] tracking-wider uppercase";function j(c){const t=u.c(5),{status:e,outcome:i,label:o}=c,n=x(e,i),s=f[n];let r;t[0]!==s?(r=d(v,"tabular-nums",s),t[0]=s,t[1]=r):r=t[1];const a=o??i??e??"–";let l;return t[2]!==r||t[3]!==a?(l=m.jsx(g,{variant:"outline",className:r,children:a}),t[2]=r,t[3]=a,t[4]=l):l=t[4],l}function B(c){const t=u.c(5),{level:e}=c,o=f[e==="error"||e==="fatal"?"destructive":e==="warn"?"warning":e==="event"?"success":"muted"];let n;t[0]!==o?(n=d(v,o),t[0]=o,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s=m.jsx(g,{variant:"outline",className:n,children:e}),t[2]=e,t[3]=n,t[4]=s):s=t[4],s}function N(c){const t=u.c(5),{status:e}=c,o=f[e==="open"?"destructive":e==="resolved"?"success":"muted"];let n;t[0]!==o?(n=d(v,o),t[0]=o,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s=m.jsx(g,{variant:"outline",className:n,children:e}),t[2]=e,t[3]=n,t[4]=s):s=t[4],s}function h(c){const t=u.c(6),{children:e,tone:i,className:o}=c,s=f[i===void 0?"muted":i];let r;t[0]!==o||t[1]!==s?(r=d(v,s,o),t[0]=o,t[1]=s,t[2]=r):r=t[2];let a;return t[3]!==e||t[4]!==r?(a=m.jsx(g,{variant:"outline",className:r,children:e}),t[3]=e,t[4]=r,t[5]=a):a=t[5],a}export{N as I,h as K,B as L,j as S};
|