@hot-updater/console 1.2.0-rc.5 → 1.2.0-rc.51
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-CtbmyR7f.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-ClHLI-NM.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-1a_GRSNg.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-BQErgQRj.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-D0dVdFCk.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-B8BpJ73Y.js +10 -0
- package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
- package/.output/public/assets/insights-BrdBpqda.js +42 -0
- package/.output/public/assets/insights-DsmTCDix.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-BHmK7ufZ.js +1 -0
- package/.output/public/assets/insights_.distribution-BNNw0whH.js +2 -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-B6t0ZxKP.js +1 -0
- package/.output/public/assets/native-builds-CgPSpNsA.js +2 -0
- package/.output/public/assets/native-builds-TF9BhYrQ.js +1 -0
- package/.output/public/assets/native-builds_._buildId-2rPrtz9-.js +2 -0
- package/.output/public/assets/native-builds_._buildId-BqUOY1Az.js +1 -0
- package/.output/public/assets/native-builds_.devices-B9kLHngv.js +2 -0
- package/.output/public/assets/native-builds_.devices-COFYZcaA.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-DMooqgLf.js +1 -0
- package/.output/public/assets/routes-Z2IGj8MK.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-pdhJfnex.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 +1 -1
- 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-Bbf_lM0q.mjs +26 -0
- package/.output/server/_ssr/ChannelPicker-D6dQe9hV.mjs +251 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-CGHVL37b.mjs → ConsoleFeatureUnavailable-cLOJizHM.mjs} +8 -8
- package/.output/server/_ssr/{EventDetails-DdJyaBZ5.mjs → EventDetails-Bf9A0sIH.mjs} +9 -9
- package/.output/server/_ssr/FoldedRows-CBXPkthB.mjs +152 -0
- package/.output/server/_ssr/HashValueDisplay-CTRuGnTF.mjs +65 -0
- package/.output/server/_ssr/{InsightsPageHeader-KtHEf8Q0.mjs → InsightsPageHeader-CZYqpzbC.mjs} +13 -13
- package/.output/server/_ssr/IosInstall-Dnv68fhL.mjs +767 -0
- package/.output/server/_ssr/NativeBuildsNav-Dg43O2Cd.mjs +39 -0
- package/.output/server/_ssr/{NotFoundPage-DZB6K98c.mjs → NotFoundPage-C0hUVtGq.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-C22qEcwo.mjs} +13 -3
- package/.output/server/_ssr/QrCode-BbK966IU.mjs +50 -0
- package/.output/server/_ssr/RelativeTime-CdBbi7fL.mjs +242 -0
- package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-CaK9SkbN.mjs} +20 -4
- package/.output/server/_ssr/RowReason-Cg035uIk.mjs +59 -0
- package/.output/server/_ssr/SandboxBadge-Zta6e__x.mjs +85 -0
- package/.output/server/_ssr/TargetDisplay-DGqswOee.mjs +105 -0
- package/.output/server/_ssr/{alert-dialog-CDr-Nsoo.mjs → alert-dialog-DFz9lm_Y.mjs} +4 -4
- package/.output/server/_ssr/{api-DGWwi1WN.mjs → api-B2LCh6pv.mjs} +186 -39
- package/.output/server/_ssr/{api-keys-BBb3xSox.mjs → api-keys-BbtiHE85.mjs} +14 -11
- package/.output/server/_ssr/{api-keys-e_eDCNr2.mjs → api-keys-D3oOFnP9.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-BXiXUAm9.mjs → api-keys-rpc-CJIR67Ch.mjs} +4 -4
- package/.output/server/_ssr/{api-rpc-CLreF5Vr.mjs → api-rpc-Bf7S-MaH.mjs} +83 -35
- package/.output/server/_ssr/{auth-rpc-Bbf80tQK.mjs → auth-rpc-Dp-DCqh6.mjs} +5 -5
- package/.output/server/_ssr/{auth.server-DGwe3eds.mjs → auth.server-Cc0ZRXjk.mjs} +1876 -358
- package/.output/server/_ssr/{badge-BXk5c2yv.mjs → badge-YEmoI1eN.mjs} +4 -45
- package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
- package/.output/server/_ssr/card-D0a_6Dhh.mjs +49 -0
- package/.output/server/_ssr/{config.server-BIBSZpZE.mjs → config.server-CZRoGrFp.mjs} +4 -4
- package/.output/server/_ssr/{console-access-Cwha8dww.mjs → console-access-OPT4g-IS.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-tjmlaM_N.mjs} +4 -4
- package/.output/server/_ssr/{console-features-rpc-5WFiUFxb.mjs → console-features-rpc-SlXJxyZV.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-D6bc51Xq.mjs} +5 -4
- package/.output/server/_ssr/deviceProfileToken-xzDLfE0T.mjs +98 -0
- package/.output/server/_ssr/{dialog-BG-juN_g.mjs → dialog-ChHbf-yX.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-jogqtpGm.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-Df_Q9TWZ.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-CUjJqtlF.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-DDqsd1pL.mjs} +2 -2
- package/.output/server/_ssr/{input-group-rcPxMqYq.mjs → input-group-CVf7oJb7.mjs} +3 -3
- package/.output/server/_ssr/{insights-Din0R0k-.mjs → insights-CWe8WEnp.mjs} +93 -215
- package/.output/server/_ssr/{insights-BwEiSUUy.mjs → insights-DFSywrbh.mjs} +5 -5
- package/.output/server/_ssr/{insights-BDa6T_cj.mjs → insights-DIRlQAyF.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-BESfPrTq.mjs → insights-api-C9rxV0Tn.mjs} +5 -5
- 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-wIScA1Qn.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-BVt-dUJZ.mjs} +7 -7
- package/.output/server/_ssr/{insights-rpc-BdtBheBi.mjs → insights-rpc-BDQqwXjX.mjs} +4 -4
- package/.output/server/_ssr/{insights-search-BAaycSRp.mjs → insights-search-B56U9By9.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-C084r9Yl.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-rpc-DCkLNAlG.mjs → insights-usage-rpc-D6QC7xMU.mjs} +7 -7
- package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-5sgau7rB.mjs → insights_.distribution-BO1VAcAm.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-D4QQxZmG.mjs → insights_.distribution-CoTlEOe8.mjs} +16 -15
- package/.output/server/_ssr/{insights_.distribution-DoO2NDvS.mjs → insights_.distribution-DP1M7WJo.mjs} +2 -2
- package/.output/server/_ssr/{installations-C4MwFvp6.mjs → installations-BczGuyup.mjs} +13 -13
- package/.output/server/_ssr/{installations-CZZsFoXb.mjs → installations-CHXPyqGZ.mjs} +4 -4
- package/.output/server/_ssr/{installations-W6DXZ5Tp.mjs → installations-CY86CKgz.mjs} +2 -2
- package/.output/server/_ssr/ios-devices-rpc-B-9HHSKk.mjs +149 -0
- package/.output/server/_ssr/iosDeviceCookie-CZArbhzA.mjs +155 -0
- package/.output/server/_ssr/iosDeviceProfile-CxeXYxc-.mjs +176 -0
- package/.output/server/_ssr/iosDevices-Ckjp_S09.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-C2xGyB-t.mjs +273 -0
- package/.output/server/_ssr/native-builds-CKoFuBrT.mjs +698 -0
- package/.output/server/_ssr/{native-builds-BhBltXq2.mjs → native-builds-DGckAE3j.mjs} +3 -3
- package/.output/server/_ssr/native-builds_._buildId-BXfvqKmr.mjs +1204 -0
- package/.output/server/_ssr/{native-builds_._buildId-B5QgMg7D.mjs → native-builds_._buildId-EqbJ7R4A.mjs} +3 -3
- package/.output/server/_ssr/native-builds_.devices-BJ75om8d.mjs +10 -0
- package/.output/server/_ssr/native-builds_.devices-X6JpinwG.mjs +858 -0
- package/.output/server/_ssr/nativeBuildDownloadLink-BAfCV_k_.mjs +96 -0
- package/.output/server/_ssr/nativeBuildInstall-D2rK0m4j.mjs +256 -0
- package/.output/server/_ssr/nativeBuilds-B3LcuLs4.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-xKxB0Ir0.mjs} +9 -9
- package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-BNp2LKR5.mjs} +5 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-CLDa8DuR.mjs} +23 -11
- 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-ByjC_BCV.mjs} +23 -22
- package/.output/server/_ssr/{remote-config-Wjia3haX.mjs → remote-config-DmEXPobC.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-rpc-7Zvra2dm.mjs → remote-config-rpc-BNPLt44i.mjs} +5 -5
- package/.output/server/_ssr/{remote-config-D6YMPi4J.mjs → remote-config-w3s5hFj9.mjs} +2 -2
- package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
- package/.output/server/_ssr/{router-CLK13IPD.mjs → router-C8NZ0bVd.mjs} +136 -63
- package/.output/server/_ssr/{routes-h_nOUmOr.mjs → routes-B8Gmx46E.mjs} +49 -17
- package/.output/server/_ssr/{routes-CbdYptnV.mjs → routes-DvpKW5gf.mjs} +495 -476
- 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-DlahGhrf.mjs} +5 -5
- package/.output/server/_ssr/{select-BdzEzz-x.mjs → select-Csnyblf2.mjs} +12 -10
- package/.output/server/_ssr/{server-CddZkHk2.mjs → server-Yr7QLPLj.mjs} +7 -7
- package/.output/server/_ssr/{sidebar-DabmjV5E.mjs → sidebar-bKoOUlMN.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-C-HJ8oZV.mjs} +4 -4
- package/.output/server/_ssr/{table-DP978C4F.mjs → table-DSB_9Amh.mjs} +2 -2
- package/.output/server/_ssr/tabs-DRTBxZTO.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-MJAIGQWT.mjs +229 -0
- package/.output/server/index.mjs +493 -381
- package/lib/index.d.mts +9 -0
- package/package.json +7 -30
- package/src/components/AppSidebar.tsx +11 -2
- package/src/components/BundleIdDisplay.tsx +30 -3
- 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/ComparedBundlesChart.tsx +1 -0
- package/src/components/features/insights/FailureReports.tsx +3 -2
- package/src/components/features/insights/InsightsControls.tsx +38 -73
- package/src/components/features/insights/InsightsOverview.tsx +10 -2
- 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 +8 -3
- package/src/components/features/insights/RollbackButton.tsx +1 -1
- package/src/components/features/insights/UpdateFailures.tsx +36 -10
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +125 -63
- 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 +45 -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 +652 -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 +39 -4
- 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 +14 -9
- 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 +269 -20
- package/src/lib/release-adoption.ts +2 -0
- 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/releaseAdoption.ts +1 -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 +662 -578
- 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/BundleIdDisplay-CFz1sCQl.mjs +0 -13
- 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
package/src/lib/api.ts
CHANGED
|
@@ -2,7 +2,12 @@ import type {
|
|
|
2
2
|
ReleaseFilter,
|
|
3
3
|
ReleasePolicyPatch,
|
|
4
4
|
} from "@hot-updater/plugin-core";
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
useInfiniteQuery,
|
|
7
|
+
useMutation,
|
|
8
|
+
useQuery,
|
|
9
|
+
useQueryClient,
|
|
10
|
+
} from "@tanstack/react-query";
|
|
6
11
|
|
|
7
12
|
import {
|
|
8
13
|
createChannel as createChannelApi,
|
|
@@ -14,12 +19,17 @@ import {
|
|
|
14
19
|
getChannels,
|
|
15
20
|
getConfig,
|
|
16
21
|
getNativeBuildDetail,
|
|
22
|
+
getNativeBuildFold,
|
|
23
|
+
markNativeBuild as markNativeBuildApi,
|
|
24
|
+
createNativeBuildDownloadLink,
|
|
17
25
|
getNativeBuildDownloadUrl,
|
|
26
|
+
getNativeBuildInstallEligibility,
|
|
18
27
|
getNativeBuildPatches,
|
|
19
28
|
getNativeBuilds,
|
|
20
29
|
getRelease,
|
|
21
30
|
getReleaseCatalogDiagnostics,
|
|
22
31
|
getReleaseNativeBuild,
|
|
32
|
+
getReleaseFold,
|
|
23
33
|
getReleases,
|
|
24
34
|
preflightRelease as preflightReleaseApi,
|
|
25
35
|
promoteRelease as promoteReleaseApi,
|
|
@@ -35,6 +45,8 @@ export const queryKeys = {
|
|
|
35
45
|
all: releaseListQueryKey,
|
|
36
46
|
list: (filters?: ReleaseFilters) =>
|
|
37
47
|
[...releaseListQueryKey, filters ?? {}] as const,
|
|
48
|
+
fold: (filter: ReleaseFilter | undefined, fold: FoldBounds) =>
|
|
49
|
+
[...releaseListQueryKey, "fold", filter ?? {}, fold] as const,
|
|
38
50
|
},
|
|
39
51
|
release: (releaseId: string) => ["release", releaseId] as const,
|
|
40
52
|
releaseCatalog: (scopeKey: string) => ["release-catalog", scopeKey] as const,
|
|
@@ -48,12 +60,18 @@ export const queryKeys = {
|
|
|
48
60
|
nativeBuilds: {
|
|
49
61
|
all: ["native-builds"] as const,
|
|
50
62
|
list: (page: NativeBuildPage) => ["native-builds", page] as const,
|
|
63
|
+
fold: (channel: string | undefined, fold: FoldBounds) =>
|
|
64
|
+
["native-builds", "fold", channel ?? null, fold] as const,
|
|
51
65
|
},
|
|
52
66
|
nativeBuild: (id: string) => ["native-build", id] as const,
|
|
53
67
|
nativeBuildPatches: (minBundleId: string, page: KeysetPage) =>
|
|
54
68
|
["native-build-patches", minBundleId, page] as const,
|
|
55
69
|
nativeBuildDownloadUrl: (id: string) =>
|
|
56
70
|
["native-build-download-url", id] as const,
|
|
71
|
+
nativeBuildDownloadLink: (id: string) =>
|
|
72
|
+
["native-build-download-link", id] as const,
|
|
73
|
+
nativeBuildInstallEligibility: (id: string, udid: string | null) =>
|
|
74
|
+
["native-build-install-eligibility", id, udid] as const,
|
|
57
75
|
releaseNativeBuild: (release: ReleaseNativeBuildInput) =>
|
|
58
76
|
["release-native-build", release] as const,
|
|
59
77
|
};
|
|
@@ -78,11 +96,27 @@ export type ReleaseNativeBuildInput = {
|
|
|
78
96
|
};
|
|
79
97
|
|
|
80
98
|
/**
|
|
81
|
-
* How
|
|
82
|
-
*
|
|
83
|
-
*
|
|
99
|
+
* How long a storage download URL counts as fresh. Storage gives no lifetime
|
|
100
|
+
* with the URL, and adapters let it be configured down to minutes, so a
|
|
101
|
+
* person coming back to the page after this gets a new one.
|
|
102
|
+
*/
|
|
103
|
+
const DOWNLOAD_URL_STALE_MS = 60_000;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* How long a build page's signed link counts as fresh: far inside its 30 days,
|
|
107
|
+
* so a page left open never shows an expired one, and it costs one request
|
|
108
|
+
* a day.
|
|
84
109
|
*/
|
|
85
|
-
const
|
|
110
|
+
const DOWNLOAD_LINK_STALE_MS = 24 * 60 * 60 * 1000;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* How long an iPhone keeps a build's install details and Install link, which
|
|
114
|
+
* lasts an hour: past this, an open page reads and signs again.
|
|
115
|
+
*/
|
|
116
|
+
const INSTALL_ELIGIBILITY_STALE_MS = 30 * 60 * 1000;
|
|
117
|
+
|
|
118
|
+
/** Where a fold of a list's page lies: its bounds, as the page gave them. */
|
|
119
|
+
export type FoldBounds = { readonly from?: string; readonly to: string };
|
|
86
120
|
|
|
87
121
|
export type ReleaseFilters = {
|
|
88
122
|
/** One of the filter sets the release indexes serve; none lists every release. */
|
|
@@ -91,7 +125,8 @@ export type ReleaseFilters = {
|
|
|
91
125
|
beforeReleaseId?: string;
|
|
92
126
|
/** Releases newer than this id: the previous page. */
|
|
93
127
|
afterReleaseId?: string;
|
|
94
|
-
|
|
128
|
+
/** The selected release, which the page never folds. */
|
|
129
|
+
releaseId?: string;
|
|
95
130
|
};
|
|
96
131
|
|
|
97
132
|
// Query Hooks
|
|
@@ -111,11 +146,49 @@ export function useChannelsQuery() {
|
|
|
111
146
|
});
|
|
112
147
|
}
|
|
113
148
|
|
|
114
|
-
|
|
149
|
+
/**
|
|
150
|
+
* How long a list of releases or patches stays fresh, as the native build
|
|
151
|
+
* list does: a focus within it reads nothing. A change made in this Console
|
|
152
|
+
* invalidates it at once; a deploy from elsewhere shows within a minute.
|
|
153
|
+
*/
|
|
154
|
+
const LIST_STALE_MS = 60_000;
|
|
155
|
+
|
|
156
|
+
export function useReleasesQuery(
|
|
157
|
+
filters?: ReleaseFilters,
|
|
158
|
+
{ enabled = true }: { readonly enabled?: boolean } = {},
|
|
159
|
+
) {
|
|
115
160
|
return useQuery({
|
|
116
161
|
queryKey: queryKeys.releases.list(filters),
|
|
117
162
|
queryFn: () => getReleases({ data: filters }),
|
|
118
163
|
placeholderData: (previousData) => previousData,
|
|
164
|
+
staleTime: LIST_STALE_MS,
|
|
165
|
+
enabled,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* A fold's releases, a chunk at a time, read once it opens: the page that
|
|
171
|
+
* folded them reads nothing more when one opens.
|
|
172
|
+
*/
|
|
173
|
+
export function useReleaseFoldQuery(
|
|
174
|
+
filter: ReleaseFilter | undefined,
|
|
175
|
+
fold: FoldBounds,
|
|
176
|
+
enabled: boolean,
|
|
177
|
+
) {
|
|
178
|
+
return useInfiniteQuery({
|
|
179
|
+
queryKey: queryKeys.releases.fold(filter, fold),
|
|
180
|
+
queryFn: ({ pageParam }) =>
|
|
181
|
+
getReleaseFold({
|
|
182
|
+
data: {
|
|
183
|
+
...fold,
|
|
184
|
+
...(filter === undefined ? {} : { filter }),
|
|
185
|
+
...(pageParam === undefined ? {} : { after: pageParam }),
|
|
186
|
+
},
|
|
187
|
+
}),
|
|
188
|
+
initialPageParam: undefined as string | undefined,
|
|
189
|
+
getNextPageParam: (last) => last.next,
|
|
190
|
+
enabled,
|
|
191
|
+
staleTime: LIST_STALE_MS,
|
|
119
192
|
});
|
|
120
193
|
}
|
|
121
194
|
|
|
@@ -167,13 +240,40 @@ export function useBundleChildCountsQuery(bundleIds: string[]) {
|
|
|
167
240
|
});
|
|
168
241
|
}
|
|
169
242
|
|
|
243
|
+
/** A fold's native builds, a chunk at a time, read once it opens. */
|
|
244
|
+
export function useNativeBuildFoldQuery(
|
|
245
|
+
channel: string | undefined,
|
|
246
|
+
fold: FoldBounds,
|
|
247
|
+
enabled: boolean,
|
|
248
|
+
) {
|
|
249
|
+
return useInfiniteQuery({
|
|
250
|
+
queryKey: queryKeys.nativeBuilds.fold(channel, fold),
|
|
251
|
+
queryFn: ({ pageParam }) =>
|
|
252
|
+
getNativeBuildFold({
|
|
253
|
+
data: {
|
|
254
|
+
...fold,
|
|
255
|
+
...(channel === undefined ? {} : { channel }),
|
|
256
|
+
...(pageParam === undefined ? {} : { after: pageParam }),
|
|
257
|
+
},
|
|
258
|
+
}),
|
|
259
|
+
initialPageParam: undefined as string | undefined,
|
|
260
|
+
getNextPageParam: (last) => last.next,
|
|
261
|
+
enabled,
|
|
262
|
+
staleTime: 60_000,
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
|
|
170
266
|
/** One page of native builds, newest first, kept on screen while the next loads. */
|
|
171
|
-
export function useNativeBuildsQuery(
|
|
267
|
+
export function useNativeBuildsQuery(
|
|
268
|
+
page: NativeBuildPage,
|
|
269
|
+
{ enabled = true }: { readonly enabled?: boolean } = {},
|
|
270
|
+
) {
|
|
172
271
|
return useQuery({
|
|
173
272
|
queryKey: queryKeys.nativeBuilds.list(page),
|
|
174
273
|
queryFn: () => getNativeBuilds({ data: page }),
|
|
175
274
|
placeholderData: (previousData) => previousData,
|
|
176
275
|
staleTime: 60_000,
|
|
276
|
+
enabled,
|
|
177
277
|
});
|
|
178
278
|
}
|
|
179
279
|
|
|
@@ -204,6 +304,7 @@ export function useNativeBuildPatchesQuery(
|
|
|
204
304
|
queryFn: () => getNativeBuildPatches({ data: { minBundleId, ...page } }),
|
|
205
305
|
enabled: enabled && minBundleId.length > 0,
|
|
206
306
|
placeholderData: (previousData) => previousData,
|
|
307
|
+
staleTime: LIST_STALE_MS,
|
|
207
308
|
});
|
|
208
309
|
}
|
|
209
310
|
|
|
@@ -230,18 +331,48 @@ export function useReleaseNativeBuildQuery(
|
|
|
230
331
|
}
|
|
231
332
|
|
|
232
333
|
/**
|
|
233
|
-
* The
|
|
234
|
-
*
|
|
334
|
+
* The signed link of a build's page, which its QR code, download button, and
|
|
335
|
+
* copyable link all use: one request when the page opens.
|
|
336
|
+
*/
|
|
337
|
+
export function useNativeBuildDownloadLinkQuery(id: string) {
|
|
338
|
+
return useQuery({
|
|
339
|
+
queryKey: queryKeys.nativeBuildDownloadLink(id),
|
|
340
|
+
queryFn: () => createNativeBuildDownloadLink({ data: { id } }),
|
|
341
|
+
staleTime: DOWNLOAD_LINK_STALE_MS,
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* What this iPhone can do with a build, and the link Install opens: requested
|
|
347
|
+
* only by an iPhone on the page of an IPA, and again before that link, which
|
|
348
|
+
* lasts about an hour, runs out.
|
|
349
|
+
*/
|
|
350
|
+
export function useNativeBuildInstallEligibilityQuery(
|
|
351
|
+
id: string,
|
|
352
|
+
udid: string | null,
|
|
353
|
+
) {
|
|
354
|
+
return useQuery({
|
|
355
|
+
queryKey: queryKeys.nativeBuildInstallEligibility(id, udid),
|
|
356
|
+
queryFn: () =>
|
|
357
|
+
getNativeBuildInstallEligibility({
|
|
358
|
+
data: { id, ...(udid === null ? {} : { udid }) },
|
|
359
|
+
}),
|
|
360
|
+
staleTime: INSTALL_ELIGIBILITY_STALE_MS,
|
|
361
|
+
// A page left open never holds an expired link. It reads nothing while the
|
|
362
|
+
// tab is hidden, and coming back reads again once this has passed.
|
|
363
|
+
refetchInterval: INSTALL_ELIGIBILITY_STALE_MS,
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* The storage URL a phone downloads a build from when the Console can't sign
|
|
369
|
+
* a link: read once, and again only when someone comes back to the page.
|
|
235
370
|
*/
|
|
236
|
-
export function useNativeBuildDownloadUrlQuery(id: string
|
|
371
|
+
export function useNativeBuildDownloadUrlQuery(id: string) {
|
|
237
372
|
return useQuery({
|
|
238
373
|
queryKey: queryKeys.nativeBuildDownloadUrl(id),
|
|
239
374
|
queryFn: () => getNativeBuildDownloadUrl({ data: { id } }),
|
|
240
|
-
|
|
241
|
-
staleTime: DOWNLOAD_URL_REFRESH_MS,
|
|
242
|
-
// A storage without download URLs has none to refresh.
|
|
243
|
-
refetchInterval: (query) =>
|
|
244
|
-
query.state.data?.url === null ? false : DOWNLOAD_URL_REFRESH_MS,
|
|
375
|
+
staleTime: DOWNLOAD_URL_STALE_MS,
|
|
245
376
|
});
|
|
246
377
|
}
|
|
247
378
|
|
|
@@ -270,6 +401,29 @@ export function useDeleteChannelMutation() {
|
|
|
270
401
|
});
|
|
271
402
|
}
|
|
272
403
|
|
|
404
|
+
/**
|
|
405
|
+
* Marks a build as its scope's store build, or clears it. The mark it replaced
|
|
406
|
+
* is on another build's page, in the list and in a release sheet's link, so
|
|
407
|
+
* they read again.
|
|
408
|
+
*/
|
|
409
|
+
export function useMarkNativeBuildMutation() {
|
|
410
|
+
const queryClient = useQueryClient();
|
|
411
|
+
return useMutation({
|
|
412
|
+
mutationFn: (input: { id: string; storeBuild: boolean }) =>
|
|
413
|
+
markNativeBuildApi({ data: input }),
|
|
414
|
+
onSettled: async () => {
|
|
415
|
+
await Promise.all([
|
|
416
|
+
queryClient.invalidateQueries({ queryKey: ["native-build"] }),
|
|
417
|
+
queryClient.invalidateQueries({
|
|
418
|
+
queryKey: queryKeys.nativeBuilds.all,
|
|
419
|
+
}),
|
|
420
|
+
// A release sheet links the build new deploys patch from.
|
|
421
|
+
queryClient.invalidateQueries({ queryKey: ["release-native-build"] }),
|
|
422
|
+
]);
|
|
423
|
+
},
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
|
|
273
427
|
export function useUpdateReleaseMutation() {
|
|
274
428
|
const queryClient = useQueryClient();
|
|
275
429
|
return useMutation({
|
|
@@ -320,6 +474,7 @@ export function useDeleteReleaseMutation() {
|
|
|
320
474
|
queryClient.invalidateQueries({
|
|
321
475
|
queryKey: queryKeys.bundleChildren.all,
|
|
322
476
|
}),
|
|
477
|
+
queryClient.invalidateQueries({ queryKey: ["native-build-patches"] }),
|
|
323
478
|
]);
|
|
324
479
|
},
|
|
325
480
|
});
|
package/src/lib/constants.ts
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
1
|
export const DEFAULT_PAGE_LIMIT = 20;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The channel the SDK and the CLI use when none is chosen. Insights, Bundles,
|
|
5
|
+
* and Native builds open on it when the URL names no channel.
|
|
6
|
+
*/
|
|
7
|
+
export const DEFAULT_CHANNEL = "production";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The URL's `channels` value that lists every channel. It has a key of its
|
|
11
|
+
* own because any name, `all` included, can be a channel's.
|
|
12
|
+
*/
|
|
13
|
+
export const ALL_CHANNELS = "all";
|
|
14
|
+
|
|
15
|
+
/** The channel filter's choice that lists every channel, on every page. */
|
|
16
|
+
export const ALL_CHANNELS_LABEL = "All channels";
|
|
17
|
+
|
|
18
|
+
export const CONSOLE_GIT_URL_GUIDE_URL =
|
|
19
|
+
"https://hot-updater.dev/docs/guides/console#git-url";
|
|
@@ -17,9 +17,6 @@ const readHealthChart = (value: unknown): HealthChart | undefined =>
|
|
|
17
17
|
const readUsageWindow = (value: unknown): UsageWindow | undefined =>
|
|
18
18
|
value === "12m" ? value : readWindow(value);
|
|
19
19
|
|
|
20
|
-
/** The channel Insights reads when none is chosen: the SDK's and the CLI's default. */
|
|
21
|
-
export const DEFAULT_INSIGHTS_CHANNEL = "production";
|
|
22
|
-
|
|
23
20
|
export type InsightsSearch = {
|
|
24
21
|
/** Every report's platform; both when omitted. */
|
|
25
22
|
platform?: AppUsageScope["platform"];
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import type { IosDeviceRow, IosDeviceStatus } from "@hot-updater/plugin-core";
|
|
2
|
+
import {
|
|
3
|
+
keepPreviousData,
|
|
4
|
+
useMutation,
|
|
5
|
+
useQuery,
|
|
6
|
+
useQueryClient,
|
|
7
|
+
} from "@tanstack/react-query";
|
|
8
|
+
import { useEffect } from "react";
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
approveIosDevice,
|
|
12
|
+
createIosDeviceProfileLink,
|
|
13
|
+
getIosDevice,
|
|
14
|
+
getIosDevices,
|
|
15
|
+
getNativeBuildIpaDevices,
|
|
16
|
+
removeIosDevice,
|
|
17
|
+
renameIosDevice,
|
|
18
|
+
} from "./ios-devices-rpc";
|
|
19
|
+
import { releasePendingReceipt } from "./native-builds";
|
|
20
|
+
|
|
21
|
+
export const iosDeviceKeys = {
|
|
22
|
+
all: ["ios-devices"] as const,
|
|
23
|
+
list: (page: IosDevicesPage) =>
|
|
24
|
+
[
|
|
25
|
+
"ios-devices",
|
|
26
|
+
page.status ?? "all",
|
|
27
|
+
{ before: page.before, after: page.after },
|
|
28
|
+
] as const,
|
|
29
|
+
device: (udid: string) => ["ios-devices", "device", udid] as const,
|
|
30
|
+
// What the cookie names doesn't depend on the ID this page kept: one read
|
|
31
|
+
// serves the page whether it knew its iPhone or learns it from the answer.
|
|
32
|
+
kept: (receipt: string | null) =>
|
|
33
|
+
["ios-devices", "kept", receipt ?? ""] as const,
|
|
34
|
+
ipa: (buildId: string) => ["native-build-ipa-devices", buildId] as const,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* How long a profile link is used before the page signs a new one: its
|
|
39
|
+
* capability works 15 minutes, and a tester may leave the page open.
|
|
40
|
+
*/
|
|
41
|
+
export const PROFILE_LINK_REFRESH_MS = 10 * 60 * 1000;
|
|
42
|
+
|
|
43
|
+
/** A page of the iOS devices page: one status or all, and a keyset cursor. */
|
|
44
|
+
export interface IosDevicesPage {
|
|
45
|
+
readonly status?: IosDeviceStatus;
|
|
46
|
+
/** Devices older than this ID: the next page. */
|
|
47
|
+
readonly before?: string;
|
|
48
|
+
/** Devices newer than this ID: the previous page. */
|
|
49
|
+
readonly after?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* One page of the registry, one status or all, kept on screen while it
|
|
54
|
+
* reloads, so a filter or page change never blanks the table. It reads
|
|
55
|
+
* again on focus: an approver sees a new request without reloading.
|
|
56
|
+
*/
|
|
57
|
+
export function useIosDevicesQuery(page: IosDevicesPage) {
|
|
58
|
+
return useQuery({
|
|
59
|
+
queryKey: iosDeviceKeys.list(page),
|
|
60
|
+
queryFn: () => getIosDevices({ data: page }),
|
|
61
|
+
placeholderData: keepPreviousData,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* This iPhone's registry row, by the UDID its profile reported, or null once
|
|
67
|
+
* it's gone; nothing is read without a UDID. Under `iosDeviceKeys.all`, so
|
|
68
|
+
* an approval or a removal reads it again.
|
|
69
|
+
*/
|
|
70
|
+
export function useIosDeviceQuery(udid: string | null) {
|
|
71
|
+
return useQuery({
|
|
72
|
+
queryKey: iosDeviceKeys.device(udid ?? ""),
|
|
73
|
+
queryFn: () => getIosDevice({ data: { udid: udid! } }),
|
|
74
|
+
enabled: udid !== null,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* A signed link to this iPhone's profile, signed again before it expires:
|
|
80
|
+
* the link stays a plain `<a href>`, so nothing waits on a request when it is
|
|
81
|
+
* tapped. The token signs its input, the name to register or the build to
|
|
82
|
+
* return to, so it has no data while another input's token loads: keeping
|
|
83
|
+
* the previous one would register the old name.
|
|
84
|
+
*/
|
|
85
|
+
export function useIosDeviceProfileLinkQuery(
|
|
86
|
+
input:
|
|
87
|
+
| { readonly mode: "register"; readonly name: string }
|
|
88
|
+
| { readonly mode: "identify"; readonly buildId: string },
|
|
89
|
+
enabled = true,
|
|
90
|
+
) {
|
|
91
|
+
return useQuery({
|
|
92
|
+
queryKey: ["ios-device-profile-link", input] as const,
|
|
93
|
+
queryFn: () => createIosDeviceProfileLink({ data: input }),
|
|
94
|
+
enabled,
|
|
95
|
+
staleTime: PROFILE_LINK_REFRESH_MS,
|
|
96
|
+
refetchInterval: PROFILE_LINK_REFRESH_MS,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** The devices an IPA lists, by registry name where it has one. */
|
|
101
|
+
export function useNativeBuildIpaDevicesQuery(buildId: string) {
|
|
102
|
+
return useQuery({
|
|
103
|
+
queryKey: iosDeviceKeys.ipa(buildId),
|
|
104
|
+
queryFn: () => getNativeBuildIpaDevices({ data: { id: buildId } }),
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const useInvalidatingMutation = <TInput, TResult>(
|
|
109
|
+
mutationFn: (input: TInput) => Promise<TResult>,
|
|
110
|
+
) => {
|
|
111
|
+
const queryClient = useQueryClient();
|
|
112
|
+
return useMutation({
|
|
113
|
+
mutationFn,
|
|
114
|
+
onSettled: async () => {
|
|
115
|
+
await Promise.all([
|
|
116
|
+
queryClient.invalidateQueries({ queryKey: iosDeviceKeys.all }),
|
|
117
|
+
// A build page reads the registry row of a device it lacks.
|
|
118
|
+
queryClient.invalidateQueries({
|
|
119
|
+
queryKey: ["native-build-install-eligibility"],
|
|
120
|
+
}),
|
|
121
|
+
]);
|
|
122
|
+
},
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export const useApproveIosDeviceMutation = () =>
|
|
127
|
+
useInvalidatingMutation((input: { id: string; name: string }) =>
|
|
128
|
+
approveIosDevice({ data: input }),
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
export const useRenameIosDeviceMutation = () =>
|
|
132
|
+
useInvalidatingMutation((input: { id: string; name: string }) =>
|
|
133
|
+
renameIosDevice({ data: input }),
|
|
134
|
+
);
|
|
135
|
+
|
|
136
|
+
export const useRemoveIosDeviceMutation = () =>
|
|
137
|
+
useInvalidatingMutation((input: { udid: string }) =>
|
|
138
|
+
removeIosDevice({ data: input }),
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
/** The routes this iPhone's kept proof is sent to, under the Console's path. */
|
|
142
|
+
const deviceRoute = (consolePath: string, name: "receipt" | "request") =>
|
|
143
|
+
`${consolePath}/_hot-updater/devices/${name}`;
|
|
144
|
+
|
|
145
|
+
const sendDeviceRoute = async <T>(
|
|
146
|
+
url: string,
|
|
147
|
+
init: RequestInit & { readonly json?: unknown } = {},
|
|
148
|
+
): Promise<T> => {
|
|
149
|
+
const { json, ...rest } = init;
|
|
150
|
+
const response = await fetch(url, {
|
|
151
|
+
credentials: "same-origin",
|
|
152
|
+
...rest,
|
|
153
|
+
...(json === undefined
|
|
154
|
+
? {}
|
|
155
|
+
: {
|
|
156
|
+
headers: { "content-type": "application/json" },
|
|
157
|
+
body: JSON.stringify(json),
|
|
158
|
+
}),
|
|
159
|
+
});
|
|
160
|
+
const body = (await response.json().catch(() => null)) as
|
|
161
|
+
| (T & { readonly error?: string })
|
|
162
|
+
| null;
|
|
163
|
+
if (!response.ok || body === null) {
|
|
164
|
+
throw new Error(body?.error ?? `Request failed (${response.status}).`);
|
|
165
|
+
}
|
|
166
|
+
return body;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
/** Told when a trade sets the cookie, so a cached "no proof" is read again. */
|
|
170
|
+
const KEPT_EVENT = "hot-updater-ios-device-kept";
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The same news for this Safari's other tabs, which share the cookie: a
|
|
174
|
+
* timestamp only, written where their `storage` event hears it.
|
|
175
|
+
*/
|
|
176
|
+
const KEPT_PING_KEY = "hot-updater-ios-device-kept";
|
|
177
|
+
|
|
178
|
+
/** Trades in flight or done, one per receipt: a failed one is forgotten. */
|
|
179
|
+
const trades = new Map<string, Promise<unknown>>();
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Trades the profile answer's fresh receipt for this Safari's HttpOnly cookie,
|
|
183
|
+
* wherever the answer lands: whatever the build page or the registry says, the
|
|
184
|
+
* proof is kept. One request per receipt while it is in flight or once it has
|
|
185
|
+
* succeeded; a failed one rejects and is forgotten, so the next refresh,
|
|
186
|
+
* refocus, or reload trades it again while it is still valid. Once traded,
|
|
187
|
+
* the receipt leaves this tab's session storage.
|
|
188
|
+
*/
|
|
189
|
+
export const keepIosDeviceReceipt = (consolePath: string, receipt: string) => {
|
|
190
|
+
let trade = trades.get(receipt);
|
|
191
|
+
if (trade === undefined) {
|
|
192
|
+
trade = sendDeviceRoute(deviceRoute(consolePath, "receipt"), {
|
|
193
|
+
method: "POST",
|
|
194
|
+
json: { receipt },
|
|
195
|
+
}).then(
|
|
196
|
+
(answer) => {
|
|
197
|
+
releasePendingReceipt(receipt);
|
|
198
|
+
window.dispatchEvent(new Event(KEPT_EVENT));
|
|
199
|
+
try {
|
|
200
|
+
window.localStorage.setItem(KEPT_PING_KEY, String(Date.now()));
|
|
201
|
+
} catch {
|
|
202
|
+
// A browser that keeps nothing has no other tab to tell.
|
|
203
|
+
}
|
|
204
|
+
return answer;
|
|
205
|
+
},
|
|
206
|
+
(error: unknown) => {
|
|
207
|
+
trades.delete(receipt);
|
|
208
|
+
throw error;
|
|
209
|
+
},
|
|
210
|
+
);
|
|
211
|
+
trades.set(receipt, trade);
|
|
212
|
+
}
|
|
213
|
+
return trade;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The UDID this Safari has proved for the signed-in person, from its HttpOnly
|
|
218
|
+
* cookie, or null, read after the page's fresh receipt, if any, is traded for
|
|
219
|
+
* it. Read on an iPhone only.
|
|
220
|
+
*/
|
|
221
|
+
export function useKeptIosDeviceQuery(
|
|
222
|
+
consolePath: string,
|
|
223
|
+
receipt: string | null,
|
|
224
|
+
enabled: boolean,
|
|
225
|
+
) {
|
|
226
|
+
// A trade on this page, or in another tab, sets the cookie the receiptless
|
|
227
|
+
// read may have found empty: that read, cached for good otherwise, is read
|
|
228
|
+
// again.
|
|
229
|
+
const queryClient = useQueryClient();
|
|
230
|
+
useEffect(() => {
|
|
231
|
+
const onKept = () =>
|
|
232
|
+
void queryClient.invalidateQueries({
|
|
233
|
+
queryKey: iosDeviceKeys.kept(null),
|
|
234
|
+
exact: true,
|
|
235
|
+
});
|
|
236
|
+
const onStorage = (event: StorageEvent) => {
|
|
237
|
+
if (event.key === KEPT_PING_KEY) onKept();
|
|
238
|
+
};
|
|
239
|
+
window.addEventListener(KEPT_EVENT, onKept);
|
|
240
|
+
window.addEventListener("storage", onStorage);
|
|
241
|
+
return () => {
|
|
242
|
+
window.removeEventListener(KEPT_EVENT, onKept);
|
|
243
|
+
window.removeEventListener("storage", onStorage);
|
|
244
|
+
};
|
|
245
|
+
}, [queryClient]);
|
|
246
|
+
return useQuery({
|
|
247
|
+
queryKey: iosDeviceKeys.kept(receipt),
|
|
248
|
+
queryFn: async () => {
|
|
249
|
+
let failed: unknown = null;
|
|
250
|
+
if (receipt !== null) {
|
|
251
|
+
await keepIosDeviceReceipt(consolePath, receipt).catch((error) => {
|
|
252
|
+
failed = error;
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
const kept = await sendDeviceRoute<{ udid: string | null }>(
|
|
256
|
+
deviceRoute(consolePath, "receipt"),
|
|
257
|
+
);
|
|
258
|
+
// A trade that failed with no earlier proof leaves the read failed, so
|
|
259
|
+
// the next refresh or refocus trades the receipt again; no timer does.
|
|
260
|
+
if (failed !== null && kept.udid === null) throw failed;
|
|
261
|
+
return kept;
|
|
262
|
+
},
|
|
263
|
+
enabled,
|
|
264
|
+
retry: false,
|
|
265
|
+
staleTime: Number.POSITIVE_INFINITY,
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Forgets this Safari's proof of its iPhone before sign-out, so the next
|
|
271
|
+
* person on this Safari starts from the profile. Only an iPhone or iPad holds
|
|
272
|
+
* one; a failure leaves the cookie, which the next email ignores anyway.
|
|
273
|
+
*/
|
|
274
|
+
export const forgetKeptIosDevice = async (consolePath: string) => {
|
|
275
|
+
await sendDeviceRoute(deviceRoute(consolePath, "receipt"), {
|
|
276
|
+
method: "DELETE",
|
|
277
|
+
}).catch(() => undefined);
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Requests this iPhone for the signed-in person, under `name`: the UDID comes
|
|
282
|
+
* from the profile's fresh receipt when the page has one, else from the
|
|
283
|
+
* cookie that proved it before.
|
|
284
|
+
*/
|
|
285
|
+
export const useRequestThisIphoneMutation = (consolePath: string) =>
|
|
286
|
+
useInvalidatingMutation(
|
|
287
|
+
(input: { readonly name: string; readonly receipt: string | null }) =>
|
|
288
|
+
sendDeviceRoute<{ device: IosDeviceRow; created: boolean }>(
|
|
289
|
+
deviceRoute(consolePath, "request"),
|
|
290
|
+
{
|
|
291
|
+
method: "POST",
|
|
292
|
+
json:
|
|
293
|
+
input.receipt === null
|
|
294
|
+
? { name: input.name }
|
|
295
|
+
: { name: input.name, receipt: input.receipt },
|
|
296
|
+
},
|
|
297
|
+
),
|
|
298
|
+
);
|
|
299
|
+
|
|
300
|
+
/** Whether the cookie's UDID is this iPhone's, whatever its case. */
|
|
301
|
+
export const keptIsThisIphone = (
|
|
302
|
+
kept: string | null | undefined,
|
|
303
|
+
udid: string | null,
|
|
304
|
+
) => kept != null && udid !== null && kept.toLowerCase() === udid.toLowerCase();
|