@piwitests/server 0.22.1 → 0.24.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.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{By5qkOq8.js → -COcylA_.js} +1 -1
- package/.output/public/_nuxt/03FA4-rI.js +1 -0
- package/.output/public/_nuxt/{2VtBYkNh.js → 5a7jHE9s.js} +1 -1
- package/.output/public/_nuxt/6Z_ZwH8I.js +1 -0
- package/.output/public/_nuxt/7ZHq6PCI.js +1 -0
- package/.output/public/_nuxt/{cSeAgciy.js → 98sAB6Gu.js} +1 -1
- package/.output/public/_nuxt/{CoPntblj.js → B--J7VNt.js} +1 -1
- package/.output/public/_nuxt/{Dj-TetcW.js → B1LUinhp.js} +1 -1
- package/.output/public/_nuxt/{CCP6Tyle.js → B33YjaHr.js} +1 -1
- package/.output/public/_nuxt/B69RP95P.js +1 -0
- package/.output/public/_nuxt/{x8YSyy4c.js → B8H4XydJ.js} +1 -1
- package/.output/public/_nuxt/{DpalT0nH.js → B8Xm4_S_.js} +1 -1
- package/.output/public/_nuxt/{9N6hSApy.js → BBhrClA9.js} +1 -1
- package/.output/public/_nuxt/{BhH0TNTi.js → BCGljaM0.js} +1 -1
- package/.output/public/_nuxt/{BVN50jIb.js → BFxvHlO9.js} +1 -1
- package/.output/public/_nuxt/{DsX5CCb5.js → BKrWWV14.js} +1 -1
- package/.output/public/_nuxt/BN1zZw5b.js +9 -0
- package/.output/public/_nuxt/{iubpj2qv.js → BPXqL9vK.js} +1 -1
- package/.output/public/_nuxt/{CAZpjzvB.js → BUnwEAjq.js} +1 -1
- package/.output/public/_nuxt/{D6Mo5HeX.js → BVLqydCr.js} +1 -1
- package/.output/public/_nuxt/{9P8iHISX.js → BWMSVSNM.js} +1 -1
- package/.output/public/_nuxt/B_r0xHVS.js +1 -0
- package/.output/public/_nuxt/{DtSn2Q9-.js → BakMHV79.js} +1 -1
- package/.output/public/_nuxt/{_VzR8bwc.js → Bd8B-yeR.js} +1 -1
- package/.output/public/_nuxt/{BUMoU50-.js → BevElZaK.js} +1 -1
- package/.output/public/_nuxt/BfA6lfg4.js +1 -0
- package/.output/public/_nuxt/{DGyGmFem.js → Bg93Rnts.js} +1 -1
- package/.output/public/_nuxt/BgABj4Ty.js +4 -0
- package/.output/public/_nuxt/{CkKCKAYp.js → BkM2KXUo.js} +2 -2
- package/.output/public/_nuxt/{DQnsFoJn.js → BkxRbXIj.js} +1 -1
- package/.output/public/_nuxt/{CNcu4khZ.js → Bme1UkOl.js} +1 -1
- package/.output/public/_nuxt/{CobveFaj.js → BmzxRbcg.js} +1 -1
- package/.output/public/_nuxt/Bn0jaRxI.js +1 -0
- package/.output/public/_nuxt/{SBmMTKQb.js → BoNKdx5o.js} +1 -1
- package/.output/public/_nuxt/{BQzG26t0.js → Bp3FRuEm.js} +1 -1
- package/.output/public/_nuxt/{DOLeth7M.js → BrUBOQ0y.js} +1 -1
- package/.output/public/_nuxt/{nANaAHCd.js → BtSGUY-7.js} +1 -1
- package/.output/public/_nuxt/{BfS8BZTO.js → BtbpLWDs.js} +1 -1
- package/.output/public/_nuxt/{Cwwe5bRS.js → BvAfKk6C.js} +1 -1
- package/.output/public/_nuxt/{BqCiYSVY.js → BwEN1fJ1.js} +1 -1
- package/.output/public/_nuxt/{B0hK-xDF.js → C-XjxjG5.js} +1 -1
- package/.output/public/_nuxt/{kfFeu9tK.js → C3W_wyr9.js} +1 -1
- package/.output/public/_nuxt/{h49q_GXF.js → C5TrTuWv.js} +42 -42
- package/.output/public/_nuxt/{B2a-Phk3.js → C7D5Wl7T.js} +1 -1
- package/.output/public/_nuxt/{B09ddw9C.js → C7fq_rHE.js} +1 -1
- package/.output/public/_nuxt/{CWoSSKhQ.js → C8Paf_V1.js} +1 -1
- package/.output/public/_nuxt/{BQOWm9mQ.js → CD8ZzAFC.js} +1 -1
- package/.output/public/_nuxt/{DwyFnMoY.js → CDTeSrLO.js} +1 -1
- package/.output/public/_nuxt/{Cf52zHyB.js → CGHV0Y2d.js} +1 -1
- package/.output/public/_nuxt/{BtaTvcz6.js → CIpF9l75.js} +1 -1
- package/.output/public/_nuxt/{CkyMZI-0.js → CJ1rmnk4.js} +1 -1
- package/.output/public/_nuxt/{DOBSrxzY.js → CMuzkARi.js} +1 -1
- package/.output/public/_nuxt/{3xlGO1qT.js → COuZu9FO.js} +1 -1
- package/.output/public/_nuxt/{BZnfiR67.js → CX5Q0dZ8.js} +1 -1
- package/.output/public/_nuxt/{DBhdObsO.js → CX_G-FHC.js} +14 -14
- package/.output/public/_nuxt/{DDN2tt0a.js → Ce5_Tq63.js} +1 -1
- package/.output/public/_nuxt/{BlRWlfdD.js → Cf4MFOuf.js} +1 -1
- package/.output/public/_nuxt/{BYB8NVJZ.js → CgkXEZMo.js} +1 -1
- package/.output/public/_nuxt/{BFcdtAzg.js → CjBktNrC.js} +1 -1
- package/.output/public/_nuxt/{DXXnDejN.js → CjtjQV60.js} +1 -1
- package/.output/public/_nuxt/{x8w_1_rn.js → CpcrljrH.js} +1 -1
- package/.output/public/_nuxt/{C0v6l4pr.js → Cq33x7yV.js} +1 -1
- package/.output/public/_nuxt/{BDQCwxpX.js → CsV7pmcT.js} +1 -1
- package/.output/public/_nuxt/{C9p0YCAi.js → Cu2Q4iPh.js} +1 -1
- package/.output/public/_nuxt/CyLcEDg2.js +2 -0
- package/.output/public/_nuxt/{PdEEuEsg.js → D0Kop4bS.js} +1 -1
- package/.output/public/_nuxt/D1Y43xM1.js +2 -0
- package/.output/public/_nuxt/{DK7xciFW.js → D1vqYZsL.js} +1 -1
- package/.output/public/_nuxt/{BmJUhCIO.js → D2rZosKf.js} +1 -1
- package/.output/public/_nuxt/D7jpwkRG.js +5 -0
- package/.output/public/_nuxt/{CZ9ThISn.js → D8NAb7VE.js} +1 -1
- package/.output/public/_nuxt/{6-ivqM_I.js → D8vguZKg.js} +1 -1
- package/.output/public/_nuxt/{Hot1UcKY.js → DEvYVl9M.js} +1 -1
- package/.output/public/_nuxt/{CMhK1PvI.js → DF6Mes5z.js} +1 -1
- package/.output/public/_nuxt/{Sgis3xif.js → DGq4A2Pd.js} +1 -1
- package/.output/public/_nuxt/{BKJetfRH.js → DH5H1DJh.js} +1 -1
- package/.output/public/_nuxt/{Gik813Ek.js → DL8knjzi.js} +1 -1
- package/.output/public/_nuxt/{b_yFgp5S.js → DM3bDZC6.js} +1 -1
- package/.output/public/_nuxt/{DLNNAYfu.js → DMAiMrNr.js} +1 -1
- package/.output/public/_nuxt/{DLn-VPtK.js → DMWfVJCj.js} +1 -1
- package/.output/public/_nuxt/{BNAHBHbY.js → DMsm-RGQ.js} +1 -1
- package/.output/public/_nuxt/{CD3R-ggS.js → DMtrFQqi.js} +1 -1
- package/.output/public/_nuxt/{B9kt7ySS.js → DPZBpFOX.js} +1 -1
- package/.output/public/_nuxt/DVEGfqtt.js +2 -0
- package/.output/public/_nuxt/{D4UlSVir.js → D_y2VS8k.js} +1 -1
- package/.output/public/_nuxt/DaNC-xl1.js +1 -0
- package/.output/public/_nuxt/{DzM9oeLa.js → DbmGeOus.js} +1 -1
- package/.output/public/_nuxt/{DHUT-BKj.js → DcLbz6DV.js} +1 -1
- package/.output/public/_nuxt/{CWw9WGlv.js → DcR0Mmdl.js} +1 -1
- package/.output/public/_nuxt/{CDh_Qt7h.js → DhYznn-U.js} +1 -1
- package/.output/public/_nuxt/DhuRRlmK.js +1 -0
- package/.output/public/_nuxt/{CBZD8ym8.js → Drw8yQg6.js} +1 -1
- package/.output/public/_nuxt/{Bt4FLbe0.js → DuO5wfAC.js} +1 -1
- package/.output/public/_nuxt/{CRPt9SfB.js → DuOH5jcQ.js} +1 -1
- package/.output/public/_nuxt/{BH-ym1CI.js → DvEsAuE9.js} +1 -1
- package/.output/public/_nuxt/Dz6g_QJT.js +1 -0
- package/.output/public/_nuxt/{4yvOL9PC.js → DzZpIs4W.js} +1 -1
- package/.output/public/_nuxt/DzzNS-K1.js +1 -0
- package/.output/public/_nuxt/{COP3KBCA.js → Fsw2W4TA.js} +1 -1
- package/.output/public/_nuxt/{DWEkQ7bl.js → LwoTUb-r.js} +1 -1
- package/.output/public/_nuxt/{BjU3HZuS.js → OfPjZaky.js} +1 -1
- package/.output/public/_nuxt/{czXrP7NB.js → P5uOaRUZ.js} +1 -1
- package/.output/public/_nuxt/{BTvE9qca.js → Qo6oszaF.js} +1 -1
- package/.output/public/_nuxt/{Cd8r0xk5.js → T5UuMUxA.js} +1 -1
- package/.output/public/_nuxt/UY8pjaZA.js +1 -0
- package/.output/public/_nuxt/{B6s20NbT.js → V9p3z39z.js} +1 -1
- package/.output/public/_nuxt/{CJEp4i0N.js → VACXezo0.js} +1 -1
- package/.output/public/_nuxt/{CrOA9onF.js → YmCeJkZ2.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/70224ee0-4d1f-45d2-b380-2ecb18064bf1.json +1 -0
- package/.output/public/_nuxt/entry.DzPSf_u5.css +1 -0
- package/.output/public/_nuxt/fXUwH_3d.js +1 -0
- package/.output/public/_nuxt/{t-juTK3X.js → opwuUqHG.js} +1 -1
- package/.output/public/_nuxt/{B_mN5eMV.js → opyDpgSw.js} +1 -1
- package/.output/public/_nuxt/{HwFFbACq.js → sVV8xB9f.js} +1 -1
- package/.output/public/_nuxt/{DSvBQHzW.js → xa5UHCot.js} +1 -1
- package/.output/server/chunks/_/collect.mjs +1 -1
- package/.output/server/chunks/_/markers.mjs +1 -1
- package/.output/server/chunks/_/quarantine.mjs +1 -1
- package/.output/server/chunks/_/users.mjs +1 -1
- package/.output/server/chunks/build/{Alert-DAb8nKVs.mjs → Alert-He-UxEt6.mjs} +2 -2
- package/.output/server/chunks/build/Alert-He-UxEt6.mjs.map +1 -0
- package/.output/server/chunks/build/{Breadcrumb-DJp5WvUM.mjs → Breadcrumb-DEP2dVCZ.mjs} +3 -3
- package/.output/server/chunks/build/Breadcrumb-DEP2dVCZ.mjs.map +1 -0
- package/.output/server/chunks/build/{BreadcrumbNav-BrQwfL8G.mjs → BreadcrumbNav-y6nMDYcR.mjs} +3 -3
- package/.output/server/chunks/build/BreadcrumbNav-y6nMDYcR.mjs.map +1 -0
- package/.output/server/chunks/build/{BrowserBadge-Djw_e_I9.mjs → BrowserBadge-DIASU8Gf.mjs} +6 -66
- package/.output/server/chunks/build/BrowserBadge-DIASU8Gf.mjs.map +1 -0
- package/.output/server/chunks/build/{ChartCard-B2gd_8HP.mjs → ChartCard-ZTsCvItQ.mjs} +2 -2
- package/.output/server/chunks/build/ChartCard-ZTsCvItQ.mjs.map +1 -0
- package/.output/server/chunks/build/{Checkbox-C1khEdTh.mjs → Checkbox-BisdHf8n.mjs} +7 -7
- package/.output/server/chunks/build/Checkbox-BisdHf8n.mjs.map +1 -0
- package/.output/server/chunks/build/{CodeBlock-CjnDrO3Y.mjs → CodeBlock-B8BNtZAe.mjs} +3 -3
- package/.output/server/chunks/build/CodeBlock-B8BNtZAe.mjs.map +1 -0
- package/.output/server/chunks/build/{DashboardNavbar-DYtmVlhy.mjs → DashboardNavbar-D7-3zBUU.mjs} +3 -3
- package/.output/server/chunks/build/DashboardNavbar-D7-3zBUU.mjs.map +1 -0
- package/.output/server/chunks/build/{DashboardSidebarToggle-BPNxODwj.mjs → DashboardSidebarToggle-C3HdHvlE.mjs} +3 -3
- package/.output/server/chunks/build/DashboardSidebarToggle-C3HdHvlE.mjs.map +1 -0
- package/.output/server/chunks/build/{DataLocationCard-2B-sVSMr.mjs → DataLocationCard-CC2-lHiP.mjs} +3 -3
- package/.output/server/chunks/build/DataLocationCard-CC2-lHiP.mjs.map +1 -0
- package/.output/server/chunks/build/{MetaStripGroup-BBByVvpR.mjs → DesktopRunLocallyButton-iNzrDsEs.mjs} +601 -623
- package/.output/server/chunks/build/DesktopRunLocallyButton-iNzrDsEs.mjs.map +1 -0
- package/.output/server/chunks/build/{DiagnosisPanel-D6QO30FQ.mjs → DiagnosisPanel-BVb2LgHu.mjs} +6 -6
- package/.output/server/chunks/build/DiagnosisPanel-BVb2LgHu.mjs.map +1 -0
- package/.output/server/chunks/build/{DiagnosisResult-ujB5Lt2A.mjs → DiagnosisResult-xVgZlfKK.mjs} +9 -9
- package/.output/server/chunks/build/DiagnosisResult-xVgZlfKK.mjs.map +1 -0
- package/.output/server/chunks/build/{EntityLinks-F8_kC-IH.mjs → EntityLinks-Dzn73fbq.mjs} +3 -3
- package/.output/server/chunks/build/EntityLinks-Dzn73fbq.mjs.map +1 -0
- package/.output/server/chunks/build/{EnvManagedBadge-D6e-10M9.mjs → EnvManagedBadge-C-agmABK.mjs} +3 -3
- package/.output/server/chunks/build/EnvManagedBadge-C-agmABK.mjs.map +1 -0
- package/.output/server/chunks/build/{FeatureUnavailable-BMw4euTk.mjs → FeatureUnavailable-DHFkwI7t.mjs} +2 -2
- package/.output/server/chunks/build/FeatureUnavailable-DHFkwI7t.mjs.map +1 -0
- package/.output/server/chunks/build/{FormField-QptK0rPg.mjs → FormField-GYHKiSI6.mjs} +2 -2
- package/.output/server/chunks/build/FormField-GYHKiSI6.mjs.map +1 -0
- package/.output/server/chunks/build/{GetStartedWizard-DxT8T14Y.mjs → GetStartedWizard-BpcGYsm2.mjs} +3 -3
- package/.output/server/chunks/build/GetStartedWizard-BpcGYsm2.mjs.map +1 -0
- package/.output/server/chunks/build/{HelpHint-C5Ru8BCc.mjs → HelpHint-plioHKA0.mjs} +29 -2
- package/.output/server/chunks/build/HelpHint-plioHKA0.mjs.map +1 -0
- package/.output/server/chunks/build/MetaStripGroup-A0a72vt5.mjs +193 -0
- package/.output/server/chunks/build/MetaStripGroup-A0a72vt5.mjs.map +1 -0
- package/.output/server/chunks/build/{Modal-BacZmQCX.mjs → Modal-hKLvVFNp.mjs} +2 -2
- package/.output/server/chunks/build/Modal-hKLvVFNp.mjs.map +1 -0
- package/.output/server/chunks/build/{NavigationMenu-sTiKSWDm.mjs → NavigationMenu-RfBOyS32.mjs} +5 -5
- package/.output/server/chunks/build/NavigationMenu-RfBOyS32.mjs.map +1 -0
- package/.output/server/chunks/build/{OpenInIdeLink-Crc8y0Yx.mjs → OpenInIdeLink-Jp6SzEtD.mjs} +5 -5
- package/.output/server/chunks/build/{OpenInIdeLink-Crc8y0Yx.mjs.map → OpenInIdeLink-Jp6SzEtD.mjs.map} +1 -1
- package/.output/server/chunks/build/{ProjectTestCasesTable-DwjqZ2i5.mjs → ProjectTestCasesTable-DxOTfhi4.mjs} +8 -8
- package/.output/server/chunks/build/{ProjectTestCasesTable-DwjqZ2i5.mjs.map → ProjectTestCasesTable-DxOTfhi4.mjs.map} +1 -1
- package/.output/server/chunks/build/{RovingFocusItem--OEHI2P3.mjs → RovingFocusItem-BOSx1Z9Z.mjs} +2 -2
- package/.output/server/chunks/build/RovingFocusItem-BOSx1Z9Z.mjs.map +1 -0
- package/.output/server/chunks/build/RunReports-nuLb-Nm3.mjs +1 -1
- package/.output/server/chunks/build/{SectionCard-C753B3Yo.mjs → SectionCard-DHAFvJxm.mjs} +2 -2
- package/.output/server/chunks/build/SectionCard-DHAFvJxm.mjs.map +1 -0
- package/.output/server/chunks/build/{Select-BAyYwPuo.mjs → Select-CEyw7HGK.mjs} +4 -4
- package/.output/server/chunks/build/Select-CEyw7HGK.mjs.map +1 -0
- package/.output/server/chunks/build/{SelectMenu-zE_AhMX8.mjs → SelectMenu-C02Hs2_F.mjs} +5 -5
- package/.output/server/chunks/build/{SelectMenu-zE_AhMX8.mjs.map → SelectMenu-C02Hs2_F.mjs.map} +1 -1
- package/.output/server/chunks/build/{Separator-BbgCfKKJ.mjs → Separator-lrN70ODV.mjs} +2 -2
- package/.output/server/chunks/build/Separator-lrN70ODV.mjs.map +1 -0
- package/.output/server/chunks/build/{SettingsField-D-VriK9X.mjs → SettingsField-tRmytcEJ.mjs} +5 -5
- package/.output/server/chunks/build/SettingsField-tRmytcEJ.mjs.map +1 -0
- package/.output/server/chunks/build/{Slideover-CNbGvbUF.mjs → Slideover-D6cRIqch.mjs} +3 -3
- package/.output/server/chunks/build/Slideover-D6cRIqch.mjs.map +1 -0
- package/.output/server/chunks/build/{Switch-DdkA3Fii.mjs → Switch-R2n82ncQ.mjs} +4 -4
- package/.output/server/chunks/build/Switch-R2n82ncQ.mjs.map +1 -0
- package/.output/server/chunks/build/{Table-CfDVAuUJ.mjs → Table-qZdnm9t2.mjs} +3 -3
- package/.output/server/chunks/build/Table-qZdnm9t2.mjs.map +1 -0
- package/.output/server/chunks/build/{Tabs-BCOhHEB9.mjs → Tabs-BDP7MWl4.mjs} +3 -3
- package/.output/server/chunks/build/Tabs-BDP7MWl4.mjs.map +1 -0
- package/.output/server/chunks/build/{TestStatusBar-wquHQqtp.mjs → TestStatusBar-CvsmKJ4D.mjs} +2 -2
- package/.output/server/chunks/build/TestStatusBar-CvsmKJ4D.mjs.map +1 -0
- package/.output/server/chunks/build/{Textarea-Ohs6QTXf.mjs → Textarea-DpmpM-lN.mjs} +2 -2
- package/.output/server/chunks/build/Textarea-DpmpM-lN.mjs.map +1 -0
- package/.output/server/chunks/build/{Tooltip-BRBnl4pE.mjs → Tooltip-BI3WQErw.mjs} +3 -3
- package/.output/server/chunks/build/Tooltip-BI3WQErw.mjs.map +1 -0
- package/.output/server/chunks/build/{VisuallyHiddenInput-BHvzNumK.mjs → VisuallyHiddenInput-D4E5aJCQ.mjs} +2 -2
- package/.output/server/chunks/build/VisuallyHiddenInput-D4E5aJCQ.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-BesWjK_d.mjs → _id_-26komi8G.mjs} +47 -37
- package/.output/server/chunks/build/{_id_-BesWjK_d.mjs.map → _id_-26komi8G.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-CQ0lolEK.mjs → _id_-T965GKYC.mjs} +58 -15
- package/.output/server/chunks/build/_id_-T965GKYC.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-CGs0u8Fr.mjs → _id_-w7YCSiiy.mjs} +70 -41
- package/.output/server/chunks/build/{_id_-CGs0u8Fr.mjs.map → _id_-w7YCSiiy.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-D1-06Fcl.mjs → _id_-wiULjAVc.mjs} +44 -40
- package/.output/server/chunks/build/{_id_-D1-06Fcl.mjs.map → _id_-wiULjAVc.mjs.map} +1 -1
- package/.output/server/chunks/build/{about-DdyOj-dj.mjs → about-B3V_OEiu.mjs} +5 -5
- package/.output/server/chunks/build/about-B3V_OEiu.mjs.map +1 -0
- package/.output/server/chunks/build/{account-7aVMKekZ.mjs → account-DpBdYE46.mjs} +6 -6
- package/.output/server/chunks/build/account-DpBdYE46.mjs.map +1 -0
- package/.output/server/chunks/build/{ai-zw3T9b5u.mjs → ai-DYhpzbqp.mjs} +16 -16
- package/.output/server/chunks/build/{ai-zw3T9b5u.mjs.map → ai-DYhpzbqp.mjs.map} +1 -1
- package/.output/server/chunks/build/{analytics-CeCzKwEX.mjs → analytics-CZJEU0an.mjs} +17 -17
- package/.output/server/chunks/build/{analytics-CeCzKwEX.mjs.map → analytics-CZJEU0an.mjs.map} +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{db.client-Bdqk_eYQ.mjs → db.client-DijpEH6i.mjs} +3 -1
- package/.output/server/chunks/build/db.client-DijpEH6i.mjs.map +1 -0
- package/.output/server/chunks/build/{default-CkyAx_Mu.mjs → default-CQa_bmAf.mjs} +505 -89
- package/.output/server/chunks/build/default-CQa_bmAf.mjs.map +1 -0
- package/.output/server/chunks/build/{docs-Dhj-wEks.mjs → docs-C8bndVXg.mjs} +11 -11
- package/.output/server/chunks/build/{docs-Dhj-wEks.mjs.map → docs-C8bndVXg.mjs.map} +1 -1
- package/.output/server/chunks/build/{edit-CVz_gdoe.mjs → edit-BdfF9er2.mjs} +12 -12
- package/.output/server/chunks/build/edit-BdfF9er2.mjs.map +1 -0
- package/.output/server/chunks/build/{fetch-Be-j7hF1.mjs → fetch-tkz5_OA-.mjs} +3 -3
- package/.output/server/chunks/build/fetch-tkz5_OA-.mjs.map +1 -0
- package/.output/server/chunks/build/{forgot-password-CwdjL7BO.mjs → forgot-password-swZRcvXE.mjs} +3 -3
- package/.output/server/chunks/build/forgot-password-swZRcvXE.mjs.map +1 -0
- package/.output/server/chunks/build/{import-DyQEw4V3.mjs → import-B27Sv7h5.mjs} +11 -11
- package/.output/server/chunks/build/import-B27Sv7h5.mjs.map +1 -0
- package/.output/server/chunks/build/{index-DcnICCZU.mjs → index-BdZmxLtC.mjs} +17 -17
- package/.output/server/chunks/build/{index-DcnICCZU.mjs.map → index-BdZmxLtC.mjs.map} +1 -1
- package/.output/server/chunks/build/{index-D7Bmj6bq.mjs → index-C7m32bRI.mjs} +9 -9
- package/.output/server/chunks/build/index-C7m32bRI.mjs.map +1 -0
- package/.output/server/chunks/build/{index-DghAFpNR.mjs → index-Dq6nk6OB.mjs} +385 -104
- package/.output/server/chunks/build/index-Dq6nk6OB.mjs.map +1 -0
- package/.output/server/chunks/build/{isValueEqualOrExist-D2qw9YEr.mjs → isValueEqualOrExist-D4lZ8uRY.mjs} +3 -3
- package/.output/server/chunks/build/isValueEqualOrExist-D4lZ8uRY.mjs.map +1 -0
- package/.output/server/chunks/build/{login-rXKF63j6.mjs → login-hxCF06JT.mjs} +5 -5
- package/.output/server/chunks/build/login-hxCF06JT.mjs.map +1 -0
- package/.output/server/chunks/build/{mcp-ByNvFy4o.mjs → mcp-BVW1llyW.mjs} +12 -12
- package/.output/server/chunks/build/mcp-BVW1llyW.mjs.map +1 -0
- package/.output/server/chunks/build/{notifications-CbLAZnKJ.mjs → notifications-Dn-evqXM.mjs} +11 -11
- package/.output/server/chunks/build/notifications-Dn-evqXM.mjs.map +1 -0
- package/.output/server/chunks/build/{performance-C93MEPaZ.mjs → performance-CV8qm94u.mjs} +10 -10
- package/.output/server/chunks/build/performance-CV8qm94u.mjs.map +1 -0
- package/.output/server/chunks/build/{pr-feedback-DKCB0bDE.mjs → pr-feedback-gKDz8LyA.mjs} +9 -9
- package/.output/server/chunks/build/pr-feedback-gKDz8LyA.mjs.map +1 -0
- package/.output/server/chunks/build/{reset-password-BBoHKMqD.mjs → reset-password-DtEISa1I.mjs} +3 -3
- package/.output/server/chunks/build/reset-password-DtEISa1I.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +87 -33
- package/.output/server/chunks/build/{settings-DiG0JjzC.mjs → settings-BJDnuLpc.mjs} +8 -8
- package/.output/server/chunks/build/settings-BJDnuLpc.mjs.map +1 -0
- package/.output/server/chunks/build/settings-metadata-DnAK4Rzg.mjs +1 -1
- package/.output/server/chunks/build/{setup-0-1O6Hjz.mjs → setup-BO9tXa_G.mjs} +14 -14
- package/.output/server/chunks/build/{setup-0-1O6Hjz.mjs.map → setup-BO9tXa_G.mjs.map} +1 -1
- package/.output/server/chunks/build/{storage-3JiFJ843.mjs → storage-zN92cA9q.mjs} +11 -11
- package/.output/server/chunks/build/storage-zN92cA9q.mjs.map +1 -0
- package/.output/server/chunks/build/{tags-CqYcp7js.mjs → tags-CJFnoyQc.mjs} +5 -5
- package/.output/server/chunks/build/tags-CJFnoyQc.mjs.map +1 -0
- package/.output/server/chunks/build/{test-cases-y1HSgPX2.mjs → test-cases-0Q6rT73d.mjs} +18 -18
- package/.output/server/chunks/build/test-cases-0Q6rT73d.mjs.map +1 -0
- package/.output/server/chunks/build/{test-functions-D2ju95Ly.mjs → test-functions-DVRJgiWo.mjs} +9 -9
- package/.output/server/chunks/build/test-functions-DVRJgiWo.mjs.map +1 -0
- package/.output/server/chunks/build/{useCopyRich-CVFeYfkG.mjs → useCopyRich-BM9GTjJi.mjs} +75 -29
- package/.output/server/chunks/build/{useCopyRich-CVFeYfkG.mjs.map → useCopyRich-BM9GTjJi.mjs.map} +1 -1
- package/.output/server/chunks/build/useDesktopLocalRuns-k7Gw3Fv3.mjs +319 -0
- package/.output/server/chunks/build/useDesktopLocalRuns-k7Gw3Fv3.mjs.map +1 -0
- package/.output/server/chunks/build/useDesktopProjectLink-WwLte59P.mjs +67 -0
- package/.output/server/chunks/build/useDesktopProjectLink-WwLte59P.mjs.map +1 -0
- package/.output/server/chunks/build/{useFormControl-CZ9So7iX.mjs → useFormControl-8skMOTIf.mjs} +2 -2
- package/.output/server/chunks/build/useFormControl-8skMOTIf.mjs.map +1 -0
- package/.output/server/chunks/build/{useOpenInIde--6Me0WlL.mjs → useOpenInIde-D74FmDNg.mjs} +2 -2
- package/.output/server/chunks/build/useOpenInIde-D74FmDNg.mjs.map +1 -0
- package/.output/server/chunks/build/{users-IdmY9JZV.mjs → users-C9bjOBde.mjs} +6 -6
- package/.output/server/chunks/build/users-C9bjOBde.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +982 -664
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/__piwi/session.get.mjs +1 -1
- package/.output/server/chunks/routes/api/ai/step-resolution.post.mjs +88 -0
- package/.output/server/chunks/routes/api/ai/step-resolution.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/analytics/_widget_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/change-password.post.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/forgot-password.post.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/login.post.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/logout.post.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/me.get.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/oauth/_provider/callback.get.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/oauth/_provider/login.get.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/oauth/_provider/unlink.post.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/reset-password.post.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/send-verify-email.post.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/setup.get.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/setup.post.mjs +1 -1
- package/.output/server/chunks/routes/api/auth/verify-email.get.mjs +1 -1
- package/.output/server/chunks/routes/api/channels/_id/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/channels/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/cluster-merge-suggestions/_id/approve.post.mjs +1 -1
- package/.output/server/chunks/routes/api/cluster-merge-suggestions/_id/reject.post.mjs +1 -1
- package/.output/server/chunks/routes/api/desktop/import-local.post.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/base-commit.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/branches.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/commit-diff.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/commits.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/context.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose/stream.post.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose.post.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnoses.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnosis.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/export.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/extract-cases.post.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/fix-plan.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/status.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/failure-diagnoses/_id/feedback.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/files/_...path_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get2.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get3.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get4.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get5.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post2.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post3.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post4.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post5.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post6.mjs +1 -1
- package/.output/server/chunks/routes/api/links/_id/refresh.post.mjs +1 -1
- package/.output/server/chunks/routes/api/links/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/links/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/markers/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/markers/_id_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/notifications/stream.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/ai-steps.get.mjs +63 -0
- package/.output/server/chunks/routes/api/projects/_id/ai-steps.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/projects/_id/cluster-merge-suggestions.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/failure-clusters.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/flaky-classify.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/flaky-tests.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/latest-run.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/markers.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/markers.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/members.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/members.put.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/performance.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/quarantine/_testCaseId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/quarantine.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/quarantine.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/slow-tests.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/spec-health.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/test-cases.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/test-functions/extract.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/test-functions/validate-proposal.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/test-functions.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/test-functions.post.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id/timeout-opportunities.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/_id_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/menu.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects/overview.get.mjs +1 -1
- package/.output/server/chunks/routes/api/projects.get.mjs +1 -1
- package/.output/server/chunks/routes/api/search.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai/limits.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai/limits.put.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai/usage.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/ai.put.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/pr-feedback.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/pr-feedback.put.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/smtp/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/smtp.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/timeout-hygiene.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/timeout-hygiene.put.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/wasted-waits.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings/wasted-waits.put.mjs +1 -1
- package/.output/server/chunks/routes/api/setup-status.get.mjs +1 -1
- package/.output/server/chunks/routes/api/stream.get.mjs +1 -1
- package/.output/server/chunks/routes/api/subscriptions/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/subscriptions/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/tags/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/tags/_id_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/test-cases/_id/history.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-cases/_id/stability-trend.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-cases/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-functions/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/test-functions/_id_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnose.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis-context.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/export.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/traces.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/begin.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/dom-snapshot.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/environment-diff.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-healing.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-pick.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network-body.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-stacks.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/visual-diff.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/events.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/failure-groups.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/gate.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/heartbeat.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/insights.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/network-requests.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/regression-context.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/stream.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/summary.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/import/check.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/import.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/recent.get.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/setup.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/start.post.mjs +1 -1
- package/.output/server/chunks/routes/api/test-runs/submit.post.mjs +3 -1
- package/.output/server/chunks/routes/api/test-runs/submit.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/upload.post.mjs +2 -1
- package/.output/server/chunks/routes/api/test-runs/upload.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs +2 -1
- package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/traces/check.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/api-keys/_keyId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/invite.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/projects.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id/projects.put.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/version.get.mjs +1 -1
- package/.output/server/chunks/routes/mcp.post.mjs +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/database/migrations/0045_productive_stingray.sql +1 -0
- package/.output/server/database/migrations/meta/0045_snapshot.json +3779 -0
- package/.output/server/database/migrations/meta/_journal.json +7 -0
- package/.output/server/database/migrations-pg/0046_gorgeous_hercules.sql +1 -0
- package/.output/server/database/migrations-pg/meta/0046_snapshot.json +4486 -0
- package/.output/server/database/migrations-pg/meta/_journal.json +7 -0
- package/.output/server/index.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/B-6GGrhr.js +0 -1
- package/.output/public/_nuxt/B9FSuKdA.js +0 -1
- package/.output/public/_nuxt/BaDhDBCV.js +0 -1
- package/.output/public/_nuxt/Bb7Uckln.js +0 -5
- package/.output/public/_nuxt/Be4c943G.js +0 -2
- package/.output/public/_nuxt/BpUXqOVj.js +0 -2
- package/.output/public/_nuxt/BtSJxOdh.js +0 -1
- package/.output/public/_nuxt/CI_q0F1O.js +0 -9
- package/.output/public/_nuxt/CScusXhF.js +0 -1
- package/.output/public/_nuxt/Cot8fIp5.js +0 -2
- package/.output/public/_nuxt/D0ROfwV0.js +0 -1
- package/.output/public/_nuxt/D4oheDIm.js +0 -4
- package/.output/public/_nuxt/DS2ANCQh.js +0 -1
- package/.output/public/_nuxt/DslnXfcH.js +0 -1
- package/.output/public/_nuxt/builds/meta/28bca36d-5571-4157-b1b8-7f62c934eed6.json +0 -1
- package/.output/public/_nuxt/entry.BAvBQY-h.css +0 -1
- package/.output/public/_nuxt/hzsG6cAc.js +0 -1
- package/.output/public/_nuxt/jjOqY9Tv.js +0 -1
- package/.output/public/_nuxt/xbO0VmDX.js +0 -1
- package/.output/server/chunks/build/Alert-DAb8nKVs.mjs.map +0 -1
- package/.output/server/chunks/build/Breadcrumb-DJp5WvUM.mjs.map +0 -1
- package/.output/server/chunks/build/BreadcrumbNav-BrQwfL8G.mjs.map +0 -1
- package/.output/server/chunks/build/BrowserBadge-Djw_e_I9.mjs.map +0 -1
- package/.output/server/chunks/build/ChartCard-B2gd_8HP.mjs.map +0 -1
- package/.output/server/chunks/build/Checkbox-C1khEdTh.mjs.map +0 -1
- package/.output/server/chunks/build/CodeBlock-CjnDrO3Y.mjs.map +0 -1
- package/.output/server/chunks/build/DashboardNavbar-DYtmVlhy.mjs.map +0 -1
- package/.output/server/chunks/build/DashboardSidebarToggle-BPNxODwj.mjs.map +0 -1
- package/.output/server/chunks/build/DataLocationCard-2B-sVSMr.mjs.map +0 -1
- package/.output/server/chunks/build/DiagnosisPanel-D6QO30FQ.mjs.map +0 -1
- package/.output/server/chunks/build/DiagnosisResult-ujB5Lt2A.mjs.map +0 -1
- package/.output/server/chunks/build/EntityLinks-F8_kC-IH.mjs.map +0 -1
- package/.output/server/chunks/build/EnvManagedBadge-D6e-10M9.mjs.map +0 -1
- package/.output/server/chunks/build/FeatureUnavailable-BMw4euTk.mjs.map +0 -1
- package/.output/server/chunks/build/FormField-QptK0rPg.mjs.map +0 -1
- package/.output/server/chunks/build/GetStartedWizard-DxT8T14Y.mjs.map +0 -1
- package/.output/server/chunks/build/HelpHint-C5Ru8BCc.mjs.map +0 -1
- package/.output/server/chunks/build/MetaStripGroup-BBByVvpR.mjs.map +0 -1
- package/.output/server/chunks/build/Modal-BacZmQCX.mjs.map +0 -1
- package/.output/server/chunks/build/NavigationMenu-sTiKSWDm.mjs.map +0 -1
- package/.output/server/chunks/build/RovingFocusItem--OEHI2P3.mjs.map +0 -1
- package/.output/server/chunks/build/SectionCard-C753B3Yo.mjs.map +0 -1
- package/.output/server/chunks/build/Select-BAyYwPuo.mjs.map +0 -1
- package/.output/server/chunks/build/Separator-BbgCfKKJ.mjs.map +0 -1
- package/.output/server/chunks/build/SettingsField-D-VriK9X.mjs.map +0 -1
- package/.output/server/chunks/build/Slideover-CNbGvbUF.mjs.map +0 -1
- package/.output/server/chunks/build/Switch-DdkA3Fii.mjs.map +0 -1
- package/.output/server/chunks/build/Table-CfDVAuUJ.mjs.map +0 -1
- package/.output/server/chunks/build/Tabs-BCOhHEB9.mjs.map +0 -1
- package/.output/server/chunks/build/TestStatusBar-wquHQqtp.mjs.map +0 -1
- package/.output/server/chunks/build/Textarea-Ohs6QTXf.mjs.map +0 -1
- package/.output/server/chunks/build/Tooltip-BRBnl4pE.mjs.map +0 -1
- package/.output/server/chunks/build/VisuallyHiddenInput-BHvzNumK.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-CQ0lolEK.mjs.map +0 -1
- package/.output/server/chunks/build/about-DdyOj-dj.mjs.map +0 -1
- package/.output/server/chunks/build/account-7aVMKekZ.mjs.map +0 -1
- package/.output/server/chunks/build/db.client-Bdqk_eYQ.mjs.map +0 -1
- package/.output/server/chunks/build/default-CkyAx_Mu.mjs.map +0 -1
- package/.output/server/chunks/build/edit-CVz_gdoe.mjs.map +0 -1
- package/.output/server/chunks/build/fetch-Be-j7hF1.mjs.map +0 -1
- package/.output/server/chunks/build/forgot-password-CwdjL7BO.mjs.map +0 -1
- package/.output/server/chunks/build/import-DyQEw4V3.mjs.map +0 -1
- package/.output/server/chunks/build/index-D7Bmj6bq.mjs.map +0 -1
- package/.output/server/chunks/build/index-DghAFpNR.mjs.map +0 -1
- package/.output/server/chunks/build/isValueEqualOrExist-D2qw9YEr.mjs.map +0 -1
- package/.output/server/chunks/build/login-rXKF63j6.mjs.map +0 -1
- package/.output/server/chunks/build/mcp-ByNvFy4o.mjs.map +0 -1
- package/.output/server/chunks/build/notifications-CbLAZnKJ.mjs.map +0 -1
- package/.output/server/chunks/build/performance-C93MEPaZ.mjs.map +0 -1
- package/.output/server/chunks/build/pr-feedback-DKCB0bDE.mjs.map +0 -1
- package/.output/server/chunks/build/reset-password-BBoHKMqD.mjs.map +0 -1
- package/.output/server/chunks/build/settings-DiG0JjzC.mjs.map +0 -1
- package/.output/server/chunks/build/storage-3JiFJ843.mjs.map +0 -1
- package/.output/server/chunks/build/tags-CqYcp7js.mjs.map +0 -1
- package/.output/server/chunks/build/test-cases-y1HSgPX2.mjs.map +0 -1
- package/.output/server/chunks/build/test-functions-D2ju95Ly.mjs.map +0 -1
- package/.output/server/chunks/build/useFormControl-CZ9So7iX.mjs.map +0 -1
- package/.output/server/chunks/build/useOpenInIde--6Me0WlL.mjs.map +0 -1
- package/.output/server/chunks/build/users-IdmY9JZV.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{aa as P,p as L}from"./h49q_GXF.js";const y=43200,k=1440,C=Symbol.for("constructDateFrom");function x(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&C in e?e[C](t):e instanceof Date?new e.constructor(t):new Date(t)}function g(e,t){return x(e,e)}let _={};function A(){return _}function W(e){const t=g(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function D(e,...t){const n=x.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function w(e,t){const n=+g(e)-+g(t);return n<0?-1:n>0?1:n}function z(e){return x(e,Date.now())}function E(e,t,n){const[r,a]=D(n?.in,e,t),u=r.getFullYear()-a.getFullYear(),o=r.getMonth()-a.getMonth();return u*12+o}function $(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function j(e,t){return+g(e)-+g(t)}function R(e,t){const n=g(e);return n.setHours(23,59,59,999),n}function X(e,t){const n=g(e),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Y(e,t){const n=g(e);return+R(n)==+X(n)}function U(e,t,n){const[r,a,u]=D(n?.in,e,e,t),o=w(a,u),i=Math.abs(E(a,u));if(i<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-o*i);let l=w(a,u)===-o;Y(r)&&i===1&&w(r,u)===1&&(l=!1);const d=o*(i-+l);return d===0?0:d}function V(e,t,n){const r=j(e,t)/1e3;return $(n?.roundingMethod)(r)}const q={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},H=(e,t,n)=>{let r;const a=q[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function v(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const B={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},J={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},G={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Q={date:v({formats:B,defaultWidth:"full"}),time:v({formats:J,defaultWidth:"full"}),dateTime:v({formats:G,defaultWidth:"full"})},K={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Z=(e,t,n,r)=>K[e];function p(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):o;a=e.formattingValues[i]||e.formattingValues[o]}else{const o=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;a=e.values[i]||e.values[o]}const u=e.argumentCallback?e.argumentCallback(t):t;return a[u]}}const ee={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},te={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ne={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},re={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ae={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ie={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},oe=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},se={ordinalNumber:oe,era:p({values:ee,defaultWidth:"wide"}),quarter:p({values:te,defaultWidth:"wide",argumentCallback:e=>e-1}),month:p({values:ne,defaultWidth:"wide"}),day:p({values:re,defaultWidth:"wide"}),dayPeriod:p({values:ae,defaultWidth:"wide",formattingValues:ie,defaultFormattingWidth:"wide"})};function b(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],u=t.match(a);if(!u)return null;const o=u[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?ce(i,h=>h.test(o)):ue(i,h=>h.test(o));let d;d=e.valueCallback?e.valueCallback(l):l,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(o.length);return{value:d,rest:f}}}function ue(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ce(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function le(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],u=t.match(e.parsePattern);if(!u)return null;let o=e.valueCallback?e.valueCallback(u[0]):u[0];o=n.valueCallback?n.valueCallback(o):o;const i=t.slice(a.length);return{value:o,rest:i}}}const de=/^(\d+)(th|st|nd|rd)?/i,fe=/\d+/i,he={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},me={any:[/^b/i,/^(a|c)/i]},ge={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pe={any:[/1/i,/2/i,/3/i,/4/i]},be={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ye={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},we={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Me={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ve={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},xe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},De={ordinalNumber:le({matchPattern:de,parsePattern:fe,valueCallback:e=>parseInt(e,10)}),era:b({matchPatterns:he,defaultMatchWidth:"wide",parsePatterns:me,defaultParseWidth:"any"}),quarter:b({matchPatterns:ge,defaultMatchWidth:"wide",parsePatterns:pe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:b({matchPatterns:be,defaultMatchWidth:"wide",parsePatterns:ye,defaultParseWidth:"any"}),day:b({matchPatterns:we,defaultMatchWidth:"wide",parsePatterns:Me,defaultParseWidth:"any"}),dayPeriod:b({matchPatterns:ve,defaultMatchWidth:"any",parsePatterns:xe,defaultParseWidth:"any"})},N={code:"en-US",formatDistance:H,formatLong:Q,formatRelative:Z,localize:se,match:De,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Se(e,t,n){const r=A(),a=n?.locale??r.locale??N,u=2520,o=w(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o}),[l,d]=D(n?.in,...o>0?[t,e]:[e,t]),f=V(d,l),h=(W(d)-W(l))/1e3,c=Math.round((f-h)/60);let s;if(c<2)return n?.includeSeconds?f<5?a.formatDistance("lessThanXSeconds",5,i):f<10?a.formatDistance("lessThanXSeconds",10,i):f<20?a.formatDistance("lessThanXSeconds",20,i):f<40?a.formatDistance("halfAMinute",0,i):f<60?a.formatDistance("lessThanXMinutes",1,i):a.formatDistance("xMinutes",1,i):c===0?a.formatDistance("lessThanXMinutes",1,i):a.formatDistance("xMinutes",c,i);if(c<45)return a.formatDistance("xMinutes",c,i);if(c<90)return a.formatDistance("aboutXHours",1,i);if(c<k){const m=Math.round(c/60);return a.formatDistance("aboutXHours",m,i)}else{if(c<u)return a.formatDistance("xDays",1,i);if(c<y){const m=Math.round(c/k);return a.formatDistance("xDays",m,i)}else if(c<y*2)return s=Math.round(c/y),a.formatDistance("aboutXMonths",s,i)}if(s=U(d,l),s<12){const m=Math.round(c/y);return a.formatDistance("xMonths",m,i)}else{const m=s%12,M=Math.trunc(s/12);return m<3?a.formatDistance("aboutXYears",M,i):m<9?a.formatDistance("overXYears",M,i):a.formatDistance("almostXYears",M+1,i)}}function Pe(e,t){return Se(e,z(e),t)}const ke=["years","months","weeks","days","hours","minutes","seconds"];function Ce(e,t){const r=A().locale??N,a=ke,u=" ";return r.formatDistance?a.reduce((i,l)=>{const d=`x${l.replace(/(^.)/,h=>h.toUpperCase())}`,f=e[l];return f!==void 0&&e[l]?i.concat(r.formatDistance(d,f)):i},[]).join(u):""}const We="piwi:",O=["critical","high","medium","low"];new Set(O);function Le(e){return typeof e=="string"&&e.trim().toLowerCase().startsWith(We)}function _e(e){return O.includes(e)?e:void 0}function ze(e){return({column:t})=>{const n=t.getIsSorted();return P("button",{class:"flex items-center gap-1 font-semibold select-none cursor-pointer hover:text-highlighted transition-colors",onClick:()=>t.toggleSorting()},[e,P(L,{name:n==="asc"?"i-lucide-chevron-up":n==="desc"?"i-lucide-chevron-down":"i-lucide-chevrons-up-down",class:["shrink-0 size-3.5",!n&&"opacity-40"]})])}}function Ee(e,t={}){if(e==null||e==="")return"N/A";let n;if(e instanceof Date)n=e;else{const r=typeof e=="number"?e:Number(e);!Number.isNaN(r)&&String(e).trim()!==""?n=new Date(r<1e12?r*1e3:r):n=new Date(e)}return Number.isNaN(n.getTime())?"N/A":t.dateOnly?n.toLocaleDateString():n.toLocaleString()}function $e(e){return e?Pe(new Date(e),{addSuffix:!0}):"N/A"}function je(e){if(e==null)return"N/A";const t=Math.round(Math.abs(e));return t===0?"0 seconds":(e<0?"−":"")+Ce({seconds:t/1e3})}function Re(e){if(e==null)return null;const t=Math.round(Math.abs(e)),n=e<0?"−":"";if(t<1e3)return{value:n+t,unit:"ms"};const r=t/1e3;return r<60?{value:n+Math.round(r*10)/10,unit:"s"}:{value:n+Math.round(r/60*10)/10,unit:"m"}}function Xe(e){switch(e){case"html":return"i-lucide-layout-dashboard";case"monocart":return"i-lucide-bar-chart-2";case"blob":return"i-lucide-download";default:return"i-lucide-file-text"}}function Ye(e){if(!e)return"i-lucide-globe";const t=e.toLowerCase();return t.includes("chrome")||t.includes("chromium")?"i-simple-icons-googlechrome":t.includes("firefox")?"i-simple-icons-firefoxbrowser":t.includes("safari")||t.includes("webkit")?"i-simple-icons-safari":t.includes("edge")?"i-simple-icons-microsoftedge":"i-lucide-globe"}function Ue(e){if(!e)return"#6b7280";const t=e.toLowerCase();return t.includes("chrome")||t.includes("chromium")?"#4285F4":t.includes("firefox")?"#FF7139":t.includes("safari")||t.includes("webkit")?"#007AFF":t.includes("edge")?"#0078D7":"#6b7280"}function Te(e){switch(e){case"passed":return"success";case"failed":return"error";case"timedout":return"warning";case"timedOut":return"warning";case"interrupted":return"warning";case"cancelled":return"neutral";case"initialising":return"info";case"running":return"info";case"finalizing":return"info";default:return"neutral"}}function S(e){return e==="timedOut"?"timedout":e}function Ve(e){switch(S(e)){case"passed":return"i-lucide-check-circle-2";case"failed":case"timedout":return"i-lucide-x-circle";case"didnotrun":return"i-lucide-circle-slash";case"running":case"initialising":case"finalizing":return"i-lucide-loader-circle";default:return"i-lucide-minus-circle"}}function qe(e){switch(S(e)){case"passed":return"text-emerald-600 dark:text-emerald-400";case"failed":case"timedout":return"text-rose-600 dark:text-rose-400";case"didnotrun":return"text-amber-600 dark:text-amber-400";case"running":case"initialising":case"finalizing":return"text-blue-600 dark:text-blue-400";default:return"text-zinc-400 dark:text-zinc-500"}}function He(e){const t=S(e);return t==="running"||t==="initialising"||t==="finalizing"}function Be(e){return e==="timedOut"||e==="timedout"?"failed":e==="didnotrun"?"didn't run":e==="never-run"?"never run":e}function Je(e){return e&&{open:"warning",resolved:"success",ignored:"neutral"}[e]||"neutral"}function Ge(e){switch(e){case"diagnosis-verified":return{label:"Fix verified",color:"success",icon:"i-lucide-badge-check",hint:"The tests went green and the change touched the files the diagnosis named."};case"stopped-failing":return{label:"Stopped failing",color:"info",icon:"i-lucide-check",hint:"The tests went green. Nothing corroborates which change did it."};case"regressed":return{label:"Regressed",color:"error",icon:"i-lucide-undo-2",hint:"A fix was recorded for this cluster and it did not hold — the failure came back."};default:return null}}function Qe(e){return e&&{timeout:"warning",assertion:"error","strict-mode":"info",navigation:"secondary",crash:"error",unknown:"neutral"}[e]||"neutral"}const T=["#ef4444","#f97316","#f59e0b","#84cc16","#10b981","#14b8a6","#06b6d4","#3b82f6","#6366f1","#8b5cf6","#d946ef","#ec4899"];function Ke(){return T[Math.floor(Math.random()*T.length)]}function I(e){return!e.startsWith(".")&&!e.startsWith("/")?e:e.replace(".data/storage/","")}function Ze(e,t,n="/",r=!1){const a=(n||"/").replace(/\/$/,""),u=new URLSearchParams,o=/\.[a-z0-9]+$/i.test(e);t&&!o&&u.set("contentType",t),r&&u.set("compress","1");const i=u.toString();return`${a}/api/files/${I(e)}${i?`?${i}`:""}`}function et(e,t="/",n=!1){const r=(t||"/").replace(/\/$/,""),o=`${typeof location>"u"?"":location.origin}${r}/${n?"":"api/files/"}${I(e)}`;return`${r}/trace-viewer/?trace=${encodeURIComponent(o)}`}function tt(e,t="Unknown error"){if(e&&typeof e=="object"){const n=e;return n.data?.message??n.message??t}return t}function nt(e,t){const n=t.trim().toLowerCase();return n?e.filter(r=>r.message.toLowerCase().includes(n)||r.author.toLowerCase().includes(n)||r.sha.includes(n)||r.shortSha.includes(n)):e}function rt(e){switch(e){case"added":return{icon:"i-lucide-file-plus",color:"text-green-500",badgeColor:"success"};case"removed":return{icon:"i-lucide-file-minus",color:"text-red-500",badgeColor:"error"};case"renamed":return{icon:"i-lucide-file-symlink",color:"text-blue-500",badgeColor:"info"};default:return{icon:"i-lucide-file-pen-line",color:"text-gray-400",badgeColor:"neutral"}}}const at={add:"bg-green-50 dark:bg-green-950/30 text-green-800 dark:text-green-300",remove:"bg-red-50 dark:bg-red-950/30 text-red-800 dark:text-red-300",hunk:"bg-blue-50 dark:bg-blue-950/20 text-blue-500 dark:text-blue-400",context:"text-gray-600 dark:text-gray-400"};function it(e){return e.split(`
|
|
1
|
+
import{aa as P,p as L}from"./C5TrTuWv.js";const y=43200,k=1440,C=Symbol.for("constructDateFrom");function x(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&C in e?e[C](t):e instanceof Date?new e.constructor(t):new Date(t)}function g(e,t){return x(e,e)}let _={};function A(){return _}function W(e){const t=g(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function D(e,...t){const n=x.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function w(e,t){const n=+g(e)-+g(t);return n<0?-1:n>0?1:n}function z(e){return x(e,Date.now())}function E(e,t,n){const[r,a]=D(n?.in,e,t),u=r.getFullYear()-a.getFullYear(),o=r.getMonth()-a.getMonth();return u*12+o}function $(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function j(e,t){return+g(e)-+g(t)}function R(e,t){const n=g(e);return n.setHours(23,59,59,999),n}function X(e,t){const n=g(e),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Y(e,t){const n=g(e);return+R(n)==+X(n)}function U(e,t,n){const[r,a,u]=D(n?.in,e,e,t),o=w(a,u),i=Math.abs(E(a,u));if(i<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-o*i);let l=w(a,u)===-o;Y(r)&&i===1&&w(r,u)===1&&(l=!1);const d=o*(i-+l);return d===0?0:d}function V(e,t,n){const r=j(e,t)/1e3;return $(n?.roundingMethod)(r)}const q={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},H=(e,t,n)=>{let r;const a=q[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function v(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const B={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},J={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},G={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Q={date:v({formats:B,defaultWidth:"full"}),time:v({formats:J,defaultWidth:"full"}),dateTime:v({formats:G,defaultWidth:"full"})},K={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Z=(e,t,n,r)=>K[e];function p(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):o;a=e.formattingValues[i]||e.formattingValues[o]}else{const o=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;a=e.values[i]||e.values[o]}const u=e.argumentCallback?e.argumentCallback(t):t;return a[u]}}const ee={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},te={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ne={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},re={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ae={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ie={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},oe=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},se={ordinalNumber:oe,era:p({values:ee,defaultWidth:"wide"}),quarter:p({values:te,defaultWidth:"wide",argumentCallback:e=>e-1}),month:p({values:ne,defaultWidth:"wide"}),day:p({values:re,defaultWidth:"wide"}),dayPeriod:p({values:ae,defaultWidth:"wide",formattingValues:ie,defaultFormattingWidth:"wide"})};function b(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],u=t.match(a);if(!u)return null;const o=u[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?ce(i,h=>h.test(o)):ue(i,h=>h.test(o));let d;d=e.valueCallback?e.valueCallback(l):l,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(o.length);return{value:d,rest:f}}}function ue(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ce(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function le(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],u=t.match(e.parsePattern);if(!u)return null;let o=e.valueCallback?e.valueCallback(u[0]):u[0];o=n.valueCallback?n.valueCallback(o):o;const i=t.slice(a.length);return{value:o,rest:i}}}const de=/^(\d+)(th|st|nd|rd)?/i,fe=/\d+/i,he={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},me={any:[/^b/i,/^(a|c)/i]},ge={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pe={any:[/1/i,/2/i,/3/i,/4/i]},be={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ye={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},we={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Me={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ve={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},xe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},De={ordinalNumber:le({matchPattern:de,parsePattern:fe,valueCallback:e=>parseInt(e,10)}),era:b({matchPatterns:he,defaultMatchWidth:"wide",parsePatterns:me,defaultParseWidth:"any"}),quarter:b({matchPatterns:ge,defaultMatchWidth:"wide",parsePatterns:pe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:b({matchPatterns:be,defaultMatchWidth:"wide",parsePatterns:ye,defaultParseWidth:"any"}),day:b({matchPatterns:we,defaultMatchWidth:"wide",parsePatterns:Me,defaultParseWidth:"any"}),dayPeriod:b({matchPatterns:ve,defaultMatchWidth:"any",parsePatterns:xe,defaultParseWidth:"any"})},N={code:"en-US",formatDistance:H,formatLong:Q,formatRelative:Z,localize:se,match:De,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Se(e,t,n){const r=A(),a=n?.locale??r.locale??N,u=2520,o=w(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o}),[l,d]=D(n?.in,...o>0?[t,e]:[e,t]),f=V(d,l),h=(W(d)-W(l))/1e3,c=Math.round((f-h)/60);let s;if(c<2)return n?.includeSeconds?f<5?a.formatDistance("lessThanXSeconds",5,i):f<10?a.formatDistance("lessThanXSeconds",10,i):f<20?a.formatDistance("lessThanXSeconds",20,i):f<40?a.formatDistance("halfAMinute",0,i):f<60?a.formatDistance("lessThanXMinutes",1,i):a.formatDistance("xMinutes",1,i):c===0?a.formatDistance("lessThanXMinutes",1,i):a.formatDistance("xMinutes",c,i);if(c<45)return a.formatDistance("xMinutes",c,i);if(c<90)return a.formatDistance("aboutXHours",1,i);if(c<k){const m=Math.round(c/60);return a.formatDistance("aboutXHours",m,i)}else{if(c<u)return a.formatDistance("xDays",1,i);if(c<y){const m=Math.round(c/k);return a.formatDistance("xDays",m,i)}else if(c<y*2)return s=Math.round(c/y),a.formatDistance("aboutXMonths",s,i)}if(s=U(d,l),s<12){const m=Math.round(c/y);return a.formatDistance("xMonths",m,i)}else{const m=s%12,M=Math.trunc(s/12);return m<3?a.formatDistance("aboutXYears",M,i):m<9?a.formatDistance("overXYears",M,i):a.formatDistance("almostXYears",M+1,i)}}function Pe(e,t){return Se(e,z(e),t)}const ke=["years","months","weeks","days","hours","minutes","seconds"];function Ce(e,t){const r=A().locale??N,a=ke,u=" ";return r.formatDistance?a.reduce((i,l)=>{const d=`x${l.replace(/(^.)/,h=>h.toUpperCase())}`,f=e[l];return f!==void 0&&e[l]?i.concat(r.formatDistance(d,f)):i},[]).join(u):""}const We="piwi:",O=["critical","high","medium","low"];new Set(O);function Le(e){return typeof e=="string"&&e.trim().toLowerCase().startsWith(We)}function _e(e){return O.includes(e)?e:void 0}function ze(e){return({column:t})=>{const n=t.getIsSorted();return P("button",{class:"flex items-center gap-1 font-semibold select-none cursor-pointer hover:text-highlighted transition-colors",onClick:()=>t.toggleSorting()},[e,P(L,{name:n==="asc"?"i-lucide-chevron-up":n==="desc"?"i-lucide-chevron-down":"i-lucide-chevrons-up-down",class:["shrink-0 size-3.5",!n&&"opacity-40"]})])}}function Ee(e,t={}){if(e==null||e==="")return"N/A";let n;if(e instanceof Date)n=e;else{const r=typeof e=="number"?e:Number(e);!Number.isNaN(r)&&String(e).trim()!==""?n=new Date(r<1e12?r*1e3:r):n=new Date(e)}return Number.isNaN(n.getTime())?"N/A":t.dateOnly?n.toLocaleDateString():n.toLocaleString()}function $e(e){return e?Pe(new Date(e),{addSuffix:!0}):"N/A"}function je(e){if(e==null)return"N/A";const t=Math.round(Math.abs(e));return t===0?"0 seconds":(e<0?"−":"")+Ce({seconds:t/1e3})}function Re(e){if(e==null)return null;const t=Math.round(Math.abs(e)),n=e<0?"−":"";if(t<1e3)return{value:n+t,unit:"ms"};const r=t/1e3;return r<60?{value:n+Math.round(r*10)/10,unit:"s"}:{value:n+Math.round(r/60*10)/10,unit:"m"}}function Xe(e){switch(e){case"html":return"i-lucide-layout-dashboard";case"monocart":return"i-lucide-bar-chart-2";case"blob":return"i-lucide-download";default:return"i-lucide-file-text"}}function Ye(e){if(!e)return"i-lucide-globe";const t=e.toLowerCase();return t.includes("chrome")||t.includes("chromium")?"i-simple-icons-googlechrome":t.includes("firefox")?"i-simple-icons-firefoxbrowser":t.includes("safari")||t.includes("webkit")?"i-simple-icons-safari":t.includes("edge")?"i-simple-icons-microsoftedge":"i-lucide-globe"}function Ue(e){if(!e)return"#6b7280";const t=e.toLowerCase();return t.includes("chrome")||t.includes("chromium")?"#4285F4":t.includes("firefox")?"#FF7139":t.includes("safari")||t.includes("webkit")?"#007AFF":t.includes("edge")?"#0078D7":"#6b7280"}function Te(e){switch(e){case"passed":return"success";case"failed":return"error";case"timedout":return"warning";case"timedOut":return"warning";case"interrupted":return"warning";case"cancelled":return"neutral";case"initialising":return"info";case"running":return"info";case"finalizing":return"info";default:return"neutral"}}function S(e){return e==="timedOut"?"timedout":e}function Ve(e){switch(S(e)){case"passed":return"i-lucide-check-circle-2";case"failed":case"timedout":return"i-lucide-x-circle";case"didnotrun":return"i-lucide-circle-slash";case"running":case"initialising":case"finalizing":return"i-lucide-loader-circle";default:return"i-lucide-minus-circle"}}function qe(e){switch(S(e)){case"passed":return"text-emerald-600 dark:text-emerald-400";case"failed":case"timedout":return"text-rose-600 dark:text-rose-400";case"didnotrun":return"text-amber-600 dark:text-amber-400";case"running":case"initialising":case"finalizing":return"text-blue-600 dark:text-blue-400";default:return"text-zinc-400 dark:text-zinc-500"}}function He(e){const t=S(e);return t==="running"||t==="initialising"||t==="finalizing"}function Be(e){return e==="timedOut"||e==="timedout"?"failed":e==="didnotrun"?"didn't run":e==="never-run"?"never run":e}function Je(e){return e&&{open:"warning",resolved:"success",ignored:"neutral"}[e]||"neutral"}function Ge(e){switch(e){case"diagnosis-verified":return{label:"Fix verified",color:"success",icon:"i-lucide-badge-check",hint:"The tests went green and the change touched the files the diagnosis named."};case"stopped-failing":return{label:"Stopped failing",color:"info",icon:"i-lucide-check",hint:"The tests went green. Nothing corroborates which change did it."};case"regressed":return{label:"Regressed",color:"error",icon:"i-lucide-undo-2",hint:"A fix was recorded for this cluster and it did not hold — the failure came back."};default:return null}}function Qe(e){return e&&{timeout:"warning",assertion:"error","strict-mode":"info",navigation:"secondary",crash:"error",unknown:"neutral"}[e]||"neutral"}const T=["#ef4444","#f97316","#f59e0b","#84cc16","#10b981","#14b8a6","#06b6d4","#3b82f6","#6366f1","#8b5cf6","#d946ef","#ec4899"];function Ke(){return T[Math.floor(Math.random()*T.length)]}function I(e){return!e.startsWith(".")&&!e.startsWith("/")?e:e.replace(".data/storage/","")}function Ze(e,t,n="/",r=!1){const a=(n||"/").replace(/\/$/,""),u=new URLSearchParams,o=/\.[a-z0-9]+$/i.test(e);t&&!o&&u.set("contentType",t),r&&u.set("compress","1");const i=u.toString();return`${a}/api/files/${I(e)}${i?`?${i}`:""}`}function et(e,t="/",n=!1){const r=(t||"/").replace(/\/$/,""),o=`${typeof location>"u"?"":location.origin}${r}/${n?"":"api/files/"}${I(e)}`;return`${r}/trace-viewer/?trace=${encodeURIComponent(o)}`}function tt(e,t="Unknown error"){if(e&&typeof e=="object"){const n=e;return n.data?.message??n.message??t}return t}function nt(e,t){const n=t.trim().toLowerCase();return n?e.filter(r=>r.message.toLowerCase().includes(n)||r.author.toLowerCase().includes(n)||r.sha.includes(n)||r.shortSha.includes(n)):e}function rt(e){switch(e){case"added":return{icon:"i-lucide-file-plus",color:"text-green-500",badgeColor:"success"};case"removed":return{icon:"i-lucide-file-minus",color:"text-red-500",badgeColor:"error"};case"renamed":return{icon:"i-lucide-file-symlink",color:"text-blue-500",badgeColor:"info"};default:return{icon:"i-lucide-file-pen-line",color:"text-gray-400",badgeColor:"neutral"}}}const at={add:"bg-green-50 dark:bg-green-950/30 text-green-800 dark:text-green-300",remove:"bg-red-50 dark:bg-red-950/30 text-red-800 dark:text-red-300",hunk:"bg-blue-50 dark:bg-blue-950/20 text-blue-500 dark:text-blue-400",context:"text-gray-600 dark:text-gray-400"};function it(e){return e.split(`
|
|
2
2
|
`).map(t=>t.startsWith("+")&&!t.startsWith("+++")?{type:"add",text:t}:t.startsWith("-")&&!t.startsWith("---")?{type:"remove",text:t}:t.startsWith("@@")?{type:"hunk",text:t}:{type:"context",text:t})}const Fe="\x1B",Ae={30:"#000000",31:"#dc2626",32:"#16a34a",33:"#d97706",34:"#2563eb",35:"#9333ea",36:"#0891b2",37:"#9ca3af"},Ne={40:"#000000",41:"#dc2626",42:"#16a34a",43:"#d97706",44:"#2563eb",45:"#9333ea",46:"#0891b2",47:"#9ca3af"},F=new RegExp(`${Fe}\\[([0-9;]*)m`,"g");function Oe(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function ot(e){const t=[];let n=0,r,a,u=!1,o=!1,i=!1,l=!1;const d=c=>{if(!c)return;const s=[];u&&s.push("font-weight:600"),o&&s.push("opacity:.7"),i&&s.push("font-style:italic"),l&&s.push("text-decoration:underline"),r&&s.push(`color:${r}`),a&&s.push(`background:${a}`);const m=Oe(c);t.push(s.length?`<span style="${s.join(";")}">${m}</span>`:m)},f=c=>{for(const s of c)s===0?(r=void 0,a=void 0,u=!1,o=!1,i=!1,l=!1):s===1?u=!0:s===2?o=!0:s===3?i=!0:s===4?l=!0:s===22?(u=!1,o=!1):s===23?i=!1:s===24?l=!1:s>=30&&s<=37?r=Ae[s]:s===39?r=void 0:s>=40&&s<=47?a=Ne[s]:s===49&&(a=void 0)};let h;for(;(h=F.exec(e))!==null;){d(e.slice(n,h.index)),n=F.lastIndex;const c=h[1]?h[1].split(";").map(Number):[0];f(c)}return d(e.slice(n)),t.join("")}function st(e,t=120){if(!e)return"";const n=e.replace(/\n/g," · ");return n.length<=t?n:n.slice(0,t)+"…"}function ut(e){return e.totalTests>0?Math.round(e.passedTests/e.totalTests*100):0}function ct(e){return e==="flaky"?"warning":e==="never-run"?"neutral":e==="didnotrun"?"warning":Te(e)}function lt(e){switch(e.toUpperCase()){case"GET":return"info";case"POST":return"success";case"DELETE":return"error";case"PUT":case"PATCH":return"warning";default:return"neutral"}}function dt(e){return!e||e<=0?"neutral":e>=500?"error":e>=400?"warning":"success"}export{Ve as A,He as B,Ye as C,Ue as D,Ke as E,ut as F,Re as G,je as a,Je as b,Qe as c,Ge as d,tt as e,$e as f,nt as g,st as h,ze as i,Te as j,Be as k,ct as l,Le as m,Ze as n,lt as o,Ee as p,dt as q,ot as r,rt as s,_e as t,at as u,it as v,et as w,I as x,Xe as y,qe as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as Ae}from"./C9p0YCAi.js";import{_ as Re}from"./BTvE9qca.js";import{_ as Fe,a as Oe}from"./B_mN5eMV.js";import{d as De,u as Me,b as ze,w as le,e as Be,c as m,j as l,g as d,F as T,D as Le,h as M,o as i,i as u,k as o,f as w,y as z,t as h,s as qe,m as j,v as _,_ as He,l as K,p as We,E as Ke,r as f}from"./h49q_GXF.js";import{_ as Ge}from"./DHUT-BKj.js";import{_ as Je}from"./BVN50jIb.js";import{_ as Qe}from"./DLNNAYfu.js";import{_ as Ye}from"./CScusXhF.js";import{_ as Xe}from"./9N6hSApy.js";import{_ as Ze}from"./BKJetfRH.js";import{_ as et}from"./DDN2tt0a.js";import{_ as tt}from"./jjOqY9Tv.js";import{b as at,L as lt}from"./DWwiVTZX.js";import{u as ot}from"./Cf52zHyB.js";import{u as oe}from"./Cd8r0xk5.js";import{e as A}from"./CD3R-ggS.js";import"./BhH0TNTi.js";import"./BtSJxOdh.js";import"./BjaRappk.js";import"./CWoSSKhQ.js";import"./D4UlSVir.js";import"./xbO0VmDX.js";import"./DGnQ69wW.js";const nt={class:"p-4 space-y-4"},st={key:2,class:"divide-y divide-gray-200 dark:divide-gray-800"},rt={class:"min-w-0 space-y-1"},it={class:"flex items-center gap-2 flex-wrap"},ut={class:"font-mono text-sm font-medium"},dt={class:"text-xs text-gray-500 dark:text-gray-400 font-mono truncate"},ct={key:0},mt={class:"text-xs text-gray-500 dark:text-gray-400 truncate"},pt={key:0,class:"text-xs text-gray-500 dark:text-gray-400"},ft={class:"flex items-center gap-1 shrink-0"},vt={class:"space-y-4"},gt={class:"border border-dashed border-gray-300 dark:border-gray-700 rounded-lg p-3 space-y-2"},ht={key:0,class:"space-y-2"},_t={class:"flex items-center gap-2 flex-wrap"},bt={key:1,class:"text-xs text-gray-500"},xt={key:1,class:"text-xs text-gray-500 dark:text-gray-400"},yt={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},kt={key:0,class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},wt={class:"space-y-2"},Vt={class:"space-y-2"},Pt={class:"text-xs text-gray-500 w-4"},Ct={class:"space-y-2"},Ut={class:"font-mono"},Zt=De({__name:"test-functions",async setup(It){let x,R;const P=Me().params.id,p=ze(),{aiStatus:ne}=ot(),{data:F}=([x,R]=le(()=>oe(`/api/projects/${P}`,"$hHDWk2vBQV")),x=await x,R(),x),{data:se,refresh:G,status:re}=([x,R]=le(()=>oe(`/api/projects/${P}/test-functions`,"$l0yitekV_H")),x=await x,R(),x);Be(M(()=>({title:`Test functions — ${F.value?.label||F.value?.name||"Project"} — Piwi Dashboard`})));const B=M(()=>se.value?.testFunctions??[]),ie=[{label:"Page-object method",value:"page-object-method"},{label:"Helper function",value:"helper"},{label:"Fixture",value:"fixture"}],ue=[{label:"string",value:"string"},{label:"number",value:"number"},{label:"boolean",value:"boolean"},{label:"object",value:"object"}],de=[{label:"goto",value:"goto"},{label:"click",value:"click"},{label:"fill",value:"fill"},{label:"check",value:"check"},{label:"uncheck",value:"uncheck"},{label:"selectOption",value:"selectOption"},{label:"press",value:"press"},{label:"assertVisible",value:"assertVisible"}],ce=[{label:"element text",value:"text"},{label:"field value",value:"value"},{label:"test id",value:"testId"}],V=f(!1),L=f(!1),C=f(null);function O(){return{name:"",kind:"page-object-method",module:"",receiver:"",importName:"",urlPattern:"",params:[],steps:[{action:"click",role:"",name:"",testId:""}],paramSources:[]}}const a=f(O()),S=f(!1),y=f(""),q=f(!1),U=f(!1),k=f(null),N=f(null),I=f(""),H=f(!1),J=M(()=>U.value&&k.value!=null&&k.value<lt),me=M(()=>new Set(a.value.params.filter(n=>n.type==="object"&&n.name.trim()).map(n=>n.name.trim())));function Q(){S.value=!1,y.value="",I.value="",U.value=!1,k.value=null,N.value=null}function pe(){a.value=O(),C.value=null,Q(),V.value=!0}function fe(n){const e=n.entry;a.value={name:e.name,kind:e.kind,module:e.module,receiver:e.receiver??"",importName:e.importName??"",urlPattern:e.urlPattern??"",params:e.params.map(s=>({name:s.name,type:s.type,fields:(s.fields??[]).join(", ")})),steps:e.steps.map(s=>({action:s.action,role:s.target.role??"",name:s.target.name??"",testId:s.target.testId??""})),paramSources:e.paramSources.map(s=>({param:s.param,path:s.path??"",stepIndex:s.stepIndex,from:s.from}))},a.value.steps.length===0&&(a.value.steps=O().steps),C.value=n.id,Q(),V.value=!0}function Y(n){a.value.name=n.name,a.value.kind=n.kind,a.value.receiver=n.receiver??"",a.value.importName=n.importName??"",a.value.params=n.params.map(e=>({name:e.name,type:e.type,fields:(e.fields??[]).join(", ")})),a.value.steps=n.steps.map(e=>({action:e.action,role:e.target.role??"",name:e.target.name??"",testId:e.target.testId??""})),a.value.steps.length===0&&(a.value.steps=O().steps),a.value.paramSources=n.paramSources.map(e=>({param:e.param,path:e.path??"",stepIndex:e.stepIndex,from:e.from})),U.value=!0,k.value=n.confidence,N.value=n.notes}async function ve(){if(!y.value.trim()){p.add({title:"Paste some function code first",color:"error"});return}q.value=!0;try{const{proposal:n}=await $fetch(`/api/projects/${P}/test-functions/extract`,{method:"POST",body:{code:y.value}});Y(n),p.add({title:"Extracted — review the fields below before saving",color:"success"})}catch(n){p.add({title:"Extraction failed",description:A(n),color:"error"})}finally{q.value=!1}}async function ge(){if(!y.value.trim()){p.add({title:"Paste some function code first",color:"error"});return}try{await navigator.clipboard.writeText(at(y.value)),p.add({title:"Prompt copied",description:"Paste it into your AI chat, then paste the reply below.",color:"success"})}catch(n){p.add({title:"Failed to copy the prompt",description:A(n),color:"error"})}}async function he(){if(!I.value.trim()){p.add({title:"Paste the AI response first",color:"error"});return}H.value=!0;try{const{proposal:n}=await $fetch(`/api/projects/${P}/test-functions/validate-proposal`,{method:"POST",body:{responseText:I.value}});Y(n),p.add({title:"Applied — review the fields below before saving",color:"success"})}catch(n){p.add({title:"Couldn't apply that response",description:A(n),color:"error"})}finally{H.value=!1}}function _e(){a.value.params.push({name:"",type:"string",fields:""})}function be(n){a.value.params.splice(n,1)}function xe(){a.value.steps.push({action:"click",role:"",name:"",testId:""})}function ye(n){a.value.steps.length<=1||a.value.steps.splice(n,1)}function ke(){a.value.paramSources.push({param:"",path:"",stepIndex:0,from:"value"})}function we(n){a.value.paramSources.splice(n,1)}async function Ve(){if(!a.value.name.trim()){p.add({title:"Name is required",color:"error"});return}if(!a.value.module.trim()){p.add({title:"Module is required",color:"error"});return}L.value=!0;const n={name:a.value.name.trim(),kind:a.value.kind,module:a.value.module.trim(),receiver:a.value.kind==="page-object-method"&&a.value.receiver.trim()||null,importName:a.value.kind==="page-object-method"&&a.value.importName.trim()||null,urlPattern:a.value.urlPattern.trim()||null,params:a.value.params.filter(s=>s.name.trim()).map(s=>({name:s.name.trim(),type:s.type,...s.type==="object"?{fields:s.fields.split(",").map(W=>W.trim()).filter(Boolean)}:{}})),steps:a.value.steps.map(s=>({action:s.action,target:{role:s.role.trim()||null,name:s.name.trim()||null,testId:s.testId.trim()||null}})),paramSources:a.value.paramSources.filter(s=>s.param.trim()).map(s=>({param:s.param.trim(),path:s.path.trim()||null,stepIndex:s.stepIndex,from:s.from})),source:U.value?"ai-extracted":void 0,confidence:U.value?k.value??void 0:void 0},e=C.value!=null;try{e?await $fetch(`/api/test-functions/${C.value}`,{method:"PUT",body:n}):await $fetch(`/api/projects/${P}/test-functions`,{method:"POST",body:n}),p.add({title:e?"Function updated":"Function added",color:"success"}),V.value=!1,await G()}catch(s){p.add({title:e?"Failed to update function":"Failed to add function",description:A(s),color:"error"})}finally{L.value=!1}}const D=f(null),E=f(!1);function Pe(n){D.value=n,E.value=!0}async function Ce(){const n=D.value;if(n){E.value=!1;try{await $fetch(`/api/test-functions/${n.id}`,{method:"DELETE"}),p.add({title:"Function removed",color:"success"}),await G()}catch(e){p.add({title:"Failed to remove function",description:A(e),color:"error"})}finally{D.value=null}}}function Ue(n){return n.entry.steps.map(e=>`${e.action}(${e.target.role??e.target.testId??e.target.name??"?"})`).join(" → ")}return(n,e)=>{const s=Ae,W=Re,Ie=Oe,c=He,$e=Ge,je=Je,X=qe,Se=Qe,Ne=Fe,Z=We,ee=Ye,Ee=Xe,v=Ke,b=Ze,$=et,te=tt,Te=Le;return i(),m(T,null,[l(Ne,{id:"project-test-functions"},{header:d(()=>[l(Ie,null,{leading:d(()=>[l(s),l(W,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects",to:"/projects"},{label:o(F)?.label||o(F)?.name||"Project",to:`/projects/${o(P)}`},{label:"Test functions"}]},null,8,["items"])]),_:1})]),body:d(()=>[u("div",nt,[l(Se,{title:"Test function catalog",icon:"i-lucide-function-square",count:o(B).length||null,subtitle:"Page-object methods and helpers the Piwi Picker extension matches a recording against, to generate calls to your own code instead of raw locator lines."},{actions:d(()=>[l(c,{label:"Add function",icon:"i-lucide-plus",size:"sm",onClick:pe})]),default:d(()=>[o(re)==="pending"?(i(),w($e,{key:0})):o(B).length===0?(i(),w(je,{key:1,icon:"i-lucide-function-square",text:"No functions registered yet — add one, or extract one from a recording in the extension."})):(i(),m("div",st,[(i(!0),m(T,null,z(o(B),t=>(i(),m("div",{key:t.id,class:"py-3 flex items-start justify-between gap-3"},[u("div",rt,[u("div",it,[u("span",ut,h(t.name),1),l(X,{color:"neutral",variant:"subtle",size:"sm"},{default:d(()=>[j(h(t.kind),1)]),_:2},1024),t.source!=="manual"?(i(),w(X,{key:0,color:"primary",variant:"subtle",size:"sm"},{default:d(()=>[j(h(t.source),1)]),_:2},1024)):_("",!0)]),u("div",dt,[j(h(t.module),1),t.receiver?(i(),m("span",ct,"#"+h(t.receiver),1)):_("",!0)]),u("div",mt,h(Ue(t)),1),t.urlPattern?(i(),m("div",pt,[e[13]||(e[13]=j(" on ",-1)),u("code",null,h(t.urlPattern),1)])):_("",!0)]),u("div",ft,[l(c,{icon:"i-lucide-pencil",color:"neutral",variant:"ghost",size:"sm","aria-label":`Edit ${t.name}`,onClick:g=>fe(t)},null,8,["aria-label","onClick"]),l(c,{icon:"i-lucide-trash-2",color:"error",variant:"ghost",size:"sm","aria-label":`Remove ${t.name}`,onClick:g=>Pe(t)},null,8,["aria-label","onClick"])])]))),128))]))]),_:1},8,["count"])])]),_:1}),l(Te,null,{default:d(()=>[l(te,{open:o(V),"onUpdate:open":e[10]||(e[10]=t=>K(V)?V.value=t:null),title:o(C)==null?"Add test function":"Edit test function",ui:{content:"max-w-2xl"}},{body:d(()=>[u("div",vt,[u("div",gt,[u("button",{type:"button",class:"flex items-center gap-2 text-sm font-medium w-full text-left",onClick:e[0]||(e[0]=t=>S.value=!o(S))},[l(Z,{name:"i-lucide-sparkles",class:"text-primary"}),e[14]||(e[14]=u("span",null,"Paste from code (AI)",-1)),l(Z,{name:o(S)?"i-lucide-chevron-up":"i-lucide-chevron-down",class:"ml-auto text-gray-400"},null,8,["name"])]),o(S)?(i(),m("div",ht,[e[15]||(e[15]=u("p",{class:"text-xs text-gray-500 dark:text-gray-400"}," Paste a page-object method or helper function's source — the fields below are filled in from it, for you to review and edit before saving. Module and URL pattern aren't inferred; fill those in yourself. ",-1)),l(ee,{modelValue:o(y),"onUpdate:modelValue":e[1]||(e[1]=t=>K(y)?y.value=t:null),rows:8,placeholder:`async login(username: string, password: string) {
|
|
1
|
+
import{_ as Ae}from"./Cu2Q4iPh.js";import{_ as Re}from"./Qo6oszaF.js";import{_ as Fe,a as Oe}from"./opyDpgSw.js";import{d as De,u as Me,b as ze,w as le,e as Be,c as m,j as l,g as d,F as T,D as Le,h as M,o as i,i as u,k as o,f as w,y as z,t as h,s as qe,m as j,v as _,_ as He,l as K,p as We,E as Ke,r as f}from"./C5TrTuWv.js";import{_ as Ge}from"./DcLbz6DV.js";import{_ as Je}from"./BFxvHlO9.js";import{_ as Qe}from"./DMAiMrNr.js";import{_ as Ye}from"./BfA6lfg4.js";import{_ as Xe}from"./BBhrClA9.js";import{_ as Ze}from"./DH5H1DJh.js";import{_ as et}from"./Ce5_Tq63.js";import{_ as tt}from"./6Z_ZwH8I.js";import{b as at,L as lt}from"./DWwiVTZX.js";import{u as ot}from"./CGHV0Y2d.js";import{u as oe}from"./T5UuMUxA.js";import{e as A}from"./DMtrFQqi.js";import"./BCGljaM0.js";import"./B69RP95P.js";import"./BjaRappk.js";import"./C8Paf_V1.js";import"./D_y2VS8k.js";import"./DaNC-xl1.js";import"./DGnQ69wW.js";const nt={class:"p-4 space-y-4"},st={key:2,class:"divide-y divide-gray-200 dark:divide-gray-800"},rt={class:"min-w-0 space-y-1"},it={class:"flex items-center gap-2 flex-wrap"},ut={class:"font-mono text-sm font-medium"},dt={class:"text-xs text-gray-500 dark:text-gray-400 font-mono truncate"},ct={key:0},mt={class:"text-xs text-gray-500 dark:text-gray-400 truncate"},pt={key:0,class:"text-xs text-gray-500 dark:text-gray-400"},ft={class:"flex items-center gap-1 shrink-0"},vt={class:"space-y-4"},gt={class:"border border-dashed border-gray-300 dark:border-gray-700 rounded-lg p-3 space-y-2"},ht={key:0,class:"space-y-2"},_t={class:"flex items-center gap-2 flex-wrap"},bt={key:1,class:"text-xs text-gray-500"},xt={key:1,class:"text-xs text-gray-500 dark:text-gray-400"},yt={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},kt={key:0,class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},wt={class:"space-y-2"},Vt={class:"space-y-2"},Pt={class:"text-xs text-gray-500 w-4"},Ct={class:"space-y-2"},Ut={class:"font-mono"},Zt=De({__name:"test-functions",async setup(It){let x,R;const P=Me().params.id,p=ze(),{aiStatus:ne}=ot(),{data:F}=([x,R]=le(()=>oe(`/api/projects/${P}`,"$hHDWk2vBQV")),x=await x,R(),x),{data:se,refresh:G,status:re}=([x,R]=le(()=>oe(`/api/projects/${P}/test-functions`,"$l0yitekV_H")),x=await x,R(),x);Be(M(()=>({title:`Test functions — ${F.value?.label||F.value?.name||"Project"} — Piwi Dashboard`})));const B=M(()=>se.value?.testFunctions??[]),ie=[{label:"Page-object method",value:"page-object-method"},{label:"Helper function",value:"helper"},{label:"Fixture",value:"fixture"}],ue=[{label:"string",value:"string"},{label:"number",value:"number"},{label:"boolean",value:"boolean"},{label:"object",value:"object"}],de=[{label:"goto",value:"goto"},{label:"click",value:"click"},{label:"fill",value:"fill"},{label:"check",value:"check"},{label:"uncheck",value:"uncheck"},{label:"selectOption",value:"selectOption"},{label:"press",value:"press"},{label:"assertVisible",value:"assertVisible"}],ce=[{label:"element text",value:"text"},{label:"field value",value:"value"},{label:"test id",value:"testId"}],V=f(!1),L=f(!1),C=f(null);function O(){return{name:"",kind:"page-object-method",module:"",receiver:"",importName:"",urlPattern:"",params:[],steps:[{action:"click",role:"",name:"",testId:""}],paramSources:[]}}const a=f(O()),S=f(!1),y=f(""),q=f(!1),U=f(!1),k=f(null),N=f(null),I=f(""),H=f(!1),J=M(()=>U.value&&k.value!=null&&k.value<lt),me=M(()=>new Set(a.value.params.filter(n=>n.type==="object"&&n.name.trim()).map(n=>n.name.trim())));function Q(){S.value=!1,y.value="",I.value="",U.value=!1,k.value=null,N.value=null}function pe(){a.value=O(),C.value=null,Q(),V.value=!0}function fe(n){const e=n.entry;a.value={name:e.name,kind:e.kind,module:e.module,receiver:e.receiver??"",importName:e.importName??"",urlPattern:e.urlPattern??"",params:e.params.map(s=>({name:s.name,type:s.type,fields:(s.fields??[]).join(", ")})),steps:e.steps.map(s=>({action:s.action,role:s.target.role??"",name:s.target.name??"",testId:s.target.testId??""})),paramSources:e.paramSources.map(s=>({param:s.param,path:s.path??"",stepIndex:s.stepIndex,from:s.from}))},a.value.steps.length===0&&(a.value.steps=O().steps),C.value=n.id,Q(),V.value=!0}function Y(n){a.value.name=n.name,a.value.kind=n.kind,a.value.receiver=n.receiver??"",a.value.importName=n.importName??"",a.value.params=n.params.map(e=>({name:e.name,type:e.type,fields:(e.fields??[]).join(", ")})),a.value.steps=n.steps.map(e=>({action:e.action,role:e.target.role??"",name:e.target.name??"",testId:e.target.testId??""})),a.value.steps.length===0&&(a.value.steps=O().steps),a.value.paramSources=n.paramSources.map(e=>({param:e.param,path:e.path??"",stepIndex:e.stepIndex,from:e.from})),U.value=!0,k.value=n.confidence,N.value=n.notes}async function ve(){if(!y.value.trim()){p.add({title:"Paste some function code first",color:"error"});return}q.value=!0;try{const{proposal:n}=await $fetch(`/api/projects/${P}/test-functions/extract`,{method:"POST",body:{code:y.value}});Y(n),p.add({title:"Extracted — review the fields below before saving",color:"success"})}catch(n){p.add({title:"Extraction failed",description:A(n),color:"error"})}finally{q.value=!1}}async function ge(){if(!y.value.trim()){p.add({title:"Paste some function code first",color:"error"});return}try{await navigator.clipboard.writeText(at(y.value)),p.add({title:"Prompt copied",description:"Paste it into your AI chat, then paste the reply below.",color:"success"})}catch(n){p.add({title:"Failed to copy the prompt",description:A(n),color:"error"})}}async function he(){if(!I.value.trim()){p.add({title:"Paste the AI response first",color:"error"});return}H.value=!0;try{const{proposal:n}=await $fetch(`/api/projects/${P}/test-functions/validate-proposal`,{method:"POST",body:{responseText:I.value}});Y(n),p.add({title:"Applied — review the fields below before saving",color:"success"})}catch(n){p.add({title:"Couldn't apply that response",description:A(n),color:"error"})}finally{H.value=!1}}function _e(){a.value.params.push({name:"",type:"string",fields:""})}function be(n){a.value.params.splice(n,1)}function xe(){a.value.steps.push({action:"click",role:"",name:"",testId:""})}function ye(n){a.value.steps.length<=1||a.value.steps.splice(n,1)}function ke(){a.value.paramSources.push({param:"",path:"",stepIndex:0,from:"value"})}function we(n){a.value.paramSources.splice(n,1)}async function Ve(){if(!a.value.name.trim()){p.add({title:"Name is required",color:"error"});return}if(!a.value.module.trim()){p.add({title:"Module is required",color:"error"});return}L.value=!0;const n={name:a.value.name.trim(),kind:a.value.kind,module:a.value.module.trim(),receiver:a.value.kind==="page-object-method"&&a.value.receiver.trim()||null,importName:a.value.kind==="page-object-method"&&a.value.importName.trim()||null,urlPattern:a.value.urlPattern.trim()||null,params:a.value.params.filter(s=>s.name.trim()).map(s=>({name:s.name.trim(),type:s.type,...s.type==="object"?{fields:s.fields.split(",").map(W=>W.trim()).filter(Boolean)}:{}})),steps:a.value.steps.map(s=>({action:s.action,target:{role:s.role.trim()||null,name:s.name.trim()||null,testId:s.testId.trim()||null}})),paramSources:a.value.paramSources.filter(s=>s.param.trim()).map(s=>({param:s.param.trim(),path:s.path.trim()||null,stepIndex:s.stepIndex,from:s.from})),source:U.value?"ai-extracted":void 0,confidence:U.value?k.value??void 0:void 0},e=C.value!=null;try{e?await $fetch(`/api/test-functions/${C.value}`,{method:"PUT",body:n}):await $fetch(`/api/projects/${P}/test-functions`,{method:"POST",body:n}),p.add({title:e?"Function updated":"Function added",color:"success"}),V.value=!1,await G()}catch(s){p.add({title:e?"Failed to update function":"Failed to add function",description:A(s),color:"error"})}finally{L.value=!1}}const D=f(null),E=f(!1);function Pe(n){D.value=n,E.value=!0}async function Ce(){const n=D.value;if(n){E.value=!1;try{await $fetch(`/api/test-functions/${n.id}`,{method:"DELETE"}),p.add({title:"Function removed",color:"success"}),await G()}catch(e){p.add({title:"Failed to remove function",description:A(e),color:"error"})}finally{D.value=null}}}function Ue(n){return n.entry.steps.map(e=>`${e.action}(${e.target.role??e.target.testId??e.target.name??"?"})`).join(" → ")}return(n,e)=>{const s=Ae,W=Re,Ie=Oe,c=He,$e=Ge,je=Je,X=qe,Se=Qe,Ne=Fe,Z=We,ee=Ye,Ee=Xe,v=Ke,b=Ze,$=et,te=tt,Te=Le;return i(),m(T,null,[l(Ne,{id:"project-test-functions"},{header:d(()=>[l(Ie,null,{leading:d(()=>[l(s),l(W,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects",to:"/projects"},{label:o(F)?.label||o(F)?.name||"Project",to:`/projects/${o(P)}`},{label:"Test functions"}]},null,8,["items"])]),_:1})]),body:d(()=>[u("div",nt,[l(Se,{title:"Test function catalog",icon:"i-lucide-function-square",count:o(B).length||null,subtitle:"Page-object methods and helpers the Piwi Picker extension matches a recording against, to generate calls to your own code instead of raw locator lines."},{actions:d(()=>[l(c,{label:"Add function",icon:"i-lucide-plus",size:"sm",onClick:pe})]),default:d(()=>[o(re)==="pending"?(i(),w($e,{key:0})):o(B).length===0?(i(),w(je,{key:1,icon:"i-lucide-function-square",text:"No functions registered yet — add one, or extract one from a recording in the extension."})):(i(),m("div",st,[(i(!0),m(T,null,z(o(B),t=>(i(),m("div",{key:t.id,class:"py-3 flex items-start justify-between gap-3"},[u("div",rt,[u("div",it,[u("span",ut,h(t.name),1),l(X,{color:"neutral",variant:"subtle",size:"sm"},{default:d(()=>[j(h(t.kind),1)]),_:2},1024),t.source!=="manual"?(i(),w(X,{key:0,color:"primary",variant:"subtle",size:"sm"},{default:d(()=>[j(h(t.source),1)]),_:2},1024)):_("",!0)]),u("div",dt,[j(h(t.module),1),t.receiver?(i(),m("span",ct,"#"+h(t.receiver),1)):_("",!0)]),u("div",mt,h(Ue(t)),1),t.urlPattern?(i(),m("div",pt,[e[13]||(e[13]=j(" on ",-1)),u("code",null,h(t.urlPattern),1)])):_("",!0)]),u("div",ft,[l(c,{icon:"i-lucide-pencil",color:"neutral",variant:"ghost",size:"sm","aria-label":`Edit ${t.name}`,onClick:g=>fe(t)},null,8,["aria-label","onClick"]),l(c,{icon:"i-lucide-trash-2",color:"error",variant:"ghost",size:"sm","aria-label":`Remove ${t.name}`,onClick:g=>Pe(t)},null,8,["aria-label","onClick"])])]))),128))]))]),_:1},8,["count"])])]),_:1}),l(Te,null,{default:d(()=>[l(te,{open:o(V),"onUpdate:open":e[10]||(e[10]=t=>K(V)?V.value=t:null),title:o(C)==null?"Add test function":"Edit test function",ui:{content:"max-w-2xl"}},{body:d(()=>[u("div",vt,[u("div",gt,[u("button",{type:"button",class:"flex items-center gap-2 text-sm font-medium w-full text-left",onClick:e[0]||(e[0]=t=>S.value=!o(S))},[l(Z,{name:"i-lucide-sparkles",class:"text-primary"}),e[14]||(e[14]=u("span",null,"Paste from code (AI)",-1)),l(Z,{name:o(S)?"i-lucide-chevron-up":"i-lucide-chevron-down",class:"ml-auto text-gray-400"},null,8,["name"])]),o(S)?(i(),m("div",ht,[e[15]||(e[15]=u("p",{class:"text-xs text-gray-500 dark:text-gray-400"}," Paste a page-object method or helper function's source — the fields below are filled in from it, for you to review and edit before saving. Module and URL pattern aren't inferred; fill those in yourself. ",-1)),l(ee,{modelValue:o(y),"onUpdate:modelValue":e[1]||(e[1]=t=>K(y)?y.value=t:null),rows:8,placeholder:`async login(username: string, password: string) {
|
|
2
2
|
await this.page.getByRole('textbox', { name: 'Username' }).fill(username);
|
|
3
3
|
await this.page.getByRole('textbox', { name: 'Password' }).fill(password);
|
|
4
4
|
await this.page.getByRole('button', { name: 'Log in' }).click();
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as ss}from"./Cu2Q4iPh.js";import{d as me,o as s,c as a,j as l,p as ke,i as n,z as ns,f as w,K as at,g as i,m as _,t as o,k as e,y as oe,_ as Ce,F as O,v as g,A as ot,b as vt,B as kt,ak as as,P as pt,l as Pe,al as gt,s as _e,G as Oe,D as lt,q as Y,h as I,r as W,L as Ne,R as we,C as Ue,n as Xe,H as Qe,J as de,am as xt,E as os,I as ls,u as Ke,w as Le,ah as is,ad as bt,a as rs,e as us}from"./C5TrTuWv.js";import{_ as wt}from"./DuOH5jcQ.js";import{_ as cs}from"./Qo6oszaF.js";import{_ as ds}from"./Drw8yQg6.js";import{_ as ms,a as fs}from"./opyDpgSw.js";import{_ as ps,a as gs,b as xs,c as ys}from"./Dz6g_QJT.js";import{_ as hs}from"./VACXezo0.js";import{_ as We}from"./LwoTUb-r.js";import{_ as Ie}from"./B69RP95P.js";import{_ as _t}from"./BvAfKk6C.js";import{_ as vs}from"./CyLcEDg2.js";import{_ as ks}from"./BakMHV79.js";import{y as $t,n as Ct,p as Tt,f as it,a as bs,h as Rt,m as ws,z as tt,A as st,k as De,B as zt,j as nt,b as _s,c as $s,i as ue}from"./DMtrFQqi.js";import{f as Ge}from"./D-c8ZSws.js";import{_ as Cs}from"./BWMSVSNM.js";import{_ as rt}from"./C8Paf_V1.js";import{_ as Ts}from"./CX_G-FHC.js";import{b as St}from"./CX5Q0dZ8.js";import{a as ut,u as Ee}from"./T5UuMUxA.js";import{_ as Rs}from"./Ce5_Tq63.js";import{_ as It}from"./Cf4MFOuf.js";import{_ as zs}from"./B8H4XydJ.js";import{_ as Ft}from"./D0Kop4bS.js";import{_ as Ss}from"./CMuzkARi.js";import{_ as Pt}from"./98sAB6Gu.js";import{u as Is}from"./DzZpIs4W.js";import{_ as Fs}from"./DcR0Mmdl.js";import{_ as jt}from"./DcLbz6DV.js";import{_ as Dt}from"./BFxvHlO9.js";import{_ as Ps}from"./DMAiMrNr.js";import{_ as ct}from"./Bg93Rnts.js";import{_ as Nt}from"./DbmGeOus.js";import{_ as js}from"./D8vguZKg.js";import{_ as Bt}from"./6Z_ZwH8I.js";import{_ as Ds}from"./DvEsAuE9.js";import{_ as Ns}from"./Cq33x7yV.js";import{_ as Bs}from"./BBhrClA9.js";import{u as Ms}from"./BevElZaK.js";import{_ as As}from"./CD8ZzAFC.js";import{u as Us,s as Ls}from"./Bme1UkOl.js";import"./BCGljaM0.js";import"./DhYznn-U.js";import"./DEvYVl9M.js";import"./BjaRappk.js";import"./D7W_4Sqc.js";import"./DH5H1DJh.js";import"./D_y2VS8k.js";import"./C-XjxjG5.js";import"./DaNC-xl1.js";import"./03FA4-rI.js";import"./DMsm-RGQ.js";import"./B1LUinhp.js";import"./Bn0jaRxI.js";import"./BfA6lfg4.js";import"./CpcrljrH.js";import"./BrUBOQ0y.js";import"./V9p3z39z.js";import"./CGHV0Y2d.js";import"./opwuUqHG.js";const Es={key:0,class:"inline-flex items-center gap-2 text-info"},Os={type:"button",class:"inline-flex items-center gap-1.5 rounded-md px-1.5 py-0.5 -my-0.5 -ml-1.5 text-muted hover:text-default hover:bg-elevated/60 transition-colors cursor-pointer",title:"Stored reports & artifacts"},Ks={class:"tabular-nums whitespace-nowrap"},Ws={class:"text-dimmed"},Hs={class:"p-3 w-72 space-y-2"},Vs={class:"text-xs font-medium text-muted inline-flex items-center gap-1"},Gs={class:"text-xs tabular-nums text-dimmed shrink-0"},Xs={key:0,class:"flex items-center justify-between gap-2 text-sm border-t border-default pt-2"},qs={class:"truncate"},Ys={class:"text-xs tabular-nums text-dimmed shrink-0"},Js=me({__name:"RunStorageChip",props:{storageStats:{},reports:{},finalizing:{type:Boolean}},setup(t){const y=ot();return(v,z)=>{const T=ke,m=ns,R=Ie,u=Ce,h=at;return t.finalizing?(s(),a("div",Es,[l(T,{name:"i-lucide-upload",class:"size-3.5 shrink-0 animate-pulse"}),z[0]||(z[0]=n("span",{class:"text-xs font-medium whitespace-nowrap"},"Uploading reports & traces…",-1)),l(m,{value:null,size:"sm",color:"info",class:"w-24 rounded-full animate-pulse"})])):t.storageStats?.totalFiles?(s(),w(h,{key:1},{content:i(()=>[n("div",Hs,[n("p",Vs,[z[1]||(z[1]=_(" Stored artifacts ",-1)),l(R,{topic:"run.reports"})]),(s(!0),a(O,null,oe(t.reports,N=>(s(),a("div",{key:`${N.type}-${N.path}`,class:"flex items-center justify-between gap-2 min-w-0"},[l(u,{href:("fileApiUrl"in v?v.fileApiUrl:e(Ct))(N.path,null,e(y).app?.baseURL),icon:("reportIcon"in v?v.reportIcon:e($t))(N.type),target:"_blank",size:"xs",variant:"outline",class:"min-w-0",ui:{label:"truncate"}},{default:i(()=>[_(o(N.label),1)]),_:2},1032,["href","icon"]),n("span",Gs,o(("formatBytes"in v?v.formatBytes:e(Ge))(N.size)),1)]))),128)),t.storageStats.testCaseFilesCount>0?(s(),a("div",Xs,[n("span",qs,"Test files ("+o(t.storageStats.testCaseFilesCount)+")",1),n("span",Ys,o(("formatBytes"in v?v.formatBytes:e(Ge))(t.storageStats.testCaseFilesSize)),1)])):g("",!0)])]),default:i(()=>[n("button",Os,[l(T,{name:"i-lucide-database",class:"size-3.5 text-dimmed shrink-0"}),n("span",Ks,[_(o(("formatBytes"in v?v.formatBytes:e(Ge))(t.storageStats.totalSize))+" ",1),n("span",Ws,"· "+o(t.storageStats.totalFiles)+" file"+o(t.storageStats.totalFiles===1?"":"s"),1)]),l(T,{name:"i-lucide-chevron-down",class:"size-3 text-dimmed shrink-0"})])]),_:1})):g("",!0)}}}),Zs=Object.assign(Js,{__name:"RunStorageChip"}),Qs={class:"flex items-center gap-3 flex-1 min-w-0 justify-between"},en={class:"flex items-center gap-3 min-w-0"},tn={class:"text-sm font-semibold truncate flex items-center gap-1"},sn={class:"flex items-center gap-3 shrink-0 max-sm:hidden"},nn={class:"text-xs text-zinc-500 tabular-nums whitespace-nowrap"},an={class:"text-zinc-700 dark:text-zinc-300"},on={class:"text-xs text-emerald-600 dark:text-emerald-400 tabular-nums whitespace-nowrap"},ln={class:"text-xs text-rose-600 dark:text-rose-400 tabular-nums whitespace-nowrap"},rn={class:"text-xs text-zinc-500 tabular-nums whitespace-nowrap"},un={class:"text-xs text-amber-600 dark:text-amber-400 tabular-nums whitespace-nowrap",title:"Tests that never ran (maxFailures cutoff or a serial-group failure)"},cn={class:"text-xs text-orange-600 dark:text-orange-400 tabular-nums whitespace-nowrap"},dn={class:"@container"},mn={class:"space-y-3"},fn={class:"flex items-start justify-between gap-x-3 gap-y-2 flex-wrap pr-8"},pn={class:"min-w-0 flex-1 basis-64"},gn={class:"flex items-center gap-2 flex-wrap"},xn={class:"text-base font-bold shrink-0 flex items-center gap-1"},yn={class:"mt-1 text-xs text-muted flex items-center gap-1.5 flex-wrap"},hn={class:"text-dimmed"},vn={class:"flex items-center gap-1.5 shrink-0"},kn={class:"p-2 space-y-1 min-w-32"},bn=["onClick"],wn={class:"hidden @2xl:inline"},_n={class:"text-xl font-bold mt-0.5"},$n={class:"relative"},Cn={class:"text-xl font-bold mt-0.5 text-emerald-600 dark:text-emerald-400"},Tn={class:"text-xl font-bold mt-0.5 text-rose-600 dark:text-rose-400"},Rn={class:"text-xl font-bold mt-0.5 text-zinc-600 dark:text-zinc-400"},zn={class:"text-xl font-bold mt-0.5 text-amber-600 dark:text-amber-400"},Sn={key:0,class:"flex items-center gap-x-4 gap-y-1.5 flex-wrap"},In={class:"flex-1 basis-60 min-w-44 max-w-xl"},Fn={class:"flex items-center flex-wrap gap-x-3 gap-y-1 text-xs shrink-0"},Pn={class:"flex items-center gap-1"},jn={key:0,class:"flex items-center gap-1"},Dn={key:1,class:"flex items-center gap-1"},Nn={key:2,class:"flex items-center gap-1"},Bn={key:0,class:"rounded-full border border-default px-2 py-0.5 text-xs bg-elevated/60"},Mn={key:1},An=["href"],Un={key:1},Ln={class:"text-muted"},En={key:0,class:"font-medium"},On=["title"],Kn={key:2,class:"text-muted"},Wn=["title"],Hn={class:"text-muted whitespace-nowrap"},Vn={class:"text-muted"},Gn={key:0,class:"mt-2"},Xn={class:"bg-zinc-50 dark:bg-zinc-900 p-2.5 rounded text-xs font-mono overflow-x-auto max-h-48 overflow-y-auto"},qn={class:"m-0"},Yn=me({__name:"RunSummary",props:{testRun:{},displayProgress:{},allReports:{},showCustomData:{type:Boolean},finalizing:{type:Boolean},activeFilter:{},totalWastedTime:{}},emits:["update:showCustomData","filter-status","label-updated"],setup(t,{emit:y}){const v=t,z=y,T=vt(),m=ot(),R=I(()=>v.testRun?.storageStats),u=I(()=>v.testRun?.metadata?.ci),h=I(()=>v.testRun?.metadata?.scm),N=I(()=>v.testRun?.metadata?.tags),B=I(()=>v.testRun?.metadata?.customData),P=I(()=>!!(u.value||v.testRun?.environment)),F=I(()=>!!(v.testRun?.playwrightVersion||v.testRun?.reporterVersion)),j=I(()=>!!(R.value?.totalFiles||v.finalizing)),K=I(()=>v.allReports[0]??null),{copy:U,copied:p}=ut(),S=W("file-line"),$=W(!1),c=W(!1);kt(()=>{c.value=!!as()});const f=I(()=>v.testRun?.testCases?v.testRun.testCases.filter(r=>r.status==="failed"||r.status==="timedout").map(r=>({filePath:(r.filePath||r.location?.split(":")[0])??"",title:r.title,line:r.location&&parseInt(r.location.split(":")[1]??"",10)||null,projectName:r.browser?.projectName||null})):[]);function M(){return St(f.value,{mode:S.value})}async function C(){const r=M();r&&($.value=!0,await U(r,{toast:"Retry command copied"}),setTimeout(()=>{$.value=!1},2e3))}const L=I(()=>$.value?"Copied!":Rt(M()));function k(){const r=v.testRun;if(!r)return"";const d=r.status==="passed"?"✅":r.status==="failed"?"❌":r.status==="running"?"🔄":"⚠️",X=r.label?` — ${r.label}`:"",te=r.project?.label??r.project?.name??"",J=r.totalTests??0,b=r.passedTests??0,H=r.failedTests??0,ne=r.skippedTests??0,ee=r.didNotRunTests??0,xe=r.flakyTests??0,be=bs(r.duration),ae=xe>0?` · ${xe} flaky`:"",he=ee>0?` · ${ee} didn't run`:"";return[`*Run #${r.id}*${X}`,`Status: ${d} ${r.status} | Project: ${te}`,`Tests: ${J} total · ${b} passed · ${H} failed · ${ne} skipped${he}${ae}`,`Duration: ${be}`].join(`
|
|
2
|
+
`)}const G=W(""),Z=W(!1),se=W(!1);let Q=!1;const le=W(null);function E(){Q=!1,G.value=v.testRun?.label??"",Z.value=!0,Ne(()=>le.value?.focus())}async function D(){if(se.value)return;if(Q){Q=!1;return}const r=v.testRun;if(r){se.value=!0;try{await $fetch(`/api/test-runs/${r.id}`,{method:"PATCH",body:{label:G.value||null}}),Z.value=!1,z("label-updated")}catch(d){const X=d&&typeof d=="object"&&"data"in d?d.data?.message:"Failed to save label";T.add({title:"Error",description:X||"Failed to save label",color:"error"})}finally{se.value=!1}}}function ve(){Q=!0,Z.value=!1}function fe(r){r.key==="Enter"?D():r.key==="Escape"&&ve()}return(r,d)=>{const X=ps,te=ke,J=_e,b=hs,H=We,ne=Ie,ee=_t,xe=Oe,be=wt,ae=lt,he=Ce,Te=at,pe=vs,Re=ks,ge=xs,Se=Zs,x=Cs,$e=gs,Be=rt,Fe=Ts;return s(),w(Fe,{"storage-key":"test-run"},{folded:i(()=>[n("div",Qs,[n("div",en,[l(X,{status:t.testRun?.status??"",size:"sm"},null,8,["status"]),n("span",tn,[_(" Run #"+o(t.testRun?.id)+" ",1),e(Z)?(s(),a(O,{key:0},[pt(n("input",{ref_key:"labelInputRef",ref:le,"onUpdate:modelValue":d[0]||(d[0]=ie=>Pe(G)?G.value=ie:null),type:"text",placeholder:"Add a label...",class:"inline-block w-40 text-sm font-normal border-b border-dashed border-zinc-400 bg-transparent outline-none focus:border-primary px-0.5 py-0",onKeydown:fe,onBlur:D},null,544),[[gt,e(G)]]),e(se)?(s(),w(te,{key:0,name:"i-lucide-loader-circle",class:"size-3.5 text-zinc-400 animate-spin shrink-0"})):g("",!0)],64)):(s(),a(O,{key:1},[t.testRun?.label?(s(),a("span",{key:0,class:"font-normal text-zinc-500 ml-1.5 cursor-pointer hover:text-zinc-700 dark:hover:text-zinc-300 border-b border-dashed border-transparent hover:border-zinc-400",onClick:E},"— "+o(t.testRun.label),1)):(s(),a("button",{key:1,class:"text-xs text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300 border-b border-dashed border-transparent hover:border-zinc-400 ml-1",title:"Add a label",onClick:E}," + label "))],64))]),t.testRun?.shardTotal&&t.testRun.shardTotal>1?(s(),w(J,{key:0,color:"neutral",variant:"soft",size:"sm",class:"shrink-0",title:`Shard ${t.testRun.shardsFinished??0}/${t.testRun.shardTotal}`},{default:i(()=>[l(te,{name:"i-lucide-layout-grid",class:"size-3 mr-1"}),_(" "+o(t.testRun.shardsFinished??0)+"/"+o(t.testRun.shardTotal),1)]),_:1},8,["title"])):g("",!0)]),n("div",sn,[n("span",nn,[d[12]||(d[12]=_(" T: ",-1)),n("strong",an,o(t.displayProgress?.totalTests??t.testRun?.totalTests??0),1)]),n("span",on,[d[13]||(d[13]=_(" P: ",-1)),n("strong",null,o(t.displayProgress?.passedTests??t.testRun?.passedTests??0),1)]),n("span",ln,[d[14]||(d[14]=_(" F: ",-1)),n("strong",null,o(t.displayProgress?.failedTests??t.testRun?.failedTests??0),1)]),n("span",rn,[d[15]||(d[15]=_(" S: ",-1)),n("strong",null,o(t.displayProgress?.skippedTests??t.testRun?.skippedTests??0),1)]),n("span",un,[d[16]||(d[16]=_(" DNR: ",-1)),n("strong",null,o(t.testRun?.didNotRunTests??0),1)]),n("span",cn,[d[17]||(d[17]=_(" Fl: ",-1)),n("strong",null,o(t.testRun?.flakyTests??0),1)]),l(b,{passed:t.displayProgress?.passedTests??t.testRun?.passedTests??0,failed:t.displayProgress?.failedTests??t.testRun?.failedTests??0,skipped:t.displayProgress?.skippedTests??t.testRun?.skippedTests??0,flaky:t.testRun?.flakyTests??0,"did-not-run":t.testRun?.didNotRunTests??0,total:t.displayProgress?.totalTests??t.testRun?.totalTests??0},null,8,["passed","failed","skipped","flaky","did-not-run","total"]),l(H,{ms:t.testRun?.duration,class:"text-xs text-zinc-400"},null,8,["ms"])])])]),default:i(()=>[n("div",dn,[l(Be,{class:"shadow-xs",ui:{footer:"px-4 py-2.5 sm:px-4 bg-muted/30"}},{footer:i(()=>[l($e,null,{default:i(()=>[e(P)?(s(),w(ge,{key:0,label:"CI & environment",icon:"i-lucide-cloud",help:"run.ci-env"},{default:i(()=>[t.testRun?.environment?(s(),a("span",Bn,o(t.testRun.environment),1)):g("",!0),e(u)?.provider?(s(),a("span",Mn,o(e(u).provider),1)):g("",!0),e(u)?.buildNumber||e(u)?.buildUrl?(s(),a(O,{key:2},[d[29]||(d[29]=n("span",{class:"text-dimmed"},"·",-1)),e(u)?.buildUrl?(s(),a("a",{key:0,href:e(u).buildUrl,target:"_blank",class:"text-primary hover:underline"},o(e(u)?.buildNumber?`Build #${e(u).buildNumber}`:"View build"),9,An)):(s(),a("span",Un,"Build #"+o(e(u).buildNumber),1))],64)):g("",!0),e(u)?.workflow||e(u)?.jobName?(s(),a(O,{key:3},[d[30]||(d[30]=n("span",{class:"text-dimmed"},"·",-1)),n("span",Ln,[e(u)?.workflow?(s(),a(O,{key:0},[_(o(e(u).workflow),1)],64)):g("",!0),e(u)?.workflow&&e(u)?.jobName?(s(),a(O,{key:1},[_(" · ")],64)):g("",!0),e(u)?.jobName?(s(),a(O,{key:2},[_(o(e(u).jobName),1)],64)):g("",!0)])],64)):g("",!0)]),_:1})):g("",!0),e(h)?(s(),w(ge,{key:1,label:"Source",icon:"i-lucide-git-branch"},{default:i(()=>[e(h).branch?(s(),a("span",En,o(e(h).branch),1)):g("",!0),e(h).commit?(s(),a("code",{key:1,class:"text-xs font-mono bg-zinc-100 dark:bg-zinc-800 px-1 py-0.5 rounded",title:e(h).commit},o(e(h).commit.length>=8?e(h).commit.substring(0,8):e(h).commit),9,On)):g("",!0),e(h).author?(s(),a("span",Kn,o(e(h).author),1)):g("",!0),e(h).commitMessage?(s(),a("span",{key:3,class:"text-xs text-dimmed truncate max-w-[40ch]",title:e(h).commitMessage},o(e(h).commitMessage),9,Wn)):g("",!0)]),_:1})):g("",!0),e(F)?(s(),w(ge,{key:2,label:"Tooling versions",icon:"i-lucide-tag"},{default:i(()=>[n("span",Hn,[t.testRun?.playwrightVersion?(s(),a(O,{key:0},[_("Playwright v"+o(t.testRun.playwrightVersion),1)],64)):g("",!0),t.testRun?.playwrightVersion&&t.testRun?.reporterVersion?(s(),a(O,{key:1},[_(" · ")],64)):g("",!0),t.testRun?.reporterVersion?(s(),a(O,{key:2},[_("Piwi v"+o(t.testRun.reporterVersion),1)],64)):g("",!0)])]),_:1})):g("",!0),e(N)?.length?(s(),w(ge,{key:3,label:"Tags",icon:"i-lucide-tags"},{default:i(()=>[(s(!0),a(O,null,oe(e(N),ie=>(s(),w(J,{key:ie,color:"neutral",variant:"soft",size:"sm"},{default:i(()=>[_(o(ie),1)]),_:2},1024))),128))]),_:1})):g("",!0),t.testRun?.metadata?.relatedIssue?(s(),w(ge,{key:4,label:"Related issue",icon:"i-lucide-bookmark"},{default:i(()=>[n("span",Vn,o(t.testRun.metadata.relatedIssue),1)]),_:1})):g("",!0),e(j)?(s(),w(ge,{key:5,label:"Storage"},{default:i(()=>[l(Se,{"storage-stats":e(R),reports:t.allReports,finalizing:t.finalizing},null,8,["storage-stats","reports","finalizing"])]),_:1})):g("",!0),l(ge,{label:"Links",icon:"i-lucide-link",help:"run.metadata"},{default:i(()=>[l(x,{"entity-type":"test_run","entity-id":t.testRun.id,links:t.testRun.links??null,onUpdated:d[10]||(d[10]=ie=>r.$emit("label-updated"))},null,8,["entity-id","links"])]),_:1}),e(B)?(s(),w(ge,{key:6,label:"Custom data"},{default:i(()=>[l(he,{size:"xs",variant:"ghost",color:"neutral",icon:t.showCustomData?"i-lucide-chevron-up":"i-lucide-chevron-down",onClick:d[11]||(d[11]=ie=>z("update:showCustomData",!t.showCustomData))},{default:i(()=>[...d[31]||(d[31]=[_(" Custom data ",-1)])]),_:1},8,["icon"])]),_:1})):g("",!0)]),_:1}),t.showCustomData&&e(B)?(s(),a("div",Gn,[n("div",Xn,[n("pre",qn,o(JSON.stringify(e(B),null,2)),1)])])):g("",!0)]),default:i(()=>[n("div",mn,[n("div",fn,[n("div",pn,[n("div",gn,[l(X,{status:t.testRun?.status??""},null,8,["status"]),n("h2",xn,[_(" Run #"+o(t.testRun?.id)+" ",1),e(Z)?(s(),a(O,{key:0},[pt(n("input",{ref_key:"labelInputRef",ref:le,"onUpdate:modelValue":d[1]||(d[1]=ie=>Pe(G)?G.value=ie:null),type:"text",placeholder:"Add a label...",class:"inline-block w-48 text-sm font-normal border-b border-dashed border-zinc-400 bg-transparent outline-none focus:border-primary px-0.5 py-0",onKeydown:fe,onBlur:D},null,544),[[gt,e(G)]]),e(se)?(s(),w(te,{key:0,name:"i-lucide-loader-circle",class:"size-3.5 text-zinc-400 animate-spin shrink-0"})):g("",!0)],64)):(s(),a(O,{key:1},[t.testRun?.label?(s(),a("span",{key:0,class:"font-normal text-zinc-500 ml-1.5 cursor-pointer hover:text-zinc-700 dark:hover:text-zinc-300 border-b border-dashed border-transparent hover:border-zinc-400",onClick:E},"— "+o(t.testRun.label),1)):(s(),a("button",{key:1,class:"text-xs text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300 border-b border-dashed border-transparent hover:border-zinc-400 ml-1.5",title:"Add a label",onClick:E}," + label "))],64)),l(ne,{topic:"run.summary"})]),t.testRun?.shardTotal&&t.testRun.shardTotal>1?(s(),w(J,{key:0,color:"neutral",variant:"soft",size:"sm",class:"shrink-0",title:`Shard ${t.testRun.shardsFinished??0}/${t.testRun.shardTotal}`},{default:i(()=>[l(te,{name:"i-lucide-layout-grid",class:"size-3 mr-1"}),_(" "+o(t.testRun.shardsFinished??0)+"/"+o(t.testRun.shardTotal),1)]),_:1},8,["title"])):g("",!0),t.testRun?.precedingMarker?(s(),w(be,{key:1,text:`This run started after: ${t.testRun.precedingMarker.label}`},{default:i(()=>[l(xe,{to:`/projects/${t.testRun.projectId}?tab=timeline`,class:"shrink-0 inline-flex items-center gap-1"},{default:i(()=>[d[18]||(d[18]=n("span",{class:"text-xs text-muted"},"After",-1)),l(ee,{marker:t.testRun.precedingMarker,size:"xs"},null,8,["marker"])]),_:1},8,["to"])]),_:1},8,["text"])):g("",!0)]),n("p",yn,[n("span",null,"Started "+o(("prettyDateFormat"in r?r.prettyDateFormat:e(Tt))(t.testRun?.startTime)),1),l(ae,null,{default:i(()=>[n("span",hn,"· "+o(("formatRelativeTime"in r?r.formatRelativeTime:e(it))(t.testRun?.startTime)),1)]),_:1})])]),n("div",vn,[l(be,{text:e(p)?"Copied!":"Copy run summary"},{default:i(()=>[l(he,{size:"xs",variant:"ghost",color:"neutral",icon:e(p)?"i-lucide-check":"i-lucide-clipboard","aria-label":"Copy run summary",class:"text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300",onClick:d[2]||(d[2]=ie=>e(U)(k(),{toast:"Run summary copied"}))},null,8,["icon"])]),_:1},8,["text"]),e(f).length>0&&!e(c)?(s(),w(Te,{key:0},{content:i(()=>[n("div",kn,[d[20]||(d[20]=n("p",{class:"text-xs font-medium text-zinc-500 px-2 py-1"},"Mode",-1)),(s(),a(O,null,oe(["file-line","grep","file"],ie=>n("button",{key:ie,class:Y(["w-full text-left px-2 py-1 text-sm rounded hover:bg-zinc-100 dark:hover:bg-zinc-800",e(S)===ie?"bg-primary/10 text-primary":""]),onClick:dt=>S.value=ie},o(ie==="file-line"?"File:line":ie==="grep"?"Title (grep)":"File only"),11,bn)),64))])]),default:i(()=>[l(he,{size:"xs",color:"warning",variant:"subtle",icon:e($)?"i-lucide-check":"i-lucide-play",title:e(L),"aria-label":"Retry",onClick:d[3]||(d[3]=ie=>C())},{default:i(()=>[...d[19]||(d[19]=[n("span",{class:"hidden @2xl:inline"},"Retry",-1)])]),_:1},8,["icon","title"])]),_:1})):g("",!0),e(f).length>0?(s(),w(pe,{key:1,"project-id":t.testRun?.project?.id,"project-label":t.testRun?.project?.label??t.testRun?.project?.name,cases:e(f)},null,8,["project-id","project-label","cases"])):g("",!0),e(K)?(s(),w(he,{key:2,href:("fileApiUrl"in r?r.fileApiUrl:e(Ct))(e(K).path,null,e(m).app?.baseURL),icon:("reportIcon"in r?r.reportIcon:e($t))(e(K).type),target:"_blank",size:"xs",color:"primary",variant:"outline","aria-label":e(K).label,title:e(K).size?`${e(K).label} · ${("formatBytes"in r?r.formatBytes:e(Ge))(e(K).size)}`:e(K).label},{default:i(()=>[n("span",wn,o(e(K).label),1)]),_:1},8,["href","icon","aria-label","title"])):g("",!0)])]),l(Re,{"min-tile-width":"7.5rem"},{default:i(()=>[n("button",{class:Y(["rounded-lg p-3 text-left w-full transition-colors cursor-pointer",t.activeFilter==="all"?"bg-accented ring-2 ring-zinc-400 dark:ring-zinc-500":"bg-elevated/60 hover:bg-elevated"]),onClick:d[4]||(d[4]=ie=>z("filter-status","all"))},[d[21]||(d[21]=n("p",{class:"text-xs font-medium text-zinc-500 uppercase tracking-wider"},"Total",-1)),n("p",_n,o(t.displayProgress?.totalTests??t.testRun?.totalTests??0),1)],2),n("div",$n,[n("button",{class:Y(["rounded-lg p-3 text-left w-full h-full transition-colors cursor-pointer",t.activeFilter==="passed"?"bg-emerald-100 dark:bg-emerald-900/30 ring-2 ring-emerald-400 dark:ring-emerald-600":"bg-emerald-50 dark:bg-emerald-900/20 hover:bg-emerald-100 dark:hover:bg-emerald-900/30"]),onClick:d[5]||(d[5]=ie=>z("filter-status","passed"))},[d[22]||(d[22]=n("p",{class:"text-xs font-medium text-emerald-700 dark:text-emerald-400 uppercase tracking-wider"}," Passed ",-1)),n("p",Cn,o(t.displayProgress?.passedTests??t.testRun?.passedTests??0),1)],2),(t.testRun?.flakyTests??0)>0?(s(),a("button",{key:0,class:Y(["absolute top-1.5 right-1.5 inline-flex items-center gap-0.5 rounded-full px-1.5 py-0.5 text-xs font-semibold leading-none tabular-nums transition-colors cursor-pointer",t.activeFilter==="flaky"?"bg-orange-200 dark:bg-orange-800/60 text-orange-800 dark:text-orange-200 ring-2 ring-orange-400 dark:ring-orange-600":"bg-orange-100 dark:bg-orange-900/40 text-orange-700 dark:text-orange-300 hover:bg-orange-200 dark:hover:bg-orange-800/60"]),title:"Flaky — passed only after a retry (a subset of passed). Click to filter.",onClick:d[6]||(d[6]=ie=>z("filter-status","flaky"))},[l(te,{name:"i-lucide-shuffle",class:"size-3"}),_(" "+o(t.testRun?.flakyTests??0),1)],2)):g("",!0)]),n("button",{class:Y(["rounded-lg p-3 text-left w-full transition-colors cursor-pointer",t.activeFilter==="failed"?"bg-rose-100 dark:bg-rose-900/30 ring-2 ring-rose-400 dark:ring-rose-600":"bg-rose-50 dark:bg-rose-900/20 hover:bg-rose-100 dark:hover:bg-rose-900/30"]),onClick:d[7]||(d[7]=ie=>z("filter-status","failed"))},[d[23]||(d[23]=n("p",{class:"text-xs font-medium text-rose-700 dark:text-rose-400 uppercase tracking-wider"},"Failed",-1)),n("p",Tn,o(t.displayProgress?.failedTests??t.testRun?.failedTests??0),1)],2),n("button",{class:Y(["rounded-lg p-3 text-left w-full transition-colors cursor-pointer",t.activeFilter==="skipped"?"bg-accented ring-2 ring-zinc-400 dark:ring-zinc-500":"bg-elevated/60 hover:bg-elevated"]),onClick:d[8]||(d[8]=ie=>z("filter-status","skipped"))},[d[24]||(d[24]=n("p",{class:"text-xs font-medium text-zinc-500 uppercase tracking-wider"},"Skipped",-1)),n("p",Rn,o(t.displayProgress?.skippedTests??t.testRun?.skippedTests??0),1)],2),n("button",{class:Y(["rounded-lg p-3 text-left w-full transition-colors cursor-pointer",t.activeFilter==="didnotrun"?"bg-amber-100 dark:bg-amber-900/30 ring-2 ring-amber-400 dark:ring-amber-600":"bg-amber-50 dark:bg-amber-900/20 hover:bg-amber-100 dark:hover:bg-amber-900/30"]),title:"Tests that never ran (maxFailures cutoff or a serial-group failure)",onClick:d[9]||(d[9]=ie=>z("filter-status","didnotrun"))},[d[25]||(d[25]=n("p",{class:"text-xs font-medium text-amber-700 dark:text-amber-400 uppercase tracking-wider"},"Didn't run",-1)),n("p",zn,o(t.testRun?.didNotRunTests??0),1)],2)]),_:1}),t.testRun?(s(),a("div",Sn,[n("div",In,[l(b,{passed:t.displayProgress?.passedTests??t.testRun?.passedTests??0,failed:t.displayProgress?.failedTests??t.testRun?.failedTests??0,skipped:t.displayProgress?.skippedTests??t.testRun?.skippedTests??0,flaky:t.testRun?.flakyTests??0,"did-not-run":t.testRun?.didNotRunTests??0,total:t.displayProgress?.totalTests??t.testRun?.totalTests??0},null,8,["passed","failed","skipped","flaky","did-not-run","total"])]),n("div",Fn,[n("div",Pn,[l(te,{name:"i-lucide-clock",class:"size-3.5 text-zinc-400"}),l(H,{ms:t.testRun?.duration,class:"font-medium"},null,8,["ms"])]),t.testRun?.avgTestDuration?(s(),a("div",jn,[l(te,{name:"i-lucide-gauge",class:"size-3.5 text-zinc-400"}),d[26]||(d[26]=n("span",{class:"text-zinc-500"},"Avg",-1)),l(H,{ms:t.testRun.avgTestDuration,class:"font-medium"},null,8,["ms"])])):g("",!0),t.testRun?.p90TestDuration?(s(),a("div",Dn,[l(te,{name:"i-lucide-arrow-up-right",class:"size-3.5 text-orange-500"}),d[27]||(d[27]=n("span",{class:"text-zinc-500"},"P90",-1)),l(H,{ms:t.testRun.p90TestDuration,class:"font-medium text-orange-600 dark:text-orange-400","unit-class":"opacity-60"},null,8,["ms"])])):g("",!0),t.totalWastedTime&&t.totalWastedTime>0?(s(),a("div",Nn,[l(te,{name:"i-lucide-clock",class:"size-3.5 text-amber-500"}),d[28]||(d[28]=n("span",{class:"text-zinc-500"},"Wasted",-1)),l(H,{ms:t.totalWastedTime,class:"font-medium text-amber-600 dark:text-amber-400","unit-class":"opacity-60"},null,8,["ms"])])):g("",!0)])])):g("",!0)])]),_:1})])]),_:1})}}}),Jn=Object.assign(Yn,{__name:"RunSummary"}),Zn={key:0,class:"inline-flex items-center gap-1 flex-wrap"},Qn=me({__name:"TestRowBadges",props:{mode:{default:null},isNewRegression:{type:[Boolean,null],default:!1},isNewFlaky:{type:[Boolean,null],default:!1},annotations:{default:null},tags:{default:null},meta:{default:null},maxTags:{default:0}},setup(t){const y=t;function v(h){return h==="fixme"||h==="slow"?"warning":h==="fail"?"error":h==="skip"?"neutral":h==="tag"?"primary":"info"}function z(h){switch(h){case"fixme":return"i-lucide-wrench";case"skip":return"i-lucide-skip-forward";case"slow":return"i-lucide-timer";case"fail":return"i-lucide-x-circle";case"tag":return"i-lucide-tag";default:return null}}function T(h){return h.type==="tag"?h.description??h.type:h.type}const m=I(()=>(y.annotations??[]).filter(h=>!ws(h.type))),R=I(()=>!!((y.tags?.length??0)>0||y.meta?.owner||y.meta?.priority||y.meta?.feature||y.meta?.link)),u=I(()=>y.mode==="parallel"||y.mode==="serial"||!!y.isNewRegression||!!y.isNewFlaky||m.value.length>0||R.value);return(h,N)=>{const B=_e,P=ke,F=Ss;return e(u)?(s(),a("div",Zn,[t.mode==="parallel"?(s(),w(B,{key:0,color:"success",variant:"soft",size:"xs",class:"shrink-0"},{default:i(()=>[...N[0]||(N[0]=[_("parallel",-1)])]),_:1})):g("",!0),t.mode==="serial"?(s(),w(B,{key:1,color:"warning",variant:"soft",size:"xs",class:"shrink-0"},{default:i(()=>[...N[1]||(N[1]=[_("serial",-1)])]),_:1})):g("",!0),t.isNewRegression?(s(),w(B,{key:2,color:"error",variant:"solid",size:"xs",class:"uppercase tracking-wider shrink-0",title:"First run in which this test failed"},{default:i(()=>[...N[2]||(N[2]=[_(" NEW ",-1)])]),_:1})):g("",!0),t.isNewFlaky?(s(),w(B,{key:3,color:"info",variant:"solid",size:"xs",class:"uppercase tracking-wider shrink-0",title:"First run in which this test was flaky"},{default:i(()=>[...N[3]||(N[3]=[_(" FLAKY ",-1)])]),_:1})):g("",!0),(s(!0),a(O,null,oe(e(m),j=>(s(),w(B,{key:`${j.type}:${j.description??""}`,color:v(j.type),variant:"soft",size:"xs",title:j.type!=="tag"?j.description??void 0:void 0,class:"shrink-0 gap-1"},{default:i(()=>[z(j.type)?(s(),w(P,{key:0,name:z(j.type),class:"size-2.5 shrink-0"},null,8,["name"])):g("",!0),_(" "+o(T(j)),1)]),_:2},1032,["color","title"]))),128)),l(F,{tags:t.tags,meta:t.meta,"max-tags":t.maxTags},null,8,["tags","meta","max-tags"])])):g("",!0)}}}),Mt=Object.assign(Qn,{__name:"TestRowBadges"}),ea={class:"rounded-lg border border-default bg-default text-sm flex flex-col flex-1 min-h-0"},ta={class:"flex items-center justify-end px-3 py-1.5 border-b border-default bg-elevated shrink-0"},sa=["disabled","title"],na={class:"overflow-y-auto flex-1 min-h-0"},aa=["onClick"],oa={key:1,class:"font-medium truncate min-w-0 text-muted"},la={class:"flex items-center gap-1.5 sm:gap-2 shrink-0 tabular-nums"},ia=["title"],ra={class:"max-sm:sr-only"},ua=["href","title","onClick"],ca={class:"truncate"},da={class:"flex items-center gap-1.5 sm:gap-2 shrink-0 ml-auto"},ma={key:0,class:"text-xs text-info"},fa={key:4,class:"inline-flex items-center gap-0.5 text-xs text-amber-600 dark:text-amber-400",title:"Wasted in fixed waits"},pa={key:0,class:"text-center py-8 text-muted"},ga=me({__name:"TestCasesTree",props:{testCases:{},suites:{},hasFilter:{type:Boolean},highlightedCaseId:{},projectKey:{},projectName:{}},setup(t){const y=t,v=I(()=>{const p=new Map;for(const S of y.suites)p.set(`${S.filePath}${S.suitePath.join("")}`,S);return p});function z(p){return p==="timedOut"||p==="timedout"?"failed":p}const T=["failed","passed","skipped","didnotrun","running"];function m(p){return T.filter(S=>p[S]>0).map(S=>({key:S,count:p[S],label:De(S)}))}function R(p){const S={passed:0,failed:0,skipped:0,didnotrun:0,running:0,total:0};for(const $ of p){const c=z($.status);c in S&&S[c]++,S.total++}return S}const u=W(new Set),h=I(()=>u.value.size===0);function N(p){return y.hasFilter?!0:!u.value.has(p)}function B(p){if(y.hasFilter)return;const S=new Set(u.value);S.has(p)?S.delete(p):S.add(p),u.value=S}function P(){const p=[],S=new Map;for(const $ of y.testCases){const c=$.filePath??"unknown";S.has(c)||S.set(c,[]),S.get(c).push($)}for(const[$,c]of S){p.push(`file:${$}`);const f=new Set;for(const M of c){const C=M.suitePath??[];for(let L=1;L<=C.length;L++)f.add(`group:${$}${C.slice(0,L).join("")}`)}for(const M of f)p.push(M)}return p}function F(){u.value=new Set(P())}function j(){u.value=new Set}function K(p,S,$,c,f){const M=S.filter(k=>(k.suitePath??[]).length===c.length),C=S.filter(k=>(k.suitePath??[]).length>c.length),L=new Map;for(const k of C){const G=(k.suitePath??[])[c.length];L.has(G)||L.set(G,[]),L.get(G).push(k)}for(const[k,G]of L){const Z=[...c,k],se=`group:${$}${Z.join("")}`,Q=v.value.get(`${$}${Z.join("")}`);p.push({kind:"group",depth:f,key:se,label:k,stats:R(G),mode:Q?.mode??"default",annotations:Q?.annotations??[]}),N(se)&&K(p,G,$,Z,f+1)}for(const k of M)p.push({kind:"test",depth:f,key:`test:${k.id}`,test:k})}const U=I(()=>{const p=[],S=new Map;for(const $ of y.testCases){const c=$.filePath??"unknown";S.has(c)||S.set(c,[]),S.get(c).push($)}for(const[$,c]of[...S.entries()].sort(([f],[M])=>f.localeCompare(M))){const f=`file:${$}`;p.push({kind:"group",depth:0,key:f,label:$,stats:R(c)}),N(f)&&K(p,c,$,[],1)}return p});return(p,S)=>{const $=ke,c=Ft,f=Mt,M=Pt,C=We,L=_e;return s(),a("div",ea,[n("div",ta,[n("button",{class:Y(["flex items-center gap-1 text-xs transition-colors",t.hasFilter?"text-muted cursor-not-allowed opacity-50":"text-muted hover:text-default"]),disabled:t.hasFilter,title:t.hasFilter?"Clear filters to collapse/expand":h.value?"Collapse all":"Expand all",onClick:S[0]||(S[0]=k=>h.value?F():j())},[l($,{name:h.value?"i-lucide-fold-vertical":"i-lucide-unfold-vertical",class:"size-3.5"},null,8,["name"]),_(" "+o(h.value?"Collapse all":"Expand all"),1)],10,sa)]),n("div",na,[(s(!0),a(O,null,oe(U.value,k=>(s(),a(O,{key:k.key},[k.kind==="group"?(s(),a("div",{key:0,class:Y(["flex items-center gap-2 py-2 pr-4 border-b border-default last:border-b-0 select-none sticky",[k.depth===0?"bg-elevated":"bg-default",!t.hasFilter&&"cursor-pointer"]]),style:we({paddingLeft:`${k.depth*20+12}px`,top:`${k.depth*36}px`,zIndex:20-k.depth}),onClick:G=>B(k.key)},[l($,{name:N(k.key)?"i-lucide-chevron-down":"i-lucide-chevron-right",class:"size-3.5 text-muted shrink-0"},null,8,["name"]),l($,{name:k.depth===0?"i-lucide-file-code-2":"i-lucide-folder-open",class:Y(["size-4 shrink-0",k.depth===0?"text-blue-500":"text-amber-500"])},null,8,["name","class"]),k.depth===0?(s(),a("span",{key:0,class:"min-w-0",onClick:S[1]||(S[1]=Ue(()=>{},["stop"]))},[l(c,{"file-path":k.label,"project-key":t.projectKey,"project-name":t.projectName,class:"font-medium text-default"},null,8,["file-path","project-key","project-name"])])):(s(),a("span",oa,o(k.label),1)),k.depth>0?(s(),w(f,{key:2,mode:k.mode,annotations:k.annotations,class:"shrink-0"},null,8,["mode","annotations"])):g("",!0),S[2]||(S[2]=n("div",{class:"flex-1"},null,-1)),n("div",la,[(s(!0),a(O,null,oe(m(k.stats),G=>(s(),a("span",{key:G.key,class:Y(["text-xs inline-flex items-center gap-0.5",[("getStatusTextClass"in p?p.getStatusTextClass:e(tt))(G.key),G.key==="failed"?"font-medium":""]]),title:`${G.count} ${G.label}`},[l($,{name:("getStatusIcon"in p?p.getStatusIcon:e(st))(G.key),class:"size-3 shrink-0 sm:hidden"},null,8,["name"]),_(" "+o(G.count),1),n("span",ra,o(G.label),1)],10,ia))),128))])],14,aa)):(s(),a("div",{key:1,class:Y(["flex flex-wrap items-center gap-x-2 gap-y-1 pr-3 py-2 sm:py-1.5 border-b border-default last:border-b-0 hover:bg-zinc-50 dark:hover:bg-zinc-900/40 transition-colors",t.highlightedCaseId===k.test.id?"animate-pulse bg-yellow-100 dark:bg-yellow-900/30":""]),style:we({paddingLeft:`${k.depth*20+12}px`})},[l(M,{browser:k.test.browser,size:"sm"},null,8,["browser"]),l($,{name:("getStatusIcon"in p?p.getStatusIcon:e(st))(k.test.status),class:Y(["size-4 shrink-0",[("getStatusTextClass"in p?p.getStatusTextClass:e(tt))(k.test.status),("isStatusInFlight"in p?p.isStatusInFlight:e(zt))(k.test.status)?"animate-spin":""]]),role:"img","aria-label":`Status: ${("formatStatusLabel"in p?p.formatStatusLabel:e(De))(k.test.status)}`,title:("formatStatusLabel"in p?p.formatStatusLabel:e(De))(k.test.status)},null,8,["name","class","aria-label","title"]),n("a",{href:`/test-run-cases/${k.test.id}`,class:"text-highlighted hover:text-primary hover:underline min-w-32 self-stretch flex items-center",title:k.test.title,onClick:Ue(G=>("navigateTo"in p?p.navigateTo:e(Xe))(`/test-run-cases/${k.test.id}`),["prevent"])},[n("span",ca,o(k.test.title),1)],8,ua),l(f,{"is-new-regression":!!k.test.isNewRegression,"is-new-flaky":!!k.test.isNewFlaky,annotations:k.test.testAnnotations,tags:k.test.tags,meta:k.test.testMeta,"max-tags":3,class:"shrink-0"},null,8,["is-new-regression","is-new-flaky","annotations","tags","meta"]),n("div",da,[k.test.status==="running"?(s(),a("span",ma,"In progress...")):k.test.duration?(s(),w(C,{key:1,ms:k.test.duration,class:"text-xs text-muted"},null,8,["ms"])):g("",!0),k.test.workerIndex!=null?(s(),w(L,{key:2,color:"neutral",variant:"soft",size:"xs",class:"font-mono",title:`Worker ${k.test.workerIndex}`},{default:i(()=>[_(" w"+o(k.test.workerIndex),1)]),_:2},1032,["title"])):g("",!0),(k.test.retries??0)>0?(s(),w(L,{key:3,color:"warning",variant:"soft",size:"xs"},{default:i(()=>[_(o(k.test.retries)+"x ",1)]),_:2},1024)):g("",!0),k.test.wastedTimeMs?(s(),a("span",fa,[l($,{name:"i-lucide-hourglass",class:"size-3 shrink-0"}),l(C,{ms:k.test.wastedTimeMs,"unit-class":"opacity-60","no-title":""},null,8,["ms"])])):g("",!0)])],6))],64))),128)),U.value.length===0?(s(),a("div",pa,[l($,{name:"i-lucide-search-x",class:"size-6 mx-auto mb-2 text-zinc-300 dark:text-zinc-600"}),S[3]||(S[3]=n("p",{class:"text-sm"},"No test cases match your filters.",-1))])):g("",!0)])])}}}),xa=Object.assign(ga,{__name:"TestCasesTree"}),ya={class:"flex flex-col min-h-0"},ha={class:"flex items-center rounded-md border border-default overflow-hidden"},va={key:0,class:"text-sm text-zinc-500 tabular-nums inline-flex items-center gap-1"},ka={key:1,class:"text-sm text-zinc-500 tabular-nums inline-flex items-center gap-1"},ba={class:"flex flex-wrap items-center gap-1"},wa=["onClick"],_a={key:2,class:"flex items-center gap-1 md:hidden"},$a={key:0,class:"flex-1 min-h-0 max-lg:h-[70dvh] md:overflow-x-auto overflow-y-hidden rounded-lg border border-default bg-default"},Ca=["aria-rowcount"],Ta=["aria-sort","aria-label","title","onClick"],Ra={key:1,class:"truncate"},za={class:"flex items-start gap-2"},Sa=["href","onClick"],Ia={class:"pl-6 flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-muted"},Fa={key:0,class:"text-info"},Pa={key:4,class:"inline-flex items-center gap-0.5 text-amber-600 dark:text-amber-400",title:"Wasted in fixed waits"},ja={class:"px-3 py-2 flex items-center min-w-0",role:"cell"},Da={class:"px-3 py-2 min-w-0 space-y-0.5",role:"cell"},Na={class:"flex items-center gap-1.5 min-w-0"},Ba=["href","title","onClick"],Ma={class:"px-3 py-2 flex items-center",role:"cell"},Aa={class:"px-3 py-2 flex items-center whitespace-nowrap",role:"cell"},Ua={key:0,class:"text-info text-xs"},La={class:"px-3 py-2 flex items-center",role:"cell"},Ea={class:"px-3 py-2 flex items-center tabular-nums",role:"cell"},Oa={key:0,class:"px-3 py-2 flex items-center whitespace-nowrap",role:"cell"},Ka={key:1,class:"text-zinc-400"},Wa={class:"flex-1 min-h-0 flex items-center justify-center py-10 text-sm text-zinc-500"},Ha={key:1,class:"text-center py-10 text-zinc-500"},Va={key:2,class:"text-center py-10 text-zinc-500"},He="natural",Ga=me({__name:"TestCasesList",props:ls({testCases:{},suites:{},isLive:{type:Boolean},failureClusterFilter:{},projectKey:{},projectName:{}},{search:{default:""},searchModifiers:{},activeStatuses:{default:()=>[]},activeStatusesModifiers:{},browserFilter:{default:"all"},browserFilterModifiers:{}}),emits:["update:search","update:activeStatuses","update:browserFilter"],setup(t,{expose:y}){const{treeView:v,setTreeView:z}=Is("test-cases"),T=t,m=Qe(t,"search"),R=Qe(t,"activeStatuses"),u=Qe(t,"browserFilter"),h=W(!1),N=W(!1),B=[{label:"Passed",value:"passed",color:"green"},{label:"Failed",value:"failed",color:"red"},{label:"Skipped",value:"skipped",color:"gray"},{label:"Didn't run",value:"didnotrun",color:"amber"},{label:"Flaky",value:"flaky",color:"orange"}];function P(r){R.value.indexOf(r)>=0?R.value=R.value.filter(X=>X!==r):R.value=[...R.value,r]}const F=I(()=>{const r=new Set;for(const X of T.testCases){const te=X.browser?.projectName;te&&r.add(te)}const d=[{label:"All browsers",value:"all"}];for(const X of[...r].sort())d.push({label:X,value:X});return d});function j(r,d){return d==="failed"?r.status==="failed"||r.status==="timedOut"||r.status==="timedout":d==="flaky"?(r.retries??0)>0:r.status===d}const K=I(()=>{let r=T.testCases;if(T.failureClusterFilter!=null&&(r=r.filter(d=>d.failureClusterId===T.failureClusterFilter)),R.value.length>0&&(r=r.filter(d=>R.value.some(X=>j(d,X)))),u.value!=="all"&&(r=r.filter(d=>d.browser?.projectName===u.value)),m.value){const d=m.value.toLowerCase();r=r.filter(X=>X.title.toLowerCase().includes(d)||X.location&&X.location.toLowerCase().includes(d))}return h.value&&(r=r.filter(d=>d.isNewRegression)),N.value&&(r=r.filter(d=>d.isNewFlaky)),r}),U=W(null),p=W("asc");function S(r){U.value!==r?(U.value=r,p.value="asc"):p.value==="asc"?p.value="desc":U.value=null}function $(r){return U.value!==r?"i-lucide-chevrons-up-down":p.value==="asc"?"i-lucide-chevron-up":"i-lucide-chevron-down"}function c(r,d){switch(d){case"browser":return r.browser?.projectName??"";case"title":return r.title??"";case"status":return r.status??"";case"duration":return r.duration??0;case"workerIndex":return r.workerIndex??-1;case"retries":return r.retries??0;case"wastedTimeMs":return r.wastedTimeMs??0;default:return""}}const f=I(()=>{const r=K.value,d=U.value;if(!d)return r;const X=p.value==="asc"?1:-1;return[...r].sort((te,J)=>{const b=c(te,d),H=c(J,d);return typeof b=="number"&&typeof H=="number"?(b-H)*X:String(b).localeCompare(String(H))*X})}),M=I(()=>T.testCases.some(r=>(r.wastedTimeMs??0)>0)),C=I(()=>{const r=[{key:"browser",label:"Browser",sortable:!0,width:"3.25rem",align:"left",icon:"i-lucide-monitor"},{key:"title",label:"Test case",sortable:!0,width:"minmax(12rem, 3fr)",align:"left"},{key:"status",label:"Status",sortable:!0,width:"6rem",align:"left"},{key:"duration",label:"Duration",sortable:!0,width:"7rem",align:"left"},{key:"workerIndex",label:"Worker",sortable:!0,width:"6rem",align:"left"},{key:"retries",label:"Retries",sortable:!0,width:"6.5rem",align:"left"}];return M.value&&r.push({key:"wastedTimeMs",label:"Wasted",sortable:!0,width:"6rem",align:"left"}),r}),L=I(()=>[{label:"Run order",value:He},...C.value.map(r=>({label:r.label,value:r.key}))]),k=I({get:()=>U.value??He,set:r=>{U.value=r===He?null:r,r!==He&&(p.value="asc")}}),G=I(()=>C.value.map(r=>r.width).join(" ")),Z=I(()=>M.value?"47.5rem":"41.5rem"),se=I(()=>m.value!==""||R.value.length>0||u.value!=="all"||T.failureClusterFilter!=null),Q=W(null),le=W(!1),E=W(null);function D(r){return r.scrollHeight-r.scrollTop-r.clientHeight<50}function ve(r){const d=r.target;d&&(le.value=!D(d))}de(()=>T.isLive,r=>{r||(le.value=!1)}),de(()=>f.value.length,()=>{!T.isLive||le.value||Ne(()=>Q.value?.scrollToBottom())});function fe(r){z(!1),E.value=r;const d=()=>{const X=f.value.findIndex(te=>te.id===r);X>=0&&Q.value?.scrollToItem(X,{behavior:"smooth"})};Ne(()=>{Q.value?d():setTimeout(d,60),setTimeout(()=>{E.value=null},3e3)})}return y({scrollToCase:fe}),(r,d)=>{const X=ke,te=Ie,J=os,b=Rs,H=It,ne=Ce,ee=zs,xe=xa,be=Pt,ae=Ft,he=Mt,Te=We,pe=_e,Re=xt("DynamicScrollerItem"),ge=xt("DynamicScroller"),Se=lt;return s(),a("div",ya,[l(ee,{class:"mb-4 shrink-0"},{start:i(()=>[n("div",ha,[n("button",{class:Y(["px-2 py-1 text-xs transition-colors",e(v)?"text-muted hover:bg-elevated/60":"bg-primary text-white dark:text-white"]),title:"Flat list",onClick:d[0]||(d[0]=x=>e(z)(!1))},[l(X,{name:"i-lucide-list",class:"size-3.5"})],2),n("button",{class:Y(["px-2 py-1 text-xs transition-colors",e(v)?"bg-primary text-white dark:text-white":"text-muted hover:bg-elevated/60"]),title:"Tree view",onClick:d[1]||(d[1]=x=>e(z)(!0))},[l(X,{name:"i-lucide-folder-tree",class:"size-3.5"})],2)]),t.isLive?(s(),a("span",va,[_(o(t.testCases.length)+" completed ",1),l(te,{topic:"run.live"})])):(s(),a("span",ka,[_(o(f.value.length)+o(f.value.length!==t.testCases.length?` / ${t.testCases.length}`:"")+" cases ",1),l(te,{topic:"run.test-cases"})]))]),default:i(()=>[l(J,{modelValue:m.value,"onUpdate:modelValue":d[2]||(d[2]=x=>m.value=x),placeholder:"Search test cases...",icon:"i-lucide-search",size:"sm",class:"min-w-48 max-sm:flex-1"},null,8,["modelValue"]),n("div",ba,[(s(),a(O,null,oe(B,x=>n("button",{key:x.value,class:Y(["inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-xs font-medium transition-colors whitespace-nowrap",R.value.includes(x.value)?x.color==="green"?"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400":x.color==="red"?"bg-rose-100 text-rose-700 dark:bg-rose-900/30 dark:text-rose-400":x.color==="orange"?"bg-orange-100 text-orange-700 dark:bg-orange-900/30 dark:text-orange-400":"bg-zinc-200 text-zinc-700 dark:bg-zinc-700 dark:text-zinc-300":"bg-zinc-100 text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400 hover:bg-zinc-200 dark:hover:bg-zinc-700"]),onClick:$e=>P(x.value)},[n("span",{class:Y(["size-2 rounded-full shrink-0",x.color==="green"?"bg-emerald-500":x.color==="red"?"bg-rose-500":x.color==="orange"?"bg-orange-500":"bg-zinc-400"])},null,2),_(" "+o(x.label),1)],10,wa)),64))]),l(b,{modelValue:u.value,"onUpdate:modelValue":d[3]||(d[3]=x=>u.value=x),items:F.value,size:"sm",class:"w-36"},null,8,["modelValue","items"]),t.isLive?g("",!0):(s(),w(H,{key:0,modelValue:h.value,"onUpdate:modelValue":d[4]||(d[4]=x=>h.value=x),label:"New regressions",size:"sm"},null,8,["modelValue"])),t.isLive?g("",!0):(s(),w(H,{key:1,modelValue:N.value,"onUpdate:modelValue":d[5]||(d[5]=x=>N.value=x),label:"New flaky",size:"sm"},null,8,["modelValue"])),e(v)?g("",!0):(s(),a("div",_a,[l(b,{modelValue:k.value,"onUpdate:modelValue":d[6]||(d[6]=x=>k.value=x),items:L.value,size:"sm",class:"w-32","aria-label":"Sort cases by"},null,8,["modelValue","items"]),l(ne,{size:"sm",variant:"outline",color:"neutral",disabled:U.value===null,icon:p.value==="asc"?"i-lucide-arrow-up-narrow-wide":"i-lucide-arrow-down-wide-narrow",title:p.value==="asc"?"Sorted ascending":"Sorted descending","aria-label":p.value==="asc"?"Sorted ascending":"Sorted descending",onClick:d[7]||(d[7]=x=>p.value=p.value==="asc"?"desc":"asc")},null,8,["disabled","icon","title","aria-label"])]))]),_:1}),e(v)&&t.testCases.length>0?(s(),w(xe,{key:0,"test-cases":f.value,suites:t.suites,"has-filter":se.value,"highlighted-case-id":E.value,"project-key":t.projectKey,"project-name":t.projectName,class:"flex-1 min-h-0"},null,8,["test-cases","suites","has-filter","highlighted-case-id","project-key","project-name"])):e(v)?g("",!0):(s(),a(O,{key:1},[f.value.length>0?(s(),a("div",$a,[n("div",{class:"flex flex-col h-full md:min-w-(--grid-min-width)",role:"table","aria-label":"Test cases","aria-rowcount":f.value.length+1,style:we({"--grid-min-width":Z.value})},[n("div",{class:"hidden md:grid shrink-0 bg-elevated/50 border-b border-default",role:"row",style:we({gridTemplateColumns:G.value})},[(s(!0),a(O,null,oe(C.value,x=>(s(),a(O,{key:x.key},[x.sortable?(s(),a("button",{key:0,type:"button",role:"columnheader","aria-sort":U.value===x.key?p.value==="asc"?"ascending":"descending":"none","aria-label":x.icon?x.label:void 0,title:x.icon?x.label:void 0,class:Y(["flex items-center gap-1 min-w-0 px-3 py-2 text-sm font-semibold select-none cursor-pointer hover:text-highlighted transition-colors",x.align==="right"?"justify-end":""]),onClick:$e=>S(x.key)},[x.icon?(s(),w(X,{key:0,name:x.icon,class:"shrink-0 size-4"},null,8,["name"])):(s(),a("span",Ra,o(x.label),1)),l(X,{name:$(x.key),class:Y(["shrink-0 size-3.5",U.value===x.key?"":"opacity-40"])},null,8,["name","class"])],10,Ta)):(s(),a("div",{key:1,role:"columnheader",class:Y(["px-3 py-2 text-sm font-semibold",x.align==="right"?"text-right":""])},o(x.label),3))],64))),128))],4),l(Se,null,{fallback:i(()=>[n("div",Wa,[l(X,{name:"i-lucide-loader-circle",class:"size-4 mr-2 animate-spin"}),d[8]||(d[8]=_(" Loading test cases… ",-1))])]),default:i(()=>[l(ge,{ref_key:"scrollerRef",ref:Q,items:f.value,"min-item-size":44,"key-field":"id",role:"rowgroup",class:"flex-1 min-h-0",onScrollPassive:ve},{default:i(({item:x,index:$e,active:Be})=>[l(Re,{item:x,active:Be,"size-dependencies":[x.title,x.location,x.isNewRegression,x.isNewFlaky,x.testAnnotations,x.tags],"data-index":$e},{default:i(()=>[n("div",{class:Y(["md:hidden border-b border-default px-3 py-2.5 space-y-1.5 text-sm transition-colors",E.value===x.id?"animate-pulse bg-yellow-100 dark:bg-yellow-900/30":""]),role:"row"},[n("div",za,[l(X,{name:("getStatusIcon"in r?r.getStatusIcon:e(st))(x.status),class:Y(["size-4 shrink-0 mt-0.5",[("getStatusTextClass"in r?r.getStatusTextClass:e(tt))(x.status),("isStatusInFlight"in r?r.isStatusInFlight:e(zt))(x.status)?"animate-spin":""]]),role:"img","aria-label":`Status: ${("formatStatusLabel"in r?r.formatStatusLabel:e(De))(x.status)}`,title:("formatStatusLabel"in r?r.formatStatusLabel:e(De))(x.status)},null,8,["name","class","aria-label","title"]),n("a",{href:`/test-run-cases/${x.id}`,class:"text-highlighted hover:text-primary hover:underline font-medium flex-1 min-w-0",onClick:Ue(Fe=>("navigateTo"in r?r.navigateTo:e(Xe))(`/test-run-cases/${x.id}`),["prevent"])},o(x.title),9,Sa),l(be,{browser:x.browser,size:"sm",class:"mt-0.5"},null,8,["browser"])]),x.location?(s(),w(ae,{key:0,location:x.location,"project-key":t.projectKey,"project-name":t.projectName,class:"block pl-6 text-xs text-gray-400 dark:text-gray-500"},null,8,["location","project-key","project-name"])):g("",!0),l(he,{"is-new-regression":!!x.isNewRegression,"is-new-flaky":!!x.isNewFlaky,annotations:x.testAnnotations,tags:x.tags,meta:x.testMeta,"max-tags":3,class:"pl-6"},null,8,["is-new-regression","is-new-flaky","annotations","tags","meta"]),n("div",Ia,[x.status==="running"?(s(),a("span",Fa,"In progress...")):x.duration?(s(),w(Te,{key:1,ms:x.duration},null,8,["ms"])):g("",!0),x.workerIndex!=null?(s(),w(pe,{key:2,color:"neutral",variant:"soft",size:"xs",class:"font-mono",title:`Worker ${x.workerIndex}`},{default:i(()=>[_(" w"+o(x.workerIndex),1)]),_:2},1032,["title"])):g("",!0),(x.retries??0)>0?(s(),w(pe,{key:3,color:"warning",variant:"soft",size:"xs"},{default:i(()=>[_(o(x.retries)+"x ",1)]),_:2},1024)):g("",!0),x.wastedTimeMs?(s(),a("span",Pa,[l(X,{name:"i-lucide-hourglass",class:"size-3 shrink-0"}),l(Te,{ms:x.wastedTimeMs,"unit-class":"opacity-60","no-title":""},null,8,["ms"])])):g("",!0)])],2),n("div",{class:Y(["hidden md:grid items-center border-b border-default text-sm transition-colors hover:bg-zinc-50 dark:hover:bg-zinc-900/50",E.value===x.id?"animate-pulse bg-yellow-100 dark:bg-yellow-900/30":""]),role:"row",style:we({gridTemplateColumns:G.value})},[n("div",ja,[l(be,{browser:x.browser},null,8,["browser"])]),n("div",Da,[n("div",Na,[n("a",{href:`/test-run-cases/${x.id}`,class:"text-highlighted hover:text-primary hover:underline font-medium truncate",title:x.title,onClick:Ue(Fe=>("navigateTo"in r?r.navigateTo:e(Xe))(`/test-run-cases/${x.id}`),["prevent"])},o(x.title),9,Ba),l(he,{"is-new-regression":!!x.isNewRegression,"is-new-flaky":!!x.isNewFlaky,annotations:x.testAnnotations,tags:x.tags,meta:x.testMeta,"max-tags":3,class:"shrink-0"},null,8,["is-new-regression","is-new-flaky","annotations","tags","meta"])]),x.location?(s(),w(ae,{key:0,location:x.location,"project-key":t.projectKey,"project-name":t.projectName,class:"text-xs text-zinc-400 dark:text-zinc-500"},null,8,["location","project-key","project-name"])):g("",!0)]),n("div",Ma,[l(pe,{color:("getStatusColor"in r?r.getStatusColor:e(nt))(x.status==="timedOut"||x.status==="timedout"?"failed":x.status),variant:"subtle",class:"capitalize"},{default:i(()=>[_(o(("formatStatusLabel"in r?r.formatStatusLabel:e(De))(x.status)),1)]),_:2},1032,["color"])]),n("div",Aa,[x.status==="running"?(s(),a("span",Ua,"In progress...")):(s(),w(Te,{key:1,ms:x.duration,fallback:""},null,8,["ms"]))]),n("div",La,[x.workerIndex!=null?(s(),w(pe,{key:0,color:"neutral",variant:"soft",class:"font-mono text-xs"},{default:i(()=>[_(o(x.workerIndex),1)]),_:2},1024)):g("",!0)]),n("div",Ea,o(x.retries&&x.retries>0?x.retries:""),1),M.value?(s(),a("div",Oa,[x.wastedTimeMs?(s(),w(Te,{key:0,ms:x.wastedTimeMs,class:"text-amber-600 dark:text-amber-400","unit-class":"opacity-60"},null,8,["ms"])):(s(),a("span",Ka,"—"))])):g("",!0)],6)]),_:2},1032,["item","active","size-dependencies","data-index"])]),_:1},8,["items"])]),_:1})],12,Ca)])):t.testCases.length===0?(s(),a("div",Ha,[l(X,{name:"i-lucide-beaker",class:"size-8 mx-auto mb-2 text-zinc-300 dark:text-zinc-600"}),d[9]||(d[9]=n("p",null,"No test cases recorded for this run.",-1))])):(s(),a("div",Va,[l(X,{name:"i-lucide-search-x",class:"size-8 mx-auto mb-2 text-zinc-300 dark:text-zinc-600"}),d[10]||(d[10]=n("p",null,"No test cases match your filters.",-1))]))],64))])}}}),Xa=Object.assign(Ga,{__name:"TestCasesList"}),qa={key:2,class:"p-4"},Ya={key:3,class:"p-4"},Ja={key:4,class:"p-4"},Za={key:5,class:"space-y-6 p-4"},Qa={class:"flex items-center gap-1.5 text-sm text-muted"},eo={class:"grid grid-cols-1 sm:grid-cols-3 gap-4"},to={class:"space-y-1"},so={class:"text-xl font-semibold"},no={key:0},ao={key:1},oo={class:"space-y-1"},lo={key:1,class:"text-xl font-semibold text-muted"},io={class:"space-y-1"},ro={class:"space-y-0.5 text-sm"},uo={key:0,class:"text-red-500"},co={key:1,class:"text-green-600"},mo={key:2,class:"text-purple-500"},fo={key:3,class:"text-muted"},po={class:"space-y-1"},go={class:"font-medium text-primary hover:underline truncate"},xo={class:"text-gray-400 text-xs ml-auto shrink-0"},yo={class:"space-y-1"},ho={class:"font-medium text-primary hover:underline truncate"},vo={class:"space-y-1"},ko={class:"font-medium text-primary hover:underline truncate"},bo={class:"space-y-1"},wo={class:"font-medium text-primary hover:underline truncate"},_o={class:"text-gray-400 text-xs ml-auto shrink-0"},$o={class:"space-y-1"},Co={class:"font-medium text-primary hover:underline truncate"},To={class:"grid grid-cols-2 gap-4"},Ro={key:0},zo={class:"space-y-1"},So={class:"text-red-500 font-mono shrink-0"},Io={class:"truncate text-primary hover:underline"},Fo={key:1},Po={class:"space-y-1"},jo={class:"text-green-500 font-mono shrink-0"},Do={class:"truncate text-primary hover:underline"},No={class:"space-y-1"},Bo={class:"flex-1 truncate text-primary hover:underline"},Mo={class:"text-gray-500 font-mono text-xs shrink-0"},Ao={class:"w-24 h-2 rounded-full bg-gray-100 shrink-0"},Uo={key:0,class:"flex items-center gap-1.5 text-xs text-amber-600 mb-3"},Lo={class:"flex items-end gap-2 h-20"},Eo={class:"text-xs text-gray-500"},Oo={class:"text-xs text-gray-400"},Ko={class:"space-y-1"},Wo={class:"truncate"},Ho=me({__name:"RunInsights",props:{testRunId:{},runStatus:{},refreshKey:{}},setup(t){const y=t,v=I(()=>{if(!m.value)return"";const P=m.value.passRateDelta;return P>0?"text-green-600":P<0?"text-red-600":"text-muted"}),z=I(()=>{if(!m.value)return"";const P=m.value.passRateDelta;return P>0?"i-lucide-trending-up":P<0?"i-lucide-trending-down":"i-lucide-minus"}),T=I(()=>m.value?.avgDurationDelta==null?"":m.value.avgDurationDelta>0?"text-red-600":"text-green-600"),m=W(null),R=W(!1),u=W(null),h=I(()=>y.runStatus==="running"||y.runStatus==="initialising"||y.runStatus==="finalizing");async function N(){if(!y.testRunId||h.value){m.value=null;return}R.value=!0,u.value=null;try{m.value=await $fetch(`/api/test-runs/${y.testRunId}/insights`)}catch(P){console.error("[RunInsights] failed to load",P),u.value=P?.data?.message||P?.message||"Failed to load insights"}finally{R.value=!1}}de(()=>y.testRunId,N,{immediate:!0}),de(()=>y.refreshKey,(P,F)=>{P!==F&&P!==void 0&&N()});function B(P){return P==null?"—":P<1e3?`${P}ms`:`${(P/1e3).toFixed(1)}s`}return(P,F)=>{const j=Ce,K=Fs,U=jt,p=Dt,S=ke,$=Ie,c=Ps,f=_e,M=Oe;return e(u)?(s(),w(K,{key:0,text:e(u),padded:""},{action:i(()=>[l(j,{size:"sm",onClick:N},{default:i(()=>[...F[0]||(F[0]=[_("Retry",-1)])]),_:1})]),_:1},8,["text"])):e(R)?(s(),w(U,{key:1,padded:""})):e(h)?(s(),a("div",qa,[l(p,{icon:"i-lucide-loader-circle",text:"Run in progress"},{default:i(()=>[...F[1]||(F[1]=[n("p",{class:"text-sm text-muted max-w-sm text-center"}," Insights are computed once the run finishes. Switch back here when the run completes. ",-1)])]),_:1})])):e(m)?e(m).hasBaseline?(s(),a("div",Za,[n("div",Qa,[l(S,{name:"i-lucide-sparkles",class:"size-4 shrink-0 text-primary/70"}),F[3]||(F[3]=n("span",null,"Automatic highlights from this run",-1)),l($,{topic:"run.insights"})]),l(c,{icon:"i-lucide-bar-chart-3","icon-class":"text-blue-500",title:"Run summary"},{default:i(()=>[n("div",eo,[n("div",to,[F[4]||(F[4]=n("p",{class:"text-xs text-muted"},"Pass rate",-1)),n("p",so,o(e(m).passRate)+"%",1),n("div",{class:Y(["flex items-center gap-1 text-xs",e(v)])},[l(S,{name:e(z),class:"size-3.5"},null,8,["name"]),e(m).passRateDelta!==0?(s(),a("span",no,o(e(m).passRateDelta>0?"+":"")+o(e(m).passRateDelta)+"pp vs baseline",1)):(s(),a("span",ao,"Same as baseline"))],2)]),n("div",oo,[F[5]||(F[5]=n("p",{class:"text-xs text-muted"},"Avg duration",-1)),e(m).avgDurationDelta!==null?(s(),a("p",{key:0,class:Y(["text-xl font-semibold",e(T)])},o(e(m).avgDurationDelta>0?"+":"")+o(e(m).avgDurationDelta)+"% ",3)):(s(),a("p",lo,"—")),F[6]||(F[6]=n("p",{class:"text-xs text-muted"},"vs baseline (passing tests)",-1))]),n("div",io,[F[7]||(F[7]=n("p",{class:"text-xs text-muted"},"Changes",-1)),n("div",ro,[e(m).newRegressions.length>0?(s(),a("p",uo," +"+o(e(m).newRegressions.length)+" regressed ",1)):g("",!0),e(m).recovered.length>0?(s(),a("p",co,"+"+o(e(m).recovered.length)+" fixed",1)):g("",!0),e(m).newFlaky.length>0?(s(),a("p",mo,"+"+o(e(m).newFlaky.length)+" flaky",1)):g("",!0),!e(m).newRegressions.length&&!e(m).recovered.length&&!e(m).newFlaky.length?(s(),a("p",fo," No status changes ")):g("",!0)])])])]),_:1}),e(m).newRegressions.length>0?(s(),w(c,{key:0,icon:"i-lucide-alert-circle","icon-class":"text-red-500",title:"New regressions",count:e(m).newRegressions.length},{default:i(()=>[n("div",po,[(s(!0),a(O,null,oe(e(m).newRegressions,C=>(s(),w(M,{key:C.testRunsCaseId,to:`/test-run-cases/${C.testRunsCaseId}`,class:"flex items-center gap-2 text-sm hover:bg-red-50 dark:hover:bg-red-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[l(f,{color:"error",variant:"solid",size:"xs"},{default:i(()=>[...F[8]||(F[8]=[_("NEW",-1)])]),_:1}),n("span",go,o(C.title),1),n("span",xo,o(B(C.duration)),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):g("",!0),e(m).recurrences.length>0?(s(),w(c,{key:1,icon:"i-lucide-refresh-cw","icon-class":"text-amber-500",title:"Recurring failures",count:e(m).recurrences.length},{default:i(()=>[n("div",yo,[(s(!0),a(O,null,oe(e(m).recurrences,C=>(s(),w(M,{key:C.testRunsCaseId,to:`/test-run-cases/${C.testRunsCaseId}`,class:"flex items-center gap-2 text-sm hover:bg-amber-50 dark:hover:bg-amber-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[l(f,{color:"warning",variant:"solid",size:"xs"},{default:i(()=>[...F[9]||(F[9]=[_("RECURRING",-1)])]),_:1}),n("span",ho,o(C.title),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):g("",!0),e(m).recovered.length>0?(s(),w(c,{key:2,icon:"i-lucide-check-circle","icon-class":"text-green-500",title:"Fixed tests",count:e(m).recovered.length},{default:i(()=>[n("div",vo,[(s(!0),a(O,null,oe(e(m).recovered,C=>(s(),w(M,{key:C.testRunsCaseId,to:`/test-run-cases/${C.testRunsCaseId}`,class:"flex items-center gap-2 text-sm hover:bg-green-50 dark:hover:bg-green-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[l(f,{color:"success",variant:"solid",size:"xs"},{default:i(()=>[...F[10]||(F[10]=[_("FIXED",-1)])]),_:1}),n("span",ko,o(C.title),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):g("",!0),e(m).newFlaky.length>0?(s(),w(c,{key:3,icon:"i-lucide-flask","icon-class":"text-purple-500",title:"New flaky tests",count:e(m).newFlaky.length},{default:i(()=>[n("div",bo,[(s(!0),a(O,null,oe(e(m).newFlaky,C=>(s(),w(M,{key:C.testRunsCaseId,to:`/test-run-cases/${C.testRunsCaseId}?tab=history`,class:"flex items-center gap-2 text-sm hover:bg-purple-50 dark:hover:bg-purple-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[l(f,{color:"info",variant:"solid",size:"xs"},{default:i(()=>[...F[11]||(F[11]=[_("FLAKY",-1)])]),_:1}),n("span",wo,o(C.title),1),n("span",_o,o(B(C.duration)),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):g("",!0),e(m).flakyOnRetry.length>0?(s(),w(c,{key:4,icon:"i-lucide-repeat","icon-class":"text-orange-500",title:"Passed on retry",count:e(m).flakyOnRetry.length,subtitle:"Tests that passed but needed one or more retries"},{default:i(()=>[n("div",$o,[(s(!0),a(O,null,oe(e(m).flakyOnRetry,C=>(s(),w(M,{key:C.testRunsCaseId,to:`/test-run-cases/${C.testRunsCaseId}?tab=history`,class:"flex items-center gap-2 text-sm hover:bg-orange-50 dark:hover:bg-orange-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[l(f,{color:"warning",variant:"subtle",size:"xs"},{default:i(()=>[_("×"+o(C.retries),1)]),_:2},1024),n("span",Co,o(C.title),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):g("",!0),e(m).mostRegressed.length>0||e(m).mostImproved.length>0?(s(),w(c,{key:5,icon:"i-lucide-trending-up","icon-class":"text-blue-500",title:"Performance changes"},{default:i(()=>[n("div",To,[e(m).mostRegressed.length>0?(s(),a("div",Ro,[F[12]||(F[12]=n("p",{class:"text-xs font-medium text-red-500 mb-2"},"Most regressed",-1)),n("div",zo,[(s(!0),a(O,null,oe(e(m).mostRegressed,C=>(s(),w(M,{key:C.testRunsCaseId,to:`/test-run-cases/${C.testRunsCaseId}?tab=performance`,class:"flex items-center gap-2 text-sm hover:bg-red-50 dark:hover:bg-red-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[n("span",So,"+"+o(C.pctChange)+"%",1),n("span",Io,o(C.title),1)]),_:2},1032,["to"]))),128))])])):g("",!0),e(m).mostImproved.length>0?(s(),a("div",Fo,[F[13]||(F[13]=n("p",{class:"text-xs font-medium text-green-500 mb-2"},"Most improved",-1)),n("div",Po,[(s(!0),a(O,null,oe(e(m).mostImproved,C=>(s(),w(M,{key:C.testRunsCaseId,to:`/test-run-cases/${C.testRunsCaseId}?tab=performance`,class:"flex items-center gap-2 text-sm hover:bg-green-50 dark:hover:bg-green-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[n("span",jo,o(C.pctChange)+"%",1),n("span",Do,o(C.title),1)]),_:2},1032,["to"]))),128))])])):g("",!0)])]),_:1})):g("",!0),e(m).slowestTests.length>0?(s(),w(c,{key:6,icon:"i-lucide-clock","icon-class":"text-amber-500",title:"Slowest tests"},{default:i(()=>[n("div",No,[(s(!0),a(O,null,oe(e(m).slowestTests,C=>(s(),w(M,{key:C.testRunsCaseId,to:`/test-run-cases/${C.testRunsCaseId}?tab=performance`,class:"flex items-center gap-2 text-sm hover:bg-amber-50 dark:hover:bg-amber-900/10 rounded px-1 -mx-1 transition-colors"},{default:i(()=>[n("div",Bo,o(C.title),1),n("div",Mo,o(B(C.duration)),1),n("div",Ao,[n("div",{class:"h-full rounded-full bg-amber-400",style:we({width:Math.min(100,C.duration/(e(m).slowestTests[0]?.duration||1)*100)+"%"})},null,4)])]),_:2},1032,["to"]))),128))])]),_:1})):g("",!0),e(m).workerImbalance.length>1?(s(),w(c,{key:7,icon:"i-lucide-users","icon-class":"text-gray-500",title:"Worker distribution"},{default:i(()=>[e(m).workerImbalanceWarning?(s(),a("div",Uo,[l(S,{name:"i-lucide-alert-triangle",class:"size-3.5 shrink-0"}),n("span",null,o(e(m).workerImbalanceWarning),1)])):g("",!0),n("div",Lo,[(s(!0),a(O,null,oe(e(m).workerImbalance,C=>(s(),a("div",{key:C.workerIndex,class:"flex-1 flex flex-col items-center gap-1"},[n("span",Eo,o(C.count),1),n("div",{class:"w-full bg-blue-400 rounded-t",style:we({height:Math.max(4,C.count/Math.max(...e(m).workerImbalance.map(L=>L.count))*60)+"px"})},null,4),n("span",Oo,"W"+o(C.workerIndex),1)]))),128))])]),_:1})):g("",!0),e(m).clusterNew.length>0?(s(),w(c,{key:8,icon:"i-lucide-layers","icon-class":"text-purple-500",title:"New failure clusters",count:e(m).clusterNew.length},{default:i(()=>[n("div",Ko,[(s(!0),a(O,null,oe(e(m).clusterNew,C=>(s(),w(M,{key:C.clusterId,to:`/failure-clusters/${C.clusterId}`,class:"flex items-center gap-2 text-sm text-primary hover:underline"},{default:i(()=>[n("span",Wo,o(C.signature),1)]),_:2},1032,["to"]))),128))])]),_:1},8,["count"])):g("",!0)])):(s(),a("div",Ja,[l(p,{icon:"i-lucide-git-compare-arrows",text:"No baseline run found"},{default:i(()=>[...F[2]||(F[2]=[n("p",{class:"text-sm text-muted max-w-sm text-center"}," Insights compare this run against the most recent passing run in the same project. No previous passing run exists yet — once you have at least two completed runs, comparisons will appear here automatically. ",-1)])]),_:1})])):(s(),a("div",Ya,[l(p,{text:"No insights yet"})]))}}}),Vo=Object.assign(Ho,{__name:"RunInsights"}),Go=me({__name:"ClusterDiagnosis",props:{clusterId:{}},setup(t){return(y,v)=>{const z=js;return s(),w(z,{"cluster-id":t.clusterId},null,8,["cluster-id"])}}}),Xo=Object.assign(Go,{__name:"ClusterDiagnosis"}),qo={class:"pt-4 space-y-3"},Yo={key:0,class:"flex items-center justify-center py-8 text-gray-500 gap-2"},Jo={class:"flex items-center justify-between gap-3"},Zo={class:"text-sm text-gray-500 dark:text-gray-400 inline-flex items-center gap-1"},Qo={class:"min-w-0 space-y-0.5"},el=["title"],tl={key:0,class:"text-xs text-gray-500 truncate block"},sl={class:"font-mono"},nl={key:1,class:"text-gray-400 text-xs"},al={key:1,class:"text-gray-400 text-xs"},ol={class:"text-sm tabular-nums"},ll={key:0,class:"flex flex-wrap gap-1"},il={key:1,class:"text-gray-400 text-xs"},rl={key:0,class:"flex items-center gap-1 text-xs text-gray-500"},ul={key:2,class:"text-gray-400 text-xs"},cl={key:0,class:"text-xs font-medium text-warning-500"},dl={key:1,class:"text-sm text-gray-500 whitespace-nowrap"},ml={key:0,class:"ml-1 text-xs text-gray-400"},fl={class:"flex justify-end gap-2"},pl={key:2,class:"flex flex-col items-center justify-center py-8 text-gray-500 gap-2"},gl=me({__name:"FailureGroups",props:{refreshKey:{}},emits:["selectCluster"],async setup(t,{emit:y}){let v,z;const T=y,m=t,u=Ke().params.id,{data:h,pending:N,refresh:B}=([v,z]=Le(()=>Ee(`/api/test-runs/${u}/failure-groups`,{lazy:!0,server:!1},"$MjXpKokGLu")),v=await v,z(),v);de(()=>m.refreshKey,(c,f)=>{c!==f&&c!==void 0&&B()});const P=W(null),{copy:F,copied:j}=ut(),K=I(()=>h.value?h.value.flatMap(c=>c.cases.filter(f=>!f.passedOnRetry).map(f=>({filePath:f.filePath,title:f.title,line:null,projectName:null}))):[]),U=I(()=>St(K.value));function p(){const c=U.value;c&&F(c,{toast:"Retry command copied"})}const S=[{accessorKey:"signature",header:ue("Signature")},{accessorKey:"errorType",header:ue("Type")},{accessorKey:"status",header:ue("Status")},{accessorKey:"caseCount",header:ue("Tests")},{accessorKey:"signals",header:"Signals"},{accessorKey:"diagnosis",header:"AI"},{accessorKey:"firstSeenRunId",header:ue("Known since")},{id:"actions",header:"Actions"}],$=I(()=>h.value?.reduce((c,f)=>c+f.caseCount,0)??0);return(c,f)=>{const M=ke,C=Ie,L=Ce,k=_e,G=Oe,Z=ct,se=Nt,Q=rt,le=Xo,E=Bt;return s(),a(O,null,[n("div",qo,[e(N)?(s(),a("div",Yo,[l(M,{name:"i-lucide-loader-2",class:"size-4 animate-spin"}),f[2]||(f[2]=n("span",null,"Grouping failures...",-1))])):e(h)&&e(h).length?(s(),a(O,{key:1},[n("div",Jo,[n("p",Zo,[_(o(e($))+" failing "+o(e($)===1?"test":"tests")+" across "+o(e(h).length)+" "+o(e(h).length===1?"group":"groups")+" ",1),l(C,{topic:"cluster.concept"})]),e(K).length>0?(s(),w(L,{key:0,size:"xs",variant:"outline",color:"neutral",icon:e(j)?"i-lucide-check":"i-lucide-play",title:e(j)?"Copied!":("copyPreview"in c?c.copyPreview:e(Rt))(e(U)),onClick:f[0]||(f[0]=D=>p())},{default:i(()=>[...f[3]||(f[3]=[_(" Copy retry command ",-1)])]),_:1},8,["icon","title"])):g("",!0)]),l(Q,{ui:{body:"p-0 sm:p-0"}},{default:i(()=>[l(se,{"min-width":"46rem",bleed:!1},{default:i(()=>[l(Z,{data:e(h),columns:S},{"actions-header":i(()=>[...f[4]||(f[4]=[n("div",{class:"text-right"},"Actions",-1)])]),"signature-cell":i(({row:D})=>[n("div",Qo,[n("span",{class:Y(["text-sm block truncate",D.original.title?"":"font-mono"]),title:D.original.signature},o(D.original.title||D.original.signature),11,el),D.original.selector?(s(),a("span",tl,[f[5]||(f[5]=_(" Locator: ",-1)),n("code",sl,o(D.original.selector),1)])):g("",!0)])]),"errorType-cell":i(({row:D})=>[D.original.errorType?(s(),w(k,{key:0,color:("clusterErrorTypeColor"in c?c.clusterErrorTypeColor:e($s))(D.original.errorType),variant:"subtle",size:"sm"},{default:i(()=>[_(o(D.original.errorType),1)]),_:2},1032,["color"])):(s(),a("span",nl,"—"))]),"status-cell":i(({row:D})=>[D.original.status?(s(),w(k,{key:0,color:("clusterStatusColor"in c?c.clusterStatusColor:e(_s))(D.original.status),variant:"subtle",size:"sm"},{default:i(()=>[_(o(D.original.status),1)]),_:2},1032,["color"])):(s(),a("span",al,"—"))]),"caseCount-cell":i(({row:D})=>[n("span",ol,o(D.original.caseCount),1)]),"signals-cell":i(({row:D})=>[D.original.isNew||D.original.flaky||D.original.workerCorrelated||D.original.locatorHealing?(s(),a("div",ll,[D.original.isNew?(s(),w(k,{key:0,color:"warning",variant:"subtle",size:"sm"},{default:i(()=>[...f[6]||(f[6]=[_(" New ",-1)])]),_:1})):g("",!0),D.original.flaky?(s(),w(k,{key:1,color:"warning",variant:"outline",size:"sm"},{default:i(()=>[...f[7]||(f[7]=[_(" Flaky ",-1)])]),_:1})):g("",!0),D.original.workerCorrelated?(s(),w(k,{key:2,color:"info",variant:"outline",size:"sm",title:"All failures ran on the same worker"},{default:i(()=>[...f[8]||(f[8]=[_(" Same worker ",-1)])]),_:1})):g("",!0),D.original.locatorHealing?.healed?(s(),w(k,{key:3,color:"success",variant:"subtle",size:"sm",icon:"i-lucide-circle-check",title:"The recommended locator already passes at this call site in a later run"},{default:i(()=>[...f[9]||(f[9]=[_(" Healed ",-1)])]),_:1})):D.original.locatorHealing?(s(),w(k,{key:4,color:"success",variant:"outline",size:"sm",icon:"i-lucide-bandage",title:`Locator fix available: ${D.original.locatorHealing.recommended} — open the cluster to apply it`},{default:i(()=>[...f[10]||(f[10]=[_(" Locator fix ",-1)])]),_:1},8,["title"])):g("",!0)])):(s(),a("span",il,"—"))]),"diagnosis-cell":i(({row:D})=>[D.original.diagnosis?.status==="running"?(s(),a("div",rl,[l(M,{name:"i-lucide-loader-2",class:"size-3 animate-spin"}),f[11]||(f[11]=_(" Running ",-1))])):D.original.diagnosis?.status==="completed"&&D.original.diagnosis.category?(s(),w(k,{key:1,color:"neutral",variant:"subtle",size:"sm",class:"gap-1"},{default:i(()=>[l(M,{name:"i-lucide-sparkles",class:"size-3"}),_(" "+o(D.original.diagnosis.category),1)]),_:2},1024)):(s(),a("span",ul,"—"))]),"firstSeenRunId-cell":i(({row:D})=>[D.original.isNew?(s(),a("span",cl,"New in this run")):(s(),a("div",dl,[l(G,{to:`/test-runs/${D.original.firstSeenRunId}`,class:"text-primary hover:underline"},{default:i(()=>[_(" run #"+o(D.original.firstSeenRunId),1)]),_:2},1032,["to"]),D.original.firstSeenAt?(s(),a("span",ml," ("+o(("formatRelativeTime"in c?c.formatRelativeTime:e(it))(D.original.firstSeenAt))+") ",1)):g("",!0)]))]),"actions-cell":i(({row:D})=>[n("div",fl,[l(L,{size:"sm",color:"primary",variant:"soft",onClick:ve=>T("selectCluster",D.original.clusterId)},{default:i(()=>[...f[12]||(f[12]=[_(" Filter ",-1)])]),_:1},8,["onClick"]),l(L,{size:"sm",color:"neutral",variant:"outline",icon:"i-lucide-sparkles",onClick:ve=>P.value=D.original.clusterId},{default:i(()=>[...f[13]||(f[13]=[_(" Diagnose ",-1)])]),_:1},8,["onClick"]),l(L,{to:`/failure-clusters/${D.original.clusterId}`,size:"sm",variant:"outline","trailing-icon":"i-lucide-arrow-right"},{default:i(()=>[...f[14]||(f[14]=[_(" View ",-1)])]),_:1},8,["to"])])]),_:1},8,["data"])]),_:1})]),_:1})],64)):(s(),a("div",pl,[l(M,{name:"i-lucide-party-popper",class:"size-6"}),f[15]||(f[15]=n("span",null,"No failure groups — failed tests without error details are not grouped",-1))]))]),l(E,{open:e(P)!==null,title:"AI Diagnosis",ui:{content:"max-w-2xl"},"onUpdate:open":f[1]||(f[1]=D=>{D||(P.value=null)})},{body:i(()=>[e(P)!==null?(s(),w(le,{key:0,"cluster-id":e(P)},null,8,["cluster-id"])):g("",!0)]),_:1},8,["open"])],64)}}}),xl=Object.assign(gl,{__name:"FailureGroups"}),yl={class:"pt-4"},hl={key:2,class:"space-y-4"},vl={class:"flex flex-wrap items-center gap-2 text-sm"},kl={class:"text-gray-500 inline-flex items-center gap-1"},bl={key:0,class:"text-gray-400"},wl={key:0,class:"flex flex-wrap items-center gap-2"},_l={class:"text-sm text-gray-500"},$l={key:1,class:"flex items-center gap-2"},Cl={class:"text-sm text-gray-500"},Tl={class:"space-y-3"},Rl={class:"flex items-center gap-2 text-sm font-medium"},zl={class:"flex flex-wrap items-center gap-2 text-sm font-mono"},Sl={key:0,class:"text-xs text-gray-400 font-sans"},Il={class:"flex flex-wrap items-center gap-2"},Fl={class:"flex items-center gap-1.5 flex-1 min-w-0"},Pl={class:"flex-1 text-xs bg-gray-100 dark:bg-gray-800 px-3 py-1.5 rounded font-mono truncate select-all"},jl={key:3,class:"text-sm text-gray-500 flex items-center gap-2"},Dl={class:"px-4 py-3 text-sm font-medium flex items-center gap-2 border-b border-default"},Nl={class:"overflow-x-auto"},Bl={class:"w-full min-w-[36rem] text-sm"},Ml={class:"px-4 py-2 text-gray-500"},Al={class:"px-4 py-2 font-mono text-xs"},Ul={key:0,class:"text-green-700 dark:text-green-400"},Ll={key:1,class:"text-gray-400"},El={class:"px-4 py-2 font-mono text-xs"},Ol={key:0,class:"text-red-700 dark:text-red-400"},Kl={key:1,class:"text-gray-400"},Wl=me({__name:"RegressionContext",props:{refreshKey:{}},async setup(t){let y,v;const T=Ke().params.id,m=t,{data:R,pending:u,refresh:h}=([y,v]=Le(()=>Ee(`/api/test-runs/${T}/regression-context`,{lazy:!0,server:!1},"$bK54nhbSza")),y=await y,v(),y);de(()=>m.refreshKey,(F,j)=>{F!==j&&F!==void 0&&h()});const{copy:N,copied:B}=ut();function P(){N(R.value?.commitRange?.gitCommand)}return(F,j)=>{const K=jt,U=Dt,p=ke,S=Ie,$=Oe,c=_e,f=Ce,M=rt;return s(),a("div",yl,[e(u)?(s(),w(K,{key:0,text:"Looking for last passing run…"})):e(R)?.hasGreen?(s(),a("div",hl,[n("div",vl,[l(p,{name:"i-lucide-circle-check",class:"size-4 text-green-500 shrink-0"}),n("span",kl,[j[0]||(j[0]=_("Last passing run: ",-1)),l(S,{topic:"run.regression"})]),l($,{to:`/test-runs/${e(R).lastGreenRunId}`,class:"font-medium text-primary hover:underline"},{default:i(()=>[_(" Run #"+o(e(R).lastGreenRunId),1)]),_:1},8,["to"]),e(R).lastGreenRunAt?(s(),a("span",bl," ("+o(("formatRelativeTime"in F?F.formatRelativeTime:e(it))(e(R).lastGreenRunAt))+") ",1)):g("",!0)]),(e(R).newFailures??0)>0?(s(),a("div",wl,[l(c,{color:"error",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(R).newFailures)+" new "+o(e(R).newFailures===1?"failure":"failures"),1)]),_:1}),n("span",_l,o(e(R).newFailures===1?"test":"tests")+" that "+o((e(R).newFailures===1,"passed"))+" in run #"+o(e(R).lastGreenRunId)+" but "+o(e(R).newFailures===1?"fails":"fail")+" here ",1)])):(s(),a("div",$l,[l(c,{color:"warning",variant:"soft",size:"lg"},{default:i(()=>[...j[1]||(j[1]=[_(" No new regressions ",-1)])]),_:1}),n("span",Cl,"All failing tests were also failing before run #"+o(e(R).lastGreenRunId),1)])),e(R).commitRange?(s(),w(M,{key:2,ui:{body:"p-4 sm:p-4"}},{default:i(()=>[n("div",Tl,[n("div",Rl,[l(p,{name:"i-lucide-git-commit-horizontal",class:"size-4"}),j[2]||(j[2]=_(" Commits introduced since last passing run ",-1))]),n("div",zl,[l(c,{color:"success",variant:"soft",size:"sm"},{default:i(()=>[_(o(e(R).commitRange.fromShort),1)]),_:1}),l(p,{name:"i-lucide-arrow-right",class:"size-3 text-gray-400"}),l(c,{color:"error",variant:"soft",size:"sm"},{default:i(()=>[_(o(e(R).commitRange.toShort),1)]),_:1}),e(R).currentBranch||e(R).lastGreenBranch?(s(),a("span",Sl," on "+o(e(R).currentBranch||e(R).lastGreenBranch),1)):g("",!0)]),n("div",Il,[e(R).commitRange.compareUrl?(s(),w(f,{key:0,to:e(R).commitRange.compareUrl,target:"_blank",external:"",icon:"i-lucide-external-link",size:"sm",variant:"soft",color:"primary"},{default:i(()=>[...j[3]||(j[3]=[_(" View commits ",-1)])]),_:1},8,["to"])):g("",!0),n("div",Fl,[n("code",Pl,o(e(R).commitRange.gitCommand),1),l(f,{icon:e(B)?"i-lucide-check":"i-lucide-clipboard",size:"xs",color:"neutral",variant:"ghost",title:e(B)?"Copied!":"Copy git command",onClick:P},null,8,["icon","title"])])])])]),_:1})):!e(R).currentCommit||!e(R).lastGreenCommit?(s(),a("div",jl,[l(p,{name:"i-lucide-git-branch",class:"size-4 shrink-0"}),j[4]||(j[4]=_(" No commit info available — enable ",-1)),j[5]||(j[5]=n("code",{class:"font-mono text-xs"},"collectScmInfo: true",-1)),j[6]||(j[6]=_(" in the reporter to see commit ranges ",-1))])):g("",!0),e(R).metadataDiff&&e(R).metadataDiff.length>0?(s(),w(M,{key:4,ui:{body:"p-0 sm:p-0"}},{default:i(()=>[n("div",Dl,[l(p,{name:"i-lucide-sliders-horizontal",class:"size-4"}),j[7]||(j[7]=_(" What changed between runs ",-1))]),n("div",Nl,[n("table",Bl,[j[8]||(j[8]=n("thead",null,[n("tr",{class:"text-xs text-gray-500 uppercase tracking-wider border-b border-default"},[n("th",{class:"text-left px-4 py-2 font-medium w-32"},"Field"),n("th",{class:"text-left px-4 py-2 font-medium"},"Last passing"),n("th",{class:"text-left px-4 py-2 font-medium"},"This run")])],-1)),n("tbody",null,[(s(!0),a(O,null,oe(e(R).metadataDiff,C=>(s(),a("tr",{key:C.key,class:"border-b last:border-b-0 border-default"},[n("td",Ml,o(C.label),1),n("td",Al,[C.before?(s(),a("span",Ul,o(C.before),1)):(s(),a("span",Ll,"—"))]),n("td",El,[C.after?(s(),a("span",Ol,o(C.after),1)):(s(),a("span",Kl,"—"))])]))),128))])])])]),_:1})):g("",!0)])):(s(),w(U,{key:1,icon:"i-lucide-history",text:"No previous passing run found for this project"}))])}}}),Hl=Object.assign(Wl,{__name:"RegressionContext"}),Vl={class:"flex items-center justify-between mb-2"},Gl={class:"text-xs text-gray-500 inline-flex items-center gap-1"},Xl={class:"flex items-center gap-1"},ql={class:"p-2 flex flex-col gap-2 min-w-56"},Yl=me({__name:"TimelineHeader",props:{workerCount:{},shardTotal:{},testCount:{},hookCount:{},waitCount:{},spanTypes:{},live:{type:Boolean}},emits:["reset","toggleSpan"],setup(t){return(y,v)=>{const z=Ie,T=Ce,m=It,R=at;return s(),a("div",Vl,[n("span",Gl,[n("span",null,[_(o(t.workerCount)+" worker"+o(t.workerCount>1?"s":"")+" ",1),t.shardTotal&&t.shardTotal>1?(s(),a(O,{key:0},[_(" · "+o(t.shardTotal)+" shard"+o(t.shardTotal>1?"s":""),1)],64)):g("",!0),_(" · "+o(t.testCount)+" tests ",1),t.hookCount>0?(s(),a(O,{key:1},[_(" · "+o(t.hookCount)+" hooks ",1)],64)):g("",!0),t.waitCount>0?(s(),a(O,{key:2},[_(" · "+o(t.waitCount)+" waits ",1)],64)):g("",!0)]),l(z,{topic:"run.timeline"})]),n("div",Xl,[t.spanTypes.length>1?(s(),w(R,{key:0,content:{align:"end"}},{content:i(()=>[n("div",ql,[(s(!0),a(O,null,oe(t.spanTypes,u=>(s(),w(m,{key:u.key,"model-value":u.checked,label:u.label,"onUpdate:modelValue":h=>y.$emit("toggleSpan",u.key,h===!0)},null,8,["model-value","label","onUpdate:modelValue"]))),128))])]),default:i(()=>[l(T,{size:"xs",color:"neutral",variant:"ghost",icon:"i-lucide-list-filter","trailing-icon":"i-lucide-chevron-down",title:"Show or hide span types"},{default:i(()=>[...v[1]||(v[1]=[_(" Span types ",-1)])]),_:1})]),_:1})):g("",!0),t.live?g("",!0):(s(),w(T,{key:1,size:"xs",color:"neutral",variant:"ghost",icon:"i-lucide-rotate-ccw",onClick:v[0]||(v[0]=u=>y.$emit("reset"))},{default:i(()=>[...v[2]||(v[2]=[_(" Reset view ",-1)])]),_:1}))])])}}}),Jl=Object.assign(Yl,{__name:"TimelineHeader"}),qe={barHeight:24,rowGap:8,labelWidth:80,sidePadding:16,axisHeight:28,get rowHeight(){return this.barHeight+this.rowGap}},Zl={passed:"#16a34a",failed:"#dc2626",timedOut:"#ea580c",running:"#2563eb",initialising:"#2563eb",skipped:"#9ca3af",cancelled:"#a1a1aa",interrupted:"#ea580c",flaky:"#ca8a04"},je={fill:"#facc15",stroke:"#ca8a04",swatch:"#f59e0b"};function Je(t){return Zl[t]||"#a1a1aa"}function At(t){return Je(t)+"66"}function Ut(t){return Je(t)}function Ye(t){return t<1e3?`${t}ms`:t<6e4?`${(t/1e3).toFixed(1)}s`:`${Math.floor(t/6e4)}m ${Math.floor(t%6e4/1e3)}s`}const Ql=["y","width","height"],ei=["y1","x2","y2"],ti=["x1","y1","x2","y2"],si=["x1","y1","x2","y2"],ni=["x","y"],ai=["y"],oi=me({__name:"TimelineGrid",props:{workerRows:{},shardGroups:{},tickMarks:{},contentWidth:{},shardTotal:{}},setup(t){const{barHeight:y,rowGap:v,axisHeight:z,rowHeight:T}=qe;return(m,R)=>(s(),a("g",null,[(s(!0),a(O,null,oe(t.workerRows,(u,h)=>(s(),a("rect",{key:"bg-"+h,x:0,y:h*e(T)+e(z),width:t.contentWidth,height:e(T),class:Y(h%2===1?"fill-black/[0.03] dark:fill-white/[0.03]":"fill-transparent")},null,10,Ql))),128)),(s(!0),a(O,null,oe(t.shardGroups.slice(1),u=>(s(),a("line",{key:"shard-sep-"+u.rowRange[0],x1:0,y1:u.rowRange[0]*e(T)+e(z)-e(v)/2,x2:t.contentWidth,y2:u.rowRange[0]*e(T)+e(z)-e(v)/2,stroke:"currentColor","stroke-dasharray":"4,3",class:"stroke-gray-400 dark:stroke-gray-500"},null,8,ei))),128)),n("line",{x1:e(qe).labelWidth,y1:e(z),x2:t.contentWidth,y2:e(z),stroke:"currentColor",class:"stroke-gray-300 dark:stroke-gray-600"},null,8,ti),(s(!0),a(O,null,oe(t.tickMarks,u=>(s(),a("g",{key:u.ms},[n("line",{x1:u.x,y1:e(z)-4,x2:u.x,y2:e(z),stroke:"currentColor",class:"stroke-gray-300 dark:stroke-gray-600"},null,8,si),n("text",{x:u.x,y:e(z)-8,"text-anchor":"middle",class:"fill-gray-400 text-[10px]"},o(u.label),9,ni)]))),128)),(s(!0),a(O,null,oe(t.workerRows,(u,h)=>(s(),a("text",{key:"label-"+h,x:6,y:h*e(T)+e(z)+e(y)/2+4,class:"fill-gray-500 text-[11px] font-medium"},o(u.shardIndex!=null&&t.shardTotal&&t.shardTotal>1?`S${u.shardIndex} W${u.workerIndex}`:`Worker ${u.workerIndex}`),9,ai))),128))]))}}),li=Object.assign(oi,{__name:"TimelineGrid"}),ii=["x","y","width","height","fill","stroke"],ri=["x","y"],ui=["x","y","width","height","fill","stroke"],ci=["x1","y1","x2","y2","stroke"],di=["x1","y1","x2","y2","stroke"],mi=["x","y"],fi=["cx","cy"],pi=["cx","cy"],gi=["x","y","width","height","fill"],xi=["x","y"],yi=me({__name:"TimelineBar",props:{item:{},x:{},y:{},width:{}},emits:["select","hover","move","leave"],setup(t,{emit:y}){const v=t,z=y,{barHeight:T}=qe,m=I(()=>["setup","hook","fixture"].includes(v.item.kind)),R=I(()=>v.item.testCaseId!=null),u=I(()=>R.value?"cursor-pointer":"cursor-default");function h(){v.item.testCaseId!=null&&z("select",v.item.testCaseId)}return(N,B)=>(s(),a("g",{class:"timeline-bar-group",onMouseenter:B[0]||(B[0]=P=>z("hover",t.item,P)),onMousemove:B[1]||(B[1]=P=>z("move",P)),onMouseleave:B[2]||(B[2]=P=>z("leave"))},[m.value?(s(),a(O,{key:0},[n("rect",{x:t.x,y:t.y,width:t.width,height:e(T),rx:3,ry:3,fill:e(At)(t.item.status),stroke:e(Ut)(t.item.status),"stroke-width":"1","stroke-dasharray":"3,2",class:Y(["timeline-bar-shape transition-opacity duration-100 opacity-80",u.value]),onClick:h},null,10,ii),t.width>60?(s(),a("text",{key:0,x:t.x+4,y:t.y+e(T)/2+4,class:"fill-gray-600 dark:fill-gray-300 text-[9px] font-medium pointer-events-none"},o(t.item.title),9,ri)):g("",!0)],64)):t.item.kind==="wait"?(s(),a(O,{key:1},[n("rect",{x:t.x,y:t.y-3,width:t.width,height:e(T)+6,rx:2,ry:2,fill:e(je).fill,"fill-opacity":"0.28",stroke:e(je).stroke,"stroke-width":"1.5",class:Y(["timeline-bar-shape transition-opacity duration-100 opacity-90",u.value]),onClick:h},null,10,ui),t.width>4?(s(),a("line",{key:0,x1:t.x+1,y1:t.y-3,x2:t.x+t.width-1,y2:t.y+e(T)+3,stroke:e(je).stroke,"stroke-width":"1","stroke-opacity":"0.25",class:"pointer-events-none"},null,8,ci)):g("",!0),t.width>4?(s(),a("line",{key:1,x1:t.x+t.width-1,y1:t.y-3,x2:t.x+1,y2:t.y+e(T)+3,stroke:e(je).stroke,"stroke-width":"1","stroke-opacity":"0.25",class:"pointer-events-none"},null,8,di)):g("",!0),t.width>50?(s(),a("text",{key:2,x:t.x+4,y:t.y+e(T)/2+4,class:"fill-yellow-800 dark:fill-yellow-200 text-[9px] font-bold pointer-events-none"}," wasted "+o(e(Ye)(t.item.duration)),9,mi)):g("",!0)],64)):t.item.status==="running"?(s(),a(O,{key:2},[n("circle",{cx:t.x+6,cy:t.y+e(T)/2,r:"3",fill:"#2563eb",filter:"url(#glow)",class:"timeline-bar-shape transition-opacity duration-100 cursor-pointer opacity-90",onClick:h},null,8,fi),n("circle",{cx:t.x+6,cy:t.y+e(T)/2,r:"5",fill:"none",stroke:"#2563eb","stroke-width":"1.5","stroke-opacity":"0.4",filter:"url(#glow)",class:"timeline-bar-shape transition-opacity duration-100 cursor-pointer opacity-90",onClick:h},null,8,pi)],64)):(s(),a(O,{key:3},[n("rect",{x:t.x,y:t.y,width:t.width,height:e(T),rx:3,ry:3,fill:e(Je)(t.item.status),class:"timeline-bar-shape transition-opacity duration-100 cursor-pointer opacity-90",onClick:h},null,8,gi),t.width>40?(s(),a("text",{key:0,x:t.x+4,y:t.y+e(T)/2+4,class:"fill-white text-[10px] font-medium pointer-events-none"},o(e(Ye)(t.item.duration)),9,xi)):g("",!0)],64))],32))}}),hi=Object.assign(yi,{__name:"TimelineBar"}),vi={class:"flex items-center gap-2 mb-1"},ki={class:"font-medium text-gray-900 dark:text-white max-w-64 truncate"},bi={class:"flex items-center gap-3 text-gray-500"},wi={class:"capitalize"},_i={key:0,class:"italic truncate max-w-48"},$i=340,Ci=me({__name:"TimelineTooltip",props:{item:{},pos:{}},setup(t){const y=t,v=I(()=>{const T=y.item;return T?T.kind==="test"?{backgroundColor:Je(T.status)}:T.kind==="wait"?{backgroundColor:je.swatch+"66",borderColor:je.swatch}:{backgroundColor:At(T.status),borderColor:Ut(T.status)}:{}}),z=I(()=>{const{x:T,y:m}=y.pos;if(typeof window>"u")return{left:`${T+12}px`,top:`${m-10}px`};const R=T+12+$i>window.innerWidth,u=m+90>window.innerHeight;return{left:R?void 0:`${T+12}px`,right:R?`${window.innerWidth-T+12}px`:void 0,top:u?void 0:`${m-10}px`,bottom:u?`${window.innerHeight-m+10}px`:void 0}});return(T,m)=>(s(),w(is,{to:"body"},[t.item?(s(),a("div",{key:0,class:"fixed z-[9999] pointer-events-none rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 px-3 py-2 text-xs shadow-lg",style:we(z.value)},[n("div",vi,[n("span",{class:Y(["inline-block size-2.5 rounded-full shrink-0",{"border border-dashed":t.item.kind!=="test"}]),style:we(v.value)},null,6),n("span",ki,[t.item.kind!=="test"?(s(),a("span",{key:0,class:Y(["uppercase text-[10px] tracking-wider mr-1",t.item.kind==="wait"?"text-amber-500":"text-gray-500"])},o(t.item.kind),3)):g("",!0),_(" "+o(t.item.title),1)])]),n("div",bi,[n("span",wi,o(t.item.status),1),n("span",null,o(e(Ye)(t.item.duration)),1),n("span",null,"Worker "+o(t.item.workerIndex),1),t.item.parentTitle?(s(),a("span",_i," for "+o(t.item.parentTitle),1)):g("",!0)])],4)):g("",!0)]))}}),Ti=Object.assign(Ci,{__name:"TimelineTooltip"}),Ri=["Wait for timeout*","*waitForTimeout*"];function zi(t){const y=t.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${y}$`,"i")}const yt=new Map;function Si(t){let y=yt.get(t);return y||(y=zi(t),yt.set(t,y)),y}function Ii(t,y){if(!y||y.length===0)return!1;const v=t.title??"",z=t.location??"";for(const T of y){const m=Si(T);if(m.test(v)||z&&m.test(z))return!0}return!1}function Fi(t){const y=new Map;for(const v of t){const z=v.workerIndex;if(z==null||z<0)continue;const T=v.shardIndex??null,m=`${T??"null"}|${z}`;let R=y.get(m);R||(R={shardIndex:T,workerIndex:z,cases:[]},y.set(m,R)),R.cases.push(v)}return[...y.values()].sort((v,z)=>{const T=v.shardIndex??1/0,m=z.shardIndex??1/0;return T!==m?T-m:v.workerIndex-z.workerIndex})}function Ve(t){if(t==null)return null;if(typeof t=="number")return Number.isFinite(t)?t:null;if(t instanceof Date)return t.getTime();const y=new Date(t).getTime();return Number.isNaN(y)?null:y}function Pi(t,y){return t.category==="wait"?Ii(t,y)?"wait":null:t.category==="hook"||t.category==="fixture"?t.category:null}function ji(t){const y=I(()=>t.wastedPatterns&&t.wastedPatterns.length>0?t.wastedPatterns:Ri),v=I(()=>Fi(t.testCases)),z=I(()=>{const u=v.value,h=y.value;let N=1/0;for(const K of u)for(const U of K.cases){const p=Ve(U.startedAt);p!=null&&p>0&&(N=Math.min(N,p))}const B=Number.isFinite(N),P=K=>Math.max(0,(Ve(K)??N)-N),F=[],j=new Map;if(u.forEach((K,U)=>{const p=[],S=B?K.cases:[...K.cases].sort((c,f)=>(Ve(c.startedAt)??0)-(Ve(f.startedAt)??0));let $=0;for(const c of S){const f=c.duration??1e3,M=B?P(c.startedAt):$;p.push({key:`t${c.id}`,kind:"test",testCaseId:c.id,title:c.title,status:c.status,workerIndex:K.workerIndex,start:M,duration:f,rowIndex:U}),$=M+f,(c.stepEvents??[]).forEach((L,k)=>{const G=Pi(L,h);if(!G)return;const Z=L.duration||0,se=B?P(L.startedAt):$;p.push({key:`s${c.id}:${k}`,kind:G,testCaseId:c.id,title:L.title,status:L.status||"passed",workerIndex:K.workerIndex,start:se,duration:Z,rowIndex:U,parentTitle:c.title}),$=se+Z})}p.sort((c,f)=>c.start-f.start),F.push(...p),j.has(K.workerIndex)||j.set(K.workerIndex,$)}),t.setupSteps&&t.setupSteps.length>0){const K=new Map;u.forEach((U,p)=>{K.has(U.workerIndex)||K.set(U.workerIndex,p)}),t.setupSteps.forEach((U,p)=>{const S=U.workerIndex;if(S==null||S<0)return;const $=K.get(S);if($==null)return;const c=U.duration||0;let f;B?f=P(U.startedAt):(f=j.get(S)??0,j.set(S,f+c)),F.push({key:`setup${S}:${p}`,kind:"setup",testCaseId:null,title:`[Setup] ${U.title}`,status:U.status||"passed",workerIndex:S,start:f,duration:c,rowIndex:$,parentTitle:null})})}return F}),T=I(()=>v.value.map(u=>({shardIndex:u.shardIndex,workerIndex:u.workerIndex}))),m=I(()=>{const u=[];for(let h=0;h<T.value.length;h++){const N=T.value[h],B=u[u.length-1];!B||B.shardIndex!==N.shardIndex?u.push({shardIndex:N.shardIndex,rowRange:[h,h]}):B.rowRange[1]=h}return u}),R=I(()=>{let u=0;for(const h of z.value)u=Math.max(u,h.start+h.duration);return u||6e4});return{timelineData:z,workerRows:T,shardGroups:m,maxTime:R}}const ht=1.12,Di=10,Ni=100,et=[10,20,50,100,200,500,1e3,2e3,5e3,1e4,15e3,3e4,6e4,12e4,3e5,6e5,9e5,18e5,36e5];function Bi(t){const{containerRef:y,maxTime:v,rowCount:z,hasData:T,live:m}=t,{labelWidth:R,sidePadding:u,axisHeight:h,rowHeight:N}=qe,B=W(1),P=W(0),F=W(!1),j=W(0),K=W(0),U=I(()=>.5*B.value),p=I(()=>v.value*U.value+R+u),S=I(()=>z.value*N+h);function $(b){return b.start*U.value+R}function c(b){return Math.max(b.duration*U.value,3)}function f(b){return b.rowIndex*N+h}function M(){const b=y.value?.clientWidth;if(!b||v.value<=0)return 1;const H=(b-R)/v.value;return Math.min(1,H/.5)}function C(){const b=M();b>0&&(B.value=b,P.value=0)}function L(b){if(!y.value)return b;const H=y.value.clientWidth;return p.value<=H?0:Math.max(H-p.value,Math.min(0,b))}function k(b,H){const ne=Math.max(M(),Math.min(Di,b)),ee=ne/B.value;B.value=ne,P.value=L(H-(H-P.value)*ee)}const G=I(()=>{const b=Ni/U.value;let H=et.find(ee=>ee>=b)??et[et.length-1];for(;v.value/H>1e3;)H*=2;const ne=[];for(let ee=0;ee<=v.value;ee+=H)ne.push({ms:ee,x:ee*U.value+R,label:Ye(ee)});return ne});function Z(b){if(m())return;const H=b.deltaY>0?1/ht:ht,ne=y.value?.getBoundingClientRect();k(B.value*H,ne?b.clientX-ne.left:0)}const se=4,Q=new Map;let le=null,E=0,D=1,ve=0;function fe(b,H){le=b,j.value=H,K.value=P.value}function r(b){if(!m()&&!(b.pointerType==="mouse"&&b.button!==0)){if(Q.set(b.pointerId,{x:b.clientX,y:b.clientY}),Q.size===1)fe(b.pointerId,b.clientX);else if(Q.size===2){le=null,F.value=!1;for(const xe of Q.keys())y.value?.setPointerCapture?.(xe);const[H,ne]=[...Q.values()];E=Math.hypot(H.x-ne.x,H.y-ne.y)||1,D=B.value;const ee=y.value?.getBoundingClientRect();ve=(H.x+ne.x)/2-(ee?.left??0)}b.preventDefault()}}function d(b){if(!(m()||!Q.has(b.pointerId))){if(Q.set(b.pointerId,{x:b.clientX,y:b.clientY}),Q.size>=2){const[H,ne]=[...Q.values()],ee=Math.hypot(H.x-ne.x,H.y-ne.y)||1;k(D*(ee/E),ve);return}F.value?P.value=L(K.value+(b.clientX-j.value)):le===b.pointerId&&Math.abs(b.clientX-j.value)>se&&(y.value?.setPointerCapture?.(b.pointerId),F.value=!0,P.value=L(K.value+(b.clientX-j.value)))}}function X(b){if(Q.delete(b.pointerId),le===b.pointerId&&(le=null),y.value?.releasePointerCapture?.(b.pointerId),Q.size===1){const[H]=[...Q.entries()];fe(H[0],H[1].x)}else Q.size===0&&(F.value=!1)}function te(){C()}let J=null;return kt(()=>{Ne(C),y.value&&(J=new ResizeObserver(()=>C()),J.observe(y.value))}),bt(()=>{J?.disconnect()}),de(()=>[m(),T.value,v.value,z.value],([b,H])=>{b&&H&&Ne(C)}),{panX:P,isPanning:F,pxPerMs:U,contentWidth:p,contentHeight:S,getBarX:$,getBarWidth:c,getBarTop:f,tickMarks:G,onWheel:Z,onPointerDown:r,onPointerMove:d,onPointerUp:X,resetView:te}}const Mi={key:0,class:"relative select-none"},Ai=["width","height"],Ui={key:1,class:"text-center py-10 text-gray-500"},Li=me({__name:"WorkersTimeline",props:{testCases:{},setupSteps:{},shardTotal:{},live:{type:Boolean},wastedPatterns:{}},emits:["selectTestCase"],setup(t,{emit:y}){const v=t,z=y,{timelineData:T,workerRows:m,shardGroups:R,maxTime:u}=ji(v),h=W(null),N=I(()=>m.value.length),B=I(()=>T.value.length>0),{panX:P,isPanning:F,contentWidth:j,contentHeight:K,getBarX:U,getBarWidth:p,getBarTop:S,tickMarks:$,onWheel:c,onPointerDown:f,onPointerMove:M,onPointerUp:C,resetView:L}=Bi({containerRef:h,maxTime:u,rowCount:N,hasData:B,live:()=>v.live}),k=I(()=>T.value.filter(J=>J.kind==="test").length),G=I(()=>T.value.filter(J=>J.kind!=="test"&&J.kind!=="wait").length),Z=I(()=>T.value.filter(J=>J.kind==="wait").length),se=["test","setup","hook","fixture","wait"],Q={test:"Tests",setup:"Setup (beforeAll/afterAll)",hook:"Hooks",fixture:"Fixtures",wait:"Wasted waits"},le=W({}),E=I(()=>T.value.filter(J=>!le.value[J.kind])),D=I(()=>{const J=new Set(T.value.map(b=>b.kind));return se.filter(b=>J.has(b)).map(b=>({key:b,label:Q[b],checked:!le.value[b]}))});function ve(J,b){le.value={...le.value,[J]:!b}}const fe=W(null),r=W({x:0,y:0});de(E,J=>{fe.value&&(fe.value=J.find(b=>b.key===fe.value.key)??null)});function d(J,b){fe.value=J,r.value={x:b.clientX,y:b.clientY}}function X(J){r.value={x:J.clientX,y:J.clientY}}function te(){fe.value=null}return(J,b)=>{const H=Jl,ne=li,ee=hi,xe=Ti,be=ke;return e(T).length>0?(s(),a("div",Mi,[l(H,{"worker-count":e(m).length,"shard-total":t.shardTotal,"test-count":k.value,"hook-count":G.value,"wait-count":Z.value,"span-types":D.value,live:t.live,onToggleSpan:ve,onReset:e(L)},null,8,["worker-count","shard-total","test-count","hook-count","wait-count","span-types","live","onReset"]),n("div",{ref_key:"containerRef",ref:h,class:Y(["relative overflow-hidden rounded-lg border border-gray-200 dark:border-gray-700 touch-pan-y",{"cursor-grab":!e(F),"cursor-grabbing":e(F)}]),style:we({height:e(K)+"px"}),onWheel:b[1]||(b[1]=Ue((...ae)=>e(c)&&e(c)(...ae),["prevent"])),onPointerdown:b[2]||(b[2]=(...ae)=>e(f)&&e(f)(...ae)),onPointermove:b[3]||(b[3]=(...ae)=>e(M)&&e(M)(...ae)),onPointerup:b[4]||(b[4]=(...ae)=>e(C)&&e(C)(...ae)),onPointercancel:b[5]||(b[5]=(...ae)=>e(C)&&e(C)(...ae)),onPointerleave:b[6]||(b[6]=(...ae)=>e(C)&&e(C)(...ae))},[(s(),a("svg",{class:"overflow-visible",style:we({transform:`translateX(${e(P)}px)`}),width:e(j),height:e(K)},[b[7]||(b[7]=n("defs",null,[n("filter",{id:"glow"},[n("feGaussianBlur",{stdDeviation:"2.5",result:"blur"}),n("feMerge",null,[n("feMergeNode",{in:"blur"}),n("feMergeNode",{in:"SourceGraphic"})])])],-1)),l(ne,{"worker-rows":e(m),"shard-groups":e(R),"tick-marks":e($),"content-width":e(j),"shard-total":t.shardTotal},null,8,["worker-rows","shard-groups","tick-marks","content-width","shard-total"]),(s(!0),a(O,null,oe(E.value,ae=>(s(),w(ee,{key:ae.key,item:ae,x:e(U)(ae),y:e(S)(ae),width:e(p)(ae),onSelect:b[0]||(b[0]=he=>z("selectTestCase",he)),onHover:d,onMove:X,onLeave:te},null,8,["item","x","y","width"]))),128))],12,Ai))],38),l(xe,{item:fe.value,pos:r.value},null,8,["item","pos"])])):(s(),a("div",Ui,[l(be,{name:"i-lucide-rows-3",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),b[8]||(b[8]=n("p",null,"No worker data available for this run.",-1))]))}}}),Ei=Object.assign(Li,{__name:"WorkersTimeline"}),Oi={key:0,class:"space-y-4"},Ki={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},Wi={class:"flex items-center gap-2 py-1.5"},Hi={class:"font-medium"},Vi={key:0,class:"flex"},Gi={key:1,class:"flex items-center justify-center py-6 text-gray-500 gap-2"},Xi={class:"flex flex-wrap gap-2 mt-1"},qi={class:"flex flex-wrap gap-4 text-sm"},Yi={key:3,class:"text-sm text-gray-500"},Ji={class:"flex flex-wrap gap-4 text-sm"},Zi={key:0,class:"text-gray-400"},Qi={key:0,class:"text-gray-400"},er={key:1,class:"text-gray-400"},tr={key:1,class:"text-gray-400"},sr={key:0,class:"text-gray-400"},nr={key:0,class:"text-gray-400"},ar={key:4,class:"text-center py-8 text-gray-500"},or={key:5,class:"text-center py-8 text-gray-500"},lr={key:1,class:"text-center py-10 text-gray-500"},ir=me({__name:"RunCompare",props:{testRun:{}},setup(t){const y=t,z=Ke().params.id,T=W(null),m=W([]),R=I(()=>y.testRun?.status==="running"||y.testRun?.status==="finalizing");de(()=>y.testRun?.projectId,async $=>{if(!(!$||R.value)){try{T.value=await $fetch(`/api/projects/${$}`)}catch(c){console.error("Failed to fetch project for RunCompare",c)}try{const c=await $fetch(`/api/projects/${$}/markers`);m.value=c.markers??[]}catch{}}},{immediate:!0});const u=I(()=>{if(!P.value||!y.testRun)return[];const $=new Date(P.value.startTime).getTime(),c=new Date(y.testRun.startTime).getTime(),f=Math.min($,c),M=Math.max($,c),C=new Set([P.value.environment,y.testRun.environment].filter(L=>L!=null));return m.value.filter(L=>{const k=new Date(L.occurredAt).getTime();return k<=f||k>=M?!1:L.environment==null||C.has(L.environment)})}),h=I(()=>T.value?.testRuns?T.value.testRuns.filter($=>$.id!==Number(z)).slice(0,50).map($=>({label:`Run #${$.id} — ${Tt($.startTime,{dateOnly:!0})} (${$.status})`,value:$.id})):[]),N=I(()=>{if(!T.value?.testRuns)return null;const $=[...T.value.testRuns].sort((f,M)=>new Date(M.startTime).getTime()-new Date(f.startTime).getTime()),c=$.findIndex(f=>f.id===Number(z));return c>=0&&c<$.length-1?$[c+1].id:null}),B=W(void 0),P=W(null),F=W(!1);de(B,async $=>{if(!$?.value){P.value=null;return}F.value=!0;try{P.value=await $fetch(`/api/test-runs/${$.value}`)}catch{}finally{F.value=!1}});function j(){if(N.value){const $=h.value.find(c=>c.value===N.value);$&&(B.value=$)}}const K=I(()=>y.testRun??null),{comparisonData:U,comparisonSummary:p}=Ms(P,K),S=[{accessorKey:"title",header:ue("Test case")},{accessorKey:"statusA",header:ue("Status A")},{accessorKey:"statusB",header:ue("Status B")},{accessorKey:"durationA",header:ue("Duration A")},{accessorKey:"durationB",header:ue("Duration B")},{accessorKey:"delta",header:ue("Delta")},{accessorKey:"percentChange",header:ue("Change")}];return($,c)=>{const f=Ds,M=Ns,C=Ce,L=ke,k=_t,G=Bs,Z=_e,se=We,Q=ct,le=Nt;return s(),a("div",null,[t.testRun&&!R.value?(s(),a("div",Oi,[n("div",Ki,[n("div",null,[c[1]||(c[1]=n("label",{class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Run A (baseline)",-1)),l(f,{modelValue:B.value,"onUpdate:modelValue":c[0]||(c[0]=E=>B.value=E),items:h.value,placeholder:"Select a baseline run..."},null,8,["modelValue","items"])]),n("div",null,[c[2]||(c[2]=n("label",{class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Run B (this run)",-1)),n("div",Wi,[l(M,{status:t.testRun.status},null,8,["status"]),n("span",Hi,"#"+o(t.testRun.id),1)])])]),N.value?(s(),a("div",Vi,[l(C,{icon:"i-lucide-arrow-left-right",size:"sm",variant:"outline",label:"Compare with previous run",onClick:j})])):g("",!0),F.value?(s(),a("div",Gi,[l(L,{name:"i-lucide-loader-2",class:"size-4 animate-spin"}),c[3]||(c[3]=n("span",null,"Loading baseline data...",-1))])):u.value.length>0?(s(),w(G,{key:2,color:"warning",variant:"subtle",icon:"i-lucide-milestone",title:`${u.value.length} timeline marker${u.value.length>1?"s":""} between these runs`},{description:i(()=>[n("div",Xi,[(s(!0),a(O,null,oe(u.value,E=>(s(),w(k,{key:E.id,marker:E,size:"sm"},null,8,["marker"]))),128))])]),_:1},8,["title"])):P.value&&e(U).length>0?(s(),a(O,{key:3},[n("div",qi,[c[4]||(c[4]=n("span",{class:"text-xs font-semibold text-gray-500 uppercase tracking-wider mr-1"},"Status",-1)),e(p).newFailures>0?(s(),w(Z,{key:0,color:"error",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(p).newFailures)+" new failure"+o(e(p).newFailures>1?"s":""),1)]),_:1})):g("",!0),e(p).recovered>0?(s(),w(Z,{key:1,color:"success",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(p).recovered)+" recovered ",1)]),_:1})):g("",!0),e(p).stillFailing>0?(s(),w(Z,{key:2,color:"warning",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(p).stillFailing)+" still failing ",1)]),_:1})):g("",!0),e(p).newFailures===0&&e(p).recovered===0&&e(p).stillFailing===0?(s(),a("span",Yi,"No status changes")):g("",!0)]),n("div",Ji,[c[5]||(c[5]=n("span",{class:"text-xs font-semibold text-gray-500 uppercase tracking-wider mr-1"},"Duration changes",-1)),e(p).regressed>0?(s(),w(Z,{key:0,color:"error",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(p).regressed)+" regressed ",1)]),_:1})):g("",!0),e(p).improved>0?(s(),w(Z,{key:1,color:"success",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(p).improved)+" improved ",1)]),_:1})):g("",!0),l(Z,{color:"neutral",variant:"soft",size:"lg"},{default:i(()=>[_(o(e(p).unchanged)+" unchanged ",1)]),_:1})]),l(le,{"min-width":"48rem",bleed:!1},{default:i(()=>[l(Q,{data:e(U),columns:S,ui:{base:"table-fixed border-separate border-spacing-0 min-w-[48rem]",thead:"[&>tr]:bg-elevated/50 [&>tr]:after:content-none",tbody:"[&>tr]:last:[&>td]:border-b-0",th:"first:rounded-l-lg last:rounded-r-lg border-y border-default first:border-l last:border-r",td:"border-b border-default"}},{"statusA-cell":i(({row:E})=>[E.original.statusA?(s(),w(Z,{key:1,color:("getStatusColor"in $?$.getStatusColor:e(nt))(E.original.statusA),variant:"subtle",class:"capitalize"},{default:i(()=>[_(o(E.original.statusA),1)]),_:2},1032,["color"])):(s(),a("span",Zi,"—"))]),"statusB-cell":i(({row:E})=>[E.original.statusB?(s(),w(Z,{key:1,color:("getStatusColor"in $?$.getStatusColor:e(nt))(E.original.statusB),variant:"subtle",class:"capitalize"},{default:i(()=>[_(o(E.original.statusB),1)]),_:2},1032,["color"])):(s(),a("span",Qi,"—"))]),"durationA-cell":i(({row:E})=>[E.original.durationA!==null?(s(),w(se,{key:0,ms:E.original.durationA},null,8,["ms"])):(s(),a("span",er,"—"))]),"durationB-cell":i(({row:E})=>[E.original.durationB!==null?(s(),w(se,{key:0,ms:E.original.durationB},null,8,["ms"])):(s(),a("span",tr,"—"))]),"delta-cell":i(({row:E})=>[E.original.delta===null?(s(),a("span",sr,"—")):(s(),a("span",{key:1,class:Y(E.original.delta>0?"text-red-600":E.original.delta<0?"text-green-600":"text-gray-500")},[_(o(E.original.delta>0?"+":""),1),l(se,{ms:E.original.delta,"unit-class":"opacity-60"},null,8,["ms"])],2))]),"percentChange-cell":i(({row:E})=>[E.original.percentChange===null?(s(),a("span",nr,"—")):(s(),a("span",{key:1,class:Y(E.original.percentChange>10?"text-red-600 font-medium":E.original.percentChange<-10?"text-green-600 font-medium":"text-gray-500")},o(E.original.percentChange>0?"+":"")+o(E.original.percentChange)+"% ",3))]),_:1},8,["data"])]),_:1})],64)):B.value&&!F.value?(s(),a("div",ar,[l(L,{name:"i-lucide-git-compare-arrows",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),c[6]||(c[6]=n("p",null,"No comparison data available.",-1))])):(s(),a("div",or,[l(L,{name:"i-lucide-arrow-left-right",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),c[7]||(c[7]=n("p",null,"Select a baseline run to compare.",-1))]))])):R.value?(s(),a("div",lr,[l(L,{name:"i-lucide-git-compare-arrows",class:"size-8 mx-auto mb-2 text-gray-300 dark:text-gray-600"}),c[8]||(c[8]=n("p",null,"Comparison is available after the run finishes.",-1))])):g("",!0)])}}}),rr=Object.assign(ir,{__name:"RunCompare"}),ur={class:"flex flex-col overflow-hidden"},cr={key:0,class:"flex-1 flex items-center justify-center text-gray-500 gap-2"},dr={class:"text-xs font-mono break-all"},mr={key:0,class:"text-gray-400"},fr={key:1,class:"text-red-600 font-medium"},pr=me({__name:"SlowEndpoints",props:{refreshKey:{}},emits:["endpointsCount"],async setup(t,{emit:y}){let v,z;const m=Ke().params.id,R=t,u=y,{data:h,pending:N,refresh:B}=([v,z]=Le(()=>Ee(`/api/test-runs/${m}/network-requests`,{lazy:!0,server:!1},"$QlrRz6EqI4")),v=await v,z(),v);de(h,F=>{u("endpointsCount",F?.length??0)}),de(()=>R.refreshKey,(F,j)=>{F!==j&&F!==void 0&&B()});const P=[{accessorKey:"method",header:ue("Method")},{accessorKey:"route",header:ue("Route")},{accessorKey:"count",header:ue("Calls")},{accessorKey:"avgDuration",header:ue("Avg")},{accessorKey:"p90Duration",header:ue("P90")},{accessorKey:"maxDuration",header:ue("Max")},{accessorKey:"errorRate",header:ue("Errors")}];return(F,j)=>{const K=ke,U=_e,p=We,S=ct,$=As;return s(),a("div",ur,[e(N)?(s(),a("div",cr,[l(K,{name:"i-lucide-loader-2",class:"size-4 animate-spin"}),j[0]||(j[0]=n("span",null,"Loading network data...",-1))])):e(h)&&e(h).length>0?(s(),w(S,{key:1,sticky:"",data:e(h),columns:P,class:"flex-1 min-h-0",ui:{base:"table-fixed border-separate border-spacing-0 min-w-[44rem]",thead:"[&>tr]:bg-elevated/50 [&>tr]:after:content-none",tbody:"[&>tr]:last:[&>td]:border-b-0 [&>tr]:hover:bg-gray-50 dark:[&>tr]:hover:bg-gray-900/50",th:"first:rounded-l-lg last:rounded-r-lg border-y border-default first:border-l last:border-r",td:"border-b border-default"}},{"method-cell":i(({row:c})=>[l(U,{color:c.original.method==="GET"?"info":c.original.method==="POST"?"success":c.original.method==="PUT"||c.original.method==="PATCH"?"warning":c.original.method==="DELETE"?"error":"neutral",variant:"soft",class:"font-mono text-xs"},{default:i(()=>[_(o(c.original.method),1)]),_:2},1032,["color"])]),"route-cell":i(({row:c})=>[n("code",dr,o(c.original.route),1)]),"avgDuration-cell":i(({row:c})=>[n("span",{class:Y(c.original.avgDuration>1e3?"text-red-600 font-medium":c.original.avgDuration>500?"text-orange-500 font-medium":"")},[l(p,{ms:c.original.avgDuration,"unit-class":"opacity-60"},null,8,["ms"])],2)]),"p90Duration-cell":i(({row:c})=>[n("span",{class:Y(c.original.p90Duration>2e3?"text-red-600 font-medium":c.original.p90Duration>1e3?"text-orange-500":"")},[l(p,{ms:c.original.p90Duration,"unit-class":"opacity-60"},null,8,["ms"])],2)]),"errorRate-cell":i(({row:c})=>[c.original.errorRate===0?(s(),a("span",mr,"0%")):(s(),a("span",fr,o(c.original.errorRate)+"%",1))]),_:1},8,["data"])):(s(),w($,{key:2,class:"flex-1",icon:"i-lucide-wifi-off",title:"No network requests captured",text:"Slow endpoints need the Piwi capture fixtures — extend your Playwright test with piwiFixtures and request timing rides along with every run.",doc:"capture-fixtures"}))])}}}),gr=Object.assign(pr,{__name:"SlowEndpoints"}),xr={class:"inline-flex items-center justify-center w-5 h-5 rounded-full bg-blue-500/10 hover:bg-blue-500/20 transition-colors ml-1"},yr={key:0,class:"flex items-center gap-2 mb-3 shrink-0"},$u=me({__name:"[id]",async setup(t){let y,v;const z=Ke(),T=rs(),m=z.params.id,R=!!ot().public.demoMode,{data:u,refresh:h}=([y,v]=Le(()=>Ee(`/api/test-runs/${m}`,"$JCybzNzO0T")),y=await y,v(),y),N=u.value?.projectId,{data:B,refresh:P}=N?([y,v]=Le(()=>Ee(`/api/projects/${N}/latest-run`,{key:`latest-run-${N}`},"$26uPrJhWGK")),y=await y,v(),y):{data:W(null),refresh:async()=>{}};Us(P);const F=I(()=>B.value?.id??u.value?.project?.latestRunId??null),j=I(()=>B.value?.status??u.value?.project?.latestRunStatus??null),K=I(()=>j.value==="running"||j.value==="finalizing");us(I(()=>({title:`Test run #${m}${u.value?.project?` — ${u.value.project.name}`:""} — Piwi Dashboard`})));const U=vt(),p=W(!1),S=W(!1),$=I(()=>u.value?.status==="running"||u.value?.status==="finalizing"),c=W(!1),f=W([]),M=new Map,C=W(null);let L=null;const k=W([]);de([$,u],()=>{$.value&&f.value.length>0?k.value=[...f.value]:u.value?.testCases?k.value=u.value.testCases:k.value=[]},{immediate:!0});function G(A){for(const V of A){const re=`${V.title}@@${V.location}@@${JSON.stringify(V.browser)}`;M.has(re)||(M.set(re,!0),f.value=[...f.value,V])}k.value=[...f.value]}let Z=[],se=null;function Q(){if(Z.length===0)return;const A=Z;Z=[];for(const V of A){const re=V.data;if(V.type==="init")C.value={totalTests:re.totalTests,passedTests:re.passedTests,failedTests:re.failedTests,skippedTests:re.skippedTests};else if(V.type==="test-begin"){const q=re;if(q.stepCategory)continue;const ze=`${q.title}@@${q.location}@@${JSON.stringify(q.browser)}`;M.has(ze)||(M.set(ze,!0),f.value=[...f.value,{id:f.value.length+1,title:q.title,filePath:q.filePath,suitePath:q.suitePath??void 0,status:"running",location:q.location,workerIndex:q.workerIndex??null,startedAt:q.startedAt??Date.now(),browser:q.browser??null}],k.value=[...f.value])}else if(V.type==="test-completed"){const q=re;if(q.stepCategory)continue;const ze=`${q.title}@@${q.location}@@${JSON.stringify(q.browser)}`;if(M.has(ze)){const Me=f.value.findIndex(ye=>`${ye.title}@@${ye.location}@@${JSON.stringify(ye.browser)}`===ze);if(Me>=0){const ye=f.value[Me],Ae=[...f.value];Ae[Me]={...ye,filePath:q.filePath??ye.filePath,suitePath:q.suitePath??ye.suitePath,status:q.status,duration:q.duration,error:q.error,stepEvents:q.stepEvents??ye.stepEvents,wastedTimeMs:q.wastedTimeMs??ye.wastedTimeMs,workerIndex:q.workerIndex??ye.workerIndex,startedAt:q.startedAt?q.startedAt:ye.startedAt,browser:q.browser??ye.browser},f.value=Ae,k.value=[...Ae]}}else M.set(ze,!0),f.value=[...f.value,{id:f.value.length+1,title:q.title,filePath:q.filePath,suitePath:q.suitePath??void 0,status:q.status,duration:q.duration,location:q.location,error:q.error,stepEvents:q.stepEvents??null,wastedTimeMs:q.wastedTimeMs??null,workerIndex:q.workerIndex??null,startedAt:q.startedAt??void 0,browser:q.browser??null}],k.value=[...f.value]}else V.type==="run-progress"?C.value=re:V.type==="run-finalizing"?(c.value=!0,C.value=re):V.type==="run-finished"&&(c.value=!1,r(),h(),ge.value++,le())}}function le(A=0){R||A>=5||setTimeout(async()=>{await h(),le(A+1)},1500*(A+1))}function E(A){Z.push(A),se&&clearTimeout(se),se=setTimeout(Q,200)}let D=null;function ve(){D||(u.value?.testCases?.length&&G(u.value.testCases),D=Ls(A=>{A.scope==="run"&&A.runId===Number(m)?E(A.event):A.scope==="global"&&A.event.runId===Number(m)&&A.event.type==="run-started"&&h()}))}function fe(){if(R){ve();return}L||$.value&&(u.value?.testCases?.length&&G(u.value.testCases),L=new EventSource(`/api/test-runs/${m}/stream`),L.onmessage=A=>{try{E(JSON.parse(A.data))}catch{}},L.onerror=()=>{})}function r(){L&&(L.close(),L=null),D&&(D(),D=null)}const d=I(()=>$.value||R&&u.value?.status==="initialising");de(d,A=>{A?fe():r()},{immediate:!0}),bt(()=>{r()});let X=null;const te=W([]);de(k,A=>{X===null&&(X=requestAnimationFrame(()=>{te.value=A,X=null}))},{immediate:!0});const J=I(()=>$.value&&C.value?C.value:u.value?{totalTests:u.value.totalTests,passedTests:u.value.passedTests,failedTests:u.value.failedTests,skippedTests:u.value.skippedTests}:null);async function b(){p.value=!1,S.value=!0;try{await $fetch(`/api/test-runs/${m}`,{method:"DELETE"}),U.add({title:"Test run deleted",color:"success"}),await Xe(`/projects/${u.value?.project?.id}`)}catch(A){const V=A&&typeof A=="object"&&"data"in A?A.data?.message:void 0;U.add({title:"Delete failed",description:V||"An error occurred",color:"error"})}finally{S.value=!1}}const H=W(!1),ne=W(""),ee=W([]),xe=W("all"),be=I(()=>ee.value.length===1?ee.value[0]:"all");function ae(A){ee.value=!A||A==="all"?[]:[A]}const he=I(()=>u.value?.reports||[]),Te=I(()=>{const A=k.value;return A?A.reduce((V,re)=>V+(re.wastedTimeMs??0),0):0}),pe=W("test-cases"),Re=W(null),ge=W(0),Se=W(0);function x(){Re.value=null}const $e=I(()=>u.value&&u.value.failedTests>0),Be=I(()=>{if(!u.value?.testCases)return 0;const A=new Set;for(const V of u.value.testCases)V.failureClusterId!=null&&A.add(V.failureClusterId);return A.size}),Fe=I(()=>{const A=$.value?k.value:u.value?.testCases;if(!A||A.length===0)return 0;const V=new Set;for(const re of A)re.workerIndex!=null&&re.workerIndex>=0&&V.add(re.workerIndex);return V.size}),ie=I(()=>[{label:`Test cases (${k.value.length})`,icon:"i-lucide-beaker",value:"test-cases",slot:"test-cases"},{label:"Insights",icon:"i-lucide-sparkles",value:"insights",slot:"insights"},{label:$e.value?`Failure groups (${Be.value})`:"Failure groups",icon:"i-lucide-layers",value:"failure-groups",slot:"failure-groups",disabled:!$e.value},{label:"Regression",icon:"i-lucide-git-pull-request-arrow",value:"regression",slot:"regression",disabled:!$e.value},{label:`Timeline${Fe.value>0?` (${Fe.value})`:""}`,icon:"i-lucide-timeline",value:"workers",slot:"workers"},{label:"Compare",icon:"i-lucide-git-compare-arrows",value:"compare",slot:"compare"},{label:`Slow endpoints${Se.value>0?` (${Se.value})`:""}`,icon:"i-lucide-network",value:"endpoints",slot:"endpoints"}]),dt={"test-cases":"overflow-hidden flex flex-col",endpoints:"overflow-hidden flex flex-col"},mt=I(()=>ie.value.filter(A=>!A.disabled).map(A=>A.value));typeof z.query.tab=="string"&&mt.value.includes(z.query.tab)&&(pe.value=z.query.tab),de(mt,A=>{A.includes(pe.value)||(pe.value="test-cases")}),de(pe,A=>{z.query.tab!==A&&T.replace({query:{...z.query,tab:A}})});const ft=W(null);function Lt(A){pe.value="test-cases",Ne(()=>{ft.value?.scrollToCase(A)})}function Et(A){Re.value=A,pe.value="test-cases"}return(A,V)=>{const re=ss,q=Oe,ze=ke,Me=wt,ye=cs,Ae=ds,Ot=fs,Kt=Jn,Wt=_e,Ze=Ce,Ht=Xa,Vt=Vo,Gt=xl,Xt=Hl,qt=Ei,Yt=rr,Jt=gr,Zt=ys,Qt=ms,es=Bt,ts=lt;return s(),a(O,null,[l(Qt,{id:"test-run-detail"},{header:i(()=>[l(Ot,null,{leading:i(()=>[l(re),l(ye,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects",to:"/projects"},...e(u)?.project?.id?[{label:e(u).project.label||e(u).project.name||"Project",to:`/projects/${e(u).project.id}`,slot:"project"}]:[{label:"Project"}],{label:`Run #${e(m)}`+(e(u)?.label?` — ${e(u).label}`:"")}]},{project:i(({item:ce})=>[l(q,{to:ce?.to,class:"text-sm font-medium text-[var(--ui-text-muted)] hover:text-[var(--ui-text)] transition-colors"},{default:i(()=>[_(o(ce?.label),1)]),_:2},1032,["to"]),F.value&&F.value!==Number(e(m))?(s(),w(Me,{key:0,text:K.value?"Go to running run":"Go to latest run"},{default:i(()=>[l(q,{to:`/test-runs/${F.value}`},{default:i(()=>[n("span",xr,[l(ze,{name:"i-lucide-circle-play",class:Y(["w-3.5 h-3.5 text-blue-500",{"animate-pulse":K.value}])},null,8,["class"])])]),_:1},8,["to"])]),_:1},8,["text"])):g("",!0)]),_:1},8,["items"])]),right:i(()=>[l(Ae,{actions:[{label:"Refresh",icon:"i-lucide-refresh-cw",onClick:()=>e(h)()},{label:"Delete",icon:"i-lucide-trash-2",color:"error",variant:"soft",loading:e(S),onClick:()=>p.value=!0}]},null,8,["actions"])]),_:1})]),body:i(()=>[l(Zt,{modelValue:e(pe),"onUpdate:modelValue":V[5]||(V[5]=ce=>Pe(pe)?pe.value=ce:null),"tab-items":ie.value,"tab-panel-class":dt},{summary:i(()=>[e(u)?(s(),w(Kt,{key:0,"test-run":e(u),"display-progress":J.value,"all-reports":he.value,"show-custom-data":e(H),finalizing:e(c),"active-filter":be.value,"total-wasted-time":Te.value,"onUpdate:showCustomData":V[0]||(V[0]=ce=>H.value=ce),onFilterStatus:ae,onLabelUpdated:e(h)},null,8,["test-run","display-progress","all-reports","show-custom-data","finalizing","active-filter","total-wasted-time","onLabelUpdated"])):g("",!0)]),"tab-test-cases":i(()=>[e(Re)!=null?(s(),a("div",yr,[l(Wt,{color:"info",variant:"subtle",size:"sm"},{default:i(()=>[...V[8]||(V[8]=[_(" Filtered by failure group ",-1)])]),_:1}),l(Ze,{size:"xs",color:"neutral",variant:"ghost",icon:"i-lucide-x",label:"Clear filter",onClick:x})])):g("",!0),l(Ht,{ref_key:"testCasesListRef",ref:ft,search:e(ne),"onUpdate:search":V[1]||(V[1]=ce=>Pe(ne)?ne.value=ce:null),"active-statuses":e(ee),"onUpdate:activeStatuses":V[2]||(V[2]=ce=>Pe(ee)?ee.value=ce:null),"browser-filter":e(xe),"onUpdate:browserFilter":V[3]||(V[3]=ce=>Pe(xe)?xe.value=ce:null),"test-cases":e(k),suites:e(u)?.suites??[],"is-live":$.value,"failure-cluster-filter":e(Re),"project-key":e(u)?.projectId,"project-name":e(u)?.project?.name,class:"flex-1 min-h-0"},null,8,["search","active-statuses","browser-filter","test-cases","suites","is-live","failure-cluster-filter","project-key","project-name"])]),"tab-insights":i(()=>[l(Vt,{"test-run-id":Number(e(m)),"run-status":e(u)?.status??"","refresh-key":e(ge),class:"flex-1 min-h-0 p-4"},null,8,["test-run-id","run-status","refresh-key"])]),"tab-failure-groups":i(()=>[l(Gt,{"refresh-key":e(ge),onSelectCluster:Et},null,8,["refresh-key"])]),"tab-regression":i(()=>[l(Xt,{"refresh-key":e(ge)},null,8,["refresh-key"])]),"tab-workers":i(()=>[l(qt,{"test-cases":e(te),"setup-steps":e(u)?.setupSteps??null,"shard-total":e(u)?.shardTotal??null,live:$.value,"wasted-patterns":e(u)?.wastedWaitPatterns??null,onSelectTestCase:Lt},null,8,["test-cases","setup-steps","shard-total","live","wasted-patterns"])]),"tab-compare":i(()=>[l(Yt,{"test-run":e(u)},null,8,["test-run"])]),"tab-endpoints":i(()=>[l(Jt,{"refresh-key":e(ge),class:"flex-1 min-h-0",onEndpointsCount:V[4]||(V[4]=ce=>Se.value=ce)},null,8,["refresh-key"])]),_:1},8,["modelValue","tab-items"])]),_:1}),l(ts,null,{default:i(()=>[l(es,{open:e(p),title:"Delete test run","onUpdate:open":V[7]||(V[7]=ce=>p.value=ce)},{body:i(()=>[n("p",null,[V[9]||(V[9]=_(" Are you sure you want to delete ",-1)),n("strong",null,"Test Run #"+o(e(u)?.id),1),V[10]||(V[10]=_("? This will also remove all associated test results, reports, and traces. This action cannot be undone. ",-1))])]),footer:i(()=>[l(Ze,{color:"neutral",variant:"ghost",label:"Cancel",onClick:V[6]||(V[6]=ce=>p.value=!1)}),l(Ze,{color:"error",label:"Delete",icon:"i-lucide-trash-2",loading:e(S),onClick:b},null,8,["loading"])]),_:1},8,["open"])]),_:1})],64)}}});export{$u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,U as o,o as u,f as p,g as d,V as f,W as n,k as i,X as _}from"./
|
|
1
|
+
import{d as l,U as o,o as u,f as p,g as d,V as f,W as n,k as i,X as _}from"./C5TrTuWv.js";var m=l({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(r){const t=r;return o(),(s,a)=>(u(),p(i(_),n(t,{onMousedown:a[0]||(a[0]=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()})}),{default:d(()=>[f(s.$slots,"default")]),_:3},16))}}),b=m;export{b as L};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,ab as r,bX as t}from"./C5TrTuWv.js";function a(o){return e(()=>r(o)?!!t(o)?.closest("form"):!0)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a,o,c as n,i as l,V as s,R as i,q as m}from"./
|
|
1
|
+
import{d as a,o,c as n,i as l,V as s,R as i,q as m}from"./C5TrTuWv.js";const r=a({__name:"TableScroller",props:{minWidth:{},bleed:{type:Boolean,default:!0}},setup(e){return(t,c)=>(o(),n("div",{class:m(["overflow-x-auto",e.bleed?"-mx-4 px-4 sm:mx-0 sm:px-0":""])},[l("div",{style:i(e.minWidth?{minWidth:e.minWidth}:void 0)},[s(t.$slots,"default")],4)],2))}}),u=Object.assign(r,{__name:"TableScroller"});export{u as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a,o as s,c as n,j as o,p as c,i,t as r,q as d}from"./
|
|
1
|
+
import{d as a,o as s,c as n,j as o,p as c,i,t as r,q as d}from"./C5TrTuWv.js";const l={class:"text-sm"},p=a({__name:"LoadingState",props:{text:{default:"Loading…"},padded:{type:Boolean,default:!0}},setup(e){return(_,m)=>{const t=c;return s(),n("div",{role:"status","aria-live":"polite","aria-busy":"true",class:d(["flex items-center justify-center gap-2 text-gray-400",e.padded&&"py-8"])},[o(t,{name:"i-lucide-loader-2",class:"size-4 animate-spin"}),i("span",l,r(e.text),1)],2)}}}),f=Object.assign(p,{__name:"LoadingState"});export{f as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as n,o as s,c as o,j as c,p as r,i as l,t as i,V as d,q as m}from"./
|
|
1
|
+
import{d as n,o as s,c as o,j as c,p as r,i as l,t as i,V as d,q as m}from"./C5TrTuWv.js";const _={class:"text-sm text-red-500"},p=n({__name:"ErrorState",props:{text:{},icon:{default:"i-lucide-circle-alert"},padded:{type:Boolean,default:!0}},setup(e){return(t,u)=>{const a=r;return s(),o("div",{role:"alert",class:m(["flex flex-col items-center justify-center gap-2 text-center",e.padded&&"p-4"])},[c(a,{name:e.icon,class:"size-5 text-red-400"},null,8,["name"]),l("p",_,i(e.text),1),d(t.$slots,"action")],2)}}}),f=Object.assign(p,{__name:"ErrorState"});export{f as _};
|