@hot-updater/console 1.2.0-rc.34 → 1.2.0-rc.36

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.
Files changed (213) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/-native-builds-search-DNupPw5R.js +1 -0
  3. package/.output/public/assets/{CompositeItem-CyQoQkYs.js → CompositeItem-CcgQyrSU.js} +1 -1
  4. package/.output/public/assets/{ConsoleFeatureUnavailable-C0iDIboF.js → ConsoleFeatureUnavailable-P2up1IkX.js} +1 -1
  5. package/.output/public/assets/{EventDetails-DFWS-HcW.js → EventDetails-BYZUOYsT.js} +1 -1
  6. package/.output/public/assets/{HashValueDisplay-DKziWjEg.js → HashValueDisplay-N89T2mVj.js} +1 -1
  7. package/.output/public/assets/{InsightsPageHeader-BATHTZWn.js → InsightsPageHeader-DhOT-Tmn.js} +1 -1
  8. package/.output/public/assets/IosInstall-BkjuGzx0.js +1 -0
  9. package/.output/public/assets/{NativeBuildsNav-D3FIlSu0.js → NativeBuildsNav-CivF1UpI.js} +1 -1
  10. package/.output/public/assets/{RelativeTime-CP7nosYx.js → RelativeTime-CAIee8Fr.js} +1 -1
  11. package/.output/public/assets/RolloutPercentageBadge-BmtfOGOm.js +1 -0
  12. package/.output/public/assets/{RowReason-D7TZ2xwW.js → RowReason-Cuf4SbKm.js} +1 -1
  13. package/.output/public/assets/{SandboxBadge-BPf2uve4.js → SandboxBadge-Cn1mlvQg.js} +1 -1
  14. package/.output/public/assets/{TargetDisplay-DzSkf5yP.js → TargetDisplay-DeKn2_3n.js} +1 -1
  15. package/.output/public/assets/api-USY_IWMu.js +1 -0
  16. package/.output/public/assets/api-keys-Bjv4olzj.js +1 -0
  17. package/.output/public/assets/api-keys-CrrBMw2x.js +1 -0
  18. package/.output/public/assets/{uuidv7-DgXZ1zRR.js → constants-CNrAvpew.js} +1 -1
  19. package/.output/public/assets/dist-BDfiL2Qz.js +1 -0
  20. package/.output/public/assets/{index-CccnEzaa.js → index-DHcRzryp.js} +3 -3
  21. package/.output/public/assets/insights-9CSkLhLx.js +2 -0
  22. package/.output/public/assets/{insights-Bm4Kua5R.js → insights-BGMOFCgn.js} +2 -2
  23. package/.output/public/assets/insights-QaHXTgmd.js +1 -0
  24. package/.output/public/assets/insights-search-Bax3nNBz.js +1 -0
  25. package/.output/public/assets/{insights-usage-rpc-DdmD1Nuy.js → insights-usage-rpc-BG7EOn2n.js} +1 -1
  26. package/.output/public/assets/insights_.distribution-BfEb7XIX.js +1 -0
  27. package/.output/public/assets/insights_.distribution-Ce5y7hIU.js +2 -0
  28. package/.output/public/assets/insights_.distribution-gCONJgiU.js +1 -0
  29. package/.output/public/assets/installations-BKAdFmTM.js +1 -0
  30. package/.output/public/assets/{installations-DYT2mSjX.js → installations-BfbwP-Ub.js} +2 -2
  31. package/.output/public/assets/installations-D5bvOxlY.js +1 -0
  32. package/.output/public/assets/native-builds-CrRx3_wN.js +1 -0
  33. package/.output/public/assets/native-builds-FBNFjP4d.js +1 -0
  34. package/.output/public/assets/native-builds-FpedinKi.js +2 -0
  35. package/.output/public/assets/native-builds_._buildId-D0Y_qtSu.js +2 -0
  36. package/.output/public/assets/native-builds_._buildId-UU2Ja88v.js +1 -0
  37. package/.output/public/assets/native-builds_.devices-B0GrWGwS.js +2 -0
  38. package/.output/public/assets/native-builds_.devices-DossOQcr.js +1 -0
  39. package/.output/public/assets/remote-config-9h5s5yCy.js +1 -0
  40. package/.output/public/assets/{remote-config-D1EMK2er.js → remote-config-BbLyVNLo.js} +1 -1
  41. package/.output/public/assets/remote-config-CqFs9CSU.js +6 -0
  42. package/.output/public/assets/routes-BV7VD8Tr.js +1 -0
  43. package/.output/public/assets/routes-COOKrhya.js +2 -0
  44. package/.output/server/{__23tanstack-start-server-fn-resolver-CUEijItf.mjs → __23tanstack-start-server-fn-resolver-DEsK7hJ-.mjs} +58 -58
  45. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  46. package/.output/server/_libs/_.mjs +1 -1
  47. package/.output/server/_libs/lucide-react.mjs +13 -1
  48. package/.output/server/_ssr/{-native-builds-search-OJ8XmaBa.mjs → -native-builds-search-woFrbAdI.mjs} +19 -7
  49. package/.output/server/_ssr/{BundleIdDisplay-C2Yhau3H.mjs → BundleIdDisplay-BLXpHocZ.mjs} +2 -2
  50. package/.output/server/_ssr/{ChannelBadge-BTUSgvbr.mjs → ChannelBadge-CWIc9tmb.mjs} +3 -3
  51. package/.output/server/_ssr/{ConsoleFeatureUnavailable-BDSJSs7U.mjs → ConsoleFeatureUnavailable-B4w26Z-l.mjs} +7 -7
  52. package/.output/server/_ssr/{EventDetails-wqpPsSDt.mjs → EventDetails-CnAKWnvZ.mjs} +8 -8
  53. package/.output/server/_ssr/{HashValueDisplay-yosN9R32.mjs → HashValueDisplay-DbMfscEm.mjs} +2 -2
  54. package/.output/server/_ssr/{InsightsPageHeader-DUvHESff.mjs → InsightsPageHeader-CGB3vsS1.mjs} +8 -8
  55. package/.output/server/_ssr/{IosInstall-DAZxDeBB.mjs → IosInstall-D9zJGmaC.mjs} +9 -9
  56. package/.output/server/_ssr/{NativeBuildsNav-JvQo5YkG.mjs → NativeBuildsNav-CEKiVJZ2.mjs} +3 -3
  57. package/.output/server/_ssr/{NotFoundPage-Z48ip8aB.mjs → NotFoundPage-DZ6L0Lix.mjs} +2 -2
  58. package/.output/server/_ssr/{PlatformIcon-X18AN8Yp.mjs → PlatformIcon-C22qEcwo.mjs} +1 -1
  59. package/.output/server/_ssr/{QrCode-NrGOfAPX.mjs → QrCode-Be-7de3s.mjs} +2 -2
  60. package/.output/server/_ssr/{RelativeTime-BiGH0j0S.mjs → RelativeTime-B2N63vu0.mjs} +4 -4
  61. package/.output/server/_ssr/{RolloutPercentageBadge-O0jbSRuI.mjs → RolloutPercentageBadge-DgyHwvnj.mjs} +3 -3
  62. package/.output/server/_ssr/{RowReason-DneEz--P.mjs → RowReason-DOCMSWpB.mjs} +5 -5
  63. package/.output/server/_ssr/{SandboxBadge-ujAuQ6FN.mjs → SandboxBadge-DVOkxy3O.mjs} +2 -2
  64. package/.output/server/_ssr/{TargetDisplay-DFV5VpPn.mjs → TargetDisplay-DcY84JrG.mjs} +3 -3
  65. package/.output/server/_ssr/{alert-dialog-B2IG3q93.mjs → alert-dialog-Bj6jW5-Q.mjs} +1 -1
  66. package/.output/server/_ssr/{api-CHpFJ_c4.mjs → api-BYa88in2.mjs} +13 -10
  67. package/.output/server/_ssr/{api-keys-ZufcGzhb.mjs → api-keys-C3gWr3Qj.mjs} +10 -10
  68. package/.output/server/_ssr/{api-keys-DpSj11mK.mjs → api-keys-CIB4jF6t.mjs} +2 -2
  69. package/.output/server/_ssr/{api-keys-rpc-N3V7gkvv.mjs → api-keys-rpc-CtMsJx1w.mjs} +3 -3
  70. package/.output/server/_ssr/{api-rpc-DXvqIbGs.mjs → api-rpc-sxif8D9h.mjs} +16 -16
  71. package/.output/server/_ssr/{auth-rpc-Cx72ajwL.mjs → auth-rpc-DYXg2d-s.mjs} +4 -4
  72. package/.output/server/_ssr/{auth.server-DT4SuI6u.mjs → auth.server-BCtkdsmT.mjs} +25 -8
  73. package/.output/server/_ssr/{badge-DNrlMwwO.mjs → badge-DVmF0rbO.mjs} +1 -1
  74. package/.output/server/_ssr/{bundleActivity-a-pEDiqu.mjs → bundleActivity-CjE9yslP.mjs} +1 -1
  75. package/.output/server/_ssr/{card-BSFwWT9T.mjs → card-C7gkmtDR.mjs} +1 -1
  76. package/.output/server/_ssr/{config.server-BEg-Ln3t.mjs → config.server-D5yjc-Hm.mjs} +3 -3
  77. package/.output/server/_ssr/{console-access-CPYdc4mK.mjs → console-access-MNaEuKXy.mjs} +2 -2
  78. package/.output/server/_ssr/{console-features-api-D_KFX0JV.mjs → console-features-api-B8PfM6k1.mjs} +5 -5
  79. package/.output/server/_ssr/{console-features-rpc-CSogovr5.mjs → console-features-rpc-Dl1bAdxy.mjs} +3 -3
  80. package/.output/server/_ssr/constants-B8b1IliD.mjs +8 -0
  81. package/.output/server/_ssr/{deviceProfileToken-xzDLfE0T.mjs → deviceProfileToken-Eeltr-o0.mjs} +1 -1
  82. package/.output/server/_ssr/{dialog-BE-0BoPu.mjs → dialog-COs-Oov4.mjs} +1 -1
  83. package/.output/server/_ssr/{downloadBundle-C1KOnpiF.mjs → downloadBundle-DLkb7A7E.mjs} +1 -1
  84. package/.output/server/_ssr/{empty-DVeNY_6z.mjs → empty-BCi8eUlp.mjs} +2 -2
  85. package/.output/server/_ssr/{failureReports-BVufgM3l.mjs → failureReports-Bd7CaadE.mjs} +3 -3
  86. package/.output/server/_ssr/{field-C_NBjv_7.mjs → field-D7na2Ch2.mjs} +2 -2
  87. package/.output/server/_ssr/{foldedPage-CUjJqtlF.mjs → foldedPage-DrxWt5XS.mjs} +1 -1
  88. package/.output/server/_ssr/{getBundleChildren-CnOf4Frp.mjs → getBundleChildren-DA9zbUBD.mjs} +1 -1
  89. package/.output/server/_ssr/{input-group-CGiryg7I.mjs → input-group-B64ZFSYp.mjs} +1 -1
  90. package/.output/server/_ssr/{insights-hDsGL-yq.mjs → insights-B9kdn-hT.mjs} +29 -28
  91. package/.output/server/_ssr/{insights-DNNsxJlD.mjs → insights-DaaYBkr3.mjs} +5 -5
  92. package/.output/server/_ssr/{insights-ECnoz9jp.mjs → insights-Do0mUArh.mjs} +2 -2
  93. package/.output/server/_ssr/{insights-api-DvbUK1vp.mjs → insights-api-C6hqqqUk.mjs} +5 -5
  94. package/.output/server/_ssr/{insights-errors-DwUaDs0Z.mjs → insights-errors-BrToSfI9.mjs} +2 -2
  95. package/.output/server/_ssr/{insights-failures-DGO2_3Vx.mjs → insights-failures-lmcxwKb3.mjs} +2 -2
  96. package/.output/server/_ssr/{insights-failures-rpc-DCu8iR4V.mjs → insights-failures-rpc-k6uyvIeh.mjs} +8 -8
  97. package/.output/server/_ssr/{insights-recovery-Cdg3Msrj.mjs → insights-recovery-Dhg3WGpC.mjs} +1 -1
  98. package/.output/server/_ssr/{insights-recovery-rpc-Bla1PuCq.mjs → insights-recovery-rpc-DPW8WjEX.mjs} +5 -5
  99. package/.output/server/_ssr/{insights-rpc-ViJh0Q-s.mjs → insights-rpc-DDLtqUqS.mjs} +3 -3
  100. package/.output/server/_ssr/{insights-search-DfEqsfAa.mjs → insights-search-BxLGFC2Y.mjs} +3 -5
  101. package/.output/server/_ssr/{insights-usage-BVm7CDw9.mjs → insights-usage-gW3T5N6N.mjs} +1 -1
  102. package/.output/server/_ssr/{insights-usage-rpc-DWSPBftd.mjs → insights-usage-rpc-_3iuUmaJ.mjs} +5 -5
  103. package/.output/server/_ssr/{insights-usage-rpc-CLsYlcnO.mjs → insights-usage-rpc-a9HwsRB_.mjs} +4 -4
  104. package/.output/server/_ssr/{insightsUsage-lPKyRC2o.mjs → insightsUsage-B_7pM9wp.mjs} +3 -3
  105. package/.output/server/_ssr/{insights_.distribution-6t26Hce4.mjs → insights_.distribution-BjWQk0tw.mjs} +2 -2
  106. package/.output/server/_ssr/{insights_.distribution-CbZmys6X.mjs → insights_.distribution-CCCQgeXp.mjs} +16 -16
  107. package/.output/server/_ssr/{insights_.distribution-Bj054JTo.mjs → insights_.distribution-DTvhOF_Z.mjs} +5 -5
  108. package/.output/server/_ssr/{installations-BOzetKfl.mjs → installations-BgKaxLj8.mjs} +2 -2
  109. package/.output/server/_ssr/{installations-ARFvJMie.mjs → installations-DZoaae-j.mjs} +12 -12
  110. package/.output/server/_ssr/{installations-CL-nVRbZ.mjs → installations-IiZ1O2zJ.mjs} +4 -4
  111. package/.output/server/_ssr/{ios-devices-rpc-Xln3pLFJ.mjs → ios-devices-rpc-mzVC4RTM.mjs} +8 -8
  112. package/.output/server/_ssr/{iosDeviceCookie-BG4X3Kbt.mjs → iosDeviceCookie-LOJ7WfKJ.mjs} +5 -5
  113. package/.output/server/_ssr/{iosDeviceProfile-C8NvflH9.mjs → iosDeviceProfile-DtTmTG9a.mjs} +6 -6
  114. package/.output/server/_ssr/{iosDevices-Ck5ko5IX.mjs → iosDevices-DC-DR7X-.mjs} +3 -3
  115. package/.output/server/_ssr/{listReleases-QF91GLE7.mjs → listReleases-B2Q9xwFv.mjs} +3 -3
  116. package/.output/server/_ssr/{native-artifact-BRNP_q-y.mjs → native-artifact-BurROe05.mjs} +43 -2
  117. package/.output/server/_ssr/{native-builds-nRuXKypG.mjs → native-builds-Bnx0fVWs.mjs} +10 -5
  118. package/.output/server/_ssr/{native-builds-B70NqL0z.mjs → native-builds-DBVS616m.mjs} +63 -32
  119. package/.output/server/_ssr/{native-builds-6Kq2Pamq.mjs → native-builds-uMIPDSmT.mjs} +3 -3
  120. package/.output/server/_ssr/{native-builds_._buildId-B4uQUP7t.mjs → native-builds_._buildId-BmB6oLsi.mjs} +3 -3
  121. package/.output/server/_ssr/{native-builds_._buildId-zbXBoGs8.mjs → native-builds_._buildId-CfYzRkoT.mjs} +61 -45
  122. package/.output/server/_ssr/{native-builds_.devices-OLR3gTfc.mjs → native-builds_.devices-CBoAFcVA.mjs} +18 -18
  123. package/.output/server/_ssr/{native-builds_.devices-DcgdiEiK.mjs → native-builds_.devices-PvBuqXp0.mjs} +3 -3
  124. package/.output/server/_ssr/{nativeBuildDownloadLink-DHsPiwsg.mjs → nativeBuildDownloadLink-B-Slw1_O.mjs} +2 -2
  125. package/.output/server/_ssr/{nativeBuildInstall-DnpC3dUR.mjs → nativeBuildInstall-_vrEhN0E.mjs} +8 -8
  126. package/.output/server/_ssr/{nativeBuilds-DaF-TcfO.mjs → nativeBuilds-WKdqgemR.mjs} +7 -7
  127. package/.output/server/_ssr/{publicConsoleBase-wTKw3_iB.mjs → publicConsoleBase-C3sNbafy.mjs} +1 -1
  128. package/.output/server/_ssr/{release-adoption-gfhE5tz5.mjs → release-adoption-D2719HVh.mjs} +2 -2
  129. package/.output/server/_ssr/{release-adoption-rpc-C8oj79w3.mjs → release-adoption-rpc-BsUYFCSo.mjs} +7 -7
  130. package/.output/server/_ssr/{releaseAdoption-DfEYq7I4.mjs → releaseAdoption-CxGKmUXx.mjs} +4 -4
  131. package/.output/server/_ssr/{releaseReachability-Ch1JpJkY.mjs → releaseReachability-sWr0bLRk.mjs} +1 -1
  132. package/.output/server/_ssr/{remote-config-DOinV02U.mjs → remote-config-D-8SQ4po.mjs} +2 -2
  133. package/.output/server/_ssr/{remote-config-MEFtxtmM.mjs → remote-config-DQzpUpwK.mjs} +2 -2
  134. package/.output/server/_ssr/{remote-config-ClsnMl5Y.mjs → remote-config-ZObJS2_F.mjs} +20 -20
  135. package/.output/server/_ssr/{remote-config-rpc-CCPIk5TC.mjs → remote-config-rpc-COjwhaa3.mjs} +3 -3
  136. package/.output/server/_ssr/{router-jomm2ZkW.mjs → router-DFO8ezEY.mjs} +37 -37
  137. package/.output/server/_ssr/{routes-D0sAXxvj.mjs → routes-B0kFLck5.mjs} +96 -44
  138. package/.output/server/_ssr/{routes-YuEmTB66.mjs → routes-DLdhFkXy.mjs} +48 -14
  139. package/.output/server/_ssr/{schema-migration-rpc-CzOI4qIc.mjs → schema-migration-rpc-BTlEpk00.mjs} +3 -3
  140. package/.output/server/_ssr/{select-jxef2GHj.mjs → select-l3hYdF9p.mjs} +2 -2
  141. package/.output/server/_ssr/{server-DowlVz8B.mjs → server-Dsb2hUyp.mjs} +4 -4
  142. package/.output/server/_ssr/{sidebar-DbK9IOE6.mjs → sidebar-DU3F2THA.mjs} +2 -2
  143. package/.output/server/_ssr/ssr.mjs +1 -1
  144. package/.output/server/_ssr/{start-BaUpXI0L.mjs → start-BXlykDIg.mjs} +1 -1
  145. package/.output/server/_ssr/{switch-PuW4wKem.mjs → switch-B_NczfZN.mjs} +2 -2
  146. package/.output/server/_ssr/{table-CTjtU7u0.mjs → table-DScwmE5W.mjs} +1 -1
  147. package/.output/server/_ssr/{tabs-CYGM4B-P.mjs → tabs-DodX8IAE.mjs} +2 -2
  148. package/.output/server/_ssr/{updateFailures-BwDwIoNu.mjs → updateFailures-DGuFoK6A.mjs} +3 -3
  149. package/.output/server/{_tanstack-start-manifest_v-Dzfgn9EO.mjs → _tanstack-start-manifest_v-D4QtfwLE.mjs} +94 -95
  150. package/.output/server/index.mjs +311 -318
  151. package/package.json +7 -7
  152. package/src/components/features/insights/AppUsage.tsx +3 -5
  153. package/src/components/features/insights/InsightsControls.tsx +2 -2
  154. package/src/components/features/native-builds/BuiltInBundleCard.tsx +21 -5
  155. package/src/components/features/native-builds/InstallCard.tsx +32 -24
  156. package/src/components/features/native-builds/IosInstall.tsx +3 -2
  157. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +2 -0
  158. package/src/components/features/native-builds/NativeBuildsPage.tsx +79 -21
  159. package/src/components/features/native-builds/NativeBuildsTable.tsx +8 -6
  160. package/src/components/features/native-builds/PatchesCard.tsx +28 -20
  161. package/src/lib/api-rpc.ts +2 -1
  162. package/src/lib/api.ts +10 -2
  163. package/src/lib/constants.ts +12 -0
  164. package/src/lib/insights-search.ts +0 -3
  165. package/src/lib/native-builds.ts +10 -3
  166. package/src/lib/server/nativeBuildInstall.ts +3 -1
  167. package/src/lib/server/nativeBuilds.ts +15 -8
  168. package/src/routes/-native-builds-search.ts +32 -4
  169. package/src/routes/-releases-search.ts +63 -2
  170. package/src/routes/index.tsx +113 -29
  171. package/src/routes/insights.tsx +3 -5
  172. package/src/routes/insights_.distribution.tsx +2 -2
  173. package/.output/public/assets/-native-builds-search-BvCftqF2.js +0 -1
  174. package/.output/public/assets/IosInstall-DsKczesK.js +0 -1
  175. package/.output/public/assets/RolloutPercentageBadge-DnmU8XbU.js +0 -1
  176. package/.output/public/assets/api-B1z_XXrQ.js +0 -1
  177. package/.output/public/assets/api-keys-C_u_ZmPS.js +0 -1
  178. package/.output/public/assets/api-keys-DPuPM7ag.js +0 -1
  179. package/.output/public/assets/dist-BEIz5ojx.js +0 -1
  180. package/.output/public/assets/insights-CpnFoyo5.js +0 -2
  181. package/.output/public/assets/insights-MQrx_wbP.js +0 -1
  182. package/.output/public/assets/insights-search-CtEcj6lz.js +0 -1
  183. package/.output/public/assets/insights_.distribution-Bjo0aQE4.js +0 -1
  184. package/.output/public/assets/insights_.distribution-Dd2mYz8D.js +0 -2
  185. package/.output/public/assets/insights_.distribution-REbBAqgL.js +0 -1
  186. package/.output/public/assets/installations-Di02gX_V.js +0 -1
  187. package/.output/public/assets/installations-iqDa8KPW.js +0 -1
  188. package/.output/public/assets/native-builds-7sC78eTq.js +0 -1
  189. package/.output/public/assets/native-builds-BOSmoLed.js +0 -1
  190. package/.output/public/assets/native-builds-CXDwW54k.js +0 -2
  191. package/.output/public/assets/native-builds_._buildId-C7-yUwvH.js +0 -2
  192. package/.output/public/assets/native-builds_._buildId-u5dG7ej5.js +0 -1
  193. package/.output/public/assets/native-builds_.devices-CQ_tB3SO.js +0 -1
  194. package/.output/public/assets/native-builds_.devices-C_YZoRxB.js +0 -2
  195. package/.output/public/assets/refresh-cw-CpCxPYma.js +0 -1
  196. package/.output/public/assets/remote-config-CD50k2u7.js +0 -6
  197. package/.output/public/assets/remote-config-Dmuqm9xx.js +0 -1
  198. package/.output/public/assets/routes-Dj_ukxU_.js +0 -2
  199. package/.output/public/assets/routes-DvCD6Kib.js +0 -1
  200. /package/.output/public/assets/{BundleIdDisplay-D8oR8mcP.js → BundleIdDisplay-Bm85NZma.js} +0 -0
  201. /package/.output/public/assets/{ChannelBadge-Do-lWsLM.js → ChannelBadge-B04sTjw5.js} +0 -0
  202. /package/.output/public/assets/{NotFoundPage-CijSy63W.js → NotFoundPage-DUWkihqx.js} +0 -0
  203. /package/.output/public/assets/{PlatformIcon-Kq3q98tU.js → PlatformIcon-CZjIJt0C.js} +0 -0
  204. /package/.output/public/assets/{QrCode-D3-Vuudy.js → QrCode-DJ5leikY.js} +0 -0
  205. /package/.output/public/assets/{alert-dialog-Dihztkem.js → alert-dialog-ndHfUqUh.js} +0 -0
  206. /package/.output/public/assets/{card-BfeRlTvj.js → card-VtWYErXu.js} +0 -0
  207. /package/.output/public/assets/{dialog-e9AF5T6h.js → dialog-Dx9gstou.js} +0 -0
  208. /package/.output/public/assets/{empty-DpSPWLc2.js → empty-Cdfs8tuN.js} +0 -0
  209. /package/.output/public/assets/{field-PkdRPD3A.js → field-CubHQ_EM.js} +0 -0
  210. /package/.output/public/assets/{relativeTime-D_aYJRc7.js → relativeTime-Wk64dka-.js} +0 -0
  211. /package/.output/public/assets/{table-r_sYqKTQ.js → table-DtcLx8yw.js} +0 -0
  212. /package/.output/public/assets/{tabs-BBfg-c0h.js → tabs-DYlO8l4M.js} +0 -0
  213. /package/.output/public/assets/{valueToPercent-Bn8p2lng.js → valueToPercent-Db73Kirz.js} +0 -0
