railwatch 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AGENTS.md +6 -2
- data/CHANGELOG.md +133 -0
- data/README.md +21 -13
- data/app/controllers/railwatch/dashboard_controller.rb +1 -0
- data/app/controllers/railwatch/requests_controller.rb +1 -19
- data/app/models/railwatch/application_record.rb +2 -2
- data/app/models/railwatch/execution_presenter.rb +1 -1
- data/app/models/railwatch/filter_query.rb +20 -0
- data/app/models/railwatch/saved_view.rb +1 -1
- data/app/models/railwatch/telemetry_record.rb +2 -2
- data/docs/configuration.md +29 -13
- data/docs/embedded.md +32 -12
- data/docs/faq.md +6 -5
- data/docs/getting-started.md +9 -5
- data/docs/troubleshooting.md +10 -6
- data/lib/generators/railwatch/install/install_generator.rb +31 -16
- data/lib/generators/railwatch/install/templates/initializer.rb.tt +4 -4
- data/lib/puma/plugin/railwatch.rb +48 -3
- data/lib/railwatch/configuration.rb +16 -1
- data/lib/railwatch/engine.rb +14 -3
- data/lib/railwatch/reporter.rb +52 -16
- data/lib/railwatch/transport/http.rb +4 -9
- data/lib/railwatch/version.rb +1 -1
- data/lib/railwatch.rb +35 -1
- data/lib/tasks/railwatch_tasks.rake +11 -4
- data/llms.txt +8 -4
- data/public/railwatch/assets/{app-layout-DDyQa72H.js → app-layout-2xAKndVD.js} +1 -1
- data/public/railwatch/assets/{app-wordmark-o9CODKP0.js → app-wordmark-Bt6XqURo.js} +1 -1
- data/public/railwatch/assets/{appearance-BwuCXabr.js → appearance-DyCfeh9o.js} +1 -1
- data/public/railwatch/assets/{arrow-up-C6PxDiY3.js → arrow-up-EmePsTKP.js} +1 -1
- data/public/railwatch/assets/{auth-layout-BRt8MGFD.js → auth-layout-BuwogWMZ.js} +1 -1
- data/public/railwatch/assets/{badge-CAxXV8za.js → badge-Dv7I-ebP.js} +1 -1
- data/public/railwatch/assets/{braces-DgomTCNf.js → braces-iZ7MEfYP.js} +1 -1
- data/public/railwatch/assets/{card-cAtqCxWl.js → card-DqdEEKcJ.js} +1 -1
- data/public/railwatch/assets/{chart-BBeBkkNa.js → chart-C4k7Ub9W.js} +1 -1
- data/public/railwatch/assets/{chart-hover-B1M9jc0y.js → chart-hover-2yZG3w2u.js} +1 -1
- data/public/railwatch/assets/{chart-panel-DUQTz_C8.js → chart-panel-CONkZcn9.js} +1 -1
- data/public/railwatch/assets/{checkbox-CmhMHWZO.js → checkbox-DKbThbxr.js} +1 -1
- data/public/railwatch/assets/{code-DESvxyTj.js → code-CYahYQHZ.js} +1 -1
- data/public/railwatch/assets/{copy-block-BkSU5832.js → copy-block-CbJum9s8.js} +1 -1
- data/public/railwatch/assets/{copy-id-D03GhN9F.js → copy-id-JmvLfkmx.js} +1 -1
- data/public/railwatch/assets/{cursor-load-more-CRyuMeQb.js → cursor-load-more-C1ylbqqL.js} +1 -1
- data/public/railwatch/assets/{data-table-BIlt7Rtm.js → data-table-CVKR2wkq.js} +1 -1
- data/public/railwatch/assets/{edit-DJ0D0wHN.js → edit-BXF5oNYA.js} +1 -1
- data/public/railwatch/assets/{edit-O0NSBWxo.js → edit-BwSEVrTG.js} +1 -1
- data/public/railwatch/assets/{edit-Bb6MKoe4.js → edit-D5BRDwLT.js} +1 -1
- data/public/railwatch/assets/{empty-state-C38il627.js → empty-state-Bn48Gplm.js} +1 -1
- data/public/railwatch/assets/{env-layout-REF7OM4q.js → env-layout-CKLL8Ds7.js} +1 -1
- data/public/railwatch/assets/{execution-path-FYLq1TwC.js → execution-path-DWovhgLi.js} +1 -1
- data/public/railwatch/assets/{filter-bar-CYog9Alp.js → filter-bar-xcbJC93z.js} +1 -1
- data/public/railwatch/assets/{flamegraph-DSs69foN.js → flamegraph-BNbNIuKT.js} +1 -1
- data/public/railwatch/assets/{frames-BUi2J5Mk.js → frames-Bk39xfJG.js} +1 -1
- data/public/railwatch/assets/{google-sign-in-button-BQiIKFdd.js → google-sign-in-button-B5as2ps1.js} +1 -1
- data/public/railwatch/assets/{index-QpTtwFwu.js → index-Atp1FTgX.js} +1 -1
- data/public/railwatch/assets/{index-C-PmdhXA.js → index-B-FXAo1w.js} +1 -1
- data/public/railwatch/assets/{index-DqTFTP8p.js → index-B0xgzHuN.js} +1 -1
- data/public/railwatch/assets/{index-so4lRrRq.js → index-BDVShWMs.js} +1 -1
- data/public/railwatch/assets/{index-C_upSl_k.js → index-BRvRkfob.js} +1 -1
- data/public/railwatch/assets/{index-CsoN51vW.js → index-BVWapDeB.js} +1 -1
- data/public/railwatch/assets/{index-CrZ3vHDL.js → index-Bd4YpOIO.js} +1 -1
- data/public/railwatch/assets/{index-BaR1U9An.js → index-BeQw69GM.js} +1 -1
- data/public/railwatch/assets/{index-Dh4IRLFI.js → index-BfitxVBv.js} +1 -1
- data/public/railwatch/assets/{index-umIAl-pL.js → index-C-EwH4lO.js} +1 -1
- data/public/railwatch/assets/{index-CICUIFHL.js → index-C8JIdb3_.js} +1 -1
- data/public/railwatch/assets/{index-CFFpnzIS.js → index-CBFCtJAR.js} +1 -1
- data/public/railwatch/assets/{index-tpz-OGUP.js → index-CDXlITyG.js} +1 -1
- data/public/railwatch/assets/{index-DW2CBbxU.js → index-COd9lT84.js} +1 -1
- data/public/railwatch/assets/{index-FhUaPPab.js → index-C_hQmVTP.js} +1 -1
- data/public/railwatch/assets/{index-JdCVBrw8.js → index-CcennT28.js} +1 -1
- data/public/railwatch/assets/{index-DrcKVG2f.js → index-CiaeS-n7.js} +1 -1
- data/public/railwatch/assets/{index-BoUBioBP.js → index-CrA7jBTK.js} +1 -1
- data/public/railwatch/assets/{index-C3A_9imx.js → index-D0mKj3Hg.js} +1 -1
- data/public/railwatch/assets/{index-BiiyMcA0.js → index-DV5MdmpY.js} +1 -1
- data/public/railwatch/assets/{index-CiPo4Gob.js → index-DaE-1xhx.js} +1 -1
- data/public/railwatch/assets/{index-CpkI015n.js → index-DdVg9LKX.js} +1 -1
- data/public/railwatch/assets/{index-DvjY3dPD.js → index-DeLtMWou.js} +1 -1
- data/public/railwatch/assets/{index-CFRLPs4J.js → index-DiQ4mqT_.js} +1 -1
- data/public/railwatch/assets/{index-DtHmuB9Q.js → index-LKgpCzoR.js} +1 -1
- data/public/railwatch/assets/{index-BeOh2t_S.js → index-S0NVaLj9.js} +1 -1
- data/public/railwatch/assets/{index-C7OtLq_3.js → index-Vj93BTR5.js} +1 -1
- data/public/railwatch/assets/{index-ZOGOB8SA.js → index-XjXcV-EO.js} +1 -1
- data/public/railwatch/assets/{index-ZSZg9rtq.js → index-Zkt4W_CM.js} +1 -1
- data/public/railwatch/assets/{index-8-hnAhOD.js → index-aPCZX-pW.js} +1 -1
- data/public/railwatch/assets/{index-DDI_Zx5V.js → index-cTzBycCg.js} +1 -1
- data/public/railwatch/assets/{index-sTYvcbkh.js → index-dpG-19ZN.js} +1 -1
- data/public/railwatch/assets/{index-r0tSIplE.js → index-gCvuyG1l.js} +1 -1
- data/public/railwatch/assets/{index-DSvlZVWG.js → index-o1xqGvLo.js} +1 -1
- data/public/railwatch/assets/{index-CGs4m_fa.js → index-w_skgMmK.js} +1 -1
- data/public/railwatch/assets/{inertia-DLew8ZNx.js → inertia-CqnzqPVD.js} +2 -2
- data/public/railwatch/assets/{input-error-cvM6_Jht.js → input-error-ByT28UdP.js} +1 -1
- data/public/railwatch/assets/{json-viewer-D922McGi.js → json-viewer-Bnu9RsJL.js} +1 -1
- data/public/railwatch/assets/{klass-CrwICqN8.js → klass-nLiBV-Az.js} +1 -1
- data/public/railwatch/assets/{label-GWl7I6sf.js → label-1nSzpSB6.js} +1 -1
- data/public/railwatch/assets/{layout-0ZAnD3zl.js → layout-D7lE1Doo.js} +1 -1
- data/public/railwatch/assets/{live-dot-D1n_BreY.js → live-dot-UdzOfzJb.js} +1 -1
- data/public/railwatch/assets/{nav-DPxr1NNC.js → nav-BRCgp2w3.js} +1 -1
- data/public/railwatch/assets/{new-DHAHDrN7.js → new-C60G72DR.js} +1 -1
- data/public/railwatch/assets/{new-D-ZzUK9a.js → new-COyDKOOb.js} +1 -1
- data/public/railwatch/assets/{new-DEVkYv-z.js → new-Cd9zPNJ8.js} +1 -1
- data/public/railwatch/assets/{new-Dz4lZf1L.js → new-DMJGKjmH.js} +1 -1
- data/public/railwatch/assets/{new-GMrRFurX.js → new-Omvf-c9s.js} +1 -1
- data/public/railwatch/assets/{new-Cdl6pqST.js → new-vjRzERL3.js} +1 -1
- data/public/railwatch/assets/onboarding-gUjJQc-6.js +1 -0
- data/public/railwatch/assets/{origin-identity-Bk9yHWZ1.js → origin-identity-M1YUPYS0.js} +1 -1
- data/public/railwatch/assets/{percentile-picker-DfSx9yJO.js → percentile-picker-BxIVblBw.js} +1 -1
- data/public/railwatch/assets/{relative-time-CjIjb8Lg.js → relative-time-DQ4kjowZ.js} +1 -1
- data/public/railwatch/assets/{release-health-4b3tivEf.js → release-health-Cb1tMOOO.js} +1 -1
- data/public/railwatch/assets/{route-C_5BUtHK.js → route-BJkoEm7r.js} +1 -1
- data/public/railwatch/assets/{segmented-BgbT3wZa.js → segmented-C4oWE73o.js} +1 -1
- data/public/railwatch/assets/{select-DmunxCKE.js → select-ocdQJdQo.js} +1 -1
- data/public/railwatch/assets/{separator-BXzEdZ_8.js → separator-Ct2UcZ2x.js} +1 -1
- data/public/railwatch/assets/{series-chart-Xf49v9cv.js → series-chart-D6upsrSn.js} +1 -1
- data/public/railwatch/assets/{show-DlRVS18-.js → show-B4bwI9x2.js} +1 -1
- data/public/railwatch/assets/{show-DnR1Dnjd.js → show-BAjfddEn.js} +1 -1
- data/public/railwatch/assets/{show-mU38uGTg.js → show-BLJOyLb_.js} +1 -1
- data/public/railwatch/assets/{show-DYskfl3-.js → show-BoVyMQS6.js} +1 -1
- data/public/railwatch/assets/{show-DXs4deaC.js → show-Bsu1rvnK.js} +1 -1
- data/public/railwatch/assets/{show-Dn-GwFZL.js → show-C6OiJ6Hr.js} +1 -1
- data/public/railwatch/assets/{show-CAl7xcex.js → show-C8TkpEgm.js} +1 -1
- data/public/railwatch/assets/{show-BLpWUHWD.js → show-CBFBiBY2.js} +1 -1
- data/public/railwatch/assets/{show-Y74rM0VT.js → show-CEhPVMMT.js} +1 -1
- data/public/railwatch/assets/{show-SHwZjXb7.js → show-CV-lG2b6.js} +1 -1
- data/public/railwatch/assets/{show-Dily73Xk.js → show-CX_pab9S.js} +1 -1
- data/public/railwatch/assets/{show-DcpTFiLi.js → show-D6lgzL6n.js} +1 -1
- data/public/railwatch/assets/{show-vQ4bndYD.js → show-DDVsv-uS.js} +1 -1
- data/public/railwatch/assets/{show-SvLOcPrx.js → show-Dwiq-8hA.js} +1 -1
- data/public/railwatch/assets/{show-B2zLAW83.js → show-eKazflRI.js} +1 -1
- data/public/railwatch/assets/{show-DSP9Cq_C.js → show-gtwKsTsl.js} +1 -1
- data/public/railwatch/assets/{show-DI8IhNUH.js → show-yEOrk6Pt.js} +1 -1
- data/public/railwatch/assets/{sort-header-Dcq9bzmo.js → sort-header-CPM6fhXv.js} +1 -1
- data/public/railwatch/assets/{sparkline-cell-BON3qQUB.js → sparkline-cell-CXCxXPWt.js} +1 -1
- data/public/railwatch/assets/{stat-DFEyFxkO.js → stat-BNEfE8X1.js} +1 -1
- data/public/railwatch/assets/{status-badge-BaUKP7Yo.js → status-badge-D0aylrM5.js} +1 -1
- data/public/railwatch/assets/{tenant-path-DPZPc985.js → tenant-path-C4aM_cO0.js} +1 -1
- data/public/railwatch/assets/{text-link-BO77t9Xk.js → text-link-CP4lqUi6.js} +1 -1
- data/public/railwatch/assets/{textarea-DTqrCiV0.js → textarea-DzJo2ds4.js} +1 -1
- data/public/railwatch/assets/{timeline-D5rJ0es2.js → timeline-BNcJ9PMc.js} +1 -1
- data/public/railwatch/assets/{transition-DMIrZVth.js → transition-BX2M1iaq.js} +1 -1
- data/public/railwatch/assets/{use-clipboard-ByoUGQqA.js → use-clipboard-C1ApSwzA.js} +1 -1
- data/public/railwatch/assets/{use-live-D7xKz2ma.js → use-live-DWwLg1Nj.js} +1 -1
- data/public/railwatch/manifest.json +1283 -1283
- metadata +116 -116
- data/public/railwatch/assets/onboarding-D1vwaHYT.js +0 -1
- /data/db/railwatch_telemetry_migrate/{20260919000000_create_export_queue.rb → 20260919000100_create_export_queue.rb} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as u,c as L,C as H}from"./inertia-
|
|
1
|
+
import{r as i,j as u,c as L,C as H}from"./inertia-CqnzqPVD.js";import{u as U}from"./app-wordmark-Bt6XqURo.js";import{c as G,d as K,a as j,u as X,P as $,C as J}from"./index-C-EwH4lO.js";import{P as S}from"./index-BDVShWMs.js";var Q=Object.defineProperty,k=(o,e)=>Q(o,"name",{value:e,configurable:!0}),w="Checkbox",[V,ue]=G(w),[W,B]=V(w);function q(o){const{__scopeCheckbox:e,checked:c,children:r,defaultChecked:n,disabled:d,form:t,name:l,onCheckedChange:s,required:f,value:v="on",internal_do_not_use_render:C}=o,[b,x]=X({prop:c,defaultProp:n??!1,onChange:s,caller:w}),[g,I]=i.useState(null),[R,_]=i.useState(null),P=i.useRef(!1),[a,p]=i.useReducer(m=>m+1,0),E=g?!!t||!!g.closest("form"):!0,y={checked:b,disabled:d,setChecked:x,control:g,setControl:I,name:l,form:t,value:v,hasConsumerStoppedPropagationRef:P,userInteractionCount:a,onUserInteraction:p,required:f,defaultChecked:h(n)?!1:n,isFormControl:E,bubbleInput:R,setBubbleInput:_};return u.jsx(W,{scope:e,...y,children:A(C)?C(y):r})}k(q,"CheckboxProvider");var Y="CheckboxTrigger",Z=i.forwardRef(k(function({__scopeCheckbox:e,onKeyDown:c,onClick:r,...n},d){const{control:t,value:l,disabled:s,checked:f,required:v,setControl:C,setChecked:b,hasConsumerStoppedPropagationRef:x,onUserInteraction:g,isFormControl:I,bubbleInput:R}=B(Y,e),_=U(d,C),P=i.useRef(f);return i.useEffect(()=>{const a=t?.form;if(a){const p=k(()=>b(P.current),"reset");return a.addEventListener("reset",p),()=>a.removeEventListener("reset",p)}},[t,b]),u.jsx(S.button,{type:"button",role:"checkbox","aria-checked":h(f)?"mixed":f,"aria-required":v,"data-state":N(f),"data-disabled":s?"":void 0,disabled:s,value:l,...n,ref:_,onKeyDown:j(c,a=>{a.key==="Enter"&&a.preventDefault()}),onClick:j(r,a=>{g(),b(p=>h(p)?!0:!p),R&&I&&(x.current=a.isPropagationStopped(),x.current||a.stopPropagation())})})},"CheckboxTrigger")),ee=i.forwardRef(k(function(e,c){const{__scopeCheckbox:r,name:n,checked:d,defaultChecked:t,required:l,disabled:s,value:f,onCheckedChange:v,form:C,...b}=e;return u.jsx(q,{__scopeCheckbox:r,checked:d,defaultChecked:t,disabled:s,required:l,onCheckedChange:v,name:n,form:C,value:f,internal_do_not_use_render:({isFormControl:x})=>u.jsxs(u.Fragment,{children:[u.jsx(Z,{...b,ref:c,__scopeCheckbox:r}),x&&u.jsx(ne,{__scopeCheckbox:r})]})})},"Checkbox")),te="CheckboxIndicator",re=i.forwardRef(k(function(e,c){const{__scopeCheckbox:r,forceMount:n,...d}=e,t=B(te,r);return u.jsx($,{present:n||h(t.checked)||t.checked===!0,children:u.jsx(S.span,{"data-state":N(t.checked),"data-disabled":t.disabled?"":void 0,...d,ref:c,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),oe="CheckboxBubbleInput",ne=i.forwardRef(k(function({__scopeCheckbox:e,onClick:c,...r},n){const{control:d,hasConsumerStoppedPropagationRef:t,userInteractionCount:l,checked:s,defaultChecked:f,required:v,disabled:C,name:b,value:x,form:g,bubbleInput:I,setBubbleInput:R}=B(oe,e),_=U(n,R),P=K(d),a=i.useRef(!1),p=i.useRef(s),E=i.useRef(l);i.useEffect(()=>{const m=I;if(!m)return;const F=window.HTMLInputElement.prototype,T=Object.getOwnPropertyDescriptor(F,"checked").set,M=l!==E.current;E.current=l;const O=p.current!==s;p.current=s;const z=!(M&&t.current);if(O&&T){a.current=!M;const D=new Event("click",{bubbles:z});m.indeterminate=h(s),T.call(m,h(s)?!1:s),m.dispatchEvent(D),a.current=!1}},[I,s,t,l]);const y=i.useRef(h(s)?!1:s);return u.jsx(S.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??y.current,required:v,disabled:C,name:b,value:x,form:g,...r,tabIndex:-1,ref:_,onClick:j(c,m=>{a.current&&m.stopPropagation()}),style:{...r.style,...P,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function A(o){return typeof o=="function"}k(A,"isFunction");function h(o){return o==="indeterminate"}k(h,"isIndeterminate");function N(o){return h(o)?"indeterminate":o?"checked":"unchecked"}k(N,"getState");function le(o){const e=L.c(9);let c,r;e[0]!==o?({className:c,...r}=o,e[0]=o,e[1]=c,e[2]=r):(c=e[1],r=e[2]);let n;e[3]!==c?(n=H("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",c),e[3]=c,e[4]=n):n=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=u.jsx(re,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:u.jsx(J,{className:"size-3.5"})}),e[5]=d):d=e[5];let t;return e[6]!==r||e[7]!==n?(t=u.jsx(ee,{"data-slot":"checkbox",className:n,...r,children:d}),e[6]=r,e[7]=n,e[8]=t):t=e[8],t}export{le as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,C as a,j as i}from"./inertia-
|
|
1
|
+
import{c as l,C as a,j as i}from"./inertia-CqnzqPVD.js";function m(c){const t=l.c(5),{children:n,className:o}=c;let e;t[0]!==o?(e=a("block max-w-full truncate font-mono text-xs",o),t[0]=o,t[1]=e):e=t[1];let s;return t[2]!==n||t[3]!==e?(s=i.jsx("code",{className:e,title:n,children:n}),t[2]=n,t[3]=e,t[4]=s):s=t[4],s}function x(c){const t=l.c(5),{children:n,className:o}=c;let e;t[0]!==o?(e=a("font-mono text-xs",o),t[0]=o,t[1]=e):e=t[1];let s;return t[2]!==n||t[3]!==e?(s=i.jsx("span",{className:e,children:n}),t[2]=n,t[3]=e,t[4]=s):s=t[4],s}export{x as M,m as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,r as j,C as y,j as l}from"./inertia-
|
|
1
|
+
import{c as h,r as j,C as y,j as l}from"./inertia-CqnzqPVD.js";import{B as E}from"./app-wordmark-Bt6XqURo.js";import{u as N,C as b}from"./use-clipboard-C1ApSwzA.js";import{C as v}from"./index-C-EwH4lO.js";const z=1500;function R(C){const e=h.c(17),{code:t,className:p}=C,[,m]=N(),[r,f]=j.useState(!1);let c;e[0]!==t||e[1]!==m?(c=()=>{m(t).then(x=>{x&&(f(!0),window.setTimeout(()=>f(!1),z))})},e[0]=t,e[1]=m,e[2]=c):c=e[2];const u=c;let s;e[3]!==p?(s=y("relative",p),e[3]=p,e[4]=s):s=e[4];let o;e[5]!==t?(o=l.jsx("pre",{className:"bg-muted overflow-x-auto rounded p-3 pr-10 font-mono text-xs",children:t}),e[5]=t,e[6]=o):o=e[6];const d=r?"Copied code":"Copy code";let a;e[7]!==r?(a=r?l.jsx(v,{className:"size-3.5 text-emerald-500"}):l.jsx(b,{className:"size-3.5 opacity-60"}),e[7]=r,e[8]=a):a=e[8];let i;e[9]!==u||e[10]!==d||e[11]!==a?(i=l.jsx(E,{type:"button","aria-label":d,variant:"ghost",size:"icon",className:"absolute top-1.5 right-1.5 size-6",onClick:u,children:a}),e[9]=u,e[10]=d,e[11]=a,e[12]=i):i=e[12];let n;return e[13]!==s||e[14]!==o||e[15]!==i?(n=l.jsxs("div",{className:s,children:[o,i]}),e[13]=s,e[14]=o,e[15]=i,e[16]=n):n=e[16],n}export{R as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,r as y,C as h,j as m}from"./inertia-
|
|
1
|
+
import{c as d,r as y,C as h,j as m}from"./inertia-CqnzqPVD.js";import{B as j}from"./app-wordmark-Bt6XqURo.js";import{u as E,C as N}from"./use-clipboard-C1ApSwzA.js";import{C as b}from"./index-C-EwH4lO.js";const z=1500;function v(f){const t=d.c(12),{value:o,label:C,className:n}=f,[,r]=E(),[l,u]=y.useState(!1);let a;t[0]!==r||t[1]!==o?(a=()=>{r(o).then(x=>{x&&(u(!0),window.setTimeout(()=>u(!1),z))})},t[0]=r,t[1]=o,t[2]=a):a=t[2];const c=a;let s;t[3]!==n?(s=h("h-auto gap-1.5 px-1.5 py-0.5 font-mono text-xs",n),t[3]=n,t[4]=s):s=t[4];const p=C??o;let e;t[5]!==l?(e=l?m.jsx(b,{className:"size-3 text-emerald-500"}):m.jsx(N,{className:"size-3 opacity-60"}),t[5]=l,t[6]=e):e=t[6];let i;return t[7]!==c||t[8]!==s||t[9]!==p||t[10]!==e?(i=m.jsxs(j,{type:"button",variant:"ghost",size:"sm",className:s,onClick:c,children:[p,e]}),t[7]=c,t[8]=s,t[9]=p,t[10]=e,t[11]=i):i=t[11],i}export{v as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,r as x,e as f,j as u}from"./inertia-
|
|
1
|
+
import{c as m,r as x,e as f,j as u}from"./inertia-CqnzqPVD.js";import{B as p}from"./app-wordmark-Bt6XqURo.js";function j(c){const t=m.c(8),{meta:e,href:n,only:i}=c,[o,l]=x.useState(!1);if(!e.has_more||!e.next_cursor)return null;let r;t[0]!==n||t[1]!==e.next_cursor||t[2]!==i?(r=()=>f.visit(n(e.next_cursor),{only:i,preserveState:!0,preserveScroll:!0,onStart:()=>l(!0),onFinish:()=>l(!1)}),t[0]=n,t[1]=e.next_cursor,t[2]=i,t[3]=r):r=t[3];const a=o?"Loading…":"Load "+e.limit+" more";let s;return t[4]!==o||t[5]!==r||t[6]!==a?(s=u.jsx("div",{className:"flex justify-center pt-3",children:u.jsx(p,{type:"button",variant:"outline",disabled:o,onClick:r,children:a})}),t[4]=o,t[5]=r,t[6]=a,t[7]=s):s=t[7],s}export{j as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j,C as h,j as o,r as d}from"./inertia-
|
|
1
|
+
import{c as j,C as h,j as o,r as d}from"./inertia-CqnzqPVD.js";import{u as C}from"./chart-hover-2yZG3w2u.js";import{E as D}from"./empty-state-Bn48Gplm.js";function _(n){const e=j.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=h("w-full caption-bottom text-sm",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==t||e[6]!==l?(r=o.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:o.jsx("table",{"data-slot":"table",className:l,...t})}),e[5]=t,e[6]=l,e[7]=r):r=e[7],r}function M(n){const e=j.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=h("[&_tr]:border-b",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==t||e[6]!==l?(r=o.jsx("thead",{"data-slot":"table-header",className:l,...t}),e[5]=t,e[6]=l,e[7]=r):r=e[7],r}function S(n){const e=j.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=h("[&_tr:last-child]:border-0",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==t||e[6]!==l?(r=o.jsx("tbody",{"data-slot":"table-body",className:l,...t}),e[5]=t,e[6]=l,e[7]=r):r=e[7],r}function T(n){const e=j.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=h("hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==t||e[6]!==l?(r=o.jsx("tr",{"data-slot":"table-row",className:l,...t}),e[5]=t,e[6]=l,e[7]=r):r=e[7],r}function I(n){const e=j.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=h("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==t||e[6]!==l?(r=o.jsx("th",{"data-slot":"table-head",className:l,...t}),e[5]=t,e[6]=l,e[7]=r):r=e[7],r}function H(n){const e=j.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=h("px-3 py-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==t||e[6]!==l?(r=o.jsx("td",{"data-slot":"table-cell",className:l,...t}),e[5]=t,e[6]=l,e[7]=r):r=e[7],r}function K(n){return n.defaultPrevented||n.isComposing||n.repeat||n.metaKey||n.ctrlKey||n.altKey||n.shiftKey||n.target instanceof Element&&!!n.target.closest('input, textarea, select, button, a, [contenteditable]:not([contenteditable="false"]), [role="button"], [role="combobox"], [role="textbox"], [role="menu"], [role="listbox"], [role="dialog"]')}const N=new Map;let x;function $({rows:n,rowKey:e,onOpen:s,enabled:t=!0}){const[l,r]=d.useState(null),[u]=d.useState(()=>Symbol("row-nav"));function v(){!t||x===u||(x&&N.get(x)?.(),x=u)}d.useEffect(()=>{if(t)return N.set(u,()=>r(null)),x??=u,()=>{N.delete(u),x===u&&(x=N.keys().next().value)}},[t,u]);const w=d.useRef(n),m=d.useRef(e),g=d.useRef(s);return d.useEffect(()=>{w.current=n,m.current=e,g.current=s}),d.useEffect(()=>{if(!t)return;function b(c){if(x!==u||K(c))return;if(c.key==="/"){const i=document.querySelector("[data-filter-bar-input]");i&&(c.preventDefault(),i.focus());return}const f=w.current,y=m.current,a=f.findIndex(i=>y(i)===l);if(c.key==="j"){if(f.length===0)return;c.preventDefault();const i=Math.min(a+1,f.length-1);r(y(f[i]))}else if(c.key==="k"){if(f.length===0)return;c.preventDefault();const i=a<0?0:Math.max(a-1,0);r(y(f[i]))}else c.key==="Enter"?a>=0&&(c.preventDefault(),g.current(f[a])):c.key==="o"?a>=0&&(c.preventDefault(),g.current(f[a],{newTab:!0})):c.key==="Escape"&&r(null)}return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[l,t,u]),{highlighted:l,setHighlighted:r,activate:v}}const B='a, button, input, select, textarea, [role="button"], [role="link"], [contenteditable="true"]';function L(n){return n instanceof Element&&n.closest(B)}function V({rows:n,columns:e,rowKey:s,empty:t="Nothing here yet.",onRowClick:l,keyboardNav:r,hoverKey:u,rowClassName:v,className:w}){const{highlighted:m,activate:g}=$({rows:n,rowKey:s,onOpen:r?.onOpen??(()=>{}),enabled:!!r&&r?.enabled!==!1}),b=d.useRef(new Map);d.useEffect(()=>{m!=null&&b.current.get(m)?.scrollIntoView({block:"nearest"})},[m]),d.useEffect(()=>{if(!r?.onHighlightChange)return;const a=n.find(i=>s(i)===m)??null;r.onHighlightChange(a)},[m]);const{hoveredKey:c,setHoveredKey:f}=C(),y=a=>h(a.align==="right"&&"text-right",a.hideOnMobile&&"hidden md:table-cell",a.grow&&"w-full max-w-0 truncate",a.className);return o.jsx("div",{tabIndex:r&&r.enabled!==!1?0:void 0,onFocusCapture:g,onPointerDownCapture:g,className:h("bg-card -mx-3 overflow-x-auto border-y md:mx-0 md:rounded-lg md:border",w),children:o.jsxs(_,{children:[o.jsx(M,{children:o.jsx(T,{className:"hover:bg-transparent",children:e.map(a=>o.jsx(I,{className:y(a),children:a.header},a.key))})}),o.jsxs(S,{children:[n.length===0&&o.jsx(T,{children:o.jsx(H,{colSpan:e.length,className:"p-0 whitespace-normal",children:typeof t=="string"?o.jsx(D,{title:t}):o.jsx("div",{className:"text-muted-foreground min-h-24 text-center",children:t})})}),n.map(a=>{const i=s(a),R=!!r&&m===i,E=u?.(a),k=E!=null&&c===E;return o.jsx(T,{ref:p=>{p?b.current.set(i,p):b.current.delete(i)},"data-state":R?"highlighted":void 0,"data-hovered":k||void 0,className:h(l&&"cursor-pointer",v?.(a),R&&"bg-accent shadow-[inset_2px_0_0_0_var(--primary)]",k&&!R&&"bg-accent/50"),onClick:l?p=>{L(p.target)||l(a)}:void 0,onMouseEnter:E?()=>f(E):void 0,onMouseLeave:E?()=>f(null):void 0,children:e.map(p=>o.jsx(H,{className:h("py-1.5 text-xs",p.align==="right"&&"font-mono tabular-nums",y(p)),children:p.cell(a)},p.key))},i)})]})]})})}export{V as D,K as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,R as j,j as e,H as _,F as g}from"./inertia-
|
|
1
|
+
import{c as h,R as j,j as e,H as _,F as g}from"./inertia-CqnzqPVD.js";import{I as p}from"./input-error-ByT28UdP.js";import{B as y}from"./app-wordmark-Bt6XqURo.js";import{L as w,I as f}from"./label-1nSzpSB6.js";import{S as b,A as N}from"./auth-layout-BuwogWMZ.js";import"./index-BDVShWMs.js";import"./copy-DaQMJWoT.js";import"./empty-state-Bn48Gplm.js";function k(x){const s=h.c(11),{sid:d,email:a}=x;let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(_,{title:"Reset password"}),s[0]=t):t=s[0];let l;s[1]===Symbol.for("react.memo_cache_sentinel")?(l=j(),s[1]=l):l=s[1];let r;s[2]!==a||s[3]!==d?(r=n=>({...n,sid:d,email:a}),s[2]=a,s[3]=d,s[4]=r):r=s[4];let i;s[5]===Symbol.for("react.memo_cache_sentinel")?(i=["password","password_confirmation"],s[5]=i):i=s[5];let o;s[6]!==a?(o=n=>{const{processing:u,errors:c}=n;return e.jsxs("div",{className:"grid gap-6",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(w,{htmlFor:"email",children:"Email"}),e.jsx(f,{id:"email",type:"email",name:"email",autoComplete:"email",value:a,className:"mt-1 block w-full",readOnly:!0}),e.jsx(p,{messages:c.email,className:"mt-2"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(w,{htmlFor:"password",children:"Password"}),e.jsx(f,{id:"password",type:"password",name:"password",autoComplete:"new-password",className:"mt-1 block w-full",autoFocus:!0,placeholder:"Password"}),e.jsx(p,{messages:c.password})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(w,{htmlFor:"password_confirmation",children:"Confirm password"}),e.jsx(f,{id:"password_confirmation",type:"password",name:"password_confirmation",autoComplete:"new-password",className:"mt-1 block w-full",placeholder:"Confirm password"}),e.jsx(p,{messages:c.password_confirmation,className:"mt-2"})]}),e.jsxs(y,{type:"submit",className:"mt-4 w-full",disabled:u,children:[u&&e.jsx(b,{}),"Reset password"]})]})},s[6]=a,s[7]=o):o=s[7];let m;return s[8]!==r||s[9]!==o?(m=e.jsxs(N,{title:"Reset password",description:"Please enter your new password below",children:[t,e.jsx(g,{method:"put",action:l,transform:r,resetOnSuccess:i,children:o})]}),s[8]=r,s[9]=o,s[10]=m):m=s[10],m}export{k as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as L,g as K,s as P,j as s,C as F,H as O,F as D}from"./inertia-
|
|
1
|
+
import{c as L,g as K,s as P,j as s,C as F,H as O,F as D}from"./inertia-CqnzqPVD.js";import{I as E}from"./input-error-ByT28UdP.js";import{R as W}from"./relative-time-DQ4kjowZ.js";import{B}from"./app-wordmark-Bt6XqURo.js";import{b as k,c as A,C as T,a as C}from"./card-DqdEEKcJ.js";import{L as S,I}from"./label-1nSzpSB6.js";import{T as M}from"./textarea-DzJo2ds4.js";import{A as $}from"./app-layout-2xAKndVD.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./format-B9SDkrWj.js";import"./checkbox-DKbThbxr.js";const q=`# Nothing to add under Kamal: the gem already stamps records with
|
|
2
2
|
# KAMAL_HOST, the same host the post-deploy hook registers here.
|
|
3
3
|
# Anywhere else, name the host yourself:
|
|
4
4
|
Railwatch.configure do |c|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,g as b,j as s,H as V,F as k,e as D}from"./inertia-
|
|
1
|
+
import{c as L,g as b,j as s,H as V,F as k,e as D}from"./inertia-CqnzqPVD.js";import{I as y}from"./input-error-ByT28UdP.js";import{B as N}from"./app-wordmark-Bt6XqURo.js";import{b as A,c as w,C as F,a as C}from"./card-DqdEEKcJ.js";import{L as u,I as g}from"./label-1nSzpSB6.js";import{A as H}from"./app-layout-2xAKndVD.js";import"./index-BDVShWMs.js";import"./live-dot-UdzOfzJb.js";import"./index-C-EwH4lO.js";import"./checkbox-DKbThbxr.js";function K(p){const e=L.c(32),t=p.application,E=t.name;let r;e[0]!==t.id?(r=b(t.id),e[0]=t.id,e[1]=r):r=e[1];let a;e[2]!==t.name||e[3]!==r?(a={title:E,href:r},e[2]=t.name,e[3]=r,e[4]=a):a=e[4];let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h={title:"Edit",href:"#"},e[5]=h):h=e[5];let i;e[6]!==a?(i=[a,h],e[6]=a,e[7]=i):i=e[7];const v=`Edit ${t.name}`;let l;e[8]!==v?(l=s.jsx(V,{title:v}),e[8]=v,e[9]=l):l=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(A,{children:s.jsx(w,{children:"Edit application"})}),e[10]=f):f=e[10];let o;e[11]!==t.id?(o=b(t.id),e[11]=t.id,e[12]=o):o=e[12];let n;e[13]!==t.default_branch||e[14]!==t.issue_prefix||e[15]!==t.name||e[16]!==t.repository_url||e[17]!==p.auto_resolve_after_days?(n=S=>{const{errors:j,processing:I}=S;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(u,{htmlFor:"name",children:"Name"}),s.jsx(g,{id:"name",name:"name",defaultValue:t.name,required:!0}),s.jsx(y,{messages:j.name})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(u,{htmlFor:"issue_prefix",children:"Issue prefix"}),s.jsx(g,{id:"issue_prefix",name:"issue_prefix",defaultValue:t.issue_prefix,maxLength:8}),s.jsx(y,{messages:j.issue_prefix})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(u,{htmlFor:"repository_url",children:"Repository URL"}),s.jsx(g,{id:"repository_url",name:"repository_url",defaultValue:t.repository_url??"",placeholder:"https://github.com/org/repo"}),s.jsx(y,{messages:j.repository_url})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(u,{htmlFor:"default_branch",children:"Default branch"}),s.jsx(g,{id:"default_branch",name:"default_branch",defaultValue:t.default_branch}),s.jsx(y,{messages:j.default_branch}),s.jsx("p",{className:"text-muted-foreground text-xs",children:"Stack frames link into this repository at the deploy's git SHA when one was recorded, and at this branch otherwise."})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(u,{htmlFor:"auto_resolve_after_days",children:"Auto-resolve issues"}),s.jsxs("select",{id:"auto_resolve_after_days",name:"auto_resolve_after_days",defaultValue:p.auto_resolve_after_days??"",className:"border-input bg-background h-9 rounded-md border px-3 text-sm",children:[s.jsx("option",{value:"",children:"Never"}),s.jsx("option",{value:"7",children:"After 7 days without a recurrence"}),s.jsx("option",{value:"14",children:"After 14 days without a recurrence"}),s.jsx("option",{value:"30",children:"After 30 days without a recurrence"})]}),s.jsx("p",{className:"text-muted-foreground text-xs",children:"Applies to every application in this account."})]}),s.jsx(N,{disabled:I,children:"Save"})]})},e[13]=t.default_branch,e[14]=t.issue_prefix,e[15]=t.name,e[16]=t.repository_url,e[17]=p.auto_resolve_after_days,e[18]=n):n=e[18];let d;e[19]!==o||e[20]!==n?(d=s.jsxs(F,{children:[f,s.jsx(C,{children:s.jsx(k,{method:"patch",action:o,className:"space-y-4",children:n})})]}),e[19]=o,e[20]=n,e[21]=d):d=e[21];let x;e[22]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(A,{children:s.jsx(w,{children:"Danger zone"})}),e[22]=x):x=e[22];let c;e[23]!==t.id?(c=s.jsxs(F,{className:"border-destructive/40",children:[x,s.jsx(C,{children:s.jsx(N,{variant:"destructive",size:"sm",onClick:()=>confirm("Delete this application, its environments, telemetry, and issues?")&&D.delete(b(t.id)),children:"Delete application"})})]}),e[23]=t.id,e[24]=c):c=e[24];let m;e[25]!==d||e[26]!==c?(m=s.jsxs("div",{className:"mx-auto w-full max-w-md space-y-4 p-6",children:[d,c]}),e[25]=d,e[26]=c,e[27]=m):m=e[27];let _;return e[28]!==m||e[29]!==i||e[30]!==l?(_=s.jsxs(H,{breadcrumbs:i,children:[l,m]}),e[28]=m,e[29]=i,e[30]=l,e[31]=_):_=e[31],_}export{K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as y,C as N,r as b,j as t}from"./inertia-
|
|
1
|
+
import{c as y,C as N,r as b,j as t}from"./inertia-CqnzqPVD.js";function v(g){const e=y.c(13),{className:a}=g,c=b.useId();let r;e[0]!==a?(r=N("text-foreground/35 dark:text-foreground/40 pointer-events-none absolute inset-x-0 top-1/2 h-12 w-full -translate-y-1/2","[mask-composite:intersect]","[mask-image:linear-gradient(to_right,transparent,black_10%,black_90%,transparent),radial-gradient(ellipse_200px_160%_at_50%_50%,transparent_20%,black_100%)]","md:[mask-image:linear-gradient(to_right,transparent,black_10%,black_90%,transparent),radial-gradient(ellipse_300px_160%_at_50%_50%,transparent_35%,black_100%)]",a),e[0]=a,e[1]=r):r=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("rect",{x:"9",y:"9",width:"4",height:"30",rx:"1",fill:"currentColor"}),e[2]=i):i=e[2];let l;e[3]!==c?(l=t.jsx("defs",{children:t.jsx("pattern",{id:c,width:"22",height:"48",patternUnits:"userSpaceOnUse",children:i})}),e[3]=c,e[4]=l):l=e[4];const n=`url(#${c})`;let s;e[5]!==n?(s=t.jsx("rect",{width:"100%",height:"100%",fill:n}),e[5]=n,e[6]=s):s=e[6];let o,d;e[7]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("rect",{y:"16",width:"100%",height:"2.5",fill:"currentColor"}),d=t.jsx("rect",{y:"29.5",width:"100%",height:"2.5",fill:"currentColor"}),e[7]=o,e[8]=d):(o=e[7],d=e[8]);let x;return e[9]!==r||e[10]!==l||e[11]!==s?(x=t.jsxs("svg",{"aria-hidden":!0,className:r,preserveAspectRatio:"none",children:[l,s,o,d]}),e[9]=r,e[10]=l,e[11]=s,e[12]=x):x=e[12],x}const k={clear:"text-live",caution:"text-warning",stop:"text-danger"},j={stop:8,caution:17,clear:26},w=["stop","caution","clear"];function C(g){const e=y.c(8),{aspect:a,className:c}=g;let r;e[0]!==c?(r=N("pointer-events-none absolute top-1/2 h-16 w-5 -translate-y-[calc(50%+8px)]","left-[calc(50%+100px)] md:left-[calc(50%+150px)]",c),e[0]=c,e[1]=r):r=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsxs("g",{className:"text-foreground/35 dark:text-foreground/40",children:[t.jsx("rect",{x:"9",y:"33",width:"2",height:"26",rx:"1",fill:"currentColor"}),t.jsx("rect",{x:"5",y:"58",width:"10",height:"2",rx:"1",fill:"currentColor"}),t.jsx("rect",{x:"4.75",y:"1.75",width:"10.5",height:"31.5",rx:"5.25",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})]}),e[2]=i):i=e[2];let l;e[3]!==a?(l=w.map(s=>s===a?t.jsxs("g",{className:k[s],"data-lamp":s,children:[t.jsx("circle",{cx:"10",cy:j[s],r:"6",fill:"currentColor",opacity:"0.2",className:"blur-[2px]"}),t.jsx("circle",{cx:"10",cy:j[s],r:"3",fill:"currentColor"})]},s):t.jsx("circle",{cx:"10",cy:j[s],r:"3",className:"text-foreground/15",fill:"currentColor"},s)),e[3]=a,e[4]=l):l=e[4];let n;return e[5]!==r||e[6]!==l?(n=t.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 20 64",className:r,children:[i,l]}),e[5]=r,e[6]=l,e[7]=n):n=e[7],n}function E(g){const e=y.c(22),{icon:a,title:c,description:r,action:i,signal:l,className:n}=g,s=l===void 0?"clear":l;let o;e[0]!==n?(o=N("relative flex min-h-48 items-center justify-center overflow-hidden px-4 py-8 text-center",n),e[0]=n,e[1]=o):o=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(v,{}),e[2]=d):d=e[2];let x;e[3]!==s?(x=t.jsx(C,{aspect:s}),e[3]=s,e[4]=x):x=e[4];let f;e[5]!==a?(f=a&&t.jsx("span",{className:"bg-muted text-muted-foreground mb-1 flex size-9 items-center justify-center rounded-md",children:t.jsx(a,{className:"size-4"})}),e[5]=a,e[6]=f):f=e[6];let m;e[7]!==c?(m=t.jsx("span",{className:"text-sm font-medium",children:c}),e[7]=c,e[8]=m):m=e[8];let h;e[9]!==r?(h=r&&t.jsx("span",{className:"text-muted-foreground text-xs leading-relaxed",children:r}),e[9]=r,e[10]=h):h=e[10];let u;e[11]!==i?(u=i&&t.jsx("div",{className:"mt-2",children:i}),e[11]=i,e[12]=u):u=e[12];let p;e[13]!==f||e[14]!==m||e[15]!==h||e[16]!==u?(p=t.jsxs("div",{className:"relative flex max-w-xs flex-col items-center gap-1.5",children:[f,m,h,u]}),e[13]=f,e[14]=m,e[15]=h,e[16]=u,e[17]=p):p=e[17];let _;return e[18]!==o||e[19]!==x||e[20]!==p?(_=t.jsxs("div",{className:o,"aria-live":"polite",children:[d,x,p]}),e[18]=o,e[19]=x,e[20]=p,e[21]=_):_=e[21],_}export{E,C as S,v as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as P,j as n,c as O,C as le,u as U,e as X,g as ge,o as ve,H as xe}from"./inertia-DLew8ZNx.js";import{b as Pe}from"./badge-CAxXV8za.js";import{t as we,v as be,w as Ce,D as _e,C as je,x as Se,y as De,z as Re,E as ye,H as Oe,J as Ne,K as Ie,A as Te}from"./app-layout-DDyQa72H.js";import{u as Ee}from"./use-live-D7xKz2ma.js";import{d as ie,R as $e,u as ke,A as Ae,P as Me,h as Fe,g as Le,f as ze,F as He,e as We,C as Ge,t as Ue,L as Ve}from"./live-dot-D1n_BreY.js";import{a as q}from"./format-B9SDkrWj.js";import{u as ce,a as Be,B as Q}from"./app-wordmark-o9CODKP0.js";import{a as ne,S as Ke}from"./segmented-BgbT3wZa.js";import{L as re,I as ae}from"./label-GWl7I6sf.js";import{c as Ye,u as Je,a as Z,P as de}from"./index-umIAl-pL.js";import{P as Ze}from"./index-so4lRrRq.js";var qe=Object.defineProperty,T=(t,e)=>qe(t,"name",{value:e,configurable:!0}),ee="Popover",[ue,Ft]=Ye(ee,[ie]),te=ie(),[Qe,W]=ue(ee),Xe=T(t=>{const{__scopePopover:e,children:o,open:s,defaultOpen:l,onOpenChange:c,modal:i=!1}=t,r=te(e),a=P.useRef(null),[u,d]=P.useState(!1),[f,p]=Je({prop:s,defaultProp:l??!1,onChange:c,caller:ee});return n.jsx($e,{...r,children:n.jsx(Qe,{scope:e,contentId:ke(),triggerRef:a,open:f,onOpenChange:p,onOpenToggle:P.useCallback(()=>p(m=>!m),[p]),hasCustomAnchor:u,onCustomAnchorAdd:P.useCallback(()=>d(!0),[]),onCustomAnchorRemove:P.useCallback(()=>d(!1),[]),modal:i,children:o})})},"Popover"),et="PopoverTrigger",tt=P.forwardRef(T(function(e,o){const{__scopePopover:s,...l}=e,c=W(et,s),i=te(s),r=ce(o,c.triggerRef),a=n.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":oe(c.open),...l,ref:r,onClick:Z(e.onClick,c.onOpenToggle)});return c.hasCustomAnchor?a:n.jsx(Ae,{asChild:!0,...i,children:a})},"PopoverTrigger")),pe="PopoverPortal",[ot,st]=ue(pe,{forceMount:void 0}),nt=T(t=>{const{__scopePopover:e,forceMount:o,children:s,container:l}=t,c=W(pe,e);return n.jsx(ot,{scope:e,forceMount:o,children:n.jsx(de,{present:o||c.open,children:n.jsx(Me,{asChild:!0,container:l,children:s})})})},"PopoverPortal"),G="PopoverContent",rt=P.forwardRef(T(function(e,o){const s=st(G,e.__scopePopover),{forceMount:l=s.forceMount,...c}=e,i=W(G,e.__scopePopover);return n.jsx(de,{present:l||i.open,children:i.modal?n.jsx(lt,{...c,ref:o}):n.jsx(it,{...c,ref:o})})},"PopoverContent")),at=Be("PopoverContent.RemoveScroll"),lt=P.forwardRef(T(function(e,o){const s=W(G,e.__scopePopover),l=P.useRef(null),c=ce(o,l),i=P.useRef(!1);return P.useEffect(()=>{const r=l.current;if(r)return Fe(r)},[]),n.jsx(Le,{as:at,allowPinchZoom:!0,children:n.jsx(fe,{...e,ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,r=>{r.preventDefault(),i.current||s.triggerRef.current?.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,r=>{const a=r.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,d=a.button===2||u;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),it=P.forwardRef(T(function(e,o){const s=W(G,e.__scopePopover),l=P.useRef(!1),c=P.useRef(!1);return n.jsx(fe,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(l.current||s.triggerRef.current?.focus(),i.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(l.current=!0,i.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const r=i.target;s.triggerRef.current?.contains(r)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&c.current&&i.preventDefault()}})},"PopoverContentNonModal")),fe=P.forwardRef(T(function(e,o){const{__scopePopover:s,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:i,disableOutsidePointerEvents:r,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...p}=e,m=W(G,s),h=te(s);return ze(),n.jsx(He,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:i,children:n.jsx(We,{asChild:!0,disableOutsidePointerEvents:r,onInteractOutside:f,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),deferPointerDownOutside:!0,children:n.jsx(Ge,{"data-state":oe(m.open),role:"dialog",id:m.contentId,...h,...p,ref:o,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function oe(t){return t?"open":"closed"}T(oe,"getState");var ct=Xe,dt=tt,ut=nt,pt=rt;function ft(t){const e=O.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let s;return e[2]!==o?(s=n.jsx(ct,{"data-slot":"popover",...o}),e[2]=o,e[3]=s):s=e[3],s}function mt(t){const e=O.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let s;return e[2]!==o?(s=n.jsx(dt,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=s):s=e[3],s}function ht(t){const e=O.c(12);let o,s,l,c;e[0]!==t?({className:o,align:l,sideOffset:c,...s}=t,e[0]=t,e[1]=o,e[2]=s,e[3]=l,e[4]=c):(o=e[1],s=e[2],l=e[3],c=e[4]);const i=l===void 0?"center":l,r=c===void 0?4:c;let a;e[5]!==o?(a=le("bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=a):a=e[6];let u;return e[7]!==i||e[8]!==s||e[9]!==r||e[10]!==a?(u=n.jsx(ut,{children:n.jsx(pt,{"data-slot":"popover-content",align:i,sideOffset:r,className:a,...s})}),e[7]=i,e[8]=s,e[9]=r,e[10]=a,e[11]=u):u=e[11],u}function gt(t){const e=O.c(46),{environmentId:o}=t;Ue();const{environment:s,telemetry_freshness:l}=U().props,{connected:c,lastEventAt:i,lastRefreshedAt:r,paused:a,setPaused:u}=Ee(o);let d;e[0]!==s?.last_seen_at||e[1]!==l?.received_at||e[2]!==i?(d=i!=null?new Date(i).toISOString():l?.received_at??s?.last_seen_at??null,e[0]=s?.last_seen_at,e[1]=l?.received_at,e[2]=i,e[3]=d):d=e[3];const f=d;let p,m,h,g,v;if(e[4]!==c||e[5]!==f||e[6]!==r||e[7]!==a||e[8]!==u){const E=r!=null?new Date(r).toISOString():null;m=we;const $=a?"Resume live updates":"Pause live updates";let b;e[14]!==a||e[15]!==u?(b=()=>u(!a),e[14]=a,e[15]=u,e[16]=b):b=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=le(Pe({variant:"outline"}),"hover:bg-accent h-7 cursor-pointer gap-1.5 rounded-md font-mono text-[11px] tracking-wide uppercase"),e[17]=j):j=e[17];const y=c?f:null;let C;e[18]!==y?(C=n.jsx(Ve,{lastSeenAt:y,thresholdMs:1e4}),e[18]=y,e[19]=C):C=e[19];const I=a?"Paused":c?"Live":"Disconnected";e[20]!==a||e[21]!==I||e[22]!==$||e[23]!==b||e[24]!==C?(v=n.jsx(be,{asChild:!0,children:n.jsxs("button",{type:"button","aria-pressed":a,"aria-label":$,onClick:b,className:j,children:[C,I]})}),e[20]=a,e[21]=I,e[22]=$,e[23]=b,e[24]=C,e[25]=v):v=e[25],p=Ce;let S;e[26]!==f?(S=f?`Telemetry received ${q(f)}`:"No telemetry received yet",e[26]=f,e[27]=S):S=e[27],e[28]!==S?(g=n.jsx("p",{children:S}),e[28]=S,e[29]=g):g=e[29],h=E?`Page refreshed ${q(E)}`:"No live refresh yet",e[4]=c,e[5]=f,e[6]=r,e[7]=a,e[8]=u,e[9]=p,e[10]=m,e[11]=h,e[12]=g,e[13]=v}else p=e[9],m=e[10],h=e[11],g=e[12],v=e[13];let _;e[30]!==h?(_=n.jsx("p",{children:h}),e[30]=h,e[31]=_):_=e[31];let D;e[32]!==l?(D=l?.processing_lag_seconds!=null&&n.jsxs("p",{children:["Ingest processing pending:"," ",Math.round(l.processing_lag_seconds),"s"]}),e[32]=l,e[33]=D):D=e[33];let w;e[34]!==l?(w=l?.aggregated_at&&n.jsxs("p",{children:["Charts updated ",q(l.aggregated_at)]}),e[34]=l,e[35]=w):w=e[35];let R;e[36]!==p||e[37]!==g||e[38]!==_||e[39]!==D||e[40]!==w?(R=n.jsxs(p,{children:[g,_,D,w]}),e[36]=p,e[37]=g,e[38]=_,e[39]=D,e[40]=w,e[41]=R):R=e[41];let N;return e[42]!==m||e[43]!==v||e[44]!==R?(N=n.jsxs(m,{children:[v,R]}),e[42]=m,e[43]=v,e[44]=R,e[45]=N):N=e[45],N}const se={"1m":"1 minute","5m":"5 minutes","15m":"15 minutes","1h":"1 hour","6h":"6 hours","1d":"1 day"};function vt(){const t=O.c(6),{step:e,steps:o}=U().props,s=e===void 0?"1h":e;let l;t[0]!==o?(l=o===void 0?[]:o,t[0]=o,t[1]=l):l=t[1];const c=l,i=xt,r=se[s]??s;let a;return t[2]!==s||t[3]!==c||t[4]!==r?(a={step:s,steps:c,set:i,label:r},t[2]=s,t[3]=c,t[4]=r,t[5]=a):a=t[5],a}function xt(t){const e=new URL(globalThis.location.href);e.searchParams.set("step",t),X.visit(e.toString(),{preserveScroll:!0,preserveState:!0})}function Pt(){const t=O.c(18),{step:e,steps:o,set:s}=vt();if(o.length<2)return null;const l=`Chart buckets: ${se[e]}`;let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("span",{className:"text-muted-foreground normal-case",children:"per"}),t[0]=c):c=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(je,{className:"text-muted-foreground size-3"}),t[1]=i):i=t[1];let r;t[2]!==e||t[3]!==l?(r=n.jsx(Se,{asChild:!0,children:n.jsxs(Q,{variant:"outline",size:"sm",className:"h-8 gap-1 px-2 font-mono text-xs uppercase","aria-label":l,children:[c,e,i]})}),t[2]=e,t[3]=l,t[4]=r):r=t[4];let a,u;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(De,{className:"label-caps",children:"Chart buckets"}),u=n.jsx(Re,{}),t[5]=a,t[6]=u):(a=t[5],u=t[6]);let d;t[7]!==s?(d=h=>s(h),t[7]=s,t[8]=d):d=t[8];let f;t[9]!==o?(f=o.map(wt),t[9]=o,t[10]=f):f=t[10];let p;t[11]!==e||t[12]!==d||t[13]!==f?(p=n.jsxs(ye,{align:"end",className:"w-44",children:[a,u,n.jsx(Oe,{value:e,onValueChange:d,children:f})]}),t[11]=e,t[12]=d,t[13]=f,t[14]=p):p=t[14];let m;return t[15]!==r||t[16]!==p?(m=n.jsxs(Ne,{children:[r,p]}),t[15]=r,t[16]=p,t[17]=m):m=t[17],m}function wt(t){return n.jsxs(_e,{value:t,className:"text-xs",children:[n.jsx("span",{className:"font-mono uppercase",children:t}),n.jsx("span",{className:"text-muted-foreground ml-auto",children:se[t]})]},t)}const me=[{value:"1h",label:"1 hour"},{value:"6h",label:"6 hours"},{value:"24h",label:"24 hours"},{value:"7d",label:"7 days"},{value:"30d",label:"30 days"}];function bt(t,e){const o={month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};return`${new Date(t).toLocaleString(void 0,o)} – ${new Date(e).toLocaleString(void 0,o)}`}function Ct(){const t=O.c(8),{window:e,range:o}=U().props,s=e===void 0?"24h":e,l=jt,c=_t;let i;t[0]!==s||t[1]!==o?(i=s==="custom"&&o?bt(o.from,o.to):me.find(f=>f.value===s)?.label??s,t[0]=s,t[1]=o,t[2]=i):i=t[2];const r=i,a=o?.from,u=o?.to;let d;return t[3]!==s||t[4]!==r||t[5]!==a||t[6]!==u?(d={window:s,from:a,to:u,set:l,setRange:c,label:r},t[3]=s,t[4]=r,t[5]=a,t[6]=u,t[7]=d):d=t[7],d}function _t(t,e){const o=new URL(globalThis.location.href);o.searchParams.set("from",t),o.searchParams.set("to",e),o.searchParams.delete("window"),o.searchParams.delete("step"),X.visit(o.toString(),{preserveScroll:!0,preserveState:!0})}function jt(t){const e=new URL(globalThis.location.href);e.searchParams.set("window",t),e.searchParams.delete("from"),e.searchParams.delete("to"),e.searchParams.delete("step"),X.visit(e.toString(),{preserveScroll:!0,preserveState:!0})}function Y(t){const e=new Date(t),o=s=>String(s).padStart(2,"0");return`${e.getFullYear()}-${o(e.getMonth()+1)}-${o(e.getDate())}T${o(e.getHours())}:${o(e.getMinutes())}`}function J(t){const e=new Date(t);return e.setHours(0,0,0,0),e}const St=[{label:"Today",range:()=>[J(new Date),new Date]},{label:"Yesterday",range:()=>{const t=J(new Date);return[J(new Date(t.getTime()-1440*60*1e3)),t]}},{label:"This week",range:()=>{const t=J(new Date);return t.setDate(t.getDate()-t.getDay()),[t,new Date]}}];function Dt(){const t=O.c(48),{window:e,from:o,to:s,set:l,setRange:c,label:i}=Ct(),[r,a]=P.useState(!1);let u;t[0]!==o?(u=()=>Y(o??new Date(Date.now()-864e5).toISOString()),t[0]=o,t[1]=u):u=t[1];const[d,f]=P.useState(u);let p;t[2]!==s?(p=()=>Y(s??new Date().toISOString()),t[2]=s,t[3]=p):p=t[3];const[m,h]=P.useState(p);let g;t[4]!==c?(g=(x,k)=>{f(Y(x.toISOString())),h(Y(k.toISOString())),c(x.toISOString(),k.toISOString()),a(!1)},t[4]=c,t[5]=g):g=t[5];const v=g;let _;t[6]!==v||t[7]!==d||t[8]!==m?(_=()=>{const x=new Date(d),k=new Date(m);!Number.isNaN(x.getTime())&&!Number.isNaN(k.getTime())&&v(x,k)},t[6]=v,t[7]=d,t[8]=m,t[9]=_):_=t[9];const D=_;let w;t[10]!==l||t[11]!==e?(w=me.map(x=>n.jsx(ne,{active:e===x.value,onClick:()=>l(x.value),"aria-label":x.label,children:x.value},x.value)),t[10]=l,t[11]=e,t[12]=w):w=t[12];const R=e==="custom";let N;t[13]===Symbol.for("react.memo_cache_sentinel")?(N=()=>a(!0),t[13]=N):N=t[13];let E;t[14]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(Ie,{className:"size-3"}),t[14]=E):E=t[14];const $=e==="custom"?i:"Custom";let b;t[15]!==$?(b=n.jsx("span",{className:"hidden sm:inline",children:$}),t[15]=$,t[16]=b):b=t[16];let j;t[17]!==R||t[18]!==b?(j=n.jsx(mt,{asChild:!0,children:n.jsxs(ne,{active:R,onClick:N,"aria-label":"Custom range",className:"px-2",children:[E,b]})}),t[17]=R,t[18]=b,t[19]=j):j=t[19];let y;t[20]!==v?(y=St.map(x=>n.jsx(Q,{type:"button",variant:"outline",size:"sm",onClick:()=>{const[k,he]=x.range();v(k,he)},children:x.label},x.label)),t[20]=v,t[21]=y):y=t[21];let C;t[22]!==y?(C=n.jsx("div",{className:"flex flex-wrap gap-1",children:y}),t[22]=y,t[23]=C):C=t[23];let I;t[24]===Symbol.for("react.memo_cache_sentinel")?(I=n.jsx(re,{htmlFor:"window-picker-from",className:"text-xs",children:"From"}),t[24]=I):I=t[24];let S;t[25]===Symbol.for("react.memo_cache_sentinel")?(S=x=>f(x.target.value),t[25]=S):S=t[25];let A;t[26]!==d?(A=n.jsx(ae,{id:"window-picker-from",type:"datetime-local",value:d,onChange:S}),t[26]=d,t[27]=A):A=t[27];let V;t[28]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(re,{htmlFor:"window-picker-to",className:"text-xs",children:"To"}),t[28]=V):V=t[28];let B;t[29]===Symbol.for("react.memo_cache_sentinel")?(B=x=>h(x.target.value),t[29]=B):B=t[29];let M;t[30]!==m?(M=n.jsx(ae,{id:"window-picker-to",type:"datetime-local",value:m,onChange:B}),t[30]=m,t[31]=M):M=t[31];let F;t[32]!==A||t[33]!==M?(F=n.jsxs("div",{className:"flex flex-col gap-2",children:[I,A,V,M]}),t[32]=A,t[33]=M,t[34]=F):F=t[34];let L;t[35]!==D?(L=n.jsx(Q,{type:"button",size:"sm",onClick:D,children:"Apply"}),t[35]=D,t[36]=L):L=t[36];let z;t[37]!==C||t[38]!==F||t[39]!==L?(z=n.jsx(ht,{className:"w-72",align:"end",children:n.jsxs("div",{className:"flex flex-col gap-3",children:[C,F,L]})}),t[37]=C,t[38]=F,t[39]=L,t[40]=z):z=t[40];let H;t[41]!==r||t[42]!==j||t[43]!==z?(H=n.jsxs(ft,{open:r,onOpenChange:a,children:[j,z]}),t[41]=r,t[42]=j,t[43]=z,t[44]=H):H=t[44];let K;return t[45]!==H||t[46]!==w?(K=n.jsxs(Ke,{children:[w,H]}),t[45]=H,t[46]=w,t[47]=K):K=t[47],K}function Lt(t){const e=O.c(21),{title:o,description:s,actions:l,withWindow:c}=t,i=c===void 0?!0:c,{environment:r}=U().props;let a;e[0]!==o?(a=n.jsx("h1",{className:"truncate text-xl font-semibold tracking-tight md:text-2xl",children:o}),e[0]=o,e[1]=a):a=e[1];let u;e[2]!==s?(u=s&&n.jsx("p",{className:"text-muted-foreground mt-0.5 text-sm",children:s}),e[2]=s,e[3]=u):u=e[3];let d;e[4]!==a||e[5]!==u?(d=n.jsxs("div",{className:"min-w-0",children:[a,u]}),e[4]=a,e[5]=u,e[6]=d):d=e[6];let f;e[7]!==r?(f=r&&n.jsx(gt,{environmentId:r.id}),e[7]=r,e[8]=f):f=e[8];let p;e[9]!==i?(p=i&&n.jsx(Pt,{}),e[9]=i,e[10]=p):p=e[10];let m;e[11]!==i?(m=i&&n.jsx(Dt,{}),e[11]=i,e[12]=m):m=e[12];let h;e[13]!==l||e[14]!==f||e[15]!==p||e[16]!==m?(h=n.jsxs("div",{className:"flex flex-wrap items-center gap-2 md:shrink-0 md:justify-end",children:[f,l,p,m]}),e[13]=l,e[14]=f,e[15]=p,e[16]=m,e[17]=h):h=e[17];let g;return e[18]!==d||e[19]!==h?(g=n.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-start md:justify-between md:gap-4",children:[d,h]}),e[18]=d,e[19]=h,e[20]=g):g=e[20],g}function zt(t){const e=O.c(18),{title:o,children:s,crumbs:l}=t;let c;e[0]!==l?(c=l===void 0?[]:l,e[0]=l,e[1]=c):c=e[1];const i=c,{environment:r}=U().props;let a;e[2]!==r?(a=r?[{title:r.application_name,href:ge(r.application_id)},{title:r.name,href:ve(r.application_id,r.id)}]:[],e[2]=r,e[3]=a):a=e[3];const u=a;let d;e[4]!==i||e[5]!==o?(d=i.length?i:[{title:o,href:"#"}],e[4]=i,e[5]=o,e[6]=d):d=e[6];let f;e[7]!==u||e[8]!==d?(f=[...u,...d],e[7]=u,e[8]=d,e[9]=f):f=e[9];const p=f,m=r?`${o} · ${r.application_name} ${r.name}`:o;let h;e[10]!==m?(h=n.jsx(xe,{title:m}),e[10]=m,e[11]=h):h=e[11];let g;e[12]!==s?(g=n.jsx("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:p-6",children:s}),e[12]=s,e[13]=g):g=e[13];let v;return e[14]!==p||e[15]!==h||e[16]!==g?(v=n.jsxs(Te,{breadcrumbs:p,children:[h,g]}),e[14]=p,e[15]=h,e[16]=g,e[17]=v):v=e[17],v}export{zt as E,Lt as P,ft as a,mt as b,ht as c,Ct as u};
|
|
1
|
+
import{r as P,j as n,c as O,C as le,u as U,e as X,g as ge,o as ve,H as xe}from"./inertia-CqnzqPVD.js";import{b as Pe}from"./badge-Dv7I-ebP.js";import{t as we,v as be,w as Ce,D as _e,C as je,x as Se,y as De,z as Re,E as ye,H as Oe,J as Ne,K as Ie,A as Te}from"./app-layout-2xAKndVD.js";import{u as Ee}from"./use-live-DWwLg1Nj.js";import{d as ie,R as $e,u as ke,A as Ae,P as Me,h as Fe,g as Le,f as ze,F as He,e as We,C as Ge,t as Ue,L as Ve}from"./live-dot-UdzOfzJb.js";import{a as q}from"./format-B9SDkrWj.js";import{u as ce,a as Be,B as Q}from"./app-wordmark-Bt6XqURo.js";import{a as ne,S as Ke}from"./segmented-C4oWE73o.js";import{L as re,I as ae}from"./label-1nSzpSB6.js";import{c as Ye,u as Je,a as Z,P as de}from"./index-C-EwH4lO.js";import{P as Ze}from"./index-BDVShWMs.js";var qe=Object.defineProperty,T=(t,e)=>qe(t,"name",{value:e,configurable:!0}),ee="Popover",[ue,Ft]=Ye(ee,[ie]),te=ie(),[Qe,W]=ue(ee),Xe=T(t=>{const{__scopePopover:e,children:o,open:s,defaultOpen:l,onOpenChange:c,modal:i=!1}=t,r=te(e),a=P.useRef(null),[u,d]=P.useState(!1),[f,p]=Je({prop:s,defaultProp:l??!1,onChange:c,caller:ee});return n.jsx($e,{...r,children:n.jsx(Qe,{scope:e,contentId:ke(),triggerRef:a,open:f,onOpenChange:p,onOpenToggle:P.useCallback(()=>p(m=>!m),[p]),hasCustomAnchor:u,onCustomAnchorAdd:P.useCallback(()=>d(!0),[]),onCustomAnchorRemove:P.useCallback(()=>d(!1),[]),modal:i,children:o})})},"Popover"),et="PopoverTrigger",tt=P.forwardRef(T(function(e,o){const{__scopePopover:s,...l}=e,c=W(et,s),i=te(s),r=ce(o,c.triggerRef),a=n.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":oe(c.open),...l,ref:r,onClick:Z(e.onClick,c.onOpenToggle)});return c.hasCustomAnchor?a:n.jsx(Ae,{asChild:!0,...i,children:a})},"PopoverTrigger")),pe="PopoverPortal",[ot,st]=ue(pe,{forceMount:void 0}),nt=T(t=>{const{__scopePopover:e,forceMount:o,children:s,container:l}=t,c=W(pe,e);return n.jsx(ot,{scope:e,forceMount:o,children:n.jsx(de,{present:o||c.open,children:n.jsx(Me,{asChild:!0,container:l,children:s})})})},"PopoverPortal"),G="PopoverContent",rt=P.forwardRef(T(function(e,o){const s=st(G,e.__scopePopover),{forceMount:l=s.forceMount,...c}=e,i=W(G,e.__scopePopover);return n.jsx(de,{present:l||i.open,children:i.modal?n.jsx(lt,{...c,ref:o}):n.jsx(it,{...c,ref:o})})},"PopoverContent")),at=Be("PopoverContent.RemoveScroll"),lt=P.forwardRef(T(function(e,o){const s=W(G,e.__scopePopover),l=P.useRef(null),c=ce(o,l),i=P.useRef(!1);return P.useEffect(()=>{const r=l.current;if(r)return Fe(r)},[]),n.jsx(Le,{as:at,allowPinchZoom:!0,children:n.jsx(fe,{...e,ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,r=>{r.preventDefault(),i.current||s.triggerRef.current?.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,r=>{const a=r.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,d=a.button===2||u;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),it=P.forwardRef(T(function(e,o){const s=W(G,e.__scopePopover),l=P.useRef(!1),c=P.useRef(!1);return n.jsx(fe,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(l.current||s.triggerRef.current?.focus(),i.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(l.current=!0,i.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const r=i.target;s.triggerRef.current?.contains(r)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&c.current&&i.preventDefault()}})},"PopoverContentNonModal")),fe=P.forwardRef(T(function(e,o){const{__scopePopover:s,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:i,disableOutsidePointerEvents:r,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...p}=e,m=W(G,s),h=te(s);return ze(),n.jsx(He,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:i,children:n.jsx(We,{asChild:!0,disableOutsidePointerEvents:r,onInteractOutside:f,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),deferPointerDownOutside:!0,children:n.jsx(Ge,{"data-state":oe(m.open),role:"dialog",id:m.contentId,...h,...p,ref:o,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function oe(t){return t?"open":"closed"}T(oe,"getState");var ct=Xe,dt=tt,ut=nt,pt=rt;function ft(t){const e=O.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let s;return e[2]!==o?(s=n.jsx(ct,{"data-slot":"popover",...o}),e[2]=o,e[3]=s):s=e[3],s}function mt(t){const e=O.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let s;return e[2]!==o?(s=n.jsx(dt,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=s):s=e[3],s}function ht(t){const e=O.c(12);let o,s,l,c;e[0]!==t?({className:o,align:l,sideOffset:c,...s}=t,e[0]=t,e[1]=o,e[2]=s,e[3]=l,e[4]=c):(o=e[1],s=e[2],l=e[3],c=e[4]);const i=l===void 0?"center":l,r=c===void 0?4:c;let a;e[5]!==o?(a=le("bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=a):a=e[6];let u;return e[7]!==i||e[8]!==s||e[9]!==r||e[10]!==a?(u=n.jsx(ut,{children:n.jsx(pt,{"data-slot":"popover-content",align:i,sideOffset:r,className:a,...s})}),e[7]=i,e[8]=s,e[9]=r,e[10]=a,e[11]=u):u=e[11],u}function gt(t){const e=O.c(46),{environmentId:o}=t;Ue();const{environment:s,telemetry_freshness:l}=U().props,{connected:c,lastEventAt:i,lastRefreshedAt:r,paused:a,setPaused:u}=Ee(o);let d;e[0]!==s?.last_seen_at||e[1]!==l?.received_at||e[2]!==i?(d=i!=null?new Date(i).toISOString():l?.received_at??s?.last_seen_at??null,e[0]=s?.last_seen_at,e[1]=l?.received_at,e[2]=i,e[3]=d):d=e[3];const f=d;let p,m,h,g,v;if(e[4]!==c||e[5]!==f||e[6]!==r||e[7]!==a||e[8]!==u){const E=r!=null?new Date(r).toISOString():null;m=we;const $=a?"Resume live updates":"Pause live updates";let b;e[14]!==a||e[15]!==u?(b=()=>u(!a),e[14]=a,e[15]=u,e[16]=b):b=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=le(Pe({variant:"outline"}),"hover:bg-accent h-7 cursor-pointer gap-1.5 rounded-md font-mono text-[11px] tracking-wide uppercase"),e[17]=j):j=e[17];const y=c?f:null;let C;e[18]!==y?(C=n.jsx(Ve,{lastSeenAt:y,thresholdMs:1e4}),e[18]=y,e[19]=C):C=e[19];const I=a?"Paused":c?"Live":"Disconnected";e[20]!==a||e[21]!==I||e[22]!==$||e[23]!==b||e[24]!==C?(v=n.jsx(be,{asChild:!0,children:n.jsxs("button",{type:"button","aria-pressed":a,"aria-label":$,onClick:b,className:j,children:[C,I]})}),e[20]=a,e[21]=I,e[22]=$,e[23]=b,e[24]=C,e[25]=v):v=e[25],p=Ce;let S;e[26]!==f?(S=f?`Telemetry received ${q(f)}`:"No telemetry received yet",e[26]=f,e[27]=S):S=e[27],e[28]!==S?(g=n.jsx("p",{children:S}),e[28]=S,e[29]=g):g=e[29],h=E?`Page refreshed ${q(E)}`:"No live refresh yet",e[4]=c,e[5]=f,e[6]=r,e[7]=a,e[8]=u,e[9]=p,e[10]=m,e[11]=h,e[12]=g,e[13]=v}else p=e[9],m=e[10],h=e[11],g=e[12],v=e[13];let _;e[30]!==h?(_=n.jsx("p",{children:h}),e[30]=h,e[31]=_):_=e[31];let D;e[32]!==l?(D=l?.processing_lag_seconds!=null&&n.jsxs("p",{children:["Ingest processing pending:"," ",Math.round(l.processing_lag_seconds),"s"]}),e[32]=l,e[33]=D):D=e[33];let w;e[34]!==l?(w=l?.aggregated_at&&n.jsxs("p",{children:["Charts updated ",q(l.aggregated_at)]}),e[34]=l,e[35]=w):w=e[35];let R;e[36]!==p||e[37]!==g||e[38]!==_||e[39]!==D||e[40]!==w?(R=n.jsxs(p,{children:[g,_,D,w]}),e[36]=p,e[37]=g,e[38]=_,e[39]=D,e[40]=w,e[41]=R):R=e[41];let N;return e[42]!==m||e[43]!==v||e[44]!==R?(N=n.jsxs(m,{children:[v,R]}),e[42]=m,e[43]=v,e[44]=R,e[45]=N):N=e[45],N}const se={"1m":"1 minute","5m":"5 minutes","15m":"15 minutes","1h":"1 hour","6h":"6 hours","1d":"1 day"};function vt(){const t=O.c(6),{step:e,steps:o}=U().props,s=e===void 0?"1h":e;let l;t[0]!==o?(l=o===void 0?[]:o,t[0]=o,t[1]=l):l=t[1];const c=l,i=xt,r=se[s]??s;let a;return t[2]!==s||t[3]!==c||t[4]!==r?(a={step:s,steps:c,set:i,label:r},t[2]=s,t[3]=c,t[4]=r,t[5]=a):a=t[5],a}function xt(t){const e=new URL(globalThis.location.href);e.searchParams.set("step",t),X.visit(e.toString(),{preserveScroll:!0,preserveState:!0})}function Pt(){const t=O.c(18),{step:e,steps:o,set:s}=vt();if(o.length<2)return null;const l=`Chart buckets: ${se[e]}`;let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("span",{className:"text-muted-foreground normal-case",children:"per"}),t[0]=c):c=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(je,{className:"text-muted-foreground size-3"}),t[1]=i):i=t[1];let r;t[2]!==e||t[3]!==l?(r=n.jsx(Se,{asChild:!0,children:n.jsxs(Q,{variant:"outline",size:"sm",className:"h-8 gap-1 px-2 font-mono text-xs uppercase","aria-label":l,children:[c,e,i]})}),t[2]=e,t[3]=l,t[4]=r):r=t[4];let a,u;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(De,{className:"label-caps",children:"Chart buckets"}),u=n.jsx(Re,{}),t[5]=a,t[6]=u):(a=t[5],u=t[6]);let d;t[7]!==s?(d=h=>s(h),t[7]=s,t[8]=d):d=t[8];let f;t[9]!==o?(f=o.map(wt),t[9]=o,t[10]=f):f=t[10];let p;t[11]!==e||t[12]!==d||t[13]!==f?(p=n.jsxs(ye,{align:"end",className:"w-44",children:[a,u,n.jsx(Oe,{value:e,onValueChange:d,children:f})]}),t[11]=e,t[12]=d,t[13]=f,t[14]=p):p=t[14];let m;return t[15]!==r||t[16]!==p?(m=n.jsxs(Ne,{children:[r,p]}),t[15]=r,t[16]=p,t[17]=m):m=t[17],m}function wt(t){return n.jsxs(_e,{value:t,className:"text-xs",children:[n.jsx("span",{className:"font-mono uppercase",children:t}),n.jsx("span",{className:"text-muted-foreground ml-auto",children:se[t]})]},t)}const me=[{value:"1h",label:"1 hour"},{value:"6h",label:"6 hours"},{value:"24h",label:"24 hours"},{value:"7d",label:"7 days"},{value:"30d",label:"30 days"}];function bt(t,e){const o={month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};return`${new Date(t).toLocaleString(void 0,o)} – ${new Date(e).toLocaleString(void 0,o)}`}function Ct(){const t=O.c(8),{window:e,range:o}=U().props,s=e===void 0?"24h":e,l=jt,c=_t;let i;t[0]!==s||t[1]!==o?(i=s==="custom"&&o?bt(o.from,o.to):me.find(f=>f.value===s)?.label??s,t[0]=s,t[1]=o,t[2]=i):i=t[2];const r=i,a=o?.from,u=o?.to;let d;return t[3]!==s||t[4]!==r||t[5]!==a||t[6]!==u?(d={window:s,from:a,to:u,set:l,setRange:c,label:r},t[3]=s,t[4]=r,t[5]=a,t[6]=u,t[7]=d):d=t[7],d}function _t(t,e){const o=new URL(globalThis.location.href);o.searchParams.set("from",t),o.searchParams.set("to",e),o.searchParams.delete("window"),o.searchParams.delete("step"),X.visit(o.toString(),{preserveScroll:!0,preserveState:!0})}function jt(t){const e=new URL(globalThis.location.href);e.searchParams.set("window",t),e.searchParams.delete("from"),e.searchParams.delete("to"),e.searchParams.delete("step"),X.visit(e.toString(),{preserveScroll:!0,preserveState:!0})}function Y(t){const e=new Date(t),o=s=>String(s).padStart(2,"0");return`${e.getFullYear()}-${o(e.getMonth()+1)}-${o(e.getDate())}T${o(e.getHours())}:${o(e.getMinutes())}`}function J(t){const e=new Date(t);return e.setHours(0,0,0,0),e}const St=[{label:"Today",range:()=>[J(new Date),new Date]},{label:"Yesterday",range:()=>{const t=J(new Date);return[J(new Date(t.getTime()-1440*60*1e3)),t]}},{label:"This week",range:()=>{const t=J(new Date);return t.setDate(t.getDate()-t.getDay()),[t,new Date]}}];function Dt(){const t=O.c(48),{window:e,from:o,to:s,set:l,setRange:c,label:i}=Ct(),[r,a]=P.useState(!1);let u;t[0]!==o?(u=()=>Y(o??new Date(Date.now()-864e5).toISOString()),t[0]=o,t[1]=u):u=t[1];const[d,f]=P.useState(u);let p;t[2]!==s?(p=()=>Y(s??new Date().toISOString()),t[2]=s,t[3]=p):p=t[3];const[m,h]=P.useState(p);let g;t[4]!==c?(g=(x,k)=>{f(Y(x.toISOString())),h(Y(k.toISOString())),c(x.toISOString(),k.toISOString()),a(!1)},t[4]=c,t[5]=g):g=t[5];const v=g;let _;t[6]!==v||t[7]!==d||t[8]!==m?(_=()=>{const x=new Date(d),k=new Date(m);!Number.isNaN(x.getTime())&&!Number.isNaN(k.getTime())&&v(x,k)},t[6]=v,t[7]=d,t[8]=m,t[9]=_):_=t[9];const D=_;let w;t[10]!==l||t[11]!==e?(w=me.map(x=>n.jsx(ne,{active:e===x.value,onClick:()=>l(x.value),"aria-label":x.label,children:x.value},x.value)),t[10]=l,t[11]=e,t[12]=w):w=t[12];const R=e==="custom";let N;t[13]===Symbol.for("react.memo_cache_sentinel")?(N=()=>a(!0),t[13]=N):N=t[13];let E;t[14]===Symbol.for("react.memo_cache_sentinel")?(E=n.jsx(Ie,{className:"size-3"}),t[14]=E):E=t[14];const $=e==="custom"?i:"Custom";let b;t[15]!==$?(b=n.jsx("span",{className:"hidden sm:inline",children:$}),t[15]=$,t[16]=b):b=t[16];let j;t[17]!==R||t[18]!==b?(j=n.jsx(mt,{asChild:!0,children:n.jsxs(ne,{active:R,onClick:N,"aria-label":"Custom range",className:"px-2",children:[E,b]})}),t[17]=R,t[18]=b,t[19]=j):j=t[19];let y;t[20]!==v?(y=St.map(x=>n.jsx(Q,{type:"button",variant:"outline",size:"sm",onClick:()=>{const[k,he]=x.range();v(k,he)},children:x.label},x.label)),t[20]=v,t[21]=y):y=t[21];let C;t[22]!==y?(C=n.jsx("div",{className:"flex flex-wrap gap-1",children:y}),t[22]=y,t[23]=C):C=t[23];let I;t[24]===Symbol.for("react.memo_cache_sentinel")?(I=n.jsx(re,{htmlFor:"window-picker-from",className:"text-xs",children:"From"}),t[24]=I):I=t[24];let S;t[25]===Symbol.for("react.memo_cache_sentinel")?(S=x=>f(x.target.value),t[25]=S):S=t[25];let A;t[26]!==d?(A=n.jsx(ae,{id:"window-picker-from",type:"datetime-local",value:d,onChange:S}),t[26]=d,t[27]=A):A=t[27];let V;t[28]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx(re,{htmlFor:"window-picker-to",className:"text-xs",children:"To"}),t[28]=V):V=t[28];let B;t[29]===Symbol.for("react.memo_cache_sentinel")?(B=x=>h(x.target.value),t[29]=B):B=t[29];let M;t[30]!==m?(M=n.jsx(ae,{id:"window-picker-to",type:"datetime-local",value:m,onChange:B}),t[30]=m,t[31]=M):M=t[31];let F;t[32]!==A||t[33]!==M?(F=n.jsxs("div",{className:"flex flex-col gap-2",children:[I,A,V,M]}),t[32]=A,t[33]=M,t[34]=F):F=t[34];let L;t[35]!==D?(L=n.jsx(Q,{type:"button",size:"sm",onClick:D,children:"Apply"}),t[35]=D,t[36]=L):L=t[36];let z;t[37]!==C||t[38]!==F||t[39]!==L?(z=n.jsx(ht,{className:"w-72",align:"end",children:n.jsxs("div",{className:"flex flex-col gap-3",children:[C,F,L]})}),t[37]=C,t[38]=F,t[39]=L,t[40]=z):z=t[40];let H;t[41]!==r||t[42]!==j||t[43]!==z?(H=n.jsxs(ft,{open:r,onOpenChange:a,children:[j,z]}),t[41]=r,t[42]=j,t[43]=z,t[44]=H):H=t[44];let K;return t[45]!==H||t[46]!==w?(K=n.jsxs(Ke,{children:[w,H]}),t[45]=H,t[46]=w,t[47]=K):K=t[47],K}function Lt(t){const e=O.c(21),{title:o,description:s,actions:l,withWindow:c}=t,i=c===void 0?!0:c,{environment:r}=U().props;let a;e[0]!==o?(a=n.jsx("h1",{className:"truncate text-xl font-semibold tracking-tight md:text-2xl",children:o}),e[0]=o,e[1]=a):a=e[1];let u;e[2]!==s?(u=s&&n.jsx("p",{className:"text-muted-foreground mt-0.5 text-sm",children:s}),e[2]=s,e[3]=u):u=e[3];let d;e[4]!==a||e[5]!==u?(d=n.jsxs("div",{className:"min-w-0",children:[a,u]}),e[4]=a,e[5]=u,e[6]=d):d=e[6];let f;e[7]!==r?(f=r&&n.jsx(gt,{environmentId:r.id}),e[7]=r,e[8]=f):f=e[8];let p;e[9]!==i?(p=i&&n.jsx(Pt,{}),e[9]=i,e[10]=p):p=e[10];let m;e[11]!==i?(m=i&&n.jsx(Dt,{}),e[11]=i,e[12]=m):m=e[12];let h;e[13]!==l||e[14]!==f||e[15]!==p||e[16]!==m?(h=n.jsxs("div",{className:"flex flex-wrap items-center gap-2 md:shrink-0 md:justify-end",children:[f,l,p,m]}),e[13]=l,e[14]=f,e[15]=p,e[16]=m,e[17]=h):h=e[17];let g;return e[18]!==d||e[19]!==h?(g=n.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-start md:justify-between md:gap-4",children:[d,h]}),e[18]=d,e[19]=h,e[20]=g):g=e[20],g}function zt(t){const e=O.c(18),{title:o,children:s,crumbs:l}=t;let c;e[0]!==l?(c=l===void 0?[]:l,e[0]=l,e[1]=c):c=e[1];const i=c,{environment:r}=U().props;let a;e[2]!==r?(a=r?[{title:r.application_name,href:ge(r.application_id)},{title:r.name,href:ve(r.application_id,r.id)}]:[],e[2]=r,e[3]=a):a=e[3];const u=a;let d;e[4]!==i||e[5]!==o?(d=i.length?i:[{title:o,href:"#"}],e[4]=i,e[5]=o,e[6]=d):d=e[6];let f;e[7]!==u||e[8]!==d?(f=[...u,...d],e[7]=u,e[8]=d,e[9]=f):f=e[9];const p=f,m=r?`${o} · ${r.application_name} ${r.name}`:o;let h;e[10]!==m?(h=n.jsx(xe,{title:m}),e[10]=m,e[11]=h):h=e[11];let g;e[12]!==s?(g=n.jsx("div",{className:"flex flex-1 flex-col gap-4 p-3 md:gap-5 md:p-6",children:s}),e[12]=s,e[13]=g):g=e[13];let v;return e[14]!==p||e[15]!==h||e[16]!==g?(v=n.jsxs(Te,{breadcrumbs:p,children:[h,g]}),e[14]=p,e[15]=h,e[16]=g,e[17]=v):v=e[17],v}export{zt as E,Lt as P,ft as a,mt as b,ht as c,Ct as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ax as e,w as n,ay as h,K as u,t as m}from"./inertia-
|
|
1
|
+
import{ax as e,w as n,ay as h,K as u,t as m}from"./inertia-CqnzqPVD.js";function c({applicationId:t,environmentId:r,source:s,executionId:a}){if(!a||s==="browser")return null;switch(s){case"request":return m(t,r,a);case"job":case"job_attempt":return u(t,r,a);case"scheduled_task":return h(t,r,a);case"command":return n(t,r,a);default:return e(t,r,a)}}export{c as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as U,c as Y,r as I,j as s,a5 as Z}from"./inertia-
|
|
1
|
+
import{B as U,c as Y,r as I,j as s,a5 as Z}from"./inertia-CqnzqPVD.js";import{B as ee}from"./badge-Dv7I-ebP.js";import{B as te}from"./app-wordmark-Bt6XqURo.js";import{f as V,g as G,e as se,s as ne,m as le,l as oe}from"./app-layout-2xAKndVD.js";import{a as ae,b as ie,c as re}from"./env-layout-CKLL8Ds7.js";const ce=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],me=U("funnel",ce),de=/^([a-z_]+):(\S+)$/;function fe(m){const e=[],l={};for(const a of m.trim().split(/\s+/)){if(!a)continue;const o=de.exec(a);o?l[o[1]]=o[2]:e.push(a)}return{text:e.join(" "),fields:l}}function H(m){const e=Object.entries(m.fields).map(([l,a])=>`${l}:${a}`);return m.text&&e.push(m.text),e.join(" ")}function be(m){const e=Y.c(57),{value:l,fields:a,onChange:o,placeholder:K}=m,$=K===void 0?"Filter...":K,[i,z]=I.useState(l),[R,D]=I.useState(!1),[M,W]=I.useState(l);l!==M&&(W(l),z(l));let f,x,p,u,h,r,j,b,y,g,_,c,v;if(e[0]!==i||e[1]!==a||e[2]!==o||e[3]!==R||e[4]!==$||e[5]!==l){const B=fe(l),X=t=>{const n={...B.fields};delete n[t];const d=H({text:B.text,fields:n});z(d),o(d)},J=(t,n)=>{const d=H({text:B.text,fields:{...B.fields,[t]:n}});z(d),o(d),D(!1)};let E;e[19]===Symbol.for("react.memo_cache_sentinel")?(E=t=>{z(n=>`${n}${n&&!n.endsWith(" ")?" ":""}${t}:`),D(!1)},e[19]=E):E=e[19];const Q=E;let O;e[20]!==i||e[21]!==o?(O=()=>o(i),e[20]=i,e[21]=o,e[22]=O):O=e[22];const w=O;v="flex flex-wrap items-center gap-2";let A;e[23]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(se,{className:"text-muted-foreground size-3.5 shrink-0"}),e[23]=A):A=e[23];let q;e[24]===Symbol.for("react.memo_cache_sentinel")?(q=t=>z(t.target.value),e[24]=q):q=e[24];let T;e[25]!==w?(T=t=>t.key==="Enter"&&w(),e[25]=w,e[26]=T):T=e[26];let L;e[27]!==w||e[28]!==i||e[29]!==$||e[30]!==T?(L=s.jsx("input",{"data-filter-bar-input":!0,value:i,onChange:q,onKeyDown:T,onBlur:w,placeholder:$,className:"placeholder:text-muted-foreground min-w-0 flex-1 bg-transparent font-mono text-xs outline-none"}),e[27]=w,e[28]=i,e[29]=$,e[30]=T,e[31]=L):L=e[31];let P;e[32]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx("kbd",{className:"bg-muted text-muted-foreground hidden rounded px-1 font-mono text-[10px] md:inline",children:"/"}),e[32]=P):P=e[32],h=s.jsxs("div",{className:"bg-card focus-within:border-ring flex h-8 min-w-0 flex-1 items-center gap-1.5 rounded-md border px-2 md:max-w-md md:flex-none md:basis-80",children:[A,Object.entries(B.fields).map(t=>{const[n,d]=t;return s.jsxs(ee,{variant:"secondary",className:"shrink-0 gap-1 rounded-sm px-1.5 font-mono text-[10px]",children:[n,":",d,s.jsx("button",{type:"button",onClick:()=>X(n),className:"hover:text-destructive","aria-label":`Remove ${n} filter`,children:s.jsx(Z,{className:"size-3"})})]},n)}),L,P]}),u=ae,g=R,_=D,e[33]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(ie,{asChild:!0,children:s.jsx(te,{type:"button",variant:"outline",size:"sm",className:"h-8 px-2","aria-label":"Add filter",children:s.jsx(me,{className:"size-3.5"})})}),e[33]=c):c=e[33],p=re,b="w-56 p-0",y="start",x=ne,f=le,e[34]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(oe,{children:"No fields."}),e[34]=r):r=e[34],j=a.map(t=>t.options?s.jsx(V,{heading:t.label,children:t.options.map(n=>s.jsx(G,{onSelect:()=>J(t.key,n),children:n},n))},t.key):s.jsx(V,{heading:t.label,children:s.jsxs(G,{onSelect:()=>Q(t.key),children:[t.key,":…"]})},t.key)),e[0]=i,e[1]=a,e[2]=o,e[3]=R,e[4]=$,e[5]=l,e[6]=f,e[7]=x,e[8]=p,e[9]=u,e[10]=h,e[11]=r,e[12]=j,e[13]=b,e[14]=y,e[15]=g,e[16]=_,e[17]=c,e[18]=v}else f=e[6],x=e[7],p=e[8],u=e[9],h=e[10],r=e[11],j=e[12],b=e[13],y=e[14],g=e[15],_=e[16],c=e[17],v=e[18];let k;e[35]!==f||e[36]!==r||e[37]!==j?(k=s.jsxs(f,{children:[r,j]}),e[35]=f,e[36]=r,e[37]=j,e[38]=k):k=e[38];let N;e[39]!==x||e[40]!==k?(N=s.jsx(x,{children:k}),e[39]=x,e[40]=k,e[41]=N):N=e[41];let S;e[42]!==p||e[43]!==N||e[44]!==b||e[45]!==y?(S=s.jsx(p,{className:b,align:y,children:N}),e[42]=p,e[43]=N,e[44]=b,e[45]=y,e[46]=S):S=e[46];let C;e[47]!==u||e[48]!==S||e[49]!==g||e[50]!==_||e[51]!==c?(C=s.jsxs(u,{open:g,onOpenChange:_,children:[c,S]}),e[47]=u,e[48]=S,e[49]=g,e[50]=_,e[51]=c,e[52]=C):C=e[52];let F;return e[53]!==h||e[54]!==C||e[55]!==v?(F=s.jsxs("div",{className:v,children:[h,C]}),e[53]=h,e[54]=C,e[55]=v,e[56]=F):F=e[56],F}export{be as F,fe as p,H as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as j,j as o,C,c as $}from"./inertia-
|
|
1
|
+
import{r as j,j as o,C,c as $}from"./inertia-CqnzqPVD.js";import{D as E}from"./data-table-CVKR2wkq.js";import{S as V,a as z}from"./segmented-C4oWE73o.js";import{I as W}from"./label-1nSzpSB6.js";import{c as M,p as T}from"./format-B9SDkrWj.js";function L(s){let e=0;const t=a=>({id:e++,name:a,value:0,self:0,children:[]}),n=t("all"),m=new Map;for(const a of s.split(`
|
|
2
2
|
`)){const f=a.trim(),x=f.lastIndexOf(" ");if(x<=0)continue;const i=Number(f.slice(x+1));if(!Number.isFinite(i)||i<=0)continue;const r=f.slice(0,x).split(";").filter(u=>u.length>0);if(r.length===0)continue;n.value+=i;let c=n,h="";for(const u of r){h+=";"+u;let d=m.get(h);d||(d=t(u),c.children.push(d),m.set(h,d)),d.value+=i,c=d}c.self+=i}return n}function A(s,e){const t=[],n=s.value>0?e/s.value:0,m=(a,f,x,i)=>{t.push({id:a.id,node:a,x:f,width:a.value*n,depth:x,parentValue:i});let r=f;for(const c of a.children)m(c,r,x+1,a.value),r+=c.value*n};return m(s,0,0,s.value),t}function F(s){const e=new Map,t=(n,m)=>{if(!m){const a=e.get(n.name)??{name:n.name,self:0,total:0};a.self+=n.self,a.total+=n.value,e.set(n.name,a)}for(const a of n.children)t(a,!1)};return t(s,!0),e}function B(s,e){return[...F(s).values()].sort((t,n)=>n.self-t.self||n.total-t.total).slice(0,e)}function D(s,e){return[...F(s).values()].sort((t,n)=>n.total-t.total||n.self-t.self).slice(0,e)}function H(s,e){const t=new Set,n=e.trim().toLowerCase();if(n==="")return t;const m=a=>{a.name.toLowerCase().includes(n)&&t.add(a.id);for(const f of a.children)m(f)};return m(s),t}const y=18,R=15;function X(s){const e=s.lastIndexOf(" ("),t=e>=0?s.slice(e+2):"";return/^(app|lib|config|db|engines)\//.test(t)}function q(s){let e=0;for(let t=0;t<s.length;t++)e=e*31+s.charCodeAt(t)|0;return Math.abs(e)}function K(s){const e=q(s);return X(s)?`hsl(${[24,34,14,44,4][e%5]} 78% ${52+e%3*6}%)`:`hsl(${[215,220,210][e%3]} 14% ${58+e%3*7}%)`}function Q(s,e){const t=Math.floor((e-8)/5.6);return t<4?"":s.length<=t?s:s.slice(0,t-1)+"…"}function Y(s){const e=$.c(30),{rect:t,total:n,x:m,y:a}=s,f=Math.max(0,m-8),x=a+14;let i;e[0]!==f||e[1]!==x?(i={left:f,top:x},e[0]=f,e[1]=x,e[2]=i):i=e[2];let r;e[3]!==t.node.name?(r=o.jsx("div",{className:"font-mono text-[11px] break-all",children:t.node.name}),e[3]=t.node.name,e[4]=r):r=e[4];let c;e[5]!==t.node.value?(c=M(t.node.value),e[5]=t.node.value,e[6]=c):c=e[6];let h;e[7]!==c?(h=o.jsxs("span",{children:[c," samples"]}),e[7]=c,e[8]=h):h=e[8];let u;e[9]!==t.node.value||e[10]!==n?(u=T(t.node.value,n),e[9]=t.node.value,e[10]=n,e[11]=u):u=e[11];let d;e[12]!==u?(d=o.jsxs("span",{children:[u," of total"]}),e[12]=u,e[13]=d):d=e[13];let p;e[14]!==t.node.value||e[15]!==t.parentValue?(p=T(t.node.value,t.parentValue),e[14]=t.node.value,e[15]=t.parentValue,e[16]=p):p=e[16];let w;e[17]!==p?(w=o.jsxs("span",{children:[p," of parent"]}),e[17]=p,e[18]=w):w=e[18];let v;e[19]!==t.node.self?(v=t.node.self>0&&o.jsxs("span",{children:[M(t.node.self)," self"]}),e[19]=t.node.self,e[20]=v):v=e[20];let b;e[21]!==w||e[22]!==v||e[23]!==h||e[24]!==d?(b=o.jsxs("div",{className:"text-muted-foreground mt-1 flex flex-wrap gap-x-3 font-mono text-[10px] tabular-nums",children:[h,d,w,v]}),e[21]=w,e[22]=v,e[23]=h,e[24]=d,e[25]=b):b=e[25];let N;return e[26]!==b||e[27]!==i||e[28]!==r?(N=o.jsxs("div",{className:"bg-popover text-popover-foreground pointer-events-none absolute z-10 max-w-[min(22rem,90vw)] rounded-md border p-2 shadow-md",style:i,children:[r,b]}),e[26]=b,e[27]=i,e[28]=r,e[29]=N):N=e[29],N}function _({collapsed:s,className:e}){const t=j.useMemo(()=>L(s),[s]),[n,m]=j.useState(""),[a,f]=j.useState("self"),[x,i]=j.useState({tree:t,zoom:[],hovered:null}),r=x.tree===t?x:{tree:t,zoom:[],hovered:null},c=r.zoom,h=j.useRef(null),[u,d]=j.useState(0);j.useEffect(()=>{const l=h.current;if(!l)return;d(l.clientWidth);const g=new ResizeObserver(([k])=>d(k.contentRect.width));return g.observe(l),()=>g.disconnect()},[]);const p=c[c.length-1]??t,w=j.useMemo(()=>A(p,u),[p,u]),v=j.useMemo(()=>H(t,n),[t,n]),b=j.useMemo(()=>a==="self"?B(p,R):D(p,R),[p,a]),N=w.reduce((l,g)=>Math.max(l,g.depth),0),O=v.size>0;return t.value===0?o.jsx("p",{className:"text-muted-foreground py-6 text-center text-sm",children:"This profile recorded no samples."}):o.jsxs("div",{className:C("space-y-3",e),children:[o.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[o.jsx(W,{value:n,onChange:l=>m(l.target.value),placeholder:"Search frames",className:"h-8 max-w-56 font-mono text-xs","aria-label":"Search frames"}),n!==""&&o.jsxs("span",{className:"text-muted-foreground font-mono text-[11px]",children:[v.size," match",v.size===1?"":"es"]}),o.jsx("div",{className:"ml-auto flex flex-wrap items-center gap-1 font-mono text-[11px]",children:[t,...c].map((l,g)=>o.jsxs("span",{className:"flex items-center gap-1",children:[g>0&&o.jsx("span",{className:"text-muted-foreground",children:"/"}),o.jsx("button",{type:"button",onClick:()=>i({...r,zoom:c.slice(0,g)}),disabled:g===c.length,className:C("max-w-40 truncate",g===c.length?"text-foreground font-semibold":"text-muted-foreground hover:underline"),children:l.name})]},l.id))})]}),o.jsxs("div",{ref:h,className:"bg-muted/20 relative overflow-hidden rounded-lg border",onMouseLeave:()=>i({...r,hovered:null}),children:[o.jsx("svg",{width:u,height:(N+1)*y,role:"img","aria-label":`Flamegraph of ${t.value} samples`,children:w.map(l=>{const g=Q(l.node.name,l.width);return o.jsxs("g",{onClick:()=>i({...r,zoom:[...c,...I(p,l.node)]}),onMouseMove:k=>{const S=h.current?.getBoundingClientRect();i({...r,hovered:{rect:l,x:k.clientX-(S?.left??0),y:k.clientY-(S?.top??0)}})},className:"cursor-pointer",children:[o.jsx("rect",{x:l.x,y:l.depth*y,width:Math.max(0,l.width-1),height:y-1,rx:2,fill:K(l.node.name),opacity:O?v.has(l.id)?1:.18:r.hovered?.rect.id===l.id?1:.88,stroke:v.has(l.id)?"currentColor":"none",strokeWidth:1}),g!==""&&o.jsx("text",{x:l.x+4,y:l.depth*y+y/2,dominantBaseline:"central",className:"pointer-events-none fill-black/85 font-mono text-[10px]",children:g})]},l.id)})}),r.hovered&&o.jsx(Y,{rect:r.hovered.rect,total:t.value,x:r.hovered.x,y:r.hovered.y})]}),o.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[o.jsx("h3",{className:"label-caps",children:"Hottest frames"}),o.jsxs(V,{children:[o.jsx(z,{active:a==="self",onClick:()=>f("self"),children:"Self"}),o.jsx(z,{active:a==="total",onClick:()=>f("total"),children:"Total"})]})]}),o.jsx(E,{rows:b,rowKey:l=>l.name,empty:"No frames in this view.",columns:[{key:"name",header:"Frame",className:"max-w-0",cell:l=>o.jsx("span",{className:"block truncate font-mono text-xs",title:l.name,children:l.name})},{key:"self",header:"Self",align:"right",cell:l=>o.jsx("span",{className:a==="self"?"font-semibold":"",children:M(l.self)})},{key:"total",header:"Total",align:"right",cell:l=>o.jsx("span",{className:a==="total"?"font-semibold":"",children:M(l.total)})}]})]})}function I(s,e){if(s===e)return[];for(const t of s.children){const n=I(t,e);if(n.length>0||t===e)return[t,...n]}return[]}export{_ as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as S,c as _,u as C,C as N,j as s,r as w}from"./inertia-DLew8ZNx.js";import{s as E}from"./source-link-B2183i2-.js";import{B as $}from"./badge-CAxXV8za.js";const q=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]],Z=S("clipboard-copy",q);const M=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],F=S("external-link",M);function A(m){const e=_.c(26),{location:t,deploy:o,className:l}=m,{auth:r,environment:n}=C().props;let x,c,a;if(e[0]!==r||e[1]!==l||e[2]!==o||e[3]!==n?.default_branch||e[4]!==n?.repository_url||e[5]!==t){c=Symbol.for("react.early_return_sentinel");e:{const g=/^(.*):(\d+)$/.exec(t);if(a=g?E({file:g[1],line:Number(g[2]),repositoryUrl:n?.repository_url,ref:o,defaultBranch:n?.default_branch,editor:r.user.editor,editorRoot:r.user.editor_root}):null,!a){let d;e[9]!==l?(d=N("truncate font-mono text-xs",l),e[9]=l,e[10]=d):d=e[10];let j;e[11]!==t||e[12]!==d?(j=s.jsx("span",{className:d,children:t}),e[11]=t,e[12]=d,e[13]=j):j=e[13],c=j;break e}x=a.startsWith("http")}e[0]=r,e[1]=l,e[2]=o,e[3]=n?.default_branch,e[4]=n?.repository_url,e[5]=t,e[6]=x,e[7]=c,e[8]=a}else x=e[6],c=e[7],a=e[8];if(c!==Symbol.for("react.early_return_sentinel"))return c;const b=x;let i;e[14]!==b?(i=b?{target:"_blank",rel:"noreferrer"}:{},e[14]=b,e[15]=i):i=e[15];let f;e[16]!==l?(f=N("inline-flex min-w-0 items-center gap-1 font-mono text-xs hover:underline",l),e[16]=l,e[17]=f):f=e[17];let h;e[18]!==t?(h=s.jsx("span",{className:"truncate",children:t}),e[18]=t,e[19]=h):h=e[19];let u;e[20]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(F,{className:"size-3 shrink-0 opacity-60"}),e[20]=u):u=e[20];let p;return e[21]!==i||e[22]!==f||e[23]!==h||e[24]!==a?(p=s.jsxs("a",{href:a,...i,className:f,children:[h,u]}),e[21]=i,e[22]=f,e[23]=h,e[24]=a,e[25]=p):p=e[25],p}const H=/-[A-Za-z0-9_-]{8,}\.(?:js|mjs|cjs|css)$/;function O(m){const e=_.c(36),{frame:t,deploy:o,open:l,onToggle:r}=m;let n;e[0]!==t.code?(n=t.code?Object.entries(t.code):[],e[0]=t.code,e[1]=n):n=e[1];const x=n;let c;e[2]!==t.file||e[3]!==t.in_app?(c=t.in_app&&!H.test(t.file),e[2]=t.file,e[3]=t.in_app,e[4]=c):c=e[4];const a=c,b=t.in_app?"bg-background":"bg-muted/40";let i;e[5]!==b?(i=N("border-b last:border-b-0",b),e[5]=b,e[6]=i):i=e[6];let f;e[7]!==o||e[8]!==t.file||e[9]!==t.line||e[10]!==a?(f=a&&s.jsx(A,{location:`${t.file}:${t.line}`,deploy:o}),e[7]=o,e[8]=t.file,e[9]=t.line,e[10]=a,e[11]=f):f=e[11];let h;e[12]!==t.file||e[13]!==t.line||e[14]!==a?(h=!a&&s.jsxs("span",{className:"text-muted-foreground truncate",children:[t.file,":",t.line]}),e[12]=t.file,e[13]=t.line,e[14]=a,e[15]=h):h=e[15];let u;e[16]!==t.function?(u=s.jsxs("span",{className:"text-muted-foreground ml-auto truncate",children:["in ",t.function]}),e[16]=t.function,e[17]=u):u=e[17];let p;e[18]!==t.in_app?(p=t.in_app&&s.jsx($,{variant:"outline",className:"shrink-0 text-[10px]",children:"app"}),e[18]=t.in_app,e[19]=p):p=e[19];let g;e[20]!==r||e[21]!==h||e[22]!==u||e[23]!==p?(g=s.jsxs("button",{type:"button",onClick:r,className:"flex min-w-0 flex-1 items-center gap-2 text-left",children:[h,u,p]}),e[20]=r,e[21]=h,e[22]=u,e[23]=p,e[24]=g):g=e[24];let d;e[25]!==f||e[26]!==g?(d=s.jsxs("div",{className:"hover:bg-muted/60 flex w-full items-center gap-2 px-3 py-1.5 font-mono text-xs",children:[f,g]}),e[25]=f,e[26]=g,e[27]=d):d=e[27];let j;e[28]!==t.line||e[29]!==x||e[30]!==l?(j=l&&x.length>0&&s.jsx("pre",{className:"bg-muted/60 overflow-x-auto px-3 py-2 font-mono text-xs leading-5",children:x.map(v=>{const[k,B]=v;return s.jsxs("div",{className:N("flex gap-3 border-l-2 border-transparent pl-2",Number(k)===t.line&&"border-destructive bg-destructive/10 font-semibold"),children:[s.jsx("span",{className:"text-muted-foreground w-10 shrink-0 text-right select-none",children:k}),s.jsx("span",{className:"whitespace-pre",children:B})]},k)})}),e[28]=t.line,e[29]=x,e[30]=l,e[31]=j):j=e[31];let y;return e[32]!==d||e[33]!==j||e[34]!==i?(y=s.jsxs("div",{className:i,children:[d,j]}),e[32]=d,e[33]=j,e[34]=i,e[35]=y):y=e[35],y}function z(m){const e=_.c(22),{frames:t,deploy:o}=m;let l,r;if(e[0]!==t){const d=t.flatMap(R);l=w.useState,r=new Set(d.length>0?d:[0]),e[0]=t,e[1]=l,e[2]=r}else l=e[1],r=e[2];const[n,x]=l(r),[c,a]=w.useState(!1);let b;e[3]!==t||e[4]!==c?(b=c?t:t.filter(L),e[3]=t,e[4]=c,e[5]=b):b=e[5];const i=b;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=function(j){x(y=>{const v=new Set(y);return v.has(j)?v.delete(j):v.add(j),v})},e[6]=f):f=e[6];const h=f;let u;if(e[7]!==o||e[8]!==t||e[9]!==n||e[10]!==i){let d;e[12]!==o||e[13]!==t||e[14]!==n?(d=j=>{const y=t.indexOf(j);return s.jsx(O,{frame:j,deploy:o,open:n.has(y),onToggle:()=>h(y)},y)},e[12]=o,e[13]=t,e[14]=n,e[15]=d):d=e[15],u=i.map(d),e[7]=o,e[8]=t,e[9]=n,e[10]=i,e[11]=u}else u=e[11];let p;e[16]!==t.length||e[17]!==i.length?(p=i.length<t.length&&s.jsxs("button",{type:"button",className:"text-muted-foreground w-full px-3 py-1.5 text-left text-xs hover:underline",onClick:()=>a(!0),children:["Show ",t.length-i.length," framework frames"]}),e[16]=t.length,e[17]=i.length,e[18]=p):p=e[18];let g;return e[19]!==u||e[20]!==p?(g=s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[u,p]}),e[19]=u,e[20]=p,e[21]=g):g=e[21],g}function L(m,e){return m.in_app||e<3}function R(m,e){return m.in_app?[e]:[]}function G(m){const e=_.c(34),{exception:t,deploy:o}=m;let l;e[0]!==t.class_name?(l=s.jsx("span",{className:"font-mono text-sm font-semibold",children:t.class_name}),e[0]=t.class_name,e[1]=l):l=e[1];const r=t.handled?"secondary":"destructive",n=t.handled?"handled":"unhandled";let x;e[2]!==r||e[3]!==n?(x=s.jsx($,{variant:r,children:n}),e[2]=r,e[3]=n,e[4]=x):x=e[4];let c;e[5]!==t.severity?(c=t.severity&&s.jsx($,{variant:"outline",children:t.severity}),e[5]=t.severity,e[6]=c):c=e[6];let a;e[7]!==t.source?(a=t.source&&s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source}),e[7]=t.source,e[8]=a):a=e[8];let b;e[9]!==l||e[10]!==x||e[11]!==c||e[12]!==a?(b=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[l,x,c,a]}),e[9]=l,e[10]=x,e[11]=c,e[12]=a,e[13]=b):b=e[13];let i;e[14]!==t.message?(i=s.jsx("p",{className:"mt-1 font-mono text-sm break-words",children:t.message}),e[14]=t.message,e[15]=i):i=e[15];let f;e[16]!==t.cause?(f=t.cause&&s.jsxs("p",{className:"text-muted-foreground mt-1 font-mono text-xs",children:["caused by ",t.cause.class,": ",t.cause.message]}),e[16]=t.cause,e[17]=f):f=e[17];let h;e[18]!==b||e[19]!==i||e[20]!==f?(h=s.jsxs("div",{children:[b,i,f]}),e[18]=b,e[19]=i,e[20]=f,e[21]=h):h=e[21];let u;e[22]!==o||e[23]!==t.frames?(u=s.jsx(z,{frames:t.frames,deploy:o}),e[22]=o,e[23]=t.frames,e[24]=u):u=e[24];let p;e[25]!==t.locals?(p=t.locals&&Object.keys(t.locals).length>0&&s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[s.jsx("div",{className:"label-caps border-b px-3 py-1.5",children:"Local variables at the raise site"}),s.jsx("dl",{className:"grid grid-cols-[max-content_1fr] gap-x-4 gap-y-1 px-3 py-2 font-mono text-xs",children:Object.entries(t.locals).map(T)})]}),e[25]=t.locals,e[26]=p):p=e[26];let g;e[27]!==t.context?(g=t.context&&t.context!=="{}"&&s.jsx("pre",{className:"bg-muted/60 overflow-x-auto rounded-lg p-3 font-mono text-xs",children:t.context}),e[27]=t.context,e[28]=g):g=e[28];let d;return e[29]!==h||e[30]!==u||e[31]!==p||e[32]!==g?(d=s.jsxs("div",{className:"space-y-3",children:[h,u,p,g]}),e[29]=h,e[30]=u,e[31]=p,e[32]=g,e[33]=d):d=e[33],d}function T(m){const[e,t]=m;return s.jsxs(w.Fragment,{children:[s.jsx("dt",{className:"text-muted-foreground",children:e}),s.jsx("dd",{className:"break-all",children:t})]},e)}const I={query:"bg-sky-500",transaction:"bg-sky-300",cache_event:"bg-violet-500",outgoing_request:"bg-orange-500",mail:"bg-pink-500",broadcast:"bg-teal-500",enqueued_job:"bg-amber-500",view_render:"bg-emerald-500",storage_op:"bg-indigo-500",exception:"bg-red-500",log:"bg-neutral-400"};function J(m){const e=_.c(9),{entries:t}=m;if(t.length===0)return null;let o;e[0]!==t.length?(o=s.jsxs("div",{className:"label-caps border-b px-3 py-1.5",children:["Breadcrumbs · ",t.length," events before the exception"]}),e[0]=t.length,e[1]=o):o=e[1];let l;e[2]!==t?(l=t.map(U),e[2]=t,e[3]=l):l=e[3];let r;e[4]!==l?(r=s.jsx("ol",{className:"divide-y",children:l}),e[4]=l,e[5]=r):r=e[5];let n;return e[6]!==o||e[7]!==r?(n=s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[o,r]}),e[6]=o,e[7]=r,e[8]=n):n=e[8],n}function U(m){return s.jsxs("li",{className:"grid grid-cols-[3.5rem_5rem_1fr_4rem] items-center gap-2 px-3 py-1 font-mono text-xs",children:[s.jsxs("span",{className:"text-muted-foreground tabular-nums",children:["+",m.offset.toFixed(1),"ms"]}),s.jsxs("span",{className:"text-muted-foreground flex items-center gap-1.5 truncate",children:[s.jsx("span",{className:N("inline-block size-1.5 shrink-0 rounded-full",I[m.type]??"bg-neutral-500")}),m.type.replace("_"," ")]}),s.jsx("span",{className:"truncate",children:m.label}),s.jsx("span",{className:"text-muted-foreground text-right tabular-nums",children:m.duration!=null?`${m.duration.toFixed(1)}ms`:""})]},`${m.type}-${m.id}`)}const D={console:"bg-red-500",click:"bg-violet-500",navigate:"bg-sky-500"};function K(m){const e=_.c(12),{crumbs:t}=m;if(t.length===0)return null;const o=t[0].at;let l;e[0]!==t.length?(l=s.jsxs("div",{className:"label-caps border-b px-3 py-1.5",children:["Breadcrumbs · ",t.length," events before the error"]}),e[0]=t.length,e[1]=l):l=e[1];let r;if(e[2]!==t||e[3]!==o){let c;e[5]!==o?(c=(a,b)=>s.jsxs("li",{className:"grid grid-cols-[3.5rem_5rem_1fr] items-center gap-2 px-3 py-1 font-mono text-xs",children:[s.jsxs("span",{className:"text-muted-foreground tabular-nums",children:["+",((a.at-o)/1e3).toFixed(1),"s"]}),s.jsxs("span",{className:"text-muted-foreground flex items-center gap-1.5 truncate",children:[s.jsx("span",{className:N("inline-block size-1.5 shrink-0 rounded-full",D[a.kind]??"bg-neutral-500")}),a.kind]}),s.jsx("span",{className:"truncate",children:a.text})]},`${a.at}-${a.kind}-${b}`),e[5]=o,e[6]=c):c=e[6],r=t.map(c),e[2]=t,e[3]=o,e[4]=r}else r=e[4];let n;e[7]!==r?(n=s.jsx("ol",{className:"divide-y",children:r}),e[7]=r,e[8]=n):n=e[8];let x;return e[9]!==l||e[10]!==n?(x=s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[l,n]}),e[9]=l,e[10]=n,e[11]=x):x=e[11],x}export{J as B,Z as C,G as E,A as S,K as a};
|
|
1
|
+
import{B as S,c as _,u as C,C as N,j as s,r as w}from"./inertia-CqnzqPVD.js";import{s as E}from"./source-link-B2183i2-.js";import{B as $}from"./badge-Dv7I-ebP.js";const q=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]],Z=S("clipboard-copy",q);const M=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],F=S("external-link",M);function A(m){const e=_.c(26),{location:t,deploy:o,className:l}=m,{auth:r,environment:n}=C().props;let x,c,a;if(e[0]!==r||e[1]!==l||e[2]!==o||e[3]!==n?.default_branch||e[4]!==n?.repository_url||e[5]!==t){c=Symbol.for("react.early_return_sentinel");e:{const g=/^(.*):(\d+)$/.exec(t);if(a=g?E({file:g[1],line:Number(g[2]),repositoryUrl:n?.repository_url,ref:o,defaultBranch:n?.default_branch,editor:r.user.editor,editorRoot:r.user.editor_root}):null,!a){let d;e[9]!==l?(d=N("truncate font-mono text-xs",l),e[9]=l,e[10]=d):d=e[10];let j;e[11]!==t||e[12]!==d?(j=s.jsx("span",{className:d,children:t}),e[11]=t,e[12]=d,e[13]=j):j=e[13],c=j;break e}x=a.startsWith("http")}e[0]=r,e[1]=l,e[2]=o,e[3]=n?.default_branch,e[4]=n?.repository_url,e[5]=t,e[6]=x,e[7]=c,e[8]=a}else x=e[6],c=e[7],a=e[8];if(c!==Symbol.for("react.early_return_sentinel"))return c;const b=x;let i;e[14]!==b?(i=b?{target:"_blank",rel:"noreferrer"}:{},e[14]=b,e[15]=i):i=e[15];let f;e[16]!==l?(f=N("inline-flex min-w-0 items-center gap-1 font-mono text-xs hover:underline",l),e[16]=l,e[17]=f):f=e[17];let h;e[18]!==t?(h=s.jsx("span",{className:"truncate",children:t}),e[18]=t,e[19]=h):h=e[19];let u;e[20]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(F,{className:"size-3 shrink-0 opacity-60"}),e[20]=u):u=e[20];let p;return e[21]!==i||e[22]!==f||e[23]!==h||e[24]!==a?(p=s.jsxs("a",{href:a,...i,className:f,children:[h,u]}),e[21]=i,e[22]=f,e[23]=h,e[24]=a,e[25]=p):p=e[25],p}const H=/-[A-Za-z0-9_-]{8,}\.(?:js|mjs|cjs|css)$/;function O(m){const e=_.c(36),{frame:t,deploy:o,open:l,onToggle:r}=m;let n;e[0]!==t.code?(n=t.code?Object.entries(t.code):[],e[0]=t.code,e[1]=n):n=e[1];const x=n;let c;e[2]!==t.file||e[3]!==t.in_app?(c=t.in_app&&!H.test(t.file),e[2]=t.file,e[3]=t.in_app,e[4]=c):c=e[4];const a=c,b=t.in_app?"bg-background":"bg-muted/40";let i;e[5]!==b?(i=N("border-b last:border-b-0",b),e[5]=b,e[6]=i):i=e[6];let f;e[7]!==o||e[8]!==t.file||e[9]!==t.line||e[10]!==a?(f=a&&s.jsx(A,{location:`${t.file}:${t.line}`,deploy:o}),e[7]=o,e[8]=t.file,e[9]=t.line,e[10]=a,e[11]=f):f=e[11];let h;e[12]!==t.file||e[13]!==t.line||e[14]!==a?(h=!a&&s.jsxs("span",{className:"text-muted-foreground truncate",children:[t.file,":",t.line]}),e[12]=t.file,e[13]=t.line,e[14]=a,e[15]=h):h=e[15];let u;e[16]!==t.function?(u=s.jsxs("span",{className:"text-muted-foreground ml-auto truncate",children:["in ",t.function]}),e[16]=t.function,e[17]=u):u=e[17];let p;e[18]!==t.in_app?(p=t.in_app&&s.jsx($,{variant:"outline",className:"shrink-0 text-[10px]",children:"app"}),e[18]=t.in_app,e[19]=p):p=e[19];let g;e[20]!==r||e[21]!==h||e[22]!==u||e[23]!==p?(g=s.jsxs("button",{type:"button",onClick:r,className:"flex min-w-0 flex-1 items-center gap-2 text-left",children:[h,u,p]}),e[20]=r,e[21]=h,e[22]=u,e[23]=p,e[24]=g):g=e[24];let d;e[25]!==f||e[26]!==g?(d=s.jsxs("div",{className:"hover:bg-muted/60 flex w-full items-center gap-2 px-3 py-1.5 font-mono text-xs",children:[f,g]}),e[25]=f,e[26]=g,e[27]=d):d=e[27];let j;e[28]!==t.line||e[29]!==x||e[30]!==l?(j=l&&x.length>0&&s.jsx("pre",{className:"bg-muted/60 overflow-x-auto px-3 py-2 font-mono text-xs leading-5",children:x.map(v=>{const[k,B]=v;return s.jsxs("div",{className:N("flex gap-3 border-l-2 border-transparent pl-2",Number(k)===t.line&&"border-destructive bg-destructive/10 font-semibold"),children:[s.jsx("span",{className:"text-muted-foreground w-10 shrink-0 text-right select-none",children:k}),s.jsx("span",{className:"whitespace-pre",children:B})]},k)})}),e[28]=t.line,e[29]=x,e[30]=l,e[31]=j):j=e[31];let y;return e[32]!==d||e[33]!==j||e[34]!==i?(y=s.jsxs("div",{className:i,children:[d,j]}),e[32]=d,e[33]=j,e[34]=i,e[35]=y):y=e[35],y}function z(m){const e=_.c(22),{frames:t,deploy:o}=m;let l,r;if(e[0]!==t){const d=t.flatMap(R);l=w.useState,r=new Set(d.length>0?d:[0]),e[0]=t,e[1]=l,e[2]=r}else l=e[1],r=e[2];const[n,x]=l(r),[c,a]=w.useState(!1);let b;e[3]!==t||e[4]!==c?(b=c?t:t.filter(L),e[3]=t,e[4]=c,e[5]=b):b=e[5];const i=b;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=function(j){x(y=>{const v=new Set(y);return v.has(j)?v.delete(j):v.add(j),v})},e[6]=f):f=e[6];const h=f;let u;if(e[7]!==o||e[8]!==t||e[9]!==n||e[10]!==i){let d;e[12]!==o||e[13]!==t||e[14]!==n?(d=j=>{const y=t.indexOf(j);return s.jsx(O,{frame:j,deploy:o,open:n.has(y),onToggle:()=>h(y)},y)},e[12]=o,e[13]=t,e[14]=n,e[15]=d):d=e[15],u=i.map(d),e[7]=o,e[8]=t,e[9]=n,e[10]=i,e[11]=u}else u=e[11];let p;e[16]!==t.length||e[17]!==i.length?(p=i.length<t.length&&s.jsxs("button",{type:"button",className:"text-muted-foreground w-full px-3 py-1.5 text-left text-xs hover:underline",onClick:()=>a(!0),children:["Show ",t.length-i.length," framework frames"]}),e[16]=t.length,e[17]=i.length,e[18]=p):p=e[18];let g;return e[19]!==u||e[20]!==p?(g=s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[u,p]}),e[19]=u,e[20]=p,e[21]=g):g=e[21],g}function L(m,e){return m.in_app||e<3}function R(m,e){return m.in_app?[e]:[]}function G(m){const e=_.c(34),{exception:t,deploy:o}=m;let l;e[0]!==t.class_name?(l=s.jsx("span",{className:"font-mono text-sm font-semibold",children:t.class_name}),e[0]=t.class_name,e[1]=l):l=e[1];const r=t.handled?"secondary":"destructive",n=t.handled?"handled":"unhandled";let x;e[2]!==r||e[3]!==n?(x=s.jsx($,{variant:r,children:n}),e[2]=r,e[3]=n,e[4]=x):x=e[4];let c;e[5]!==t.severity?(c=t.severity&&s.jsx($,{variant:"outline",children:t.severity}),e[5]=t.severity,e[6]=c):c=e[6];let a;e[7]!==t.source?(a=t.source&&s.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.source}),e[7]=t.source,e[8]=a):a=e[8];let b;e[9]!==l||e[10]!==x||e[11]!==c||e[12]!==a?(b=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[l,x,c,a]}),e[9]=l,e[10]=x,e[11]=c,e[12]=a,e[13]=b):b=e[13];let i;e[14]!==t.message?(i=s.jsx("p",{className:"mt-1 font-mono text-sm break-words",children:t.message}),e[14]=t.message,e[15]=i):i=e[15];let f;e[16]!==t.cause?(f=t.cause&&s.jsxs("p",{className:"text-muted-foreground mt-1 font-mono text-xs",children:["caused by ",t.cause.class,": ",t.cause.message]}),e[16]=t.cause,e[17]=f):f=e[17];let h;e[18]!==b||e[19]!==i||e[20]!==f?(h=s.jsxs("div",{children:[b,i,f]}),e[18]=b,e[19]=i,e[20]=f,e[21]=h):h=e[21];let u;e[22]!==o||e[23]!==t.frames?(u=s.jsx(z,{frames:t.frames,deploy:o}),e[22]=o,e[23]=t.frames,e[24]=u):u=e[24];let p;e[25]!==t.locals?(p=t.locals&&Object.keys(t.locals).length>0&&s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[s.jsx("div",{className:"label-caps border-b px-3 py-1.5",children:"Local variables at the raise site"}),s.jsx("dl",{className:"grid grid-cols-[max-content_1fr] gap-x-4 gap-y-1 px-3 py-2 font-mono text-xs",children:Object.entries(t.locals).map(T)})]}),e[25]=t.locals,e[26]=p):p=e[26];let g;e[27]!==t.context?(g=t.context&&t.context!=="{}"&&s.jsx("pre",{className:"bg-muted/60 overflow-x-auto rounded-lg p-3 font-mono text-xs",children:t.context}),e[27]=t.context,e[28]=g):g=e[28];let d;return e[29]!==h||e[30]!==u||e[31]!==p||e[32]!==g?(d=s.jsxs("div",{className:"space-y-3",children:[h,u,p,g]}),e[29]=h,e[30]=u,e[31]=p,e[32]=g,e[33]=d):d=e[33],d}function T(m){const[e,t]=m;return s.jsxs(w.Fragment,{children:[s.jsx("dt",{className:"text-muted-foreground",children:e}),s.jsx("dd",{className:"break-all",children:t})]},e)}const I={query:"bg-sky-500",transaction:"bg-sky-300",cache_event:"bg-violet-500",outgoing_request:"bg-orange-500",mail:"bg-pink-500",broadcast:"bg-teal-500",enqueued_job:"bg-amber-500",view_render:"bg-emerald-500",storage_op:"bg-indigo-500",exception:"bg-red-500",log:"bg-neutral-400"};function J(m){const e=_.c(9),{entries:t}=m;if(t.length===0)return null;let o;e[0]!==t.length?(o=s.jsxs("div",{className:"label-caps border-b px-3 py-1.5",children:["Breadcrumbs · ",t.length," events before the exception"]}),e[0]=t.length,e[1]=o):o=e[1];let l;e[2]!==t?(l=t.map(U),e[2]=t,e[3]=l):l=e[3];let r;e[4]!==l?(r=s.jsx("ol",{className:"divide-y",children:l}),e[4]=l,e[5]=r):r=e[5];let n;return e[6]!==o||e[7]!==r?(n=s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[o,r]}),e[6]=o,e[7]=r,e[8]=n):n=e[8],n}function U(m){return s.jsxs("li",{className:"grid grid-cols-[3.5rem_5rem_1fr_4rem] items-center gap-2 px-3 py-1 font-mono text-xs",children:[s.jsxs("span",{className:"text-muted-foreground tabular-nums",children:["+",m.offset.toFixed(1),"ms"]}),s.jsxs("span",{className:"text-muted-foreground flex items-center gap-1.5 truncate",children:[s.jsx("span",{className:N("inline-block size-1.5 shrink-0 rounded-full",I[m.type]??"bg-neutral-500")}),m.type.replace("_"," ")]}),s.jsx("span",{className:"truncate",children:m.label}),s.jsx("span",{className:"text-muted-foreground text-right tabular-nums",children:m.duration!=null?`${m.duration.toFixed(1)}ms`:""})]},`${m.type}-${m.id}`)}const D={console:"bg-red-500",click:"bg-violet-500",navigate:"bg-sky-500"};function K(m){const e=_.c(12),{crumbs:t}=m;if(t.length===0)return null;const o=t[0].at;let l;e[0]!==t.length?(l=s.jsxs("div",{className:"label-caps border-b px-3 py-1.5",children:["Breadcrumbs · ",t.length," events before the error"]}),e[0]=t.length,e[1]=l):l=e[1];let r;if(e[2]!==t||e[3]!==o){let c;e[5]!==o?(c=(a,b)=>s.jsxs("li",{className:"grid grid-cols-[3.5rem_5rem_1fr] items-center gap-2 px-3 py-1 font-mono text-xs",children:[s.jsxs("span",{className:"text-muted-foreground tabular-nums",children:["+",((a.at-o)/1e3).toFixed(1),"s"]}),s.jsxs("span",{className:"text-muted-foreground flex items-center gap-1.5 truncate",children:[s.jsx("span",{className:N("inline-block size-1.5 shrink-0 rounded-full",D[a.kind]??"bg-neutral-500")}),a.kind]}),s.jsx("span",{className:"truncate",children:a.text})]},`${a.at}-${a.kind}-${b}`),e[5]=o,e[6]=c):c=e[6],r=t.map(c),e[2]=t,e[3]=o,e[4]=r}else r=e[4];let n;e[7]!==r?(n=s.jsx("ol",{className:"divide-y",children:r}),e[7]=r,e[8]=n):n=e[8];let x;return e[9]!==l||e[10]!==n?(x=s.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[l,n]}),e[9]=l,e[10]=n,e[11]=x):x=e[11],x}export{J as B,Z as C,G as E,A as S,K as a};
|
data/public/railwatch/assets/{google-sign-in-button-BQiIKFdd.js → google-sign-in-button-B5as2ps1.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,j as t}from"./inertia-
|
|
1
|
+
import{c as h,j as t}from"./inertia-CqnzqPVD.js";import{B as p}from"./app-wordmark-Bt6XqURo.js";import{S as x}from"./separator-Ct2UcZ2x.js";function j(m){const e=h.c(6);let n,s,i,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1Z",fill:"#4285F4"}),s=t.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.99.66-2.25 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.85A11 11 0 0 0 12 23Z",fill:"#34A853"}),i=t.jsx("path",{d:"M5.84 14.09A6.6 6.6 0 0 1 5.5 12c0-.73.13-1.43.34-2.09V7.06H2.18A11 11 0 0 0 1 12c0 1.77.42 3.45 1.18 4.94l3.66-2.85Z",fill:"#FBBC05"}),a=t.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1a11 11 0 0 0-9.82 6.06l3.66 2.85C6.71 7.31 9.14 5.38 12 5.38Z",fill:"#EA4335"}),e[0]=n,e[1]=s,e[2]=i,e[3]=a):(n=e[0],s=e[1],i=e[2],a=e[3]);let l;return e[4]!==m?(l=t.jsxs("svg",{viewBox:"0 0 24 24",...m,children:[n,s,i,a]}),e[4]=m,e[5]=l):l=e[5],l}function v(){return typeof document>"u"?"":document.querySelector('meta[name="csrf-token"]')?.getAttribute("content")??""}function _(m){const e=h.c(14),{label:n,reauthenticateFor:s,separated:i}=m,a=i===void 0?!0:i;let l;e[0]!==a?(l=a&&t.jsxs("div",{className:"relative text-center text-sm",children:[t.jsx(x,{className:"absolute top-1/2"}),t.jsx("span",{className:"bg-background text-muted-foreground relative px-2",children:"Or"})]}),e[0]=a,e[1]=l):l=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("input",{type:"hidden",name:"authenticity_token",value:v()}),e[2]=u):u=e[2];let o;e[3]!==s?(o=s&&t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"hidden",name:"reauthenticate",value:s}),t.jsx("input",{type:"hidden",name:"prompt",value:"select_account"})]}),e[3]=s,e[4]=o):o=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(j,{className:"size-4"}),e[5]=d):d=e[5];let c;e[6]!==n?(c=t.jsxs(p,{type:"submit",variant:"outline",className:"w-full",children:[d,n]}),e[6]=n,e[7]=c):c=e[7];let r;e[8]!==o||e[9]!==c?(r=t.jsxs("form",{method:"post",action:"/auth/google_oauth2",children:[u,o,c]}),e[8]=o,e[9]=c,e[10]=r):r=e[10];let f;return e[11]!==l||e[12]!==r?(f=t.jsxs("div",{className:"grid gap-6",children:[l,r]}),e[11]=l,e[12]=r,e[13]=f):f=e[13],f}export{_ as G};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as ae,c as F,u as he,j as l,t as pe,e as le,Z as fe,L as xe,C as ge,r as re}from"./inertia-DLew8ZNx.js";import{V as se,D as ne}from"./chart-panel-DUQTz_C8.js";import{D as ee}from"./data-table-BIlt7Rtm.js";import{E as ie}from"./empty-state-C38il627.js";import{F as _e}from"./filter-bar-CYog9Alp.js";import{P as ke,E as je}from"./env-layout-REF7OM4q.js";import{S as ce}from"./sparkline-cell-BON3qQUB.js";import{S as ye}from"./status-badge-BaUKP7Yo.js";import{c as p,u as de,p as te,m as q,w as be}from"./format-B9SDkrWj.js";import{p as me,C as Ne,a as we}from"./app-layout-DDyQa72H.js";import"./series-chart-Xf49v9cv.js";import"./chart-hover-B1M9jc0y.js";import"./chart-BBeBkkNa.js";import"./badge-CAxXV8za.js";import"./app-wordmark-o9CODKP0.js";import"./use-live-D7xKz2ma.js";import"./live-dot-D1n_BreY.js";import"./index-so4lRrRq.js";import"./index-umIAl-pL.js";import"./segmented-BgbT3wZa.js";import"./label-GWl7I6sf.js";import"./checkbox-CmhMHWZO.js";const ve=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],Me=ae("paperclip",ve);const Se=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],Oe=ae("scissors",Se),oe=l.jsx(ie,{icon:me,title:"No model calls in this window",description:"Chats, embeddings, and other model calls your app makes through RubyLLM appear here, with the request or job that made them."}),Ce=l.jsx(ie,{icon:me,title:"No tool calls in this window",description:"Tools your models invoke appear here, timed separately from the calls that asked for them."});function Le(t){const e=F.c(7),{reason:s}=t;if(!s||s==="stop"||s==="tool_calls")return null;const a=s==="max_tokens"||s==="content_filter"?"text-destructive":"text-muted-foreground";let n;e[0]!==a?(n=ge("ml-2 inline-flex items-center gap-1 text-xs",a),e[0]=a,e[1]=n):n=e[1];const r=s==="max_tokens"?"The answer was cut off at the output token limit":`Model stopped: ${s}`;let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsx(Oe,{className:"size-3"}),e[2]=i):i=e[2];let c;return e[3]!==s||e[4]!==n||e[5]!==r?(c=l.jsxs("span",{className:n,title:r,children:[i,s]}),e[3]=s,e[4]=n,e[5]=r,e[6]=c):c=e[6],c}function Te(t){const e=F.c(4),{call:s}=t;if(!s.attachments)return null;const o=s.attachment_names??`${s.attachments} file(s): ${s.attachment_types}`;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx(Me,{className:"size-3"}),e[0]=a):a=e[0];const n=s.attachment_types??s.attachments;let r;return e[1]!==o||e[2]!==n?(r=l.jsxs("span",{className:"text-muted-foreground ml-2 inline-flex items-center gap-1 text-xs",title:o,children:[a,n]}),e[1]=o,e[2]=n,e[3]=r):r=e[3],r}function Fe(t){const e=F.c(19),{call:s}=t,[o,a]=re.useState(!1),{prompt:n,completion:r,params:i,provider_request_id:c,tools:f}=s;if(!(n!==null||r!==null||c!==null||f!==null||i!==null&&Object.keys(i).length>0)){let g;return e[0]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx("span",{className:"text-muted-foreground",children:"–"}),e[0]=g):g=e[0],g}const _=o?Ne:we;let d;e[1]!==o?(d=()=>a(!o),e[1]=o,e[2]=d):d=e[2];let m;e[3]!==_?(m=l.jsx(_,{className:"size-3"}),e[3]=_,e[4]=m):m=e[4];let u;e[5]!==o||e[6]!==d||e[7]!==m?(u=l.jsxs("button",{type:"button",onClick:d,"aria-expanded":o,className:"text-muted-foreground hover:text-foreground inline-flex items-center gap-1",children:[m,"Detail"]}),e[5]=o,e[6]=d,e[7]=m,e[8]=u):u=e[8];let h;e[9]!==r||e[10]!==o||e[11]!==i||e[12]!==n||e[13]!==c||e[14]!==f?(h=o&&l.jsxs("div",{className:"w-[70vw] max-w-[36rem] space-y-2 text-left",children:[l.jsxs("dl",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 font-mono text-[10px]",children:[c&&l.jsxs(l.Fragment,{children:[l.jsx("dt",{className:"text-muted-foreground",children:"provider id"}),l.jsx("dd",{className:"break-all",children:c})]}),f&&l.jsxs(l.Fragment,{children:[l.jsx("dt",{className:"text-muted-foreground",children:"tools"}),l.jsx("dd",{className:"break-all",children:f})]}),i&&Object.entries(i).map(qe)]}),[["Prompt",n],["Completion",r]].map($e)]}),e[9]=r,e[10]=o,e[11]=i,e[12]=n,e[13]=c,e[14]=f,e[15]=h):h=e[15];let x;return e[16]!==u||e[17]!==h?(x=l.jsxs("div",{className:"flex flex-col items-end gap-1",children:[u,h]}),e[16]=u,e[17]=h,e[18]=x):x=e[18],x}function $e(t){const[e,s]=t;return s?l.jsxs("div",{children:[l.jsx("div",{className:"text-muted-foreground text-[10px] tracking-wide uppercase",children:e}),l.jsx("pre",{className:"bg-muted max-h-64 overflow-auto rounded p-2 font-mono text-[10px] break-all whitespace-pre-wrap",children:s})]},e):null}function qe(t){const[e,s]=t;return l.jsxs(re.Fragment,{children:[l.jsx("dt",{className:"text-muted-foreground",children:e}),l.jsx("dd",{className:"break-all",children:typeof s=="string"||typeof s=="number"?s:JSON.stringify(s)})]},e)}function ue(t){const e=F.c(9),{cost:s,unpriced:o}=t;if(s===null){let i;return e[0]!==o?(i=o>0?l.jsx("span",{className:"text-muted-foreground",title:"No registry pricing",children:"unpriced"}):l.jsx("span",{className:"text-muted-foreground",title:"Nothing here has a price",children:"–"}),e[0]=o,e[1]=i):i=e[1],i}let a;e[2]!==s?(a=de(s),e[2]=s,e[3]=a):a=e[3];let n;e[4]!==o?(n=o>0&&l.jsxs("span",{className:"text-muted-foreground ml-1 text-xs font-normal",title:`${o} call${o===1?"":"s"} had no registry pricing and are not in this total`,children:["+",p(o)," unpriced"]}),e[4]=o,e[5]=n):n=e[5];let r;return e[6]!==a||e[7]!==n?(r=l.jsxs("span",{className:"font-semibold",children:[a,n]}),e[6]=a,e[7]=n,e[8]=r):r=e[8],r}function $(t){const e=F.c(7),{label:s,children:o}=t;let a;e[0]!==s?(a=l.jsx("div",{className:"text-muted-foreground text-xs",children:s}),e[0]=s,e[1]=a):a=e[1];let n;e[2]!==o?(n=l.jsx("div",{className:"truncate text-lg",children:o}),e[2]=o,e[3]=n):n=e[3];let r;return e[4]!==a||e[5]!==n?(r=l.jsxs("div",{className:"min-w-0",children:[a,n]}),e[4]=a,e[5]=n,e[6]=r):r=e[6],r}function Ft(t){const e=F.c(79),{environment:s,window:o}=he().props,a=s.application_id,n=s.id;let r;e[0]!==a||e[1]!==n?(r=k=>k.execution_id?pe(a,n,k.execution_id):null,e[0]=a,e[1]=n,e[2]=r):r=e[2];const i=r;let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx(ke,{title:"LLM",description:"Model calls and tool invocations through RubyLLM, by model and by the request or job that made them."}),e[3]=c):c=e[3];let f;e[4]!==t.totals.count?(f=p(t.totals.count),e[4]=t.totals.count,e[5]=f):f=e[5];let j;e[6]!==f?(j=l.jsx($,{label:"Model calls",children:f}),e[6]=f,e[7]=j):j=e[7];let _;e[8]!==t.totals.tool_count?(_=p(t.totals.tool_count),e[8]=t.totals.tool_count,e[9]=_):_=e[9];let d;e[10]!==_?(d=l.jsx($,{label:"Tool calls",children:_}),e[10]=_,e[11]=d):d=e[11];let m;e[12]!==t.totals.cost||e[13]!==t.totals.unpriced?(m=l.jsx($,{label:"Spend",children:l.jsx(ue,{cost:t.totals.cost,unpriced:t.totals.unpriced})}),e[12]=t.totals.cost,e[13]=t.totals.unpriced,e[14]=m):m=e[14];let u;e[15]!==t.totals.input_tokens?(u=p(t.totals.input_tokens),e[15]=t.totals.input_tokens,e[16]=u):u=e[16];let h;e[17]!==u?(h=l.jsx($,{label:"Tokens in",children:u}),e[17]=u,e[18]=h):h=e[18];let x;e[19]!==t.totals.output_tokens?(x=p(t.totals.output_tokens),e[19]=t.totals.output_tokens,e[20]=x):x=e[20];let g;e[21]!==x?(g=l.jsx($,{label:"Tokens out",children:x}),e[21]=x,e[22]=g):g=e[22];let y;e[23]!==g||e[24]!==j||e[25]!==d||e[26]!==m||e[27]!==h?(y=l.jsxs("div",{className:"grid grid-cols-2 gap-4 lg:grid-cols-5",children:[j,d,m,h,g]}),e[23]=g,e[24]=j,e[25]=d,e[26]=m,e[27]=h,e[28]=y):y=e[28];let b;e[29]!==t.series?(b=l.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[l.jsx(se,{legend:"request",label:"Model calls",seriesLabel:"Calls",data:t.series}),l.jsx(ne,{label:"Model latency",data:t.series,percentile:"p95"})]}),e[29]=t.series,e[30]=b):b=e[30];let N;e[31]!==t.tool_series||e[32]!==t.totals.tool_count?(N=t.totals.tool_count>0&&l.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[l.jsx(se,{legend:"request",label:"Tool calls",seriesLabel:"Calls",data:t.tool_series}),l.jsx(ne,{label:"Tool latency",data:t.tool_series,percentile:"p95"})]}),e[31]=t.tool_series,e[32]=t.totals.tool_count,e[33]=N):N=e[33];let D;e[34]===Symbol.for("react.memo_cache_sentinel")?(D=[{key:"m",header:"Model",cell:it},{key:"trend",hideOnMobile:!0,header:"Trend",cell:rt},{key:"n",header:"Calls",align:"right",cell:at},{key:"f",hideOnMobile:!0,header:"Failed",align:"right",cell:ot},{key:"cut",hideOnMobile:!0,header:"Cut off",align:"right",cell:nt},{key:"att",hideOnMobile:!0,header:"With files",align:"right",cell:st},{key:"in",hideOnMobile:!0,header:"Tokens in",align:"right",cell:lt},{key:"out",hideOnMobile:!0,header:"Tokens out",align:"right",cell:tt},{key:"cached",hideOnMobile:!0,header:"Cached",align:"right",cell:et},{key:"p95",hideOnMobile:!0,header:"p95",align:"right",cell:Ye},{key:"cost",header:"Spend",align:"right",cell:Xe}],e[34]=D):D=e[34];let w;e[35]!==t.models?(w=l.jsx(ee,{rows:t.models,rowKey:ct,empty:oe,columns:D}),e[35]=t.models,e[36]=w):w=e[36];let v;e[37]!==t.tools?(v=t.tools.length>0&&l.jsxs(l.Fragment,{children:[l.jsx("h2",{className:"text-sm font-semibold",children:"Tools"}),l.jsx(ee,{rows:t.tools,rowKey:Ue,empty:Ce,columns:[{key:"t",header:"Tool",cell:Qe},{key:"trend",hideOnMobile:!0,header:"Trend",cell:Ge},{key:"n",header:"Calls",align:"right",cell:Ze},{key:"f",hideOnMobile:!0,header:"Failed",align:"right",cell:Je},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:He},{key:"p95",header:"p95",align:"right",cell:Ve},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:Ie}]})]}),e[37]=t.tools,e[38]=v):v=e[38];let E;e[39]===Symbol.for("react.memo_cache_sentinel")?(E=l.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[39]=E):E=e[39];let P,R;e[40]===Symbol.for("react.memo_cache_sentinel")?(P={key:"model",label:"Model"},R={key:"provider",label:"Provider"},e[40]=P,e[41]=R):(P=e[40],R=e[41]);let W,z;e[42]===Symbol.for("react.memo_cache_sentinel")?(W={key:"operation",label:"Operation",options:["chat","tool","embedding","image","speech","transcription","moderation","rerank","ocr"]},z={key:"workflow",label:"Workflow"},e[42]=W,e[43]=z):(W=e[42],z=e[43]);let A;e[44]===Symbol.for("react.memo_cache_sentinel")?(A={key:"finish",label:"Finish",options:["stop","max_tokens","tool_calls","content_filter"]},e[44]=A):A=e[44];let B;e[45]===Symbol.for("react.memo_cache_sentinel")?(B=[P,R,W,z,A,{key:"attachments",label:"Files",options:["any","image","pdf","audio","video"]}],e[45]=B):B=e[45];let M;e[46]!==a||e[47]!==n||e[48]!==o?(M=k=>le.visit(fe(a,n,{window:o,q:k||void 0}),{preserveState:!0}),e[46]=a,e[47]=n,e[48]=o,e[49]=M):M=e[49];let S;e[50]!==t.q||e[51]!==M?(S=l.jsx(_e,{value:t.q,fields:B,onChange:M,placeholder:"model:claude-opus-5 operation:chat"}),e[50]=t.q,e[51]=M,e[52]=S):S=e[52];let O;e[53]!==i?(O={onOpen:(k,X)=>{const Y=i(k);Y&&(X?.newTab?globalThis.window.open(Y,"_blank"):le.visit(Y))}},e[53]=i,e[54]=O):O=e[54];let K,I,V,H,J,Z,G;e[55]===Symbol.for("react.memo_cache_sentinel")?(K={key:"when",header:"When",cell:Be},I={key:"st",header:"Status",cell:Ae},V={key:"what",header:"Call",cell:ze},H={key:"wf",hideOnMobile:!0,header:"Workflow",cell:We},J={key:"tok",hideOnMobile:!0,header:"Tokens",align:"right",cell:Re},Z={key:"d",header:"Duration",align:"right",cell:Pe},G={key:"cost",header:"Cost",align:"right",cell:Ee},e[55]=K,e[56]=I,e[57]=V,e[58]=H,e[59]=J,e[60]=Z,e[61]=G):(K=e[55],I=e[56],V=e[57],H=e[58],J=e[59],Z=e[60],G=e[61]);let C;e[62]!==i?(C={key:"in",hideOnMobile:!0,header:"In",cell:k=>{const X=i(k);return X?l.jsx(xe,{className:"font-mono text-xs hover:underline",href:X,children:k.execution_preview}):null}},e[62]=i,e[63]=C):C=e[63];let Q;e[64]===Symbol.for("react.memo_cache_sentinel")?(Q={key:"content",header:"Detail",align:"right",cell:De},e[64]=Q):Q=e[64];let L;e[65]!==C?(L=[K,I,V,H,J,Z,G,C,Q],e[65]=C,e[66]=L):L=e[66];let T;e[67]!==t.recent||e[68]!==O||e[69]!==L?(T=l.jsx(ee,{rows:t.recent,rowKey:Ke,empty:oe,keyboardNav:O,columns:L}),e[67]=t.recent,e[68]=O,e[69]=L,e[70]=T):T=e[70];let U;return e[71]!==y||e[72]!==b||e[73]!==N||e[74]!==w||e[75]!==v||e[76]!==S||e[77]!==T?(U=l.jsxs(je,{title:"LLM",children:[c,y,b,N,w,v,E,S,T]}),e[71]=y,e[72]=b,e[73]=N,e[74]=w,e[75]=v,e[76]=S,e[77]=T,e[78]=U):U=e[78],U}function De(t){return l.jsx(Fe,{call:t})}function Ee(t){return t.cost===null&&t.operation!=="tool"?l.jsx("span",{className:"text-muted-foreground",title:"No registry pricing",children:"unpriced"}):de(t.cost)}function Pe(t){return q(t.duration)}function Re(t){return t.input_tokens===null&&t.output_tokens===null?l.jsx("span",{className:"text-muted-foreground",children:"–"}):l.jsxs("span",{className:"font-mono text-xs",children:[p(t.input_tokens??0)," / ",p(t.output_tokens??0)]})}function We(t){return t.workflow_name?l.jsxs("span",{className:"text-xs",children:[t.workflow_name,t.workflow_step_name&&l.jsxs("span",{className:"text-muted-foreground",children:[" · ",t.workflow_step_name]})]}):null}function ze(t){return l.jsxs("span",{className:"font-mono text-xs",children:[t.operation==="tool"?t.tool_name:l.jsxs(l.Fragment,{children:[l.jsxs("span",{className:"text-muted-foreground",children:[t.provider,"/"]}),l.jsx("span",{className:"font-semibold",children:t.model})]}),t.error&&l.jsx("span",{className:"text-destructive ml-2",children:t.error}),l.jsx(Le,{reason:t.finish_reason}),l.jsx(Te,{call:t})]})}function Ae(t){return l.jsx(ye,{status:null,label:t.status==="failed"?"error":t.operation,outcome:t.status==="failed"?"failed":void 0})}function Be(t){return l.jsx("span",{className:"text-xs",children:be(t.occurred_at)})}function Ke(t){return t.id}function Ie(t){return q(t.max)}function Ve(t){return l.jsx("span",{className:"font-semibold",children:q(t.p95)})}function He(t){return q(t.avg)}function Je(t){return l.jsx("span",{className:t.errors?"text-destructive":"",children:te(t.errors,t.count)})}function Ze(t){return p(t.count)}function Ge(t){return l.jsx(ce,{data:t.sparkline})}function Qe(t){return l.jsx("span",{className:"font-mono text-xs",children:t.name})}function Ue(t){return t.group_hash}function Xe(t){return l.jsx(ue,{cost:t.cost,unpriced:t.unpriced})}function Ye(t){return q(t.p95)}function et(t){return p(t.cache_read_tokens)}function tt(t){return p(t.output_tokens)}function lt(t){return p(t.input_tokens)}function st(t){return t.with_attachments?p(t.with_attachments):l.jsx("span",{className:"text-muted-foreground",children:"–"})}function nt(t){return t.truncated?l.jsx("span",{className:"text-destructive",title:"Answers stopped at the output token limit",children:te(t.truncated,t.count)}):l.jsx("span",{className:"text-muted-foreground",children:"–"})}function ot(t){return l.jsx("span",{className:t.errors?"text-destructive":"",children:te(t.errors,t.count)})}function at(t){return p(t.count)}function rt(t){return l.jsx(ce,{data:t.sparkline})}function it(t){return l.jsx("span",{className:"font-mono text-xs",children:t.name})}function ct(t){return t.group_hash}export{Ft as default};
|
|
1
|
+
import{B as ae,c as F,u as he,j as l,t as pe,e as le,Z as fe,L as xe,C as ge,r as re}from"./inertia-CqnzqPVD.js";import{V as se,D as ne}from"./chart-panel-CONkZcn9.js";import{D as ee}from"./data-table-CVKR2wkq.js";import{E as ie}from"./empty-state-Bn48Gplm.js";import{F as _e}from"./filter-bar-xcbJC93z.js";import{P as ke,E as je}from"./env-layout-CKLL8Ds7.js";import{S as ce}from"./sparkline-cell-CXCxXPWt.js";import{S as ye}from"./status-badge-D0aylrM5.js";import{c as p,u as de,p as te,m as q,w as be}from"./format-B9SDkrWj.js";import{p as me,C as Ne,a as we}from"./app-layout-2xAKndVD.js";import"./series-chart-D6upsrSn.js";import"./chart-hover-2yZG3w2u.js";import"./chart-C4k7Ub9W.js";import"./badge-Dv7I-ebP.js";import"./app-wordmark-Bt6XqURo.js";import"./use-live-DWwLg1Nj.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./segmented-C4oWE73o.js";import"./label-1nSzpSB6.js";import"./checkbox-DKbThbxr.js";const ve=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],Me=ae("paperclip",ve);const Se=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],Oe=ae("scissors",Se),oe=l.jsx(ie,{icon:me,title:"No model calls in this window",description:"Chats, embeddings, and other model calls your app makes through RubyLLM appear here, with the request or job that made them."}),Ce=l.jsx(ie,{icon:me,title:"No tool calls in this window",description:"Tools your models invoke appear here, timed separately from the calls that asked for them."});function Le(t){const e=F.c(7),{reason:s}=t;if(!s||s==="stop"||s==="tool_calls")return null;const a=s==="max_tokens"||s==="content_filter"?"text-destructive":"text-muted-foreground";let n;e[0]!==a?(n=ge("ml-2 inline-flex items-center gap-1 text-xs",a),e[0]=a,e[1]=n):n=e[1];const r=s==="max_tokens"?"The answer was cut off at the output token limit":`Model stopped: ${s}`;let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsx(Oe,{className:"size-3"}),e[2]=i):i=e[2];let c;return e[3]!==s||e[4]!==n||e[5]!==r?(c=l.jsxs("span",{className:n,title:r,children:[i,s]}),e[3]=s,e[4]=n,e[5]=r,e[6]=c):c=e[6],c}function Te(t){const e=F.c(4),{call:s}=t;if(!s.attachments)return null;const o=s.attachment_names??`${s.attachments} file(s): ${s.attachment_types}`;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx(Me,{className:"size-3"}),e[0]=a):a=e[0];const n=s.attachment_types??s.attachments;let r;return e[1]!==o||e[2]!==n?(r=l.jsxs("span",{className:"text-muted-foreground ml-2 inline-flex items-center gap-1 text-xs",title:o,children:[a,n]}),e[1]=o,e[2]=n,e[3]=r):r=e[3],r}function Fe(t){const e=F.c(19),{call:s}=t,[o,a]=re.useState(!1),{prompt:n,completion:r,params:i,provider_request_id:c,tools:f}=s;if(!(n!==null||r!==null||c!==null||f!==null||i!==null&&Object.keys(i).length>0)){let g;return e[0]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx("span",{className:"text-muted-foreground",children:"–"}),e[0]=g):g=e[0],g}const _=o?Ne:we;let d;e[1]!==o?(d=()=>a(!o),e[1]=o,e[2]=d):d=e[2];let m;e[3]!==_?(m=l.jsx(_,{className:"size-3"}),e[3]=_,e[4]=m):m=e[4];let u;e[5]!==o||e[6]!==d||e[7]!==m?(u=l.jsxs("button",{type:"button",onClick:d,"aria-expanded":o,className:"text-muted-foreground hover:text-foreground inline-flex items-center gap-1",children:[m,"Detail"]}),e[5]=o,e[6]=d,e[7]=m,e[8]=u):u=e[8];let h;e[9]!==r||e[10]!==o||e[11]!==i||e[12]!==n||e[13]!==c||e[14]!==f?(h=o&&l.jsxs("div",{className:"w-[70vw] max-w-[36rem] space-y-2 text-left",children:[l.jsxs("dl",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 font-mono text-[10px]",children:[c&&l.jsxs(l.Fragment,{children:[l.jsx("dt",{className:"text-muted-foreground",children:"provider id"}),l.jsx("dd",{className:"break-all",children:c})]}),f&&l.jsxs(l.Fragment,{children:[l.jsx("dt",{className:"text-muted-foreground",children:"tools"}),l.jsx("dd",{className:"break-all",children:f})]}),i&&Object.entries(i).map(qe)]}),[["Prompt",n],["Completion",r]].map($e)]}),e[9]=r,e[10]=o,e[11]=i,e[12]=n,e[13]=c,e[14]=f,e[15]=h):h=e[15];let x;return e[16]!==u||e[17]!==h?(x=l.jsxs("div",{className:"flex flex-col items-end gap-1",children:[u,h]}),e[16]=u,e[17]=h,e[18]=x):x=e[18],x}function $e(t){const[e,s]=t;return s?l.jsxs("div",{children:[l.jsx("div",{className:"text-muted-foreground text-[10px] tracking-wide uppercase",children:e}),l.jsx("pre",{className:"bg-muted max-h-64 overflow-auto rounded p-2 font-mono text-[10px] break-all whitespace-pre-wrap",children:s})]},e):null}function qe(t){const[e,s]=t;return l.jsxs(re.Fragment,{children:[l.jsx("dt",{className:"text-muted-foreground",children:e}),l.jsx("dd",{className:"break-all",children:typeof s=="string"||typeof s=="number"?s:JSON.stringify(s)})]},e)}function ue(t){const e=F.c(9),{cost:s,unpriced:o}=t;if(s===null){let i;return e[0]!==o?(i=o>0?l.jsx("span",{className:"text-muted-foreground",title:"No registry pricing",children:"unpriced"}):l.jsx("span",{className:"text-muted-foreground",title:"Nothing here has a price",children:"–"}),e[0]=o,e[1]=i):i=e[1],i}let a;e[2]!==s?(a=de(s),e[2]=s,e[3]=a):a=e[3];let n;e[4]!==o?(n=o>0&&l.jsxs("span",{className:"text-muted-foreground ml-1 text-xs font-normal",title:`${o} call${o===1?"":"s"} had no registry pricing and are not in this total`,children:["+",p(o)," unpriced"]}),e[4]=o,e[5]=n):n=e[5];let r;return e[6]!==a||e[7]!==n?(r=l.jsxs("span",{className:"font-semibold",children:[a,n]}),e[6]=a,e[7]=n,e[8]=r):r=e[8],r}function $(t){const e=F.c(7),{label:s,children:o}=t;let a;e[0]!==s?(a=l.jsx("div",{className:"text-muted-foreground text-xs",children:s}),e[0]=s,e[1]=a):a=e[1];let n;e[2]!==o?(n=l.jsx("div",{className:"truncate text-lg",children:o}),e[2]=o,e[3]=n):n=e[3];let r;return e[4]!==a||e[5]!==n?(r=l.jsxs("div",{className:"min-w-0",children:[a,n]}),e[4]=a,e[5]=n,e[6]=r):r=e[6],r}function Ft(t){const e=F.c(79),{environment:s,window:o}=he().props,a=s.application_id,n=s.id;let r;e[0]!==a||e[1]!==n?(r=k=>k.execution_id?pe(a,n,k.execution_id):null,e[0]=a,e[1]=n,e[2]=r):r=e[2];const i=r;let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx(ke,{title:"LLM",description:"Model calls and tool invocations through RubyLLM, by model and by the request or job that made them."}),e[3]=c):c=e[3];let f;e[4]!==t.totals.count?(f=p(t.totals.count),e[4]=t.totals.count,e[5]=f):f=e[5];let j;e[6]!==f?(j=l.jsx($,{label:"Model calls",children:f}),e[6]=f,e[7]=j):j=e[7];let _;e[8]!==t.totals.tool_count?(_=p(t.totals.tool_count),e[8]=t.totals.tool_count,e[9]=_):_=e[9];let d;e[10]!==_?(d=l.jsx($,{label:"Tool calls",children:_}),e[10]=_,e[11]=d):d=e[11];let m;e[12]!==t.totals.cost||e[13]!==t.totals.unpriced?(m=l.jsx($,{label:"Spend",children:l.jsx(ue,{cost:t.totals.cost,unpriced:t.totals.unpriced})}),e[12]=t.totals.cost,e[13]=t.totals.unpriced,e[14]=m):m=e[14];let u;e[15]!==t.totals.input_tokens?(u=p(t.totals.input_tokens),e[15]=t.totals.input_tokens,e[16]=u):u=e[16];let h;e[17]!==u?(h=l.jsx($,{label:"Tokens in",children:u}),e[17]=u,e[18]=h):h=e[18];let x;e[19]!==t.totals.output_tokens?(x=p(t.totals.output_tokens),e[19]=t.totals.output_tokens,e[20]=x):x=e[20];let g;e[21]!==x?(g=l.jsx($,{label:"Tokens out",children:x}),e[21]=x,e[22]=g):g=e[22];let y;e[23]!==g||e[24]!==j||e[25]!==d||e[26]!==m||e[27]!==h?(y=l.jsxs("div",{className:"grid grid-cols-2 gap-4 lg:grid-cols-5",children:[j,d,m,h,g]}),e[23]=g,e[24]=j,e[25]=d,e[26]=m,e[27]=h,e[28]=y):y=e[28];let b;e[29]!==t.series?(b=l.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[l.jsx(se,{legend:"request",label:"Model calls",seriesLabel:"Calls",data:t.series}),l.jsx(ne,{label:"Model latency",data:t.series,percentile:"p95"})]}),e[29]=t.series,e[30]=b):b=e[30];let N;e[31]!==t.tool_series||e[32]!==t.totals.tool_count?(N=t.totals.tool_count>0&&l.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[l.jsx(se,{legend:"request",label:"Tool calls",seriesLabel:"Calls",data:t.tool_series}),l.jsx(ne,{label:"Tool latency",data:t.tool_series,percentile:"p95"})]}),e[31]=t.tool_series,e[32]=t.totals.tool_count,e[33]=N):N=e[33];let D;e[34]===Symbol.for("react.memo_cache_sentinel")?(D=[{key:"m",header:"Model",cell:it},{key:"trend",hideOnMobile:!0,header:"Trend",cell:rt},{key:"n",header:"Calls",align:"right",cell:at},{key:"f",hideOnMobile:!0,header:"Failed",align:"right",cell:ot},{key:"cut",hideOnMobile:!0,header:"Cut off",align:"right",cell:nt},{key:"att",hideOnMobile:!0,header:"With files",align:"right",cell:st},{key:"in",hideOnMobile:!0,header:"Tokens in",align:"right",cell:lt},{key:"out",hideOnMobile:!0,header:"Tokens out",align:"right",cell:tt},{key:"cached",hideOnMobile:!0,header:"Cached",align:"right",cell:et},{key:"p95",hideOnMobile:!0,header:"p95",align:"right",cell:Ye},{key:"cost",header:"Spend",align:"right",cell:Xe}],e[34]=D):D=e[34];let w;e[35]!==t.models?(w=l.jsx(ee,{rows:t.models,rowKey:ct,empty:oe,columns:D}),e[35]=t.models,e[36]=w):w=e[36];let v;e[37]!==t.tools?(v=t.tools.length>0&&l.jsxs(l.Fragment,{children:[l.jsx("h2",{className:"text-sm font-semibold",children:"Tools"}),l.jsx(ee,{rows:t.tools,rowKey:Ue,empty:Ce,columns:[{key:"t",header:"Tool",cell:Qe},{key:"trend",hideOnMobile:!0,header:"Trend",cell:Ge},{key:"n",header:"Calls",align:"right",cell:Ze},{key:"f",hideOnMobile:!0,header:"Failed",align:"right",cell:Je},{key:"avg",hideOnMobile:!0,header:"Avg",align:"right",cell:He},{key:"p95",header:"p95",align:"right",cell:Ve},{key:"max",hideOnMobile:!0,header:"Max",align:"right",cell:Ie}]})]}),e[37]=t.tools,e[38]=v):v=e[38];let E;e[39]===Symbol.for("react.memo_cache_sentinel")?(E=l.jsx("h2",{className:"text-sm font-semibold",children:"Recent"}),e[39]=E):E=e[39];let P,R;e[40]===Symbol.for("react.memo_cache_sentinel")?(P={key:"model",label:"Model"},R={key:"provider",label:"Provider"},e[40]=P,e[41]=R):(P=e[40],R=e[41]);let W,z;e[42]===Symbol.for("react.memo_cache_sentinel")?(W={key:"operation",label:"Operation",options:["chat","tool","embedding","image","speech","transcription","moderation","rerank","ocr"]},z={key:"workflow",label:"Workflow"},e[42]=W,e[43]=z):(W=e[42],z=e[43]);let A;e[44]===Symbol.for("react.memo_cache_sentinel")?(A={key:"finish",label:"Finish",options:["stop","max_tokens","tool_calls","content_filter"]},e[44]=A):A=e[44];let B;e[45]===Symbol.for("react.memo_cache_sentinel")?(B=[P,R,W,z,A,{key:"attachments",label:"Files",options:["any","image","pdf","audio","video"]}],e[45]=B):B=e[45];let M;e[46]!==a||e[47]!==n||e[48]!==o?(M=k=>le.visit(fe(a,n,{window:o,q:k||void 0}),{preserveState:!0}),e[46]=a,e[47]=n,e[48]=o,e[49]=M):M=e[49];let S;e[50]!==t.q||e[51]!==M?(S=l.jsx(_e,{value:t.q,fields:B,onChange:M,placeholder:"model:claude-opus-5 operation:chat"}),e[50]=t.q,e[51]=M,e[52]=S):S=e[52];let O;e[53]!==i?(O={onOpen:(k,X)=>{const Y=i(k);Y&&(X?.newTab?globalThis.window.open(Y,"_blank"):le.visit(Y))}},e[53]=i,e[54]=O):O=e[54];let K,I,V,H,J,Z,G;e[55]===Symbol.for("react.memo_cache_sentinel")?(K={key:"when",header:"When",cell:Be},I={key:"st",header:"Status",cell:Ae},V={key:"what",header:"Call",cell:ze},H={key:"wf",hideOnMobile:!0,header:"Workflow",cell:We},J={key:"tok",hideOnMobile:!0,header:"Tokens",align:"right",cell:Re},Z={key:"d",header:"Duration",align:"right",cell:Pe},G={key:"cost",header:"Cost",align:"right",cell:Ee},e[55]=K,e[56]=I,e[57]=V,e[58]=H,e[59]=J,e[60]=Z,e[61]=G):(K=e[55],I=e[56],V=e[57],H=e[58],J=e[59],Z=e[60],G=e[61]);let C;e[62]!==i?(C={key:"in",hideOnMobile:!0,header:"In",cell:k=>{const X=i(k);return X?l.jsx(xe,{className:"font-mono text-xs hover:underline",href:X,children:k.execution_preview}):null}},e[62]=i,e[63]=C):C=e[63];let Q;e[64]===Symbol.for("react.memo_cache_sentinel")?(Q={key:"content",header:"Detail",align:"right",cell:De},e[64]=Q):Q=e[64];let L;e[65]!==C?(L=[K,I,V,H,J,Z,G,C,Q],e[65]=C,e[66]=L):L=e[66];let T;e[67]!==t.recent||e[68]!==O||e[69]!==L?(T=l.jsx(ee,{rows:t.recent,rowKey:Ke,empty:oe,keyboardNav:O,columns:L}),e[67]=t.recent,e[68]=O,e[69]=L,e[70]=T):T=e[70];let U;return e[71]!==y||e[72]!==b||e[73]!==N||e[74]!==w||e[75]!==v||e[76]!==S||e[77]!==T?(U=l.jsxs(je,{title:"LLM",children:[c,y,b,N,w,v,E,S,T]}),e[71]=y,e[72]=b,e[73]=N,e[74]=w,e[75]=v,e[76]=S,e[77]=T,e[78]=U):U=e[78],U}function De(t){return l.jsx(Fe,{call:t})}function Ee(t){return t.cost===null&&t.operation!=="tool"?l.jsx("span",{className:"text-muted-foreground",title:"No registry pricing",children:"unpriced"}):de(t.cost)}function Pe(t){return q(t.duration)}function Re(t){return t.input_tokens===null&&t.output_tokens===null?l.jsx("span",{className:"text-muted-foreground",children:"–"}):l.jsxs("span",{className:"font-mono text-xs",children:[p(t.input_tokens??0)," / ",p(t.output_tokens??0)]})}function We(t){return t.workflow_name?l.jsxs("span",{className:"text-xs",children:[t.workflow_name,t.workflow_step_name&&l.jsxs("span",{className:"text-muted-foreground",children:[" · ",t.workflow_step_name]})]}):null}function ze(t){return l.jsxs("span",{className:"font-mono text-xs",children:[t.operation==="tool"?t.tool_name:l.jsxs(l.Fragment,{children:[l.jsxs("span",{className:"text-muted-foreground",children:[t.provider,"/"]}),l.jsx("span",{className:"font-semibold",children:t.model})]}),t.error&&l.jsx("span",{className:"text-destructive ml-2",children:t.error}),l.jsx(Le,{reason:t.finish_reason}),l.jsx(Te,{call:t})]})}function Ae(t){return l.jsx(ye,{status:null,label:t.status==="failed"?"error":t.operation,outcome:t.status==="failed"?"failed":void 0})}function Be(t){return l.jsx("span",{className:"text-xs",children:be(t.occurred_at)})}function Ke(t){return t.id}function Ie(t){return q(t.max)}function Ve(t){return l.jsx("span",{className:"font-semibold",children:q(t.p95)})}function He(t){return q(t.avg)}function Je(t){return l.jsx("span",{className:t.errors?"text-destructive":"",children:te(t.errors,t.count)})}function Ze(t){return p(t.count)}function Ge(t){return l.jsx(ce,{data:t.sparkline})}function Qe(t){return l.jsx("span",{className:"font-mono text-xs",children:t.name})}function Ue(t){return t.group_hash}function Xe(t){return l.jsx(ue,{cost:t.cost,unpriced:t.unpriced})}function Ye(t){return q(t.p95)}function et(t){return p(t.cache_read_tokens)}function tt(t){return p(t.output_tokens)}function lt(t){return p(t.input_tokens)}function st(t){return t.with_attachments?p(t.with_attachments):l.jsx("span",{className:"text-muted-foreground",children:"–"})}function nt(t){return t.truncated?l.jsx("span",{className:"text-destructive",title:"Answers stopped at the output token limit",children:te(t.truncated,t.count)}):l.jsx("span",{className:"text-muted-foreground",children:"–"})}function ot(t){return l.jsx("span",{className:t.errors?"text-destructive":"",children:te(t.errors,t.count)})}function at(t){return p(t.count)}function rt(t){return l.jsx(ce,{data:t.sparkline})}function it(t){return l.jsx("span",{className:"font-mono text-xs",children:t.name})}function ct(t){return t.group_hash}export{Ft as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ye,u as Se,j as s,e as ve,af as ge,aZ as je,L as _e}from"./inertia-
|
|
1
|
+
import{c as ye,u as Se,j as s,e as ve,af as ge,aZ as je,L as _e}from"./inertia-CqnzqPVD.js";import{V as ke,D as we}from"./chart-panel-CONkZcn9.js";import{D as Pe}from"./data-table-CVKR2wkq.js";import{E as Ce}from"./empty-state-Bn48Gplm.js";import{F as qe}from"./filter-bar-xcbJC93z.js";import{P as Ee,E as Ne}from"./env-layout-CKLL8Ds7.js";import{u as De,P as Me}from"./percentile-picker-BxIVblBw.js";import{S as V}from"./sort-header-CPM6fhXv.js";import{S as Be}from"./sparkline-cell-CXCxXPWt.js";import{S as X,a as Fe}from"./stat-BNEfE8X1.js";import{c as Y,m as H}from"./format-B9SDkrWj.js";import{B as Le}from"./braces-iZ7MEfYP.js";import"./series-chart-D6upsrSn.js";import"./chart-hover-2yZG3w2u.js";import"./chart-C4k7Ub9W.js";import"./badge-Dv7I-ebP.js";import"./app-wordmark-Bt6XqURo.js";import"./app-layout-2xAKndVD.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./checkbox-DKbThbxr.js";import"./label-1nSzpSB6.js";import"./use-live-DWwLg1Nj.js";import"./segmented-C4oWE73o.js";import"./arrow-up-EmePsTKP.js";function xt(t){const e=ye.c(115),{environment:be,window:a}=Se().props,{percentile:c}=De(),l=be.application_id,n=be.id,o=t.summary.current;let $;e[0]!==l||e[1]!==n||e[2]!==t.dir||e[3]!==t.q||e[4]!==t.sort||e[5]!==a?($=i=>ve.visit(ge(l,n,{window:a,q:t.q||void 0,sort:i,dir:t.sort===i&&t.dir==="desc"?"asc":"desc"}),{preserveState:!0}),e[0]=l,e[1]=n,e[2]=t.dir,e[3]=t.q,e[4]=t.sort,e[5]=a,e[6]=$):$=e[6];const r=$;let W;e[7]!==l||e[8]!==n||e[9]!==a?(W=i=>je(l,n,i,{window:a}),e[7]=l,e[8]=n,e[9]=a,e[10]=W):W=e[10];const m=W;let Z;e[11]!==m?(Z=(i,xe)=>xe?.newTab?globalThis.window.open(m(i),"_blank"):ve.visit(m(i)),e[11]=m,e[12]=Z):Z=e[12];const ee=Z;let z;e[13]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ee,{title:"Spans",description:"Custom spans your app recorded with Railwatch.span, grouped by name.",actions:s.jsx(Me,{})}),e[13]=z):z=e[13];let d;e[14]!==o.count?(d=Y(o.count),e[14]=o.count,e[15]=d):d=e[15];let u;e[16]!==o.count||e[17]!==t.summary.previous.count?(u={current:o.count,previous:t.summary.previous.count,goodDirection:"up"},e[16]=o.count,e[17]=t.summary.previous.count,e[18]=u):u=e[18];let f;e[19]!==d||e[20]!==u?(f=s.jsx(X,{label:"Spans",value:d,delta:u,deltaCaption:"vs previous period"}),e[19]=d,e[20]=u,e[21]=f):f=e[21];let p;e[22]!==o.errors?(p=Y(o.errors),e[22]=o.errors,e[23]=p):p=e[23];const te=o.errors?"destructive":void 0;let h;e[24]!==p||e[25]!==te?(h=s.jsx(X,{label:"Failed",value:p,tone:te}),e[24]=p,e[25]=te,e[26]=h):h=e[26];const se=o[c]/1e3;let x;e[27]!==se?(x=H(se,2),e[27]=se,e[28]=x):x=e[28];const re=o.avg/1e3;let A;e[29]!==re?(A=H(re,2),e[29]=re,e[30]=A):A=e[30];const ie=`avg ${A}`;let v;e[31]!==c||e[32]!==x||e[33]!==ie?(v=s.jsx(X,{label:c,value:x,hint:ie}),e[31]=c,e[32]=x,e[33]=ie,e[34]=v):v=e[34];const oe=o.max/1e3;let b;e[35]!==oe?(b=H(oe,2),e[35]=oe,e[36]=b):b=e[36];let g;e[37]!==b?(g=s.jsx(X,{label:"Max",value:b}),e[37]=b,e[38]=g):g=e[38];let y;e[39]!==v||e[40]!==g||e[41]!==f||e[42]!==h?(y=s.jsxs(Fe,{children:[f,h,v,g]}),e[39]=v,e[40]=g,e[41]=f,e[42]=h,e[43]=y):y=e[43];let S;e[44]!==t.series?(S=s.jsx(ke,{legend:"outcome",label:"Spans",seriesLabel:"Spans",data:t.series}),e[44]=t.series,e[45]=S):S=e[45];let j;e[46]!==t.series||e[47]!==c?(j=s.jsx(we,{label:"Duration",data:t.series,percentile:c}),e[46]=t.series,e[47]=c,e[48]=j):j=e[48];let _;e[49]!==S||e[50]!==j?(_=s.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[S,j]}),e[49]=S,e[50]=j,e[51]=_):_=e[51];let G;e[52]===Symbol.for("react.memo_cache_sentinel")?(G={key:"name",label:"Name"},e[52]=G):G=e[52];let I;e[53]===Symbol.for("react.memo_cache_sentinel")?(I=[G,{key:"status",label:"Status",options:["failed"]}],e[53]=I):I=e[53];let k;e[54]!==l||e[55]!==n||e[56]!==t.dir||e[57]!==t.sort||e[58]!==a?(k=i=>ve.visit(ge(l,n,{window:a,q:i||void 0,sort:t.sort,dir:t.dir}),{preserveState:!0}),e[54]=l,e[55]=n,e[56]=t.dir,e[57]=t.sort,e[58]=a,e[59]=k):k=e[59];let w;e[60]!==t.q||e[61]!==k?(w=s.jsx(qe,{value:t.q,fields:I,onChange:k,placeholder:"name:geocode status:failed"}),e[60]=t.q,e[61]=k,e[62]=w):w=e[62];let J;e[63]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(Ce,{icon:Le,title:"No spans in this window",description:"Wrap any code in Railwatch.span('name') { } and it shows up here."}),e[63]=J):J=e[63];let P;e[64]!==ee?(P={onOpen:(i,xe)=>ee(i.group_hash,xe)},e[64]=ee,e[65]=P):P=e[65];let C;e[66]!==m?(C={key:"name",header:"Span",grow:!0,cell:i=>s.jsx(_e,{href:m(i.group_hash),className:"truncate font-mono text-xs hover:underline",children:i.name})},e[66]=m,e[67]=C):C=e[67];let Q;e[68]===Symbol.for("react.memo_cache_sentinel")?(Q={key:"trend",hideOnMobile:!0,header:"Trend",cell:Ve},e[68]=Q):Q=e[68];const ae=t.sort==="count",le=t.dir==="asc"?"asc":"desc";let q;e[69]!==r?(q=()=>r("count"),e[69]=r,e[70]=q):q=e[70];let E;e[71]!==ae||e[72]!==le||e[73]!==q?(E={key:"n",header:s.jsx(V,{label:"Count",active:ae,dir:le,onClick:q}),align:"right",cell:He},e[71]=ae,e[72]=le,e[73]=q,e[74]=E):E=e[74];const ne=t.sort==="errors",ce=t.dir==="asc"?"asc":"desc";let N;e[75]!==r?(N=()=>r("errors"),e[75]=r,e[76]=N):N=e[76];let D;e[77]!==ne||e[78]!==ce||e[79]!==N?(D={key:"failed",header:s.jsx(V,{label:"Failed",active:ne,dir:ce,onClick:N}),align:"right",cell:Ke},e[77]=ne,e[78]=ce,e[79]=N,e[80]=D):D=e[80];const me=t.sort==="p50",de=t.dir==="asc"?"asc":"desc";let M;e[81]!==r?(M=()=>r("p50"),e[81]=r,e[82]=M):M=e[82];let B;e[83]!==me||e[84]!==de||e[85]!==M?(B={key:"p50",hideOnMobile:!0,header:s.jsx(V,{label:"p50",active:me,dir:de,onClick:M}),align:"right",cell:Te},e[83]=me,e[84]=de,e[85]=M,e[86]=B):B=e[86];const ue=t.sort==="p95",fe=t.dir==="asc"?"asc":"desc";let F;e[87]!==r?(F=()=>r("p95"),e[87]=r,e[88]=F):F=e[88];let L;e[89]!==ue||e[90]!==fe||e[91]!==F?(L={key:"p95",header:s.jsx(V,{label:"p95",active:ue,dir:fe,onClick:F}),align:"right",cell:Re},e[89]=ue,e[90]=fe,e[91]=F,e[92]=L):L=e[92];const pe=t.sort==="max",he=t.dir==="asc"?"asc":"desc";let O;e[93]!==r?(O=()=>r("max"),e[93]=r,e[94]=O):O=e[94];let R;e[95]!==pe||e[96]!==he||e[97]!==O?(R={key:"max",hideOnMobile:!0,header:s.jsx(V,{label:"Max",active:pe,dir:he,onClick:O}),align:"right",cell:Oe},e[95]=pe,e[96]=he,e[97]=O,e[98]=R):R=e[98];let T;e[99]!==C||e[100]!==E||e[101]!==D||e[102]!==B||e[103]!==L||e[104]!==R?(T=[C,Q,E,D,B,L,R],e[99]=C,e[100]=E,e[101]=D,e[102]=B,e[103]=L,e[104]=R,e[105]=T):T=e[105];let K;e[106]!==t.spans||e[107]!==P||e[108]!==T?(K=s.jsx(Pe,{rows:t.spans,rowKey:We,empty:J,hoverKey:$e,keyboardNav:P,columns:T}),e[106]=t.spans,e[107]=P,e[108]=T,e[109]=K):K=e[109];let U;return e[110]!==y||e[111]!==_||e[112]!==w||e[113]!==K?(U=s.jsxs(Ne,{title:"Spans",children:[z,y,_,w,K]}),e[110]=y,e[111]=_,e[112]=w,e[113]=K,e[114]=U):U=e[114],U}function Oe(t){return H(t.max,2)}function Re(t){return s.jsx("span",{className:"font-semibold",children:H(t.p95,2)})}function Te(t){return H(t.p50,2)}function Ke(t){return s.jsx("span",{className:t.errors?"text-danger font-semibold":"",children:Y(t.errors)})}function He(t){return Y(t.count)}function Ve(t){return s.jsx(Be,{data:t.sparkline,hoverKey:t.group_hash})}function $e(t){return t.group_hash}function We(t){return t.group_hash}export{xt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ee,u as re,j as r,e as X,ai as Y,L as ie}from"./inertia-
|
|
1
|
+
import{c as ee,u as re,j as r,e as X,ai as Y,L as ie}from"./inertia-CqnzqPVD.js";import{D as ne}from"./chart-panel-CONkZcn9.js";import{D as Z}from"./data-table-CVKR2wkq.js";import{F as se}from"./filter-bar-xcbJC93z.js";import{P as oe,E as le}from"./env-layout-CKLL8Ds7.js";import{u as ae,P as ce}from"./percentile-picker-BxIVblBw.js";import{S as F}from"./sort-header-CPM6fhXv.js";import{S as de}from"./sparkline-cell-CXCxXPWt.js";import{B as me}from"./badge-Dv7I-ebP.js";import{e as ue}from"./execution-path-DWovhgLi.js";import{m as H,c as fe,w as he}from"./format-B9SDkrWj.js";import"./series-chart-D6upsrSn.js";import"./chart-hover-2yZG3w2u.js";import"./chart-C4k7Ub9W.js";import"./empty-state-Bn48Gplm.js";import"./app-wordmark-Bt6XqURo.js";import"./app-layout-2xAKndVD.js";import"./live-dot-UdzOfzJb.js";import"./index-BDVShWMs.js";import"./index-C-EwH4lO.js";import"./checkbox-DKbThbxr.js";import"./label-1nSzpSB6.js";import"./use-live-DWwLg1Nj.js";import"./segmented-C4oWE73o.js";import"./arrow-up-EmePsTKP.js";function te(t){const e=ee.c(3),{kind:l}=t;if(!l)return null;const o=l==="partial"?"secondary":l==="layout"?"outline":"default";let i;return e[0]!==l||e[1]!==o?(i=r.jsx(me,{variant:o,className:"font-mono",children:l}),e[0]=l,e[1]=o,e[2]=i):i=e[2],i}function Ze(t){const e=ee.c(81),{environment:l,window:o}=re().props,{percentile:i}=ae(),a=l.application_id,c=l.id;let q;e[0]!==a||e[1]!==c||e[2]!==t.dir||e[3]!==t.q||e[4]!==t.sort||e[5]!==o?(q=s=>X.visit(Y(a,c,{window:o,sort:s,dir:t.sort===s&&t.dir==="desc"?"asc":"desc",q:t.q||void 0}),{preserveState:!0}),e[0]=a,e[1]=c,e[2]=t.dir,e[3]=t.q,e[4]=t.sort,e[5]=o,e[6]=q):q=e[6];const n=q;let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=r.jsx(oe,{title:"View renders",description:"Every template your app rendered, grouped by identifier.",actions:r.jsx(ce,{})}),e[7]=M):M=e[7];let d;e[8]!==t.series||e[9]!==i?(d=r.jsx(ne,{label:"Duration",data:t.series,percentile:i}),e[8]=t.series,e[9]=i,e[10]=d):d=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=[{key:"template",label:"Template"}],e[11]=C):C=e[11];let m;e[12]!==a||e[13]!==c||e[14]!==o?(m=s=>X.visit(Y(a,c,{window:o,q:s||void 0}),{preserveState:!0}),e[12]=a,e[13]=c,e[14]=o,e[15]=m):m=e[15];let u;e[16]!==t.q||e[17]!==m?(u=r.jsx(se,{value:t.q,fields:C,onChange:m,placeholder:"template:widgets/_row"}),e[16]=t.q,e[17]=m,e[18]=u):u=e[18];let O,D,E;e[19]===Symbol.for("react.memo_cache_sentinel")?(O={key:"id",header:"Template",grow:!0,cell:Ne},D={key:"kind",hideOnMobile:!0,header:"Kind",cell:Se},E={key:"trend",hideOnMobile:!0,header:"Trend",cell:be},e[19]=O,e[20]=D,e[21]=E):(O=e[19],D=e[20],E=e[21]);const $=t.sort==="count",A=t.dir==="asc"?"asc":"desc";let f;e[22]!==n?(f=()=>n("count"),e[22]=n,e[23]=f):f=e[23];let h;e[24]!==A||e[25]!==f||e[26]!==$?(h={key:"n",header:r.jsx(F,{label:"Count",active:$,dir:A,onClick:f}),align:"right",cell:ve},e[24]=A,e[25]=f,e[26]=$,e[27]=h):h=e[27];const W=t.sort==="avg",z=t.dir==="asc"?"asc":"desc";let x;e[28]!==n?(x=()=>n("avg"),e[28]=n,e[29]=x):x=e[29];let p;e[30]!==W||e[31]!==z||e[32]!==x?(p={key:"avg",hideOnMobile:!0,header:r.jsx(F,{label:"Avg",active:W,dir:z,onClick:x}),align:"right",cell:je},e[30]=W,e[31]=z,e[32]=x,e[33]=p):p=e[33];const G=t.sort===i,J=t.dir==="asc"?"asc":"desc";let y;e[34]!==i||e[35]!==n?(y=()=>n(i),e[34]=i,e[35]=n,e[36]=y):y=e[36];let _;e[37]!==i||e[38]!==G||e[39]!==J||e[40]!==y?(_=r.jsx(F,{label:i,active:G,dir:J,onClick:y}),e[37]=i,e[38]=G,e[39]=J,e[40]=y,e[41]=_):_=e[41];let k;e[42]!==i?(k=s=>r.jsx("span",{className:"font-semibold",children:H(s[i],2)}),e[42]=i,e[43]=k):k=e[43];let g;e[44]!==i||e[45]!==_||e[46]!==k?(g={key:i,header:_,align:"right",cell:k},e[44]=i,e[45]=_,e[46]=k,e[47]=g):g=e[47];const Q=t.sort==="max",U=t.dir==="asc"?"asc":"desc";let w;e[48]!==n?(w=()=>n("max"),e[48]=n,e[49]=w):w=e[49];let j;e[50]!==Q||e[51]!==U||e[52]!==w?(j={key:"max",hideOnMobile:!0,header:r.jsx(F,{label:"Max",active:Q,dir:U,onClick:w}),align:"right",cell:we},e[50]=Q,e[51]=U,e[52]=w,e[53]=j):j=e[53];let v;e[54]!==h||e[55]!==p||e[56]!==g||e[57]!==j?(v=[O,D,E,h,p,g,j],e[54]=h,e[55]=p,e[56]=g,e[57]=j,e[58]=v):v=e[58];let b;e[59]!==t.renders||e[60]!==v?(b=r.jsx(Z,{rows:t.renders,rowKey:Pe,empty:"No view renders in this window.",columns:v}),e[59]=t.renders,e[60]=v,e[61]=b):b=e[61];let B;e[62]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx("h2",{className:"text-sm font-semibold",children:"Slowest recent renders"}),e[62]=B):B=e[62];let K,T,I,L;e[63]===Symbol.for("react.memo_cache_sentinel")?(K={key:"when",header:"When",className:"w-40",cell:ke},T={key:"id",header:"Template",grow:!0,cell:_e},I={key:"kind",hideOnMobile:!0,header:"Kind",cell:ye},L={key:"layout",hideOnMobile:!0,header:"Layout",cell:pe},e[63]=K,e[64]=T,e[65]=I,e[66]=L):(K=e[63],T=e[64],I=e[65],L=e[66]);let S;e[67]!==a||e[68]!==c?(S={key:"in",hideOnMobile:!0,header:"In",cell:s=>s.execution_id?r.jsx(ie,{className:"font-mono text-xs hover:underline",href:ue({applicationId:a,environmentId:c,source:s.execution_source,executionId:s.execution_id}),children:s.execution_preview}):r.jsx("span",{className:"text-muted-foreground text-xs",children:"–"})},e[67]=a,e[68]=c,e[69]=S):S=e[69];let R;e[70]===Symbol.for("react.memo_cache_sentinel")?(R={key:"d",header:"Duration",align:"right",cell:xe},e[70]=R):R=e[70];let N;e[71]!==S?(N=[K,T,I,L,S,R],e[71]=S,e[72]=N):N=e[72];let P;e[73]!==t.slowest||e[74]!==N?(P=r.jsx(Z,{rows:t.slowest,rowKey:ge,columns:N}),e[73]=t.slowest,e[74]=N,e[75]=P):P=e[75];let V;return e[76]!==d||e[77]!==b||e[78]!==P||e[79]!==u?(V=r.jsxs(le,{title:"View renders",children:[M,d,u,b,B,P]}),e[76]=d,e[77]=b,e[78]=P,e[79]=u,e[80]=V):V=e[80],V}function xe(t){return H(t.duration,2)}function pe(t){return r.jsx("span",{className:"text-muted-foreground font-mono text-xs",children:t.layout??""})}function ye(t){return r.jsx(te,{kind:t.kind})}function _e(t){return r.jsx("span",{className:"font-mono text-xs",children:t.identifier})}function ke(t){return r.jsx("span",{className:"text-xs tabular-nums",children:he(t.occurred_at)})}function ge(t){return t.id}function we(t){return H(t.max,2)}function je(t){return H(t.avg,2)}function ve(t){return fe(t.count)}function be(t){return r.jsx(de,{data:t.sparkline})}function Se(t){return r.jsx(te,{kind:t.kind})}function Ne(t){return r.jsx("span",{className:"font-mono text-xs",children:t.name})}function Pe(t){return t.group_hash}export{Ze as default};
|