@hot-updater/console 1.2.0-rc.12 → 1.2.0-rc.13

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 (210) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-C-TGpFAm.js → -native-builds-search-DC2PutLU.js} +1 -1
  3. package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-oMmbaqF6.js} +1 -1
  4. package/.output/public/assets/{EventDetails-Dl2RvPAk.js → EventDetails-ly7ygfdH.js} +1 -1
  5. package/.output/public/assets/{HashValueDisplay-6lNRxDJX.js → HashValueDisplay-BNoXZADg.js} +1 -1
  6. package/.output/public/assets/{InsightsPageHeader-DHhqY3DT.js → InsightsPageHeader-q2FgL8xS.js} +1 -1
  7. package/.output/public/assets/RolloutPercentageBadge-frllRncE.js +1 -0
  8. package/.output/public/assets/{StoreSubmission-ViTkW4eJ.js → StoreSubmission-D8BGGGgn.js} +1 -1
  9. package/.output/public/assets/api-BEEYDSCX.js +1 -0
  10. package/.output/public/assets/{api-keys-FueRkF9q.js → api-keys-B0N3SixL.js} +1 -1
  11. package/.output/public/assets/api-keys-DFAOfU4U.js +1 -0
  12. package/.output/public/assets/{index-DH9-mB8D.js → index-t0CToN0S.js} +3 -3
  13. package/.output/public/assets/insights-B0_8xNxr.js +1 -0
  14. package/.output/public/assets/{insights-B-0odqpt.js → insights-BbIzm_QG.js} +2 -2
  15. package/.output/public/assets/insights-BtmYg4vg.js +2 -0
  16. package/.output/public/assets/{insights-search-DghCbEnk.js → insights-search-B5cZsP6C.js} +1 -1
  17. package/.output/public/assets/{insights-usage-rpc-CKQH0pUS.js → insights-usage-rpc-zut_JaSS.js} +1 -1
  18. package/.output/public/assets/insights_.distribution-DLxq-IKU.js +1 -0
  19. package/.output/public/assets/insights_.distribution-izFBYfJL.js +2 -0
  20. package/.output/public/assets/{insights_.distribution-dvk6vYDM.js → insights_.distribution-rdeyNhH2.js} +1 -1
  21. package/.output/public/assets/{installations-B674P5Z5.js → installations-BRS-vuRJ.js} +2 -2
  22. package/.output/public/assets/installations-CWx7vYY5.js +1 -0
  23. package/.output/public/assets/{installations-BWxczZ2t.js → installations-Ce_dTa35.js} +1 -1
  24. package/.output/public/assets/native-builds-Br0onFRc.js +2 -0
  25. package/.output/public/assets/native-builds-CDYL3y0I.js +1 -0
  26. package/.output/public/assets/native-builds-DEWHul-_.js +1 -0
  27. package/.output/public/assets/native-builds_._buildId-D1XEPQ-V.js +1 -0
  28. package/.output/public/assets/native-builds_._buildId-x-uu1Vbr.js +2 -0
  29. package/.output/public/assets/{remote-config-B7ujqhLa.js → remote-config-Bw6sErCV.js} +3 -3
  30. package/.output/public/assets/{remote-config-WjpozBG5.js → remote-config-DQguWTMa.js} +1 -1
  31. package/.output/public/assets/remote-config-S3xj8r3x.js +1 -0
  32. package/.output/public/assets/{routes-CCD33Azv.js → routes-Dw8zgqXz.js} +2 -2
  33. package/.output/public/assets/routes-nKCEKnhh.js +1 -0
  34. package/.output/server/{__23tanstack-start-server-fn-resolver-C19x6erS.mjs → __23tanstack-start-server-fn-resolver-DI0OnlQe.mjs} +58 -46
  35. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  36. package/.output/server/_libs/_.mjs +2 -0
  37. package/.output/server/_ssr/{-native-builds-search-CwNcoXf4.mjs → -native-builds-search-Cl8EZ0Ud.mjs} +2 -2
  38. package/.output/server/_ssr/{BundleIdDisplay-Bf-L37zf.mjs → BundleIdDisplay-SAvC-NlE.mjs} +2 -2
  39. package/.output/server/_ssr/{ConsoleFeatureUnavailable-iNGya64h.mjs → ConsoleFeatureUnavailable-BgHEoZ36.mjs} +6 -6
  40. package/.output/server/_ssr/{EventDetails-CZofL6Hn.mjs → EventDetails-VaS25yjE.mjs} +7 -7
  41. package/.output/server/_ssr/{HashValueDisplay-DC1TLS-8.mjs → HashValueDisplay-BGc-x_l8.mjs} +2 -2
  42. package/.output/server/_ssr/{InsightsPageHeader-sVotAhl0.mjs → InsightsPageHeader-gMuNJt-f.mjs} +7 -7
  43. package/.output/server/_ssr/{NotFoundPage-COb0erGp.mjs → NotFoundPage-DsRI-J4h.mjs} +2 -2
  44. package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-BsU0d0jN.mjs} +1 -1
  45. package/.output/server/_ssr/{RolloutPercentageBadge-BFBh0QWv.mjs → RolloutPercentageBadge-axz7VuIZ.mjs} +3 -3
  46. package/.output/server/_ssr/{StoreSubmission-Bvfq8pWk.mjs → StoreSubmission-BqXKtpqW.mjs} +5 -5
  47. package/.output/server/_ssr/{alert-dialog-C-Mck8_M.mjs → alert-dialog-lury59vV.mjs} +1 -1
  48. package/.output/server/_ssr/{api-oJajV-DG.mjs → api-BQ8ztUgU.mjs} +99 -22
  49. package/.output/server/_ssr/{api-keys-CcqDkOcC.mjs → api-keys-CHATVpa9.mjs} +2 -2
  50. package/.output/server/_ssr/{api-keys-B0L1sj-W.mjs → api-keys-DVChzF3r.mjs} +8 -8
  51. package/.output/server/_ssr/{api-keys-rpc-Do6Rbl0V.mjs → api-keys-rpc-DXPJTfdr.mjs} +4 -4
  52. package/.output/server/_ssr/{api-rpc-DE0zy7iY.mjs → api-rpc-BexxmTM9.mjs} +43 -18
  53. package/.output/server/_ssr/{auth-rpc-0I_10FKy.mjs → auth-rpc-BgNCvy2L.mjs} +5 -5
  54. package/.output/server/_ssr/{auth.server-cdIC1rxo.mjs → auth.server-43UW34Rd.mjs} +165 -149
  55. package/.output/server/_ssr/{badge-BZZCX8Wn.mjs → badge-BYB825vl.mjs} +1 -1
  56. package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-BGVvqWx7.mjs} +1 -1
  57. package/.output/server/_ssr/{config.server-CydWUX0c.mjs → config.server-QRTmD4Hf.mjs} +4 -4
  58. package/.output/server/_ssr/{console-access-y52SJdFn.mjs → console-access-E91fYTIB.mjs} +2 -2
  59. package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-CgdQJQlX.mjs} +1 -1
  60. package/.output/server/_ssr/{console-features-api-BDrXaElT.mjs → console-features-api-CLRjxvy2.mjs} +5 -5
  61. package/.output/server/_ssr/{console-features-rpc-C9kKIDeK.mjs → console-features-rpc-C2rJ0u6i.mjs} +4 -4
  62. package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
  63. package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-XAvDetmn.mjs} +1 -1
  64. package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
  65. package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BtRVBD0C.mjs} +3 -3
  66. package/.output/server/_ssr/{dialog-DKsDLcYQ.mjs → dialog-CcF1pxfR.mjs} +1 -1
  67. package/.output/server/_ssr/{dist-TEpM_UAD.mjs → dist-B6-irDRA.mjs} +1 -1
  68. package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-BX8ODCZT.mjs} +1 -1
  69. package/.output/server/_ssr/{empty-D-mnqnCP.mjs → empty-DkiJ7nWt.mjs} +2 -2
  70. package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
  71. package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-C_CmBF4x.mjs} +3 -3
  72. package/.output/server/_ssr/{field-Bbw5SS9L.mjs → field-CHlDI06h.mjs} +2 -2
  73. package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-BJTufthT.mjs} +2 -2
  74. package/.output/server/_ssr/{git-CTA8Aqr0.mjs → git-WSg7LY17.mjs} +2 -2
  75. package/.output/server/_ssr/{input-group-DXofNRNJ.mjs → input-group-BPZ4UtB5.mjs} +1 -1
  76. package/.output/server/_ssr/{insights-Dm2UdEf_.mjs → insights-B3YetvBK.mjs} +5 -5
  77. package/.output/server/_ssr/{insights-C7rhyg61.mjs → insights-CEABWFk4.mjs} +26 -26
  78. package/.output/server/_ssr/{insights-D6kIjZuE.mjs → insights-Dn32lJ18.mjs} +2 -2
  79. package/.output/server/_ssr/{insights-api-DNmt4PWL.mjs → insights-api-CYPf5853.mjs} +5 -5
  80. package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-Bz3sWNZm.mjs} +2 -2
  81. package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DNQ9qVVf.mjs} +2 -2
  82. package/.output/server/_ssr/{insights-failures-rpc-DkrdYXJk.mjs → insights-failures-rpc-CxPpBR1K.mjs} +11 -11
  83. package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-DOkpqnQ8.mjs} +1 -1
  84. package/.output/server/_ssr/{insights-recovery-rpc-DWLnLF_s.mjs → insights-recovery-rpc-CwnQMTE3.mjs} +7 -7
  85. package/.output/server/_ssr/{insights-rpc-CdYYZ7lE.mjs → insights-rpc-CKd5ATFI.mjs} +4 -4
  86. package/.output/server/_ssr/{insights-search-HVXIz64-.mjs → insights-search-B_92_iEj.mjs} +4 -4
  87. package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-4KDIN3Kg.mjs} +1 -1
  88. package/.output/server/_ssr/{insights-usage-rpc-CLHS5JhI.mjs → insights-usage-rpc-D90uHpJJ.mjs} +7 -7
  89. package/.output/server/_ssr/{insights-usage-rpc-BCMRZErp.mjs → insights-usage-rpc-RIMNhPtj.mjs} +4 -4
  90. package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-DmQdJZqT.mjs} +3 -3
  91. package/.output/server/_ssr/{insights_.distribution-zbVsH0TU.mjs → insights_.distribution-D42mHSe0.mjs} +14 -14
  92. package/.output/server/_ssr/{insights_.distribution-3NzANTBS.mjs → insights_.distribution-D4QWsHNo.mjs} +5 -5
  93. package/.output/server/_ssr/{insights_.distribution-BTbT0Z4H.mjs → insights_.distribution-DwjIdjQi.mjs} +2 -2
  94. package/.output/server/_ssr/{installations-BsCupWHx.mjs → installations-BIu66J6Q.mjs} +2 -2
  95. package/.output/server/_ssr/{installations-3XOT2V1j.mjs → installations-CfmO_V_R.mjs} +4 -4
  96. package/.output/server/_ssr/{installations-CpjqEYh_.mjs → installations-DyzKzWuv.mjs} +11 -11
  97. package/.output/server/_ssr/{listReleases-D_GY00SQ.mjs → listReleases-CQEceg8j.mjs} +1 -1
  98. package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
  99. package/.output/server/_ssr/native-artifact-H1MDP0Jz.mjs +593 -0
  100. package/.output/server/_ssr/{native-builds-CehTsEwY.mjs → native-builds-BCp8ICrn.mjs} +3 -3
  101. package/.output/server/_ssr/{native-builds-vYKOMlhp.mjs → native-builds-CqFeXByK.mjs} +17 -13
  102. package/.output/server/_ssr/{native-builds-DhXL5zf_.mjs → native-builds-qj346atQ.mjs} +49 -12
  103. package/.output/server/_ssr/{native-builds_._buildId-BHxp9NcZ.mjs → native-builds_._buildId-BAxkkEFo.mjs} +600 -168
  104. package/.output/server/_ssr/{native-builds_._buildId-euhJ0EI7.mjs → native-builds_._buildId-C8gsW-Rh.mjs} +3 -3
  105. package/.output/server/_ssr/nativeBuildDevice-nU480p5A.mjs +230 -0
  106. package/.output/server/_ssr/nativeBuildDownloadLink-c3tcq3G5.mjs +96 -0
  107. package/.output/server/_ssr/nativeBuildInstall-B-_lHDsS.mjs +203 -0
  108. package/.output/server/_ssr/nativeBuildQr-C5AFtpmE.mjs +115 -0
  109. package/.output/server/_ssr/{nativeBuilds-B_7BPjt_.mjs → nativeBuilds-CbxOJDhO.mjs} +61 -29
  110. package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-CX7wutet.mjs} +6 -6
  111. package/.output/server/_ssr/publicConsoleBase-3IHSHvqd.mjs +27 -0
  112. package/.output/server/_ssr/{qr-code-C7kNRIDX.mjs → qr-code-pENFuyy9.mjs} +1 -1
  113. package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-C7sUFDwa.mjs} +2 -2
  114. package/.output/server/_ssr/{release-adoption-rpc-BF8svHjV.mjs → release-adoption-rpc-BBwJO2hu.mjs} +9 -9
  115. package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-LLYlRnUB.mjs} +4 -4
  116. package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-D9dAMI17.mjs} +3 -3
  117. package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-EPhok_Py.mjs} +1 -1
  118. package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-DaZ7ifUF.mjs} +2 -2
  119. package/.output/server/_ssr/{remote-config-Bn-BZgDt.mjs → remote-config-B1g7vrQD.mjs} +2 -2
  120. package/.output/server/_ssr/{remote-config-ofOYh91b.mjs → remote-config-BDijmvj1.mjs} +2 -2
  121. package/.output/server/_ssr/{remote-config-DdukdePk.mjs → remote-config-DjeXVIcr.mjs} +18 -18
  122. package/.output/server/_ssr/{remote-config-rpc-CzSU_Gwg.mjs → remote-config-rpc-B7bzKw4N.mjs} +5 -5
  123. package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
  124. package/.output/server/_ssr/{router-BQikCEhb.mjs → router-DhxgFNWn.mjs} +101 -50
  125. package/.output/server/_ssr/{routes-Brx45XtQ.mjs → routes-BC-rBuu_.mjs} +25 -25
  126. package/.output/server/_ssr/{routes-CTo-A_dj.mjs → routes-BDriEBtF.mjs} +12 -12
  127. package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-BsTTLV-B.mjs} +4 -4
  128. package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-3oDJJFWa.mjs} +1 -1
  129. package/.output/server/_ssr/{schema-migration-rpc-BcwNAFZJ.mjs → schema-migration-rpc-CNMqY0RE.mjs} +4 -4
  130. package/.output/server/_ssr/{select-Dk_Yv0IG.mjs → select-hFD2e3Bh.mjs} +1 -1
  131. package/.output/server/_ssr/{server-b1jUGuT2.mjs → server-D_hG9iIq.mjs} +6 -6
  132. package/.output/server/_ssr/{sidebar-CsRdKfb2.mjs → sidebar-Dmq4j1qr.mjs} +2 -2
  133. package/.output/server/_ssr/ssr.mjs +1 -1
  134. package/.output/server/_ssr/{start-BvDsQehg.mjs → start-RjhaPVFE.mjs} +2 -2
  135. package/.output/server/_ssr/{switch-DpYvZqIf.mjs → switch-CkNsEp9k.mjs} +2 -2
  136. package/.output/server/_ssr/{table-BAP-tdNn.mjs → table-CTtXogFJ.mjs} +1 -1
  137. package/.output/server/_ssr/{tabs-DGN9JEGV.mjs → tabs-BTKDM4AJ.mjs} +2 -2
  138. package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-DPYzv9bE.mjs} +3 -3
  139. package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-CmHbryZT.mjs} +2 -2
  140. package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-NmbU0MD2.mjs} +1 -1
  141. package/.output/server/_tanstack-start-manifest_v-BuGAtKIu.mjs +189 -0
  142. package/.output/server/index.mjs +275 -275
  143. package/package.json +7 -7
  144. package/src/components/features/native-builds/BuiltInBundleCard.tsx +82 -33
  145. package/src/components/features/native-builds/InstallCard.tsx +246 -46
  146. package/src/components/features/native-builds/IosInstall.tsx +300 -0
  147. package/src/components/features/native-builds/NativeBuildsTable.tsx +3 -0
  148. package/src/components/features/native-builds/PatchesCard.tsx +3 -2
  149. package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +4 -4
  150. package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
  151. package/src/components/features/native-builds/StoreSubmission.tsx +1 -1
  152. package/src/lib/api-rpc.ts +55 -6
  153. package/src/lib/api.ts +85 -12
  154. package/src/lib/native-builds.ts +73 -11
  155. package/src/lib/server/local-console.ts +1 -1
  156. package/src/lib/server/nativeBuildDevice.ts +274 -0
  157. package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
  158. package/src/lib/server/nativeBuildInstall.ts +355 -0
  159. package/src/lib/server/nativeBuildQr.ts +114 -24
  160. package/src/lib/server/nativeBuilds.ts +87 -33
  161. package/src/lib/server/plistText.ts +17 -0
  162. package/src/lib/server/publicConsoleBase.ts +17 -0
  163. package/src/routeTree.gen.ts +114 -0
  164. package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +17 -0
  165. package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +17 -0
  166. package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +17 -0
  167. package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
  168. package/src/routes/[_]hot-updater/native-builds/preview-qr.ts +14 -0
  169. package/src/routes/api/native-builds/$buildId/download.ts +22 -1
  170. package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
  171. package/.output/public/assets/api-P2g8dCNg.js +0 -1
  172. package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
  173. package/.output/public/assets/insights-BSVGfxSL.js +0 -1
  174. package/.output/public/assets/insights-NK5B6ReS.js +0 -2
  175. package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
  176. package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
  177. package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
  178. package/.output/public/assets/native-builds-BGgFQTDW.js +0 -2
  179. package/.output/public/assets/native-builds-BOC71grI.js +0 -1
  180. package/.output/public/assets/native-builds-CxomzFqe.js +0 -1
  181. package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
  182. package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
  183. package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
  184. package/.output/public/assets/routes-BDdBIxYS.js +0 -1
  185. package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
  186. package/.output/server/_tanstack-start-manifest_v-uhJWytDm.mjs +0 -184
  187. /package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-fiaucvsO.js} +0 -0
  188. /package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-DCTtCP5t.js} +0 -0
  189. /package/.output/public/assets/{alert-dialog-BqYScr9y.js → alert-dialog-Z_RNBrFc.js} +0 -0
  190. /package/.output/public/assets/{badge-DWFcDWho.js → badge-UNnTz4Dl.js} +0 -0
  191. /package/.output/public/assets/{dialog-CNUPxNxH.js → dialog-C2U9bINi.js} +0 -0
  192. /package/.output/public/assets/{dist-CPlO6ko9.js → dist-UQUhRoJi.js} +0 -0
  193. /package/.output/public/assets/{empty-B3Uwdd6k.js → empty-PAp07lsC.js} +0 -0
  194. /package/.output/public/assets/{field-D-2-mnNh.js → field-DhKRWFG5.js} +0 -0
  195. /package/.output/public/assets/{history-DqHlgSuV.js → history-DakJoeSM.js} +0 -0
  196. /package/.output/public/assets/{input-group-D3OUBk4n.js → input-group-BJfBVqeI.js} +0 -0
  197. /package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-DzBe6DHr.js} +0 -0
  198. /package/.output/public/assets/{list--NIee1FZ.js → list-B6GeoQ_b.js} +0 -0
  199. /package/.output/public/assets/{plus-BReVKct-.js → plus-BVhOauU3.js} +0 -0
  200. /package/.output/public/assets/{refresh-cw-B9HHjLej.js → refresh-cw-C6svDMfM.js} +0 -0
  201. /package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-BscR0TsX.js} +0 -0
  202. /package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-CxFW64IG.js} +0 -0
  203. /package/.output/public/assets/{search-BCel4Oy6.js → search-bIYGuFCt.js} +0 -0
  204. /package/.output/public/assets/{smartphone-CMaSy_ir.js → smartphone-Bn5FtEwt.js} +0 -0
  205. /package/.output/public/assets/{switch-BpdiHL_t.js → switch-DtUu1RCw.js} +0 -0
  206. /package/.output/public/assets/{table-Bpy3SvSo.js → table-B22H8-RL.js} +0 -0
  207. /package/.output/public/assets/{tabs-Xmt7tZeG.js → tabs-Fgz3sA51.js} +0 -0
  208. /package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-7gOxArtb.js} +0 -0
  209. /package/.output/public/assets/{uuidv7-zXMtwR9Q.js → uuidv7-BLyD3pAM.js} +0 -0
  210. /package/.output/public/assets/{valueToPercent-BLwGy_xK.js → valueToPercent-DRLgSP0P.js} +0 -0