@@ -389,7 +389,9 @@ export const serveNativeBuildManifest = async (
389
389
  if (info.distribution === "store") {
390
390
  return installRefusal(
391
391
  409,
392
- "This IPA is an App Store export, which installs through TestFlight.",
392
+ build.is_sandbox
393
+ ? "This IPA is an App Store export, which doesn't install from a link."
394
+ : "This IPA is an App Store export, which installs through TestFlight.",
393
395
  );
394
396
  }
395
397
  if (isExpired(info, Date.now())) {
@@ -114,11 +114,14 @@ export interface NativeBuildDetail {
114
114
  readonly catalogScopeKey: string;
115
115
  /** How many bundles patch from the built-in bundle, or null when its row is gone. */
116
116
  readonly builtInBundle: { readonly childCount: number } | null;
117
- /** The newest build of the build's scope: this build or a later one. */
117
+ /**
118
+ * The newest build of the build's scope: this build or a later one. Null for
119
+ * a sandbox build, whose scope has no patch base.
120
+ */
118
121
  readonly newestInScope: NativeBuildRow | null;
119
122
  /**
120
123
  * The build marked as the store build in the scope. New deploys patch from it,
121
- * or with no mark from the newest build.
124
+ * or with no mark from the newest build. Null for a sandbox build.
122
125
  */
123
126
  readonly storeBuildInScope: NativeBuildRow | null;
124
127
  /**
@@ -134,8 +137,8 @@ export interface NativeBuildDetail {
134
137
  /**
135
138
  * Everything a native build's page shows, in six reads at most: the build,
136
139
  * then its built-in bundle, its scope's newest build and its mark, which a
137
- * marked build's own row answers, its scope's catalog, and one page of patches
138
- * from it. Null for an unknown ID.
140
+ * marked build's own row answers and a sandbox build skips, its scope's
141
+ * catalog, and one page of patches from it. Null for an unknown ID.
139
142
  */
140
143
  export async function getNativeBuildDetail(
141
144
  core: Pick<
@@ -152,13 +155,17 @@ export async function getNativeBuildDetail(
152
155
  if (build === null) return null;
153
156
  const catalogScopeKey = nativeBuildCatalogScopeKey(build);
154
157
  const scope = nativeBuildScope(build);
158
+ // A sandbox build's built-in bundle is no patch base, so its page names
159
+ // none and reads none.
155
160
  const [builtIn, newestInScope, storeBuildInScope, catalog, patches] =
156
161
  await Promise.all([
157
162
  core.getBundle(build.min_bundle_id),
158
- core.findNativeBuild(scope),
159
- build.is_store_build
160
- ? build
161
- : core.findNativeBuild(scope, { storeBuild: true }),
163
+ build.is_sandbox ? null : core.findNativeBuild(scope),
164
+ build.is_sandbox
165
+ ? null
166
+ : build.is_store_build
167
+ ? build
168
+ : core.findNativeBuild(scope, { storeBuild: true }),
162
169
  core.getReleaseCatalogRow(catalogScopeKey),
163
170
  listNativeBuildPatches(core, build.min_bundle_id, {
164
171
  limit: NATIVE_BUILD_PATCH_PAGE_SIZE,
@@ -3,6 +3,7 @@ import { assertCanonicalChannelName } from "@hot-updater/protocol";
3
3
 
4
4
  import type { NativeBuildDetailSearch } from "@/components/features/native-builds/NativeBuildDetailPage";
5
5
  import type { NativeBuildPage } from "@/lib/api";
6
+ import { ALL_CHANNELS, DEFAULT_CHANNEL } from "@/lib/constants";
6
7
 
7
8
  const text = (value: unknown) =>
8
9
  typeof value === "string" && value.length > 0 ? value : undefined;
@@ -25,20 +26,47 @@ const defined = <T extends object>(values: T): T =>
25
26
  ) as T;
26
27
 
27
28
  /**
28
- * The native build list's URL: a channel the builds embed, and one keyset
29
- * page. A page has one direction, so `before` wins over `after`.
29
+ * The native build list's URL: a channel the builds embed, or every channel,
30
+ * and one keyset page. A page has one direction, so `before` wins over
31
+ * `after`.
30
32
  */
33
+ export type NativeBuildsSearch = NativeBuildPage & {
34
+ /** Every channel, where the list would open on the default one. */
35
+ readonly channels?: typeof ALL_CHANNELS;
36
+ };
37
+
31
38
  export const validateNativeBuildsSearch = (
32
39
  search: Record<string, unknown>,
33
- ): NativeBuildPage => {
40
+ ): NativeBuildsSearch => {
34
41
  const before = text(search.before);
42
+ const channel = channelName(search.channel);
35
43
  return defined({
36
- channel: channelName(search.channel),
44
+ channel,
45
+ channels:
46
+ channel === undefined && search.channels === ALL_CHANNELS
47
+ ? ALL_CHANNELS
48
+ : undefined,
37
49
  before,
38
50
  after: before === undefined ? text(search.after) : undefined,
39
51
  });
40
52
  };
41
53
 
54
+ /**
55
+ * The page the list reads. A URL that names no channel opens on the default
56
+ * channel, or on every channel when the project has no such channel;
57
+ * undefined until the channel names, which the page reads anyway, arrive.
58
+ */
59
+ export const resolveNativeBuildsSearch = (
60
+ { channels, ...page }: NativeBuildsSearch,
61
+ channelNames: readonly string[] | undefined,
62
+ ): NativeBuildPage | undefined => {
63
+ if (page.channel !== undefined || channels === ALL_CHANNELS) return page;
64
+ if (channelNames === undefined) return undefined;
65
+ return channelNames.includes(DEFAULT_CHANNEL)
66
+ ? { channel: DEFAULT_CHANNEL, ...page }
67
+ : page;
68
+ };
69
+
42
70
  /** A native build page's URL: one page of the patches from it. */
43
71
  export const validateNativeBuildDetailSearch = (
44
72
  search: Record<string, unknown>,
@@ -1,4 +1,6 @@
1
- import type { ReleaseFilter } from "@hot-updater/plugin-core";
1
+ import type { ChannelRow, ReleaseFilter } from "@hot-updater/plugin-core";
2
+
3
+ import { ALL_CHANNELS, DEFAULT_CHANNEL } from "@/lib/constants";
2
4
 
3
5
  export interface ReleaseSearch {
4
6
  /** Releases newer than this id: the previous page. */
@@ -7,6 +9,8 @@ export interface ReleaseSearch {
7
9
  beforeReleaseId?: string;
8
10
  bundleId?: string;
9
11
  channelId?: string;
12
+ /** Every channel, where the list would open on the default one. */
13
+ channels?: typeof ALL_CHANNELS;
10
14
  enabled?: boolean;
11
15
  platform?: "ios" | "android";
12
16
  releaseId?: string;
@@ -47,12 +51,17 @@ export function validateReleaseSearch(
47
51
  : search.platform === "android"
48
52
  ? "android"
49
53
  : "ios";
54
+ const channels =
55
+ !bundleId && !scopeKey && !channelId && search.channels === ALL_CHANNELS
56
+ ? ALL_CHANNELS
57
+ : undefined;
50
58
 
51
59
  return {
52
60
  afterReleaseId,
53
61
  beforeReleaseId,
54
62
  bundleId,
55
63
  channelId,
64
+ channels,
56
65
  enabled: scopeKey || channelId ? enabled : undefined,
57
66
  platform,
58
67
  releaseId: optionalString(search.releaseId),
@@ -82,6 +91,33 @@ export function hasReleaseFilters(search: ReleaseSearch): boolean {
82
91
  return releaseFilterOf(search).kind !== "all";
83
92
  }
84
93
 
94
+ /**
95
+ * The search the list shows. A URL that names no channel, bundle, or scope
96
+ * opens on the default channel's iOS releases, or on every channel when the
97
+ * project has no such channel; undefined until the channel list, which the
98
+ * page reads anyway, arrives. A link to one release that names no channel
99
+ * shows every channel, so its row shows wherever it is.
100
+ */
101
+ export function resolveReleaseSearch(
102
+ search: ReleaseSearch,
103
+ channels: readonly Pick<ChannelRow, "id" | "name">[] | undefined,
104
+ ): ReleaseSearch | undefined {
105
+ if (
106
+ search.bundleId ||
107
+ search.scopeKey ||
108
+ search.channelId ||
109
+ search.channels === ALL_CHANNELS
110
+ ) {
111
+ return search;
112
+ }
113
+ if (search.releaseId) return { ...search, channels: ALL_CHANNELS };
114
+ if (channels === undefined) return undefined;
115
+ const defaultChannel = channels.find(({ name }) => name === DEFAULT_CHANNEL);
116
+ return defaultChannel
117
+ ? validateReleaseSearch({ ...search, channelId: defaultChannel.id })
118
+ : search;
119
+ }
120
+
85
121
  /**
86
122
  * A new filter starts from the first page. A bundle or scope filter replaces
87
123
  * the others, and choosing a channel or platform clears them.
@@ -91,7 +127,12 @@ export function updateReleaseFilters(
91
127
  filters: Partial<
92
128
  Pick<
93
129
  ReleaseSearch,
94
- "bundleId" | "channelId" | "enabled" | "platform" | "scopeKey"
130
+ | "bundleId"
131
+ | "channelId"
132
+ | "channels"
133
+ | "enabled"
134
+ | "platform"
135
+ | "scopeKey"
95
136
  >
96
137
  >,
97
138
  ): ReleaseSearch {
@@ -107,6 +148,7 @@ export function updateReleaseFilters(
107
148
  if ("channelId" in filters || "platform" in filters) {
108
149
  return validateReleaseSearch({
109
150
  channelId: next.channelId,
151
+ channels: next.channels,
110
152
  enabled: next.enabled,
111
153
  platform: next.platform,
112
154
  });
@@ -114,8 +156,27 @@ export function updateReleaseFilters(
114
156
  return validateReleaseSearch({
115
157
  bundleId: next.bundleId,
116
158
  channelId: next.channelId,
159
+ channels: next.channels,
117
160
  enabled: next.enabled,
118
161
  platform: next.platform,
119
162
  scopeKey: next.scopeKey,
120
163
  });
121
164
  }
165
+
166
+ /**
167
+ * Whether the list shows what it opens on, so Clear has nothing to clear;
168
+ * true until the channel list arrives.
169
+ */
170
+ export function showsDefaultReleases(
171
+ search: ReleaseSearch,
172
+ channels: readonly Pick<ChannelRow, "id" | "name">[] | undefined,
173
+ ): boolean {
174
+ const view = resolveReleaseSearch(search, channels);
175
+ const opening = resolveReleaseSearch({}, channels);
176
+ return (
177
+ view === undefined ||
178
+ opening === undefined ||
179
+ JSON.stringify(releaseFilterOf(view)) ===
180
+ JSON.stringify(releaseFilterOf(opening))
181
+ );
182
+ }
@@ -7,6 +7,7 @@ import {
7
7
  CircleOff,
8
8
  Filter,
9
9
  Package,
10
+ RefreshCw,
10
11
  RotateCcw,
11
12
  Tags,
12
13
  X,
@@ -51,7 +52,12 @@ import { RelativeTime } from "@/components/RelativeTime";
51
52
  import { RolloutPercentageBadge } from "@/components/RolloutPercentageBadge";
52
53
  import { RowReason } from "@/components/RowReason";
53
54
  import { TargetDisplay } from "@/components/TargetDisplay";
54
- import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
55
+ import {
56
+ Alert,
57
+ AlertAction,
58
+ AlertDescription,
59
+ AlertTitle,
60
+ } from "@/components/ui/alert";
55
61
  import { Badge } from "@/components/ui/badge";
56
62
  import { Button, buttonVariants } from "@/components/ui/button";
57
63
  import {
@@ -74,6 +80,7 @@ import {
74
80
  useReleaseFoldQuery,
75
81
  useReleasesQuery,
76
82
  } from "@/lib/api";
83
+ import { ALL_CHANNELS } from "@/lib/constants";
77
84
  import type { Fold } from "@/lib/server/foldedPage";
78
85
  import type { ReleaseListRow } from "@/lib/server/releaseReachability";
79
86
  import { cn } from "@/lib/utils";
@@ -81,11 +88,22 @@ import { cn } from "@/lib/utils";
81
88
  import {
82
89
  hasReleaseFilters,
83
90
  releaseFilterOf,
91
+ resolveReleaseSearch,
84
92
  type ReleaseSearch,
93
+ showsDefaultReleases,
85
94
  updateReleaseFilters,
86
95
  validateReleaseSearch,
87
96
  } from "./-releases-search";
88
97
 
98
+ /** The list while its channel is unknown: loading, whatever the cache holds. */
99
+ const PENDING_RELEASES = {
100
+ data: undefined,
101
+ error: null,
102
+ isError: false,
103
+ isPending: true,
104
+ isPlaceholderData: false,
105
+ } as const;
106
+
89
107
  /** A fold of unreachable bundles: "1 unreachable bundle", "2 …". */
90
108
  const UNREACHABLE_BUNDLES = {
91
109
  one: "unreachable bundle",
@@ -107,18 +125,23 @@ export const Route = createFileRoute("/")({
107
125
 
108
126
  function BundleFilterToolbar({
109
127
  channels,
128
+ clearable,
110
129
  onChange,
111
130
  onClear,
112
131
  onManageChannels,
132
+ pending,
113
133
  search,
114
134
  }: {
115
135
  channels: readonly ChannelRow[];
136
+ /** Whether the list shows other than what it opens on. */
137
+ clearable: boolean;
116
138
  onChange: (filters: Partial<ReleaseSearch>) => void;
117
139
  onClear: () => void;
118
140
  onManageChannels: () => void;
141
+ /** Whether the channel the list opens on is still unknown. */
142
+ pending: boolean;
119
143
  search: ReleaseSearch;
120
144
  }) {
121
- const hasFilters = hasReleaseFilters(search);
122
145
  // Releases list by channel and platform together: the index serves that pair.
123
146
  const channelSelected = search.channelId !== undefined;
124
147
  const channelFilterItems = [
@@ -138,13 +161,16 @@ function BundleFilterToolbar({
138
161
  <span className="text-xs font-medium">Filters</span>
139
162
  </div>
140
163
  <Select
164
+ disabled={pending}
141
165
  items={channelFilterItems}
142
166
  onValueChange={(value) =>
143
- onChange({
144
- channelId: value === null || value === "all" ? undefined : value,
145
- })
167
+ onChange(
168
+ value === null || value === "all"
169
+ ? { channelId: undefined, channels: ALL_CHANNELS }
170
+ : { channelId: value },
171
+ )
146
172
  }
147
- value={search.channelId ?? "all"}
173
+ value={pending ? null : (search.channelId ?? "all")}
148
174
  >
149
175
  <SelectTrigger
150
176
  aria-label="Channel"
@@ -256,7 +282,7 @@ function BundleFilterToolbar({
256
282
  </button>
257
283
  </Badge>
258
284
  ) : null}
259
- {hasFilters ? (
285
+ {clearable ? (
260
286
  <Button
261
287
  className="h-11 px-2 text-xs text-muted-foreground hover:text-foreground max-sm:order-3 sm:ml-auto sm:h-8"
262
288
  onClick={onClear}
@@ -530,30 +556,46 @@ function UnreachableBundlesFold({
530
556
  }
531
557
 
532
558
  function BundlesPage() {
533
- const search = Route.useSearch();
559
+ const urlSearch = Route.useSearch();
534
560
  const navigate = Route.useNavigate();
535
561
  const isMobile = useIsMobile();
536
562
  const [channelsOpen, setChannelsOpen] = useState(false);
537
563
  const [expandedReleaseId, setExpandedReleaseId] = useState<string>();
538
564
  const folds = useOpenFolds();
539
- const filter = releaseFilterOf(search);
540
- const releasesQuery = useReleasesQuery({
541
- afterReleaseId: search.afterReleaseId,
542
- beforeReleaseId: search.beforeReleaseId,
543
- filter,
544
- // The selected release never folds, so a link to it shows its row.
545
- releaseId: search.releaseId,
546
- });
547
565
  const channelsQuery = useChannelsQuery();
548
566
  const channels = channelsQuery.data ?? [];
549
- const entries = releasesQuery.data?.entries ?? [];
567
+ // The list the page shows: a URL without a channel opens on the default
568
+ // one, known once the channel list arrives. A loaded list outlives a failed
569
+ // refresh; without one, the default list waits, and nothing reads every
570
+ // channel in its place.
571
+ const channelRows = channelsQuery.data;
572
+ const resolved = resolveReleaseSearch(urlSearch, channelRows);
573
+ const channelsFailed = resolved === undefined && channelsQuery.isError;
574
+ const search = resolved ?? urlSearch;
575
+ const filter = releaseFilterOf(search);
576
+ const releasesQuery = useReleasesQuery(
577
+ {
578
+ afterReleaseId: search.afterReleaseId,
579
+ beforeReleaseId: search.beforeReleaseId,
580
+ filter,
581
+ // The selected release never folds, so a link to it shows its row.
582
+ releaseId: search.releaseId,
583
+ },
584
+ // Nothing reads every channel's list on the way to the default one.
585
+ { enabled: resolved !== undefined },
586
+ );
587
+ const clearable = !showsDefaultReleases(urlSearch, channelRows);
588
+ // Until the channel is known, the list shows nothing the cache holds: a
589
+ // cached page of every channel, or a fold that would read more of it.
590
+ const list = resolved === undefined ? PENDING_RELEASES : releasesQuery;
591
+ const entries = list.data?.entries ?? [];
550
592
  // The page's reachable releases (and the selected one), outside its folds.
551
593
  const releases = entries.flatMap((entry) =>
552
594
  entry.kind === "row" ? [entry.row] : [],
553
595
  );
554
596
  const pageContext = useRowContext(releases, channels);
555
- const nextCursor = releasesQuery.data?.next;
556
- const previousCursor = releasesQuery.data?.previous;
597
+ const nextCursor = list.data?.next;
598
+ const previousCursor = list.data?.previous;
557
599
  // Features add columns, such as release activity where the console reads it.
558
600
  const featureColumns = useReleaseColumns();
559
601
  const columnCount = 10 + featureColumns.length;
@@ -848,6 +890,15 @@ function BundlesPage() {
848
890
  render={render}
849
891
  />
850
892
  );
893
+ // The list it opens on, when that channel has no bundle for the platform.
894
+ const openingTitle = (
895
+ <>
896
+ No {search.platform === "android" ? "Android" : "iOS"} bundles in{" "}
897
+ <span translate="no">
898
+ {channelNames.get(search.channelId ?? "") ?? search.channelId}
899
+ </span>
900
+ </>
901
+ );
851
902
  // A page of unreachable bundles alone: one fold under the empty state.
852
903
  const foldedOnly = releases.length === 0 && entries.length > 0;
853
904
  const empty = (
@@ -858,9 +909,11 @@ function BundlesPage() {
858
909
  ? "No device gets the bundles here"
859
910
  : onLaterPage
860
911
  ? "No more bundles"
861
- : hasReleaseFilters(search)
862
- ? "No bundles match these filters"
863
- : "No bundles yet"
912
+ : !hasReleaseFilters(search)
913
+ ? "No bundles yet"
914
+ : clearable
915
+ ? "No bundles match these filters"
916
+ : openingTitle
864
917
  }
865
918
  >
866
919
  {onLaterPage ? (
@@ -874,7 +927,7 @@ function BundlesPage() {
874
927
  >
875
928
  Show the newest bundles
876
929
  </Link>
877
- ) : hasReleaseFilters(search) ? (
930
+ ) : clearable ? (
878
931
  <Button
879
932
  className="mt-1 min-h-11 sm:min-h-8"
880
933
  onClick={() => go({})}
@@ -882,6 +935,16 @@ function BundlesPage() {
882
935
  >
883
936
  Clear filters
884
937
  </Button>
938
+ ) : hasReleaseFilters(search) ? (
939
+ <Button
940
+ className="mt-1 min-h-11 sm:min-h-8"
941
+ onClick={() =>
942
+ changeFilters({ channelId: undefined, channels: ALL_CHANNELS })
943
+ }
944
+ variant="outline"
945
+ >
946
+ Show all channels
947
+ </Button>
885
948
  ) : (
886
949
  <>
887
950
  <p>Deploy one from your app's project:</p>
@@ -901,24 +964,45 @@ function BundlesPage() {
901
964
  <div className="flex h-svh min-h-0 min-w-0 flex-col">
902
965
  <BundleFilterToolbar
903
966
  channels={channels}
967
+ clearable={clearable}
904
968
  onChange={changeFilters}
905
969
  onClear={() => go({})}
906
970
  onManageChannels={() => setChannelsOpen(true)}
971
+ pending={resolved === undefined}
907
972
  search={search}
908
973
  />
909
974
 
910
975
  <div className="flex min-h-0 min-w-0 flex-1 flex-col gap-6 bg-muted/5 p-3 sm:p-6">
911
- {releasesQuery.isError ? (
976
+ {channelsFailed ? (
977
+ <Alert variant="destructive">
978
+ <AlertTriangle />
979
+ <AlertTitle>Channels couldn't be loaded</AlertTitle>
980
+ <AlertDescription>
981
+ Bundles show once the channels load.
982
+ </AlertDescription>
983
+ <AlertAction>
984
+ <Button
985
+ className="min-h-11 sm:min-h-7"
986
+ onClick={() => void channelsQuery.refetch()}
987
+ size="xs"
988
+ variant="outline"
989
+ >
990
+ <RefreshCw data-icon="inline-start" />
991
+ Retry
992
+ </Button>
993
+ </AlertAction>
994
+ </Alert>
995
+ ) : list.isError ? (
912
996
  <Alert variant="destructive">
913
997
  <AlertTriangle />
914
998
  <AlertTitle>Bundles could not be loaded</AlertTitle>
915
- <AlertDescription>{releasesQuery.error.message}</AlertDescription>
999
+ <AlertDescription>{list.error?.message}</AlertDescription>
916
1000
  </Alert>
917
1001
  ) : (
918
1002
  <DataTableFrame>
919
1003
  {isMobile ? (
920
1004
  <div className="h-full overflow-y-auto">
921
- {releasesQuery.isPending ? (
1005
+ {list.isPending ? (
922
1006
  <DataCardSkeletons />
923
1007
  ) : (
924
1008
  <>
@@ -954,7 +1038,7 @@ function BundlesPage() {
954
1038
  </>
955
1039
  }
956
1040
  >
957
- {releasesQuery.isPending ? (
1041
+ {list.isPending ? (
958
1042
  <DataTableBody>
959
1043
  <DataTableSkeletonRows columns={columnCount} />
960
1044
  </DataTableBody>
@@ -985,13 +1069,13 @@ function BundlesPage() {
985
1069
  </DataTableFrame>
986
1070
  )}
987
1071
 
988
- {!releasesQuery.isError && !releasesQuery.isPending ? (
1072
+ {!channelsFailed && !list.isError && !list.isPending ? (
989
1073
  <DataTablePagination
990
1074
  count={releases.length}
991
1075
  folded={{ ...foldedTotal(entries), label: "unreachable" }}
992
1076
  label="Bundle pagination"
993
1077
  noun={["bundle", "bundles"]}
994
- pending={releasesQuery.isPlaceholderData}
1078
+ pending={list.isPlaceholderData}
995
1079
  newest={onLaterPage ? { search: newestSearch, to: "/" } : undefined}
996
1080
  next={nextSearch ? { search: nextSearch, to: "/" } : undefined}
997
1081
  previous={
@@ -11,13 +11,13 @@ import { InsightsScope } from "@/components/features/insights/InsightsScope";
11
11
  import { UpdateFailures } from "@/components/features/insights/UpdateFailures";
12
12
  import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
13
13
  import { requireConsoleFeature } from "@/lib/console-features-api";
14
+ import { DEFAULT_CHANNEL } from "@/lib/constants";
14
15
  import {
15
16
  useInsightsRetention,
16
17
  useUpdateFailuresQuery,
17
18
  } from "@/lib/insights-api";
18
19
  import {
19
20
  comparedBundleIds,
20
- DEFAULT_INSIGHTS_CHANNEL,
21
21
  validateInsightsSearch,
22
22
  } from "@/lib/insights-search";
23
23
  import type { AppUsageScope, UsageWindow } from "@/lib/insights-usage";
@@ -39,7 +39,7 @@ function InsightsPage() {
39
39
  const retention = useInsightsRetention();
40
40
  const usageWindow = search.window ?? "24h";
41
41
  const bundleWindow = search.bundleWindow ?? "24h";
42
- const channel = search.channel ?? DEFAULT_INSIGHTS_CHANNEL;
42
+ const channel = search.channel ?? DEFAULT_CHANNEL;
43
43
  const platform = search.platform ?? "all";
44
44
  const scope: AppUsageScope = {
45
45
  platform,
@@ -89,9 +89,7 @@ function InsightsPage() {
89
89
  ...next,
90
90
  // Defaults stay out of the URL.
91
91
  channel:
92
- next.channel === DEFAULT_INSIGHTS_CHANNEL
93
- ? undefined
94
- : next.channel,
92
+ next.channel === DEFAULT_CHANNEL ? undefined : next.channel,
95
93
  platform: next.platform === "all" ? undefined : next.platform,
96
94
  // A release and bundles chosen in another channel or platform
97
95
  // do not carry over; a new focus picks its own bundles.
@@ -38,10 +38,10 @@ import {
38
38
  } from "@/components/ui/select";
39
39
  import { Skeleton } from "@/components/ui/skeleton";
40
40
  import { requireConsoleFeature } from "@/lib/console-features-api";
41
+ import { DEFAULT_CHANNEL } from "@/lib/constants";
41
42
  import { useInsightsRetention } from "@/lib/insights-api";
42
43
  import { keepsTwelveMonths } from "@/lib/insights-retention";
43
44
  import {
44
- DEFAULT_INSIGHTS_CHANNEL,
45
45
  validateDistributionSearch,
46
46
  validateInsightsSearch,
47
47
  } from "@/lib/insights-search";
@@ -86,7 +86,7 @@ function DistributionPage() {
86
86
  const navigate = Route.useNavigate();
87
87
  const input = {
88
88
  platform: search.platform ?? "all",
89
- channel: search.channel ?? DEFAULT_INSIGHTS_CHANNEL,
89
+ channel: search.channel ?? DEFAULT_CHANNEL,
90
90
  appVersion: search.appVersion,
91
91
  window: search.window ?? "24h",
92
92
  };
@@ -1 +0,0 @@
1
- import{Vr as e}from"./sidebar-UnsNYOry.js";import{d as t}from"./uuidv7-DgXZ1zRR.js";var n=e(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),r=e(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),i=e=>typeof e==`string`&&e.length>0?e:void 0,a=e=>{let n=i(e);if(n!==void 0)try{return t(n),n}catch{return}},o=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),s=e=>{let t=i(e.before);return o({channel:a(e.channel),before:t,after:t===void 0?i(e.after):void 0})},c=e=>{let t=i(e.patchesBefore);return o({patchesBefore:t,patchesAfter:t===void 0?i(e.patchesAfter):void 0})},l=[`pending`,`approved`,`registered`],u=e=>typeof e.status==`string`&&l.includes(e.status)?{status:e.status}:{};export{n as a,r as i,c as n,s as r,u as t};
@@ -1 +0,0 @@
1
- import{$ as e,Di as t,Hr as n,Oi as r,Q as i,Ri as a,Si as o,Vi as s,_r as c,di as l,gr as u,wi as d,zr as f}from"./sidebar-UnsNYOry.js";import{t as p}from"./link-D95E0fwF.js";import{t as m}from"./useMutation-BWX97JX2.js";import{i as ee}from"./-native-builds-search-BvCftqF2.js";import{t as te}from"./loader-circle-C26cZDSM.js";import{C as h,T as g,a as _,c as v,d as y,f as b,i as x,l as S,o as C,r as ne,y as re}from"./native-builds-BOSmoLed.js";import{t as ie}from"./refresh-cw-CpCxPYma.js";import{t as ae}from"./smartphone-lSZWrqxx.js";import{a as w,i as T,n as E,o as D}from"./badge-D4Tiwei-.js";import{n as oe}from"./relativeTime-D_aYJRc7.js";import{a as se,n as ce,r as le,t as ue}from"./field-PkdRPD3A.js";import{m as de}from"./api-B1z_XXrQ.js";var O=s(a(),1),k=s(oe(),1),fe=d({method:`GET`}).middleware([f]).handler(r(`3a62744a539db57f5a29f39cec7fb03fd2817703b40d98e6da69e2f5e7ae6f3d`)),pe=d({method:`POST`}).middleware([f]).handler(r(`7138a71df2ede8dd2c3db732d8d0ae10c56b85a8177dcdacf4e747b8087177c6`)),me=d({method:`POST`}).middleware([f]).handler(r(`4b173c2b2f5ea074a1f10862282308f11f5a043c044d64b6f63e6a29d571ec64`)),he=d({method:`POST`}).middleware([f]).handler(r(`7908c24ccc2674ce07a553a645b8f4790889975a80f424a05d71a9fb8ab49787`)),ge=d({method:`POST`}).middleware([f]).handler(r(`4c92dfeae76a6fc898d6f38941eeedaec1f3d118f51a6f31ebf0bb1cea3fcea4`)),_e=d({method:`POST`}).middleware([f]).handler(r(`8e37ec67413ceba554adb2d4b15e53682595a089d4b431ba7965d4347fb500fc`)),ve=d({method:`GET`}).middleware([f]).handler(r(`a11cb4014e6b23528f76382c43684798b0e84a6936aaba02c918e8f4e216e282`)),A={all:[`ios-devices`],list:e=>[`ios-devices`,e??`all`],device:e=>[`ios-devices`,`device`,e],kept:e=>[`ios-devices`,`kept`,e??``],ipa:e=>[`native-build-ipa-devices`,e]},j=600*1e3;function ye(e){return n({queryKey:A.list(e),queryFn:()=>fe({data:e===void 0?{}:{status:e}}),placeholderData:l})}function be(e){return n({queryKey:A.device(e??``),queryFn:()=>pe({data:{udid:e}}),enabled:e!==null})}function M(e,t=!0){return n({queryKey:[`ios-device-profile-link`,e],queryFn:()=>me({data:e}),enabled:t,staleTime:j,refetchInterval:j})}function N(e){return n({queryKey:A.ipa(e),queryFn:()=>ve({data:{id:e}})})}var P=e=>{let t=o();return m({mutationFn:e,onSettled:async()=>{await Promise.all([t.invalidateQueries({queryKey:A.all}),t.invalidateQueries({queryKey:[`native-build-install-eligibility`]})])}})},xe=()=>P(e=>he({data:e})),Se=()=>P(e=>ge({data:e})),Ce=()=>P(e=>_e({data:e})),F=(e,t)=>`${e}/_hot-updater/devices/${t}`,I=async(e,t={})=>{let{json:n,...r}=t,i=await fetch(e,{credentials:`same-origin`,...r,...n===void 0?{}:{headers:{"content-type":`application/json`},body:JSON.stringify(n)}}),a=await i.json().catch(()=>null);if(!i.ok||a===null)throw Error(a?.error??`Request failed (${i.status}).`);return a},L=`hot-updater-ios-device-kept`,R=`hot-updater-ios-device-kept`,z=new Map,B=(e,t)=>{let n=z.get(t);return n===void 0&&(n=I(F(e,`receipt`),{method:`POST`,json:{receipt:t}}).then(e=>{g(t),window.dispatchEvent(new Event(L));try{window.localStorage.setItem(R,String(Date.now()))}catch{}return e},e=>{throw z.delete(t),e}),z.set(t,n)),n};function V(e,t,r){let i=o();return(0,O.useEffect)(()=>{let e=()=>void i.invalidateQueries({queryKey:A.kept(null),exact:!0}),t=t=>{t.key===R&&e()};return window.addEventListener(L,e),window.addEventListener(`storage`,t),()=>{window.removeEventListener(L,e),window.removeEventListener(`storage`,t)}},[i]),n({queryKey:A.kept(t),queryFn:async()=>{let n=null;t!==null&&await B(e,t).catch(e=>{n=e});let r=await I(F(e,`receipt`));if(n!==null&&r.udid===null)throw n;return r},enabled:r,retry:!1,staleTime:1/0})}var we=async e=>{await I(F(e,`receipt`),{method:`DELETE`}).catch(()=>void 0)},H=e=>P(t=>I(F(e,`request`),{method:`POST`,json:t.receipt===null?{name:t.name}:{name:t.name,receipt:t.receipt}})),U=(e,t)=>e!=null&&t!==null&&e.toLowerCase()===t.toLowerCase(),W=t(),Te=`With the same bundle ID, this install replaces the App Store's copy of the app on this iPhone.`,G=`h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit`,K=e=>/iPhone|iPod|iPad/u.test(e.userAgent)||/Macintosh/u.test(e.userAgent)&&e.maxTouchPoints>1,q=()=>{if(typeof window>`u`)return{udid:null,receipt:null,requested:!1};let e=new URLSearchParams(window.location.hash.slice(1)),t=e.get(`udid`),n=t!==null&&x.test(t)?t:null;return{udid:n,receipt:n===null?null:e.get(`r`),requested:n!==null&&e.get(`requested`)===`1`}},Ee=e=>{try{return window.localStorage.getItem(e)}catch{return null}},J=(e,t)=>{try{window.localStorage.setItem(e,t)}catch{}},Y=`hot-updater-ios-device-adopted`,X=(e,t)=>{let n=e?.ios===!0&&e.udid===null&&t!=null&&x.test(t)?t:null;(0,O.useEffect)(()=>{n!==null&&(J(_,n),window.dispatchEvent(new Event(Y)))},[n])},De=()=>{let[e,t]=(0,O.useState)(null),[n]=(0,O.useState)(q);return(0,O.useEffect)(()=>{let e=e=>e!=null&&x.test(e)?e:null,r=n,i=0,a=e=>{let t=e.receipt!==null||e.requested;e.udid!==null&&t&&(i+=1,J(_,e.udid),e.receipt!==null&&(y(e.udid,e.receipt),B(S(window.location),e.receipt).catch(()=>void 0))),e.udid!==null&&window.location.hash!==``&&window.history.replaceState(window.history.state,``,`${window.location.pathname}${window.location.search}`)};a(n);try{window.localStorage.removeItem(ne)}catch{}let o=()=>{let n=e(Ee(`hot-updater-ios-udid`))??r.udid,a=(r.udid===n?r.receipt:null)??h(n),o=r.requested,s=i;t(e=>e!==null&&e.udid===n&&e.receipt===a&&e.requested===o&&e.answers===s?e:{ios:K(navigator),udid:n,receipt:a,requested:o,answers:s})};o();let s=e=>{(e.key===null||e.key===`hot-updater-ios-udid`)&&o()},c=()=>{let e=q();e.udid!==null&&(r=e,a(e)),o()};return window.addEventListener(`storage`,s),window.addEventListener(Y,o),window.addEventListener(`hashchange`,c),window.addEventListener(`pageshow`,c),document.addEventListener(`visibilitychange`,c),()=>{window.removeEventListener(`storage`,s),window.removeEventListener(Y,o),window.removeEventListener(`hashchange`,c),window.removeEventListener(`pageshow`,c),document.removeEventListener(`visibilitychange`,c)}},[n]),e},Oe=300*1e3,Z=(e,t)=>{let[,n]=(0,O.useReducer)(e=>e+1,0),r=e+C-Oe;return(0,O.useEffect)(()=>{if(!t)return;let e=setTimeout(n,Math.max(0,r-Date.now()));return document.addEventListener(`visibilitychange`,n),window.addEventListener(`pageshow`,n),()=>{clearTimeout(e),document.removeEventListener(`visibilitychange`,n),window.removeEventListener(`pageshow`,n)}},[r,t]),t&&Date.now()>=r};function ke({fetching:e,onRenew:t}){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`This install link has expired.`,e?` Getting a new one.`:``]}),e?null:(0,W.jsx)(u,{className:G,onClick:t,variant:`outline`,children:`Get a new link`})]})}function Ae({build:e,token:t}){return(0,W.jsx)(`a`,{className:c({className:G}),href:re(window.location,e.id,t),children:`Install`})}function je(){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`On iOS 16 or later, the app opens only with Developer Mode on: Settings, Privacy & Security, Developer Mode.`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Te})]})}function Q({build:t,again:n=!1}){let r=M({mode:`identify`,buildId:t.id});return r.data?.status===`no-secret`?(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,r.data.secretName,` on the Console to check iPhones from this page.`]}):r.data?.status===`issued`?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`a`,{className:c({className:G,variant:n?`secondary`:`default`}),href:b(v(window.location,t.id),r.data.token),children:[(0,W.jsx)(ae,{"data-icon":`inline-start`}),n?`Check this iPhone again`:`Check this iPhone`]}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Allow the download, then install it in Settings, where iOS calls it not signed. Nothing stays installed.`})]}):r.isError?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(E,{variant:`destructive`,children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`The check couldn't start`}),(0,W.jsx)(T,{children:`Check your connection and try again.`})]}),(0,W.jsxs)(u,{className:G,disabled:r.isFetching,onClick:()=>void r.refetch(),variant:`outline`,children:[(0,W.jsx)(ie,{"data-icon":`inline-start`}),`Reload`]})]}):(0,W.jsx)(e,{"aria-label":`Preparing the check`,className:`h-11 w-full`})}var Me=e=>(0,k.default)(e).format(`MMM D`);function $({device:e,canApprove:t,onDevicesPage:n=!1}){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsxs)(E,{children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`Apple didn't register this iPhone`}),(0,W.jsx)(T,{children:e.apple_error})]}),t?n?null:(0,W.jsx)(p,{className:c({className:G,variant:`outline`}),to:`/native-builds/devices`,children:`iOS devices`}):(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.status===`approved`?`Ask a maintainer to free a device slot.`:`Ask a maintainer to check it on the iOS devices page.`})]})}function Ne({build:t,device:n,registry:r,newerBuild:a,canApprove:o,registryReadAt:s}){let l=v(window.location,t.id),d=H(l),f=V(l,n.receipt,n.ios&&n.udid!==null&&r===null),m=n.receipt!==null||U(f.data?.udid,n.udid),[h,g]=(0,O.useState)(``),[_,y]=(0,O.useState)(null),b=_!==null&&s<=_.readBefore,x=b?_.device:r,S=(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`Not in this build`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This IPA was signed without this iPhone, and iOS won't install it here.`})]});if(x!==null){let e=b?null:a;return x.apple_error!==null&&e===null?(0,W.jsx)($,{canApprove:o,device:x}):(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[S,(0,W.jsx)(`p`,{className:`text-sm`,role:`status`,children:x.status===`pending`?`${x.name} was requested on ${Me(x.created_at_ms)}. A maintainer approves it next.`:e===null?`${x.name} is ${x.status}. It joins the next ad hoc build.`:`A newer build has ${x.name}.`}),e===null?null:(0,W.jsx)(p,{className:c({className:G}),params:{buildId:e},to:`/native-builds/$buildId`,children:`Open the newer build`})]})}if(!m&&f.isPending&&n.udid!==null)return(0,W.jsx)(e,{"aria-label":`Reading this iPhone`,className:`h-11 w-full`});if(!m)return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[S,(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Check this iPhone once more to request it for the next ad hoc build.`}),(0,W.jsx)(Q,{build:t,again:!0})]});let C=h.trim();return(0,W.jsxs)(`form`,{className:`flex min-w-0 flex-col gap-3`,onSubmit:e=>{if(e.preventDefault(),C===``)return;let t=s;d.mutate({receipt:n.receipt,name:C},{onSuccess:({device:e})=>y({device:e,readBefore:t})})},children:[S,(0,W.jsxs)(ue,{"data-invalid":d.isError||void 0,children:[(0,W.jsx)(se,{htmlFor:`ios-device-name`,children:`This iPhone's name`}),(0,W.jsx)(i,{autoComplete:`off`,className:`h-11 sm:h-8`,id:`ios-device-name`,maxLength:100,onChange:e=>g(e.target.value),placeholder:`Kim's iPhone`,value:h}),(0,W.jsx)(ce,{children:`A maintainer approves it, and it joins the next ad hoc build.`}),(0,W.jsx)(le,{children:d.isError?`The request didn't go through. Check this iPhone again, then try once more.`:null})]}),(0,W.jsxs)(u,{className:G,disabled:C===``||d.isPending,type:`submit`,children:[d.isPending?(0,W.jsx)(te,{className:`animate-spin motion-reduce:animate-none`,"data-icon":`inline-start`}):(0,W.jsx)(ee,{"data-icon":`inline-start`}),`Request access`]}),d.isError?(0,W.jsx)(Q,{again:!0,build:t}):null]})}function Pe({build:t,device:n}){X(n,V(v(window.location,t.id),n.receipt,n.ios&&n.udid===null).data?.udid);let{udid:r}=n,i=de(t.id,r),{refetch:a}=i,o=Z(i.dataUpdatedAt,i.data?.status===`installable`&&i.data.device===`included`);if((0,O.useEffect)(()=>{o&&a()},[o,a]),i.isPending)return(0,W.jsx)(e,{"aria-label":`Reading this IPA`,className:`h-11 w-full`});let s=i.data;if(s===void 0||s.status===`unavailable`)return(0,W.jsxs)(E,{children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`Installation details unavailable`}),(0,W.jsx)(T,{children:`The Console couldn't read this IPA from storage in parts, which takes an HTTPS download link that answers Range requests. Other ways to install still work from a computer.`})]});if(s.status===`store`)return(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This IPA is an App Store export, which installs through TestFlight, not from this page.`});if(s.status===`expired`)return(0,W.jsxs)(E,{variant:`destructive`,children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`This build's profile has expired`}),(0,W.jsxs)(T,{children:[`It expired on `,(0,k.default)(s.expiresAt).format(`YYYY-MM-DD`),`. A maintainer rebuilds it to install again.`]})]});let c=s.link.status===`issued`?s.link.token:null;return s.link.status===`no-secret`?(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,s.link.secretName,` on the Console to install from this page.`]}):c===null?null:s.device===`included`?(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`In this build`}),o?(0,W.jsx)(ke,{fetching:i.isFetching,onRenew:()=>void a()}):(0,W.jsx)(Ae,{build:t,token:c}),(0,W.jsx)(je,{})]}):s.device===`not-included`?(0,W.jsx)(Ne,{build:t,device:n,registry:s.registry,newerBuild:s.newerBuild,canApprove:s.canApprove,registryReadAt:i.dataUpdatedAt}):(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`Check this iPhone first`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`iOS installs this IPA only on the devices it lists. A profile reads this iPhone's ID, then Safari comes back here.`})]}),(0,W.jsx)(Q,{build:t})]})}export{H as _,De as a,U as c,be as d,ye as f,Se as g,Ce as h,X as i,xe as l,N as m,Pe as n,we as o,V as p,K as r,A as s,$ as t,M as u};
@@ -1 +0,0 @@
1
- import{Di as e,Vi as t,Vr as n,vr as r}from"./sidebar-UnsNYOry.js";import{o as i,t as a}from"./badge-D4Tiwei-.js";import{t as o}from"./uuidv7-DgXZ1zRR.js";import{n as s,t as c}from"./relativeTime-D_aYJRc7.js";var l=n(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),u=t(s(),1),d=t(c(),1),f=e();u.default.extend(d.default);function p({uuid:e,format:t=`relative`}){let n=(0,u.default)(o(e));return t===`relative`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.fromNow()}):t===`absolute`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)}):(0,f.jsxs)(`div`,{className:`flex flex-col`,children:[(0,f.jsx)(`span`,{className:`text-sm`,children:n.fromNow()}),(0,f.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)})]})}var m=e=>{let t=e.trim();if(t.startsWith(`git@`)){let e=t.match(/^git@([^:]+):(.+?)(?:\.git)?$/);if(e)return`https://${e[1]}/${e[2]}`}if(t.startsWith(`ssh://`))try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`.replace(/\/+$/,``).replace(/\.git$/,``)}catch{return t.replace(/\/+$/,``).replace(/\.git$/,``)}return t.replace(/\/+$/,``).replace(/\.git$/,``)},h=(e,t)=>{if(!e?.trim())return null;let n=m(e);try{let{hostname:e}=new URL(n);if(e.includes(`gitlab`))return`${n}/-/commit/${t}`;if(e.includes(`bitbucket`))return`${n}/commits/${t}`}catch{}return`${n}/commit/${t}`};function g({percentage:e,className:t}){let n=e<100,o=e.toFixed(1);return(0,f.jsxs)(a,{className:r(`gap-1`,t),variant:n?`secondary`:`default`,children:[n?(0,f.jsx)(i,{className:`h-3 w-3`}):null,o,`%`]})}export{l as i,h as n,p as r,g as t};
@@ -1 +0,0 @@
1
- import{Hr as e,Oi as t,Si as n,wi as r,zr as i}from"./sidebar-UnsNYOry.js";import{n as a}from"./preload-helper-52zhjEsw.js";import{t as o}from"./useMutation-BWX97JX2.js";var s=r({method:`GET`}).middleware([i]).handler(t(`206547cb1526f961070a989818ca7b9e34f6b2b0e4ab851698c3807fe9fb5e0c`)),c=r({method:`GET`}).middleware([i]).handler(t(`b30a0e32e3e84050037368e4405bfc34507fda8891a64faefe1a7acd019e9f3c`)),ee=r({method:`GET`}).middleware([i]).handler(t(`a6f23116eeaf76166d405e28a95213123025613c6603030894e519015bf48032`)),l=r({method:`POST`}).middleware([i]).handler(t(`7ea0186f19f9f2bc2ca4b26e3c59636891cf046957f84287b6783f8d88bd8cb7`)),u=r({method:`POST`}).middleware([i]).handler(t(`b46c95dba95a6a3e8fa5c9d100e3622fa5ae7af4f38e10fb1ed2fa48289a3a8f`)),d=r({method:`POST`}).middleware([i]).handler(t(`d5b58722ce514e3b63a377f736b4823c2011782495442ae4870ed547e392c70b`)),f=r({method:`POST`}).middleware([i]).handler(t(`956539a300d79a7efa191c1cc2d529d62fc4bfd940442548fdbc1404e0d53078`)),p=r({method:`GET`}).middleware([i]).handler(t(`e8c24b7247936f045a145ffd5c177fd0e3df3b52769d67dfbd8d1de491d66396`)),m=r().middleware([i]).handler(t(`51a34c05479a893c7d320bd4cd1604427289d667698c48b9f30a01aabf8a5e68`)),h=r().middleware([i]).handler(t(`79ada05964de8f2123bfcd62b10097d59bf8fd689ef5c7161031e5871d8396c5`)),g=r({method:`POST`}).middleware([i]).handler(t(`2b9b8d1f49f79a511589617d8d4bfc6094a3acf5264f33651b9569ba66d3f321`)),_=r({method:`POST`}).middleware([i]).handler(t(`52756dde414919a906bfe83d1ab6d29910c63bcafdb47653d6f1df562d958920`)),v=r({method:`GET`}).middleware([i]).handler(t(`1bd85c2a50e24785cb6abb023a247a9f048f37ddfa85cbb1c57e579563bad013`)),y=r({method:`GET`}).middleware([i]).handler(t(`4370f1bf70b91f1168d85379d3008449a1bedb915e9878ca4ef89d5f3a80fa7f`)),b=r({method:`GET`}).middleware([i]).handler(t(`4ca367070b00f58179a572f0bb8196a4ccdd3881e9b1dbfe33deee0cb6e1f549`)),x=r({method:`GET`}).middleware([i]).handler(t(`17a54fe7c5ad6ca53457914b1d02b3d6887811aa6b5fa6598a1ee107796ce8f0`)),S=r({method:`GET`}).middleware([i]).handler(t(`1fc98b1499df6f62eeb3e84712ff4bd12e428d2ddd08880d541463d24ccd0233`)),C=r({method:`GET`}).middleware([i]).handler(t(`c101ad0315790cf226f182906274176b64a93b9bf5b410cacec5067208c70a04`)),w=r({method:`GET`}).middleware([i]).handler(t(`2e3fab89483b2e4fea0c2f996071b2dbb15b8bc072e7dae78c75a9a9d854d5b9`)),T=r({method:`GET`}).middleware([i]).handler(t(`868ce85f0b63ad138a1f82a573d1d6b12f80c7ca44aefec3dadf01b5fa7db86c`)),E=r({method:`POST`}).middleware([i]).handler(t(`a6c8cfa907e2f75bf69aa90044bd52a3ee684d1a0462d23781161a1a3531aa33`)),D=r({method:`GET`}).middleware([i]).handler(t(`936ef8582ff49d97077d1d80e8403d0b4106831c955591c5c471a88f96007fe9`)),O=r({method:`POST`}).middleware([i]).handler(t(`c6ff40bd8faad0b2d7aba3e94179c18e02a918a76bff25849d771ff31f688208`)),k=r({method:`POST`}).middleware([i]).handler(t(`67cea9f69773d83e69e68e20b81116a2bee9ee4ab3e378698ff74149f1d59ad0`)),A=[`releases`],j={config:[`config`],channels:[`channels`],releases:{all:A,list:e=>[...A,e??{}],fold:(e,t)=>[...A,`fold`,e??{},t]},release:e=>[`release`,e],releaseCatalog:e=>[`release-catalog`,e],bundleChildren:{all:[`bundle-children`],list:e=>[`bundle-children`,e],counts:e=>[`bundle-children`,`counts`,...e]},bundle:e=>[`bundle`,e],nativeBuilds:{all:[`native-builds`],list:e=>[`native-builds`,e],fold:(e,t)=>[`native-builds`,`fold`,e??null,t]},nativeBuild:e=>[`native-build`,e],nativeBuildPatches:(e,t)=>[`native-build-patches`,e,t],nativeBuildDownloadUrl:e=>[`native-build-download-url`,e],nativeBuildDownloadLink:e=>[`native-build-download-link`,e],nativeBuildInstallEligibility:(e,t)=>[`native-build-install-eligibility`,e,t],releaseNativeBuild:e=>[`release-native-build`,e]},M=6e4,N=1440*60*1e3,P=1800*1e3;function F(){return e({queryKey:j.config,queryFn:()=>m(),staleTime:1/0})}function I(){return e({queryKey:j.channels,queryFn:()=>h(),staleTime:1/0})}function L(t){return e({queryKey:j.releases.list(t),queryFn:()=>s({data:t}),placeholderData:e=>e})}function R(e,t,n){return a({queryKey:j.releases.fold(e,t),queryFn:({pageParam:n})=>c({data:{...t,...e===void 0?{}:{filter:e},...n===void 0?{}:{after:n}}}),initialPageParam:void 0,getNextPageParam:e=>e.next,enabled:n})}function z(t){return e({enabled:t.length>0,queryFn:()=>ee({data:{releaseId:t}}),queryKey:j.release(t)})}function B(t){return e({enabled:t.length>0,queryFn:()=>p({data:{scopeKey:t}}),queryKey:j.releaseCatalog(t)})}function V(t){return e({queryKey:j.bundle(t),queryFn:()=>v({data:{bundleId:t}}),staleTime:1/0,enabled:!!t})}function H(t){return e({queryKey:j.bundleChildren.list(t),queryFn:()=>y({data:{baseBundleId:t}}),staleTime:1/0,enabled:!!t})}function U(t){let n=[...t].sort((e,t)=>e.localeCompare(t));return e({queryKey:j.bundleChildren.counts(n),queryFn:()=>b({data:{bundleIds:n}}),staleTime:1/0,enabled:n.length>0})}function W(e,t,n){return a({queryKey:j.nativeBuilds.fold(e,t),queryFn:({pageParam:n})=>S({data:{...t,...e===void 0?{}:{channel:e},...n===void 0?{}:{after:n}}}),initialPageParam:void 0,getNextPageParam:e=>e.next,enabled:n,staleTime:6e4})}function G(t){return e({queryKey:j.nativeBuilds.list(t),queryFn:()=>x({data:t}),placeholderData:e=>e,staleTime:6e4})}function K(t){return e({queryKey:j.nativeBuild(t),queryFn:()=>C({data:{id:t}}),enabled:t.length>0})}function q(t,n,r){return e({queryKey:j.nativeBuildPatches(t,n),queryFn:()=>w({data:{minBundleId:t,...n}}),enabled:r&&t.length>0,placeholderData:e=>e})}function J(t){return e({queryKey:j.releaseNativeBuild(t??{platform:`ios`,channel:``,fingerprintHash:null,targetAppVersion:null}),queryFn:()=>T({data:t}),enabled:t!==null,staleTime:6e4})}function Y(t){return e({queryKey:j.nativeBuildDownloadLink(t),queryFn:()=>O({data:{id:t}}),staleTime:N})}function X(t,n){return e({queryKey:j.nativeBuildInstallEligibility(t,n),queryFn:()=>k({data:{id:t,...n===null?{}:{udid:n}}}),staleTime:P,refetchInterval:P})}function Z(t){return e({queryKey:j.nativeBuildDownloadUrl(t),queryFn:()=>D({data:{id:t}}),staleTime:M})}function Q(){let e=n();return o({mutationFn:e=>g({data:e}).then(e=>e.data),onSuccess:async()=>{await e.invalidateQueries({queryKey:j.channels})}})}function $(){let e=n();return o({mutationFn:e=>_({data:e}).then(e=>e.data),onSettled:async()=>{await e.invalidateQueries({queryKey:j.channels})}})}function te(){let e=n();return o({mutationFn:e=>E({data:e}),onSettled:async()=>{await Promise.all([e.invalidateQueries({queryKey:[`native-build`]}),e.invalidateQueries({queryKey:j.nativeBuilds.all}),e.invalidateQueries({queryKey:[`release-native-build`]})])}})}function ne(){let e=n();return o({mutationFn:e=>l({data:e}),onSuccess:async(t,n)=>{await Promise.all([e.invalidateQueries({queryKey:j.releases.all}),e.invalidateQueries({queryKey:j.release(n.releaseId)}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:j.channels})])}})}function re(){return o({mutationFn:e=>u({data:e})})}function ie(){let e=n();return o({mutationFn:e=>d({data:e}),onSuccess:async(t,n)=>{e.removeQueries({queryKey:j.release(n.releaseId)}),await Promise.all([e.invalidateQueries({queryKey:j.releases.all}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:j.channels}),e.invalidateQueries({queryKey:[`bundle`]}),e.invalidateQueries({queryKey:j.bundleChildren.all})])}})}function ae(){let e=n();return o({mutationFn:e=>f({data:e}),onSuccess:async()=>{await Promise.all([e.invalidateQueries({queryKey:j.releases.all}),e.invalidateQueries({queryKey:[`release`]}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:j.channels})])}})}export{L as C,z as S,re as _,F as a,R as b,ie as c,Y as d,Z as f,G as g,q as h,I as i,te as l,X as m,H as n,Q as o,W as p,V as r,$ as s,U as t,K as u,ae as v,ne as w,J as x,B as y};