@piwitests/server 0.23.0 → 0.25.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/{DZECGgZm.js → 5nOoVJzL.js} +1 -1
- package/.output/public/_nuxt/6DSY_93j.js +1 -0
- package/.output/public/_nuxt/7vRR5W2L.js +1 -0
- package/.output/public/_nuxt/{CC8wk-N0.js → 9Dtlg-K4.js} +1 -1
- package/.output/public/_nuxt/9Yziijlb.js +1 -0
- package/.output/public/_nuxt/{DAhv9aNg.js → B-onBCAB.js} +1 -1
- package/.output/public/_nuxt/B2bK5uNR.js +1 -0
- package/.output/public/_nuxt/{B2L0-Lzp.js → B63B19Iv.js} +2 -2
- package/.output/public/_nuxt/{oSLbl-p0.js → B77w1Eib.js} +1 -1
- package/.output/public/_nuxt/{pZbe82l5.js → BC5bqlfM.js} +1 -1
- package/.output/public/_nuxt/{jR2xm3_t.js → BF5JDf9_.js} +1 -1
- package/.output/public/_nuxt/BFVrl1ss.js +1 -0
- package/.output/public/_nuxt/{Bj_v57Zu.js → BIHMeNW-.js} +1 -1
- package/.output/public/_nuxt/BKqOGcst.js +1 -0
- package/.output/public/_nuxt/{Bsc11YIJ.js → BLqooxh5.js} +1 -1
- package/.output/public/_nuxt/{Ce_j5NtN.js → BMfTUMYy.js} +1 -1
- package/.output/public/_nuxt/{CmTzxoQt.js → BOrnSpTA.js} +1 -1
- package/.output/public/_nuxt/{Bq4_kqIp.js → BPQNVV4M.js} +1 -1
- package/.output/public/_nuxt/{FJTsZ5Aa.js → BSKLNgre.js} +1 -1
- package/.output/public/_nuxt/BTCWUyBX.js +1 -0
- package/.output/public/_nuxt/BUYmGTVP.js +1 -0
- package/.output/public/_nuxt/{mi22nGUC.js → BWddBCom.js} +1 -1
- package/.output/public/_nuxt/{axj2iIDK.js → BYQ9lXQb.js} +1 -1
- package/.output/public/_nuxt/BYWQ47QQ.js +5 -0
- package/.output/public/_nuxt/{Bag08cIY.js → BYnqoVCE.js} +1 -1
- package/.output/public/_nuxt/{Clg2Qx0r.js → BaU2hm4B.js} +1 -1
- package/.output/public/_nuxt/{roaTZkYi.js → BbXvpkBp.js} +1 -1
- package/.output/public/_nuxt/Bb_925DD.js +1 -0
- package/.output/public/_nuxt/BcHU1KNK.js +1 -0
- package/.output/public/_nuxt/BdUGUwvE.js +1 -0
- package/.output/public/_nuxt/{D1Ucra3E.js → BeQq85yJ.js} +2 -2
- package/.output/public/_nuxt/Bg8yOdSf.js +1 -0
- package/.output/public/_nuxt/BhzfJaPC.js +1 -0
- package/.output/public/_nuxt/{499RbBSX.js → Bkb-0yS0.js} +4 -4
- package/.output/public/_nuxt/BmweLu9g.js +2 -0
- package/.output/public/_nuxt/Boyv6hLW.js +1 -0
- package/.output/public/_nuxt/{DXkFgrsT.js → Bq4xEWLF.js} +4 -4
- package/.output/public/_nuxt/{7_9fts7T.js → BraJd4EA.js} +1 -1
- package/.output/public/_nuxt/BvXrhZ8k.js +1 -0
- package/.output/public/_nuxt/{DNKZmhbX.js → Bw4oIhct.js} +1 -1
- package/.output/public/_nuxt/BxSrScjV.js +1 -0
- package/.output/public/_nuxt/Byqt8JHG.js +1 -0
- package/.output/public/_nuxt/{CNu3kken.js → BzBaMPgu.js} +4 -4
- package/.output/public/_nuxt/{PDSNX4Te.js → C1-8_6cB.js} +1 -1
- package/.output/public/_nuxt/{Ce89VyHE.js → C7SG50jD.js} +1 -1
- package/.output/public/_nuxt/{CBJFORiZ.js → C8WgBDU1.js} +1 -1
- package/.output/public/_nuxt/C8uZoJVq.js +1 -0
- package/.output/public/_nuxt/{D3SJGdl4.js → CBQXv4bU.js} +2 -2
- package/.output/public/_nuxt/CDEmotIt.js +1 -0
- package/.output/public/_nuxt/CIBOv3Ge.js +2 -0
- package/.output/public/_nuxt/CO7j4p5r.js +1 -0
- package/.output/public/_nuxt/COMhp7lz.js +1 -0
- package/.output/public/_nuxt/{jxc14CqP.js → CPiLUjjx.js} +1 -1
- package/.output/public/_nuxt/{DZ-KbUZi.js → CTYlay1H.js} +1 -1
- package/.output/public/_nuxt/{5QBnDbs_.js → CVEk4D8I.js} +1 -1
- package/.output/public/_nuxt/{LTMoFvEY.js → CbuK1HIv.js} +1 -1
- package/.output/public/_nuxt/{2yLW7WU0.js → CdLqOMvN.js} +1 -1
- package/.output/public/_nuxt/CdM2qNYM.js +2 -0
- package/.output/public/_nuxt/Ch8sGLqE.js +1 -0
- package/.output/public/_nuxt/CkdznmkX.js +1 -0
- package/.output/public/_nuxt/{DJzFYrBt.js → Cmuwgbf4.js} +1 -1
- package/.output/public/_nuxt/{C9I1Dp3S.js → CnRNwiuE.js} +1 -1
- package/.output/public/_nuxt/{Bb2mDqKr.js → CnsaoeEq.js} +1 -1
- package/.output/public/_nuxt/{DgEa6_av.js → Cp0V2FeW.js} +1 -1
- package/.output/public/_nuxt/Cvw4EFTy.js +17 -0
- package/.output/public/_nuxt/CwDej2Lz.js +1 -0
- package/.output/public/_nuxt/D-wlhH6J.js +1 -0
- package/.output/public/_nuxt/D5Mhpp98.js +1 -0
- package/.output/public/_nuxt/{CTTmX4gy.js → D8ixf-ZR.js} +5 -5
- package/.output/public/_nuxt/{HbnAkiyK.js → DBvdRbTA.js} +2 -2
- package/.output/public/_nuxt/DDho3MJD.js +1 -0
- package/.output/public/_nuxt/DEGHW4pO.js +1 -0
- package/.output/public/_nuxt/{C77tM5Hz.js → DHSYRMJp.js} +1 -1
- package/.output/public/_nuxt/DH_LEqhd.js +2 -0
- package/.output/public/_nuxt/{CUOS6S13.js → DIqik40e.js} +1 -1
- package/.output/public/_nuxt/DLwuL-qR.js +1 -0
- package/.output/public/_nuxt/{AQ86C4c2.js → DPDFGVb_.js} +2 -2
- package/.output/public/_nuxt/DRNHuVn4.js +2 -0
- package/.output/public/_nuxt/{B_MVJP17.js → DUtYU4Sb.js} +1 -1
- package/.output/public/_nuxt/{CAoQUDI4.js → DWl73MJR.js} +1 -1
- package/.output/public/_nuxt/{BZFiz2UB.js → DWz_bHNP.js} +1 -1
- package/.output/public/_nuxt/{CGDPUNcO.js → D_SCB-z2.js} +1 -1
- package/.output/public/_nuxt/{Ce47NgZw.js → D_j436ND.js} +1 -1
- package/.output/public/_nuxt/DamzjN7l.js +1 -0
- package/.output/public/_nuxt/Db5xe__T.js +1 -0
- package/.output/public/_nuxt/{BuGAn4f7.js → DcUBmKKE.js} +1 -1
- package/.output/public/_nuxt/DiP18sFE.js +1 -0
- package/.output/public/_nuxt/Die1200X.js +1 -0
- package/.output/public/_nuxt/DihSeDlY.js +9 -0
- package/.output/public/_nuxt/{BAbrtVp3.js → DkGXOZRW.js} +1 -1
- package/.output/public/_nuxt/{ZLfZolDM.js → DnOtRv65.js} +1 -1
- package/.output/public/_nuxt/DnV-BkUA.js +1 -0
- package/.output/public/_nuxt/DpeRrg68.js +1 -0
- package/.output/public/_nuxt/Dq6_-84R.js +1 -0
- package/.output/public/_nuxt/DqKFKS1b.js +1 -0
- package/.output/public/_nuxt/DrbO0dl5.js +6 -0
- package/.output/public/_nuxt/{B3G-TIoP.js → Ds8_6Fzl.js} +1 -1
- package/.output/public/_nuxt/{QZYo3ErV.js → DvewDI9t.js} +1 -1
- package/.output/public/_nuxt/E26Y1NWH.js +1 -0
- package/.output/public/_nuxt/Hp-_W7z4.js +1 -0
- package/.output/public/_nuxt/OanUGF_v.js +1 -0
- package/.output/public/_nuxt/{9_aJhhcm.js → RSS6R9Te.js} +12 -12
- package/.output/public/_nuxt/{BfcMJBTf.js → VqLetC2g.js} +1 -1
- package/.output/public/_nuxt/WCZdf9Ln.js +1 -0
- package/.output/public/_nuxt/{DBWM_xs-.js → Yl6iqHwK.js} +4 -4
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/03f2d81b-8c58-4ea8-9a9d-7553c8ca4af6.json +1 -0
- package/.output/public/_nuxt/entry.DVKh2Fd6.css +1 -0
- package/.output/public/_nuxt/iUf7K_JR.js +1 -0
- package/.output/public/_nuxt/{B_JSV0yG.js → kDEwM7SQ.js} +1 -1
- package/.output/public/_nuxt/{BDUfBn3i.js → knaDbxMJ.js} +1 -1
- package/.output/public/_nuxt/lnpLc047.js +1 -0
- package/.output/public/_nuxt/{C2_7XZo0.js → mhvG7mu8.js} +1 -1
- package/.output/public/_nuxt/{Ck_fTH5z.js → qUaN2ZW8.js} +4 -4
- package/.output/public/_nuxt/qeqzb80l.js +1 -0
- package/.output/public/_nuxt/{BwwfasRt.js → uj92NYTx.js} +2 -2
- package/.output/public/_nuxt/vOZZ2cLi.js +1 -0
- package/.output/public/_nuxt/{CLWMETf9.js → zAFiz2Mg.js} +1 -1
- package/.output/public/demo/seed.version.json +2 -2
- 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-He-UxEt6.mjs → Alert-BhTWQzM5.mjs} +2 -2
- package/.output/server/chunks/build/Alert-BhTWQzM5.mjs.map +1 -0
- package/.output/server/chunks/build/{Breadcrumb-DEP2dVCZ.mjs → Breadcrumb-BJnPB2AW.mjs} +3 -3
- package/.output/server/chunks/build/Breadcrumb-BJnPB2AW.mjs.map +1 -0
- package/.output/server/chunks/build/{BreadcrumbNav-y6nMDYcR.mjs → BreadcrumbNav-C6Cun6tF.mjs} +3 -3
- package/.output/server/chunks/build/BreadcrumbNav-C6Cun6tF.mjs.map +1 -0
- package/.output/server/chunks/build/{BrowserBadge-DIASU8Gf.mjs → BrowserBadge-T1KRMIXA.mjs} +4 -4
- package/.output/server/chunks/build/BrowserBadge-T1KRMIXA.mjs.map +1 -0
- package/.output/server/chunks/build/{ChartCard-ZTsCvItQ.mjs → ChartCard-D_asI_WF.mjs} +2 -2
- package/.output/server/chunks/build/ChartCard-D_asI_WF.mjs.map +1 -0
- package/.output/server/chunks/build/{ChartMarkerTooltip-u_1DUHh-.mjs → ChartMarkerTooltip-DscESDg7.mjs} +3 -3
- package/.output/server/chunks/build/ChartMarkerTooltip-DscESDg7.mjs.map +1 -0
- package/.output/server/chunks/build/{Checkbox-BisdHf8n.mjs → Checkbox-Y9ZiIRkJ.mjs} +7 -7
- package/.output/server/chunks/build/Checkbox-Y9ZiIRkJ.mjs.map +1 -0
- package/.output/server/chunks/build/{CodeBlock-B8BNtZAe.mjs → CodeBlock-Bnn_ps9O.mjs} +5 -5
- package/.output/server/chunks/build/CodeBlock-Bnn_ps9O.mjs.map +1 -0
- package/.output/server/chunks/build/{DashboardNavbar-D7-3zBUU.mjs → DashboardNavbar-D37dPEtR.mjs} +3 -3
- package/.output/server/chunks/build/DashboardNavbar-D37dPEtR.mjs.map +1 -0
- package/.output/server/chunks/build/{DashboardSidebarToggle-C3HdHvlE.mjs → DashboardSidebarToggle-DzwsZHVx.mjs} +3 -3
- package/.output/server/chunks/build/DashboardSidebarToggle-DzwsZHVx.mjs.map +1 -0
- package/.output/server/chunks/build/{DataLocationCard-CC2-lHiP.mjs → DataLocationCard-CUXgZQEs.mjs} +4 -4
- package/.output/server/chunks/build/DataLocationCard-CUXgZQEs.mjs.map +1 -0
- package/.output/server/chunks/build/{DesktopRunLocallyButton-iNzrDsEs.mjs → DesktopRunLocallyButton-BCmQklj6.mjs} +15 -76
- package/.output/server/chunks/build/DesktopRunLocallyButton-BCmQklj6.mjs.map +1 -0
- package/.output/server/chunks/build/{DiagnosisPanel-BVb2LgHu.mjs → DiagnosisPanel-haHS2azn.mjs} +8 -8
- package/.output/server/chunks/build/DiagnosisPanel-haHS2azn.mjs.map +1 -0
- package/.output/server/chunks/build/{DiagnosisResult-xVgZlfKK.mjs → DiagnosisResult-DqTIOelM.mjs} +11 -11
- package/.output/server/chunks/build/DiagnosisResult-DqTIOelM.mjs.map +1 -0
- package/.output/server/chunks/build/{DurationValue-UX9uajQJ.mjs → DurationValue-D6fQEi5S.mjs} +2 -2
- package/.output/server/chunks/build/DurationValue-D6fQEi5S.mjs.map +1 -0
- package/.output/server/chunks/build/{EmptyState-DC2q_7TD.mjs → EmptyState-C-mCzGhO.mjs} +2 -2
- package/.output/server/chunks/build/EmptyState-C-mCzGhO.mjs.map +1 -0
- package/.output/server/chunks/build/{EntityLinks-Dzn73fbq.mjs → EntityLinks-CRJQM9Vy.mjs} +4 -4
- package/.output/server/chunks/build/EntityLinks-CRJQM9Vy.mjs.map +1 -0
- package/.output/server/chunks/build/{EnvManagedBadge-C-agmABK.mjs → EnvManagedBadge-hyelwXrw.mjs} +4 -4
- package/.output/server/chunks/build/EnvManagedBadge-hyelwXrw.mjs.map +1 -0
- package/.output/server/chunks/build/{ErrorState-CktYyeEZ.mjs → ErrorState-9UPssp7w.mjs} +2 -2
- package/.output/server/chunks/build/ErrorState-9UPssp7w.mjs.map +1 -0
- package/.output/server/chunks/build/{FeatureUnavailable-DHFkwI7t.mjs → FeatureUnavailable-CDw3__eq.mjs} +3 -3
- package/.output/server/chunks/build/FeatureUnavailable-CDw3__eq.mjs.map +1 -0
- package/.output/server/chunks/build/{FormField-GYHKiSI6.mjs → FormField-8vSc-3mb.mjs} +2 -2
- package/.output/server/chunks/build/FormField-8vSc-3mb.mjs.map +1 -0
- package/.output/server/chunks/build/{GetStartedWizard-BpcGYsm2.mjs → GetStartedWizard-Dp_tjhry.mjs} +4 -4
- package/.output/server/chunks/build/GetStartedWizard-Dp_tjhry.mjs.map +1 -0
- package/.output/server/chunks/build/{HelpHint-plioHKA0.mjs → HelpHint-Bfyo3ar6.mjs} +31 -4
- package/.output/server/chunks/build/HelpHint-Bfyo3ar6.mjs.map +1 -0
- package/.output/server/chunks/build/{LoadingState-CwpfmI0W.mjs → LoadingState-CxfFwac9.mjs} +2 -2
- package/.output/server/chunks/build/LoadingState-CxfFwac9.mjs.map +1 -0
- package/.output/server/chunks/build/{MarkerBadge-Biz5--h2.mjs → MarkerBadge-DmubzeuF.mjs} +2 -2
- package/.output/server/chunks/build/MarkerBadge-DmubzeuF.mjs.map +1 -0
- package/.output/server/chunks/build/{MetaStripGroup-A0a72vt5.mjs → MetaStripGroup-C-cNBfC9.mjs} +6 -6
- package/.output/server/chunks/build/MetaStripGroup-C-cNBfC9.mjs.map +1 -0
- package/.output/server/chunks/build/{Modal-hKLvVFNp.mjs → Modal-DcNzjvnm.mjs} +2 -2
- package/.output/server/chunks/build/Modal-DcNzjvnm.mjs.map +1 -0
- package/.output/server/chunks/build/{NavbarActions-_YjrSUat.mjs → NavbarActions-VCHW0u67.mjs} +2 -2
- package/.output/server/chunks/build/NavbarActions-VCHW0u67.mjs.map +1 -0
- package/.output/server/chunks/build/{NavigationMenu-RfBOyS32.mjs → NavigationMenu-DG6V0R9Y.mjs} +5 -5
- package/.output/server/chunks/build/NavigationMenu-DG6V0R9Y.mjs.map +1 -0
- package/.output/server/chunks/build/{OpenInIdeLink-Jp6SzEtD.mjs → OpenInIdeLink-CLj2cTkc.mjs} +6 -6
- package/.output/server/chunks/build/{OpenInIdeLink-Jp6SzEtD.mjs.map → OpenInIdeLink-CLj2cTkc.mjs.map} +1 -1
- package/.output/server/chunks/build/{ProjectTestCasesTable-DxOTfhi4.mjs → ProjectTestCasesTable-BNd5Fn_G.mjs} +15 -15
- package/.output/server/chunks/build/{ProjectTestCasesTable-DxOTfhi4.mjs.map → ProjectTestCasesTable-BNd5Fn_G.mjs.map} +1 -1
- package/.output/server/chunks/build/{RovingFocusItem-BOSx1Z9Z.mjs → RovingFocusItem-DkZadRuK.mjs} +2 -2
- package/.output/server/chunks/build/RovingFocusItem-DkZadRuK.mjs.map +1 -0
- package/.output/server/chunks/build/{RunReports-nuLb-Nm3.mjs → RunReports-CnyGcU8K.mjs} +4 -4
- package/.output/server/chunks/build/RunReports-CnyGcU8K.mjs.map +1 -0
- package/.output/server/chunks/build/{RunStatusBadge-CvWmcFYM.mjs → RunStatusBadge-DTqX18X-.mjs} +3 -3
- package/.output/server/chunks/build/RunStatusBadge-DTqX18X-.mjs.map +1 -0
- package/.output/server/chunks/build/{SectionCard-DHAFvJxm.mjs → SectionCard-taTpPtua.mjs} +3 -3
- package/.output/server/chunks/build/SectionCard-taTpPtua.mjs.map +1 -0
- package/.output/server/chunks/build/{Select-CEyw7HGK.mjs → Select-BChKOOsc.mjs} +4 -4
- package/.output/server/chunks/build/Select-BChKOOsc.mjs.map +1 -0
- package/.output/server/chunks/build/{SelectMenu-C02Hs2_F.mjs → SelectMenu-DLkMyBsW.mjs} +5 -5
- package/.output/server/chunks/build/{SelectMenu-C02Hs2_F.mjs.map → SelectMenu-DLkMyBsW.mjs.map} +1 -1
- package/.output/server/chunks/build/{Separator-lrN70ODV.mjs → Separator-Dn-4PN3P.mjs} +2 -2
- package/.output/server/chunks/build/Separator-Dn-4PN3P.mjs.map +1 -0
- package/.output/server/chunks/build/{SettingsField-tRmytcEJ.mjs → SettingsField-BLO1C7uY.mjs} +6 -6
- package/.output/server/chunks/build/SettingsField-BLO1C7uY.mjs.map +1 -0
- package/.output/server/chunks/build/{Slideover-D6cRIqch.mjs → Slideover-BiDJaQrt.mjs} +3 -3
- package/.output/server/chunks/build/Slideover-BiDJaQrt.mjs.map +1 -0
- package/.output/server/chunks/build/{Switch-R2n82ncQ.mjs → Switch-Ca3fYrSH.mjs} +4 -4
- package/.output/server/chunks/build/Switch-Ca3fYrSH.mjs.map +1 -0
- package/.output/server/chunks/build/{Table-qZdnm9t2.mjs → Table-DQb34a0A.mjs} +3 -3
- package/.output/server/chunks/build/Table-DQb34a0A.mjs.map +1 -0
- package/.output/server/chunks/build/{Tabs-BDP7MWl4.mjs → Tabs-_ALhm_oG.mjs} +3 -3
- package/.output/server/chunks/build/Tabs-_ALhm_oG.mjs.map +1 -0
- package/.output/server/chunks/build/{TestCaseHistoryChart-CKDXQ2GI.mjs → TestCaseHistoryChart-D-TEUsZ8.mjs} +3 -3
- package/.output/server/chunks/build/TestCaseHistoryChart-D-TEUsZ8.mjs.map +1 -0
- package/.output/server/chunks/build/{TestMetaBadges-BlyKmfeP.mjs → TestMetaBadges-G2dAHnT-.mjs} +2 -2
- package/.output/server/chunks/build/TestMetaBadges-G2dAHnT-.mjs.map +1 -0
- package/.output/server/chunks/build/{TestStatusBar-CvsmKJ4D.mjs → TestStatusBar-CseETAdn.mjs} +2 -2
- package/.output/server/chunks/build/TestStatusBar-CseETAdn.mjs.map +1 -0
- package/.output/server/chunks/build/{Textarea-DpmpM-lN.mjs → Textarea-CXOoRq7y.mjs} +2 -2
- package/.output/server/chunks/build/Textarea-CXOoRq7y.mjs.map +1 -0
- package/.output/server/chunks/build/{Tooltip-BI3WQErw.mjs → Tooltip-trltUr5c.mjs} +3 -3
- package/.output/server/chunks/build/Tooltip-trltUr5c.mjs.map +1 -0
- package/.output/server/chunks/build/{VisuallyHiddenInput-D4E5aJCQ.mjs → VisuallyHiddenInput-CGURvg3N.mjs} +2 -2
- package/.output/server/chunks/build/VisuallyHiddenInput-CGURvg3N.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-CrGTZymJ.mjs → _id_-B-G4eG5U.mjs} +40 -40
- package/.output/server/chunks/build/{_id_-CrGTZymJ.mjs.map → _id_-B-G4eG5U.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-T965GKYC.mjs → _id_-Cnzg8n21.mjs} +41 -38
- package/.output/server/chunks/build/_id_-Cnzg8n21.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-wiULjAVc.mjs → _id_-Dp_d6gT7.mjs} +63 -55
- package/.output/server/chunks/build/{_id_-wiULjAVc.mjs.map → _id_-Dp_d6gT7.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-D7UtAIPR.mjs → _id_-t2AWaYuK.mjs} +59 -52
- package/.output/server/chunks/build/{_id_-D7UtAIPR.mjs.map → _id_-t2AWaYuK.mjs.map} +1 -1
- package/.output/server/chunks/build/{about-B3V_OEiu.mjs → about-BFsHkJwE.mjs} +8 -8
- package/.output/server/chunks/build/about-BFsHkJwE.mjs.map +1 -0
- package/.output/server/chunks/build/{account-DpBdYE46.mjs → account-CZAq8kVg.mjs} +8 -8
- package/.output/server/chunks/build/account-CZAq8kVg.mjs.map +1 -0
- package/.output/server/chunks/build/{ai-DYhpzbqp.mjs → ai-BGP3GcCR.mjs} +21 -21
- package/.output/server/chunks/build/{ai-DYhpzbqp.mjs.map → ai-BGP3GcCR.mjs.map} +1 -1
- package/.output/server/chunks/build/{analytics-CZJEU0an.mjs → analytics-CXl5OWV-.mjs} +25 -25
- package/.output/server/chunks/build/{analytics-CZJEU0an.mjs.map → analytics-CXl5OWV-.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-DO1izI2V.mjs → default-4ixAePum.mjs} +209 -77
- package/.output/server/chunks/build/default-4ixAePum.mjs.map +1 -0
- package/.output/server/chunks/build/{docs-C8bndVXg.mjs → docs-Cgsd01H9.mjs} +16 -16
- package/.output/server/chunks/build/{docs-C8bndVXg.mjs.map → docs-Cgsd01H9.mjs.map} +1 -1
- package/.output/server/chunks/build/{edit-BdfF9er2.mjs → edit-BEQ-ozj9.mjs} +436 -40
- package/.output/server/chunks/build/edit-BEQ-ozj9.mjs.map +1 -0
- package/.output/server/chunks/build/{fetch-tkz5_OA-.mjs → fetch-B5TVXZ1s.mjs} +3 -3
- package/.output/server/chunks/build/fetch-B5TVXZ1s.mjs.map +1 -0
- package/.output/server/chunks/build/{forgot-password-swZRcvXE.mjs → forgot-password-mqE1mpDI.mjs} +4 -4
- package/.output/server/chunks/build/forgot-password-mqE1mpDI.mjs.map +1 -0
- package/.output/server/chunks/build/{help-content-C876a9WD.mjs → help-content-Bc99BajS.mjs} +6 -1
- package/.output/server/chunks/build/help-content-Bc99BajS.mjs.map +1 -0
- package/.output/server/chunks/build/{import-B27Sv7h5.mjs → import-DqDDTcSc.mjs} +15 -15
- package/.output/server/chunks/build/import-DqDDTcSc.mjs.map +1 -0
- package/.output/server/chunks/build/{index-ID913tUa.mjs → index-Bpdj6TXV.mjs} +5 -5
- package/.output/server/chunks/build/index-Bpdj6TXV.mjs.map +1 -0
- package/.output/server/chunks/build/{index-vRwzDXLs.mjs → index-DBFsIsjA.mjs} +534 -262
- package/.output/server/chunks/build/index-DBFsIsjA.mjs.map +1 -0
- package/.output/server/chunks/build/{index-C7m32bRI.mjs → index-DSufXCZq.mjs} +22 -18
- package/.output/server/chunks/build/index-DSufXCZq.mjs.map +1 -0
- package/.output/server/chunks/build/{index-BdZmxLtC.mjs → index-WXE60AXk.mjs} +24 -24
- package/.output/server/chunks/build/{index-BdZmxLtC.mjs.map → index-WXE60AXk.mjs.map} +1 -1
- package/.output/server/chunks/build/{index-ByWTzqF6.mjs → index-okKjrRhL.mjs} +15 -4
- package/.output/server/chunks/build/index-okKjrRhL.mjs.map +1 -0
- package/.output/server/chunks/build/{isValueEqualOrExist-D4lZ8uRY.mjs → isValueEqualOrExist-C-9DzL4K.mjs} +3 -3
- package/.output/server/chunks/build/isValueEqualOrExist-C-9DzL4K.mjs.map +1 -0
- package/.output/server/chunks/build/{login-hxCF06JT.mjs → login-eQ88UoBW.mjs} +7 -7
- package/.output/server/chunks/build/login-eQ88UoBW.mjs.map +1 -0
- package/.output/server/chunks/build/{mcp-BVW1llyW.mjs → mcp-frcSP2Zg.mjs} +14 -14
- package/.output/server/chunks/build/mcp-frcSP2Zg.mjs.map +1 -0
- package/.output/server/chunks/build/{notifications-Dn-evqXM.mjs → notifications-DAtRd5V6.mjs} +14 -14
- package/.output/server/chunks/build/notifications-DAtRd5V6.mjs.map +1 -0
- package/.output/server/chunks/build/{performance-CV8qm94u.mjs → performance-BcQzGXE7.mjs} +13 -13
- package/.output/server/chunks/build/performance-BcQzGXE7.mjs.map +1 -0
- package/.output/server/chunks/build/{pr-feedback-gKDz8LyA.mjs → pr-feedback-BHtgvegy.mjs} +11 -11
- package/.output/server/chunks/build/pr-feedback-BHtgvegy.mjs.map +1 -0
- package/.output/server/chunks/build/{reset-password-DtEISa1I.mjs → reset-password-DMHrp14-.mjs} +4 -4
- package/.output/server/chunks/build/reset-password-DMHrp14-.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +34 -34
- package/.output/server/chunks/build/{settings-BJDnuLpc.mjs → settings-Bo5OETop.mjs} +11 -11
- package/.output/server/chunks/build/settings-Bo5OETop.mjs.map +1 -0
- package/.output/server/chunks/build/{settings-metadata-DnAK4Rzg.mjs → settings-metadata-BHbsWQ2g.mjs} +3 -3
- package/.output/server/chunks/build/settings-metadata-BHbsWQ2g.mjs.map +1 -0
- package/.output/server/chunks/build/{setup-BO9tXa_G.mjs → setup-DAXcxuNY.mjs} +18 -18
- package/.output/server/chunks/build/{setup-BO9tXa_G.mjs.map → setup-DAXcxuNY.mjs.map} +1 -1
- package/.output/server/chunks/build/{storage-zN92cA9q.mjs → storage-BPK0fVwx.mjs} +13 -13
- package/.output/server/chunks/build/storage-BPK0fVwx.mjs.map +1 -0
- package/.output/server/chunks/build/{tags-CJFnoyQc.mjs → tags-CoxErA5m.mjs} +8 -8
- package/.output/server/chunks/build/tags-CoxErA5m.mjs.map +1 -0
- package/.output/server/chunks/build/{test-cases-0Q6rT73d.mjs → test-cases-D8rn-0le.mjs} +27 -27
- package/.output/server/chunks/build/test-cases-D8rn-0le.mjs.map +1 -0
- package/.output/server/chunks/build/{test-functions-DVRJgiWo.mjs → test-functions-pWs9mhbJ.mjs} +13 -13
- package/.output/server/chunks/build/test-functions-pWs9mhbJ.mjs.map +1 -0
- package/.output/server/chunks/build/{useCopyRich-CZxJ7IY_.mjs → useCopyRich-BqVfhnoH.mjs} +90 -33
- package/.output/server/chunks/build/{useCopyRich-CZxJ7IY_.mjs.map → useCopyRich-BqVfhnoH.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDesktopDownload-Dyf0fR47.mjs → useDesktopDownload-l80DQJ9e.mjs} +2 -2
- package/.output/server/chunks/build/useDesktopDownload-l80DQJ9e.mjs.map +1 -0
- package/.output/server/chunks/build/{useDesktopLocalRuns-k7Gw3Fv3.mjs → useDesktopLocalRuns-Dil3YzyU.mjs} +68 -6
- package/.output/server/chunks/build/useDesktopLocalRuns-Dil3YzyU.mjs.map +1 -0
- package/.output/server/chunks/build/{useDesktopProjectLink-WwLte59P.mjs → useDesktopProjectLink-BnIONB--.mjs} +21 -4
- package/.output/server/chunks/build/useDesktopProjectLink-BnIONB--.mjs.map +1 -0
- package/.output/server/chunks/build/{useFormControl-8skMOTIf.mjs → useFormControl-CXKztoWk.mjs} +2 -2
- package/.output/server/chunks/build/useFormControl-CXKztoWk.mjs.map +1 -0
- package/.output/server/chunks/build/{useOpenInIde-D74FmDNg.mjs → useOpenInIde-CbbYW3pd.mjs} +2 -2
- package/.output/server/chunks/build/useOpenInIde-CbbYW3pd.mjs.map +1 -0
- package/.output/server/chunks/build/{useSettingsNav-BLTHducV.mjs → useSettingsNav-C6NpD4Ab.mjs} +2 -2
- package/.output/server/chunks/build/useSettingsNav-C6NpD4Ab.mjs.map +1 -0
- package/.output/server/chunks/build/{users-C9bjOBde.mjs → users-C2MuCf5G.mjs} +9 -9
- package/.output/server/chunks/build/users-C2MuCf5G.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +1032 -721
- 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/5SkLJHl8.js +0 -1
- package/.output/public/_nuxt/6sA-GK37.js +0 -1
- package/.output/public/_nuxt/6vX5JdHr.js +0 -1
- package/.output/public/_nuxt/B070fjS-.js +0 -1
- package/.output/public/_nuxt/B0tmRAhY.js +0 -1
- package/.output/public/_nuxt/B3AG2m76.js +0 -1
- package/.output/public/_nuxt/B4mZElvM.js +0 -1
- package/.output/public/_nuxt/B7tiBVLW.js +0 -1
- package/.output/public/_nuxt/BFYkWpPx.js +0 -1
- package/.output/public/_nuxt/BM5BPKlc.js +0 -1
- package/.output/public/_nuxt/BNyTWIad.js +0 -9
- package/.output/public/_nuxt/BOvtXn3m.js +0 -1
- package/.output/public/_nuxt/BVyjw9Bi.js +0 -1
- package/.output/public/_nuxt/BZOykMLD.js +0 -1
- package/.output/public/_nuxt/BjMo2tKC.js +0 -6
- package/.output/public/_nuxt/BjOFxi54.js +0 -1
- package/.output/public/_nuxt/BjaRappk.js +0 -1
- package/.output/public/_nuxt/BtZNYmZO.js +0 -1
- package/.output/public/_nuxt/C6t4kxaa.js +0 -1
- package/.output/public/_nuxt/CEai-PWF.js +0 -1
- package/.output/public/_nuxt/CF_eDZHu.js +0 -1
- package/.output/public/_nuxt/CIQeRUSy.js +0 -17
- package/.output/public/_nuxt/CPQRQqXU.js +0 -1
- package/.output/public/_nuxt/CYhm2FBS.js +0 -5
- package/.output/public/_nuxt/CdEzDaDI.js +0 -1
- package/.output/public/_nuxt/CfhOanaF.js +0 -1
- package/.output/public/_nuxt/CvVbKrcH.js +0 -1
- package/.output/public/_nuxt/Cz7SCzdW.js +0 -1
- package/.output/public/_nuxt/D7fxV-UA.js +0 -1
- package/.output/public/_nuxt/D7t0Dn3h.js +0 -1
- package/.output/public/_nuxt/DCE2_MKD.js +0 -2
- package/.output/public/_nuxt/DFfqRQxk.js +0 -1
- package/.output/public/_nuxt/DNqm5cWU.js +0 -1
- package/.output/public/_nuxt/DTrPCv7R.js +0 -1
- package/.output/public/_nuxt/DYjxDsYC.js +0 -1
- package/.output/public/_nuxt/Dbf8eT28.js +0 -1
- package/.output/public/_nuxt/DeewM3Wg.js +0 -2
- package/.output/public/_nuxt/DiWxW-w3.js +0 -2
- package/.output/public/_nuxt/DmqCquDx.js +0 -1
- package/.output/public/_nuxt/DnxrNGE_.js +0 -1
- package/.output/public/_nuxt/DprkT7rM.js +0 -1
- package/.output/public/_nuxt/DuBtaw3j.js +0 -1
- package/.output/public/_nuxt/DylyATWU.js +0 -2
- package/.output/public/_nuxt/HIGGZ_c-.js +0 -1
- package/.output/public/_nuxt/RkNtgoTD.js +0 -1
- package/.output/public/_nuxt/Wk7ZKG4B.js +0 -1
- package/.output/public/_nuxt/Ya8ZzWuY.js +0 -1
- package/.output/public/_nuxt/a8Z6VC7V.js +0 -2
- package/.output/public/_nuxt/builds/meta/6d1766a0-0aba-46b8-9d97-7dd174130359.json +0 -1
- package/.output/public/_nuxt/dUPMBJ4f.js +0 -1
- package/.output/public/_nuxt/eT2oObCh.js +0 -1
- package/.output/public/_nuxt/entry.D_eWXrnD.css +0 -1
- package/.output/public/_nuxt/kWnH8yJq.js +0 -1
- package/.output/public/_nuxt/sqqg4oXL.js +0 -1
- package/.output/public/_nuxt/xZQGtnVA.js +0 -1
- package/.output/server/chunks/build/Alert-He-UxEt6.mjs.map +0 -1
- package/.output/server/chunks/build/Breadcrumb-DEP2dVCZ.mjs.map +0 -1
- package/.output/server/chunks/build/BreadcrumbNav-y6nMDYcR.mjs.map +0 -1
- package/.output/server/chunks/build/BrowserBadge-DIASU8Gf.mjs.map +0 -1
- package/.output/server/chunks/build/ChartCard-ZTsCvItQ.mjs.map +0 -1
- package/.output/server/chunks/build/ChartMarkerTooltip-u_1DUHh-.mjs.map +0 -1
- package/.output/server/chunks/build/Checkbox-BisdHf8n.mjs.map +0 -1
- package/.output/server/chunks/build/CodeBlock-B8BNtZAe.mjs.map +0 -1
- package/.output/server/chunks/build/DashboardNavbar-D7-3zBUU.mjs.map +0 -1
- package/.output/server/chunks/build/DashboardSidebarToggle-C3HdHvlE.mjs.map +0 -1
- package/.output/server/chunks/build/DataLocationCard-CC2-lHiP.mjs.map +0 -1
- package/.output/server/chunks/build/DesktopRunLocallyButton-iNzrDsEs.mjs.map +0 -1
- package/.output/server/chunks/build/DiagnosisPanel-BVb2LgHu.mjs.map +0 -1
- package/.output/server/chunks/build/DiagnosisResult-xVgZlfKK.mjs.map +0 -1
- package/.output/server/chunks/build/DurationValue-UX9uajQJ.mjs.map +0 -1
- package/.output/server/chunks/build/EmptyState-DC2q_7TD.mjs.map +0 -1
- package/.output/server/chunks/build/EntityLinks-Dzn73fbq.mjs.map +0 -1
- package/.output/server/chunks/build/EnvManagedBadge-C-agmABK.mjs.map +0 -1
- package/.output/server/chunks/build/ErrorState-CktYyeEZ.mjs.map +0 -1
- package/.output/server/chunks/build/FeatureUnavailable-DHFkwI7t.mjs.map +0 -1
- package/.output/server/chunks/build/FormField-GYHKiSI6.mjs.map +0 -1
- package/.output/server/chunks/build/GetStartedWizard-BpcGYsm2.mjs.map +0 -1
- package/.output/server/chunks/build/HelpHint-plioHKA0.mjs.map +0 -1
- package/.output/server/chunks/build/LoadingState-CwpfmI0W.mjs.map +0 -1
- package/.output/server/chunks/build/MarkerBadge-Biz5--h2.mjs.map +0 -1
- package/.output/server/chunks/build/MetaStripGroup-A0a72vt5.mjs.map +0 -1
- package/.output/server/chunks/build/Modal-hKLvVFNp.mjs.map +0 -1
- package/.output/server/chunks/build/NavbarActions-_YjrSUat.mjs.map +0 -1
- package/.output/server/chunks/build/NavigationMenu-RfBOyS32.mjs.map +0 -1
- package/.output/server/chunks/build/RovingFocusItem-BOSx1Z9Z.mjs.map +0 -1
- package/.output/server/chunks/build/RunReports-nuLb-Nm3.mjs.map +0 -1
- package/.output/server/chunks/build/RunStatusBadge-CvWmcFYM.mjs.map +0 -1
- package/.output/server/chunks/build/SectionCard-DHAFvJxm.mjs.map +0 -1
- package/.output/server/chunks/build/Select-CEyw7HGK.mjs.map +0 -1
- package/.output/server/chunks/build/Separator-lrN70ODV.mjs.map +0 -1
- package/.output/server/chunks/build/SettingsField-tRmytcEJ.mjs.map +0 -1
- package/.output/server/chunks/build/Slideover-D6cRIqch.mjs.map +0 -1
- package/.output/server/chunks/build/Switch-R2n82ncQ.mjs.map +0 -1
- package/.output/server/chunks/build/Table-qZdnm9t2.mjs.map +0 -1
- package/.output/server/chunks/build/Tabs-BDP7MWl4.mjs.map +0 -1
- package/.output/server/chunks/build/TestCaseHistoryChart-CKDXQ2GI.mjs.map +0 -1
- package/.output/server/chunks/build/TestMetaBadges-BlyKmfeP.mjs.map +0 -1
- package/.output/server/chunks/build/TestStatusBar-CvsmKJ4D.mjs.map +0 -1
- package/.output/server/chunks/build/Textarea-DpmpM-lN.mjs.map +0 -1
- package/.output/server/chunks/build/Tooltip-BI3WQErw.mjs.map +0 -1
- package/.output/server/chunks/build/VisuallyHiddenInput-D4E5aJCQ.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-T965GKYC.mjs.map +0 -1
- package/.output/server/chunks/build/about-B3V_OEiu.mjs.map +0 -1
- package/.output/server/chunks/build/account-DpBdYE46.mjs.map +0 -1
- package/.output/server/chunks/build/db.client-Bdqk_eYQ.mjs.map +0 -1
- package/.output/server/chunks/build/default-DO1izI2V.mjs.map +0 -1
- package/.output/server/chunks/build/edit-BdfF9er2.mjs.map +0 -1
- package/.output/server/chunks/build/fetch-tkz5_OA-.mjs.map +0 -1
- package/.output/server/chunks/build/forgot-password-swZRcvXE.mjs.map +0 -1
- package/.output/server/chunks/build/help-content-C876a9WD.mjs.map +0 -1
- package/.output/server/chunks/build/import-B27Sv7h5.mjs.map +0 -1
- package/.output/server/chunks/build/index-ByWTzqF6.mjs.map +0 -1
- package/.output/server/chunks/build/index-C7m32bRI.mjs.map +0 -1
- package/.output/server/chunks/build/index-ID913tUa.mjs.map +0 -1
- package/.output/server/chunks/build/index-vRwzDXLs.mjs.map +0 -1
- package/.output/server/chunks/build/isValueEqualOrExist-D4lZ8uRY.mjs.map +0 -1
- package/.output/server/chunks/build/login-hxCF06JT.mjs.map +0 -1
- package/.output/server/chunks/build/mcp-BVW1llyW.mjs.map +0 -1
- package/.output/server/chunks/build/notifications-Dn-evqXM.mjs.map +0 -1
- package/.output/server/chunks/build/performance-CV8qm94u.mjs.map +0 -1
- package/.output/server/chunks/build/pr-feedback-gKDz8LyA.mjs.map +0 -1
- package/.output/server/chunks/build/reset-password-DtEISa1I.mjs.map +0 -1
- package/.output/server/chunks/build/settings-BJDnuLpc.mjs.map +0 -1
- package/.output/server/chunks/build/settings-metadata-DnAK4Rzg.mjs.map +0 -1
- package/.output/server/chunks/build/storage-zN92cA9q.mjs.map +0 -1
- package/.output/server/chunks/build/tags-CJFnoyQc.mjs.map +0 -1
- package/.output/server/chunks/build/test-cases-0Q6rT73d.mjs.map +0 -1
- package/.output/server/chunks/build/test-functions-DVRJgiWo.mjs.map +0 -1
- package/.output/server/chunks/build/useDesktopDownload-Dyf0fR47.mjs.map +0 -1
- package/.output/server/chunks/build/useDesktopLocalRuns-k7Gw3Fv3.mjs.map +0 -1
- package/.output/server/chunks/build/useDesktopProjectLink-WwLte59P.mjs.map +0 -1
- package/.output/server/chunks/build/useFormControl-8skMOTIf.mjs.map +0 -1
- package/.output/server/chunks/build/useOpenInIde-D74FmDNg.mjs.map +0 -1
- package/.output/server/chunks/build/useSettingsNav-BLTHducV.mjs.map +0 -1
- package/.output/server/chunks/build/users-C9bjOBde.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,o,
|
|
1
|
+
import{d as l,o,e as c,f as m,h as i,_ as u,b as t,g as _,t as d,l as g,v as f,m as k}from"./BzBaMPgu.js";import{g as p}from"./D7W_4Sqc.js";const y={class:"truncate"},B=l({__name:"MarkerBadge",props:{marker:{},size:{default:"sm"},categoryOnly:{type:Boolean,default:!1}},setup(e){const n=e,a=f(()=>p(n.marker.category));return(h,z)=>{const s=u,r=k;return o(),c(r,{color:t(a).color,size:e.size,variant:"subtle",class:"gap-1 items-center max-w-full"},{default:m(()=>[i(s,{name:t(a).icon,class:"size-3 shrink-0"},null,8,["name"]),_("span",y,d(e.categoryOnly?t(a).label:e.marker.label),1),e.marker.source==="auto"?(o(),c(s,{key:0,name:"i-lucide-sparkles",class:"size-3 shrink-0 opacity-70",title:"Automatically detected"})):g("",!0)]),_:1},8,["color","size"])}}}),C=Object.assign(B,{__name:"MarkerBadge"});export{C as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as
|
|
1
|
+
import{d as C,u as I,p as F,q as S,c as g,h as t,f as n,o as i,b as e,e as h,F as T,l as j,g as d,D as A,G as M,x as k,j as D,k as b,t as x,H as z,_ as E,v as V,r as u}from"./BzBaMPgu.js";import{_ as G}from"./Db5xe__T.js";import{_ as H}from"./Bg8yOdSf.js";import{_ as L}from"./kDEwM7SQ.js";import"./CTYlay1H.js";const O={class:"min-h-screen flex items-center justify-center bg-elevated/50"},J={class:"flex items-center gap-2"},K={class:"text-2xl font-bold"},Q={class:"mt-4 text-center"},te=C({__name:"reset-password",setup(W){const f=I(),U=F(),$=S(),m=V(()=>f.query.token),p=V(()=>f.query.mode==="invite"),o=u(""),c=u(""),r=u(!1),a=u("");async function B(){if(a.value="",!m.value){a.value="Missing reset token";return}if(o.value.length<8){a.value="Password must be at least 8 characters";return}if(o.value!==c.value){a.value="Passwords do not match";return}r.value=!0;try{await $fetch("/api/auth/reset-password",{method:"POST",body:{token:m.value,password:o.value}}),$.add({title:p.value?"Account activated!":"Password reset!",color:"success"}),U.push("/login")}catch(l){const s=l&&typeof l=="object"&&"data"in l?l.data?.message:void 0;a.value=s||"Invalid or expired link"}finally{r.value=!1}}return(l,s)=>{const N=E,v=G,w=M,y=H,P=D,R=z,q=L;return i(),g("div",O,[t(q,{class:"w-full max-w-md"},{header:n(()=>[d("div",J,[t(N,{name:"i-lucide-lock",class:"size-6"}),d("h1",K,x(e(p)?"Set your password":"Reset your password"),1)])]),default:n(()=>[e(m)?(i(),g(T,{key:1},[e(a)?(i(),h(v,{key:0,color:"error",title:e(a),variant:"subtle",class:"mb-4"},null,8,["title"])):j("",!0),d("form",{class:"space-y-4",onSubmit:A(B,["prevent"])},[t(y,{label:"New password",name:"password",required:""},{default:n(()=>[t(w,{modelValue:e(o),"onUpdate:modelValue":s[0]||(s[0]=_=>k(o)?o.value=_:null),type:"password",placeholder:"Min 8 characters",autocomplete:"new-password",disabled:e(r),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),t(y,{label:"Confirm password",name:"confirmPassword",required:""},{default:n(()=>[t(w,{modelValue:e(c),"onUpdate:modelValue":s[1]||(s[1]=_=>k(c)?c.value=_:null),type:"password",placeholder:"Repeat password",autocomplete:"new-password",disabled:e(r),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),t(P,{type:"submit",block:"",loading:e(r)},{default:n(()=>[b(x(e(p)?"Activate account":"Reset password"),1)]),_:1},8,["loading"])],32)],64)):(i(),h(v,{key:0,color:"error",title:"Invalid link",description:"This link is missing or malformed."})),d("div",Q,[t(R,{to:"/login",class:"text-sm text-gray-500 hover:text-gray-700 dark:hover:text-gray-300"},{default:n(()=>[...s[2]||(s[2]=[b(" Back to login ",-1)])]),_:1})])]),_:1})])}}});export{te as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as O,Z as Q,Y as ee,V as f,k as e,r as R,$ as te,U as B,o as r,f as i,g as u,W as D,X as I,aC as V,B as Y,bz as z,j as k,bK as oe,c5 as ae,bJ as se,c6 as x,bH as le,J as N,h as F,P as L,ae as j,aE as G,bF as re,C as ne,v as g,a0 as W,a1 as X,bO as ue,a2 as ie,a3 as de,a4 as pe,a5 as fe,a6 as ce,a7 as ve,bP as ye,b9 as U,b8 as me,c3 as _e,bY as ge,m as A,t as M,c as E,q as h,_ as be,bS as De,F as Oe,a8 as Ce,c7 as qe}from"./CNu3kken.js";const[w,Be]=te("DialogRoot");var we=O({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(d,{emit:n}){const a=d,o=Q(a,"open",n,{defaultValue:a.defaultOpen,passive:a.open===void 0}),t=R(),y=R(),{modal:p,unmountOnHide:c}=ee(a);return Be({open:o,modal:p,unmountOnHide:c,openModal:()=>{o.value=!0},onOpenChange:l=>{o.value=l},onOpenToggle:()=>{o.value=!o.value},contentId:"",titleId:"",descriptionId:"",triggerElement:t,contentElement:y}),(l,m)=>f(l.$slots,"default",{open:e(o),close:()=>o.value=!1})}}),he=we,ke=O({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(d){const n=d;B();const a=w();return(s,o)=>(r(),i(e(I),D(n,{type:s.as==="button"?"button":void 0,onClick:o[0]||(o[0]=t=>e(a).onOpenChange(!1))}),{default:u(()=>[f(s.$slots,"default")]),_:3},16,["type"]))}}),Pe=ke,$e=O({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(d,{emit:n}){const a=d,s=n,o=w(),{forwardRef:t,currentElement:y}=B();return o.titleId||=V(void 0,"reka-dialog-title"),o.descriptionId||=V(void 0,"reka-dialog-description"),Y(()=>{o.contentElement=y,z()!==document.body&&(o.triggerElement.value=z())}),(p,c)=>(r(),i(e(se),{"as-child":"",loop:"",trapped:a.trapFocus,present:a.present,onMountAutoFocus:c[5]||(c[5]=l=>s("openAutoFocus",l)),onUnmountAutoFocus:c[6]||(c[6]=l=>s("closeAutoFocus",l))},{default:u(()=>[k(e(oe),D({id:e(o).contentId,ref:e(t),as:p.as,"as-child":p.asChild,present:a.present,"disable-outside-pointer-events":p.disableOutsidePointerEvents,role:"dialog","aria-describedby":e(o).descriptionId,"aria-labelledby":e(o).titleId,"data-state":e(ae)(e(o).open.value)},p.$attrs,{onDismiss:c[0]||(c[0]=l=>e(o).onOpenChange(!1)),onEscapeKeyDown:c[1]||(c[1]=l=>s("escapeKeyDown",l)),onFocusOutside:c[2]||(c[2]=l=>s("focusOutside",l)),onInteractOutside:c[3]||(c[3]=l=>s("interactOutside",l)),onPointerDownOutside:c[4]||(c[4]=l=>s("pointerDownOutside",l))}),{default:u(()=>[f(p.$slots,"default")]),_:3},16,["id","as","as-child","present","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped","present"]))}}),Z=$e,Ee=O({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(d,{emit:n}){const a=d,s=n,o=w(),t=x(s),{forwardRef:y,currentElement:p}=B(),c=F(()=>a.present?p.value:void 0);le(c);const l=F(()=>{const{present:m,...v}=a;return v});return N(()=>a.present,(m,v)=>{!m&&v&&o.triggerElement.value?.focus()}),(m,v)=>(r(),i(Z,D({...l.value,...e(t)},{ref:e(y),present:m.present,"trap-focus":e(o).open.value,"disable-outside-pointer-events":a.disableOutsidePointerEvents,onCloseAutoFocus:v[0]||(v[0]=C=>{C.defaultPrevented||(C.preventDefault(),e(o).triggerElement.value?.focus())}),onPointerDownOutside:v[1]||(v[1]=C=>{const P=C.detail.originalEvent,b=P.button===0&&P.ctrlKey===!0;(P.button===2||b)&&C.preventDefault()}),onFocusOutside:v[2]||(v[2]=C=>{C.preventDefault()})}),{default:u(()=>[f(m.$slots,"default")]),_:3},16,["present","trap-focus","disable-outside-pointer-events"]))}}),Fe=Ee,Ie=O({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(d,{emit:n}){const a=d,o=x(n);B();const t=w(),y=R(!1),p=R(!1),c=F(()=>{const{present:l,...m}=a;return m});return N(()=>a.present,(l,m)=>{!l&&m&&(y.value||t.triggerElement.value?.focus(),y.value=!1,p.value=!1)}),(l,m)=>(r(),i(Z,D({...c.value,...e(o)},{present:l.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:m[0]||(m[0]=v=>{v.defaultPrevented||(y.value||e(t).triggerElement.value?.focus(),v.preventDefault()),y.value=!1,p.value=!1}),onInteractOutside:m[1]||(m[1]=v=>{v.defaultPrevented||(y.value=!0,v.detail.originalEvent.type==="pointerdown"&&(p.value=!0));const C=v.target;e(t).triggerElement.value?.contains(C)&&v.preventDefault(),v.detail.originalEvent.type==="focusin"&&p.value&&v.preventDefault()})}),{default:u(()=>[f(l.$slots,"default")]),_:3},16,["present"]))}}),Ae=Ie,Me=O({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(d,{emit:n}){const a=d,s=n,o=w(),t=x(s),{forwardRef:y}=B();return(p,c)=>(r(),i(e(G),{present:p.forceMount||e(o).open.value,"force-mount":p.forceMount||!e(o).unmountOnHide.value},{default:u(({present:l})=>[e(o).modal.value?L((r(),i(Fe,D({key:0,ref:e(y),present:e(o).unmountOnHide.value||l},{...a,...e(t),...p.$attrs}),{default:u(()=>[f(p.$slots,"default")]),_:2},1040,["present"])),[[j,e(o).unmountOnHide.value||l]]):L((r(),i(Ae,D({key:1,ref:e(y),present:e(o).unmountOnHide.value||l},{...a,...e(t),...p.$attrs}),{default:u(()=>[f(p.$slots,"default")]),_:2},1040,["present"])),[[j,e(o).unmountOnHide.value||l]])]),_:3},8,["present","force-mount"]))}}),Re=Me,He=O({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(d){const n=d;B();const a=w();return(s,o)=>(r(),i(e(I),D(n,{id:e(a).descriptionId}),{default:u(()=>[f(s.$slots,"default")]),_:3},16,["id"]))}}),S=He,Te=O({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},setup(d){const n=d,a=w(),s=re(n.present);return N(()=>n.present,o=>s.value=o),B(),(o,t)=>(r(),i(e(I),{as:o.as,"as-child":o.asChild,"data-state":e(a).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:t[0]||(t[0]=ne(()=>{},["left","self","prevent"]))},{default:u(()=>[f(o.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Se=Te,Ke=O({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(d){const n=w(),{forwardRef:a}=B();return(s,o)=>e(n)?.modal.value?(r(),i(e(G),{key:0,present:s.forceMount||e(n).open.value,"force-mount":s.forceMount||!e(n).unmountOnHide.value},{default:u(({present:t})=>[L(k(Se,D(s.$attrs,{ref:e(a),as:s.as,"as-child":s.asChild,present:e(n).unmountOnHide.value||t}),{default:u(()=>[f(s.$slots,"default")]),_:2},1040,["as","as-child","present"]),[[j,e(n).unmountOnHide.value||t]])]),_:3},8,["present","force-mount"])):g("v-if",!0)}}),J=Ke,Ve=O({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(d){const n=d;return(a,s)=>(r(),i(e(ue),W(X(n)),{default:u(()=>[f(a.$slots,"default")]),_:3},16))}}),Le=Ve,je=O({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(d){const n=d,a=w();return B(),(s,o)=>(r(),i(e(I),D(n,{id:e(a).titleId}),{default:u(()=>[f(s.$slots,"default")]),_:3},16,["id"]))}}),K=je,xe=O({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(d){const n=d,a=w(),{forwardRef:s,currentElement:o}=B();return a.contentId||=V(void 0,"reka-dialog-content"),Y(()=>{a.triggerElement.value=o.value}),(t,y)=>(r(),i(e(I),D(n,{ref:e(s),type:t.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":e(a).open.value||!1,"aria-controls":e(a).open.value?e(a).contentId:void 0,"data-state":e(a).open.value?"open":"closed",onClick:e(a).onOpenToggle}),{default:u(()=>[f(t.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),Ne=xe;const ze={slots:{overlay:"fixed inset-0",content:"bg-default divide-y divide-default flex flex-col focus:outline-none",header:"flex items-center gap-1.5 p-4 sm:px-6 min-h-(--ui-header-height)",wrapper:"",body:"flex-1 p-4 sm:p-6",footer:"flex items-center gap-1.5 p-4 sm:px-6",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",close:"absolute top-4 end-4"},variants:{transition:{true:{overlay:"data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",content:"data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"}},fullscreen:{true:{content:"inset-0"},false:{content:"w-[calc(100vw-2rem)] max-w-lg rounded-lg shadow-lg ring ring-default"}},overlay:{true:{overlay:"bg-elevated/75"}},scrollable:{true:{overlay:"overflow-y-auto",content:"relative"},false:{content:"fixed",body:"overflow-y-auto"}}},compoundVariants:[{scrollable:!0,fullscreen:!1,class:{overlay:"grid place-items-center p-4 sm:py-8"}},{scrollable:!1,fullscreen:!1,class:{content:"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] overflow-hidden"}}]},Je={__name:"UModal",props:{title:{type:String,required:!1},description:{type:String,required:!1},content:{type:Object,required:!1},overlay:{type:Boolean,required:!1,default:!0},scrollable:{type:Boolean,required:!1},transition:{type:Boolean,required:!1,default:!0},fullscreen:{type:Boolean,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:null,required:!1},dismissible:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1}},emits:["leave","after:leave","enter","after:enter","close:prevent","update:open"],setup(d,{emit:n}){const a=d,s=n,o=ie(),t=de("modal",a),{t:y}=pe(),p=fe(),c=ce(ve(t,"open","defaultOpen","modal","unmountOnHide"),s),l=ye(U(()=>t.portal)),m=U(()=>t.content),v=F(()=>t.dismissible?{pointerDownOutside:_=>qe(_,{scrollable:t.scrollable})}:["interactOutside","escapeKeyDown"].reduce((q,H)=>(q[H]=$=>{$.preventDefault(),s("close:prevent")},q),{})),[C,P]=me(),b=F(()=>Ce({extend:ze,...p.ui?.modal||{}})({transition:t.transition,fullscreen:t.fullscreen,overlay:t.overlay,scrollable:t.scrollable}));return(_,q)=>(r(),i(e(he),W(X(e(c))),{default:u(({open:H,close:$})=>[k(e(C),null,{default:u(()=>[k(e(Re),D({"data-slot":"content",class:b.value.content({class:[!o.default&&e(t).class,e(t).ui?.content]})},m.value,{onEnter:q[0]||(q[0]=T=>s("enter")),onAfterEnter:q[1]||(q[1]=T=>s("after:enter")),onLeave:q[2]||(q[2]=T=>s("leave")),onAfterLeave:q[3]||(q[3]=T=>s("after:leave"))},_e(v.value)),{default:u(()=>[!e(t).title&&!o.title||!e(t).description&&!o.description||o.content?(r(),i(e(ge),{key:0},{default:u(()=>[!e(t).title&&!o.title?(r(),i(e(K),{key:0})):o.content?(r(),i(e(K),{key:1},{default:u(()=>[f(_.$slots,"title",{},()=>[A(M(e(t).title),1)])]),_:3})):g("",!0),!e(t).description&&!o.description?(r(),i(e(S),{key:2})):o.content?(r(),i(e(S),{key:3},{default:u(()=>[f(_.$slots,"description",{},()=>[A(M(e(t).description),1)])]),_:3})):g("",!0)]),_:3})):g("",!0),f(_.$slots,"content",{close:$},()=>[o.header||e(t).title||o.title||e(t).description||o.description||e(t).close||o.close?(r(),E("div",{key:0,"data-slot":"header",class:h(b.value.header({class:e(t).ui?.header}))},[f(_.$slots,"header",{close:$},()=>[e(t).title||o.title||e(t).description||o.description?(r(),E("div",{key:0,"data-slot":"wrapper",class:h(b.value.wrapper({class:e(t).ui?.wrapper}))},[e(t).title||o.title?(r(),i(e(K),{key:0,"data-slot":"title",class:h(b.value.title({class:e(t).ui?.title}))},{default:u(()=>[f(_.$slots,"title",{},()=>[A(M(e(t).title),1)])]),_:3},8,["class"])):g("",!0),e(t).description||o.description?(r(),i(e(S),{key:1,"data-slot":"description",class:h(b.value.description({class:e(t).ui?.description}))},{default:u(()=>[f(_.$slots,"description",{},()=>[A(M(e(t).description),1)])]),_:3},8,["class"])):g("",!0)],2)):g("",!0),f(_.$slots,"actions"),e(t).close||o.close?(r(),i(e(Pe),{key:1,"as-child":""},{default:u(()=>[f(_.$slots,"close",{ui:b.value},()=>[e(t).close?(r(),i(be,D({key:0,icon:e(t).closeIcon||e(p).ui.icons.close,color:"neutral",variant:"ghost","aria-label":e(y)("modal.close")},typeof e(t).close=="object"?e(t).close:{},{"data-slot":"close",class:b.value.close({class:e(t).ui?.close})}),null,16,["icon","aria-label","class"])):g("",!0)])]),_:2},1024)):g("",!0)])],2)):g("",!0),o.body?(r(),E("div",{key:1,"data-slot":"body",class:h(b.value.body({class:e(t).ui?.body}))},[f(_.$slots,"body",{close:$})],2)):g("",!0),o.footer?(r(),E("div",{key:2,"data-slot":"footer",class:h(b.value.footer({class:e(t).ui?.footer}))},[f(_.$slots,"footer",{close:$})],2)):g("",!0)])]),_:2},1040,["class"])]),_:2},1024),o.default?(r(),i(e(Ne),{key:0,"as-child":"",class:h(e(t).class)},{default:u(()=>[f(_.$slots,"default",{open:H})]),_:2},1032,["class"])):g("",!0),k(e(Le),D(e(l),{"force-mount":e(l).disabled&&e(t).unmountOnHide===!1||void 0}),{default:u(()=>[k(e(De),null,{default:u(()=>[e(t).scrollable?(r(),i(e(J),{key:0,"data-slot":"overlay",class:h(b.value.overlay({class:e(t).ui?.overlay}))},{default:u(()=>[k(e(P))]),_:1},8,["class"])):(r(),E(Oe,{key:1},[e(t).overlay?(r(),i(e(J),{key:0,"data-slot":"overlay",class:h(b.value.overlay({class:e(t).ui?.overlay}))},null,8,["class"])):g("",!0),k(e(P))],64))]),_:1})]),_:1},16,["force-mount"])]),_:3},16))}};export{Ne as D,Je as _,Le as a,J as b,Re as c,K as d,S as e,Pe as f,he as g};
|
|
1
|
+
import{d as O,Z as Q,Y as ee,V as f,b as e,r as R,$ as te,U as B,o as r,e as i,f as u,W as b,X as F,aB as V,C as X,by as U,h as k,bJ as oe,c4 as ae,bI as se,c5 as j,bG as le,a as x,v as I,P as L,ae as N,aD as J,bE as re,D as ne,l as g,a0 as W,a1 as Y,bN as ue,a2 as ie,a3 as de,a4 as pe,a5 as fe,a6 as ce,a7 as ve,bO as ye,b8 as z,b7 as me,c2 as _e,bX as ge,k as A,t as M,c as E,i as h,j as De,bR as be,F as Oe,a8 as Ce,c6 as qe}from"./BzBaMPgu.js";const[w,Be]=te("DialogRoot");var we=O({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(d,{emit:n}){const a=d,o=Q(a,"open",n,{defaultValue:a.defaultOpen,passive:a.open===void 0}),t=R(),y=R(),{modal:p,unmountOnHide:c}=ee(a);return Be({open:o,modal:p,unmountOnHide:c,openModal:()=>{o.value=!0},onOpenChange:l=>{o.value=l},onOpenToggle:()=>{o.value=!o.value},contentId:"",titleId:"",descriptionId:"",triggerElement:t,contentElement:y}),(l,m)=>f(l.$slots,"default",{open:e(o),close:()=>o.value=!1})}}),he=we,ke=O({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(d){const n=d;B();const a=w();return(s,o)=>(r(),i(e(F),b(n,{type:s.as==="button"?"button":void 0,onClick:o[0]||(o[0]=t=>e(a).onOpenChange(!1))}),{default:u(()=>[f(s.$slots,"default")]),_:3},16,["type"]))}}),$e=ke,Pe=O({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(d,{emit:n}){const a=d,s=n,o=w(),{forwardRef:t,currentElement:y}=B();return o.titleId||=V(void 0,"reka-dialog-title"),o.descriptionId||=V(void 0,"reka-dialog-description"),X(()=>{o.contentElement=y,U()!==document.body&&(o.triggerElement.value=U())}),(p,c)=>(r(),i(e(se),{"as-child":"",loop:"",trapped:a.trapFocus,present:a.present,onMountAutoFocus:c[5]||(c[5]=l=>s("openAutoFocus",l)),onUnmountAutoFocus:c[6]||(c[6]=l=>s("closeAutoFocus",l))},{default:u(()=>[k(e(oe),b({id:e(o).contentId,ref:e(t),as:p.as,"as-child":p.asChild,present:a.present,"disable-outside-pointer-events":p.disableOutsidePointerEvents,role:"dialog","aria-describedby":e(o).descriptionId,"aria-labelledby":e(o).titleId,"data-state":e(ae)(e(o).open.value)},p.$attrs,{onDismiss:c[0]||(c[0]=l=>e(o).onOpenChange(!1)),onEscapeKeyDown:c[1]||(c[1]=l=>s("escapeKeyDown",l)),onFocusOutside:c[2]||(c[2]=l=>s("focusOutside",l)),onInteractOutside:c[3]||(c[3]=l=>s("interactOutside",l)),onPointerDownOutside:c[4]||(c[4]=l=>s("pointerDownOutside",l))}),{default:u(()=>[f(p.$slots,"default")]),_:3},16,["id","as","as-child","present","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped","present"]))}}),Z=Pe,Ee=O({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(d,{emit:n}){const a=d,s=n,o=w(),t=j(s),{forwardRef:y,currentElement:p}=B(),c=I(()=>a.present?p.value:void 0);le(c);const l=I(()=>{const{present:m,...v}=a;return v});return x(()=>a.present,(m,v)=>{!m&&v&&o.triggerElement.value?.focus()}),(m,v)=>(r(),i(Z,b({...l.value,...e(t)},{ref:e(y),present:m.present,"trap-focus":e(o).open.value,"disable-outside-pointer-events":a.disableOutsidePointerEvents,onCloseAutoFocus:v[0]||(v[0]=C=>{C.defaultPrevented||(C.preventDefault(),e(o).triggerElement.value?.focus())}),onPointerDownOutside:v[1]||(v[1]=C=>{const $=C.detail.originalEvent,D=$.button===0&&$.ctrlKey===!0;($.button===2||D)&&C.preventDefault()}),onFocusOutside:v[2]||(v[2]=C=>{C.preventDefault()})}),{default:u(()=>[f(m.$slots,"default")]),_:3},16,["present","trap-focus","disable-outside-pointer-events"]))}}),Ie=Ee,Fe=O({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(d,{emit:n}){const a=d,o=j(n);B();const t=w(),y=R(!1),p=R(!1),c=I(()=>{const{present:l,...m}=a;return m});return x(()=>a.present,(l,m)=>{!l&&m&&(y.value||t.triggerElement.value?.focus(),y.value=!1,p.value=!1)}),(l,m)=>(r(),i(Z,b({...c.value,...e(o)},{present:l.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:m[0]||(m[0]=v=>{v.defaultPrevented||(y.value||e(t).triggerElement.value?.focus(),v.preventDefault()),y.value=!1,p.value=!1}),onInteractOutside:m[1]||(m[1]=v=>{v.defaultPrevented||(y.value=!0,v.detail.originalEvent.type==="pointerdown"&&(p.value=!0));const C=v.target;e(t).triggerElement.value?.contains(C)&&v.preventDefault(),v.detail.originalEvent.type==="focusin"&&p.value&&v.preventDefault()})}),{default:u(()=>[f(l.$slots,"default")]),_:3},16,["present"]))}}),Ae=Fe,Me=O({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(d,{emit:n}){const a=d,s=n,o=w(),t=j(s),{forwardRef:y}=B();return(p,c)=>(r(),i(e(J),{present:p.forceMount||e(o).open.value,"force-mount":p.forceMount||!e(o).unmountOnHide.value},{default:u(({present:l})=>[e(o).modal.value?L((r(),i(Ie,b({key:0,ref:e(y),present:e(o).unmountOnHide.value||l},{...a,...e(t),...p.$attrs}),{default:u(()=>[f(p.$slots,"default")]),_:2},1040,["present"])),[[N,e(o).unmountOnHide.value||l]]):L((r(),i(Ae,b({key:1,ref:e(y),present:e(o).unmountOnHide.value||l},{...a,...e(t),...p.$attrs}),{default:u(()=>[f(p.$slots,"default")]),_:2},1040,["present"])),[[N,e(o).unmountOnHide.value||l]])]),_:3},8,["present","force-mount"]))}}),Re=Me,He=O({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(d){const n=d;B();const a=w();return(s,o)=>(r(),i(e(F),b(n,{id:e(a).descriptionId}),{default:u(()=>[f(s.$slots,"default")]),_:3},16,["id"]))}}),S=He,Te=O({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},setup(d){const n=d,a=w(),s=re(n.present);return x(()=>n.present,o=>s.value=o),B(),(o,t)=>(r(),i(e(F),{as:o.as,"as-child":o.asChild,"data-state":e(a).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:t[0]||(t[0]=ne(()=>{},["left","self","prevent"]))},{default:u(()=>[f(o.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Se=Te,Ke=O({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(d){const n=w(),{forwardRef:a}=B();return(s,o)=>e(n)?.modal.value?(r(),i(e(J),{key:0,present:s.forceMount||e(n).open.value,"force-mount":s.forceMount||!e(n).unmountOnHide.value},{default:u(({present:t})=>[L(k(Se,b(s.$attrs,{ref:e(a),as:s.as,"as-child":s.asChild,present:e(n).unmountOnHide.value||t}),{default:u(()=>[f(s.$slots,"default")]),_:2},1040,["as","as-child","present"]),[[N,e(n).unmountOnHide.value||t]])]),_:3},8,["present","force-mount"])):g("v-if",!0)}}),G=Ke,Ve=O({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(d){const n=d;return(a,s)=>(r(),i(e(ue),W(Y(n)),{default:u(()=>[f(a.$slots,"default")]),_:3},16))}}),Le=Ve,Ne=O({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(d){const n=d,a=w();return B(),(s,o)=>(r(),i(e(F),b(n,{id:e(a).titleId}),{default:u(()=>[f(s.$slots,"default")]),_:3},16,["id"]))}}),K=Ne,je=O({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(d){const n=d,a=w(),{forwardRef:s,currentElement:o}=B();return a.contentId||=V(void 0,"reka-dialog-content"),X(()=>{a.triggerElement.value=o.value}),(t,y)=>(r(),i(e(F),b(n,{ref:e(s),type:t.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":e(a).open.value||!1,"aria-controls":e(a).open.value?e(a).contentId:void 0,"data-state":e(a).open.value?"open":"closed",onClick:e(a).onOpenToggle}),{default:u(()=>[f(t.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),xe=je;const Ue={slots:{overlay:"fixed inset-0",content:"bg-default divide-y divide-default flex flex-col focus:outline-none",header:"flex items-center gap-1.5 p-4 sm:px-6 min-h-(--ui-header-height)",wrapper:"",body:"flex-1 p-4 sm:p-6",footer:"flex items-center gap-1.5 p-4 sm:px-6",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",close:"absolute top-4 end-4"},variants:{transition:{true:{overlay:"data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",content:"data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"}},fullscreen:{true:{content:"inset-0"},false:{content:"w-[calc(100vw-2rem)] max-w-lg rounded-lg shadow-lg ring ring-default"}},overlay:{true:{overlay:"bg-elevated/75"}},scrollable:{true:{overlay:"overflow-y-auto",content:"relative"},false:{content:"fixed",body:"overflow-y-auto"}}},compoundVariants:[{scrollable:!0,fullscreen:!1,class:{overlay:"grid place-items-center p-4 sm:py-8"}},{scrollable:!1,fullscreen:!1,class:{content:"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] overflow-hidden"}}]},Ge={__name:"UModal",props:{title:{type:String,required:!1},description:{type:String,required:!1},content:{type:Object,required:!1},overlay:{type:Boolean,required:!1,default:!0},scrollable:{type:Boolean,required:!1},transition:{type:Boolean,required:!1,default:!0},fullscreen:{type:Boolean,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:null,required:!1},dismissible:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1}},emits:["leave","after:leave","enter","after:enter","close:prevent","update:open"],setup(d,{emit:n}){const a=d,s=n,o=ie(),t=de("modal",a),{t:y}=pe(),p=fe(),c=ce(ve(t,"open","defaultOpen","modal","unmountOnHide"),s),l=ye(z(()=>t.portal)),m=z(()=>t.content),v=I(()=>t.dismissible?{pointerDownOutside:_=>qe(_,{scrollable:t.scrollable})}:["interactOutside","escapeKeyDown"].reduce((q,H)=>(q[H]=P=>{P.preventDefault(),s("close:prevent")},q),{})),[C,$]=me(),D=I(()=>Ce({extend:Ue,...p.ui?.modal||{}})({transition:t.transition,fullscreen:t.fullscreen,overlay:t.overlay,scrollable:t.scrollable}));return(_,q)=>(r(),i(e(he),W(Y(e(c))),{default:u(({open:H,close:P})=>[k(e(C),null,{default:u(()=>[k(e(Re),b({"data-slot":"content",class:D.value.content({class:[!o.default&&e(t).class,e(t).ui?.content]})},m.value,{onEnter:q[0]||(q[0]=T=>s("enter")),onAfterEnter:q[1]||(q[1]=T=>s("after:enter")),onLeave:q[2]||(q[2]=T=>s("leave")),onAfterLeave:q[3]||(q[3]=T=>s("after:leave"))},_e(v.value)),{default:u(()=>[!e(t).title&&!o.title||!e(t).description&&!o.description||o.content?(r(),i(e(ge),{key:0},{default:u(()=>[!e(t).title&&!o.title?(r(),i(e(K),{key:0})):o.content?(r(),i(e(K),{key:1},{default:u(()=>[f(_.$slots,"title",{},()=>[A(M(e(t).title),1)])]),_:3})):g("",!0),!e(t).description&&!o.description?(r(),i(e(S),{key:2})):o.content?(r(),i(e(S),{key:3},{default:u(()=>[f(_.$slots,"description",{},()=>[A(M(e(t).description),1)])]),_:3})):g("",!0)]),_:3})):g("",!0),f(_.$slots,"content",{close:P},()=>[o.header||e(t).title||o.title||e(t).description||o.description||e(t).close||o.close?(r(),E("div",{key:0,"data-slot":"header",class:h(D.value.header({class:e(t).ui?.header}))},[f(_.$slots,"header",{close:P},()=>[e(t).title||o.title||e(t).description||o.description?(r(),E("div",{key:0,"data-slot":"wrapper",class:h(D.value.wrapper({class:e(t).ui?.wrapper}))},[e(t).title||o.title?(r(),i(e(K),{key:0,"data-slot":"title",class:h(D.value.title({class:e(t).ui?.title}))},{default:u(()=>[f(_.$slots,"title",{},()=>[A(M(e(t).title),1)])]),_:3},8,["class"])):g("",!0),e(t).description||o.description?(r(),i(e(S),{key:1,"data-slot":"description",class:h(D.value.description({class:e(t).ui?.description}))},{default:u(()=>[f(_.$slots,"description",{},()=>[A(M(e(t).description),1)])]),_:3},8,["class"])):g("",!0)],2)):g("",!0),f(_.$slots,"actions"),e(t).close||o.close?(r(),i(e($e),{key:1,"as-child":""},{default:u(()=>[f(_.$slots,"close",{ui:D.value},()=>[e(t).close?(r(),i(De,b({key:0,icon:e(t).closeIcon||e(p).ui.icons.close,color:"neutral",variant:"ghost","aria-label":e(y)("modal.close")},typeof e(t).close=="object"?e(t).close:{},{"data-slot":"close",class:D.value.close({class:e(t).ui?.close})}),null,16,["icon","aria-label","class"])):g("",!0)])]),_:2},1024)):g("",!0)])],2)):g("",!0),o.body?(r(),E("div",{key:1,"data-slot":"body",class:h(D.value.body({class:e(t).ui?.body}))},[f(_.$slots,"body",{close:P})],2)):g("",!0),o.footer?(r(),E("div",{key:2,"data-slot":"footer",class:h(D.value.footer({class:e(t).ui?.footer}))},[f(_.$slots,"footer",{close:P})],2)):g("",!0)])]),_:2},1040,["class"])]),_:2},1024),o.default?(r(),i(e(xe),{key:0,"as-child":"",class:h(e(t).class)},{default:u(()=>[f(_.$slots,"default",{open:H})]),_:2},1032,["class"])):g("",!0),k(e(Le),b(e(l),{"force-mount":e(l).disabled&&e(t).unmountOnHide===!1||void 0}),{default:u(()=>[k(e(be),null,{default:u(()=>[e(t).scrollable?(r(),i(e(G),{key:0,"data-slot":"overlay",class:h(D.value.overlay({class:e(t).ui?.overlay}))},{default:u(()=>[k(e($))]),_:1},8,["class"])):(r(),E(Oe,{key:1},[e(t).overlay?(r(),i(e(G),{key:0,"data-slot":"overlay",class:h(D.value.overlay({class:e(t).ui?.overlay}))},null,8,["class"])):g("",!0),k(e($))],64))]),_:1})]),_:1},16,["force-mount"])]),_:3},16))}};export{xe as D,Ge as _,Le as a,G as b,Re as c,K as d,S as e,$e as f,he as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a3 as se,a5 as ie,aT as oe,aO as ue,ao as P,aU as H,aV as X,C as Y,L as le,ad as fe,r as q,M as T,v as x,aW as _,o as ce,e as de,f as me,V as pe,D as ye,i as ve,b as g,ag as he,aX as Ee,a8 as be,N as w,aY as ge,aZ as we,a_ as Se,a$ as Fe}from"./BzBaMPgu.js";function Ie(n){return"schema"in n&&typeof n.coercer=="function"&&typeof n.validator=="function"&&typeof n.refiner=="function"}function je(n){return"~standard"in n}async function qe(n,i){const f=await i["~standard"].validate(n);return f.issues?{errors:f.issues?.map(u=>({name:u.path?.map(o=>typeof o=="object"?o.key:o).join(".")||"",message:u.message}))||[],result:null}:{errors:null,result:f.value}}async function xe(n,i){const[f,u]=i.validate(n);return f?{errors:f.failures().map(r=>({message:r.message,name:r.path.join(".")})),result:null}:{errors:null,result:u}}function Oe(n,i){if(je(i))return qe(n,i);if(Ie(i))return xe(n,i);throw new Error("Form validation failed: Unsupported form schema")}function Be(n,i){return i?i.split(".").reduce((u,o)=>u?.[o],n):n}function Ne(n,i,f){if(!i)return Object.assign(n,f);if(!n)return n;const u=i.split(".");let o=n;for(let y=0;y<u.length-1;y++){const v=u[y];(o[v]===void 0||o[v]===null)&&(y+1<u.length&&!Number.isNaN(Number(u[y+1]))?o[v]=[]:o[v]={}),o=o[v]}const r=u[u.length-1];return o[r]=f,n}class O extends Error{formId;errors;constructor(i,f){super("Form validation exception"),this.formId=i,this.errors=f,Object.setPrototypeOf(this,O.prototype)}}const Re={base:""},ke={__name:"UForm",props:{id:{type:[String,Number],required:!1},schema:{type:null,required:!1},state:{type:null,required:!1},validate:{type:Function,required:!1},validateOn:{type:Array,required:!1,default(){return["input","blur","change"]}},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},validateOnInputDelay:{type:Number,required:!1,default:300},transform:{type:null,required:!1,default:()=>!0},nested:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},onSubmit:{type:Function,required:!1}},emits:["submit","error"],setup(n,{expose:i,emit:f}){const u=n,o=f,r=se("form",u),y=ie(),v=x(()=>be({extend:Re,...y.ui?.form||{}})),S=r.id??oe(),k=ue("formRef"),A=Ee(`form-${S}`),E=r.nested===!0&&P(H,void 0),C=r.nested===!0?P(X,void 0):void 0,F=x(()=>C?.value?r.name?Be(C.value,r.name):C.value:r.state);w(H,A),w(X,F);const I=q(new Map);Y(async()=>{E&&(await le(),E.emit({type:"attach",validate:j,formId:S,name:r.name,api:z}))}),fe(()=>{A.reset(),E&&E.emit({type:"detach",formId:S})}),Y(async()=>{A.on(async e=>{e.type==="attach"?I.value.set(e.formId,{validate:e.validate,name:e.name,api:e.api}):e.type==="detach"?I.value.delete(e.formId):r.validateOn?.includes(e.type)&&!h.value&&(e.type!=="input"?await j({name:e.name,silent:!0,nested:!1}):(e.eager||K.has(e.name))&&await j({name:e.name,silent:!0,nested:!1})),e.type==="blur"&&K.add(e.name),(e.type==="change"||e.type==="input"||e.type==="blur"||e.type==="focus")&&M.add(e.name),(e.type==="change"||e.type==="input")&&N.add(e.name)})});const l=q([]);w(ge,l);const B=q({});w(we,B);const N=T(new Set),M=T(new Set),K=T(new Set);function W(e){return e.map(t=>({...t,id:t?.name?B.value[t.name]?.id:void 0}))}const R=q(null);async function Z(){let e=r.validate?await r.validate(F.value)??[]:[];if(r.schema){const{errors:t,result:a}=await Oe(F.value,r.schema);t?e=e.concat(t):R.value=a}return W(e)}async function j(e={silent:!1,nested:!1,transform:!1}){const t=e.name&&!Array.isArray(e.name)?[e.name]:e.name;let a=[],s=[];if(!t&&e.nested){const p=Array.from(I.value.values()).map(m=>G(m,e)),d=await Promise.all(p);s=d.filter(m=>m.error).flatMap(m=>m.error.errors.map(ne=>J(ne,m.name))),a=d.filter(m=>m.output!==void 0)}const b=[...await Z(),...s];if(t?l.value=ae(b,t):l.value=b,l.value?.length){if(e.silent)return!1;throw new O(S,l.value)}return e.transform?(a.forEach(p=>{p.name?Ne(R.value,p.name,p.output):Object.assign(R.value,p.output)}),R.value??F.value):F.value}const h=q(!1);w(Se,_(h));async function D(e){h.value=!!r.loadingAuto;const t=e;try{t.data=await j({nested:!0,transform:r.transform}),await r.onSubmit?.(t),N.clear()}catch(a){if(!(a instanceof O))throw a;const s={...t,errors:a.errors};o("error",s)}finally{h.value=!1}}const L=x(()=>r.disabled||h.value);w(Fe,x(()=>({disabled:L.value,validateOnInputDelay:r.validateOnInputDelay})));async function G(e,t){try{const a=await e.validate({...t,silent:!1});return{name:e.name,output:a}}catch(a){if(!(a instanceof O))throw a;return{name:e.name,error:a}}}function J(e,t){return!t||!e.name?e:{...e,name:t+"."+e.name}}function Q(e,t){const a=t+".",s=e?.name?.startsWith(a)?e.name.substring(a.length):e.name;return{...e,name:s}}function ee(e,t){return t?e.filter(a=>a?.name?.startsWith(t+".")).map(a=>Q(a,t)):e}function U(e){return e.api.getErrors().map(t=>e.name?{...t,name:e.name+"."+t.name}:t)}function V(e,t){return!e||!t?!0:e instanceof RegExp?e.test(t):t===e||typeof e=="string"&&e.startsWith(t+".")}function te(e,t){if(!e||e instanceof RegExp)return e;if(t!==e)return typeof e=="string"&&e.startsWith(t+".")?e.substring(t.length+1):e}function ae(e,t){const a=new Set(t),s=t.map(d=>B.value?.[d]?.pattern).filter(Boolean),c=d=>d.name?a.has(d.name)?!0:s.some(m=>m.test(d.name)):!1,b=l.value.filter(d=>!c(d)),p=e.filter(c);return[...b,...p]}function re(e,t){return e.filter(a=>t instanceof RegExp?!(a.name&&t.test(a.name)):!a.name||a.name!==t)}function $(e){return!e.name||!!B.value[e.name]}const z={validate:j,errors:l,setErrors(e,t){const a=W(e.filter($)),s=[];for(const c of I.value.values())if(V(t,c.name)){const b=ee(e,c.name);c.api.setErrors(b,te(t,c.name||"")),s.push(...U(c))}if(t){const c=re(l.value,t);l.value=[...c,...a,...s]}else l.value=[...a,...s]},async submit(){k.value instanceof HTMLFormElement&&k.value.reportValidity()===!1||await D(new Event("submit"))},getErrors(e){return e?l.value.filter(t=>e instanceof RegExp?t.name&&e.test(t.name):t.name===e):l.value},clear(e){const t=e?l.value.filter(s=>$(s)&&(e instanceof RegExp?!(s.name&&e.test(s.name)):s.name!==e)):[],a=[];for(const s of I.value.values())V(e,s.name)&&s.api.clear(),a.push(...U(s));l.value=[...t,...a]},disabled:L,loading:h,dirty:x(()=>!!N.size),dirtyFields:_(N),blurredFields:_(K),touchedFields:_(M)};return i(z),(e,t)=>(ce(),de(he(g(E)?"div":"form"),{id:g(S),ref_key:"formRef",ref:k,name:g(E)?void 0:g(r).name,method:"post",class:ve(v.value({class:[g(r).ui?.base,g(r).class]})),onSubmit:ye(D,["prevent"])},{default:me(()=>[pe(e.$slots,"default",{errors:l.value,loading:h.value})]),_:3},40,["id","name","class"]))}};export{ke as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={"home.flaky":{title:"Flaky tests",text:"Tests that pass and fail without code changes. This counts how many were detected across your projects recently.",doc:"flaky-tests#flaky-test-detection"},"home.trend-bars":{title:"Run history bars",text:"One bar per full run (up to 20), oldest left → newest right. Green = pass, red = fail, amber = passed with flaky tests, gray = skipped/unknown. Click a bar to open that run.",doc:"ui-overview#home"},"home.tendency":{title:"Tendency",text:"Derived from the last 5 full runs. Failing = latest run failed; flaky = pass/fail mixed or flaky tests seen in the window; passing = all recent runs green.",doc:"ui-overview#home"},"home.project-health":{title:"Project health",text:"Every project at a glance — run history bars and a tendency badge so you can immediately see which project needs attention. Only full runs count.",doc:"ui-overview#home"},"home.get-started":{title:"Get started",text:"Wire the Piwi reporter into your Playwright config to start sending results here. The wizard generates the snippet for you.",doc:"getting-started#using-the-piwi-dashboard-reporter"},"analytics.insights":{title:"Insights",text:"Auto-generated findings over the selected period — pass-rate drops, failing streaks, stale clusters, wasted CI time. Ranked by severity; click one to jump to the source."},"analytics.portfolio":{title:"Portfolio health",text:"Every project over the selected period: pass rate with its change vs the previous period, flaky volume, open failure clusters, and the latest run. Worst health sorts first."},"analytics.heatmap":{title:"Pass rate heatmap",text:"Each cell is the aggregate pass rate of one project over one time bucket — green is healthy, red is broken, gray means no runs. Longer periods use wider buckets."},"analytics.ci-time":{title:"CI time",text:"Total minutes your test runs consumed, over time, with the change vs the previous equal-length period. Steady growth here is a capacity conversation."},"analytics.wasted-time":{title:"Wasted CI time",text:"Minutes that produced no signal: time inside wait steps plus time executing attempts that ended failed or timed out. The strongest argument for fixing slow waits and flaky tests."},"analytics.flaky-leaderboard":{title:"Flakiest tests",text:"The worst flaky tests across all projects, using the same scoring as each project’s Flaky tests tab, sorted by wasted-CI impact.",doc:"flaky-tests#flaky-test-detection"},"analytics.cluster-landscape":{title:"Failure clusters",text:"Open failure clusters across all projects — the biggest and oldest unresolved root causes. Clusters outlive run retention, so this works on long horizons.",doc:"ai-diagnosis#failure-clustering"},"analytics.regression-velocity":{title:"Regression velocity",text:"How much new breakage each period introduces: tests that passed in a baseline and now fail (regressions), plus tests that turned flaky. Rising bars mean quality debt is accumulating.",doc:"flaky-tests#regression-signals"},"analytics.browser-matrix":{title:"Browser matrix",text:"Pass rate per project × browser, so a suite that is green on one browser but failing on another (a browser-specific bug) stands out immediately."},"analytics.slow-endpoints":{title:"Slow endpoints",text:"Backend calls captured during tests, aggregated across all projects by route: p50/p90 latency, error rate, and how many projects hit each one — a shared endpoint regressing shows up here first.",doc:"capture-fixtures"},"projects.tag-filter":{text:"Filter projects by tag. Selecting several tags uses OR logic — a project matching any of them is shown."},"projects.table":{title:"Projects",text:"Every project that has reported results, with its latest run, pass rate and activity. Click a row to drill in.",doc:"ui-overview#projects"},"project.import":{title:"Importing past runs",text:"Upload the archives Playwright writes to blob-report/ to backfill runs from before you adopted Piwi. One archive becomes one run, complete with traces and screenshots, and re-uploading the same archive changes nothing. Imports are silent by design — no notifications, AI diagnosis or regression signals, so a backfill never pages the team about months-old failures.",doc:"importing-runs",envVars:["PIWI_IMPORT_MAX_BYTES"]},"project.run-scope":{title:"Full vs partial runs",text:"A partial run executed only a subset of the suite (a shard, a retry, or a filtered selection). Trends use full runs so partial results don’t skew the numbers.",doc:"ui-overview#test-run-detail"},"project.runs-trend":{title:"Run trend",text:"Pass/fail counts per run over time. Hover a point for the exact run; sudden drops mark where things broke.",doc:"ui-overview#project-detail"},"project.flaky-tests":{title:"Flaky tests",text:"Tests that fail intermittently across runs. Impact estimates wasted CI time; the score (0–100) rates severity and root cause explains why.",doc:"flaky-tests#flaky-test-detection"},"project.quarantine":{title:"Quarantine",text:"A quarantined test still runs and still reports — it is only excluded from the CI gate’s verdict. Passing runs accumulate as a streak, so a test that recovers is flagged ready to release instead of staying quarantined forever.",doc:"flaky-tests#quarantine-with-a-way-out"},"project.performance":{title:"Performance",text:"Duration trends for the suite — average and P90 (the slowest 10% threshold). Use it to catch tests getting steadily slower.",doc:"flaky-tests#performance"},"project.timeline":{title:"Timeline markers",text:"Dated events — deploys, config changes, infra migrations, incidents — overlaid as vertical lines on the trend charts, so you can tell whether a change moved your results or performance. Markers can be scoped to an environment; some are detected automatically when tooling versions change between runs.",doc:"timeline-markers",envVars:["PIWI_AUTO_MARKERS"]},"project.slowest-tests":{title:"Slowest tests",text:"The tests taking the most time, ranked. Optimizing the top entries shortens your overall run the fastest.",doc:"flaky-tests#performance"},"project.run-compare":{title:"Run comparison",text:"Diff two runs to see which tests changed status or duration between them — handy for confirming a fix or spotting a regression.",doc:"ui-overview#test-run-detail"},"project.test-cases":{title:"Test cases",text:'Every distinct test in the project with its executed-only pass rate, result breakdown and average duration across runs. Search by title or file, filter by status, and switch to a per-spec tree. Cases not run within the selected age window are hidden by default (last 30 days) — pick "All time" to see obsolete ones. Click a test to see its full history.',doc:"ui-overview#project-detail"},"project.compare":{title:"Compare runs",text:"Pick two runs to see a side-by-side summary and a per-test status diff between them.",doc:"ui-overview#test-run-detail"},"project.spec-health":{title:"Spec health",text:"A heatmap grouped by spec file: pass rate, flaky rate and average time per spec, so you can find the riskiest files at a glance.",doc:"flaky-tests#spec-health-heatmap"},"project.members":{title:"Project access",text:"Who can see this project. Admins always have access; reporters and users see only the projects assigned to them.",doc:"authentication#user-management"},"project.ai-instructions":{title:"AI diagnosis instructions",text:"Extra guidance handed to the AI when diagnosing this project’s failures — e.g. domain terms, known-flaky areas, or where to look first.",doc:"ai-diagnosis#custom-instructions"},"project.scm-token":{title:"Repository access token",text:"A read-only Git host token lets diagnosis pull the actual commit diffs behind a failure for SCM-grounded analysis. Stored encrypted.",doc:"ai-diagnosis#scm-grounded-context"},"project.local-folder":{title:"Linked local folder",text:"The checkout on this machine that produces this project’s runs. Linking it enables running tests from the app and opening files in your IDE. The link is stored on this machine only — never on the server.",doc:"desktop#running-tests-from-the-app"},"run.summary":{title:"Run summary",text:"Headline outcome of this run — overall status, test counts and total duration.",doc:"ui-overview#test-run-detail"},"run.partial":{title:"Partial run",text:"This run covered only part of the suite (a shard, retry or filtered selection), so its totals aren’t a full picture.",doc:"ui-overview#test-run-detail"},"run.live":{title:"Live run",text:"This run is still streaming results in real time. Results and counts update as each test finishes.",doc:"reporter#live-streaming"},"run.ci-env":{title:"CI & environment",text:"Where this run executed — CI provider, pipeline and machine details — collected automatically by the reporter.",doc:"reporter#automatic-metadata-collection"},"run.reports":{title:"Storage & reports",text:"HTML reports, traces and attachments uploaded with this run. A run can carry several reports (e.g. per shard).",doc:"reporter#multiple-reports"},"run.metadata":{title:"Tags, links & custom data",text:"Extra context attached to the run: tags for grouping, links to external issues, and any custom key/value data your reporter sent."},"run.test-cases":{title:"Test cases",text:"Per-test results for this run. Filter by status, or by the NEW (new regression) and FLAKY signal badges.",doc:"ui-overview#test-run-detail"},"run.insights":{title:"Run insights",text:"Automatic highlights for this run — newly failing, flaky and slow tests — surfaced so you don’t have to hunt for them.",doc:"flaky-tests#run-insights"},"run.regression":{title:"Regression signals",text:"Tests that newly started failing in this run versus the project baseline — the most likely fallout from the latest change.",doc:"flaky-tests#regression-signals"},"run.timeline":{title:"Workers timeline",text:"When each test ran on each parallel worker. Gaps and long bars reveal poor parallelization or a single slow test stalling a shard.",doc:"ui-overview#test-run-detail"},"case.diagnosis-tab":{title:"Diagnosis",text:"Everything you need to understand and fix this failure in one place — the error, a verdict on what kind of failure it is, the captured evidence, and an AI diagnosis.",doc:"ui-overview#test-case-detail"},"case.verdict":{title:"Failure verdict",text:"An at-a-glance read on this failure: whether it newly regressed or is flaky, how many times it retried, and how long the test has been failing.",doc:"flaky-tests#regression-signals"},"case.evidence":{title:"Failure evidence",text:"What was captured at the moment of failure — screenshots, video and traces — grouped so you can see exactly what the browser saw.",doc:"ui-overview#trace-viewer"},"case.test-source":{title:"Test source",text:"The source around the failing line and the callers above it — captured from the failure’s call stack — so you can read where it broke, and the code that led there, without opening your editor. When the execution has a trace, this deepens into the complete call stack with the real source of every frame, read from the trace’s embedded files.",doc:"ui-overview#trace-powered-deep-views"},"export.offline":{title:"Reading this offline",text:"Takes this investigation out of the dashboard as a file that needs no network and no Piwi server. HTML is one self-contained page with screenshots and video embedded; ZIP adds the raw artifacts — trace archives, full-size video, logs — plus a machine-readable data.json; PDF is the HTML printed from your browser. Evidence past the size budget is listed in the report as omitted rather than dropped quietly.",envVars:["PIWI_EXPORT_MAX_INLINE_BYTES","PIWI_EXPORT_MAX_BYTES","PIWI_EXPORT_MAX_CASES"]},"case.artifacts":{title:"Artifacts",text:"Traces, attachments, console output and network requests captured for this execution — the raw material behind the result.",doc:"ui-overview#trace-viewer"},"case.steps":{title:"Steps",text:"Each step Playwright ran, with its duration. A failed step is highlighted with its error, and slow steps are color-coded.",doc:"ui-overview#test-case-detail"},"case.wasted-time":{title:"Wasted time",text:"Time spent in fixed waits (waitForTimeout and matching patterns) that could usually be replaced with a web-first assertion.",doc:"flaky-tests#performance"},"case.ai":{title:"AI diagnosis for this execution",text:"Diagnose just this failing execution, or copy the full evidence context to paste into your own AI assistant.",doc:"ai-diagnosis#diagnosing-one-execution"},"case.web-vitals":{title:"Web Vitals",text:"Core Web Vitals (LCP, CLS, etc.) captured during the test, measuring real loading and responsiveness of the page under test.",doc:"capture-fixtures"},"case.traces":{title:"Traces",text:`Playwright trace files for this execution. "View trace" opens them in the dashboard's own trace viewer — the trace stays on your server, it is never sent to a third party.`,doc:"ui-overview#trace-viewer"},"case.console":{title:"Console output",text:"Browser console messages logged while this test ran — often the first clue for a JavaScript error behind a failure.",doc:"capture-fixtures"},"case.network":{title:"Network requests",text:"HTTP requests the page made during the test, with timing and status — useful for spotting failed or slow calls. When the execution has a trace, the Full trace view shows every request (all resource types) with headers, timing phases, a waterfall and capped body previews; sensitive header values are masked.",doc:"ui-overview#trace-powered-deep-views"},"case.backend-logs":{title:"Backend server logs",text:"Server-side warnings and errors captured during the test, correlated with this execution via a Piwi backend integration.",doc:"backend-logs"},"case.aria":{title:"ARIA snapshot",text:"A snapshot of the accessibility tree at the moment of failure — what assistive tech saw, and useful grounding for AI diagnosis.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"case.flaky-count":{title:"Flaky runs",text:"How many of this test’s recent executions flipped between pass and fail without a code change.",doc:"flaky-tests#flaky-test-detection"},"case.history-chart":{title:"Duration trend",text:"This test’s duration across recent runs. Rising times or spikes hint at a slowdown or instability.",doc:"flaky-tests#flaky-test-detection"},"case.sparkline":{title:"Status history",text:"Pass/fail outcome of this test over its recent runs, oldest to newest — a quick read on its stability.",doc:"flaky-tests#flaky-test-detection"},"cluster.concept":{title:"Failure clusters",text:"Failures with the same error fingerprint are grouped into one cluster, so a single root cause shows up once instead of N times.",doc:"ai-diagnosis#failure-clustering"},"cluster.new-vs-known":{title:"New vs known failure",text:"Whether this failure matches an existing cluster (a known issue) or opened a new one — a fresh signature worth a closer look.",doc:"ai-diagnosis#failure-clustering"},"cluster.triage":{text:"Track a cluster’s state: set its status, add triage notes, or extract a subset of failures into a separate cluster."},"cluster.resolution":{title:"Resolution",text:"Recorded when a full run turns this cluster green: when the fix landed, how long the cluster stayed open, and whether the change matched the diagnosed files. If the failure comes back, the cluster is marked as regressed rather than quietly reopened.",doc:"ai-diagnosis#did-the-fix-work"},"cluster.evidence":{title:"Test evidence",text:"The concrete artifacts behind this cluster — screenshots, signals and traces from affected tests — gathered for review and AI diagnosis.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.scm":{title:"What changed",text:"Recent commits and diffs around when this failure started, so you can connect the break to the change that caused it.",doc:"ai-diagnosis#scm-grounded-context"},"cluster.baseline":{title:"Baseline commit",text:"The last known-good commit. Diffs are computed from here forward to scope the search for the offending change.",doc:"ai-diagnosis#scm-grounded-context"},"cluster.commit-browser":{title:"Commit browser",text:"Browse the repository’s recent commits and inspect each diff to pick a baseline or find the suspect change.",doc:"ai-diagnosis#scm-grounded-context"},"cluster.diagnosis":{title:"AI diagnosis",text:"Runs the configured AI model over the failure plus its evidence and code changes to propose a root cause and fix.",doc:"ai-diagnosis#enabling-ai-diagnosis"},"cluster.context-input":{title:"Additional context",text:"Extra notes, files or screenshots you add to steer the diagnosis — anything the model can’t infer from the captured evidence.",doc:"ai-diagnosis#custom-instructions"},"cluster.context-preview":{title:"Context preview",text:"Exactly what will be sent to the AI, including how much was trimmed to fit the token budget. Review it before spending tokens.",doc:"ai-diagnosis#context-limits-and-token-cost"},"cluster.result":{title:"Diagnosis result",text:"The AI’s proposed root cause, fix and confidence. Treat it as a lead to verify, not proof — confirm against the evidence before acting.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.ai-setup":{title:"AI not configured",text:"Diagnosis needs an AI provider and API key. Configure one in Settings → AI to enable automatic and on-demand analysis.",doc:"ai-diagnosis#enabling-ai-diagnosis"},"cluster.confidence":{title:"Confidence score",text:"How sure the model is of the top hypothesis (0–100). It is lowered when key evidence is missing or truncated, so treat a low score as “gather more before acting”.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.hypotheses":{title:"Other hypotheses",text:"Alternative root causes the model weighed, ranked by likelihood. Useful when the evidence is ambiguous and the top pick is not conclusive.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.coverage":{title:"Data coverage",text:"Which evidence sections were present, truncated or absent for this diagnosis — the same map the model sees. Absent or trimmed evidence lowers confidence; the quote icon marks sections the diagnosis cited.",doc:"ai-diagnosis#context-limits-and-token-cost"},"notifications.subscribe":{title:"Project notifications",text:"Get notified about this project’s runs through your channels. Choose which events trigger an alert.",doc:"notifications#subscriptions"},"settings.general":{title:"General settings",text:"Central place for account, users, AI diagnosis, notifications, storage and tags. Settings that can be overridden by environment variables show a lock badge naming the variable."},"settings.storage-stats":{title:"Storage statistics",text:"How much disk your reports, traces and attachments use, broken down so you can see what to clean up.",doc:"storage#storage-architecture"},"settings.cleanup":{title:"Cleanup old runs",text:"Delete runs (and their reports, traces and attachments) older than a chosen age to reclaim storage. This cannot be undone.",doc:"storage#storage-management"},"account.email":{title:"Email & verification",text:"Your account email is used for password resets and notifications. Verifying it confirms you own the address.",doc:"authentication#user-management"},"settings.smtp":{title:"SMTP status",text:"Outbound email (resets, invites, notifications) is configured through environment variables and shown here read-only.",doc:"notifications#smtp-configuration",envVars:["PIWI_SMTP_HOST","PIWI_SMTP_PORT","PIWI_SMTP_USER","PIWI_SMTP_PASS","PIWI_SMTP_FROM","PIWI_SMTP_FROM_NAME","PIWI_SMTP_SECURE"]},"notifications.channels":{title:"Channels",text:"Destinations an alert can go to — email, Slack or webhook. Create a channel, then subscribe events to it.",doc:"notifications#channels"},"notifications.subscriptions":{title:"Subscriptions",text:"Which events (run failed, new cluster, etc.) notify which channel, optionally scoped to one project and filtered.",doc:"notifications#subscriptions"},"settings.ai-provider":{title:"AI provider",text:"Configure the model providers behind the three AI roles — diagnosis, research and embedding. Each role has its own provider config, or reuses another role’s provider and credentials. Keys are stored encrypted and never returned by the API.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_PROVIDER","PIWI_AI_MODEL","PIWI_AI_API_KEY","PIWI_AI_BASE_URL"]},"settings.ai-instructions":{title:"Global analysis instructions",text:"Guidance applied to every diagnosis across all projects — house style, terminology, or things to always check. Per-project instructions add to this.",doc:"ai-diagnosis#custom-instructions"},"settings.ai-research":{title:"Research model",text:"An optional cheaper/faster model that pre-analyzes the failure (on a lean view) before the main model writes the final diagnosis. It can use its own provider, and the costly SCM diff is only fetched when it flags a likely regression. It also handles cluster naming and merge adjudication, so configuring a cheap research model routes those utility calls away from the expensive diagnosis model.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_RESEARCH_PROVIDER","PIWI_AI_RESEARCH_MODEL","PIWI_AI_RESEARCH_BASE_URL","PIWI_AI_RESEARCH_API_KEY"]},"settings.ai-limits":{title:"Diagnosis context limits",text:"Caps on how much evidence (and how many tokens) go into each diagnosis. Higher limits give the model more to work with but cost more. Each field can be pinned individually by its env var.",doc:"ai-diagnosis#context-limits-and-token-cost",envVars:["PIWI_AI_MAX_SAMPLE_ERROR_CHARS","PIWI_AI_MAX_SCM_PATCH_BUDGET","PIWI_AI_MAX_AFFECTED_TESTS","PIWI_AI_MAX_STEPS","PIWI_AI_MAX_CONSOLE_ENTRIES","PIWI_AI_MAX_CONSOLE_ENTRY_CHARS","PIWI_AI_MAX_NETWORK_REQUESTS","PIWI_AI_MAX_ARIA_SNAPSHOT_CHARS","PIWI_AI_MAX_TEST_SOURCE_CHARS","PIWI_AI_MAX_SERVER_LOG_ENTRIES","PIWI_AI_MAX_SERVER_LOG_ENTRY_CHARS","PIWI_AI_MAX_IMAGES","PIWI_AI_MAX_PASSED_PEERS","PIWI_AI_MAX_CONSOLE_WINDOW","PIWI_AI_SLOW_REQUEST_MS","PIWI_AI_MAX_TRACE_STACK_FRAMES","PIWI_AI_MAX_TRACE_NETWORK_REQUESTS"]},"settings.users":{title:"Users & roles",text:"Manage accounts and their role. Administrators control everything; reporters submit results; users have read-only access.",doc:"authentication#roles"},"settings.api-keys":{title:"API keys",text:"Tokens (prefixed pd_) that let the reporter or scripts authenticate without a password. Shown once at creation; revoke anytime.",doc:"authentication#api-keys"},"settings.tags":{text:"Reusable labels you can attach to projects for grouping and filtering across the dashboard."},"settings.wasted-time":{title:"Wasted-time patterns",text:"Define which wait steps count as wasted time. A wait is wasted when any pattern matches its step title or source location. Patterns are case-insensitive and support * and ? wildcards. Changes apply to existing runs immediately.",doc:"flaky-tests#performance",envVars:["PIWI_WASTED_WAIT_PATTERNS"]},"settings.timeout-hygiene":{title:"Timeout hygiene",text:"Thresholds for flagging oversized per-test timeouts and stale test.slow() marks. Opportunities are recomputed at read time, so changes apply to existing runs immediately.",doc:"flaky-tests#performance"},"settings.pr-feedback":{title:"Pull-request feedback",text:"When a run finishes on a branch with an open pull request, Piwi can post a summary comment — new failures separated from pre-existing ones, with suggested locators — and set a commit status. Needs PIWI_SITE_URL and an SCM token with write access.",doc:"ci#pull-request-feedback",envVars:["PIWI_SITE_URL"]},"settings.auto-diagnose":{title:"Auto-diagnose",text:"When a run finishes, up to 3 new failure clusters are diagnosed automatically — each diagnosis is one research call (when a research model is configured) plus one diagnosis call — and new clusters get human-readable titles in one batched call. Requires the diagnosis model to be configured.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_AUTO_DIAGNOSE"]},"settings.embedding-model":{title:"Embedding model",text:"Embeds failures so semantically-similar errors group together (used by failure clustering). Can reuse another role’s provider or configure its own.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_EMBEDDING_PROVIDER","PIWI_AI_EMBEDDING_MODEL","PIWI_AI_EMBEDDING_BASE_URL","PIWI_AI_EMBEDDING_API_KEY"]},"settings.privacy":{title:"Privacy notice",text:"What data is sent to the configured LLM provider when diagnosing a failure, and how secrets are stored. API keys are encrypted at rest; env vars keep them out of the DB entirely.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"settings.storage-backend":{title:"Storage backend",text:"Where test artifacts (HTML reports, traces, attachments) are stored — local disk or S3. Configured entirely through environment variables; shown here read-only.",doc:"storage#storage-architecture",envVars:["PIWI_STORAGE_TYPE","PIWI_STORAGE_PATH","PIWI_S3_BUCKET","PIWI_S3_REGION","PIWI_S3_ACCESS_KEY_ID","PIWI_S3_SECRET_ACCESS_KEY","PIWI_S3_ENDPOINT","PIWI_S3_FORCE_PATH_STYLE"]},"settings.auth-toggle":{title:"Authentication",text:"Role-based access control and API keys. Off by default — when disabled, every endpoint behaves as a single virtual administrator.",doc:"authentication",envVars:["PIWI_AUTH_ENABLED","PIWI_AUTH_SECRET"]},"account.display-name":{title:"Display name",text:"A friendly name shown alongside your account. Optional, and visible only within the dashboard."},"account.connected-accounts":{title:"Connected accounts",text:"Sign in with an OAuth provider (Google or GitHub). Providers are configured by an operator through environment variables; one provider can be linked per account.",doc:"authentication#oauth-google-github",envVars:["PIWI_OAUTH_GOOGLE_CLIENT_ID","PIWI_OAUTH_GOOGLE_CLIENT_SECRET","PIWI_OAUTH_GITHUB_CLIENT_ID","PIWI_OAUTH_GITHUB_CLIENT_SECRET","PIWI_OAUTH_ALLOWED_DOMAINS","PIWI_OAUTH_GITHUB_ALLOWED_ORGS"]},"account.password":{title:"Password",text:"Change the password you sign in with. OAuth-only accounts manage their password through their provider.",doc:"authentication#user-management"},"notifications.test-email":{title:"Send test email",text:"Send a test message through the configured SMTP server to verify delivery. Uses the environment-configured SMTP connection.",doc:"notifications#smtp-configuration"},"mcp.tools":{title:"What it provides",text:"The tools this MCP server exposes to AI agents, letting them query your projects, runs and failures directly.",doc:"mcp#what-it-provides"},"mcp.auth":{title:"Authentication",text:"How an MCP client authenticates to this server — uses the same API keys as the rest of the dashboard.",doc:"mcp#authentication"},"mcp.client-setup":{title:"Client setup",text:"Copy-paste configuration to connect Claude Code, Cursor, VS Code and other MCP clients to this server.",doc:"mcp#client-setup"},"shared.entity-links":{title:"Entity links",text:"Links to external systems (Jira, GitHub, etc.) attached to this item. The provider is detected automatically from the URL."},"ide.open":{title:"Open in IDE",text:"Click a source path to open it in your local editor. Set your local workspace folder (so VS Code gets an absolute path) or a JetBrains project name, then pick a method. Auto probes the JetBrains local server first (the only one it can confirm) before falling back to a vscode:// or jetbrains:// launch. These preferences live in this browser only.",doc:"ide-integration"},"locator-healing":{title:"Alternative locators",text:'When a locator breaks after a UI change, Piwi suggests pre-captured alternatives from the last passing run — or from another test in the project that uses the same locator. Each alternative is ranked by stability score — prefer data-testid (100) over CSS classes (10–40). The recommended fix shows the exact one-line edit for the failing test, with a "Copy fix prompt" for an AI coding agent. A "Your pick" badge marks a replacement you confirmed on the failing page: "Pick from snapshot" opens the failure-time DOM and lets you click the intended element, and "Pick from trace" opens the failure trace in the trace viewer, whose Pick locator tool works on the recorded page snapshots.',doc:"reporter#locator-healing"},"environment-diff":{title:"Environment diff",text:"Compares this execution’s environment (Playwright version, browser config, locale, viewport, CI provider, …) against the same test’s last passing run on the same browser. Only changed keys are shown — an empty diff rules out environment drift as the cause."},"visual-diff":{title:"Visual diff",text:"Pixel-compares the failing screenshot against the same test’s last passing screenshot (same browser). Red pixels in the overlay mark what changed. When the two screenshots have different dimensions the ratio is flagged as unreliable."},"dom-snapshot":{title:"DOM snapshot",text:"The page’s HTML around the failing action, rendered from the uploaded Playwright trace — nothing extra is captured. Input values, inline handlers and script bodies are removed; token-shaped strings are masked."},"page-state":{title:"App state at test end",text:"URL, history state, storage key names + value lengths, and cookie names + flags captured when the test ended. Values are never captured. Disable with the reporter’s capturePageState option.",doc:"capture-fixtures"}};function s(e){return t[e].envVars??[]}export{t as H,s as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as be,a as Re}from"./D5Mhpp98.js";import{d as ee,o as a,c as u,e as p,f as i,g as n,h as o,_ as te,i as j,t as c,x as Q,b as t,l as g,k,v as _,j as ne,H as le,F as E,z as M,r as re,s as Te,ac as $e}from"./BzBaMPgu.js";import{_ as we}from"./BUYmGTVP.js";import{_ as Fe}from"./6DSY_93j.js";import{_ as je,a as Se}from"./CdLqOMvN.js";import{_ as Ce}from"./DUtYU4Sb.js";import{_ as Ve}from"./Cp0V2FeW.js";import{_ as Ne}from"./Db5xe__T.js";import{_ as ze}from"./C7SG50jD.js";import{_ as Pe}from"./BxSrScjV.js";import{_ as oe}from"./BvXrhZ8k.js";import{_ as ie}from"./Ch8sGLqE.js";import{_ as Ue}from"./CBQXv4bU.js";import{_ as Ee}from"./B77w1Eib.js";import{_ as ue}from"./D_j436ND.js";import{f as Z,G as L,e as Oe}from"./CdM2qNYM.js";import{_ as De}from"./D8ixf-ZR.js";import{_ as Ie}from"./kDEwM7SQ.js";import{u as se}from"./CDEmotIt.js";import{u as Ae}from"./BLqooxh5.js";import{u as Be}from"./DWz_bHNP.js";import"./DDho3MJD.js";import"./Boyv6hLW.js";import"./BOrnSpTA.js";import"./DcUBmKKE.js";import"./WCZdf9Ln.js";import"./BPQNVV4M.js";import"./CTYlay1H.js";import"./qeqzb80l.js";import"./BcHU1KNK.js";import"./Cmuwgbf4.js";import"./E26Y1NWH.js";const Le={class:"flex items-center gap-3 flex-wrap"},Me={class:"flex items-center gap-1.5"},He={key:0,class:"text-gray-500"},Ge={key:1},Ke={key:2},We={class:"flex items-center gap-1.5 cursor-pointer select-none text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors"},Je=ee({__name:"HomeFilters",props:{modelValue:{},availableEnvironments:{}},emits:["update:modelValue"],setup(O,{emit:b}){const T=O,R=b,N=_({get:()=>T.modelValue.environments,set:S=>R("update:modelValue",{...T.modelValue,environments:S})}),$=_({get:()=>T.modelValue.fullRunsOnly,set:S=>R("update:modelValue",{...T.modelValue,fullRunsOnly:S})}),D=_(()=>T.modelValue.environments.length>0||!T.modelValue.fullRunsOnly);function z(){R("update:modelValue",{environments:[],fullRunsOnly:!0})}return(S,v)=>{const H=te,r=we,f=Fe,x=ne;return a(),u("div",Le,[O.availableEnvironments.length>0?(a(),p(r,{key:0,modelValue:t(N),"onUpdate:modelValue":v[0]||(v[0]=m=>Q(N)?N.value=m:null),items:O.availableEnvironments,multiple:"",placeholder:"All environments",size:"sm",class:"min-w-[160px]"},{default:i(({modelValue:m})=>[n("div",Me,[o(H,{name:"i-lucide-server",class:j(["size-3.5 shrink-0",m.length?"text-primary":"text-gray-400"])},null,8,["class"]),m.length?m.length===1?(a(),u("span",Ge,c(m[0]),1)):(a(),u("span",Ke,c(m.length)+" environments",1)):(a(),u("span",He,"All environments"))])]),_:1},8,["modelValue","items"])):g("",!0),n("label",We,[o(f,{modelValue:t($),"onUpdate:modelValue":v[1]||(v[1]=m=>Q($)?$.value=m:null),size:"sm"},null,8,["modelValue"]),v[2]||(v[2]=k(" Full runs only ",-1))]),t(D)?(a(),p(x,{key:1,variant:"ghost",size:"sm",color:"neutral",icon:"i-lucide-x",onClick:z},{default:i(()=>[...v[3]||(v[3]=[k(" Reset ",-1)])]),_:1})):g("",!0)])}}}),Ye=Object.assign(Je,{__name:"HomeFilters"}),Xe={class:"hidden md:block overflow-x-auto -mx-4 px-4 sm:mx-0 sm:px-0"},qe={key:0,class:"flex flex-wrap gap-1 mt-0.5"},Qe={class:"w-40"},Ze={key:1,class:"text-gray-400 text-sm"},et={class:"text-xs text-gray-500 dark:text-gray-400"},tt={key:1,class:"text-gray-400 text-sm"},nt={key:0,class:"tabular-nums text-sm text-gray-600 dark:text-gray-400"},st={key:1,class:"text-gray-400"},at={class:"space-y-2 md:hidden"},lt={class:"flex items-start justify-between gap-2"},rt={key:0,class:"flex flex-wrap gap-1"},ot={class:"flex items-center justify-between gap-2 text-xs"},it={class:"text-gray-500 dark:text-gray-400 truncate"},ut={key:1,class:"text-gray-400"},ct={key:2,class:"shrink-0 tabular-nums text-gray-500 dark:text-gray-400"},dt=ee({__name:"ProjectTrendTable",props:{projects:{},limit:{default:10}},setup(O){const b=O,T={failing:0,flaky:1,passing:2,unknown:3},R=re(!1),N=_(()=>b.projects.length>b.limit),$=_(()=>{const r=[...b.projects].sort((f,x)=>{const m=T[f.tendency]-T[x.tendency];if(m!==0)return m;const C=f.latestFullRun?new Date(f.latestFullRun.startTime).getTime():0;return(x.latestFullRun?new Date(x.latestFullRun.startTime).getTime():0)-C});return R.value?r:r.slice(0,b.limit)});function D(r){return r>=90?"text-green-600 dark:text-green-400":r>=50?"text-yellow-600 dark:text-yellow-400":"text-red-600 dark:text-red-400"}function z(r){switch(r){case"failing":return"text-red-700 dark:text-red-400 bg-red-50 dark:bg-red-900/20 border-red-200 dark:border-red-800";case"flaky":return"text-amber-700 dark:text-amber-400 bg-amber-50 dark:bg-amber-900/20 border-amber-200 dark:border-amber-800";case"passing":return"text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-900/20 border-green-200 dark:border-green-800";default:return"text-gray-500 dark:text-gray-400 bg-gray-50 dark:bg-gray-800 border-gray-200 dark:border-gray-700"}}function S(r){return r==="unknown"?"Unknown":r.charAt(0).toUpperCase()+r.slice(1)}function v(r){switch(r){case"failing":return"i-lucide-trending-down";case"flaky":return"i-lucide-shuffle";case"passing":return"i-lucide-trending-up";default:return"i-lucide-minus"}}const H=[{accessorKey:"name",header:"Project"},{id:"recentRuns",header:"Last 20 runs"},{accessorKey:"tendency",header:"Tendency"},{id:"passRate",header:"Pass rate"},{id:"latestRun",header:"Latest run"},{id:"tests",header:"Tests"}];return(r,f)=>{const x=ne,m=le,C=ze,h=Pe,I=te,V=oe,A=ie,Y=Ue,X=Ee,G=ue;return a(),p(G,{icon:"i-lucide-layout-dashboard",title:"Project health",help:"home.project-health"},{actions:i(()=>[t(N)&&!t(R)?(a(),p(x,{key:0,variant:"ghost",size:"sm","trailing-icon":"i-lucide-chevron-down",onClick:f[0]||(f[0]=e=>R.value=!0)},{default:i(()=>[k(" Show all "+c(b.projects.length),1)]),_:1})):t(R)?(a(),p(x,{key:1,variant:"ghost",size:"sm","trailing-icon":"i-lucide-chevron-up",onClick:f[1]||(f[1]=e=>R.value=!1)},{default:i(()=>[...f[2]||(f[2]=[k(" Show less ",-1)])]),_:1})):g("",!0),o(x,{to:"/projects",variant:"outline",size:"sm"},{default:i(()=>[...f[3]||(f[3]=[k("View all",-1)])]),_:1})]),default:i(()=>[n("div",Xe,[o(Y,{data:t($),columns:H,ui:{base:"min-w-[700px]",td:"py-3",th:"py-3 text-xs uppercase tracking-wide"}},{"name-cell":i(({row:e})=>[o(m,{to:`/projects/${e.original.id}`,class:"font-medium text-primary hover:underline truncate block max-w-[200px]"},{default:i(()=>[k(c(e.original.label||e.original.name),1)]),_:2},1032,["to"]),e.original.tags.length>0?(a(),u("div",qe,[(a(!0),u(E,null,M(e.original.tags,w=>(a(),p(C,{key:w.id,text:w.text,color:w.color},null,8,["text","color"]))),128))])):g("",!0)]),"recentRuns-cell":i(({row:e})=>[n("div",Qe,[o(h,{runs:e.original.recentRuns,height:28},null,8,["runs"])])]),"tendency-cell":i(({row:e})=>[n("span",{class:j(["inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-medium border whitespace-nowrap",z(e.original.tendency)])},[o(I,{name:v(e.original.tendency),class:"size-3 shrink-0"},null,8,["name"]),k(" "+c(S(e.original.tendency)),1)],2)]),"passRate-cell":i(({row:e})=>[e.original.latestFullRun?(a(),u("span",{key:0,class:j(["font-semibold tabular-nums text-sm",D(("passRate"in r?r.passRate:t(L))(e.original.latestFullRun))])},c(("passRate"in r?r.passRate:t(L))(e.original.latestFullRun))+"% ",3)):(a(),u("span",Ze,"—"))]),"latestRun-cell":i(({row:e})=>[e.original.latestFullRun?(a(),p(m,{key:0,to:`/test-runs/${e.original.latestFullRun.id}`,class:"flex items-center gap-2 min-w-[140px] hover:opacity-80 transition-opacity"},{default:i(()=>[o(V,{status:e.original.latestFullRun.status},null,8,["status"]),n("div",et,[n("div",null,c(("formatRelativeTime"in r?r.formatRelativeTime:t(Z))(e.original.latestFullRun.startTime)),1),e.original.latestFullRun.duration?(a(),p(A,{key:0,ms:e.original.latestFullRun.duration},null,8,["ms"])):g("",!0)])]),_:2},1032,["to"])):(a(),u("span",tt,"No full runs"))]),"tests-cell":i(({row:e})=>[e.original.latestFullRun?(a(),u("span",nt,c(e.original.latestFullRun.passedTests)+"/"+c(e.original.latestFullRun.totalTests),1)):(a(),u("span",st,"—"))]),_:1},8,["data"])]),n("div",at,[(a(!0),u(E,null,M(t($),e=>(a(),u("div",{key:e.id,class:"rounded-lg border border-default p-3 space-y-2"},[n("div",lt,[o(m,{to:`/projects/${e.id}`,class:"font-medium text-primary hover:underline truncate"},{default:i(()=>[k(c(e.label||e.name),1)]),_:2},1032,["to"]),n("span",{class:j(["inline-flex shrink-0 items-center gap-1 rounded border px-1.5 py-0.5 text-xs font-medium whitespace-nowrap",z(e.tendency)])},[o(I,{name:v(e.tendency),class:"size-3 shrink-0"},null,8,["name"]),k(" "+c(S(e.tendency)),1)],2)]),e.tags.length>0?(a(),u("div",rt,[(a(!0),u(E,null,M(e.tags,w=>(a(),p(C,{key:w.id,text:w.text,color:w.color},null,8,["text","color"]))),128))])):g("",!0),o(h,{runs:e.recentRuns,height:24},null,8,["runs"]),n("div",ot,[e.latestFullRun?(a(),p(m,{key:0,to:`/test-runs/${e.latestFullRun.id}`,class:"flex items-center gap-1.5 min-w-0 hover:opacity-80"},{default:i(()=>[o(V,{status:e.latestFullRun.status},null,8,["status"]),n("span",it,c(("formatRelativeTime"in r?r.formatRelativeTime:t(Z))(e.latestFullRun.startTime)),1)]),_:2},1032,["to"])):(a(),u("span",ut,"No full runs")),e.latestFullRun?(a(),u("span",ct,[n("span",{class:j(["font-semibold",D(("passRate"in r?r.passRate:t(L))(e.latestFullRun))])},c(("passRate"in r?r.passRate:t(L))(e.latestFullRun))+"% ",3),k(" · "+c(e.latestFullRun.passedTests)+"/"+c(e.latestFullRun.totalTests),1)])):g("",!0)])]))),128))]),t($).length===0?(a(),p(X,{key:0,text:"No projects yet",padded:!1,class:"py-8"})):g("",!0)]),_:1})}}}),mt=Object.assign(dt,{__name:"ProjectTrendTable"}),pt={key:0,class:"p-6"},gt={key:1,class:"p-6 space-y-8","aria-busy":"true"},_t={class:"grid grid-cols-1 xl:grid-cols-3 gap-6 items-start"},ft={class:"xl:col-span-2 space-y-3"},yt={class:"space-y-3"},vt={key:2,class:"p-6 space-y-8"},ht={key:1,class:"flex flex-wrap items-center gap-x-8 gap-y-3 text-sm border border-gray-200 dark:border-gray-700 rounded-xl px-6 py-4 bg-gray-50 dark:bg-gray-900/50"},xt={class:"flex items-center gap-1.5"},kt={class:"font-semibold tabular-nums"},bt={class:"flex items-center gap-1.5"},Rt={class:"flex items-center gap-1.5"},Tt={key:0,class:"flex items-center gap-1.5"},$t={class:"font-semibold tabular-nums"},wt={class:"flex items-center gap-1.5"},Ft={class:"font-semibold tabular-nums"},jt={key:2,class:"grid grid-cols-1 xl:grid-cols-3 gap-6 items-start"},St={class:"xl:col-span-2"},Ct={class:"divide-y divide-gray-100 dark:divide-gray-800 text-sm"},Vt={class:"flex-1 min-w-0"},Nt={class:"font-medium truncate"},zt={class:"text-xs text-gray-400"},Pt={class:"text-right tabular-nums shrink-0"},Ut={key:3,class:"text-center py-12 text-gray-500 dark:text-gray-400"},Et={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4"},Ot={class:"flex flex-col gap-3 h-full"},Dt={class:"p-2 bg-primary/10 rounded-lg w-fit"},It={class:"text-xs font-semibold uppercase tracking-wide text-primary mb-1"},At={class:"font-semibold mb-1"},Bt={class:"text-sm text-gray-600 dark:text-gray-400"},ae=6,kn=ee({__name:"index",setup(O){Te({title:"Piwi Dashboard"});const{data:b,error:T,refresh:R,status:N}=se("/api/projects/overview",{lazy:!0,default:()=>[]},"$LKtEy4Bi96"),{data:$,error:D,refresh:z}=se("/api/test-runs/recent",{lazy:!0},"$tXxkP3waVF");Ae(()=>Promise.all([R(),z()]));const S=_(()=>N.value==="pending"&&!b.value?.length),v=_(()=>T.value||D.value);function H(){R(),z()}const r=Be("piwi-home-filters",{default:()=>({environments:[],fullRunsOnly:!0}),encode:l=>JSON.stringify(l),decode:l=>{try{return l?JSON.parse(l):{environments:[],fullRunsOnly:!0}}catch{return{environments:[],fullRunsOnly:!0}}}}),f=_(()=>{const l=new Set;for(const s of $.value??[])s.environment&&l.add(s.environment);for(const s of b.value??[])for(const y of s.recentRuns)y.environment&&l.add(y.environment);return[...l].sort()});function x(l){return r.value.environments.length===0?!0:!!l&&r.value.environments.includes(l)}const m=_(()=>{let l=$.value??[];return r.value.fullRunsOnly&&(l=l.filter(s=>s.isFullRun)),r.value.environments.length>0&&(l=l.filter(s=>x(s.environment))),l}),C=_(()=>{let l=b.value??[];return r.value.environments.length>0&&(l=l.map(s=>({...s,recentRuns:s.recentRuns.filter(y=>x(y.environment))})).filter(s=>s.recentRuns.length>0)),l}),h=_(()=>{const l=C.value,s=l.length,y=l.filter(F=>F.tendency==="failing").length,B=l.filter(F=>F.tendency==="flaky").length;let P=0,K=0;for(const F of l)F.latestFullRun&&(P+=F.latestFullRun.passedTests,K+=F.latestFullRun.totalTests);const W=K>0?Math.round(P/K*100):null,q=Date.now()-1440*60*1e3,U=m.value.filter(F=>new Date(F.startTime).getTime()>q).length;return{totalProjects:s,failingNow:y,flakyNow:B,avgPassRate:W,runs24h:U}}),I=new Set(["running","initialising","finalizing"]),V=re(!1),A=_(()=>[...m.value].sort((s,y)=>{const B=I.has(s.status)?0:1,P=I.has(y.status)?0:1;return B!==P?B-P:new Date(y.startTime).getTime()-new Date(s.startTime).getTime()})),Y=_(()=>V.value?A.value:A.value.slice(0,ae)),X=_(()=>A.value.length>ae),G=_(()=>m.value.length>0),e=_(()=>(b.value?.length??0)>0),w=_(()=>r.value.fullRunsOnly?($.value??[]).filter(y=>x(y.environment)).filter(y=>!y.isFullRun).length:0);function ce(){r.value={...r.value,fullRunsOnly:!1}}function de(l){const s=L(l);return s>=90?"text-green-600 dark:text-green-400":s>=50?"text-yellow-600 dark:text-yellow-400":"text-red-600 dark:text-red-400"}function me(l){return I.has(l)?"border-l-blue-400":l==="passed"?"border-l-green-500":l==="failed"||l==="timedout"||l==="interrupted"?"border-l-red-500":"border-l-gray-300 dark:border-l-gray-600"}const pe=[{icon:"i-lucide-radio",tagline:"Watch your CI run live",title:"Live streaming",description:"Follow test execution in real time. Investigate failures while the suite is still running — no waiting for the CI job to finish."},{icon:"i-lucide-layers",tagline:"10 failures, 2 root causes",title:"Failure clustering",description:"Tests sharing the same error are grouped automatically. Triage one cluster instead of scrolling through unrelated failures."},{icon:"i-lucide-brain-circuit",tagline:"Diagnosis grounded in your code",title:"AI diagnosis",description:"AI analyzes failure clusters using your actual SCM diff, trace files, and run history — not a generic prompt."},{icon:"i-lucide-archive",tagline:"Every run, forever",title:"Permanent test intelligence",description:"Test results, traces, and HTML reports stored permanently. Compare runs, track flakiness trends, and never lose a CI result again."}];return(l,s)=>{const y=be,B=Re,P=Ye,K=Se,W=ne,q=Ce,U=Ve,F=Ne,J=te,ge=mt,_e=oe,fe=ie,ye=le,ve=ue,he=De,xe=Ie,ke=je;return a(),p(ke,{id:"home"},{header:i(()=>[o(K,null,$e({leading:i(()=>[o(y),o(B,{items:[{label:"Home",icon:"i-lucide-house",to:"/"}]})]),_:2},[t(e)?{name:"trailing",fn:i(()=>[o(P,{modelValue:t(r),"onUpdate:modelValue":s[0]||(s[0]=d=>Q(r)?r.value=d:null),"available-environments":t(f)},null,8,["modelValue","available-environments"])]),key:"0"}:void 0]),1024)]),body:i(()=>[t(v)?(a(),u("div",pt,[o(q,{text:`Couldn't load the dashboard: ${t(Oe)(t(v))}`},{action:i(()=>[o(W,{size:"sm",color:"neutral",variant:"outline",icon:"i-lucide-refresh-cw",onClick:H},{default:i(()=>[...s[3]||(s[3]=[k(" Retry ",-1)])]),_:1})]),_:1},8,["text"])])):t(S)?(a(),u("div",gt,[s[4]||(s[4]=n("span",{class:"sr-only",role:"status"},"Loading dashboard…",-1)),o(U,{class:"h-14 w-full rounded-xl"}),n("div",_t,[n("div",ft,[o(U,{class:"h-7 w-40"}),o(U,{class:"h-72 w-full rounded-lg"})]),n("div",yt,[o(U,{class:"h-7 w-32"}),(a(),u(E,null,M(5,d=>o(U,{key:d,class:"h-12 w-full rounded-lg"})),64))])])])):(a(),u("div",vt,[t(w)>0?(a(),p(F,{key:0,icon:"i-lucide-info",color:"primary",variant:"subtle",title:t(w)===1?"1 partial run is hidden":`${t(w)} partial runs are hidden`,description:"The “Full runs only” filter hides runs that only cover part of the suite (e.g. a single spec or --grep).",actions:[{label:"Show them",color:"primary",variant:"solid",size:"xs",onClick:ce}]},null,8,["title","actions"])):g("",!0),t(e)?(a(),u("div",ht,[n("div",xt,[o(J,{name:"i-lucide-folder",class:"size-4 text-primary shrink-0"}),n("span",kt,c(t(h).totalProjects),1),s[5]||(s[5]=n("span",{class:"text-gray-500"},"projects",-1))]),n("div",bt,[n("div",{class:j(["w-2 h-2 rounded-full shrink-0",t(h).failingNow>0?"bg-red-500":"bg-green-500"])},null,2),n("span",{class:j(["font-semibold tabular-nums",t(h).failingNow>0?"text-red-600 dark:text-red-400":""])},c(t(h).failingNow),3),s[6]||(s[6]=n("span",{class:"text-gray-500"},"failing now",-1))]),n("div",Rt,[n("div",{class:j(["w-2 h-2 rounded-full shrink-0",t(h).flakyNow>0?"bg-amber-400":"bg-gray-300 dark:bg-gray-600"])},null,2),n("span",{class:j(["font-semibold tabular-nums",t(h).flakyNow>0?"text-amber-600 dark:text-amber-400":""])},c(t(h).flakyNow),3),s[7]||(s[7]=n("span",{class:"text-gray-500"},"flaky",-1))]),t(h).avgPassRate!==null?(a(),u("div",Tt,[o(J,{name:"i-lucide-check-circle",class:"size-4 text-green-500 shrink-0"}),n("span",$t,c(t(h).avgPassRate)+"%",1),s[8]||(s[8]=n("span",{class:"text-gray-500"},"avg pass rate",-1))])):g("",!0),n("div",wt,[o(J,{name:"i-lucide-play-circle",class:"size-4 text-primary shrink-0"}),n("span",Ft,c(t(h).runs24h),1),s[9]||(s[9]=n("span",{class:"text-gray-500"},"runs today",-1))])])):g("",!0),t(e)||t(G)?(a(),u("div",jt,[n("div",St,[t(e)?(a(),p(ge,{key:0,projects:t(C)},null,8,["projects"])):g("",!0)]),t(G)?(a(),p(ve,{key:0,icon:"i-lucide-activity",title:"Recent activity"},{actions:i(()=>[t(X)&&!t(V)?(a(),p(W,{key:0,variant:"ghost",size:"sm","trailing-icon":"i-lucide-chevron-down",onClick:s[1]||(s[1]=d=>V.value=!0)},{default:i(()=>[k(" Show all "+c(t(A).length),1)]),_:1})):t(V)?(a(),p(W,{key:1,variant:"ghost",size:"sm","trailing-icon":"i-lucide-chevron-up",onClick:s[2]||(s[2]=d=>V.value=!1)},{default:i(()=>[...s[10]||(s[10]=[k(" Show less ",-1)])]),_:1})):g("",!0)]),default:i(()=>[n("div",Ct,[(a(!0),u(E,null,M(t(Y),d=>(a(),p(ye,{key:d.id,to:`/test-runs/${d.id}`,class:j(["flex items-center gap-3 py-3 pl-3 border-l-2 hover:bg-gray-50 dark:hover:bg-gray-800/60 rounded-r transition-colors",me(d.status)])},{default:i(()=>[o(_e,{status:d.status},null,8,["status"]),n("div",Vt,[n("div",Nt,c(d.projectLabel||d.projectName),1),n("div",zt,"Run #"+c(d.id)+" · "+c(("formatRelativeTime"in l?l.formatRelativeTime:t(Z))(d.startTime)),1)]),n("div",Pt,[n("div",{class:j(de(d))},c(("passRate"in l?l.passRate:t(L))(d))+"%",3),d.duration?(a(),p(fe,{key:0,ms:d.duration,class:"block text-xs text-gray-400"},null,8,["ms"])):g("",!0)])]),_:2},1032,["to","class"]))),128))])]),_:1})):g("",!0)])):g("",!0),t(e)&&!t(G)&&t(C).length===0?(a(),u("div",Ut,[o(J,{name:"i-lucide-filter-x",class:"size-8 mx-auto mb-2 opacity-40"}),s[11]||(s[11]=n("p",null,"No runs match the current filters.",-1))])):g("",!0),t(e)?g("",!0):(a(),u(E,{key:4},[o(he),n("div",Et,[(a(),u(E,null,M(pe,d=>o(xe,{key:d.title,class:"flex flex-col"},{default:i(()=>[n("div",Ot,[n("div",Dt,[o(J,{name:d.icon,class:"size-5 text-primary"},null,8,["name"])]),n("div",null,[n("p",It,c(d.tagline),1),n("h3",At,c(d.title),1),n("p",Bt,c(d.description),1)])])]),_:2},1024)),64))])],64))]))]),_:1})}}});export{kn as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{_ as Ae}from"./DTrPCv7R.js";import{_ as Re}from"./B3G-TIoP.js";import{_ as Fe,a as Oe}from"./2yLW7WU0.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"./CNu3kken.js";import{_ as Ge}from"./HIGGZ_c-.js";import{_ as Je}from"./oSLbl-p0.js";import{_ as Qe}from"./Ce47NgZw.js";import{_ as Ye}from"./B0tmRAhY.js";import{_ as Xe}from"./Ya8ZzWuY.js";import{_ as Ze}from"./CF_eDZHu.js";import{_ as et}from"./C9I1Dp3S.js";import{_ as tt}from"./roaTZkYi.js";import{b as at,L as lt}from"./DWwiVTZX.js";import{u as ot}from"./CLWMETf9.js";import{u as oe}from"./DprkT7rM.js";import{e as A}from"./DeewM3Wg.js";import"./BZFiz2UB.js";import"./CfhOanaF.js";import"./BjaRappk.js";import"./B_JSV0yG.js";import"./DZ-KbUZi.js";import"./BVyjw9Bi.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"./D5Mhpp98.js";import{_ as Re}from"./Ds8_6Fzl.js";import{_ as Fe,a as Oe}from"./CdLqOMvN.js";import{d as ze,u as Me,q as De,w as le,s as Be,c as m,h as l,f as d,F as T,E as Le,v as M,o as i,g as u,b as o,e as w,z as D,t as h,m as qe,k as j,l as _,j as He,x as G,_ as We,G as Ge,r as f}from"./BzBaMPgu.js";import{_ as Ke}from"./Hp-_W7z4.js";import{_ as Je}from"./B77w1Eib.js";import{_ as Qe}from"./D_j436ND.js";import{_ as Ye}from"./Die1200X.js";import{_ as Xe}from"./Db5xe__T.js";import{_ as Ze}from"./Bg8yOdSf.js";import{_ as et}from"./CnRNwiuE.js";import{_ as tt}from"./BbXvpkBp.js";import{b as at,L as lt}from"./DWwiVTZX.js";import{u as ot}from"./zAFiz2Mg.js";import{u as oe}from"./CDEmotIt.js";import{e as A}from"./CdM2qNYM.js";import"./DWz_bHNP.js";import"./qeqzb80l.js";import"./BcHU1KNK.js";import"./kDEwM7SQ.js";import"./CTYlay1H.js";import"./DDho3MJD.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=ze({__name:"test-functions",async setup(It){let x,R;const P=Me().params.id,p=De(),{aiStatus:ne}=ot(),{data:F}=([x,R]=le(()=>oe(`/api/projects/${P}`,"$hHDWk2vBQV")),x=await x,R(),x),{data:se,refresh:K,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 K()}catch(s){p.add({title:e?"Failed to update function":"Failed to add function",description:A(s),color:"error"})}finally{L.value=!1}}const z=f(null),E=f(!1);function Pe(n){z.value=n,E.value=!0}async function Ce(){const n=z.value;if(n){E.value=!1;try{await $fetch(`/api/test-functions/${n.id}`,{method:"DELETE"}),p.add({title:"Function removed",color:"success"}),await K()}catch(e){p.add({title:"Failed to remove function",description:A(e),color:"error"})}finally{z.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=Ke,je=Je,X=qe,Se=Qe,Ne=Fe,Z=We,ee=Ye,Ee=Xe,v=Ge,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,D(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=>G(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=>G(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();
|
|
5
|
-
}`,class:"w-full font-mono text-xs"},null,8,["modelValue"]),u("div",_t,[o(ne)?.configured?(i(),w(c,{key:0,label:"Extract",icon:"i-lucide-wand-2",size:"sm",loading:o(q),onClick:ve},null,8,["loading"])):_("",!0),l(c,{label:"Copy prompt for your own AI",icon:"i-lucide-clipboard-copy",size:"sm",color:"neutral",variant:"outline",onClick:ge}),o(U)&&!o(J)&&o(k)!=null?(i(),m("span",bt," Extracted at "+h(Math.round(o(k)*100))+"% confidence — review below before saving. ",1)):_("",!0)]),o(J)?(i(),w(Ee,{key:0,color:"warning",variant:"subtle",icon:"i-lucide-triangle-alert",title:`Low confidence (${Math.round((o(k)??0)*100)}%) — check the pattern below carefully`,description:o(N)??"The extractor wasn't able to represent this function cleanly. Functions that branch on their arguments, loop, or call other helpers often can't be captured as a single fixed pattern — the fields below may be incomplete."},null,8,["title","description"])):o(N)?(i(),m("p",xt," Note: "+h(o(N)),1)):_("",!0),e[16]||(e[16]=u("p",{class:"text-xs text-gray-500 dark:text-gray-400 pt-1"}," No AI configured on this instance, or prefer to use your own? Copy the prompt above into any AI chat (ChatGPT, Claude.ai, an IDE assistant, …), then paste its reply here — this doesn't spend Piwi AI credits, it just parses and validates what you paste. ",-1)),l(ee,{modelValue:o(I),"onUpdate:modelValue":e[2]||(e[2]=t=>
|
|
5
|
+
}`,class:"w-full font-mono text-xs"},null,8,["modelValue"]),u("div",_t,[o(ne)?.configured?(i(),w(c,{key:0,label:"Extract",icon:"i-lucide-wand-2",size:"sm",loading:o(q),onClick:ve},null,8,["loading"])):_("",!0),l(c,{label:"Copy prompt for your own AI",icon:"i-lucide-clipboard-copy",size:"sm",color:"neutral",variant:"outline",onClick:ge}),o(U)&&!o(J)&&o(k)!=null?(i(),m("span",bt," Extracted at "+h(Math.round(o(k)*100))+"% confidence — review below before saving. ",1)):_("",!0)]),o(J)?(i(),w(Ee,{key:0,color:"warning",variant:"subtle",icon:"i-lucide-triangle-alert",title:`Low confidence (${Math.round((o(k)??0)*100)}%) — check the pattern below carefully`,description:o(N)??"The extractor wasn't able to represent this function cleanly. Functions that branch on their arguments, loop, or call other helpers often can't be captured as a single fixed pattern — the fields below may be incomplete."},null,8,["title","description"])):o(N)?(i(),m("p",xt," Note: "+h(o(N)),1)):_("",!0),e[16]||(e[16]=u("p",{class:"text-xs text-gray-500 dark:text-gray-400 pt-1"}," No AI configured on this instance, or prefer to use your own? Copy the prompt above into any AI chat (ChatGPT, Claude.ai, an IDE assistant, …), then paste its reply here — this doesn't spend Piwi AI credits, it just parses and validates what you paste. ",-1)),l(ee,{modelValue:o(I),"onUpdate:modelValue":e[2]||(e[2]=t=>G(I)?I.value=t:null),rows:6,placeholder:"Paste the AI's JSON reply here…",class:"w-full font-mono text-xs"},null,8,["modelValue"]),l(c,{label:"Apply pasted response",icon:"i-lucide-check-check",size:"sm",color:"neutral",variant:"outline",loading:o(H),onClick:he},null,8,["loading"])])):_("",!0)]),u("div",yt,[l(b,{label:"Name",name:"name",required:"",help:"Becomes the called method/function name."},{default:d(()=>[l(v,{modelValue:o(a).name,"onUpdate:modelValue":e[3]||(e[3]=t=>o(a).name=t),placeholder:"e.g. addToCart",class:"w-full"},null,8,["modelValue"])]),_:1}),l(b,{label:"Kind",name:"kind"},{default:d(()=>[l($,{modelValue:o(a).kind,"onUpdate:modelValue":e[4]||(e[4]=t=>o(a).kind=t),items:ie,class:"w-full"},null,8,["modelValue"])]),_:1})]),l(b,{label:"Module",name:"module",required:"",help:"Import specifier, e.g. ./pages/CartPage"},{default:d(()=>[l(v,{modelValue:o(a).module,"onUpdate:modelValue":e[5]||(e[5]=t=>o(a).module=t),placeholder:"./pages/CartPage",class:"w-full"},null,8,["modelValue"])]),_:1}),o(a).kind==="page-object-method"?(i(),m("div",kt,[l(b,{label:"Receiver",name:"receiver",help:"Instance variable name, e.g. cartPage"},{default:d(()=>[l(v,{modelValue:o(a).receiver,"onUpdate:modelValue":e[6]||(e[6]=t=>o(a).receiver=t),placeholder:"cartPage",class:"w-full"},null,8,["modelValue"])]),_:1}),l(b,{label:"Class to import",name:"importName",help:"e.g. CartPage"},{default:d(()=>[l(v,{modelValue:o(a).importName,"onUpdate:modelValue":e[7]||(e[7]=t=>o(a).importName=t),placeholder:"CartPage",class:"w-full"},null,8,["modelValue"])]),_:1})])):_("",!0),l(b,{label:"URL pattern",name:"urlPattern",help:"Optional glob, e.g. **/cart — leave empty to match any page."},{default:d(()=>[l(v,{modelValue:o(a).urlPattern,"onUpdate:modelValue":e[8]||(e[8]=t=>o(a).urlPattern=t),placeholder:"**/cart",class:"w-full"},null,8,["modelValue"])]),_:1}),l(b,{label:"Parameters",help:"Use “object” for an options bag (e.g. { label }) and list its keys — generated calls then pass an object literal instead of a bare string."},{default:d(()=>[u("div",wt,[(i(!0),m(T,null,D(o(a).params,(t,g)=>(i(),m("div",{key:g,class:"flex items-center gap-2 flex-wrap"},[l(v,{modelValue:t.name,"onUpdate:modelValue":r=>t.name=r,placeholder:"param name",class:"flex-1 min-w-24"},null,8,["modelValue","onUpdate:modelValue"]),l($,{modelValue:t.type,"onUpdate:modelValue":r=>t.type=r,items:ue,class:"w-32"},null,8,["modelValue","onUpdate:modelValue"]),t.type==="object"?(i(),w(v,{key:0,modelValue:t.fields,"onUpdate:modelValue":r=>t.fields=r,placeholder:"fields, comma-separated (e.g. label, testId)",class:"flex-1 min-w-40"},null,8,["modelValue","onUpdate:modelValue"])):_("",!0),l(c,{icon:"i-lucide-x",color:"neutral",variant:"ghost",size:"sm",onClick:r=>be(g)},null,8,["onClick"])]))),128)),l(c,{label:"Add parameter",icon:"i-lucide-plus",color:"neutral",variant:"outline",size:"sm",onClick:_e})])]),_:1}),l(b,{label:"DOM pattern",required:"",help:"The ordered steps this function drives — matched against a recording."},{default:d(()=>[u("div",Vt,[(i(!0),m(T,null,D(o(a).steps,(t,g)=>(i(),m("div",{key:g,class:"flex items-center gap-2 flex-wrap"},[u("span",Pt,h(g+1)+".",1),l($,{modelValue:t.action,"onUpdate:modelValue":r=>t.action=r,items:de,class:"w-36"},null,8,["modelValue","onUpdate:modelValue"]),l(v,{modelValue:t.role,"onUpdate:modelValue":r=>t.role=r,placeholder:"role (e.g. button)",class:"flex-1 min-w-24"},null,8,["modelValue","onUpdate:modelValue"]),l(v,{modelValue:t.name,"onUpdate:modelValue":r=>t.name=r,placeholder:"accessible name",class:"flex-1 min-w-24"},null,8,["modelValue","onUpdate:modelValue"]),l(v,{modelValue:t.testId,"onUpdate:modelValue":r=>t.testId=r,placeholder:"test id",class:"flex-1 min-w-24"},null,8,["modelValue","onUpdate:modelValue"]),l(c,{icon:"i-lucide-x",color:"neutral",variant:"ghost",size:"sm",disabled:o(a).steps.length<=1,onClick:r=>ye(g)},null,8,["disabled","onClick"])]))),128)),l(c,{label:"Add step",icon:"i-lucide-plus",color:"neutral",variant:"outline",size:"sm",onClick:xe})])]),_:1}),o(a).params.length>0?(i(),w(b,{key:1,label:"Parameter sources",help:"Where each argument's value comes from, at match time."},{default:d(()=>[u("div",Ct,[(i(!0),m(T,null,D(o(a).paramSources,(t,g)=>(i(),m("div",{key:g,class:"flex items-center gap-2 flex-wrap"},[l($,{modelValue:t.param,"onUpdate:modelValue":r=>t.param=r,items:o(a).params.filter(r=>r.name.trim()).map(r=>({label:r.name,value:r.name})),placeholder:"parameter",class:"flex-1 min-w-24"},null,8,["modelValue","onUpdate:modelValue","items"]),o(me).has(t.param)?(i(),w(v,{key:0,modelValue:t.path,"onUpdate:modelValue":r=>t.path=r,placeholder:"field (e.g. label)",class:"w-40"},null,8,["modelValue","onUpdate:modelValue"])):_("",!0),l($,{modelValue:t.stepIndex,"onUpdate:modelValue":r=>t.stepIndex=r,items:o(a).steps.map((r,ae)=>({label:`step ${ae+1}`,value:ae})),class:"w-28"},null,8,["modelValue","onUpdate:modelValue","items"]),l($,{modelValue:t.from,"onUpdate:modelValue":r=>t.from=r,items:ce,class:"w-36"},null,8,["modelValue","onUpdate:modelValue"]),l(c,{icon:"i-lucide-x",color:"neutral",variant:"ghost",size:"sm",onClick:r=>we(g)},null,8,["onClick"])]))),128)),l(c,{label:"Add source",icon:"i-lucide-plus",color:"neutral",variant:"outline",size:"sm",onClick:ke})])]),_:1})):_("",!0)])]),footer:d(()=>[l(c,{color:"neutral",variant:"ghost",label:"Cancel",onClick:e[9]||(e[9]=t=>V.value=!1)}),l(c,{label:o(C)==null?"Add function":"Save changes",icon:"i-lucide-check",loading:o(L),onClick:Ve},null,8,["label","loading"])]),_:1},8,["open","title"]),l(te,{open:o(E),title:"Remove test function","onUpdate:open":e[12]||(e[12]=t=>E.value=t)},{body:d(()=>[u("p",null,[e[17]||(e[17]=j(" Remove ",-1)),u("code",Ut,h(o(z)?.name),1),e[18]||(e[18]=j(" from this project’s catalog? Recordings will stop matching against it and export raw locators instead. The function’s own source code is not touched. ",-1))])]),footer:d(()=>[l(c,{color:"neutral",variant:"ghost",label:"Cancel",onClick:e[11]||(e[11]=t=>E.value=!1)}),l(c,{color:"error",label:"Remove",icon:"i-lucide-trash-2",onClick:Ce})]),_:1},8,["open"])]),_:1})],64)}}});export{Zt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a2 as $,a3 as z,a5 as S,ao as y,aY as V,r as j,aT as w,aZ as P,a as B,o,e as C,f as b,g as q,i as s,b as t,c as u,h as N,V as n,k as c,t as f,l as m,X as F,v as h,a8 as D,N as g,bm as K,bn as O}from"./BzBaMPgu.js";import{L as W}from"./CTYlay1H.js";const E={slots:{root:"",wrapper:"",labelWrapper:"flex content-center items-center justify-between gap-1",label:"block font-medium text-default",container:"relative",description:"text-muted",error:"mt-2 text-error",hint:"text-muted",help:"mt-2 text-muted"},variants:{size:{xs:{root:"text-xs"},sm:{root:"text-xs"},md:{root:"text-sm"},lg:{root:"text-sm"},xl:{root:"text-base"}},required:{true:{label:"after:content-['*'] after:ms-0.5 after:text-error"}},orientation:{vertical:{container:"mt-1"},horizontal:{root:"flex justify-between place-items-baseline gap-2"}}},defaultVariants:{size:"md"}},L=["id"],T=["id"],A=["id"],U=["id"],G={__name:"UFormField",props:{as:{type:null,required:!1},name:{type:String,required:!1},errorPattern:{type:null,required:!1},label:{type:String,required:!1},description:{type:String,required:!1},help:{type:String,required:!1},error:{type:[Boolean,String],required:!1,default:void 0},hint:{type:String,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},eagerValidation:{type:Boolean,required:!1},validateOnInputDelay:{type:Number,required:!1},orientation:{type:null,required:!1,default:"vertical"},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(x){const _=x,l=$(),e=z("formField",_),I=S(),a=h(()=>D({extend:E,...I.ui?.formField||{}})({size:e.size,required:e.required,orientation:e.orientation})),k=y(V,null),i=h(()=>e.error||k?.value?.find(r=>r.name===e.name||e.errorPattern&&r.name?.match(e.errorPattern))?.message),d=j(w()),p=d.value,v=y(P,void 0);return B(d,()=>{v&&e.name&&(v.value[e.name]={id:d.value,pattern:e.errorPattern})},{immediate:!0}),g(K,d),g(O,h(()=>({error:i.value,name:e.name,size:e.size,eagerValidation:e.eagerValidation,validateOnInputDelay:e.validateOnInputDelay,errorPattern:e.errorPattern,hint:e.hint,description:e.description,help:e.help,ariaId:p}))),(r,X)=>(o(),C(t(F),{as:t(e).as,"data-orientation":t(e).orientation,"data-slot":"root",class:s(a.value.root({class:[t(e).ui?.root,t(e).class]}))},{default:b(()=>[q("div",{"data-slot":"wrapper",class:s(a.value.wrapper({class:t(e).ui?.wrapper}))},[t(e).label||l.label?(o(),u("div",{key:0,"data-slot":"labelWrapper",class:s(a.value.labelWrapper({class:t(e).ui?.labelWrapper}))},[N(t(W),{for:d.value,"data-slot":"label",class:s(a.value.label({class:t(e).ui?.label}))},{default:b(()=>[n(r.$slots,"label",{label:t(e).label},()=>[c(f(t(e).label),1)])]),_:3},8,["for","class"]),t(e).hint||l.hint?(o(),u("span",{key:0,id:`${t(p)}-hint`,"data-slot":"hint",class:s(a.value.hint({class:t(e).ui?.hint}))},[n(r.$slots,"hint",{hint:t(e).hint},()=>[c(f(t(e).hint),1)])],10,L)):m("",!0)],2)):m("",!0),t(e).description||l.description?(o(),u("p",{key:1,id:`${t(p)}-description`,"data-slot":"description",class:s(a.value.description({class:t(e).ui?.description}))},[n(r.$slots,"description",{description:t(e).description},()=>[c(f(t(e).description),1)])],10,T)):m("",!0)],2),q("div",{class:s([(t(e).label||!!l.label||t(e).description||!!l.description)&&a.value.container({class:t(e).ui?.container})])},[n(r.$slots,"default",{error:i.value}),t(e).error!==!1&&(typeof i.value=="string"&&i.value||l.error)?(o(),u("div",{key:0,id:`${t(p)}-error`,"data-slot":"error",class:s(a.value.error({class:t(e).ui?.error}))},[n(r.$slots,"error",{error:i.value},()=>[c(f(i.value),1)])],10,A)):t(e).help||l.help?(o(),u("div",{key:1,id:`${t(p)}-help`,"data-slot":"help",class:s(a.value.help({class:t(e).ui?.help}))},[n(r.$slots,"help",{help:t(e).help},()=>[c(f(t(e).help),1)])],10,U)):m("",!0)],2)]),_:3},8,["as","data-orientation","class"]))}};export{G as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as G}from"./D5Mhpp98.js";import{_ as K}from"./Ds8_6Fzl.js";import{_ as M,a as Q}from"./CdLqOMvN.js";import{_ as W,a as X}from"./CwDej2Lz.js";import{d as N,a as Y,b as t,o as u,e as b,f as a,c as P,g as r,h as i,_ as tt,i as et,t as S,j as z,k as p,l as y,m as st,r as $,u as ot,p as nt,q as at,w as D,s as it,v as U,x as lt}from"./BzBaMPgu.js";import{_ as rt}from"./Bb_925DD.js";import{_ as ct}from"./kDEwM7SQ.js";import{_ as dt}from"./D_j436ND.js";import{u as pt,i as ut,a as mt}from"./vOZZ2cLi.js";import{u as B}from"./CDEmotIt.js";import{o as _t,s as h}from"./DGnQ69wW.js";import"./DWz_bHNP.js";import"./Bg8yOdSf.js";import"./CTYlay1H.js";import"./Die1200X.js";import"./qeqzb80l.js";import"./BcHU1KNK.js";import"./C7SG50jD.js";import"./BUYmGTVP.js";import"./DDho3MJD.js";import"./Boyv6hLW.js";import"./BOrnSpTA.js";import"./CdM2qNYM.js";const ft={key:0,class:"space-y-3"},gt={class:"flex items-center justify-between gap-3"},kt={class:"flex items-center gap-2 min-w-0 text-sm"},bt={class:"text-xs break-all"},vt={class:"flex items-center gap-1.5 shrink-0"},xt={key:0,class:"text-sm text-warning"},jt={key:1,class:"flex items-center justify-between gap-3"},yt=N({__name:"DesktopProjectFolderSection",props:{projectId:{}},setup(I){const c=I,{available:f,link:l,busy:g,pickAndLink:v,unlink:m}=pt(()=>c.projectId),o=$(null);return Y(()=>l.value?.path,async _=>{o.value=_&&l.value?.exists?await mt(_):null},{immediate:!0}),(_,s)=>{const x=st,C=tt,n=z,k=W,T=dt;return t(f)?(u(),b(T,{key:0,id:"local-folder",icon:"i-lucide-folder-symlink",title:"Local folder",help:"project.local-folder"},{subtitle:a(()=>[...s[0]||(s[0]=[p(" The checkout of this project on this machine — used to run tests locally and open files in your IDE. ",-1)])]),actions:a(()=>[t(l)&&!t(l).exists?(u(),b(x,{key:0,color:"warning",variant:"subtle",size:"sm"},{default:a(()=>[...s[1]||(s[1]=[p("missing",-1)])]),_:1})):t(o)&&("isFolderPiwiReady"in _?_.isFolderPiwiReady:t(ut))(t(o))?(u(),b(x,{key:1,color:"success",variant:"subtle",size:"sm"},{default:a(()=>[...s[2]||(s[2]=[p(" ready ",-1)])]),_:1})):t(o)?(u(),b(x,{key:2,color:"warning",variant:"subtle",size:"sm"},{default:a(()=>[...s[3]||(s[3]=[p("needs setup",-1)])]),_:1})):y("",!0)]),default:a(()=>[t(l)?(u(),P("div",ft,[r("div",gt,[r("div",kt,[i(C,{name:t(l).exists?"i-lucide-folder-check":"i-lucide-folder-x",class:et(["size-4 shrink-0",t(l).exists?"text-success":"text-warning"])},null,8,["name","class"]),r("code",bt,S(t(l).path),1)]),r("div",vt,[i(n,{size:"xs",color:"neutral",variant:"soft",icon:"i-lucide-folder-search",loading:t(g),onClick:t(v)},{default:a(()=>[...s[4]||(s[4]=[p(" Change ",-1)])]),_:1},8,["loading","onClick"]),i(n,{size:"xs",color:"neutral",variant:"ghost",icon:"i-lucide-unlink",disabled:t(g),onClick:t(m)},{default:a(()=>[...s[5]||(s[5]=[p(" Unlink ",-1)])]),_:1},8,["disabled","onClick"])])]),t(l).exists?y("",!0):(u(),P("p",xt," The folder is gone from this machine — pick the checkout again. ")),t(o)?(u(),b(k,{key:1,inspection:t(o)},null,8,["inspection"])):y("",!0)])):(u(),P("div",jt,[s[7]||(s[7]=r("p",{class:"text-sm text-muted"},"No folder linked on this machine yet.",-1)),i(n,{size:"xs",icon:"i-lucide-folder-plus",loading:t(g),onClick:t(v)},{default:a(()=>[...s[6]||(s[6]=[p("Choose folder…",-1)])]),_:1},8,["loading","onClick"])]))]),_:1})):y("",!0)}}}),ht=Object.assign(yt,{__name:"DesktopProjectFolderSection"}),$t={class:"p-4 space-y-4"},Ct={class:"text-sm text-gray-600 mt-1"},Tt={class:"font-medium"},wt={class:"flex justify-end gap-2 pt-2"},Wt=N({__name:"edit",async setup(I){let c,f;const l=ot(),g=nt(),v=at(),m=l.params.id,{data:o}=([c,f]=D(()=>B(`/api/projects/${m}`,"$CprFePJ4Up")),c=await c,f(),c),{data:_,refresh:s}=([c,f]=D(()=>B("/api/tags","$vxtZOtP06T")),c=await c,f(),c);it(U(()=>({title:`Edit ${o.value?.label||o.value?.name||"Project"} — Piwi Dashboard`})));const x=U(()=>_.value?.tags||[]),C=U(()=>!!o.value?.hasScmToken),n=$({label:o.value?.label||"",description:o.value?.description||"",diagnosisInstructions:o.value?.diagnosisInstructions||"",scmToken:""}),k=$(o.value?.tags||[]),T=_t({label:h().optional(),description:h().optional(),diagnosisInstructions:h().optional(),scmToken:h().optional()}),w=$(!1);async function E(){try{w.value=!0,await $fetch(`/api/projects/${m}`,{method:"PUT",body:{label:n.value.label||null,description:n.value.description||null,diagnosisInstructions:n.value.diagnosisInstructions||null,scmToken:n.value.scmToken||null,tagIds:k.value.map(j=>j.id)}}),v.add({title:"Project updated",description:"Project settings have been saved successfully",color:"success"}),await g.push(`/projects/${m}`)}catch(j){console.error("Error updating project:",j),v.add({title:"Error",description:"Failed to update project",color:"error"})}finally{w.value=!1}}function R(){g.push(`/projects/${m}`)}return(j,e)=>{const V=G,L=K,A=Q,H=X,F=z,O=rt,q=ct,J=ht,Z=M;return u(),b(Z,{id:"project-edit"},{header:a(()=>[i(A,null,{leading:a(()=>[i(V),i(L,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects",to:"/projects"},{label:t(o)?.label||t(o)?.name||"Project",to:`/projects/${t(m)}`},{label:"Edit"}]},null,8,["items"])]),_:1})]),body:a(()=>[r("div",$t,[i(q,null,{header:a(()=>[e[7]||(e[7]=r("h2",null,"Edit project settings",-1)),r("p",Ct,[e[6]||(e[6]=p(" Project Name: ",-1)),r("span",Tt,S(t(o)?.name),1)]),e[8]||(e[8]=r("p",{class:"text-xs text-gray-500 mt-1"}," Note: The project name is used to match test results from the reporter and cannot be changed. ",-1))]),default:a(()=>[i(O,{schema:t(T),state:t(n),class:"space-y-5",onSubmit:E},{default:a(()=>[i(H,{mode:"edit","has-token":t(C),label:t(n).label,"onUpdate:label":e[0]||(e[0]=d=>t(n).label=d),description:t(n).description,"onUpdate:description":e[1]||(e[1]=d=>t(n).description=d),diagnosisInstructions:t(n).diagnosisInstructions,"onUpdate:diagnosisInstructions":e[2]||(e[2]=d=>t(n).diagnosisInstructions=d),scmToken:t(n).scmToken,"onUpdate:scmToken":e[3]||(e[3]=d=>t(n).scmToken=d),tags:t(k),"onUpdate:tags":e[4]||(e[4]=d=>lt(k)?k.value=d:null),"all-tags":t(x),onTagCreated:e[5]||(e[5]=d=>t(s)())},null,8,["has-token","label","description","diagnosisInstructions","scmToken","tags","all-tags"]),r("div",wt,[i(F,{variant:"ghost",color:"neutral",onClick:R},{default:a(()=>[...e[9]||(e[9]=[p(" Cancel ",-1)])]),_:1}),i(F,{type:"submit",icon:"i-lucide-check",loading:t(w)},{default:a(()=>[...e[10]||(e[10]=[p(" Save changes ",-1)])]),_:1},8,["loading"])])]),_:1},8,["schema","state"])]),_:1}),i(J,{"project-id":t(m)},null,8,["project-id"])])]),_:1})}}});export{Wt as default};
|