@@ -1,23 +1,26 @@
1
1
  import { i as __toESM } from "../_runtime.mjs";
2
2
  import { bt as require_react, yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
- import { B as Download, J as ChevronLeft, M as HardDrive, P as GitBranch, S as PackageOpen, W as CircleCheck, _ as RefreshCw, i as TriangleAlert, j as History, q as ChevronRight, tt as ArrowUpRight } from "../_libs/lucide-react.mjs";
4
- import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, k as cn, t as Button$1 } from "./sidebar-CsRdKfb2.mjs";
5
- import { a as Badge, d as CardTitle, i as AlertTitle, n as AlertAction, o as Card, r as AlertDescription, s as CardContent, t as Alert, u as CardHeader } from "./badge-BZZCX8Wn.mjs";
6
- import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-BAP-tdNn.mjs";
3
+ import { B as Download, J as ChevronLeft, M as HardDrive, P as GitBranch, S as PackageOpen, W as CircleCheck, _ as RefreshCw, i as TriangleAlert, j as History, q as ChevronRight, tt as ArrowUpRight, u as Smartphone, z as ExternalLink } from "../_libs/lucide-react.mjs";
4
+ import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, k as cn, t as Button$1 } from "./sidebar-Dmq4j1qr.mjs";
7
5
  import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
