@hot-updater/console 1.2.0-rc.5 → 1.2.0-rc.50
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/assets/-native-builds-search-6aptbS4G.js +1 -0
- package/.output/public/assets/BundleIdDisplay-C0X-k49t.js +1 -0
- package/.output/public/assets/ChannelPicker-DPR-7lqV.js +1 -0
- package/.output/public/assets/CompositeItem-UhIlCBg4.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-B3VCINom.js} +1 -1
- package/.output/public/assets/EventDetails-LQ8ejbsd.js +1 -0
- package/.output/public/assets/FoldedRows-1NvB9gAS.js +1 -0
- package/.output/public/assets/HashValueDisplay-DTSMSH9O.js +1 -0
- package/.output/public/assets/InsightsPageHeader-ypKKV3rL.js +1 -0
- package/.output/public/assets/IosInstall-BRuSakxm.js +1 -0
- package/.output/public/assets/NativeBuildsNav-ChBahvFN.js +1 -0
- package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-BEpesHEm.js} +1 -1
- package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-D4KPXCHL.js} +1 -1
- package/.output/public/assets/QrCode-BFSCkbPj.js +1 -0
- package/.output/public/assets/RelativeTime-m-FKh1Jb.js +1 -0
- package/.output/public/assets/RolloutPercentageBadge-DF4EeZIJ.js +1 -0
- package/.output/public/assets/RowReason-BvIxbpPP.js +1 -0
- package/.output/public/assets/SandboxBadge-DPmJn40v.js +1 -0
- package/.output/public/assets/TargetDisplay-Ctuz3qIp.js +1 -0
- package/.output/public/assets/alert-dialog-DGPqJBCk.js +1 -0
- package/.output/public/assets/api-keys-CAVLgicI.js +1 -0
- package/.output/public/assets/api-keys-ztwXoKcj.js +1 -0
- package/.output/public/assets/api-znPyglTl.js +1 -0
- package/.output/public/assets/arrow-left-68S4uy4I.js +1 -0
- package/.output/public/assets/arrow-right-DjRwIoF1.js +1 -0
- package/.output/public/assets/arrow-up-right-C_1ALUCD.js +1 -0
- package/.output/public/assets/badge-zMibJGR5.js +1 -0
- package/.output/public/assets/card-BAs80yql.js +1 -0
- package/.output/public/assets/check-C3VCvMOV.js +1 -0
- package/.output/public/assets/chevron-down-BkoJHAll.js +1 -0
- package/.output/public/assets/chevron-right-RAuPv9r1.js +1 -0
- package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-DvYMC5yF.js} +1 -1
- package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-D0JWZ1KF.js} +1 -1
- package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-CtbGqKyr.js} +1 -1
- package/.output/public/assets/{uuidv7-zXMtwR9Q.js → constants-yj-e3ahf.js} +1 -1
- package/.output/public/assets/{copy-DsuLj3oj.js → copy-BjVLMKbo.js} +1 -1
- package/.output/public/assets/dialog-BvZDZzdQ.js +1 -0
- package/.output/public/assets/dist-BEmib-ZM.js +1 -0
- package/.output/public/assets/{download-Cf24LBde.js → download-CgpaZb23.js} +1 -1
- package/.output/public/assets/empty-C5GqArX9.js +1 -0
- package/.output/public/assets/field-DInLQ5oV.js +1 -0
- package/.output/public/assets/git-branch-BGatQV8Q.js +1 -0
- package/.output/public/assets/history-Ci4dhphE.js +1 -0
- package/.output/public/assets/index-oTXLdUR-.js +10 -0
- package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
- package/.output/public/assets/insights-BL6Z8zFv.js +42 -0
- package/.output/public/assets/insights-BMjBMtJU.js +2 -0
- package/.output/public/assets/insights-V3D8tYPQ.js +1 -0
- package/.output/public/assets/insights-api-C4Dmm34n.js +1 -0
- package/.output/public/assets/insights-search-B4NkHGeC.js +1 -0
- package/.output/public/assets/insights-usage-rpc-Dw5_pmRH.js +1 -0
- package/.output/public/assets/insights_.distribution-Br_CW9s9.js +2 -0
- package/.output/public/assets/insights_.distribution-C4E-JuVI.js +1 -0
- package/.output/public/assets/insights_.distribution-oIFSv2TC.js +1 -0
- package/.output/public/assets/installations-CcPrSZwW.js +1 -0
- package/.output/public/assets/installations-Cjx0648C.js +1 -0
- package/.output/public/assets/installations-m1v6oE-2.js +2 -0
- package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-BkeLvA1m.js} +1 -1
- package/.output/public/assets/{link-DTEyW70e.js → link-CRMwpc7-.js} +2 -2
- package/.output/public/assets/{list--NIee1FZ.js → list-DQ9YBIDW.js} +1 -1
- package/.output/public/assets/loader-circle-8lunBReu.js +1 -0
- package/.output/public/assets/native-builds-B0zJ4wjg.js +1 -0
- package/.output/public/assets/native-builds-BC0sjxPC.js +2 -0
- package/.output/public/assets/native-builds-B_pQ4D5H.js +1 -0
- package/.output/public/assets/native-builds_._buildId-CSyC7YAA.js +1 -0
- package/.output/public/assets/native-builds_._buildId-GPlkI_2m.js +2 -0
- package/.output/public/assets/native-builds_.devices-Cox001IR.js +2 -0
- package/.output/public/assets/native-builds_.devices-DAW19hcQ.js +1 -0
- package/.output/public/assets/plus-DztQIXYL.js +1 -0
- package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-RUNbaMyO.js} +1 -1
- package/.output/public/assets/remote-config-BCQHNGRY.js +1 -0
- package/.output/public/assets/remote-config-BIIj0Faf.js +1 -0
- package/.output/public/assets/remote-config-CDlB7JK8.js +6 -0
- package/.output/public/assets/rotate-ccw-tITIe0Bd.js +1 -0
- package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-BFQcpUTO.js} +1 -1
- package/.output/public/assets/routes-C7Pv3Cfg.js +1 -0
- package/.output/public/assets/routes-JJGRGqsf.js +2 -0
- package/.output/public/assets/search-BfEqtE64.js +1 -0
- package/.output/public/assets/select-iSWTEY9t.js +1 -0
- package/.output/public/assets/sidebar-BmzmPGuv.js +3 -0
- package/.output/public/assets/smartphone-Dy13ukaU.js +1 -0
- package/.output/public/assets/styles-D5kpHu-Z.css +2 -0
- package/.output/public/assets/switch-ByNYRVTN.js +1 -0
- package/.output/public/assets/table-DbZPkzdz.js +1 -0
- package/.output/public/assets/tabs-Byfy8Qls.js +1 -0
- package/.output/public/assets/trash-2-DI0biNI-.js +1 -0
- package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-CxhBbgJw.js} +1 -1
- package/.output/public/assets/useAnchoredPopupScrollLock-Cvx6CdPD.js +1 -0
- package/.output/public/assets/useCompositeListItem-BEDqZ9Ni.js +1 -0
- package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-D7IuoOLE.js} +1 -1
- package/.output/public/assets/valueToPercent-Db73Kirz.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-BsXXRtkN.mjs → __23tanstack-start-server-fn-resolver-DY-niJR4.mjs} +94 -46
- package/.output/server/_chunks/ssr-renderer.mjs +2 -2
- package/.output/server/_libs/@base-ui/react+[...].mjs +4436 -3131
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +2 -2
- package/.output/server/_libs/_.mjs +2 -0
- package/.output/server/_libs/lucide-react.mjs +50 -28
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/react-redux+[...].mjs +1 -1
- package/.output/server/_libs/recharts+[...].mjs +1 -1
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tanstack__react-query.mjs +1 -1
- package/.output/server/_ssr/-native-builds-search-D10dMZzL.mjs +62 -0
- package/.output/server/_ssr/{BundleIdDisplay-CFz1sCQl.mjs → BundleIdDisplay-CGdSiouM.mjs} +3 -3
- package/.output/server/_ssr/ChannelPicker-J5HfKxSS.mjs +251 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-CGHVL37b.mjs → ConsoleFeatureUnavailable-C52o4oew.mjs} +8 -8
- package/.output/server/_ssr/{EventDetails-DdJyaBZ5.mjs → EventDetails-CDLSkVNA.mjs} +9 -9
- package/.output/server/_ssr/FoldedRows-CrRYEVkd.mjs +152 -0
- package/.output/server/_ssr/HashValueDisplay-BrT2wgxk.mjs +65 -0
- package/.output/server/_ssr/{InsightsPageHeader-KtHEf8Q0.mjs → InsightsPageHeader-DVrudLMJ.mjs} +13 -13
- package/.output/server/_ssr/IosInstall-DcKlZU_q.mjs +767 -0
- package/.output/server/_ssr/NativeBuildsNav-BC1WIQ1W.mjs +39 -0
- package/.output/server/_ssr/{NotFoundPage-DZB6K98c.mjs → NotFoundPage-CEhZtcst.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-C22qEcwo.mjs} +13 -3
- package/.output/server/_ssr/QrCode-Dj9BKV3l.mjs +50 -0
- package/.output/server/_ssr/RelativeTime-Dgbh4UPb.mjs +242 -0
- package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-BYEDUW1d.mjs} +20 -4
- package/.output/server/_ssr/RowReason-BweNBWkA.mjs +59 -0
- package/.output/server/_ssr/SandboxBadge-O8-kbXAw.mjs +85 -0
- package/.output/server/_ssr/TargetDisplay-D3JAXwcF.mjs +105 -0
- package/.output/server/_ssr/{alert-dialog-CDr-Nsoo.mjs → alert-dialog-CxEcyUb6.mjs} +4 -4
- package/.output/server/_ssr/{api-DGWwi1WN.mjs → api-IIqxWeDx.mjs} +186 -39
- package/.output/server/_ssr/{api-keys-e_eDCNr2.mjs → api-keys-CYefExfc.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-BXiXUAm9.mjs → api-keys-rpc-qkGQ3Sp3.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-BBb3xSox.mjs → api-keys-wFak2vKN.mjs} +14 -11
- package/.output/server/_ssr/{api-rpc-CLreF5Vr.mjs → api-rpc-3NKc545A.mjs} +83 -35
- package/.output/server/_ssr/{auth-rpc-Bbf80tQK.mjs → auth-rpc-PCSJzNJf.mjs} +5 -5
- package/.output/server/_ssr/{auth.server-DGwe3eds.mjs → auth.server-NGj7G3bq.mjs} +1334 -279
- package/.output/server/_ssr/{badge-BXk5c2yv.mjs → badge-CxSJ-pjU.mjs} +4 -45
- package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
- package/.output/server/_ssr/card-BDXDcrk_.mjs +49 -0
- package/.output/server/_ssr/{config.server-BIBSZpZE.mjs → config.server-CwUGPk-F.mjs} +4 -4
- package/.output/server/_ssr/{console-access-Cwha8dww.mjs → console-access-BOt-Xxd7.mjs} +2 -2
- package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-DTYyXrWO.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-Bk24XYA5.mjs → console-features-api-Dw_Tktev.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-5WFiUFxb.mjs → console-features-rpc-D8VFHwYj.mjs} +4 -4
- package/.output/server/_ssr/constants-D-2jpCiJ.mjs +11 -0
- package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
- package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-B56IJxlu.mjs} +1 -1
- package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
- package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BZMFl5QV.mjs} +3 -3
- package/.output/server/_ssr/deviceProfileToken-xzDLfE0T.mjs +98 -0
- package/.output/server/_ssr/{dialog-BG-juN_g.mjs → dialog-CJ4zMagm.mjs} +5 -5
- package/.output/server/_ssr/dist-CiOq3ygH.mjs +148 -0
- package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
- package/.output/server/_ssr/{empty-DF3o-H8c.mjs → empty-DYy36pwa.mjs} +3 -3
- package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
- package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-BVufgM3l.mjs} +3 -3
- package/.output/server/_ssr/{field-5zvNofJH.mjs → field-MI8oNc5n.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-CUjJqtlF.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-CnOf4Frp.mjs} +2 -2
- package/.output/server/_ssr/{input-group-rcPxMqYq.mjs → input-group-Bf7wHa21.mjs} +3 -3
- package/.output/server/_ssr/{insights-BwEiSUUy.mjs → insights-CKTR62Ox.mjs} +5 -5
- package/.output/server/_ssr/{insights-BDa6T_cj.mjs → insights-CbGG5htV.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-BESfPrTq.mjs → insights-api-CqjIxe1A.mjs} +5 -5
- package/.output/server/_ssr/{insights-Din0R0k-.mjs → insights-b3XeQlzF.mjs} +62 -203
- package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-BD3vjHse.mjs → insights-failures-rpc-fmWHkLhL.mjs} +11 -11
- package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-sVwplV7s.mjs → insights-recovery-rpc-BpwoS9XL.mjs} +7 -7
- package/.output/server/_ssr/{insights-rpc-BdtBheBi.mjs → insights-rpc-qwXzuBUQ.mjs} +4 -4
- package/.output/server/_ssr/{insights-search-BAaycSRp.mjs → insights-search-B_8PizlM.mjs} +6 -8
- package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-Bo5p-cuB.mjs → insights-usage-rpc-Cbg82l2g.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-rpc-DCkLNAlG.mjs → insights-usage-rpc-D8lgk1Sk.mjs} +7 -7
- package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-D4QQxZmG.mjs → insights_.distribution--XTBM-oT.mjs} +17 -16
- package/.output/server/_ssr/{insights_.distribution-DoO2NDvS.mjs → insights_.distribution-DTaKryjw.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-5sgau7rB.mjs → insights_.distribution-Ed2vqrwP.mjs} +5 -5
- package/.output/server/_ssr/{installations-W6DXZ5Tp.mjs → installations-Ce_9dNq0.mjs} +2 -2
- package/.output/server/_ssr/{installations-C4MwFvp6.mjs → installations-DyfuFp3L.mjs} +13 -13
- package/.output/server/_ssr/{installations-CZZsFoXb.mjs → installations-W8W7AYwn.mjs} +4 -4
- package/.output/server/_ssr/ios-devices-rpc-5kZM1bgU.mjs +149 -0
- package/.output/server/_ssr/iosDeviceCookie-BTfPOUhS.mjs +155 -0
- package/.output/server/_ssr/iosDeviceProfile-BAoo32s_.mjs +176 -0
- package/.output/server/_ssr/iosDevices-DuNmS3td.mjs +132 -0
- package/.output/server/_ssr/listReleases-QF91GLE7.mjs +94 -0
- package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
- package/.output/server/_ssr/native-artifact-0tXDLTsd.mjs +1517 -0
- package/.output/server/_ssr/{native-builds-BhBltXq2.mjs → native-builds-1s5DIHa2.mjs} +3 -3
- package/.output/server/_ssr/native-builds-DEyFHKDa.mjs +696 -0
- package/.output/server/_ssr/native-builds-lEyKQemV.mjs +262 -0
- package/.output/server/_ssr/native-builds_._buildId-ElCXKaXI.mjs +1194 -0
- package/.output/server/_ssr/{native-builds_._buildId-B5QgMg7D.mjs → native-builds_._buildId-mJ8i0pL8.mjs} +3 -3
- package/.output/server/_ssr/native-builds_.devices-DNWZLCra.mjs +858 -0
- package/.output/server/_ssr/native-builds_.devices-Dz8b48Fo.mjs +10 -0
- package/.output/server/_ssr/nativeBuildDownloadLink-D8Se_CCi.mjs +96 -0
- package/.output/server/_ssr/nativeBuildInstall-DemC_4Zc.mjs +256 -0
- package/.output/server/_ssr/nativeBuilds-BFSeuC75.mjs +306 -0
- package/.output/server/_ssr/plistText-BORUpyEb.mjs +15 -0
- package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-D9CCkDjn.mjs} +7 -6
- package/.output/server/_ssr/publicConsoleBase-C3sNbafy.mjs +15 -0
- package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-T00z1y9o.mjs → release-adoption-rpc-1mKibOdV.mjs} +9 -9
- package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-CuL3ptgg.mjs} +5 -4
- package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-CqIc-SDE.mjs} +1 -1
- package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-Ch1JpJkY.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-bTCPTVky.mjs → remote-config-C_HNYPZ_.mjs} +24 -23
- package/.output/server/_ssr/{remote-config-Wjia3haX.mjs → remote-config-D2Cohnwn.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-D6YMPi4J.mjs → remote-config-q9fegj-G.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-7Zvra2dm.mjs → remote-config-rpc-6hfHFrO6.mjs} +5 -5
- package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
- package/.output/server/_ssr/{router-CLK13IPD.mjs → router-DODxASKG.mjs} +137 -64
- package/.output/server/_ssr/{routes-CbdYptnV.mjs → routes-BJjTUNSe.mjs} +489 -474
- package/.output/server/_ssr/{routes-h_nOUmOr.mjs → routes-C-nYThl0.mjs} +50 -18
- package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-BUbb281Z.mjs} +4 -4
- package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-CaIuQCXb.mjs} +1 -1
- package/.output/server/_ssr/{schema-migration-rpc-yB9ioGZE.mjs → schema-migration-rpc-C31JquTn.mjs} +5 -5
- package/.output/server/_ssr/{select-BdzEzz-x.mjs → select-CjACvu9s.mjs} +12 -10
- package/.output/server/_ssr/{server-CddZkHk2.mjs → server-Dyw2qgSR.mjs} +7 -7
- package/.output/server/_ssr/{sidebar-DabmjV5E.mjs → sidebar-DQkRAO_e.mjs} +17 -10
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BvDsQehg.mjs → start-BSkL2B6C.mjs} +2 -2
- package/.output/server/_ssr/{switch-84dzb1yG.mjs → switch-DZJSRVl3.mjs} +4 -4
- package/.output/server/_ssr/{table-DP978C4F.mjs → table-BA-6GQFs.mjs} +2 -2
- package/.output/server/_ssr/tabs-CtB3PIts.mjs +45 -0
- package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-DcCONz23.mjs} +8 -5
- package/.output/server/_ssr/{dist-TEpM_UAD.mjs → uuid-kZvLA0Ly-DNL0qBSj.mjs} +2 -147
- package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-C0jNe2Om.mjs} +2 -2
- package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-zW2fpHOZ.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-Bfv6fYk6.mjs +229 -0
- package/.output/server/index.mjs +487 -375
- package/lib/index.d.mts +9 -0
- package/package.json +7 -30
- package/src/components/AppSidebar.tsx +11 -2
- package/src/components/ChannelBadge.tsx +9 -9
- package/src/components/ChannelPicker.tsx +227 -0
- package/src/components/DataTable.tsx +363 -0
- package/src/components/FoldedRows.tsx +219 -0
- package/src/components/HashValueDisplay.tsx +27 -8
- package/src/components/PlatformIcon.tsx +10 -0
- package/src/components/RelativeTime.tsx +31 -0
- package/src/components/RowReason.tsx +63 -0
- package/src/components/TargetDisplay.tsx +95 -0
- package/src/components/ThemeProvider.tsx +11 -2
- package/src/components/features/api-keys/ApiKeysPage.tsx +5 -3
- package/src/components/features/bundles/BundleMetadata.tsx +22 -1
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +10 -11
- package/src/components/features/insights/AppUsage.tsx +3 -5
- package/src/components/features/insights/FailureReports.tsx +3 -2
- package/src/components/features/insights/InsightsControls.tsx +10 -69
- package/src/components/features/insights/InsightsOverview.tsx +7 -1
- package/src/components/features/insights/InsightsPageHeader.tsx +10 -15
- package/src/components/features/insights/ReleaseActivity.tsx +6 -2
- package/src/components/features/insights/ReleaseCombobox.tsx +1 -1
- package/src/components/features/insights/UpdateFailures.tsx +36 -10
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +122 -61
- package/src/components/features/native-builds/CommitLink.tsx +3 -2
- package/src/components/features/native-builds/ImportBuild.tsx +1 -1
- package/src/components/features/native-builds/InstallCard.tsx +378 -93
- package/src/components/features/native-builds/IosDevicesPage.tsx +1145 -0
- package/src/components/features/native-builds/IosInstall.tsx +732 -0
- package/src/components/features/native-builds/IpaDevicesCard.tsx +123 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +36 -9
- package/src/components/features/native-builds/NativeBuildsNav.tsx +45 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +94 -108
- package/src/components/features/native-builds/NativeBuildsTable.tsx +649 -323
- package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
- package/src/components/features/native-builds/PatchesCard.tsx +28 -19
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +5 -5
- package/src/components/features/native-builds/SandboxBadge.tsx +21 -0
- package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
- package/src/components/features/native-builds/ShortHash.tsx +6 -3
- package/src/components/features/native-builds/StoreSubmission.tsx +18 -12
- package/src/components/features/native-builds/playTracks.ts +7 -0
- package/src/components/features/releases/ReleaseEditorSheet.tsx +8 -6
- package/src/components/features/remote-config/PublishDialog.tsx +4 -1
- package/src/components/features/remote-config/VersionsCard.tsx +5 -2
- package/src/components/ui/alert-dialog.tsx +2 -2
- package/src/components/ui/badge.tsx +2 -0
- package/src/components/ui/button.tsx +11 -2
- package/src/components/ui/combobox.tsx +2 -2
- package/src/components/ui/dialog.tsx +3 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/select.tsx +15 -7
- package/src/components/ui/sheet.tsx +1 -1
- package/src/components/ui/sidebar.tsx +2 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/sonner.tsx +3 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/index.ts +9 -0
- package/src/lib/api-rpc.ts +125 -35
- package/src/lib/api.ts +171 -16
- package/src/lib/constants.ts +18 -0
- package/src/lib/insights-search.ts +0 -3
- package/src/lib/ios-devices-api.ts +304 -0
- package/src/lib/ios-devices-rpc.ts +215 -0
- package/src/lib/native-builds.ts +261 -20
- package/src/lib/schema-migration-rpc.ts +1 -1
- package/src/lib/server/console-runtime.server.ts +9 -2
- package/src/lib/server/deviceProfileToken.ts +221 -0
- package/src/lib/server/foldedPage.ts +360 -0
- package/src/lib/server/iosDeviceCookie.ts +239 -0
- package/src/lib/server/iosDeviceProfile.ts +232 -0
- package/src/lib/server/iosDevices.ts +232 -0
- package/src/lib/server/listReleases.ts +101 -62
- package/src/lib/server/local-console.ts +1 -1
- package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
- package/src/lib/server/nativeBuildInstall.ts +513 -0
- package/src/lib/server/nativeBuilds.ts +327 -59
- package/src/lib/server/plistText.ts +17 -0
- package/src/lib/server/publicConsoleBase.ts +17 -0
- package/src/lib/server/updateFailures.ts +6 -1
- package/src/routeTree.gen.ts +129 -18
- package/src/routes/-native-builds-search.ts +61 -4
- package/src/routes/-releases-search.ts +63 -2
- package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
- package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
- package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
- package/src/routes/[_]hot-updater/devices/request.ts +28 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
- package/src/routes/api/native-builds/$buildId/download.ts +22 -1
- package/src/routes/index.tsx +657 -577
- package/src/routes/insights.tsx +3 -5
- package/src/routes/insights_.distribution.tsx +2 -2
- package/src/routes/native-builds_.devices.tsx +21 -0
- package/src/styles.css +24 -0
- package/.output/public/assets/-native-builds-search-C-TGpFAm.js +0 -1
- package/.output/public/assets/EventDetails-Dl2RvPAk.js +0 -1
- package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
- package/.output/public/assets/InsightsPageHeader-DHhqY3DT.js +0 -1
- package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
- package/.output/public/assets/StoreSubmission-ViTkW4eJ.js +0 -1
- package/.output/public/assets/alert-dialog-BqYScr9y.js +0 -1
- package/.output/public/assets/api-P2g8dCNg.js +0 -1
- package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
- package/.output/public/assets/api-keys-FueRkF9q.js +0 -1
- package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
- package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
- package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
- package/.output/public/assets/badge-DWFcDWho.js +0 -1
- package/.output/public/assets/check-CXVR3s3X.js +0 -1
- package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
- package/.output/public/assets/dialog-CNUPxNxH.js +0 -1
- package/.output/public/assets/dist-CPlO6ko9.js +0 -1
- package/.output/public/assets/empty-B3Uwdd6k.js +0 -1
- package/.output/public/assets/field-D-2-mnNh.js +0 -1
- package/.output/public/assets/history-DqHlgSuV.js +0 -1
- package/.output/public/assets/index-CqP5HPV6.js +0 -10
- package/.output/public/assets/input-group-D3OUBk4n.js +0 -1
- package/.output/public/assets/insights-B-0odqpt.js +0 -42
- package/.output/public/assets/insights-BSVGfxSL.js +0 -1
- package/.output/public/assets/insights-NK5B6ReS.js +0 -2
- package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
- package/.output/public/assets/insights-search-DghCbEnk.js +0 -1
- package/.output/public/assets/insights-usage-rpc-CKQH0pUS.js +0 -1
- package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
- package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
- package/.output/public/assets/insights_.distribution-dvk6vYDM.js +0 -1
- package/.output/public/assets/installations-B674P5Z5.js +0 -2
- package/.output/public/assets/installations-BWxczZ2t.js +0 -1
- package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
- package/.output/public/assets/native-builds-BOC71grI.js +0 -1
- package/.output/public/assets/native-builds-D6rldpSh.js +0 -2
- package/.output/public/assets/native-builds-DAy2678K.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
- package/.output/public/assets/plus-BReVKct-.js +0 -1
- package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
- package/.output/public/assets/refresh-cw-B9HHjLej.js +0 -1
- package/.output/public/assets/remote-config-B7ujqhLa.js +0 -6
- package/.output/public/assets/remote-config-WjpozBG5.js +0 -1
- package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
- package/.output/public/assets/routes-BDdBIxYS.js +0 -1
- package/.output/public/assets/routes-CCD33Azv.js +0 -2
- package/.output/public/assets/search-BCel4Oy6.js +0 -1
- package/.output/public/assets/select-CBIU0_M1.js +0 -1
- package/.output/public/assets/sidebar-Di9SN47G.js +0 -3
- package/.output/public/assets/smartphone-CMaSy_ir.js +0 -1
- package/.output/public/assets/styles-uK-0vUMk.css +0 -2
- package/.output/public/assets/switch-BpdiHL_t.js +0 -1
- package/.output/public/assets/table-Bpy3SvSo.js +0 -1
- package/.output/public/assets/tabs-Xmt7tZeG.js +0 -1
- package/.output/public/assets/useCompositeListItem-JmyDfo3-.js +0 -1
- package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
- package/.output/public/assets/valueToPercent-BLwGy_xK.js +0 -1
- package/.output/server/_ssr/-native-builds-search-CwNcoXf4.mjs +0 -37
- package/.output/server/_ssr/HashValueDisplay-B85-LoBW.mjs +0 -55
- package/.output/server/_ssr/RolloutPercentageBadge-CKFY5OIh.mjs +0 -21
- package/.output/server/_ssr/StoreSubmission-CNukW8xF.mjs +0 -139
- package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
- package/.output/server/_ssr/native-builds-CoOxssXa.mjs +0 -510
- package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
- package/.output/server/_ssr/native-builds_._buildId-CysSVBT5.mjs +0 -813
- package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
- package/.output/server/_ssr/nativeBuilds-B_7BPjt_.mjs +0 -133
- package/.output/server/_ssr/qr-code-C7kNRIDX.mjs +0 -22
- package/.output/server/_ssr/tabs-kQRMEiQT.mjs +0 -45
- package/.output/server/_tanstack-start-manifest_v-B5nsO5L4.mjs +0 -184
- package/src/lib/server/nativeBuildQr.ts +0 -73
- package/src/routes/[_]hot-updater/native-builds/qr.ts +0 -14
|
@@ -1,43 +1,37 @@
|
|
|
1
1
|
import { i as __toESM } from "../_runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { B as Download, D as LoaderCircle,
|
|
4
|
-
import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, a as SheetContent, c as SheetTitle, i as Sheet, j as useIsMobile, k as cn, n as Input, o as SheetDescription, r as Separator$1, s as SheetHeader, t as Button$1 } from "./sidebar-
|
|
5
|
-
import { a as Badge, c as CardDescription, d as CardTitle, i as AlertTitle, o as Card, r as AlertDescription, s as CardContent, t as Alert, u as CardHeader } from "./badge-BXk5c2yv.mjs";
|
|
6
|
-
import { a as AlertDialogDescription, i as AlertDialogContent, l as AlertDialogTitle, n as AlertDialogAction, o as AlertDialogFooter, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog$1 } from "./alert-dialog-CDr-Nsoo.mjs";
|
|
7
|
-
import { a as DialogHeader, i as DialogFooter, n as DialogContent, o as DialogTitle, r as DialogDescription, s as DialogTrigger, t as Dialog$1 } from "./dialog-BG-juN_g.mjs";
|
|
8
|
-
import { a as FieldLabel, c as Label, i as FieldGroup, n as FieldDescription, r as FieldError, t as Field } from "./field-5zvNofJH.mjs";
|
|
9
|
-
import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-DP978C4F.mjs";
|
|
10
|
-
import { n as toast } from "../_libs/sonner.mjs";
|
|
2
|
+
import { Et as require_react, Tt as require_jsx_runtime, a as SliderIndicator, c as SliderControl, l as SliderRoot, o as SliderThumb, s as SliderTrack } from "../_libs/@base-ui/react+[...].mjs";
|
|
3
|
+
import { B as Download, D as LoaderCircle, G as CircleOff, O as List, P as Funnel, Q as Check, R as ExternalLink, T as Minus, Y as ChevronRight, Z as ChevronDown, _ as RefreshCw, a as Trash2, g as RotateCcw, i as TriangleAlert, it as ArrowRight, o as Tags, rt as ArrowUpRight, s as Tag, t as X, v as Plus, x as Package } from "../_libs/lucide-react.mjs";
|
|
4
|
+
import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, a as SheetContent, c as SheetTitle, i as Sheet, j as useIsMobile, k as cn, n as Input, o as SheetDescription, r as Separator$1, s as SheetHeader, t as Button$1 } from "./sidebar-DQkRAO_e.mjs";
|
|
11
5
|
import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
6
|
+
import { a as CardHeader, n as CardContent, o as CardTitle, r as CardDescription, t as Card } from "./card-BDXDcrk_.mjs";
|
|
7
|
+
import { a as Badge, i as AlertTitle, n as AlertAction, r as AlertDescription, t as Alert } from "./badge-CxSJ-pjU.mjs";
|
|
8
|
+
import { a as FieldLabel, c as Label, i as FieldGroup, n as FieldDescription, r as FieldError, t as Field } from "./field-MI8oNc5n.mjs";
|
|
9
|
+
import { a as AlertDialogDescription, i as AlertDialogContent, l as AlertDialogTitle, n as AlertDialogAction, o as AlertDialogFooter, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog$1 } from "./alert-dialog-CxEcyUb6.mjs";
|
|
10
|
+
import { a as DialogHeader, i as DialogFooter, n as DialogContent, o as DialogTitle, r as DialogDescription, s as DialogTrigger, t as Dialog$1 } from "./dialog-CJ4zMagm.mjs";
|
|
11
|
+
import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-BA-6GQFs.mjs";
|
|
12
|
+
import { n as toast } from "../_libs/sonner.mjs";
|
|
13
|
+
import { b as normalizeRolloutCohortCount, f as getPatchBaseBundleId, m as getPatchFileHash, p as getPatchBaseFileHash, r as NUMERIC_COHORT_SIZE, t as INVALID_COHORT_ERROR_MESSAGE, u as getNumericCohortRolloutPosition, v as isValidCohort, y as normalizeCohortValue } from "./dist-CiOq3ygH.mjs";
|
|
14
|
+
import { N as releaseNativeBuildScope, j as platformLabel, v as nativeBuildArtifacts } from "./native-builds-lEyKQemV.mjs";
|
|
14
15
|
import { n as normalizeRange } from "../_libs/verkit.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as BundleIdDisplay } from "./BundleIdDisplay-
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import { t as
|
|
24
|
-
import { n as
|
|
25
|
-
import { a as
|
|
26
|
-
|
|
16
|
+
import { t as InfoTooltip } from "./insights-search-B_8PizlM.mjs";
|
|
17
|
+
import { C as useReleasesQuery, S as useReleaseQuery, _ as usePreflightReleaseMutation, a as useConfigQuery, b as useReleaseFoldQuery, c as useDeleteReleaseMutation, i as useChannelsQuery, n as useBundleChildrenQuery, o as useCreateChannelMutation, r as useBundleQuery, s as useDeleteChannelMutation, t as useBundleChildCountsQuery, v as usePromoteReleaseMutation, w as useUpdateReleaseMutation, x as useReleaseNativeBuildQuery, y as useReleaseCatalogDiagnosticsQuery } from "./api-IIqxWeDx.mjs";
|
|
18
|
+
import { n as CONSOLE_GIT_URL_GUIDE_URL } from "./constants-D-2jpCiJ.mjs";
|
|
19
|
+
import { n as PlatformLabel, t as PlatformIcon } from "./PlatformIcon-C22qEcwo.mjs";
|
|
20
|
+
import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-CjACvu9s.mjs";
|
|
21
|
+
import { t as BundleIdDisplay } from "./BundleIdDisplay-CGdSiouM.mjs";
|
|
22
|
+
import { a as InputGroupText, i as InputGroupInput, n as InputGroupAddon, o as Textarea, t as InputGroup } from "./input-group-Bf7wHa21.mjs";
|
|
23
|
+
import { t as ChannelPicker } from "./ChannelPicker-J5HfKxSS.mjs";
|
|
24
|
+
import { t as HashValueDisplay } from "./HashValueDisplay-BrT2wgxk.mjs";
|
|
25
|
+
import { n as RowReason, t as ChannelBadge } from "./RowReason-BweNBWkA.mjs";
|
|
26
|
+
import { a as DataTableBody, c as DataTableFullRow, d as DataTableSkeletonRows, f as RelativeTime, i as DataTable, l as DataTablePagination, n as DataCardSkeletons, o as DataTableEmpty, p as openOutsideControls, r as DataCardsEmpty, s as DataTableFrame, t as DataCard, u as DataTableRow } from "./RelativeTime-Dgbh4UPb.mjs";
|
|
27
|
+
import { i as TargetDisplay, n as CopyableText } from "./TargetDisplay-D3JAXwcF.mjs";
|
|
28
|
+
import { a as foldLabel, c as useOpenFolds, i as foldKey, n as DataTableFold, o as foldedTotal, r as FoldStatus, s as groupsOf, t as DataCardFold } from "./FoldedRows-CrRYEVkd.mjs";
|
|
29
|
+
import { n as TimestampDisplay, r as getCommitUrl, t as RolloutPercentageBadge } from "./RolloutPercentageBadge-BYEDUW1d.mjs";
|
|
30
|
+
import { n as useDialogTarget, t as Switch$1 } from "./switch-DZJSRVl3.mjs";
|
|
31
|
+
import { a as resolveReleaseSearch, i as releaseFilterOf, l as useReleaseColumns, n as Route, o as showsDefaultReleases, r as hasReleaseFilters, s as updateReleaseFilters, t as ReleaseSections } from "./routes-C-nYThl0.mjs";
|
|
32
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/routes-BJjTUNSe.js
|
|
27
33
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
28
34
|
var import_jsx_runtime = require_jsx_runtime();
|
|
29
|
-
var channelColors = {
|
|
30
|
-
production: "bg-green-500/10 text-green-700 dark:text-green-400 border-green-500/20",
|
|
31
|
-
dev: "bg-blue-500/10 text-blue-700 dark:text-blue-400 border-blue-500/20",
|
|
32
|
-
staging: "bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 border-yellow-500/20"
|
|
33
|
-
};
|
|
34
|
-
function ChannelBadge({ channel, className }) {
|
|
35
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
|
|
36
|
-
variant: "outline",
|
|
37
|
-
className: cn(channelColors[channel.toLowerCase()] || "bg-gray-500/10 text-gray-700 dark:text-gray-400 border-gray-500/20", className),
|
|
38
|
-
children: channel
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
35
|
function EnabledStatusIcon({ enabled, className, falseIcon = "x", colorMode = "semantic" }) {
|
|
42
36
|
const iconColorClassName = colorMode === "inherit" ? "text-current" : void 0;
|
|
43
37
|
if (enabled) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { className: cn("h-4 w-4", iconColorClassName ?? "text-green-600 dark:text-green-400", className) });
|
|
@@ -297,11 +291,12 @@ function ChannelManagementDialog({ open, onOpenChange }) {
|
|
|
297
291
|
disabled: createChannel.isPending
|
|
298
292
|
}),
|
|
299
293
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
294
|
+
className: "max-md:h-11",
|
|
300
295
|
type: "submit",
|
|
301
296
|
disabled: !normalizedName || createChannel.isPending,
|
|
302
297
|
children: [createChannel.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
303
298
|
"data-icon": "inline-start",
|
|
304
|
-
className: "animate-spin"
|
|
299
|
+
className: "animate-spin motion-reduce:animate-none"
|
|
305
300
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Plus, { "data-icon": "inline-start" }), "Create"]
|
|
306
301
|
})
|
|
307
302
|
]
|
|
@@ -312,7 +307,7 @@ function ChannelManagementDialog({ open, onOpenChange }) {
|
|
|
312
307
|
className: "max-h-72 overflow-y-auto rounded-lg border",
|
|
313
308
|
children: isLoadingChannels ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
314
309
|
className: "flex h-20 items-center justify-center text-muted-foreground",
|
|
315
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, { className: "mr-2 size-3.5 animate-spin" }), "Loading channels"]
|
|
310
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, { className: "mr-2 size-3.5 animate-spin motion-reduce:animate-none" }), "Loading channels"]
|
|
316
311
|
}) : channels.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
317
312
|
className: "flex h-20 items-center justify-center text-muted-foreground",
|
|
318
313
|
children: "No channels yet"
|
|
@@ -320,15 +315,10 @@ function ChannelManagementDialog({ open, onOpenChange }) {
|
|
|
320
315
|
className: "divide-y",
|
|
321
316
|
children: channels.map((channel) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("li", {
|
|
322
317
|
className: "flex min-h-12 items-center gap-3 px-3 py-2",
|
|
323
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.
|
|
324
|
-
className: "min-w-0 flex-1",
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
children: channel.name
|
|
328
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
329
|
-
className: "truncate font-mono text-[10px] text-muted-foreground",
|
|
330
|
-
children: channel.id
|
|
331
|
-
})]
|
|
318
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
319
|
+
className: "min-w-0 flex-1 truncate text-xs font-medium",
|
|
320
|
+
title: channel.name,
|
|
321
|
+
children: channel.name
|
|
332
322
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
333
323
|
type: "button",
|
|
334
324
|
variant: "ghost",
|
|
@@ -337,7 +327,7 @@ function ChannelManagementDialog({ open, onOpenChange }) {
|
|
|
337
327
|
title: `Delete ${channel.name}`,
|
|
338
328
|
disabled: deleteChannel.isPending,
|
|
339
329
|
onClick: () => setChannelToDelete(channel),
|
|
340
|
-
className: "text-muted-foreground hover:text-destructive",
|
|
330
|
+
className: "text-muted-foreground hover:text-destructive max-md:size-11",
|
|
341
331
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Trash2, { "data-icon": "inline-start" })
|
|
342
332
|
})]
|
|
343
333
|
}, channel.id))
|
|
@@ -385,6 +375,7 @@ function BundleMetadata({ bundle, release }) {
|
|
|
385
375
|
const hbcPatchFileHash = bundle ? getPatchFileHash(bundle) : null;
|
|
386
376
|
const hbcPatchBaseFileHash = bundle ? getPatchBaseFileHash(bundle) : null;
|
|
387
377
|
const gitCommitUrl = bundle?.gitCommitHash && isFetched ? getCommitUrl(configData?.console.gitUrl, bundle.gitCommitHash) : null;
|
|
378
|
+
const showGitUrlHint = isFetched && Boolean(bundle?.gitCommitHash) && !configData?.console.gitUrl?.trim();
|
|
388
379
|
const target = release.strategy === "APP_VERSION" ? release.target_app_version : release.fingerprint_hash;
|
|
389
380
|
if (!(target || bundle?.gitCommitHash || bundle?.manifestFileHash || hbcPatchBaseFileHash || hbcPatchFileHash)) return null;
|
|
390
381
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
|
|
@@ -412,11 +403,28 @@ function BundleMetadata({ bundle, release }) {
|
|
|
412
403
|
className: "flex items-center justify-start gap-1 sm:justify-end",
|
|
413
404
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(HashValueDisplay, {
|
|
414
405
|
className: gitCommitUrl ? "text-primary" : void 0,
|
|
406
|
+
hint: showGitUrlHint ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
407
|
+
"Set ",
|
|
408
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
409
|
+
className: "font-mono",
|
|
410
|
+
children: "console.gitUrl"
|
|
411
|
+
}),
|
|
412
|
+
" ",
|
|
413
|
+
"in your config to open commits in your repository.",
|
|
414
|
+
" ",
|
|
415
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
|
|
416
|
+
className: "font-medium underline underline-offset-2",
|
|
417
|
+
href: CONSOLE_GIT_URL_GUIDE_URL,
|
|
418
|
+
rel: "noopener noreferrer",
|
|
419
|
+
target: "_blank",
|
|
420
|
+
children: "Learn more"
|
|
421
|
+
})
|
|
422
|
+
] }) : void 0,
|
|
415
423
|
maxLength: 12,
|
|
416
424
|
value: bundle.gitCommitHash
|
|
417
425
|
}), gitCommitUrl ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
|
|
418
426
|
"aria-label": "Open git commit",
|
|
419
|
-
className: "shrink-0 text-primary hover:underline",
|
|
427
|
+
className: "relative shrink-0 text-primary after:absolute after:-inset-2.5 hover:underline md:after:hidden",
|
|
420
428
|
href: gitCommitUrl,
|
|
421
429
|
rel: "noopener noreferrer",
|
|
422
430
|
target: "_blank",
|
|
@@ -530,6 +538,7 @@ function RolloutCohortsDialog({ releaseId, rolloutCohortCount, targetCohorts })
|
|
|
530
538
|
});
|
|
531
539
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Dialog$1, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogTrigger, {
|
|
532
540
|
render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
541
|
+
className: "max-md:h-11",
|
|
533
542
|
size: "sm",
|
|
534
543
|
type: "button",
|
|
535
544
|
variant: "outline"
|
|
@@ -579,10 +588,10 @@ function RolloutCohortsDialog({ releaseId, rolloutCohortCount, targetCohorts })
|
|
|
579
588
|
})] });
|
|
580
589
|
}
|
|
581
590
|
/**
|
|
582
|
-
* The native build a release's
|
|
583
|
-
* a patch from its built-in bundle: the
|
|
584
|
-
*
|
|
585
|
-
* so it shows none and reads nothing.
|
|
591
|
+
* The native build new deploys to a release's scope patch from, and whether
|
|
592
|
+
* this bundle has a patch from its built-in bundle: the scope's store build,
|
|
593
|
+
* or with none its newest, in two reads at most. A release of an app version
|
|
594
|
+
* range targets many builds, so it shows none and reads nothing.
|
|
586
595
|
*/
|
|
587
596
|
function ReleaseNativeBuildLink({ release, channel, bundle }) {
|
|
588
597
|
const input = release.bundle_id === null ? null : {
|
|
@@ -641,7 +650,7 @@ function ReleaseNativeBuildLink({ release, channel, bundle }) {
|
|
|
641
650
|
"None tracked for this scope ·",
|
|
642
651
|
" ",
|
|
643
652
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
|
|
644
|
-
className: "underline-offset-4 hover:text-foreground hover:underline",
|
|
653
|
+
className: "relative underline-offset-4 after:absolute after:-inset-x-2 after:-inset-y-4 hover:text-foreground hover:underline md:after:hidden",
|
|
645
654
|
search: { channel },
|
|
646
655
|
to: "/native-builds",
|
|
647
656
|
children: "This channel's builds"
|
|
@@ -672,7 +681,7 @@ function Slider$1({ className, defaultValue, value, min = 0, max = 100, ...props
|
|
|
672
681
|
})
|
|
673
682
|
}), Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderThumb, {
|
|
674
683
|
"data-slot": "slider-thumb",
|
|
675
|
-
className: "relative block size-4 shrink-0 rounded-full border border-primary/50 bg-background shadow transition-colors select-none after:absolute after:-inset-2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring data-disabled:pointer-events-none data-disabled:opacity-50"
|
|
684
|
+
className: "relative block size-4 shrink-0 rounded-full border border-primary/50 bg-background shadow transition-colors select-none after:absolute after:-inset-2 max-md:after:-inset-3.5 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring data-disabled:pointer-events-none data-disabled:opacity-50"
|
|
676
685
|
}, index))]
|
|
677
686
|
})
|
|
678
687
|
});
|
|
@@ -1075,6 +1084,7 @@ function ReleaseEditorSheet({ channels, onOpenChange, onShowScope, open, release
|
|
|
1075
1084
|
value: newCohort
|
|
1076
1085
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
1077
1086
|
"aria-label": "Add cohort",
|
|
1087
|
+
className: "max-md:size-11",
|
|
1078
1088
|
disabled: !newCohort.trim(),
|
|
1079
1089
|
onClick: addCohort,
|
|
1080
1090
|
size: "icon",
|
|
@@ -1106,7 +1116,7 @@ function ReleaseEditorSheet({ channels, onOpenChange, onShowScope, open, release
|
|
|
1106
1116
|
}),
|
|
1107
1117
|
error ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldError, { children: error }) : null,
|
|
1108
1118
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
1109
|
-
className: "w-full",
|
|
1119
|
+
className: "w-full max-md:h-11",
|
|
1110
1120
|
disabled: !dirty || busy,
|
|
1111
1121
|
onClick: save,
|
|
1112
1122
|
size: "lg",
|
|
@@ -1123,7 +1133,7 @@ function ReleaseEditorSheet({ channels, onOpenChange, onShowScope, open, release
|
|
|
1123
1133
|
children: "Actions"
|
|
1124
1134
|
}),
|
|
1125
1135
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
1126
|
-
className: "w-full",
|
|
1136
|
+
className: "w-full max-md:h-11",
|
|
1127
1137
|
disabled: !release.bundle_id || busy,
|
|
1128
1138
|
onClick: () => setShowPromote(true),
|
|
1129
1139
|
size: "sm",
|
|
@@ -1131,7 +1141,7 @@ function ReleaseEditorSheet({ channels, onOpenChange, onShowScope, open, release
|
|
|
1131
1141
|
children: "Promote to channel"
|
|
1132
1142
|
}),
|
|
1133
1143
|
release.bundle_id ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
1134
|
-
className: "w-full",
|
|
1144
|
+
className: "w-full max-md:h-11",
|
|
1135
1145
|
disabled: busy,
|
|
1136
1146
|
onClick: () => {
|
|
1137
1147
|
window.open(`/api/bundles/${encodeURIComponent(release.bundle_id)}/download`, "_blank", "noopener,noreferrer");
|
|
@@ -1142,7 +1152,7 @@ function ReleaseEditorSheet({ channels, onOpenChange, onShowScope, open, release
|
|
|
1142
1152
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Download, { "data-icon": "inline-start" }), "Download manifest"]
|
|
1143
1153
|
}) : null,
|
|
1144
1154
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
1145
|
-
className: "w-full",
|
|
1155
|
+
className: "w-full max-md:h-11",
|
|
1146
1156
|
disabled: release.enabled || busy,
|
|
1147
1157
|
onClick: () => setConfirmDelete(true),
|
|
1148
1158
|
size: "sm",
|
|
@@ -1209,7 +1219,7 @@ function ReleaseEditorSheet({ channels, onOpenChange, onShowScope, open, release
|
|
|
1209
1219
|
children: release.scope_key
|
|
1210
1220
|
}),
|
|
1211
1221
|
onShowScope ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
1212
|
-
className: "mt-1 h-auto px-0 text-xs",
|
|
1222
|
+
className: "mt-1 h-auto px-0 text-xs max-md:min-h-11",
|
|
1213
1223
|
onClick: () => onShowScope(release.scope_key),
|
|
1214
1224
|
size: "sm",
|
|
1215
1225
|
variant: "link",
|
|
@@ -1321,7 +1331,7 @@ function ReleaseEditorSheet({ channels, onOpenChange, onShowScope, open, release
|
|
|
1321
1331
|
id: "target-channel",
|
|
1322
1332
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectValue, { placeholder: "Select a channel" })
|
|
1323
1333
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContent, {
|
|
1324
|
-
className: "max-h-64",
|
|
1334
|
+
className: "md:max-h-64",
|
|
1325
1335
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectGroup, { children: availableChannels.map((channel) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
1326
1336
|
value: channel.name,
|
|
1327
1337
|
children: channel.name
|
|
@@ -1366,7 +1376,19 @@ function ReleaseStateBadge({ release }) {
|
|
|
1366
1376
|
children: [release.enabled ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { className: "size-3" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CircleOff, { className: "size-3" }), release.enabled ? "Enabled" : "Disabled"]
|
|
1367
1377
|
});
|
|
1368
1378
|
}
|
|
1369
|
-
|
|
1379
|
+
/** The list while its channel is unknown: loading, whatever the cache holds. */
|
|
1380
|
+
var PENDING_RELEASES = {
|
|
1381
|
+
data: void 0,
|
|
1382
|
+
error: null,
|
|
1383
|
+
isError: false,
|
|
1384
|
+
isPending: true,
|
|
1385
|
+
isPlaceholderData: false
|
|
1386
|
+
};
|
|
1387
|
+
/** A fold of unreachable bundles: "1 unreachable bundle", "2 …". */
|
|
1388
|
+
var UNREACHABLE_BUNDLES = {
|
|
1389
|
+
one: "unreachable bundle",
|
|
1390
|
+
other: "unreachable bundles"
|
|
1391
|
+
};
|
|
1370
1392
|
var platformFilterItems = [{
|
|
1371
1393
|
label: "iOS",
|
|
1372
1394
|
value: "ios"
|
|
@@ -1388,33 +1410,12 @@ var statusFilterItems = [
|
|
|
1388
1410
|
value: "disabled"
|
|
1389
1411
|
}
|
|
1390
1412
|
];
|
|
1391
|
-
|
|
1392
|
-
dateStyle: "medium",
|
|
1393
|
-
timeStyle: "short"
|
|
1394
|
-
});
|
|
1395
|
-
var tableDateFormatter = new Intl.DateTimeFormat(void 0, { dateStyle: "medium" });
|
|
1396
|
-
/**
|
|
1397
|
-
* Opens a bundle from a click anywhere on its row or card, except on a
|
|
1398
|
-
* control inside it, which keeps its own action.
|
|
1399
|
-
*/
|
|
1400
|
-
var openOutsideControls = (open) => (event) => {
|
|
1401
|
-
if (event.target instanceof Element && event.target.closest("button, a, input, select, textarea")) return;
|
|
1402
|
-
open();
|
|
1403
|
-
};
|
|
1404
|
-
function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, search }) {
|
|
1405
|
-
const hasFilters = hasReleaseFilters(search);
|
|
1413
|
+
function BundleFilterToolbar({ channels, clearable, onChange, onClear, onManageChannels, pending, search }) {
|
|
1406
1414
|
const channelSelected = search.channelId !== void 0;
|
|
1407
|
-
const channelFilterItems = [{
|
|
1408
|
-
label: "All Channels",
|
|
1409
|
-
value: "all"
|
|
1410
|
-
}, ...channels.map((channel) => ({
|
|
1411
|
-
label: channel.name,
|
|
1412
|
-
value: channel.id
|
|
1413
|
-
}))];
|
|
1414
1415
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
|
|
1415
1416
|
className: "sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-2 border-b bg-background px-3 py-3 sm:h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:py-0 sm:backdrop-blur-sm",
|
|
1416
1417
|
children: [
|
|
1417
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1" }),
|
|
1418
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1 size-11 lg:size-7" }),
|
|
1418
1419
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
|
|
1419
1420
|
className: "sr-only",
|
|
1420
1421
|
children: "Bundles"
|
|
@@ -1426,21 +1427,15 @@ function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, se
|
|
|
1426
1427
|
children: "Filters"
|
|
1427
1428
|
})]
|
|
1428
1429
|
}),
|
|
1429
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
value: "all",
|
|
1439
|
-
children: "All Channels"
|
|
1440
|
-
}), channels.map((channel) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
1441
|
-
value: channel.id,
|
|
1442
|
-
children: channel.name
|
|
1443
|
-
}, channel.id))] }) })]
|
|
1430
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelPicker, {
|
|
1431
|
+
allChannels: true,
|
|
1432
|
+
className: "max-sm:order-1 max-sm:min-w-0 max-sm:basis-full",
|
|
1433
|
+
onValueChange: (name) => onChange(name === void 0 ? {
|
|
1434
|
+
channelId: void 0,
|
|
1435
|
+
channels: "all"
|
|
1436
|
+
} : { channelId: channels.find((channel) => channel.name === name)?.id ?? name }),
|
|
1437
|
+
pending,
|
|
1438
|
+
value: search.channelId === void 0 ? void 0 : channels.find(({ id }) => id === search.channelId)?.name ?? search.channelId
|
|
1444
1439
|
}),
|
|
1445
1440
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Select$1, {
|
|
1446
1441
|
disabled: !channelSelected,
|
|
@@ -1449,7 +1444,7 @@ function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, se
|
|
|
1449
1444
|
value: search.platform ?? "ios",
|
|
1450
1445
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
1451
1446
|
"aria-label": "Platform",
|
|
1452
|
-
className: "
|
|
1447
|
+
className: "w-[calc(50%-0.25rem)] min-w-[132px] text-sm data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:text-xs sm:data-[size=default]:h-8",
|
|
1453
1448
|
title: channelSelected ? void 0 : "Choose a channel first",
|
|
1454
1449
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
1455
1450
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
@@ -1467,7 +1462,7 @@ function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, se
|
|
|
1467
1462
|
value: search.enabled === void 0 ? "all" : search.enabled ? "enabled" : "disabled",
|
|
1468
1463
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
1469
1464
|
"aria-label": "Status",
|
|
1470
|
-
className: "
|
|
1465
|
+
className: "w-[calc(50%-0.25rem)] min-w-[132px] text-sm data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:text-xs sm:data-[size=default]:h-8",
|
|
1471
1466
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
1472
1467
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectGroup, { children: [
|
|
1473
1468
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
@@ -1486,6 +1481,7 @@ function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, se
|
|
|
1486
1481
|
}),
|
|
1487
1482
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
1488
1483
|
"aria-label": "Manage channels",
|
|
1484
|
+
className: "size-11 max-sm:ml-auto sm:size-7",
|
|
1489
1485
|
onClick: onManageChannels,
|
|
1490
1486
|
size: "icon-sm",
|
|
1491
1487
|
title: "Manage channels",
|
|
@@ -1493,29 +1489,29 @@ function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, se
|
|
|
1493
1489
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tags, {})
|
|
1494
1490
|
}),
|
|
1495
1491
|
search.bundleId ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Badge, {
|
|
1496
|
-
className: "max-w-48 gap-1",
|
|
1492
|
+
className: "max-w-48 gap-1 max-sm:order-3",
|
|
1497
1493
|
variant: "secondary",
|
|
1498
1494
|
children: ["Artifact filter", /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
1499
1495
|
"aria-label": "Clear artifact filter",
|
|
1500
|
-
className: "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1496
|
+
className: "relative rounded-sm after:absolute after:-inset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden",
|
|
1501
1497
|
onClick: () => onChange({ bundleId: void 0 }),
|
|
1502
1498
|
type: "button",
|
|
1503
1499
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { className: "size-3" })
|
|
1504
1500
|
})]
|
|
1505
1501
|
}) : null,
|
|
1506
1502
|
search.scopeKey ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Badge, {
|
|
1507
|
-
className: "max-w-48 gap-1",
|
|
1503
|
+
className: "max-w-48 gap-1 max-sm:order-3",
|
|
1508
1504
|
variant: "secondary",
|
|
1509
1505
|
children: ["Target filter", /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
1510
1506
|
"aria-label": "Clear target filter",
|
|
1511
|
-
className: "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1507
|
+
className: "relative rounded-sm after:absolute after:-inset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden",
|
|
1512
1508
|
onClick: () => onChange({ scopeKey: void 0 }),
|
|
1513
1509
|
type: "button",
|
|
1514
1510
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { className: "size-3" })
|
|
1515
1511
|
})]
|
|
1516
1512
|
}) : null,
|
|
1517
|
-
|
|
1518
|
-
className: "h-
|
|
1513
|
+
clearable ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
1514
|
+
className: "h-11 px-2 text-xs text-muted-foreground hover:text-foreground max-sm:order-3 sm:ml-auto sm:h-8",
|
|
1519
1515
|
onClick: onClear,
|
|
1520
1516
|
size: "sm",
|
|
1521
1517
|
variant: "ghost",
|
|
@@ -1534,7 +1530,7 @@ function BundleEntry({ expanded, onOpen, onToggleExpand, release }) {
|
|
|
1534
1530
|
"aria-expanded": expanded,
|
|
1535
1531
|
"aria-label": expanded ? "Hide advanced artifact diagnostics" : "Show advanced artifact diagnostics",
|
|
1536
1532
|
title: "Advanced artifact diagnostics",
|
|
1537
|
-
className: "size-
|
|
1533
|
+
className: "size-11 shrink-0 touch-manipulation sm:size-8",
|
|
1538
1534
|
onClick: onToggleExpand,
|
|
1539
1535
|
size: "icon",
|
|
1540
1536
|
type: "button",
|
|
@@ -1542,7 +1538,7 @@ function BundleEntry({ expanded, onOpen, onToggleExpand, release }) {
|
|
|
1542
1538
|
children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, {})
|
|
1543
1539
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1544
1540
|
"aria-hidden": "true",
|
|
1545
|
-
className: "size-
|
|
1541
|
+
className: "size-11 shrink-0 sm:size-8"
|
|
1546
1542
|
}),
|
|
1547
1543
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
|
|
1548
1544
|
"aria-label": `Open details for ID ${release.id}`,
|
|
@@ -1563,11 +1559,11 @@ function BundleEntry({ expanded, onOpen, onToggleExpand, release }) {
|
|
|
1563
1559
|
variant: "secondary",
|
|
1564
1560
|
children: operationLabel
|
|
1565
1561
|
}) : null,
|
|
1566
|
-
release.currentlyUnreachable ? /* @__PURE__ */ (0, import_jsx_runtime.
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
children:
|
|
1562
|
+
release.currentlyUnreachable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RowReason, {
|
|
1563
|
+
icon: CircleOff,
|
|
1564
|
+
label: "Unreachable: no device gets this bundle with the current delivery settings.",
|
|
1565
|
+
reason: "No device gets this bundle with the current delivery settings.",
|
|
1566
|
+
children: "Unreachable"
|
|
1571
1567
|
}) : null
|
|
1572
1568
|
]
|
|
1573
1569
|
});
|
|
@@ -1602,44 +1598,118 @@ function ReleaseBundleChildrenPanel({ onDetailClick, panelId, release }) {
|
|
|
1602
1598
|
panelId
|
|
1603
1599
|
});
|
|
1604
1600
|
}
|
|
1601
|
+
/**
|
|
1602
|
+
* The patch counts and feature slots of a group of releases: the page's
|
|
1603
|
+
* reachable ones, or one fold's, so opening a fold reads its own rows'
|
|
1604
|
+
* and changes no other query.
|
|
1605
|
+
*/
|
|
1606
|
+
function useRowContext(releases, channels) {
|
|
1607
|
+
return {
|
|
1608
|
+
patchCounts: useBundleChildCountsQuery(Array.from(new Set(releases.flatMap((release) => release.bundle_id ? [release.bundle_id] : [])))).data ?? {},
|
|
1609
|
+
slotReleases: releases.flatMap((release) => {
|
|
1610
|
+
const channel = channels.find((item) => item.id === release.channel_id)?.name;
|
|
1611
|
+
return channel ? [{
|
|
1612
|
+
releaseId: release.id,
|
|
1613
|
+
platform: release.platform,
|
|
1614
|
+
channel,
|
|
1615
|
+
builtIn: !release.bundle_id
|
|
1616
|
+
}] : [];
|
|
1617
|
+
})
|
|
1618
|
+
};
|
|
1619
|
+
}
|
|
1620
|
+
/** Whether a fold of the page holds `releaseId`: IDs order the list. */
|
|
1621
|
+
var foldHolds = (fold, releaseId) => releaseId >= fold.to && (fold.from === void 0 || releaseId < fold.from);
|
|
1622
|
+
/**
|
|
1623
|
+
* A fold of unreachable bundles, where they sit in the list: closed, the
|
|
1624
|
+
* number it holds; open, those bundles in order, subdued, read a chunk at a
|
|
1625
|
+
* time once it opens.
|
|
1626
|
+
*/
|
|
1627
|
+
function UnreachableBundlesFold({ fold, filter, channels, columns, isMobile, open, onOpenChange, render }) {
|
|
1628
|
+
const query = useReleaseFoldQuery(filter, {
|
|
1629
|
+
...fold.from === void 0 ? {} : { from: fold.from },
|
|
1630
|
+
to: fold.to
|
|
1631
|
+
}, open);
|
|
1632
|
+
const rows = query.data?.pages.flatMap((page) => page.rows) ?? [];
|
|
1633
|
+
const ctx = useRowContext(rows, channels);
|
|
1634
|
+
const statusColumns = isMobile ? void 0 : columns;
|
|
1635
|
+
const status = query.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FoldStatus, {
|
|
1636
|
+
columns: statusColumns,
|
|
1637
|
+
label: "Unreachable bundles",
|
|
1638
|
+
onRetry: () => void query.refetch(),
|
|
1639
|
+
state: "error"
|
|
1640
|
+
}) : query.isPending || query.isFetchingNextPage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FoldStatus, {
|
|
1641
|
+
columns: statusColumns,
|
|
1642
|
+
label: "Loading unreachable bundles",
|
|
1643
|
+
state: "loading"
|
|
1644
|
+
}) : query.hasNextPage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FoldStatus, {
|
|
1645
|
+
columns: statusColumns,
|
|
1646
|
+
label: "Unreachable bundles",
|
|
1647
|
+
onMore: () => void query.fetchNextPage(),
|
|
1648
|
+
state: "more"
|
|
1649
|
+
}) : null;
|
|
1650
|
+
const props = {
|
|
1651
|
+
label: foldLabel(fold, UNREACHABLE_BUNDLES),
|
|
1652
|
+
open,
|
|
1653
|
+
onOpenChange,
|
|
1654
|
+
panelId: `bundle-fold-${fold.to}`
|
|
1655
|
+
};
|
|
1656
|
+
return isMobile ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataCardFold, {
|
|
1657
|
+
...props,
|
|
1658
|
+
children: [rows.map((release) => render(release, ctx)), status]
|
|
1659
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataTableFold, {
|
|
1660
|
+
...props,
|
|
1661
|
+
columns,
|
|
1662
|
+
children: [rows.map((release) => render(release, ctx)), status]
|
|
1663
|
+
});
|
|
1664
|
+
}
|
|
1605
1665
|
function BundlesPage() {
|
|
1606
|
-
const
|
|
1666
|
+
const urlSearch = Route.useSearch();
|
|
1607
1667
|
const navigate = Route.useNavigate();
|
|
1608
1668
|
const isMobile = useIsMobile();
|
|
1609
1669
|
const [channelsOpen, setChannelsOpen] = (0, import_react.useState)(false);
|
|
1610
1670
|
const [expandedReleaseId, setExpandedReleaseId] = (0, import_react.useState)();
|
|
1671
|
+
const folds = useOpenFolds();
|
|
1672
|
+
const channelsQuery = useChannelsQuery();
|
|
1673
|
+
const channels = channelsQuery.data ?? [];
|
|
1674
|
+
const channelRows = channelsQuery.data;
|
|
1675
|
+
const resolved = resolveReleaseSearch(urlSearch, channelRows);
|
|
1676
|
+
const channelsFailed = resolved === void 0 && channelsQuery.isError;
|
|
1677
|
+
const search = resolved ?? urlSearch;
|
|
1678
|
+
const filter = releaseFilterOf(search);
|
|
1611
1679
|
const releasesQuery = useReleasesQuery({
|
|
1612
1680
|
afterReleaseId: search.afterReleaseId,
|
|
1613
1681
|
beforeReleaseId: search.beforeReleaseId,
|
|
1614
|
-
filter
|
|
1615
|
-
|
|
1616
|
-
});
|
|
1617
|
-
const
|
|
1618
|
-
const
|
|
1619
|
-
const
|
|
1620
|
-
const
|
|
1621
|
-
const
|
|
1622
|
-
const
|
|
1623
|
-
|
|
1624
|
-
return channel ? [{
|
|
1625
|
-
releaseId: release.id,
|
|
1626
|
-
platform: release.platform,
|
|
1627
|
-
channel,
|
|
1628
|
-
builtIn: !release.bundle_id
|
|
1629
|
-
}] : [];
|
|
1630
|
-
});
|
|
1682
|
+
filter,
|
|
1683
|
+
releaseId: search.releaseId
|
|
1684
|
+
}, { enabled: resolved !== void 0 });
|
|
1685
|
+
const clearable = !showsDefaultReleases(urlSearch, channelRows);
|
|
1686
|
+
const list = resolved === void 0 ? PENDING_RELEASES : releasesQuery;
|
|
1687
|
+
const entries = list.data?.entries ?? [];
|
|
1688
|
+
const releases = entries.flatMap((entry) => entry.kind === "row" ? [entry.row] : []);
|
|
1689
|
+
const pageContext = useRowContext(releases, channels);
|
|
1690
|
+
const nextCursor = list.data?.next;
|
|
1691
|
+
const previousCursor = list.data?.previous;
|
|
1631
1692
|
const featureColumns = useReleaseColumns();
|
|
1632
1693
|
const columnCount = 10 + featureColumns.length;
|
|
1633
1694
|
const channelNames = new Map(channels.map((channel) => [channel.id, channel.name]));
|
|
1695
|
+
const visible = (releaseId) => releases.some((release) => release.id === releaseId) || entries.some((entry) => entry.kind === "fold" && folds.isOpen(foldKey(entry)) && foldHolds(entry, releaseId));
|
|
1696
|
+
const lineageVisible = expandedReleaseId !== void 0 && visible(expandedReleaseId);
|
|
1634
1697
|
(0, import_react.useEffect)(() => {
|
|
1635
|
-
if (expandedReleaseId
|
|
1636
|
-
}, [expandedReleaseId,
|
|
1698
|
+
if (expandedReleaseId !== void 0 && !lineageVisible) setExpandedReleaseId(void 0);
|
|
1699
|
+
}, [expandedReleaseId, lineageVisible]);
|
|
1637
1700
|
const go = (nextSearch, resetScroll = true) => void navigate({
|
|
1638
1701
|
resetScroll,
|
|
1639
1702
|
search: nextSearch,
|
|
1640
1703
|
to: "/"
|
|
1641
1704
|
});
|
|
1642
1705
|
const changeFilters = (filters) => go(updateReleaseFilters(search, filters));
|
|
1706
|
+
const select = (release) => {
|
|
1707
|
+
if (!releases.some(({ id }) => id === release.id)) folds.set(release.id, true);
|
|
1708
|
+
go({
|
|
1709
|
+
...search,
|
|
1710
|
+
releaseId: release.id
|
|
1711
|
+
}, false);
|
|
1712
|
+
};
|
|
1643
1713
|
const openChildBundle = (bundle) => {
|
|
1644
1714
|
const childRelease = releases.find((release) => release.bundle_id === bundle.id);
|
|
1645
1715
|
setExpandedReleaseId(void 0);
|
|
@@ -1655,8 +1725,8 @@ function BundlesPage() {
|
|
|
1655
1725
|
const onLaterPage = search.afterReleaseId !== void 0 || search.beforeReleaseId !== void 0;
|
|
1656
1726
|
const previousSearch = previousCursor ? {
|
|
1657
1727
|
...search,
|
|
1658
|
-
afterReleaseId: previousCursor,
|
|
1659
|
-
beforeReleaseId: void 0,
|
|
1728
|
+
afterReleaseId: "after" in previousCursor ? previousCursor.after : void 0,
|
|
1729
|
+
beforeReleaseId: "before" in previousCursor ? previousCursor.before : void 0,
|
|
1660
1730
|
releaseId: void 0
|
|
1661
1731
|
} : null;
|
|
1662
1732
|
const nextSearch = nextCursor ? {
|
|
@@ -1671,361 +1741,306 @@ function BundlesPage() {
|
|
|
1671
1741
|
beforeReleaseId: void 0,
|
|
1672
1742
|
releaseId: void 0
|
|
1673
1743
|
};
|
|
1744
|
+
const renderCard = (release, ctx) => {
|
|
1745
|
+
const channelName = channelNames.get(release.channel_id) ?? release.channel_id;
|
|
1746
|
+
const patchCount = release.bundle_id ? ctx.patchCounts[release.bundle_id] : 0;
|
|
1747
|
+
const isExpanded = lineageVisible && expandedReleaseId === release.id;
|
|
1748
|
+
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
1749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataCard, {
|
|
1750
|
+
"aria-label": `Bundle ${release.id}`,
|
|
1751
|
+
className: cn("gap-3", release.currentlyUnreachable && "bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100", isExpanded && "border-b-0 bg-primary/5"),
|
|
1752
|
+
"data-state": search.releaseId === release.id ? "selected" : void 0,
|
|
1753
|
+
onClick: openOutsideControls(() => select(release)),
|
|
1754
|
+
children: [
|
|
1755
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1756
|
+
className: "flex items-start justify-between gap-3",
|
|
1757
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(BundleEntry, {
|
|
1758
|
+
expanded: isExpanded,
|
|
1759
|
+
onOpen: () => select(release),
|
|
1760
|
+
onToggleExpand: () => setExpandedReleaseId(isExpanded ? void 0 : release.id),
|
|
1761
|
+
release
|
|
1762
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelBadge, {
|
|
1763
|
+
channel: channelName,
|
|
1764
|
+
className: "shrink-0"
|
|
1765
|
+
})]
|
|
1766
|
+
}),
|
|
1767
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
1768
|
+
className: "flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground",
|
|
1769
|
+
children: [
|
|
1770
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1771
|
+
className: "flex items-center gap-1.5 text-foreground",
|
|
1772
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformIcon, {
|
|
1773
|
+
className: "size-4",
|
|
1774
|
+
platform: release.platform
|
|
1775
|
+
}), release.platform === "ios" ? "iOS" : "Android"]
|
|
1776
|
+
}),
|
|
1777
|
+
patchCount === void 0 || patchCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1778
|
+
"aria-hidden": "true",
|
|
1779
|
+
children: "·"
|
|
1780
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: patchCount === void 0 ? "Checking patches" : `${patchCount} ${patchCount === 1 ? "patch" : "patches"}` })] }) : null,
|
|
1781
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1782
|
+
"aria-hidden": "true",
|
|
1783
|
+
children: "·"
|
|
1784
|
+
}),
|
|
1785
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: release.created_at_ms })
|
|
1786
|
+
]
|
|
1787
|
+
}),
|
|
1788
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1789
|
+
className: "flex flex-wrap items-center gap-x-3 gap-y-2 text-xs",
|
|
1790
|
+
children: [
|
|
1791
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageBadge, { percentage: release.rollout_cohort_count / 10 }),
|
|
1792
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseStateBadge, { release }),
|
|
1793
|
+
release.should_force_update ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
|
|
1794
|
+
variant: "secondary",
|
|
1795
|
+
children: "Force update"
|
|
1796
|
+
}) : null,
|
|
1797
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1798
|
+
className: "flex items-center",
|
|
1799
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1800
|
+
className: "sr-only",
|
|
1801
|
+
children: "Target "
|
|
1802
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TargetDisplay, {
|
|
1803
|
+
appVersion: release.target_app_version,
|
|
1804
|
+
fingerprintHash: release.fingerprint_hash
|
|
1805
|
+
})]
|
|
1806
|
+
})
|
|
1807
|
+
]
|
|
1808
|
+
}),
|
|
1809
|
+
featureColumns.map(({ Cell, feature, label }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1810
|
+
className: "mt-3 text-xs",
|
|
1811
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1812
|
+
className: "sr-only",
|
|
1813
|
+
children: label
|
|
1814
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cell, {
|
|
1815
|
+
releaseId: release.id,
|
|
1816
|
+
releases: ctx.slotReleases
|
|
1817
|
+
})]
|
|
1818
|
+
}, feature)),
|
|
1819
|
+
release.message ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
1820
|
+
className: "line-clamp-2 text-xs text-muted-foreground",
|
|
1821
|
+
children: release.message
|
|
1822
|
+
}) : null
|
|
1823
|
+
]
|
|
1824
|
+
}), isExpanded && release.bundle_id ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseBundleChildrenPanel, {
|
|
1825
|
+
onDetailClick: openChildBundle,
|
|
1826
|
+
panelId,
|
|
1827
|
+
release
|
|
1828
|
+
}) : null] }, release.id);
|
|
1829
|
+
};
|
|
1830
|
+
const renderRow = (release, ctx) => {
|
|
1831
|
+
const isExpanded = lineageVisible && expandedReleaseId === release.id;
|
|
1832
|
+
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
1833
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataTableRow, {
|
|
1834
|
+
"aria-label": `Open bundle ${release.id}`,
|
|
1835
|
+
className: cn(release.currentlyUnreachable && "bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100", isExpanded && "bg-primary/5"),
|
|
1836
|
+
"data-state": search.releaseId === release.id ? "selected" : void 0,
|
|
1837
|
+
onOpen: () => select(release),
|
|
1838
|
+
children: [
|
|
1839
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BundleEntry, {
|
|
1840
|
+
expanded: isExpanded,
|
|
1841
|
+
onOpen: () => select(release),
|
|
1842
|
+
onToggleExpand: () => setExpandedReleaseId(isExpanded ? void 0 : release.id),
|
|
1843
|
+
release
|
|
1844
|
+
}) }),
|
|
1845
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelBadge, { channel: channelNames.get(release.channel_id) ?? release.channel_id }) }),
|
|
1846
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
1847
|
+
className: "whitespace-nowrap",
|
|
1848
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformLabel, { platform: release.platform })
|
|
1849
|
+
}),
|
|
1850
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: release.bundle_id && ctx.patchCounts[release.bundle_id] === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1851
|
+
className: "text-sm text-muted-foreground",
|
|
1852
|
+
children: "Checking"
|
|
1853
|
+
}) : release.bundle_id && ctx.patchCounts[release.bundle_id] > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Badge, {
|
|
1854
|
+
variant: "secondary",
|
|
1855
|
+
children: [
|
|
1856
|
+
ctx.patchCounts[release.bundle_id],
|
|
1857
|
+
" ",
|
|
1858
|
+
ctx.patchCounts[release.bundle_id] === 1 ? "patch" : "patches"
|
|
1859
|
+
]
|
|
1860
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1861
|
+
className: "text-muted-foreground",
|
|
1862
|
+
children: "-"
|
|
1863
|
+
}) }),
|
|
1864
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TargetDisplay, {
|
|
1865
|
+
appVersion: release.target_app_version,
|
|
1866
|
+
fingerprintHash: release.fingerprint_hash
|
|
1867
|
+
}) }),
|
|
1868
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1869
|
+
className: "flex items-center",
|
|
1870
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EnabledStatusIcon, { enabled: release.enabled }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1871
|
+
className: "sr-only",
|
|
1872
|
+
children: release.enabled ? "Enabled" : "Disabled"
|
|
1873
|
+
})]
|
|
1874
|
+
}) }),
|
|
1875
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1876
|
+
className: "flex items-center",
|
|
1877
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EnabledStatusIcon, {
|
|
1878
|
+
enabled: release.should_force_update,
|
|
1879
|
+
falseIcon: "minus"
|
|
1880
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1881
|
+
className: "sr-only",
|
|
1882
|
+
children: release.should_force_update ? "Required" : "Optional"
|
|
1883
|
+
})]
|
|
1884
|
+
}) }),
|
|
1885
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageBadge, { percentage: release.rollout_cohort_count / 10 }) }),
|
|
1886
|
+
featureColumns.map(({ Cell, feature }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cell, {
|
|
1887
|
+
releaseId: release.id,
|
|
1888
|
+
releases: ctx.slotReleases
|
|
1889
|
+
}) }, feature)),
|
|
1890
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
1891
|
+
className: "text-sm text-muted-foreground",
|
|
1892
|
+
title: release.message ?? void 0,
|
|
1893
|
+
children: release.message || "-"
|
|
1894
|
+
}),
|
|
1895
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
1896
|
+
className: "text-xs text-muted-foreground",
|
|
1897
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: release.created_at_ms })
|
|
1898
|
+
})
|
|
1899
|
+
]
|
|
1900
|
+
}), isExpanded && release.bundle_id ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableRow, {
|
|
1901
|
+
className: "hover:bg-transparent",
|
|
1902
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
1903
|
+
className: "border-t-0 p-0",
|
|
1904
|
+
colSpan: columnCount,
|
|
1905
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseBundleChildrenPanel, {
|
|
1906
|
+
onDetailClick: openChildBundle,
|
|
1907
|
+
panelId,
|
|
1908
|
+
release
|
|
1909
|
+
})
|
|
1910
|
+
})
|
|
1911
|
+
}) : null] }, release.id);
|
|
1912
|
+
};
|
|
1913
|
+
const fold = (entry, render) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UnreachableBundlesFold, {
|
|
1914
|
+
channels,
|
|
1915
|
+
columns: columnCount,
|
|
1916
|
+
filter,
|
|
1917
|
+
fold: entry,
|
|
1918
|
+
isMobile,
|
|
1919
|
+
onOpenChange: (open) => folds.set(foldKey(entry), open),
|
|
1920
|
+
open: folds.isOpen(foldKey(entry)),
|
|
1921
|
+
render
|
|
1922
|
+
}, `fold-${entry.to}`);
|
|
1923
|
+
const openingTitle = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
1924
|
+
"No ",
|
|
1925
|
+
search.platform === "android" ? "Android" : "iOS",
|
|
1926
|
+
" bundles in",
|
|
1927
|
+
" ",
|
|
1928
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1929
|
+
translate: "no",
|
|
1930
|
+
children: channelNames.get(search.channelId ?? "") ?? search.channelId
|
|
1931
|
+
})
|
|
1932
|
+
] });
|
|
1933
|
+
const empty = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableEmpty, {
|
|
1934
|
+
icon: Package,
|
|
1935
|
+
title: releases.length === 0 && entries.length > 0 ? "No device gets the bundles here" : onLaterPage ? "No more bundles" : !hasReleaseFilters(search) ? "No bundles yet" : clearable ? "No bundles match these filters" : openingTitle,
|
|
1936
|
+
children: onLaterPage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
|
|
1937
|
+
className: buttonVariants({
|
|
1938
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
1939
|
+
variant: "outline"
|
|
1940
|
+
}),
|
|
1941
|
+
search: newestSearch,
|
|
1942
|
+
to: "/",
|
|
1943
|
+
children: "Show the newest bundles"
|
|
1944
|
+
}) : clearable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
1945
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
1946
|
+
onClick: () => go({}),
|
|
1947
|
+
variant: "outline",
|
|
1948
|
+
children: "Clear filters"
|
|
1949
|
+
}) : hasReleaseFilters(search) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
1950
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
1951
|
+
onClick: () => changeFilters({
|
|
1952
|
+
channelId: void 0,
|
|
1953
|
+
channels: "all"
|
|
1954
|
+
}),
|
|
1955
|
+
variant: "outline",
|
|
1956
|
+
children: "Show all channels"
|
|
1957
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Deploy one from your app's project:" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1958
|
+
className: "w-full text-left",
|
|
1959
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
|
|
1960
|
+
label: "the deploy command",
|
|
1961
|
+
value: "npx hot-updater deploy",
|
|
1962
|
+
wrap: true
|
|
1963
|
+
})
|
|
1964
|
+
})] })
|
|
1965
|
+
});
|
|
1674
1966
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1675
1967
|
className: "flex h-svh min-h-0 min-w-0 flex-col",
|
|
1676
1968
|
children: [
|
|
1677
1969
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(BundleFilterToolbar, {
|
|
1678
1970
|
channels,
|
|
1971
|
+
clearable,
|
|
1679
1972
|
onChange: changeFilters,
|
|
1680
1973
|
onClear: () => go({}),
|
|
1681
1974
|
onManageChannels: () => setChannelsOpen(true),
|
|
1975
|
+
pending: resolved === void 0,
|
|
1682
1976
|
search
|
|
1683
1977
|
}),
|
|
1684
1978
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1685
1979
|
className: "flex min-h-0 min-w-0 flex-1 flex-col gap-6 bg-muted/5 p-3 sm:p-6",
|
|
1686
|
-
children: [
|
|
1980
|
+
children: [channelsFailed ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
|
|
1981
|
+
variant: "destructive",
|
|
1982
|
+
children: [
|
|
1983
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
|
|
1984
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "Channels couldn't be loaded" }),
|
|
1985
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: "Bundles show once the channels load." }),
|
|
1986
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
1987
|
+
className: "min-h-11 sm:min-h-7",
|
|
1988
|
+
onClick: () => void channelsQuery.refetch(),
|
|
1989
|
+
size: "xs",
|
|
1990
|
+
variant: "outline",
|
|
1991
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
|
|
1992
|
+
}) })
|
|
1993
|
+
]
|
|
1994
|
+
}) : list.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
|
|
1687
1995
|
variant: "destructive",
|
|
1688
1996
|
children: [
|
|
1689
1997
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
|
|
1690
1998
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "Bundles could not be loaded" }),
|
|
1691
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children:
|
|
1999
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: list.error?.message })
|
|
1692
2000
|
]
|
|
1693
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1694
|
-
className: "
|
|
1695
|
-
children:
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
className: "mt-1 flex items-center gap-2 font-medium",
|
|
1737
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformIcon, {
|
|
1738
|
-
className: "size-4",
|
|
1739
|
-
platform: release.platform
|
|
1740
|
-
}), release.platform === "ios" ? "iOS" : "Android"]
|
|
1741
|
-
})]
|
|
1742
|
-
}),
|
|
1743
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1744
|
-
className: "rounded-md bg-muted/40 p-3",
|
|
1745
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
1746
|
-
className: "text-muted-foreground",
|
|
1747
|
-
children: "Created"
|
|
1748
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
|
|
1749
|
-
className: "mt-1 tabular-nums",
|
|
1750
|
-
children: dateFormatter.format(release.created_at_ms)
|
|
1751
|
-
})]
|
|
1752
|
-
}),
|
|
1753
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1754
|
-
className: "rounded-md bg-muted/40 p-3",
|
|
1755
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
1756
|
-
className: "text-muted-foreground",
|
|
1757
|
-
children: "Rollout"
|
|
1758
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
|
|
1759
|
-
className: "mt-1",
|
|
1760
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageBadge, { percentage: release.rollout_cohort_count / 10 })
|
|
1761
|
-
})]
|
|
1762
|
-
}),
|
|
1763
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1764
|
-
className: "rounded-md bg-muted/40 p-3",
|
|
1765
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
1766
|
-
className: "text-muted-foreground",
|
|
1767
|
-
children: "Patches"
|
|
1768
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
|
|
1769
|
-
className: "mt-1",
|
|
1770
|
-
children: patchCount === void 0 ? "Checking" : patchCount > 0 ? `${patchCount} ${patchCount === 1 ? "patch" : "patches"}` : "—"
|
|
1771
|
-
})]
|
|
1772
|
-
}),
|
|
1773
|
-
featureColumns.map(({ Cell, feature, label }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1774
|
-
className: "col-span-2 rounded-md bg-muted/40 p-3",
|
|
1775
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
1776
|
-
className: "mb-2 text-muted-foreground",
|
|
1777
|
-
children: label
|
|
1778
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cell, {
|
|
1779
|
-
releaseId: release.id,
|
|
1780
|
-
releases: slotReleases
|
|
1781
|
-
}) })]
|
|
1782
|
-
}, feature)),
|
|
1783
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1784
|
-
className: "col-span-2 flex flex-wrap items-center gap-2 rounded-md bg-muted/40 p-3",
|
|
1785
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseStateBadge, { release }), release.should_force_update ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
|
|
1786
|
-
variant: "secondary",
|
|
1787
|
-
children: "Force update"
|
|
1788
|
-
}) : null]
|
|
1789
|
-
}),
|
|
1790
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1791
|
-
className: "col-span-2 grid grid-cols-1 gap-2 rounded-md border bg-background/80 p-3",
|
|
1792
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1793
|
-
className: "flex items-start justify-between gap-3",
|
|
1794
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
1795
|
-
className: "text-muted-foreground",
|
|
1796
|
-
children: "Target"
|
|
1797
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
|
|
1798
|
-
className: "min-w-0 truncate text-right font-mono",
|
|
1799
|
-
children: release.target_app_version ?? release.fingerprint_hash ?? "—"
|
|
1800
|
-
})]
|
|
1801
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1802
|
-
className: "flex items-start justify-between gap-3",
|
|
1803
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
1804
|
-
className: "text-muted-foreground",
|
|
1805
|
-
children: "Message"
|
|
1806
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
|
|
1807
|
-
className: "min-w-0 text-right text-foreground",
|
|
1808
|
-
children: release.message || "—"
|
|
1809
|
-
})]
|
|
1810
|
-
})]
|
|
1811
|
-
})
|
|
1812
|
-
]
|
|
1813
|
-
})]
|
|
1814
|
-
}), isExpanded && release.bundle_id ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseBundleChildrenPanel, {
|
|
1815
|
-
onDetailClick: openChildBundle,
|
|
1816
|
-
panelId,
|
|
1817
|
-
release
|
|
1818
|
-
}) : null] }, release.id);
|
|
1819
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
1820
|
-
className: "p-8 text-center text-sm text-muted-foreground",
|
|
1821
|
-
children: onLaterPage ? "No more bundles on this side." : hasReleaseFilters(search) ? "No bundles match these filters." : "No bundles yet. Deploy an update to see it here."
|
|
1822
|
-
})
|
|
1823
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Table, {
|
|
1824
|
-
className: "min-w-max",
|
|
1825
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHeader, {
|
|
1826
|
-
className: "bg-muted/40",
|
|
1827
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
1828
|
-
className: "border-b border-border/60 hover:bg-transparent [&>th]:h-10 [&>th]:text-xs [&>th]:font-semibold [&>th]:uppercase [&>th]:text-muted-foreground/70",
|
|
1829
|
-
children: [
|
|
1830
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "ID" }),
|
|
1831
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Channel" }),
|
|
1832
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Platform" }),
|
|
1833
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Patches" }),
|
|
1834
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Target" }),
|
|
1835
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Enabled" }),
|
|
1836
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Force update" }),
|
|
1837
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Rollout" }),
|
|
1838
|
-
featureColumns.map(({ feature, label }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: label }, feature)),
|
|
1839
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Message" }),
|
|
1840
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Created" })
|
|
1841
|
-
]
|
|
1842
|
-
})
|
|
1843
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableBody, { children: [releasesQuery.isPending ? Array.from({ length: 7 }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
1844
|
-
colSpan: columnCount,
|
|
1845
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-8 w-full" })
|
|
1846
|
-
}) }, index)) : releases.map((release) => {
|
|
1847
|
-
const isExpanded = expandedReleaseId === release.id;
|
|
1848
|
-
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
1849
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
1850
|
-
"aria-label": `Open bundle ${release.id}`,
|
|
1851
|
-
className: cn("cursor-pointer transition-[background-color,filter] hover:bg-muted/10 focus-within:bg-muted/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring motion-reduce:transition-none data-[state=selected]:bg-muted/15 [&>td]:py-3", release.currentlyUnreachable && "bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100", isExpanded && "bg-primary/5"),
|
|
1852
|
-
"data-state": search.releaseId === release.id ? "selected" : void 0,
|
|
1853
|
-
onClick: openOutsideControls(() => go({
|
|
1854
|
-
...search,
|
|
1855
|
-
releaseId: release.id
|
|
1856
|
-
}, false)),
|
|
1857
|
-
onKeyDown: (event) => {
|
|
1858
|
-
if (event.target !== event.currentTarget || event.key !== "Enter" && event.key !== " ") return;
|
|
1859
|
-
event.preventDefault();
|
|
1860
|
-
go({
|
|
1861
|
-
...search,
|
|
1862
|
-
releaseId: release.id
|
|
1863
|
-
}, false);
|
|
1864
|
-
},
|
|
1865
|
-
tabIndex: 0,
|
|
1866
|
-
children: [
|
|
1867
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BundleEntry, {
|
|
1868
|
-
expanded: isExpanded,
|
|
1869
|
-
onOpen: () => go({
|
|
1870
|
-
...search,
|
|
1871
|
-
releaseId: release.id
|
|
1872
|
-
}, false),
|
|
1873
|
-
onToggleExpand: () => setExpandedReleaseId(isExpanded ? void 0 : release.id),
|
|
1874
|
-
release
|
|
1875
|
-
}) }),
|
|
1876
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelBadge, { channel: channelNames.get(release.channel_id) ?? release.channel_id }) }),
|
|
1877
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
1878
|
-
className: "whitespace-nowrap",
|
|
1879
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1880
|
-
className: "flex items-center gap-2",
|
|
1881
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformIcon, {
|
|
1882
|
-
className: "size-4",
|
|
1883
|
-
platform: release.platform
|
|
1884
|
-
}), release.platform === "ios" ? "iOS" : "Android"]
|
|
1885
|
-
})
|
|
1886
|
-
}),
|
|
1887
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: release.bundle_id && patchCountsByBundleId[release.bundle_id] === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1888
|
-
className: "text-sm text-muted-foreground",
|
|
1889
|
-
children: "Checking"
|
|
1890
|
-
}) : release.bundle_id && patchCountsByBundleId[release.bundle_id] > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Badge, {
|
|
1891
|
-
variant: "secondary",
|
|
1892
|
-
children: [
|
|
1893
|
-
patchCountsByBundleId[release.bundle_id],
|
|
1894
|
-
" ",
|
|
1895
|
-
patchCountsByBundleId[release.bundle_id] === 1 ? "patch" : "patches"
|
|
1896
|
-
]
|
|
1897
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1898
|
-
className: "text-muted-foreground",
|
|
1899
|
-
children: "-"
|
|
1900
|
-
}) }),
|
|
1901
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: release.target_app_version ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1902
|
-
className: "flex items-center gap-2",
|
|
1903
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Package, { className: "size-4 shrink-0 text-muted-foreground" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1904
|
-
className: "font-medium",
|
|
1905
|
-
children: release.target_app_version
|
|
1906
|
-
})]
|
|
1907
|
-
}) : release.fingerprint_hash ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1908
|
-
className: "flex min-w-[160px] items-center gap-2",
|
|
1909
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FingerprintPattern, { className: "size-4 shrink-0 text-muted-foreground" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HashValueDisplay, {
|
|
1910
|
-
maxLength: 12,
|
|
1911
|
-
value: release.fingerprint_hash
|
|
1912
|
-
})]
|
|
1913
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1914
|
-
className: "text-muted-foreground",
|
|
1915
|
-
children: "-"
|
|
1916
|
-
}) }),
|
|
1917
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1918
|
-
className: "flex items-center",
|
|
1919
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EnabledStatusIcon, { enabled: release.enabled }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1920
|
-
className: "sr-only",
|
|
1921
|
-
children: release.enabled ? "Enabled" : "Disabled"
|
|
1922
|
-
})]
|
|
1923
|
-
}) }),
|
|
1924
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
1925
|
-
className: "flex items-center",
|
|
1926
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EnabledStatusIcon, {
|
|
1927
|
-
enabled: release.should_force_update,
|
|
1928
|
-
falseIcon: "minus"
|
|
1929
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1930
|
-
className: "sr-only",
|
|
1931
|
-
children: release.should_force_update ? "Required" : "Optional"
|
|
1932
|
-
})]
|
|
1933
|
-
}) }),
|
|
1934
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageBadge, { percentage: release.rollout_cohort_count / 10 }) }),
|
|
1935
|
-
featureColumns.map(({ Cell, feature }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cell, {
|
|
1936
|
-
releaseId: release.id,
|
|
1937
|
-
releases: slotReleases
|
|
1938
|
-
}) }, feature)),
|
|
1939
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
1940
|
-
className: "text-sm text-muted-foreground",
|
|
1941
|
-
title: release.message ?? void 0,
|
|
1942
|
-
children: release.message || "-"
|
|
1943
|
-
}),
|
|
1944
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
1945
|
-
className: "whitespace-nowrap text-xs text-muted-foreground",
|
|
1946
|
-
title: dateFormatter.format(release.created_at_ms),
|
|
1947
|
-
children: tableDateFormatter.format(release.created_at_ms)
|
|
1948
|
-
})
|
|
1949
|
-
]
|
|
1950
|
-
}), isExpanded && release.bundle_id ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableRow, {
|
|
1951
|
-
className: "hover:bg-transparent",
|
|
1952
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
1953
|
-
className: "border-t-0 p-0",
|
|
1954
|
-
colSpan: columnCount,
|
|
1955
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseBundleChildrenPanel, {
|
|
1956
|
-
onDetailClick: openChildBundle,
|
|
1957
|
-
panelId,
|
|
1958
|
-
release
|
|
1959
|
-
})
|
|
1960
|
-
})
|
|
1961
|
-
}) : null] }, release.id);
|
|
1962
|
-
}), !releasesQuery.isPending && releases.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
1963
|
-
className: "h-40 text-center text-muted-foreground",
|
|
1964
|
-
colSpan: columnCount,
|
|
1965
|
-
children: onLaterPage ? "No more bundles on this side." : hasReleaseFilters(search) ? "No bundles match these filters." : "No bundles yet. Deploy an update to see it here."
|
|
1966
|
-
}) }) : null] })]
|
|
1967
|
-
})
|
|
1968
|
-
}), !releasesQuery.isError && !releasesQuery.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("nav", {
|
|
1969
|
-
"aria-label": "Bundle pagination",
|
|
1970
|
-
className: "flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between",
|
|
1971
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
1972
|
-
className: "text-xs font-medium text-muted-foreground",
|
|
1973
|
-
children: [
|
|
1974
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
1975
|
-
className: "text-foreground",
|
|
1976
|
-
children: releases.length
|
|
1977
|
-
}),
|
|
1978
|
-
" ",
|
|
1979
|
-
releases.length === 1 ? "entry" : "entries",
|
|
1980
|
-
", newest first"
|
|
1981
|
-
]
|
|
1982
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1983
|
-
className: "flex flex-wrap items-center gap-3 sm:justify-end",
|
|
1984
|
-
children: [
|
|
1985
|
-
onLaterPage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
|
|
1986
|
-
className: buttonVariants({
|
|
1987
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
1988
|
-
size: "sm",
|
|
1989
|
-
variant: "ghost"
|
|
1990
|
-
}),
|
|
1991
|
-
search: newestSearch,
|
|
1992
|
-
to: "/",
|
|
1993
|
-
children: "Newest"
|
|
1994
|
-
}) : null,
|
|
1995
|
-
previousSearch ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
|
|
1996
|
-
className: buttonVariants({
|
|
1997
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
1998
|
-
size: "sm",
|
|
1999
|
-
variant: "outline"
|
|
2000
|
-
}),
|
|
2001
|
-
search: previousSearch,
|
|
2002
|
-
to: "/",
|
|
2003
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeft, { "data-icon": "inline-start" }), "Previous"]
|
|
2004
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
2005
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
2006
|
-
disabled: true,
|
|
2007
|
-
size: "sm",
|
|
2008
|
-
variant: "outline",
|
|
2009
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeft, { "data-icon": "inline-start" }), "Previous"]
|
|
2010
|
-
}),
|
|
2011
|
-
nextSearch ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
|
|
2012
|
-
className: buttonVariants({
|
|
2013
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
2014
|
-
size: "sm",
|
|
2015
|
-
variant: "outline"
|
|
2016
|
-
}),
|
|
2017
|
-
search: nextSearch,
|
|
2018
|
-
to: "/",
|
|
2019
|
-
children: ["Next", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, { "data-icon": "inline-end" })]
|
|
2020
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
2021
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
2022
|
-
disabled: true,
|
|
2023
|
-
size: "sm",
|
|
2024
|
-
variant: "outline",
|
|
2025
|
-
children: ["Next", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, { "data-icon": "inline-end" })]
|
|
2026
|
-
})
|
|
2027
|
-
]
|
|
2028
|
-
})]
|
|
2001
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFrame, { children: isMobile ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
2002
|
+
className: "h-full overflow-y-auto",
|
|
2003
|
+
children: list.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataCardSkeletons, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [releases.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataCardsEmpty, { children: empty }) : null, entries.map((entry) => entry.kind === "row" ? renderCard(entry.row, pageContext) : fold(entry, renderCard))] })
|
|
2004
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTable, {
|
|
2005
|
+
rowGroups: true,
|
|
2006
|
+
header: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
2007
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "ID" }),
|
|
2008
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Channel" }),
|
|
2009
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Platform" }),
|
|
2010
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Patches" }),
|
|
2011
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Target" }),
|
|
2012
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Enabled" }),
|
|
2013
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Force update" }),
|
|
2014
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Rollout" }),
|
|
2015
|
+
featureColumns.map(({ feature, label }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: label }, feature)),
|
|
2016
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Message" }),
|
|
2017
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Created" })
|
|
2018
|
+
] }),
|
|
2019
|
+
children: list.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableBody, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableSkeletonRows, { columns: columnCount }) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [releases.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableBody, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFullRow, {
|
|
2020
|
+
columns: columnCount,
|
|
2021
|
+
children: empty
|
|
2022
|
+
}) }) : null, groupsOf(entries).map((group) => group.kind === "fold" ? fold(group.fold, renderRow) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableBody, { children: group.rows.map((release) => renderRow(release, pageContext)) }, `rows-${group.rows[0].id}`))] })
|
|
2023
|
+
}) }), !channelsFailed && !list.isError && !list.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTablePagination, {
|
|
2024
|
+
count: releases.length,
|
|
2025
|
+
folded: {
|
|
2026
|
+
...foldedTotal(entries),
|
|
2027
|
+
label: "unreachable"
|
|
2028
|
+
},
|
|
2029
|
+
label: "Bundle pagination",
|
|
2030
|
+
noun: ["bundle", "bundles"],
|
|
2031
|
+
pending: list.isPlaceholderData,
|
|
2032
|
+
newest: onLaterPage ? {
|
|
2033
|
+
search: newestSearch,
|
|
2034
|
+
to: "/"
|
|
2035
|
+
} : void 0,
|
|
2036
|
+
next: nextSearch ? {
|
|
2037
|
+
search: nextSearch,
|
|
2038
|
+
to: "/"
|
|
2039
|
+
} : void 0,
|
|
2040
|
+
previous: previousSearch ? {
|
|
2041
|
+
search: previousSearch,
|
|
2042
|
+
to: "/"
|
|
2043
|
+
} : void 0
|
|
2029
2044
|
}) : null]
|
|
2030
2045
|
}),
|
|
2031
2046
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseEditorSheet, {
|