@hot-updater/console 1.2.0-rc.27 → 1.2.0-rc.29

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 (298) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-OlRj4Jz0.js → -native-builds-search-DdHwfe4q.js} +1 -1
  3. package/.output/public/assets/BundleIdDisplay-CTBdtFQ8.js +1 -0
  4. package/.output/public/assets/ChannelBadge-CEabmopB.js +1 -0
  5. package/.output/public/assets/CompositeItem-KUM5yQVr.js +1 -0
  6. package/.output/public/assets/{ConsoleFeatureUnavailable-DUqlpHCp.js → ConsoleFeatureUnavailable-Be-0iTww.js} +1 -1
  7. package/.output/public/assets/EventDetails-bDOYte1z.js +1 -0
  8. package/.output/public/assets/HashValueDisplay-D2f0HmyU.js +1 -0
  9. package/.output/public/assets/{InsightsPageHeader-2bTrjXln.js → InsightsPageHeader-Cj2ROSQO.js} +1 -1
  10. package/.output/public/assets/IosInstall-CHI2C4Yd.js +1 -0
  11. package/.output/public/assets/NativeBuildsNav-DaqxQPnG.js +1 -0
  12. package/.output/public/assets/{NotFoundPage-Ckb5GMhh.js → NotFoundPage-CVBtl68B.js} +1 -1
  13. package/.output/public/assets/{PlatformIcon-CJ69KopR.js → PlatformIcon-DVnzzGqM.js} +1 -1
  14. package/.output/public/assets/RelativeTime-B4PK8qDw.js +1 -0
  15. package/.output/public/assets/{RolloutPercentageBadge-G6qt8rVb.js → RolloutPercentageBadge-D_I0Raj2.js} +1 -1
  16. package/.output/public/assets/RowReason-B7VM1ztc.js +1 -0
  17. package/.output/public/assets/SandboxBadge-BVxHg_HF.js +1 -0
  18. package/.output/public/assets/TargetDisplay-KU7JhIWG.js +1 -0
  19. package/.output/public/assets/{alert-dialog-DiRLrFVe.js → alert-dialog-Ch0QxRsa.js} +1 -1
  20. package/.output/public/assets/api-C1OPeiG1.js +1 -0
  21. package/.output/public/assets/api-keys-DLC8jjaM.js +1 -0
  22. package/.output/public/assets/api-keys-eDnzgFAf.js +1 -0
  23. package/.output/public/assets/arrow-left-DQjHJAnT.js +1 -0
  24. package/.output/public/assets/arrow-right-CXp_K3xK.js +1 -0
  25. package/.output/public/assets/arrow-up-right-BFafIOrq.js +1 -0
  26. package/.output/public/assets/{badge-D0NFvUY5.js → badge-FZMD5vvS.js} +1 -1
  27. package/.output/public/assets/card-CyHYmHue.js +1 -0
  28. package/.output/public/assets/check-CqWNyG93.js +1 -0
  29. package/.output/public/assets/chevron-right-DNbYTBX1.js +1 -0
  30. package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-BCkZpskJ.js} +1 -1
  31. package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-DZrZK5gR.js} +1 -1
  32. package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-BO5V64P3.js} +1 -1
  33. package/.output/public/assets/{copy-DsuLj3oj.js → copy-CH1__JAW.js} +1 -1
  34. package/.output/public/assets/dialog-BLj71-Nf.js +1 -0
  35. package/.output/public/assets/{dist-Bf1BPKMs.js → dist-DAM__Tdz.js} +1 -1
  36. package/.output/public/assets/download-B2GjTySo.js +1 -0
  37. package/.output/public/assets/empty--YaE5Z4p.js +1 -0
  38. package/.output/public/assets/field-CdhSgWhI.js +1 -0
  39. package/.output/public/assets/git-branch-DG1VDaKq.js +1 -0
  40. package/.output/public/assets/history-C0wv4htz.js +1 -0
  41. package/.output/public/assets/index-BdyQq4-k.js +10 -0
  42. package/.output/public/assets/{input-group-D_NfhUbX.js → input-group-XKLcUGoa.js} +1 -1
  43. package/.output/public/assets/insights-C94CdeAA.js +1 -0
  44. package/.output/public/assets/insights-DILMVpk8.js +2 -0
  45. package/.output/public/assets/insights-_j_ieOyh.js +42 -0
  46. package/.output/public/assets/insights-api-B6Gj74n5.js +1 -0
  47. package/.output/public/assets/{insights-search-CYPrQVUC.js → insights-search-Bgvg6wSP.js} +1 -1
  48. package/.output/public/assets/insights-usage-rpc-BUCinjSN.js +1 -0
  49. package/.output/public/assets/insights_.distribution-Bb6_S-hD.js +2 -0
  50. package/.output/public/assets/{insights_.distribution-_dZi1_ay.js → insights_.distribution-CRkGNelG.js} +1 -1
  51. package/.output/public/assets/insights_.distribution-CyAu3RN3.js +1 -0
  52. package/.output/public/assets/installations-BA01mqJE.js +1 -0
  53. package/.output/public/assets/installations-BsD6LgNc.js +2 -0
  54. package/.output/public/assets/installations-CYTzndfP.js +1 -0
  55. package/.output/public/assets/{key-round-DzBe6DHr.js → key-round-D7UgdXyA.js} +1 -1
  56. package/.output/public/assets/{link-DTEyW70e.js → link-CN3iHC4A.js} +2 -2
  57. package/.output/public/assets/{list-B6GeoQ_b.js → list-Bm-CfN5g.js} +1 -1
  58. package/.output/public/assets/loader-circle-iMqC-8ZE.js +1 -0
  59. package/.output/public/assets/native-builds-BMbws1g5.js +2 -0
  60. package/.output/public/assets/native-builds-xgHiHQML.js +1 -0
  61. package/.output/public/assets/native-builds_._buildId-B04z9yfk.js +1 -0
  62. package/.output/public/assets/native-builds_._buildId-DaMmTcHo.js +2 -0
  63. package/.output/public/assets/native-builds_.devices-B-u7uLLG.js +2 -0
  64. package/.output/public/assets/native-builds_.devices-CVNAQtSy.js +1 -0
  65. package/.output/public/assets/{package-ytYrywZH.js → package-BmfoZ5Zj.js} +1 -1
  66. package/.output/public/assets/plus-Db0KxLZp.js +1 -0
  67. package/.output/public/assets/preload-helper-CRQjUQaZ.js +1 -0
  68. package/.output/public/assets/{refresh-cw-C-tvoCcE.js → refresh-cw-BHhBYjS8.js} +1 -1
  69. package/.output/public/assets/{relativeTime-DvyxGIsm.js → relativeTime-BYRt19mj.js} +1 -1
  70. package/.output/public/assets/remote-config-Cxkr7_BP.js +1 -0
  71. package/.output/public/assets/remote-config-DAOyn5xL.js +1 -0
  72. package/.output/public/assets/remote-config-DXv25LX1.js +6 -0
  73. package/.output/public/assets/{rotate-cw-Clk5xTeE.js → rotate-cw-Ba-slJea.js} +1 -1
  74. package/.output/public/assets/{routes-gQXSzO_n.js → routes-DM3TyTLW.js} +2 -2
  75. package/.output/public/assets/routes-Des97uK_.js +1 -0
  76. package/.output/public/assets/search-dJG2BYmx.js +1 -0
  77. package/.output/public/assets/select-CA8r-UUe.js +1 -0
  78. package/.output/public/assets/send-DuMOCzbD.js +1 -0
  79. package/.output/public/assets/{sidebar-Di9SN47G.js → sidebar-yC7KdImc.js} +1 -1
  80. package/.output/public/assets/smartphone-D1C6BRd_.js +1 -0
  81. package/.output/public/assets/styles-BHLI87EH.css +2 -0
  82. package/.output/public/assets/switch-BsV3d4km.js +1 -0
  83. package/.output/public/assets/table-D8YjT_ht.js +1 -0
  84. package/.output/public/assets/tabs-RdhEl9sE.js +1 -0
  85. package/.output/public/assets/trash-2-B5KIvrXy.js +1 -0
  86. package/.output/public/assets/{undo-2-Bt0YXG26.js → undo-2-CFcU9dIB.js} +1 -1
  87. package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-lAmUsXcc.js} +1 -1
  88. package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-w3qYaU2L.js} +1 -1
  89. package/.output/server/{__23tanstack-start-server-fn-resolver-CIN7Hpjl.mjs → __23tanstack-start-server-fn-resolver-DTuNq7_z.mjs} +85 -49
  90. package/.output/server/_libs/@base-ui/react+[...].mjs +1488 -183
  91. package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
  92. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +2 -2
  93. package/.output/server/_libs/_.mjs +1 -1
  94. package/.output/server/_libs/lucide-react.mjs +22 -2
  95. package/.output/server/_libs/next-themes.mjs +1 -1
  96. package/.output/server/_libs/react-redux+[...].mjs +1 -1
  97. package/.output/server/_libs/recharts+[...].mjs +1 -1
  98. package/.output/server/_libs/sonner.mjs +1 -1
  99. package/.output/server/_libs/tanstack__react-query.mjs +1 -1
  100. package/.output/server/_ssr/{-native-builds-search-M6t7EIt4.mjs → -native-builds-search-Mm_AZoRU.mjs} +8 -2
  101. package/.output/server/_ssr/{BundleIdDisplay-BaFPllhZ.mjs → BundleIdDisplay-BX6DLh1K.mjs} +3 -3
  102. package/.output/server/_ssr/ChannelBadge-D7O95Ack.mjs +23 -0
  103. package/.output/server/_ssr/{ConsoleFeatureUnavailable-C-1Ls1sm.mjs → ConsoleFeatureUnavailable-Dfs3WUZf.mjs} +8 -8
  104. package/.output/server/_ssr/{EventDetails-jVM6sD8m.mjs → EventDetails-C1Q9caVa.mjs} +9 -9
  105. package/.output/server/_ssr/{HashValueDisplay-C7nja_fn.mjs → HashValueDisplay-SIEeZe0O.mjs} +3 -3
  106. package/.output/server/_ssr/{InsightsPageHeader-CDJhClRy.mjs → InsightsPageHeader-CAcbXSFD.mjs} +9 -9
  107. package/.output/server/_ssr/IosInstall-B7yxnQ7o.mjs +615 -0
  108. package/.output/server/_ssr/NativeBuildsNav-BwoEX7xx.mjs +38 -0
  109. package/.output/server/_ssr/{NotFoundPage-DclXpGzY.mjs → NotFoundPage-Cd_nKv04.mjs} +3 -3
  110. package/.output/server/_ssr/{PlatformIcon-CMLs3Wez.mjs → PlatformIcon-BpGOEXjU.mjs} +2 -2
  111. package/.output/server/_ssr/{RelativeTime-DUr_cgha.mjs → RelativeTime-B5txzq94.mjs} +40 -12
  112. package/.output/server/_ssr/{RolloutPercentageBadge-Mg4g25Gf.mjs → RolloutPercentageBadge-BEV8btLv.mjs} +4 -4
  113. package/.output/server/_ssr/RowReason-CEDEk7-N.mjs +186 -0
  114. package/.output/server/_ssr/{StoreSubmission-CUIg6WXQ.mjs → SandboxBadge-wlOMZIUd.mjs} +17 -17
  115. package/.output/server/_ssr/{TargetDisplay-C-C8MKuf.mjs → TargetDisplay-076I9qHx.mjs} +6 -23
  116. package/.output/server/_ssr/{alert-dialog-CiN6BFHg.mjs → alert-dialog-DrD4hAp4.mjs} +2 -2
  117. package/.output/server/_ssr/{api-BeWenjNl.mjs → api-C1plnjZg.mjs} +74 -17
  118. package/.output/server/_ssr/{api-keys-DzWwXpi5.mjs → api-keys-Bzn-P-lX.mjs} +2 -2
  119. package/.output/server/_ssr/{api-keys-Bzaj1vWD.mjs → api-keys-L8_p18pO.mjs} +12 -12
  120. package/.output/server/_ssr/{api-keys-rpc-BRnZWUpw.mjs → api-keys-rpc-Mne2yo8z.mjs} +3 -3
  121. package/.output/server/_ssr/{api-rpc-B87QoJwB.mjs → api-rpc-ChVBmeca.mjs} +56 -33
  122. package/.output/server/_ssr/{auth-rpc-CO1_TL1b.mjs → auth-rpc-Dml8l_eq.mjs} +4 -4
  123. package/.output/server/_ssr/{auth.server-BWTHsAlW.mjs → auth.server-DOShgraQ.mjs} +587 -19
  124. package/.output/server/_ssr/{badge-C7PdVtoH.mjs → badge-BasQflNy.mjs} +2 -2
  125. package/.output/server/_ssr/{bundleActivity-BGVvqWx7.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
  126. package/.output/server/_ssr/{card-BkxhOkGp.mjs → card-BrGGQYC0.mjs} +2 -2
  127. package/.output/server/_ssr/{config.server-Bvqyj9Ec.mjs → config.server-CVOdMDBk.mjs} +4 -4
  128. package/.output/server/_ssr/{console-access-CHD7-b3E.mjs → console-access-Bi-abtY-.mjs} +2 -2
  129. package/.output/server/_ssr/{console-features-api-Btkz_ZEj.mjs → console-features-api-Bjxo5ur3.mjs} +5 -5
  130. package/.output/server/_ssr/{console-features-rpc-DYf3xbak.mjs → console-features-rpc-xzdodg3g.mjs} +3 -3
  131. package/.output/server/_ssr/{console-features-CRP-pfov.mjs → console-features-xaGDhRC9.mjs} +1 -1
  132. package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
  133. package/.output/server/_ssr/{dialog-fnm03nlH.mjs → dialog-7iMkt9l0.mjs} +2 -2
  134. package/.output/server/_ssr/{downloadBundle-BX8ODCZT.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
  135. package/.output/server/_ssr/{empty-BzjaWjuQ.mjs → empty-Chb-YL3R.mjs} +3 -3
  136. package/.output/server/_ssr/{failureReports-C_CmBF4x.mjs → failureReports-BA2eg11O.mjs} +3 -3
  137. package/.output/server/_ssr/{field-C2GZCygB.mjs → field-mL_Aa6ff.mjs} +3 -3
  138. package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
  139. package/.output/server/_ssr/{getBundleChildren-BJTufthT.mjs → getBundleChildren-CdqFonhl.mjs} +1 -1
  140. package/.output/server/_ssr/{input-group-Cu6TtdYb.mjs → input-group-C00_xYka.mjs} +2 -2
  141. package/.output/server/_ssr/{insights-DuQB3_VX.mjs → insights-BcVNQCXf.mjs} +28 -28
  142. package/.output/server/_ssr/{insights-DZZsKfdZ.mjs → insights-BdF3o0Yp.mjs} +2 -2
  143. package/.output/server/_ssr/{insights-D_XXiwXz.mjs → insights-C9sSQPMF.mjs} +5 -5
  144. package/.output/server/_ssr/{insights-api-a8B90BHl.mjs → insights-api-CShlv9dA.mjs} +5 -5
  145. package/.output/server/_ssr/{insights-errors-Bz3sWNZm.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
  146. package/.output/server/_ssr/{insights-failures-DNQ9qVVf.mjs → insights-failures-7zH97WOO.mjs} +2 -2
  147. package/.output/server/_ssr/{insights-failures-rpc-DM5dPfnS.mjs → insights-failures-rpc-C-cv9bId.mjs} +10 -10
  148. package/.output/server/_ssr/{insights-recovery-DOkpqnQ8.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
  149. package/.output/server/_ssr/{insights-recovery-rpc-C81f-2Xa.mjs → insights-recovery-rpc-Ct-jIQZU.mjs} +6 -6
  150. package/.output/server/_ssr/{insights-rpc-DVbg0dsI.mjs → insights-rpc-Dc0I8O3n.mjs} +3 -3
  151. package/.output/server/_ssr/{insights-search-sCdCd-8P.mjs → insights-search-D_vVwBwW.mjs} +3 -3
  152. package/.output/server/_ssr/{insights-usage-4KDIN3Kg.mjs → insights-usage-h8fipPTv.mjs} +1 -1
  153. package/.output/server/_ssr/{insights-usage-rpc-CKfXb-tc.mjs → insights-usage-rpc-4TR94EHa.mjs} +6 -6
  154. package/.output/server/_ssr/{insights-usage-rpc-DAwc4FE6.mjs → insights-usage-rpc-D60hOhzl.mjs} +5 -5
  155. package/.output/server/_ssr/{insightsUsage-DmQdJZqT.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
  156. package/.output/server/_ssr/{insights_.distribution-FhZMnsNm.mjs → insights_.distribution-BgnfMzw1.mjs} +17 -17
  157. package/.output/server/_ssr/{insights_.distribution-CvPrNh8j.mjs → insights_.distribution-DkD7uAwA.mjs} +5 -5
  158. package/.output/server/_ssr/{insights_.distribution-Bq52kUtA.mjs → insights_.distribution-wT1mjWsG.mjs} +2 -2
  159. package/.output/server/_ssr/{installations-BjOaol_w.mjs → installations-DtRbzy3N.mjs} +2 -2
  160. package/.output/server/_ssr/{installations-CKe2Srtx.mjs → installations-DvxMRP5u.mjs} +4 -4
  161. package/.output/server/_ssr/{installations-B2anrEwv.mjs → installations-tFsFnxKk.mjs} +13 -13
  162. package/.output/server/_ssr/ios-devices-rpc-CIPuCUQ8.mjs +139 -0
  163. package/.output/server/_ssr/iosDeviceProfile-WyMC1593.mjs +176 -0
  164. package/.output/server/_ssr/iosDevices-B0TjF_sb.mjs +129 -0
  165. package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
  166. package/.output/server/_ssr/{native-builds-OUdRtp6m.mjs → native-builds-BXBkklfA.mjs} +28 -6
  167. package/.output/server/_ssr/{native-builds-DSOAh1CX.mjs → native-builds-C458T7Ts.mjs} +3 -3
  168. package/.output/server/_ssr/{native-builds-BsfydODe.mjs → native-builds-C5WxR0BT.mjs} +235 -90
  169. package/.output/server/_ssr/{native-builds_._buildId-BOedzqOS.mjs → native-builds_._buildId-CyCGKZ1H.mjs} +165 -323
  170. package/.output/server/_ssr/{native-builds_._buildId-DSfes24H.mjs → native-builds_._buildId-UsgsqKI8.mjs} +3 -3
  171. package/.output/server/_ssr/native-builds_.devices-BcfLIzJs.mjs +10 -0
  172. package/.output/server/_ssr/native-builds_.devices-BpTcIWm0.mjs +689 -0
  173. package/.output/server/_ssr/{nativeBuildDownloadLink-D-yCU-H7.mjs → nativeBuildDownloadLink-CtB2G7qG.mjs} +3 -3
  174. package/.output/server/_ssr/{nativeBuildInstall-szlEt-t_.mjs → nativeBuildInstall-PavEyZtZ.mjs} +56 -8
  175. package/.output/server/_ssr/{nativeBuilds-CRLmvFaO.mjs → nativeBuilds-Cub0EUGN.mjs} +135 -13
  176. package/.output/server/_ssr/{publicConsoleBase-DvHYxDaG.mjs → publicConsoleBase-f67NLLXZ.mjs} +11 -3
  177. package/.output/server/_ssr/{release-adoption-C7sUFDwa.mjs → release-adoption-DeICczY7.mjs} +2 -2
  178. package/.output/server/_ssr/{release-adoption-rpc-DHqnRw73.mjs → release-adoption-rpc-DkT6ui4_.mjs} +8 -8
  179. package/.output/server/_ssr/{releaseAdoption-D6ScSu-W.mjs → releaseAdoption-kHZo8P90.mjs} +3 -3
  180. package/.output/server/_ssr/{remote-config-D2wHSNjm.mjs → remote-config-BKlK0dFP.mjs} +3 -3
  181. package/.output/server/_ssr/{remote-config-Byc4JHkB.mjs → remote-config-D_nQT__6.mjs} +2 -2
  182. package/.output/server/_ssr/{remote-config-rpc-ZOfBMLtE.mjs → remote-config-rpc-BW6lyp9Y.mjs} +3 -3
  183. package/.output/server/_ssr/{remote-config-DkrjdfMC.mjs → remote-config-v1hs050H.mjs} +24 -24
  184. package/.output/server/_ssr/{router-D0GDdWkI.mjs → router-hKO__Vrv.mjs} +74 -77
  185. package/.output/server/_ssr/{routes-C10oCddR.mjs → routes-DKxm5A7X.mjs} +312 -233
  186. package/.output/server/_ssr/{routes-ChnyY2qP.mjs → routes-OhljAvlx.mjs} +15 -14
  187. package/.output/server/_ssr/{runtime.server-wcHT2Cop.mjs → runtime.server-CkSbWaZm.mjs} +2 -2
  188. package/.output/server/_ssr/{schema-migration-rpc-BKRs4MNf.mjs → schema-migration-rpc-DrrYEFqy.mjs} +3 -3
  189. package/.output/server/_ssr/{select-B9du7Z50.mjs → select-M4kWGKJW.mjs} +3 -3
  190. package/.output/server/_ssr/{server-CApi3lVS.mjs → server-4hXySEh0.mjs} +5 -5
  191. package/.output/server/_ssr/{sidebar-BwMkm72O.mjs → sidebar-CFlo6lny.mjs} +3 -3
  192. package/.output/server/_ssr/ssr.mjs +1 -1
  193. package/.output/server/_ssr/{start-By4wHYjG.mjs → start-D3noqqOK.mjs} +1 -1
  194. package/.output/server/_ssr/{switch-DyShvUOF.mjs → switch-xTCGSBdC.mjs} +3 -3
  195. package/.output/server/_ssr/{table-DMj6AnqH.mjs → table-CqdaVMjd.mjs} +2 -2
  196. package/.output/server/_ssr/{tabs-5a_JPYme.mjs → tabs-DtMAFr25.mjs} +4 -4
  197. package/.output/server/_ssr/{updateFailures-DNiv3S_y.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
  198. package/.output/server/_tanstack-start-manifest_v-CYfHRC4i.mjs +225 -0
  199. package/.output/server/index.mjs +452 -375
  200. package/lib/index.d.mts +9 -0
  201. package/package.json +7 -7
  202. package/src/components/DataTable.tsx +47 -3
  203. package/src/components/FoldedRows.tsx +219 -0
  204. package/src/components/RowReason.tsx +56 -0
  205. package/src/components/features/api-keys/ApiKeysPage.tsx +1 -1
  206. package/src/components/features/channels/ChannelManagementDialog.tsx +2 -2
  207. package/src/components/features/native-builds/CommitLink.tsx +2 -1
  208. package/src/components/features/native-builds/InstallCard.tsx +77 -40
  209. package/src/components/features/native-builds/IosDevicesPage.tsx +925 -0
  210. package/src/components/features/native-builds/IosInstall.tsx +375 -73
  211. package/src/components/features/native-builds/IpaDevicesCard.tsx +111 -0
  212. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +7 -0
  213. package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
  214. package/src/components/features/native-builds/NativeBuildsPage.tsx +2 -0
  215. package/src/components/features/native-builds/NativeBuildsTable.tsx +220 -32
  216. package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
  217. package/src/components/features/native-builds/ShortHash.tsx +5 -2
  218. package/src/components/features/remote-config/PublishDialog.tsx +4 -1
  219. package/src/components/features/remote-config/VersionsCard.tsx +5 -2
  220. package/src/components/ui/sonner.tsx +3 -1
  221. package/src/index.ts +9 -0
  222. package/src/lib/api-rpc.ts +70 -30
  223. package/src/lib/api.ts +65 -2
  224. package/src/lib/ios-devices-api.ts +110 -0
  225. package/src/lib/ios-devices-rpc.ts +183 -0
  226. package/src/lib/native-builds.ts +72 -7
  227. package/src/lib/server/console-runtime.server.ts +9 -2
  228. package/src/lib/server/deviceProfileToken.ts +187 -0
  229. package/src/lib/server/foldedPage.ts +360 -0
  230. package/src/lib/server/iosDeviceProfile.ts +230 -0
  231. package/src/lib/server/iosDevices.ts +223 -0
  232. package/src/lib/server/listReleases.ts +101 -62
  233. package/src/lib/server/nativeBuildInstall.ts +147 -7
  234. package/src/lib/server/nativeBuilds.ts +221 -26
  235. package/src/routeTree.gen.ts +64 -67
  236. package/src/routes/-native-builds-search.ts +20 -0
  237. package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
  238. package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
  239. package/src/routes/index.tsx +447 -299
  240. package/src/routes/native-builds_.devices.tsx +21 -0
  241. package/src/styles.css +2 -2
  242. package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +0 -1
  243. package/.output/public/assets/EventDetails-DZsRlDHk.js +0 -1
  244. package/.output/public/assets/HashValueDisplay-MoZMmTeP.js +0 -1
  245. package/.output/public/assets/RelativeTime-TCmpOVPg.js +0 -1
  246. package/.output/public/assets/StoreSubmission-CqSg880n.js +0 -1
  247. package/.output/public/assets/TargetDisplay-DwOaMOiI.js +0 -1
  248. package/.output/public/assets/api-LQJH44FU.js +0 -1
  249. package/.output/public/assets/api-keys-4w2-ofii.js +0 -1
  250. package/.output/public/assets/api-keys-uFY8FsN9.js +0 -1
  251. package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
  252. package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
  253. package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
  254. package/.output/public/assets/card-ulgg5xHn.js +0 -1
  255. package/.output/public/assets/check-CXVR3s3X.js +0 -1
  256. package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
  257. package/.output/public/assets/dialog-CLIaC82_.js +0 -1
  258. package/.output/public/assets/empty-Bhlj8PEo.js +0 -1
  259. package/.output/public/assets/field-q4sTYzNU.js +0 -1
  260. package/.output/public/assets/history-DakJoeSM.js +0 -1
  261. package/.output/public/assets/index-CJclLsbG.js +0 -10
  262. package/.output/public/assets/insights-0TUItqwh.js +0 -1
  263. package/.output/public/assets/insights-B75txQ_F.js +0 -42
  264. package/.output/public/assets/insights-C17Z0whn.js +0 -2
  265. package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
  266. package/.output/public/assets/insights-usage-rpc-BbFllvi_.js +0 -1
  267. package/.output/public/assets/insights_.distribution-AZcfvK7x.js +0 -1
  268. package/.output/public/assets/insights_.distribution-gDqNqI5E.js +0 -2
  269. package/.output/public/assets/installations-Ap2G2tDs.js +0 -1
  270. package/.output/public/assets/installations-D0g3xvw8.js +0 -2
  271. package/.output/public/assets/installations-Y_7QW_p8.js +0 -1
  272. package/.output/public/assets/native-builds-Ba6cEZfm.js +0 -2
  273. package/.output/public/assets/native-builds-C3_-21we.js +0 -1
  274. package/.output/public/assets/native-builds_._buildId-BnP31v32.js +0 -1
  275. package/.output/public/assets/native-builds_._buildId-Cp9LJiMP.js +0 -2
  276. package/.output/public/assets/plus-BVhOauU3.js +0 -1
  277. package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
  278. package/.output/public/assets/remote-config-BRdy8QFR.js +0 -1
  279. package/.output/public/assets/remote-config-C9p5Pcdj.js +0 -6
  280. package/.output/public/assets/remote-config-CIAEArwq.js +0 -1
  281. package/.output/public/assets/routes-BLTF7nwe.js +0 -1
  282. package/.output/public/assets/search-nnvSOTEB.js +0 -1
  283. package/.output/public/assets/select-CBIU0_M1.js +0 -1
  284. package/.output/public/assets/smartphone-r0rRdPas.js +0 -1
  285. package/.output/public/assets/styles-BdlrKlVs.css +0 -2
  286. package/.output/public/assets/switch-CP6GsHmN.js +0 -1
  287. package/.output/public/assets/table-TUtVz-2l.js +0 -1
  288. package/.output/public/assets/tabs-CP3CSmtI.js +0 -1
  289. package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
  290. package/.output/server/_ssr/listReleases-CQEceg8j.mjs +0 -79
  291. package/.output/server/_ssr/nativeBuildDevice-DJUAzAIj.mjs +0 -210
  292. package/.output/server/_tanstack-start-manifest_v-8M7ggCuB.mjs +0 -192
  293. package/src/lib/server/nativeBuildDevice.ts +0 -253
  294. package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +0 -17
  295. package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +0 -17
  296. package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +0 -17
  297. /package/.output/public/assets/{uuidv7-cI6C63Fm.js → uuidv7-DAoOOpz9.js} +0 -0
  298. /package/.output/public/assets/{valueToPercent-B6X9rUJM.js → valueToPercent-Bn8p2lng.js} +0 -0
@@ -1,24 +1,40 @@
1
- import type { NativeBuildRow } from "@hot-updater/plugin-core";
1
+ import type { IosDeviceRow, NativeBuildRow } from "@hot-updater/plugin-core";
2
+ import { Link } from "@tanstack/react-router";
2
3
  import dayjs from "dayjs";
3
- import { AlertTriangle, Smartphone } from "lucide-react";
4
+ import {
5
+ AlertTriangle,
6
+ Loader2,
7
+ RefreshCw,
8
+ Send,
9
+ Smartphone,
10
+ } from "lucide-react";
4
11
  import { useEffect, useReducer, useState } from "react";
5
12
 
6
13
  import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
7
14
  import { Button, buttonVariants } from "@/components/ui/button";
15
+ import {
16
+ Field,
17
+ FieldDescription,
18
+ FieldError,
19
+ FieldLabel,
20
+ } from "@/components/ui/field";
21
+ import { Input } from "@/components/ui/input";
8
22
  import { Skeleton } from "@/components/ui/skeleton";
9
23
  import { useNativeBuildInstallEligibilityQuery } from "@/lib/api";
24
+ import {
25
+ useIosDeviceProfileLinkQuery,
26
+ useRequestIosDeviceAccessMutation,
27
+ } from "@/lib/ios-devices-api";
10
28
  import {
11
29
  consolePathOf,
30
+ IOS_DEVICE_RECEIPT_STORAGE_KEY,
12
31
  IOS_UDID_PATTERN,
13
32
  IOS_UDID_STORAGE_KEY,
33
+ iosDeviceProfileUrl,
14
34
  NATIVE_BUILD_INSTALL_LINK_TTL_MS,
15
- nativeBuildDeviceAddCommand,
16
- nativeBuildDeviceProfilePath,
17
35
  nativeBuildItmsUrl,
18
36
  } from "@/lib/native-builds";
19
37
 
20
- import { CopyableText } from "./CopyableText";
21
-
22
38
  /**
23
39
  * What an install does to the App Store's copy of the app on this iPhone, with
24
40
  * the same bundle ID. The one line to change after trying it on a real iPhone.
@@ -36,31 +52,77 @@ export const isIosBrowser = (
36
52
  /iPhone|iPod|iPad/u.test(browser.userAgent) ||
37
53
  (/Macintosh/u.test(browser.userAgent) && browser.maxTouchPoints > 1);
38
54
 
39
- /** The UDID the profile's page passed in the fragment, if any. */
40
- const fragmentUdid = () => {
41
- if (typeof window === "undefined") return null;
42
- const udid = new URLSearchParams(window.location.hash.slice(1)).get("udid");
43
- return udid !== null && IOS_UDID_PATTERN.test(udid) ? udid : null;
55
+ /**
56
+ * What the profile's answer passed back in the fragment: the UDID, with a
57
+ * receipt of it from a check, or `requested` from a registration.
58
+ */
59
+ const fragmentOf = () => {
60
+ if (typeof window === "undefined") {
61
+ return { udid: null, receipt: null, requested: false };
62
+ }
63
+ const params = new URLSearchParams(window.location.hash.slice(1));
64
+ const udid = params.get("udid");
65
+ const valid = udid !== null && IOS_UDID_PATTERN.test(udid) ? udid : null;
66
+ return {
67
+ udid: valid,
68
+ receipt: valid === null ? null : params.get("r"),
69
+ requested: valid !== null && params.get("requested") === "1",
70
+ };
71
+ };
72
+
73
+ /** This iPhone's view of itself, as its profile last reported it. */
74
+ export interface IosDevice {
75
+ readonly ios: boolean;
76
+ readonly udid: string | null;
77
+ /** The receipt of `udid` that Request access takes, when a check made one. */
78
+ readonly receipt: string | null;
79
+ /** Whether this page opened from a registration's answer. */
80
+ readonly requested: boolean;
81
+ }
82
+
83
+ const readKept = (key: string) => {
84
+ try {
85
+ return window.localStorage.getItem(key);
86
+ } catch {
87
+ return null;
88
+ }
89
+ };
90
+
91
+ const keep = (key: string, value: string) => {
92
+ try {
93
+ window.localStorage.setItem(key, value);
94
+ } catch {
95
+ // A browser that keeps nothing: the fragment's values stand in memory.
96
+ }
44
97
  };
45
98
 
46
99
  /**
47
- * Whether this page is open on an iPhone, and its UDID: the one this phone
48
- * kept, else the one the profile's page passed in the fragment. Read after the
49
- * page mounts: the server renders it without a browser. Null until then.
100
+ * Whether this page is open on an iPhone, its UDID, and a receipt of it: the
101
+ * ones this phone kept, else the ones the profile's answer passed in the
102
+ * fragment, which are kept then. Read after the page mounts: the server
103
+ * renders it without a browser. Null until then.
50
104
  */
51
- export const useIosDevice = () => {
52
- const [device, setDevice] = useState<{
53
- readonly ios: boolean;
54
- readonly udid: string | null;
55
- } | null>(null);
105
+ export const useIosDevice = (): IosDevice | null => {
106
+ const [device, setDevice] = useState<IosDevice | null>(null);
56
107
  // Read at the first render, so an effect that runs again (React's
57
108
  // development check) still has it after the fragment is gone.
58
- const [passed] = useState(fragmentUdid);
109
+ const [passed] = useState(fragmentOf);
59
110
  useEffect(() => {
60
111
  const valid = (udid: string | null | undefined) =>
61
112
  udid != null && IOS_UDID_PATTERN.test(udid) ? udid : null;
62
- // A browser that keeps nothing still has the ID from the fragment, in memory.
63
- if (passed !== null && window.location.hash !== "") {
113
+ // Only the profile's own answer, which carries a receipt or says it
114
+ // registered, replaces the ID this phone kept: a plain link's ID never does.
115
+ const answered = passed.receipt !== null || passed.requested;
116
+ if (passed.udid !== null && answered) {
117
+ keep(IOS_UDID_STORAGE_KEY, passed.udid);
118
+ if (passed.receipt !== null) {
119
+ keep(
120
+ IOS_DEVICE_RECEIPT_STORAGE_KEY,
121
+ JSON.stringify({ udid: passed.udid, receipt: passed.receipt }),
122
+ );
123
+ }
124
+ }
125
+ if (passed.udid !== null && window.location.hash !== "") {
64
126
  window.history.replaceState(
65
127
  window.history.state,
66
128
  "",
@@ -68,24 +130,43 @@ export const useIosDevice = () => {
68
130
  );
69
131
  }
70
132
  const read = () => {
71
- let udid: string | null = null;
133
+ // A browser that keeps nothing still has the fragment's, in memory.
134
+ const udid = valid(readKept(IOS_UDID_STORAGE_KEY)) ?? passed.udid;
135
+ let receipt: string | null = null;
72
136
  try {
73
- udid = window.localStorage.getItem(IOS_UDID_STORAGE_KEY);
137
+ const kept = JSON.parse(
138
+ readKept(IOS_DEVICE_RECEIPT_STORAGE_KEY) ?? "null",
139
+ ) as { udid?: unknown; receipt?: unknown } | null;
140
+ receipt =
141
+ kept?.udid === udid && typeof kept?.receipt === "string"
142
+ ? kept.receipt
143
+ : null;
74
144
  } catch {
75
- // A browser that keeps nothing: the fragment's ID, if any, stands.
145
+ receipt = null;
76
146
  }
77
- const kept = valid(udid) ?? passed;
147
+ if (receipt === null && passed.udid === udid) receipt = passed.receipt;
78
148
  setDevice((current) =>
79
- current?.udid === kept && current !== null
149
+ current !== null && current.udid === udid && current.receipt === receipt
80
150
  ? current
81
- : { ios: isIosBrowser(navigator), udid: kept },
151
+ : {
152
+ ios: isIosBrowser(navigator),
153
+ udid,
154
+ receipt,
155
+ requested: passed.requested,
156
+ },
82
157
  );
83
158
  };
84
159
  read();
85
160
  // The profile's answer may land in another tab, which keeps the ID there:
86
161
  // this tab reads it when that tab writes it, or when Safari shows it again.
87
162
  const onStorage = (event: StorageEvent) => {
88
- if (event.key === null || event.key === IOS_UDID_STORAGE_KEY) read();
163
+ if (
164
+ event.key === null ||
165
+ event.key === IOS_UDID_STORAGE_KEY ||
166
+ event.key === IOS_DEVICE_RECEIPT_STORAGE_KEY
167
+ ) {
168
+ read();
169
+ }
89
170
  };
90
171
  window.addEventListener("storage", onStorage);
91
172
  window.addEventListener("pageshow", read);
@@ -182,45 +263,276 @@ function InstallNotes() {
182
263
  }
183
264
 
184
265
  /**
185
- * The link that hands this iPhone the profile that reads its UDID, under the
186
- * console's path. A plain link, so iOS offers the profile. Once it's installed,
187
- * the phone comes back to this page, which then offers Install.
266
+ * The link that hands this iPhone the profile that reads its UDID, signed for
267
+ * this person, under the Console's path. A plain link, so iOS offers the
268
+ * profile; the page signs a new one before it expires. Once it's installed,
269
+ * the phone comes back to this page with the UDID and a receipt of it.
188
270
  */
189
- function InstallProfile({
271
+ function CheckThisIphone({
190
272
  build,
191
273
  again = false,
192
274
  }: {
193
275
  readonly build: NativeBuildRow;
194
- /** Second to the command: for a phone whose kept ID isn't its own. */
276
+ /** For a phone whose kept ID isn't its own, or whose check expired. */
195
277
  readonly again?: boolean;
278
+ }) {
279
+ const link = useIosDeviceProfileLinkQuery({
280
+ mode: "identify",
281
+ buildId: build.id,
282
+ });
283
+ if (link.data?.status === "no-secret") {
284
+ return (
285
+ <p className="text-xs text-muted-foreground" role="status">
286
+ Set {link.data.secretName} on the Console to check iPhones from this
287
+ page.
288
+ </p>
289
+ );
290
+ }
291
+ if (link.data?.status !== "issued") {
292
+ return link.isError ? (
293
+ <>
294
+ <Alert variant="destructive">
295
+ <AlertTriangle />
296
+ <AlertTitle>The check couldn't start</AlertTitle>
297
+ <AlertDescription>
298
+ Check your connection and try again.
299
+ </AlertDescription>
300
+ </Alert>
301
+ <Button
302
+ className={ACTION_CLASS}
303
+ disabled={link.isFetching}
304
+ onClick={() => void link.refetch()}
305
+ variant="outline"
306
+ >
307
+ <RefreshCw data-icon="inline-start" />
308
+ Reload
309
+ </Button>
310
+ </>
311
+ ) : (
312
+ <Skeleton aria-label="Preparing the check" className="h-11 w-full" />
313
+ );
314
+ }
315
+ return (
316
+ <>
317
+ <a
318
+ className={buttonVariants({
319
+ className: ACTION_CLASS,
320
+ variant: again ? "secondary" : "default",
321
+ })}
322
+ href={iosDeviceProfileUrl(
323
+ consolePathOf(window.location, build.id),
324
+ link.data.token,
325
+ )}
326
+ >
327
+ <Smartphone data-icon="inline-start" />
328
+ {again ? "Check this iPhone again" : "Check this iPhone"}
329
+ </a>
330
+ <p className="text-xs text-muted-foreground">
331
+ Allow the download, then install it in Settings, where iOS calls it not
332
+ signed. Nothing stays installed.
333
+ </p>
334
+ </>
335
+ );
336
+ }
337
+
338
+ const shortDate = (ms: number) => dayjs(ms).format("MMM D");
339
+
340
+ /**
341
+ * Apple's refusal of this iPhone, in its own words, and the one next step: the
342
+ * iOS devices page for an approver, else whom to ask.
343
+ */
344
+ function AppleRefusal({
345
+ device,
346
+ canApprove,
347
+ }: {
348
+ readonly device: IosDeviceRow;
349
+ readonly canApprove: boolean;
196
350
  }) {
197
351
  return (
198
- <a
199
- className={buttonVariants({
200
- className: ACTION_CLASS,
201
- variant: again ? "secondary" : "default",
202
- })}
203
- href={`${consolePathOf(window.location, build.id)}${nativeBuildDeviceProfilePath(build.id)}`}
352
+ <div className="flex min-w-0 flex-col gap-3">
353
+ <Alert>
354
+ <AlertTriangle />
355
+ <AlertTitle>Apple didn't register this iPhone</AlertTitle>
356
+ <AlertDescription>{device.apple_error}</AlertDescription>
357
+ </Alert>
358
+ {canApprove ? (
359
+ <Link
360
+ className={buttonVariants({
361
+ className: ACTION_CLASS,
362
+ variant: "outline",
363
+ })}
364
+ to="/native-builds/devices"
365
+ >
366
+ iOS devices
367
+ </Link>
368
+ ) : (
369
+ <p className="text-xs text-muted-foreground">
370
+ {device.status === "approved"
371
+ ? "Ask a maintainer to free a device slot."
372
+ : "Ask a maintainer to check it on the iOS devices page."}
373
+ </p>
374
+ )}
375
+ </div>
376
+ );
377
+ }
378
+
379
+ /**
380
+ * What an iPhone the IPA doesn't list sees: the registry's word on it, or
381
+ * Request access, which takes the UDID from this person's receipt alone.
382
+ */
383
+ function NotInThisBuild({
384
+ build,
385
+ device,
386
+ registry,
387
+ newerBuild,
388
+ canApprove,
389
+ registryReadAt,
390
+ }: {
391
+ readonly build: NativeBuildRow;
392
+ readonly device: IosDevice;
393
+ readonly registry: IosDeviceRow | null;
394
+ /**
395
+ * The newer build of this app and channel that lists the iPhone, as the
396
+ * server matched `registry.build_id`, or null.
397
+ */
398
+ readonly newerBuild: string | null;
399
+ /** Whether the viewer approves devices, read only under Apple's refusal. */
400
+ readonly canApprove: boolean;
401
+ /** When the page last read `registry`. */
402
+ readonly registryReadAt: number;
403
+ }) {
404
+ const request = useRequestIosDeviceAccessMutation();
405
+ const [name, setName] = useState("");
406
+ // The request's answer stands in only while the page still shows the
407
+ // registry read before the request started: any read after that wins, an
408
+ // approval or a removal too, even one the mutation's own refresh finished
409
+ // before its answer reached this component.
410
+ const [requested, setRequested] = useState<{
411
+ readonly device: IosDeviceRow;
412
+ readonly readBefore: number;
413
+ } | null>(null);
414
+ const standIn = requested !== null && registryReadAt <= requested.readBefore;
415
+ const row = standIn ? requested.device : registry;
416
+ const heading = (
417
+ <div className="flex min-w-0 flex-col gap-1">
418
+ <p className="text-sm font-medium">Not in this build</p>
419
+ <p className="text-xs text-muted-foreground">
420
+ This IPA was signed without this iPhone, and iOS won't install it here.
421
+ </p>
422
+ </div>
423
+ );
424
+ if (row !== null) {
425
+ // The row's build_id may name a sandbox's or another app's build: only the
426
+ // server's match of it is offered.
427
+ const newer = standIn ? null : newerBuild;
428
+ if (row.apple_error !== null && newer === null) {
429
+ return <AppleRefusal canApprove={canApprove} device={row} />;
430
+ }
431
+ return (
432
+ <div className="flex min-w-0 flex-col gap-3">
433
+ {heading}
434
+ <p className="text-sm" role="status">
435
+ {row.status === "pending"
436
+ ? `${row.name} was requested on ${shortDate(row.created_at_ms)}. A maintainer approves it next.`
437
+ : newer !== null
438
+ ? `A newer build has ${row.name}.`
439
+ : `${row.name} is ${row.status}. It joins the next ad hoc build.`}
440
+ </p>
441
+ {newer !== null ? (
442
+ <Link
443
+ className={buttonVariants({ className: ACTION_CLASS })}
444
+ params={{ buildId: newer }}
445
+ to="/native-builds/$buildId"
446
+ >
447
+ Open the newer build
448
+ </Link>
449
+ ) : null}
450
+ </div>
451
+ );
452
+ }
453
+ if (device.receipt === null) {
454
+ return (
455
+ <div className="flex min-w-0 flex-col gap-3">
456
+ {heading}
457
+ <p className="text-xs text-muted-foreground">
458
+ Check this iPhone once more to request it for the next ad hoc build.
459
+ </p>
460
+ <CheckThisIphone build={build} again />
461
+ </div>
462
+ );
463
+ }
464
+ const trimmed = name.trim();
465
+ return (
466
+ <form
467
+ className="flex min-w-0 flex-col gap-3"
468
+ onSubmit={(event) => {
469
+ event.preventDefault();
470
+ if (trimmed === "") return;
471
+ const readBefore = registryReadAt;
472
+ request.mutate(
473
+ { receipt: device.receipt!, name: trimmed },
474
+ {
475
+ onSuccess: ({ device: saved }) =>
476
+ setRequested({ device: saved, readBefore }),
477
+ },
478
+ );
479
+ }}
204
480
  >
205
- <Smartphone data-icon="inline-start" />
206
- {again ? "Install the profile again" : "Install profile"}
207
- </a>
481
+ {heading}
482
+ <Field data-invalid={request.isError || undefined}>
483
+ <FieldLabel htmlFor="ios-device-name">This iPhone's name</FieldLabel>
484
+ <Input
485
+ autoComplete="off"
486
+ className="h-11 sm:h-8"
487
+ id="ios-device-name"
488
+ maxLength={100}
489
+ onChange={(event) => setName(event.target.value)}
490
+ placeholder="Kim's iPhone"
491
+ value={name}
492
+ />
493
+ <FieldDescription>
494
+ A maintainer approves it, and it joins the next ad hoc build.
495
+ </FieldDescription>
496
+ <FieldError>
497
+ {request.isError
498
+ ? "The request didn't go through. Check this iPhone again, then try once more."
499
+ : null}
500
+ </FieldError>
501
+ </Field>
502
+ <Button
503
+ className={ACTION_CLASS}
504
+ disabled={trimmed === "" || request.isPending}
505
+ type="submit"
506
+ >
507
+ {request.isPending ? (
508
+ <Loader2
509
+ className="animate-spin motion-reduce:animate-none"
510
+ data-icon="inline-start"
511
+ />
512
+ ) : (
513
+ <Send data-icon="inline-start" />
514
+ )}
515
+ Request access
516
+ </Button>
517
+ {request.isError ? <CheckThisIphone again build={build} /> : null}
518
+ </form>
208
519
  );
209
520
  }
210
521
 
211
522
  /**
212
523
  * Installing an IPA from this iPhone: the build's IPA says what it allows, read
213
- * once when the page opens here, so a phone it doesn't list goes to its UDID
214
- * rather than a download iOS refuses at the end. App Store Connect isn't asked:
215
- * a device registered after this IPA was signed still isn't in it.
524
+ * once when the page opens here, so a phone it doesn't list goes to Request
525
+ * access rather than a download iOS refuses at the end. App Store Connect isn't
526
+ * asked: a device registered after this IPA was signed still isn't in it.
216
527
  */
217
528
  export function IosInstall({
218
529
  build,
219
- udid,
530
+ device,
220
531
  }: {
221
532
  readonly build: NativeBuildRow;
222
- readonly udid: string | null;
533
+ readonly device: IosDevice;
223
534
  }) {
535
+ const { udid } = device;
224
536
  const eligibility = useNativeBuildInstallEligibilityQuery(build.id, udid);
225
537
  const { refetch } = eligibility;
226
538
  const expired = useInstallLinkExpired(
@@ -242,8 +554,8 @@ export function IosInstall({
242
554
  <AlertTitle>Installation details unavailable</AlertTitle>
243
555
  <AlertDescription>
244
556
  The Console couldn't read this IPA from storage in parts, which takes
245
- an HTTPS download link that answers Range requests. Xcode or Apple
246
- Configurator still installs the download over USB.
557
+ an HTTPS download link that answers Range requests. Other ways to
558
+ install still work from a computer.
247
559
  </AlertDescription>
248
560
  </Alert>
249
561
  );
@@ -280,7 +592,7 @@ export function IosInstall({
280
592
  if (result.device === "included") {
281
593
  return (
282
594
  <div className="flex min-w-0 flex-col gap-3">
283
- <p className="text-sm font-medium">This iPhone is in this build.</p>
595
+ <p className="text-sm font-medium">In this build</p>
284
596
  {expired ? (
285
597
  <RenewInstallLink
286
598
  fetching={eligibility.isFetching}
@@ -295,36 +607,26 @@ export function IosInstall({
295
607
  }
296
608
  if (result.device === "not-included") {
297
609
  return (
298
- <div className="flex min-w-0 flex-col gap-3">
299
- <div className="flex min-w-0 flex-col gap-1">
300
- <p className="text-sm font-medium">Not in this build</p>
301
- <p className="text-xs text-muted-foreground">
302
- This IPA was signed without this iPhone. Send a maintainer this
303
- command, then open the newer build once they've rebuilt. Send it
304
- only if this is your iPhone.
305
- </p>
306
- </div>
307
- <CopyableText
308
- label="the command that registers this iPhone"
309
- value={nativeBuildDeviceAddCommand(udid ?? "")}
310
- wrap
311
- />
312
- <InstallProfile build={build} again />
313
- </div>
610
+ <NotInThisBuild
611
+ build={build}
612
+ device={device}
613
+ registry={result.registry}
614
+ newerBuild={result.newerBuild}
615
+ canApprove={result.canApprove}
616
+ registryReadAt={eligibility.dataUpdatedAt}
617
+ />
314
618
  );
315
619
  }
316
620
  return (
317
621
  <div className="flex min-w-0 flex-col gap-3">
318
622
  <div className="flex min-w-0 flex-col gap-1">
319
- <p className="text-sm font-medium">Install the profile first</p>
623
+ <p className="text-sm font-medium">Check this iPhone first</p>
320
624
  <p className="text-xs text-muted-foreground">
321
- iOS installs this IPA only on the devices it lists. The profile reads
322
- this iPhone's ID and nothing else: allow the download, then install it
323
- in Settings, where iOS calls it not signed. Safari comes back here to
324
- install the app, and nothing stays installed.
625
+ iOS installs this IPA only on the devices it lists. A profile reads
626
+ this iPhone's ID, then Safari comes back here.
325
627
  </p>
326
628
  </div>
327
- <InstallProfile build={build} />
629
+ <CheckThisIphone build={build} />
328
630
  </div>
329
631
  );
330
632
  }
@@ -0,0 +1,111 @@
1
+ import type { NativeBuildRow } from "@hot-updater/plugin-core";
2
+ import { Link } from "@tanstack/react-router";
3
+ import { RefreshCw, Smartphone } from "lucide-react";
4
+
5
+ import { Button, buttonVariants } from "@/components/ui/button";
6
+ import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
7
+ import { Skeleton } from "@/components/ui/skeleton";
8
+ import { useNativeBuildIpaDevicesQuery } from "@/lib/ios-devices-api";
9
+ import { maskIosUdid } from "@/lib/native-builds";
10
+
11
+ import { ShortHash } from "./ShortHash";
12
+
13
+ /**
14
+ * The devices an ad hoc IPA installs on, read from its signing profile: each
15
+ * by the registry's name when the registry knows it, else as an unknown
16
+ * device, over its UDID's last characters, which copy the whole UDID. Read
17
+ * only: the IPA decides, and a new build is what adds a device.
18
+ */
19
+ export function IpaDevicesCard({ build }: { readonly build: NativeBuildRow }) {
20
+ const query = useNativeBuildIpaDevicesQuery(build.id);
21
+ const result = query.data;
22
+ // An App Store export or an enterprise build lists none: no card.
23
+ if (result?.status === "store" || result?.status === "enterprise") {
24
+ return null;
25
+ }
26
+ const devices = result?.status === "listed" ? result.devices : null;
27
+ return (
28
+ <Card className="overflow-hidden shadow-sm">
29
+ <CardHeader className="flex flex-row items-center gap-2 border-b px-4 py-3">
30
+ <CardTitle className="text-sm">
31
+ <h2>Devices in this build</h2>
32
+ </CardTitle>
33
+ {devices === null ? null : (
34
+ <span className="text-xs tabular-nums text-muted-foreground">
35
+ {devices.length}
36
+ </span>
37
+ )}
38
+ <Link
39
+ className={buttonVariants({
40
+ className: "ml-auto h-11 sm:h-7",
41
+ size: "sm",
42
+ variant: "ghost",
43
+ })}
44
+ to="/native-builds/devices"
45
+ >
46
+ iOS devices
47
+ </Link>
48
+ </CardHeader>
49
+ <CardContent className="p-0">
50
+ {query.isPending ? (
51
+ <div className="flex flex-col gap-2 p-4">
52
+ <span className="sr-only">Reading this IPA's devices</span>
53
+ <Skeleton className="h-8 w-full" />
54
+ <Skeleton className="h-8 w-full" />
55
+ </div>
56
+ ) : query.isError || result?.status === "unavailable" ? (
57
+ <div className="flex flex-wrap items-center gap-3 p-4 text-xs text-muted-foreground">
58
+ <p className="min-w-0 flex-1">
59
+ The Console couldn't read this IPA's devices from storage.
60
+ </p>
61
+ <Button
62
+ className="h-11 sm:h-7"
63
+ onClick={() => void query.refetch()}
64
+ size="sm"
65
+ variant="outline"
66
+ >
67
+ <RefreshCw data-icon="inline-start" />
68
+ Retry
69
+ </Button>
70
+ </div>
71
+ ) : devices?.length === 0 ? (
72
+ <p className="p-4 text-xs text-muted-foreground">
73
+ This IPA lists no devices.
74
+ </p>
75
+ ) : (
76
+ <ul aria-label="Devices in this build" className="divide-y">
77
+ {devices?.map((device) => (
78
+ <li
79
+ className="flex min-h-11 min-w-0 items-center gap-3 px-4 py-2 text-sm"
80
+ key={device.udid}
81
+ >
82
+ <Smartphone
83
+ aria-hidden="true"
84
+ className="size-4 shrink-0 text-muted-foreground"
85
+ />
86
+ <span className="flex min-w-0 flex-col items-start">
87
+ <span
88
+ className={
89
+ device.name === null
90
+ ? "truncate text-muted-foreground"
91
+ : "truncate"
92
+ }
93
+ >
94
+ {device.name ?? "Unknown device"}
95
+ </span>
96
+ <span className="text-muted-foreground">
97
+ <ShortHash
98
+ label="UDID"
99
+ shown={maskIosUdid(device.udid)}
100
+ value={device.udid}
101
+ />
102
+ </span>
103
+ </span>
104
+ </li>
105
+ ))}
106
+ </ul>
107
+ )}
108
+ </CardContent>
109
+ </Card>
110
+ );
111
+ }