8
- import { a as EmptyMedia, i as EmptyHeader, n as EmptyContent, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-D-mnqnCP.mjs";
9
- import { i as NUMERIC_COHORT_SIZE } from "./dist-TEpM_UAD.mjs";
10
- import { c as nativeBuildFileName, d as platformLabel, i as nativeBuildArtifacts, p as simulatorInstallCommand, r as formatByteSize, s as nativeBuildDownloadPath, t as apkInstallCommand, u as nativeBuildTarget } from "./native-builds-DhXL5zf_.mjs";
11
- import { t as PlatformIcon } from "./PlatformIcon-CFLiTjh1.mjs";
12
- import { d as useNativeBuildPatchesQuery, l as useNativeBuildDetailQuery, u as useNativeBuildDownloadUrlQuery } from "./api-oJajV-DG.mjs";
13
- import { t as TimestampDisplay } from "./git-CTA8Aqr0.mjs";
14
- import { a as isSubmitted, i as StoreSubmissionBadge, n as CopyableText, r as ShortHash, t as CommitLink } from "./StoreSubmission-Bvfq8pWk.mjs";
15
- import { t as qrCodePath } from "./qr-code-C7kNRIDX.mjs";
16
- import { t as Route } from "./native-builds_._buildId-euhJ0EI7.mjs";
17
- import { t as RolloutPercentageBadge } from "./RolloutPercentageBadge-BFBh0QWv.mjs";
18
- //#region node_modules/.nitro/vite/services/ssr/assets/native-builds_._buildId-BHxp9NcZ.js
6
+ import { a as EmptyMedia, i as EmptyHeader, n as EmptyContent, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-DkiJ7nWt.mjs";
7
+ import { a as Badge, d as CardTitle, i as AlertTitle, n as AlertAction, o as Card, r as AlertDescription, s as CardContent, t as Alert, u as CardHeader } from "./badge-BYB825vl.mjs";
8
+ import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-CTtXogFJ.mjs";
9
+ import { n as toast } from "../_libs/sonner.mjs";
10
+ import { i as NUMERIC_COHORT_SIZE } from "./dist-B6-irDRA.mjs";
11
+ import { C as shellQuote, a as consolePathOf, b as nativeBuildTarget, d as nativeBuildDeviceAddCommand, f as nativeBuildDeviceProfilePath, g as nativeBuildItmsUrl, h as nativeBuildInstallCommand, m as nativeBuildFileName, n as IOS_UDID_STORAGE_KEY, o as formatByteSize, p as nativeBuildDownloadPath, r as NATIVE_BUILD_INSTALL_LINK_TTL_MS, s as nativeBuildArtifacts, t as IOS_UDID_PATTERN, x as platformLabel, y as nativeBuildSignedDownloadUrl } from "./native-builds-qj346atQ.mjs";
12
+ import { t as PlatformIcon } from "./PlatformIcon-BsU0d0jN.mjs";
13
+ import { d as useNativeBuildDownloadLinkQuery, f as useNativeBuildDownloadUrlQuery, l as useMarkNativeBuildMutation, m as useNativeBuildPatchesQuery, p as useNativeBuildInstallEligibilityQuery, u as useNativeBuildDetailQuery } from "./api-BQ8ztUgU.mjs";
14
+ import { n as require_dayjs_min } from "../_libs/dayjs.mjs";
15
+ import { t as TimestampDisplay } from "./git-WSg7LY17.mjs";
16
+ import { a as isSubmitted, i as StoreSubmissionBadge, n as CopyableText, r as ShortHash, t as CommitLink } from "./StoreSubmission-BqXKtpqW.mjs";
17
+ import { t as qrCodePath } from "./qr-code-pENFuyy9.mjs";
18
+ import { t as Route } from "./native-builds_._buildId-C8gsW-Rh.mjs";
19
+ import { t as RolloutPercentageBadge } from "./RolloutPercentageBadge-axz7VuIZ.mjs";
20
+ //#region node_modules/.nitro/vite/services/ssr/assets/native-builds_._buildId-BAxkkEFo.js
19
21
  var import_react = /* @__PURE__ */ __toESM(require_react());
20
22
  var import_jsx_runtime = require_jsx_runtime();
23
+ var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min());
21
24
  function Row({ label, children }) {
22
25
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
23
26
  className: "grid gap-1 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4",
@@ -30,51 +33,81 @@ function Row({ label, children }) {
30
33
  })]
31
34
  });
32
35
  }
33
- /** Whether new deploys patch from this build, or from a newer one of its scope. */
34
- function BaselineStatus({ detail }) {
35
- const { build, newestInScope } = detail;
36
- if (newestInScope === null) return null;
37
- if (newestInScope.id === build.id) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
38
- className: "flex items-start gap-2 rounded-md border bg-muted/40 p-3 text-xs",
39
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CircleCheck, {
40
- "aria-hidden": "true",
41
- className: "mt-0.5 size-3.5 shrink-0 text-muted-foreground"
42
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
43
- className: "font-medium",
44
- children: "Current baseline."
45
- }), " New deploys to this scope add a patch from this build's bundle."] })]
36
+ /** Marks or clears the build where the card says what the mark does. */
37
+ function StoreBuildAction({ detail }) {
38
+ const { build, channel } = detail;
39
+ const mark = useMarkNativeBuildMutation();
40
+ if (channel.startsWith("sandbox-")) return null;
41
+ const storeBuild = build.store_build !== true;
42
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
43
+ className: "min-h-11 shrink-0 sm:min-h-8",
44
+ disabled: mark.isPending,
45
+ onClick: () => mark.mutate({
46
+ id: build.id,
47
+ storeBuild
48
+ }, {
49
+ onSuccess: () => {
50
+ toast.success(storeBuild ? "Marked as the store build" : "Mark cleared");
51
+ },
52
+ onError: (error) => {
53
+ toast.error("Could not change the mark", { description: error.message });
54
+ }
55
+ }),
56
+ size: "sm",
57
+ type: "button",
58
+ variant: "outline",
59
+ children: storeBuild ? "Mark as store build" : "Clear mark"
46
60
  });
61
+ }
62
+ /**
63
+ * Which build new deploys patch from: this one, as the store build or as the
64
+ * newest with no mark, or another, which it links to.
65
+ */
66
+ function BaselineStatus({ detail }) {
67
+ const { build, newestInScope, storeBuildInScope } = detail;
68
+ const base = storeBuildInScope ?? newestInScope;
69
+ if (base === null) return null;
70
+ const isBase = base.id === build.id;
47
71
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
48
- className: "flex items-start gap-2 rounded-md border bg-muted/40 p-3 text-xs",
49
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(History, {
50
- "aria-hidden": "true",
51
- className: "mt-0.5 size-3.5 shrink-0 text-muted-foreground"
52
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
53
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
72
+ className: "flex flex-col gap-3 rounded-md border bg-muted/40 p-3 text-xs sm:flex-row sm:items-center sm:justify-between",
73
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
74
+ className: "flex items-start gap-2",
75
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(isBase ? CircleCheck : History, {
76
+ "aria-hidden": "true",
77
+ className: "mt-0.5 size-3.5 shrink-0 text-muted-foreground"
78
+ }), storeBuildInScope?.id === build.id ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
54
79
  className: "font-medium",
55
- children: "Superseded"
56
- }),
57
- " by",
58
- " ",
59
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
60
- className: "inline-flex items-center gap-0.5 font-medium underline underline-offset-4",
61
- params: { buildId: newestInScope.id },
62
- to: "/native-builds/$buildId",
63
- children: [
64
- platformLabel(newestInScope.platform),
65
- " ",
66
- nativeBuildArtifacts[newestInScope.artifact_kind].label,
67
- " ·",
68
- " ",
69
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, { uuid: newestInScope.id }),
70
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, {
71
- "aria-hidden": "true",
72
- className: "size-3"
73
- })
74
- ]
75
- }),
76
- ". New deploys patch from that build, so this one gets no new patches."
77
- ] })]
80
+ children: "Store build."
81
+ }), " New deploys to this scope patch from this build."] }) : isBase ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
82
+ className: "font-medium",
83
+ children: "Current baseline."
84
+ }), " The newest build, and no store build is marked. New deploys to this scope patch from this build."] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
85
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
86
+ className: "font-medium",
87
+ children: "Not the base."
88
+ }),
89
+ " New deploys patch from",
90
+ " ",
91
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
92
+ className: "inline-flex items-center gap-0.5 font-medium underline underline-offset-4",
93
+ params: { buildId: base.id },
94
+ to: "/native-builds/$buildId",
95
+ children: [
96
+ platformLabel(base.platform),
97
+ " ",
98
+ nativeBuildArtifacts[base.artifact_kind].label,
99
+ " ·",
100
+ " ",
101
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, { uuid: base.id }),
102
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, {
103
+ "aria-hidden": "true",
104
+ className: "size-3"
105
+ })
106
+ ]
107
+ }),
108
+ ", so this one gets no new patches."
109
+ ] })]
110
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreBuildAction, { detail })]
78
111
  });
79
112
  }
80
113
  /**
@@ -210,6 +243,225 @@ function QrCode({ value, label, className }) {
210
243
  });
211
244
  }
212
245
  /**
246
+ * What an install does to the App Store's copy of the app on this iPhone, with
247
+ * the same bundle ID. The one line to change after trying it on a real iPhone.
248
+ */
249
+ var IOS_STORE_APP_NOTE = "With the same bundle ID, this install replaces the App Store's copy of the app on this iPhone.";
250
+ var ACTION_CLASS = "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit";
251
+ /** Whether this browser runs on an iPhone or iPad: an iPad says it is a Mac. */
252
+ var isIosBrowser = (browser) => /iPhone|iPod|iPad/u.test(browser.userAgent) || /Macintosh/u.test(browser.userAgent) && browser.maxTouchPoints > 1;
253
+ /**
254
+ * Whether this page is open on an iPhone, and the UDID the phone kept when it
255
+ * checked itself. Read after the page mounts: the server renders it without a
256
+ * browser. Null until then.
257
+ */
258
+ var useIosDevice = () => {
259
+ const [device, setDevice] = (0, import_react.useState)(null);
260
+ (0, import_react.useEffect)(() => {
261
+ let udid = null;
262
+ try {
263
+ udid = window.localStorage.getItem(IOS_UDID_STORAGE_KEY);
264
+ } catch {}
265
+ setDevice({
266
+ ios: isIosBrowser(navigator),
267
+ udid: udid !== null && IOS_UDID_PATTERN.test(udid) ? udid : null
268
+ });
269
+ }, []);
270
+ return device;
271
+ };
272
+ /**
273
+ * How long before its link expires the page stops offering it: the installer
274
+ * fetches the manifest, then the IPA, only after the tester confirms the prompt.
275
+ */
276
+ var INSTALL_LINK_MARGIN_MS = 300 * 1e3;
277
+ /**
278
+ * Whether a link read at `readAtMs` is past offering, measured on this phone's
279
+ * clock from when it arrived, since the phone's clock may disagree with the
280
+ * server's. A failed refresh leaves `readAtMs` where it was. Timers stop while
281
+ * the phone sleeps, so coming back to the page checks again.
282
+ */
283
+ var useInstallLinkExpired = (readAtMs, holdsLink) => {
284
+ const [, check] = (0, import_react.useReducer)((count) => count + 1, 0);
285
+ const expiresAtMs = readAtMs + NATIVE_BUILD_INSTALL_LINK_TTL_MS - INSTALL_LINK_MARGIN_MS;
286
+ (0, import_react.useEffect)(() => {
287
+ if (!holdsLink) return;
288
+ const timer = setTimeout(check, Math.max(0, expiresAtMs - Date.now()));
289
+ document.addEventListener("visibilitychange", check);
290
+ window.addEventListener("pageshow", check);
291
+ return () => {
292
+ clearTimeout(timer);
293
+ document.removeEventListener("visibilitychange", check);
294
+ window.removeEventListener("pageshow", check);
295
+ };
296
+ }, [expiresAtMs, holdsLink]);
297
+ return holdsLink && Date.now() >= expiresAtMs;
298
+ };
299
+ /** In place of Install once its link has expired: it never offers a dead link. */
300
+ function RenewInstallLink({ fetching, onRenew }) {
301
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
302
+ className: "flex min-w-0 flex-col gap-2",
303
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
304
+ className: "text-xs text-muted-foreground",
305
+ role: "status",
306
+ children: ["This install link has expired.", fetching ? " Getting a new one." : ""]
307
+ }), fetching ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
308
+ className: ACTION_CLASS,
309
+ onClick: onRenew,
310
+ variant: "outline",
311
+ children: "Get a new link"
312
+ })]
313
+ });
314
+ }
315
+ function InstallButton({ build, token, secondary = false }) {
316
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
317
+ className: buttonVariants({
318
+ className: ACTION_CLASS,
319
+ variant: secondary ? "outline" : "default"
320
+ }),
321
+ href: nativeBuildItmsUrl(window.location, build.id, token),
322
+ children: secondary ? "Install anyway" : "Install"
323
+ });
324
+ }
325
+ /** What a tester reads before Install opens the system's install prompt. */
326
+ function InstallNotes() {
327
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
328
+ className: "flex min-w-0 flex-col gap-1",
329
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
330
+ className: "text-xs text-muted-foreground",
331
+ children: "On iOS 16 or later, the app opens only with Developer Mode on: Settings, Privacy & Security, Developer Mode."
332
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
333
+ className: "text-xs text-muted-foreground",
334
+ children: IOS_STORE_APP_NOTE
335
+ })]
336
+ });
337
+ }
338
+ /**
339
+ * The link that hands this iPhone the profile that reads its UDID, under the
340
+ * console's path. A plain link, so iOS offers the profile.
341
+ */
342
+ function CheckThisIphone({ build, outline = false }) {
343
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
344
+ className: buttonVariants({
345
+ className: ACTION_CLASS,
346
+ variant: outline ? "outline" : "default"
347
+ }),
348
+ href: `${consolePathOf(window.location, build.id)}${nativeBuildDeviceProfilePath(build.id)}`,
349
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Smartphone, { "data-icon": "inline-start" }), "Check this iPhone"]
350
+ });
351
+ }
352
+ /**
353
+ * Installing an IPA from this iPhone: the build's IPA says what it allows, read
354
+ * once when the page opens here, so a phone it doesn't list goes to its UDID
355
+ * rather than a download iOS refuses at the end. App Store Connect isn't asked:
356
+ * a device registered after this IPA was signed still isn't in it.
357
+ */
358
+ function IosInstall({ build, udid }) {
359
+ const eligibility = useNativeBuildInstallEligibilityQuery(build.id, udid);
360
+ const { refetch } = eligibility;
361
+ const expired = useInstallLinkExpired(eligibility.dataUpdatedAt, eligibility.data?.status === "installable");
362
+ (0, import_react.useEffect)(() => {
363
+ if (expired) refetch();
364
+ }, [expired, refetch]);
365
+ if (eligibility.isPending) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
366
+ "aria-label": "Reading this IPA",
367
+ className: "h-11 w-full"
368
+ });
369
+ const result = eligibility.data;
370
+ if (result === void 0 || result.status === "unavailable") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, { children: [
371
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
372
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "Installation details unavailable" }),
373
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: "The Console couldn't read this IPA from storage in parts, which takes an HTTPS download link that answers Range requests. Xcode or Apple Configurator still installs the download over USB." })
374
+ ] });
375
+ if (result.status === "store") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
376
+ className: "text-xs text-muted-foreground",
377
+ children: "This IPA is an App Store export, which installs through TestFlight, not from this page."
378
+ });
379
+ if (result.status === "expired") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
380
+ variant: "destructive",
381
+ children: [
382
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
383
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "This build's profile has expired" }),
384
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDescription, { children: [
385
+ "It expired on ",
386
+ (0, import_dayjs_min.default)(result.expiresAt).format("YYYY-MM-DD"),
387
+ ". A maintainer rebuilds it to install again."
388
+ ] })
389
+ ]
390
+ });
391
+ const token = result.link.status === "issued" ? result.link.token : null;
392
+ if (result.link.status === "no-secret") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
393
+ className: "text-xs text-muted-foreground",
394
+ role: "status",
395
+ children: [
396
+ "Set ",
397
+ result.link.secretName,
398
+ " on the Console to install from this page."
399
+ ]
400
+ });
401
+ if (token === null) return null;
402
+ const install = ({ secondary = false } = {}) => expired ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RenewInstallLink, {
403
+ fetching: eligibility.isFetching,
404
+ onRenew: () => void refetch()
405
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallButton, {
406
+ build,
407
+ secondary,
408
+ token
409
+ });
410
+ if (result.device === "included") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
411
+ className: "flex min-w-0 flex-col gap-3",
412
+ children: [
413
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
414
+ className: "text-sm font-medium",
415
+ children: "This iPhone is in this build."
416
+ }),
417
+ install(),
418
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallNotes, {})
419
+ ]
420
+ });
421
+ if (result.device === "not-included") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
422
+ className: "flex min-w-0 flex-col gap-3",
423
+ children: [
424
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
425
+ className: "flex min-w-0 flex-col gap-1",
426
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
427
+ className: "text-sm font-medium",
428
+ children: "Not in this build"
429
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
430
+ className: "text-xs text-muted-foreground",
431
+ children: "This IPA was signed without this iPhone. Send a maintainer this command, then open the newer build once they've rebuilt. Send it only if this is your iPhone."
432
+ })]
433
+ }),
434
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
435
+ label: "the command that registers this iPhone",
436
+ value: nativeBuildDeviceAddCommand(udid ?? ""),
437
+ wrap: true
438
+ }),
439
+ install({ secondary: true }),
440
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallNotes, {})
441
+ ]
442
+ });
443
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
444
+ className: "flex min-w-0 flex-col gap-3",
445
+ children: [
446
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
447
+ className: "flex min-w-0 flex-col gap-1",
448
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
449
+ className: "text-sm font-medium",
450
+ children: "Is this iPhone in this build?"
451
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
452
+ className: "text-xs text-muted-foreground",
453
+ children: "iOS installs this IPA only on the devices it lists. A profile reads this iPhone's ID and nothing else: allow the download, then install it from Settings, where iOS calls it not signed. Nothing stays installed."
454
+ })]
455
+ }),
456
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
457
+ className: "flex flex-col gap-2 sm:flex-row sm:flex-wrap",
458
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CheckThisIphone, { build }), install({ secondary: true })]
459
+ }),
460
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallNotes, {})
461
+ ]
462
+ });
463
+ }
464
+ /**
213
465
  * What an artifact installs on, where the file alone isn't enough: the card
214
466
  * says it once, under the QR code, or without one, in its place.
215
467
  */
@@ -228,11 +480,60 @@ var QR_CAPTIONS = {
228
480
  app: "Scan to download the .app.zip on a Mac."
229
481
  };
230
482
  /**
231
- * The QR code of the build's download: the storage's URL, which a phone
232
- * opens without the console's sign-in, read again before it expires.
483
+ * An IPA's QR code holds this page rather than a file: the iPhone that scans it
484
+ * checks whether the IPA lists it before anything downloads, and installs here.
233
485
  */
234
- function DownloadQrCode({ build }) {
235
- const downloadUrl = useNativeBuildDownloadUrlQuery(build.id, true);
486
+ function ScannablePage() {
487
+ const { origin, pathname } = window.location;
488
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
489
+ className: "flex flex-col items-center gap-2",
490
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrCode, {
491
+ className: "size-48",
492
+ label: "Open this page on an iPhone",
493
+ value: `${origin}${pathname}`
494
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
495
+ className: "max-w-56 text-center text-xs text-muted-foreground",
496
+ children: "Scan with an iPhone to install this build from here. The phone signs in to the Console first."
497
+ })]
498
+ });
499
+ }
500
+ /** A QR code of the build's download URL, with what scanning it gets. */
501
+ function ScannableUrl({ build, url, note }) {
502
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
503
+ className: "flex flex-col items-center gap-2",
504
+ children: [
505
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrCode, {
506
+ className: "size-48",
507
+ label: `Download ${nativeBuildFileName(build)}`,
508
+ value: url
509
+ }),
510
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
511
+ className: "max-w-56 text-center text-xs text-muted-foreground",
512
+ children: QR_CAPTIONS[build.artifact_kind]
513
+ }),
514
+ note ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
515
+ className: "max-w-56 text-center text-xs text-muted-foreground",
516
+ children: note
517
+ }) : null
518
+ ]
519
+ });
520
+ }
521
+ function QrProblem({ message }) {
522
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
523
+ variant: "destructive",
524
+ children: [
525
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
526
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "The download link couldn't be created" }),
527
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: message })
528
+ ]
529
+ });
530
+ }
531
+ /**
532
+ * The QR code when the Console can't sign a link: the storage's URL, which a
533
+ * phone opens without the Console's sign-in, but only until it expires.
534
+ */
535
+ function StorageQrCode({ build }) {
536
+ const downloadUrl = useNativeBuildDownloadUrlQuery(build.id);
236
537
  const url = downloadUrl.data?.url;
237
538
  if (url === null) {
238
539
  const limits = INSTALL_LIMITS[build.artifact_kind];
@@ -241,24 +542,12 @@ function DownloadQrCode({ build }) {
241
542
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "This storage gives no download link a phone can open without signing in, so there is no QR code. Download the build here, or open this page on the phone signed in to the console." }), limits ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: limits }) : null]
242
543
  });
243
544
  }
244
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
245
- className: "flex flex-col items-center gap-2",
246
- children: [url === void 0 ? downloadUrl.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
247
- variant: "destructive",
248
- children: [
249
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
250
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "The download link couldn't be created" }),
251
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: downloadUrl.error.message })
252
- ]
253
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "size-48" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrCode, {
254
- className: "size-48",
255
- label: `Download ${nativeBuildFileName(build)}`,
256
- value: url
257
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
258
- className: "max-w-56 text-center text-xs text-muted-foreground",
259
- children: QR_CAPTIONS[build.artifact_kind]
260
- })]
545
+ if (url !== void 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScannableUrl, {
546
+ build,
547
+ note: "This link expires. If the download fails, reload this page.",
548
+ url
261
549
  });
550
+ return downloadUrl.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrProblem, { message: downloadUrl.error.message }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "size-48" });
262
551
  }
263
552
  /** The store's label of a submitted build. */
264
553
  function SubmittedVersion({ build }) {
@@ -269,6 +558,64 @@ function SubmittedVersion({ build }) {
269
558
  });
270
559
  }
271
560
  /**
561
+ * Where a store's testers and its people get a build: a tester's own link needs
562
+ * the app's ID in the store, which only the pull request's comment has.
563
+ */
564
+ var STORE_CONSOLES = {
565
+ testflight: {
566
+ name: "App Store Connect",
567
+ url: "https://appstoreconnect.apple.com/apps"
568
+ },
569
+ "play-internal": {
570
+ name: "Play Console",
571
+ url: "https://play.google.com/console"
572
+ }
573
+ };
574
+ /**
575
+ * A build a store took installs from the store, so the card leads with it, and
576
+ * the file stays for keeping, with no QR code or signed link to ask for.
577
+ */
578
+ function StoreInstallCard({ build }) {
579
+ const store = STORE_CONSOLES[build.submitted_to];
580
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
581
+ className: "overflow-hidden shadow-sm",
582
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
583
+ className: "border-b px-4 py-3",
584
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
585
+ className: "text-sm",
586
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Install" })
587
+ })
588
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardContent, {
589
+ className: "flex min-w-0 flex-col gap-4 p-4 sm:p-6",
590
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallSteps, { build }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
591
+ className: "flex flex-col gap-2 sm:flex-row sm:flex-wrap",
592
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
593
+ className: buttonVariants({ className: "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit" }),
594
+ href: store.url,
595
+ rel: "noreferrer",
596
+ target: "_blank",
597
+ children: [
598
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ExternalLink, { "data-icon": "inline-start" }),
599
+ "Open ",
600
+ store.name
601
+ ]
602
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
603
+ className: buttonVariants({
604
+ className: "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
605
+ variant: "outline"
606
+ }),
607
+ download: true,
608
+ href: nativeBuildDownloadPath(build.id),
609
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Download, { "data-icon": "inline-start" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
610
+ className: "text-left [overflow-wrap:anywhere]",
611
+ children: ["Download ", nativeBuildFileName(build)]
612
+ })]
613
+ })]
614
+ })]
615
+ })]
616
+ });
617
+ }
618
+ /**
272
619
  * How else the artifact installs, beside its QR code's caption and its
273
620
  * download: none of it repeats the caption.
274
621
  */
@@ -276,22 +623,33 @@ function InstallSteps({ build }) {
276
623
  switch (build.artifact_kind) {
277
624
  case "apk": return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
278
625
  className: "flex min-w-0 flex-col gap-2",
279
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
280
- className: "text-xs text-muted-foreground",
281
- children: "On an emulator or a phone over USB, download the APK and install it:"
282
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
283
- label: "the install command",
284
- value: apkInstallCommand(build)
285
- })]
626
+ children: [
627
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
628
+ className: "text-xs text-muted-foreground",
629
+ children: "Your browser needs the \"Install unknown apps\" permission."
630
+ }),
631
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
632
+ className: "text-xs text-muted-foreground",
633
+ children: "If this package is already installed with another signing key, such as a Play copy, the install fails. Uninstall that copy first, or build with sandbox: true, whose .sandbox ID installs beside it."
634
+ }),
635
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
636
+ className: "text-xs text-muted-foreground",
637
+ children: "On an emulator or a phone over USB, install and open it from your project:"
638
+ }),
639
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
640
+ label: "the install command",
641
+ value: nativeBuildInstallCommand(build)
642
+ })
643
+ ]
286
644
  });
287
645
  case "app": return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
288
646
  className: "flex min-w-0 flex-col gap-2",
289
647
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
290
648
  className: "text-xs text-muted-foreground",
291
- children: "It runs only in the iOS Simulator. Install it on the booted one:"
649
+ children: "It runs only in the iOS Simulator. In your project, install and open it on the booted one:"
292
650
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
293
651
  label: "the install command",
294
- value: simulatorInstallCommand(build)
652
+ value: nativeBuildInstallCommand(build)
295
653
  })]
296
654
  });
297
655
  case "aab": return isSubmitted(build) ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
@@ -317,13 +675,13 @@ function InstallSteps({ build }) {
317
675
  children: [
318
676
  "On TestFlight as ",
319
677
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubmittedVersion, { build }),
320
- "."
678
+ ". Internal testers install it from the TestFlight app once App Store Connect has processed it, and a preview's pull request comment shows that state."
321
679
  ]
322
680
  }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
323
681
  className: "flex min-w-0 flex-col gap-2",
324
682
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
325
683
  className: "text-xs text-muted-foreground",
326
- children: "Over USB, Xcode or Apple Configurator installs it. For testers:"
684
+ children: "Over USB, Xcode or Apple Configurator installs it. For testers without a registered device:"
327
685
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
328
686
  label: "the TestFlight command",
329
687
  value: "npx hot-updater testflight"
@@ -332,13 +690,55 @@ function InstallSteps({ build }) {
332
690
  }
333
691
  }
334
692
  /**
335
- * Installs one native build: every artifact by a QR code of its download,
336
- * which a phone scans, and by download here; an APK also with `adb`, a
337
- * simulator app with `xcrun simctl`, and an IPA's or an AAB's testers through
338
- * its store.
693
+ * The signed link to copy, which a script or a teammate uses without signing
694
+ * in. A local Console has none, and says nothing about it on every build.
695
+ */
696
+ function SignedLink({ link, url }) {
697
+ if (link?.status === "no-secret") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
698
+ className: "text-xs text-muted-foreground",
699
+ role: "status",
700
+ children: [
701
+ "Set ",
702
+ link.secretName,
703
+ " on the Console to create links."
704
+ ]
705
+ });
706
+ if (link?.status !== "issued" || url === null) return null;
707
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
708
+ className: "flex min-w-0 flex-col gap-2",
709
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
710
+ label: "the download link",
711
+ value: url
712
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
713
+ className: "text-xs text-muted-foreground",
714
+ children: [
715
+ "Anyone with this link can download this build until",
716
+ " ",
717
+ (0, import_dayjs_min.default)(link.expiresAt).format("YYYY-MM-DD"),
718
+ "."
719
+ ]
720
+ })]
721
+ });
722
+ }
723
+ /**
724
+ * Installs one native build: an IPA or AAB a store took, from the store; an IPA
725
+ * on the iPhone that opens this page, whose QR code on any other screen holds
726
+ * this page; every other artifact by a QR code of its signed link, which a phone
727
+ * without a session scans, and by download here or the link itself; an APK or a
728
+ * simulator app also with `native-build install`, and an IPA's or an AAB's
729
+ * testers through its store. Where the Console can't sign, the QR code holds the
730
+ * storage's URL and the download asks for the session.
339
731
  */
340
732
  function InstallCard({ build }) {
733
+ return isSubmitted(build) && (build.artifact_kind === "ipa" || build.artifact_kind === "aab") ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreInstallCard, { build }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FileInstallCard, { build });
734
+ }
735
+ function FileInstallCard({ build }) {
341
736
  const fileName = nativeBuildFileName(build);
737
+ const link = useNativeBuildDownloadLinkQuery(build.id);
738
+ const signedUrl = link.data?.status === "issued" ? nativeBuildSignedDownloadUrl(window.location, build.id, link.data.token) : null;
739
+ const device = useIosDevice();
740
+ const ipa = build.artifact_kind === "ipa";
741
+ const onPhone = ipa && device?.ios === true;
342
742
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
343
743
  className: "overflow-hidden shadow-sm",
344
744
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
@@ -348,21 +748,34 @@ function InstallCard({ build }) {
348
748
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Install" })
349
749
  })
350
750
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardContent, {
351
- className: "grid gap-6 p-4 sm:grid-cols-[12rem_minmax(0,1fr)] sm:p-6",
352
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DownloadQrCode, { build }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
751
+ className: onPhone ? "flex min-w-0 flex-col gap-6 p-4 sm:p-6" : "grid gap-6 p-4 sm:grid-cols-[12rem_minmax(0,1fr)] sm:p-6",
752
+ children: [onPhone ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IosInstall, {
753
+ build,
754
+ udid: device.udid
755
+ }) : ipa && signedUrl !== null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScannablePage, {}) : signedUrl !== null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScannableUrl, {
756
+ build,
757
+ url: signedUrl
758
+ }) : link.data !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StorageQrCode, { build }) : link.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrProblem, { message: link.error.message }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "size-48" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
353
759
  className: "flex min-w-0 flex-col gap-4",
354
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallSteps, { build }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
355
- className: buttonVariants({
356
- className: "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
357
- variant: "outline"
760
+ children: [
761
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallSteps, { build }),
762
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
763
+ className: buttonVariants({
764
+ className: "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
765
+ variant: "outline"
766
+ }),
767
+ download: true,
768
+ href: signedUrl ?? nativeBuildDownloadPath(build.id),
769
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Download, { "data-icon": "inline-start" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
770
+ className: "text-left [overflow-wrap:anywhere]",
771
+ children: ["Download ", fileName]
772
+ })]
358
773
  }),
359
- download: true,
360
- href: nativeBuildDownloadPath(build.id),
361
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Download, { "data-icon": "inline-start" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
362
- className: "text-left [overflow-wrap:anywhere]",
363
- children: ["Download ", fileName]
364
- })]
365
- })]
774
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SignedLink, {
775
+ link: link.data,
776
+ url: signedUrl
777
+ })
778
+ ]
366
779
  })]
367
780
  })]
368
781
  });
@@ -432,7 +845,8 @@ function PatchesCard({ detail, page, onPage }) {
432
845
  }),
433
846
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyTitle, { children: "No patches from this build" }),
434
847
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EmptyDescription, { children: [
435
- "A deploy adds a patch from this build's bundle while it is its scope's newest build and the deploy config turns patches on, with ",
848
+ "A deploy adds a patch from this build's bundle while it is its scope's store build, or its newest build with none marked, and the deploy config turns patches on, with",
849
+ " ",
436
850
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
437
851
  className: "font-mono",
438
852
  children: "patch"
@@ -561,7 +975,15 @@ function FirstDownloadCell({ download }) {
561
975
  * first. It is the catalog of now, not the history.
562
976
  */
563
977
  function ServedNowCard({ detail }) {
564
- const { servedNow, patches, catalogScopeKey } = detail;
978
+ const { build, channel, servedNow, patches, catalogScopeKey } = detail;
979
+ const firstOta = servedNow.find(({ rolloutCohortCount, targetCohorts }) => rolloutCohortCount > 0 || targetCohorts.length > 0)?.bundleId;
980
+ const missingPatch = build.store_build === true && firstOta !== void 0 && firstOta !== null && firstDownloadOf(patches, firstOta).kind === "full" ? [
981
+ "npx hot-updater patch",
982
+ `-p ${build.platform}`,
983
+ `-c ${shellQuote(channel)}`,
984
+ `-b ${shellQuote(firstOta)}`,
985
+ `--base-artifact-id ${shellQuote(build.min_bundle_id)}`
986
+ ].join(" ") : null;
565
987
  const scopeLink = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
566
988
  className: "inline-flex items-center gap-0.5 underline-offset-4 hover:underline",
567
989
  search: { scopeKey: catalogScopeKey },
@@ -607,68 +1029,78 @@ function ServedNowCard({ detail }) {
607
1029
  to: "/",
608
1030
  children: "All releases in this scope"
609
1031
  }) })]
610
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Table, {
611
- "aria-label": "Served now",
612
- className: "table-fixed",
613
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
614
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Bundle" }),
615
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
616
- className: "hidden w-40 md:table-cell",
617
- children: "Rollout"
618
- }),
619
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
620
- className: "hidden w-32 sm:table-cell",
621
- children: "Created"
622
- }),
623
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
624
- className: "w-32",
625
- children: "First OTA download"
626
- })
627
- ] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableBody, { children: servedNow.map((release) => {
628
- const bundleId = release.bundleId;
629
- const percentage = release.rolloutCohortCount / NUMERIC_COHORT_SIZE * 100;
630
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
631
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
632
- className: "py-3 whitespace-normal",
633
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
634
- className: "flex min-w-0 flex-col gap-1",
635
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
636
- className: "font-mono text-xs [overflow-wrap:anywhere] underline-offset-4 hover:underline",
637
- search: { releaseId: release.releaseId },
638
- title: bundleId,
639
- to: "/",
640
- translate: "no",
641
- children: bundleId
642
- }), release.message ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
643
- className: "text-xs text-muted-foreground",
644
- children: release.message
645
- }) : null]
646
- })
1032
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1033
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Table, {
1034
+ "aria-label": "Served now",
1035
+ className: "table-fixed",
1036
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
1037
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Bundle" }),
1038
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
1039
+ className: "hidden w-40 md:table-cell",
1040
+ children: "Rollout"
647
1041
  }),
648
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
649
- className: "hidden md:table-cell",
650
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
651
- className: "flex flex-wrap gap-1",
652
- children: [release.targetCohorts.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
653
- variant: "secondary",
654
- children: release.targetCohorts.length === 1 ? "1 cohort" : `${release.targetCohorts.length} cohorts`
655
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageBadge, { percentage }), release.shouldForceUpdate ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
656
- variant: "outline",
657
- children: "Forced"
658
- }) : null]
659
- })
660
- }),
661
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
662
- className: "hidden sm:table-cell",
663
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, { uuid: bundleId })
1042
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
1043
+ className: "hidden w-32 sm:table-cell",
1044
+ children: "Created"
664
1045
  }),
665
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FirstDownloadCell, { download: firstDownloadOf(patches, bundleId) }) })
666
- ] }, release.releaseId);
667
- }) })]
668
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
669
- className: "border-t px-4 py-3 text-xs text-muted-foreground",
670
- children: ["What the update check serves an install of this build now, newest first: not the history. ", scopeLink]
671
- })] })
1046
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
1047
+ className: "w-32",
1048
+ children: "First OTA download"
1049
+ })
1050
+ ] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableBody, { children: servedNow.map((release) => {
1051
+ const bundleId = release.bundleId;
1052
+ const percentage = release.rolloutCohortCount / NUMERIC_COHORT_SIZE * 100;
1053
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
1054
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1055
+ className: "py-3 whitespace-normal",
1056
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1057
+ className: "flex min-w-0 flex-col gap-1",
1058
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
1059
+ className: "font-mono text-xs [overflow-wrap:anywhere] underline-offset-4 hover:underline",
1060
+ search: { releaseId: release.releaseId },
1061
+ title: bundleId,
1062
+ to: "/",
1063
+ translate: "no",
1064
+ children: bundleId
1065
+ }), release.message ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1066
+ className: "text-xs text-muted-foreground",
1067
+ children: release.message
1068
+ }) : null]
1069
+ })
1070
+ }),
1071
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1072
+ className: "hidden md:table-cell",
1073
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1074
+ className: "flex flex-wrap gap-1",
1075
+ children: [release.targetCohorts.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
1076
+ variant: "secondary",
1077
+ children: release.targetCohorts.length === 1 ? "1 cohort" : `${release.targetCohorts.length} cohorts`
1078
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageBadge, { percentage }), release.shouldForceUpdate ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
1079
+ variant: "outline",
1080
+ children: "Forced"
1081
+ }) : null]
1082
+ })
1083
+ }),
1084
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1085
+ className: "hidden sm:table-cell",
1086
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, { uuid: bundleId })
1087
+ }),
1088
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FirstDownloadCell, { download: firstDownloadOf(patches, bundleId) }) })
1089
+ ] }, release.releaseId);
1090
+ }) })]
1091
+ }),
1092
+ missingPatch === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1093
+ className: "flex flex-col gap-2 border-t px-4 py-3 text-xs",
1094
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "The OTA fresh installs get first has no patch from this store build, so they download all of it. Add one from your project:" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
1095
+ label: "the patch command",
1096
+ value: missingPatch
1097
+ })]
1098
+ }),
1099
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
1100
+ className: "border-t px-4 py-3 text-xs text-muted-foreground",
1101
+ children: ["What the update check serves an install of this build now, newest first: not the history. ", scopeLink]
1102
+ })
1103
+ ] })
672
1104
  })]
673
1105
  });
674
1106
  }