@hot-updater/console 1.2.0-rc.26 → 1.2.0-rc.28

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 (286) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-OlRj4Jz0.js → -native-builds-search-7blX2yQW.js} +1 -1
  3. package/.output/public/assets/BundleIdDisplay-B0gAH01c.js +1 -0
  4. package/.output/public/assets/CompositeItem-Dy4xgOMg.js +1 -0
  5. package/.output/public/assets/{ConsoleFeatureUnavailable-DUqlpHCp.js → ConsoleFeatureUnavailable-cy_snb33.js} +1 -1
  6. package/.output/public/assets/{EventDetails-DZsRlDHk.js → EventDetails-sxag8Hfc.js} +1 -1
  7. package/.output/public/assets/{HashValueDisplay-MoZMmTeP.js → HashValueDisplay-DMweha_0.js} +1 -1
  8. package/.output/public/assets/{InsightsPageHeader-2bTrjXln.js → InsightsPageHeader-D5TJspVe.js} +1 -1
  9. package/.output/public/assets/IosInstall-B5NspihF.js +1 -0
  10. package/.output/public/assets/NativeBuildsNav-CjOOlbEu.js +1 -0
  11. package/.output/public/assets/{NotFoundPage-Ckb5GMhh.js → NotFoundPage-DDOJarFa.js} +1 -1
  12. package/.output/public/assets/{PlatformIcon-CJ69KopR.js → PlatformIcon-BBvlg6JY.js} +1 -1
  13. package/.output/public/assets/RelativeTime-CY1dKZpv.js +1 -0
  14. package/.output/public/assets/{RolloutPercentageBadge-G6qt8rVb.js → RolloutPercentageBadge-BHgHkBGB.js} +1 -1
  15. package/.output/public/assets/RowReason-BMx_vclu.js +1 -0
  16. package/.output/public/assets/SandboxBadge-irEkMf1P.js +1 -0
  17. package/.output/public/assets/TargetDisplay-DB8D019f.js +1 -0
  18. package/.output/public/assets/{alert-dialog-DiRLrFVe.js → alert-dialog-CLC_h1fL.js} +1 -1
  19. package/.output/public/assets/api-DLryz9hA.js +1 -0
  20. package/.output/public/assets/api-keys-Cd-aNt-v.js +1 -0
  21. package/.output/public/assets/api-keys-D3tAc4Uu.js +1 -0
  22. package/.output/public/assets/arrow-left-DQjHJAnT.js +1 -0
  23. package/.output/public/assets/arrow-right-CXp_K3xK.js +1 -0
  24. package/.output/public/assets/arrow-up-right-BFafIOrq.js +1 -0
  25. package/.output/public/assets/{badge-D0NFvUY5.js → badge-DJMW4YVM.js} +1 -1
  26. package/.output/public/assets/card-C4sBAMU-.js +1 -0
  27. package/.output/public/assets/check-CqWNyG93.js +1 -0
  28. package/.output/public/assets/chevron-right-DNbYTBX1.js +1 -0
  29. package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-BCkZpskJ.js} +1 -1
  30. package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-DZrZK5gR.js} +1 -1
  31. package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-BO5V64P3.js} +1 -1
  32. package/.output/public/assets/{copy-DsuLj3oj.js → copy-CH1__JAW.js} +1 -1
  33. package/.output/public/assets/dialog-tCTZmAo8.js +1 -0
  34. package/.output/public/assets/{dist-Bf1BPKMs.js → dist-Bw_uSBJn.js} +1 -1
  35. package/.output/public/assets/empty-DsbLxQ1w.js +1 -0
  36. package/.output/public/assets/field-DL4OXTJ7.js +1 -0
  37. package/.output/public/assets/git-branch-ByZMEBxZ.js +1 -0
  38. package/.output/public/assets/history-wYnPoVmT.js +1 -0
  39. package/.output/public/assets/index-CAnjb7M2.js +10 -0
  40. package/.output/public/assets/{input-group-D_NfhUbX.js → input-group-B7jx0icS.js} +1 -1
  41. package/.output/public/assets/insights-DIs4nJI9.js +2 -0
  42. package/.output/public/assets/insights-DTF7C4jb.js +42 -0
  43. package/.output/public/assets/insights-api-B6Gj74n5.js +1 -0
  44. package/.output/public/assets/insights-bUk3ChoU.js +1 -0
  45. package/.output/public/assets/{insights-search-CYPrQVUC.js → insights-search-TfRz5kGG.js} +1 -1
  46. package/.output/public/assets/insights-usage-rpc-B4V-Qqo4.js +1 -0
  47. package/.output/public/assets/insights_.distribution-BPl5oRt4.js +2 -0
  48. package/.output/public/assets/{insights_.distribution-_dZi1_ay.js → insights_.distribution-BqfzAuAf.js} +1 -1
  49. package/.output/public/assets/insights_.distribution-BqtmnGTt.js +1 -0
  50. package/.output/public/assets/installations-6U8c_03X.js +1 -0
  51. package/.output/public/assets/{installations-Y_7QW_p8.js → installations-BU65zztK.js} +1 -1
  52. package/.output/public/assets/installations-D3MbzcFb.js +2 -0
  53. package/.output/public/assets/{key-round-DzBe6DHr.js → key-round-B-P_hhUB.js} +1 -1
  54. package/.output/public/assets/{link-DTEyW70e.js → link-CN3iHC4A.js} +2 -2
  55. package/.output/public/assets/{list-B6GeoQ_b.js → list-fFsS8Wxe.js} +1 -1
  56. package/.output/public/assets/loader-circle-GWIgH0fo.js +1 -0
  57. package/.output/public/assets/native-builds-BdzfAFnF.js +1 -0
  58. package/.output/public/assets/native-builds-CWwvuOXr.js +2 -0
  59. package/.output/public/assets/native-builds-Eh72Vr2G.js +1 -0
  60. package/.output/public/assets/native-builds_._buildId-33ksAlnZ.js +1 -0
  61. package/.output/public/assets/native-builds_._buildId-BVA5GnZP.js +2 -0
  62. package/.output/public/assets/native-builds_.devices-CElovmwq.js +1 -0
  63. package/.output/public/assets/native-builds_.devices-DWtcOVYO.js +2 -0
  64. package/.output/public/assets/{package-ytYrywZH.js → package-CXSDZsME.js} +1 -1
  65. package/.output/public/assets/plus-Cx-yFNd9.js +1 -0
  66. package/.output/public/assets/preload-helper-CRQjUQaZ.js +1 -0
  67. package/.output/public/assets/{refresh-cw-C-tvoCcE.js → refresh-cw-BgiOaFX3.js} +1 -1
  68. package/.output/public/assets/{relativeTime-DvyxGIsm.js → relativeTime-CBmDq8wh.js} +1 -1
  69. package/.output/public/assets/remote-config-B3oq9qR0.js +1 -0
  70. package/.output/public/assets/remote-config-CGbqsPh_.js +6 -0
  71. package/.output/public/assets/remote-config-D1OkfQKt.js +1 -0
  72. package/.output/public/assets/{rotate-cw-Clk5xTeE.js → rotate-cw-C1v7YuN7.js} +1 -1
  73. package/.output/public/assets/{routes-gQXSzO_n.js → routes-BTG3rg0l.js} +2 -2
  74. package/.output/public/assets/routes-CVbPjRKo.js +1 -0
  75. package/.output/public/assets/search-DiOSjaYL.js +1 -0
  76. package/.output/public/assets/select-CA8r-UUe.js +1 -0
  77. package/.output/public/assets/send-BgXZNiEA.js +1 -0
  78. package/.output/public/assets/{sidebar-Di9SN47G.js → sidebar-yC7KdImc.js} +1 -1
  79. package/.output/public/assets/smartphone-CxP0GGT6.js +1 -0
  80. package/.output/public/assets/styles-B0kzy3kp.css +2 -0
  81. package/.output/public/assets/switch-BTHWmKQ5.js +1 -0
  82. package/.output/public/assets/table-CwF7yxj4.js +1 -0
  83. package/.output/public/assets/tabs-CHNnCyvw.js +1 -0
  84. package/.output/public/assets/trash-2-CYISg7ZF.js +1 -0
  85. package/.output/public/assets/{undo-2-Bt0YXG26.js → undo-2-Bod3vw7x.js} +1 -1
  86. package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-lAmUsXcc.js} +1 -1
  87. package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-w3qYaU2L.js} +1 -1
  88. package/.output/server/{__23tanstack-start-server-fn-resolver-z8rr63xV.mjs → __23tanstack-start-server-fn-resolver-BFiPs5uv.mjs} +85 -49
  89. package/.output/server/_libs/@base-ui/react+[...].mjs +1488 -183
  90. package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
  91. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  92. package/.output/server/_libs/_.mjs +1 -1
  93. package/.output/server/_libs/lucide-react.mjs +22 -2
  94. package/.output/server/_libs/next-themes.mjs +1 -1
  95. package/.output/server/_libs/react-redux+[...].mjs +1 -1
  96. package/.output/server/_libs/recharts+[...].mjs +1 -1
  97. package/.output/server/_libs/sonner.mjs +1 -1
  98. package/.output/server/_libs/tanstack__react-query.mjs +1 -1
  99. package/.output/server/_ssr/{-native-builds-search-M6t7EIt4.mjs → -native-builds-search-Mm_AZoRU.mjs} +8 -2
  100. package/.output/server/_ssr/{BundleIdDisplay-DRnAzJse.mjs → BundleIdDisplay-BSBR5eJ3.mjs} +3 -3
  101. package/.output/server/_ssr/{ConsoleFeatureUnavailable-BEU7r4aH.mjs → ConsoleFeatureUnavailable-DcZ4JBVq.mjs} +8 -8
  102. package/.output/server/_ssr/CopyableText-DgNEsByt.mjs +33 -0
  103. package/.output/server/_ssr/{EventDetails-CjT6o2sJ.mjs → EventDetails-CUHZuwei.mjs} +9 -9
  104. package/.output/server/_ssr/{HashValueDisplay-Bkim8r3-.mjs → HashValueDisplay-B9ORaCcP.mjs} +3 -3
  105. package/.output/server/_ssr/{InsightsPageHeader-Ctw4N3SZ.mjs → InsightsPageHeader-C0bJqC-n.mjs} +9 -9
  106. package/.output/server/_ssr/IosInstall-C5Y5gnDY.mjs +574 -0
  107. package/.output/server/_ssr/NativeBuildsNav-hFiyBaFW.mjs +38 -0
  108. package/.output/server/_ssr/{NotFoundPage-Bh3gFsR6.mjs → NotFoundPage-D4xRjmIA.mjs} +3 -3
  109. package/.output/server/_ssr/{PlatformIcon-CMLs3Wez.mjs → PlatformIcon-BpGOEXjU.mjs} +2 -2
  110. package/.output/server/_ssr/{RelativeTime-DjdCU0J7.mjs → RelativeTime-DnvxB666.mjs} +20 -9
  111. package/.output/server/_ssr/{RolloutPercentageBadge-BiIHw-V2.mjs → RolloutPercentageBadge-NBnIOzY9.mjs} +4 -4
  112. package/.output/server/_ssr/RowReason-B_jZN48d.mjs +169 -0
  113. package/.output/server/_ssr/{StoreSubmission-Cv59joPo.mjs → SandboxBadge-CFtTG1ZJ.mjs} +17 -17
  114. package/.output/server/_ssr/{TargetDisplay-D1PKOupt.mjs → TargetDisplay-0sb03v_6.mjs} +7 -33
  115. package/.output/server/_ssr/{alert-dialog-BOKQTpmP.mjs → alert-dialog-SLr1Q_AI.mjs} +2 -2
  116. package/.output/server/_ssr/{api-CDvGGB1B.mjs → api-CkgOQzSb.mjs} +74 -17
  117. package/.output/server/_ssr/{api-keys-DvbSgd9L.mjs → api-keys-BP7NJtoX.mjs} +2 -2
  118. package/.output/server/_ssr/{api-keys-NYJ0VaDB.mjs → api-keys-BcSzq0TA.mjs} +11 -11
  119. package/.output/server/_ssr/{api-keys-rpc-B0MrcD15.mjs → api-keys-rpc-IWPOq5vn.mjs} +3 -3
  120. package/.output/server/_ssr/{api-rpc-CIB9gcI7.mjs → api-rpc-cNJTB3v4.mjs} +48 -32
  121. package/.output/server/_ssr/{auth-rpc-DsIffEXe.mjs → auth-rpc-oaBbtxSP.mjs} +4 -4
  122. package/.output/server/_ssr/{auth.server-Dt9XHLs_.mjs → auth.server-WQw9JjMm.mjs} +587 -19
  123. package/.output/server/_ssr/{badge-KS3YftV5.mjs → badge-n3c0OTBQ.mjs} +2 -2
  124. package/.output/server/_ssr/{bundleActivity-BGVvqWx7.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
  125. package/.output/server/_ssr/{card-CG5GqIoA.mjs → card-CYgCcRUd.mjs} +2 -2
  126. package/.output/server/_ssr/{config.server-CJs-9Zd_.mjs → config.server-R3KQbcML.mjs} +4 -4
  127. package/.output/server/_ssr/{console-access-ClmTMpo_.mjs → console-access-BLVi82IN.mjs} +2 -2
  128. package/.output/server/_ssr/{console-features-api-CpMYF0Pb.mjs → console-features-api-B2JvJOlE.mjs} +4 -4
  129. package/.output/server/_ssr/{console-features-rpc-D-dr-WF8.mjs → console-features-rpc-LAxQoSNw.mjs} +3 -3
  130. package/.output/server/_ssr/{console-features-CRP-pfov.mjs → console-features-xaGDhRC9.mjs} +1 -1
  131. package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
  132. package/.output/server/_ssr/{dialog-DvHMJkq7.mjs → dialog-eru_h5oK.mjs} +2 -2
  133. package/.output/server/_ssr/{downloadBundle-BX8ODCZT.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
  134. package/.output/server/_ssr/{empty-Bx8DnyWN.mjs → empty-Bu4qodCx.mjs} +3 -3
  135. package/.output/server/_ssr/{failureReports-C_CmBF4x.mjs → failureReports-BA2eg11O.mjs} +3 -3
  136. package/.output/server/_ssr/{field-BVI4lxoz.mjs → field-DA5lwO5U.mjs} +3 -3
  137. package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
  138. package/.output/server/_ssr/{getBundleChildren-BJTufthT.mjs → getBundleChildren-CdqFonhl.mjs} +1 -1
  139. package/.output/server/_ssr/{input-group-CpJwooTk.mjs → input-group-VV5E3q78.mjs} +2 -2
  140. package/.output/server/_ssr/{insights-b1hq1O0p.mjs → insights-BJIt1xuT.mjs} +2 -2
  141. package/.output/server/_ssr/{insights-B-VtObqr.mjs → insights-C23mopzv.mjs} +5 -5
  142. package/.output/server/_ssr/{insights-DxlHHXPK.mjs → insights-Ci82qdkq.mjs} +27 -27
  143. package/.output/server/_ssr/{insights-api-8PWQ7PiR.mjs → insights-api-BwXMKUSe.mjs} +5 -5
  144. package/.output/server/_ssr/{insights-errors-Bz3sWNZm.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
  145. package/.output/server/_ssr/{insights-failures-DNQ9qVVf.mjs → insights-failures-7zH97WOO.mjs} +2 -2
  146. package/.output/server/_ssr/{insights-failures-rpc-pY2KV9HI.mjs → insights-failures-rpc-BuZ-jnby.mjs} +10 -10
  147. package/.output/server/_ssr/{insights-recovery-DOkpqnQ8.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
  148. package/.output/server/_ssr/{insights-recovery-rpc-CejmWL_y.mjs → insights-recovery-rpc-DrXSy9aA.mjs} +6 -6
  149. package/.output/server/_ssr/{insights-rpc-D_7d_AAJ.mjs → insights-rpc-DyrIZg3a.mjs} +3 -3
  150. package/.output/server/_ssr/{insights-search-CoMkZvRt.mjs → insights-search-CNkNB-aa.mjs} +3 -3
  151. package/.output/server/_ssr/{insights-usage-4KDIN3Kg.mjs → insights-usage-h8fipPTv.mjs} +1 -1
  152. package/.output/server/_ssr/{insights-usage-rpc-CrGZDHzO.mjs → insights-usage-rpc-C7UC1lom.mjs} +6 -6
  153. package/.output/server/_ssr/{insights-usage-rpc-B1XSuara.mjs → insights-usage-rpc-cTgmD-Ej.mjs} +5 -5
  154. package/.output/server/_ssr/{insightsUsage-DmQdJZqT.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
  155. package/.output/server/_ssr/{insights_.distribution-EOOOOTb6.mjs → insights_.distribution-BauOpBTE.mjs} +2 -2
  156. package/.output/server/_ssr/{insights_.distribution-CpqnDZNG.mjs → insights_.distribution-CIY_IGmh.mjs} +16 -16
  157. package/.output/server/_ssr/{insights_.distribution-B9sPDvG4.mjs → insights_.distribution-wfFKEv-Z.mjs} +5 -5
  158. package/.output/server/_ssr/{installations-BOI_y7Ma.mjs → installations-Ba3YVrAf.mjs} +13 -13
  159. package/.output/server/_ssr/{installations-dWlOOS7Y.mjs → installations-VzacOKHp.mjs} +2 -2
  160. package/.output/server/_ssr/{installations-D0_0hzdi.mjs → installations-jGW7nvEV.mjs} +4 -4
  161. package/.output/server/_ssr/ios-devices-rpc-Bhn7VVIh.mjs +138 -0
  162. package/.output/server/_ssr/iosDeviceProfile-_XT8TpgZ.mjs +176 -0
  163. package/.output/server/_ssr/iosDevices-Bc27J72d.mjs +129 -0
  164. package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
  165. package/.output/server/_ssr/{native-builds-OUdRtp6m.mjs → native-builds-BXBkklfA.mjs} +28 -6
  166. package/.output/server/_ssr/{native-builds-Bx_az6YZ.mjs → native-builds-DZFJGcHy.mjs} +3 -3
  167. package/.output/server/_ssr/{native-builds-C721Rw23.mjs → native-builds-DiNkKHly.mjs} +221 -86
  168. package/.output/server/_ssr/{native-builds_._buildId-ubi48Sfs.mjs → native-builds_._buildId-CuM1PsT6.mjs} +108 -294
  169. package/.output/server/_ssr/{native-builds_._buildId-YItxv8j9.mjs → native-builds_._buildId-D0n4QZY6.mjs} +3 -3
  170. package/.output/server/_ssr/native-builds_.devices-D0JJlX8E.mjs +689 -0
  171. package/.output/server/_ssr/native-builds_.devices-DiM2FdcW.mjs +10 -0
  172. package/.output/server/_ssr/{nativeBuildDownloadLink-C0I8eLpS.mjs → nativeBuildDownloadLink-CvvWuhh0.mjs} +3 -3
  173. package/.output/server/_ssr/{nativeBuildInstall-CxG8K8TL.mjs → nativeBuildInstall-BqcVHBaD.mjs} +54 -7
  174. package/.output/server/_ssr/{nativeBuilds-CRLmvFaO.mjs → nativeBuilds-Cub0EUGN.mjs} +135 -13
  175. package/.output/server/_ssr/{publicConsoleBase-DvHYxDaG.mjs → publicConsoleBase-f67NLLXZ.mjs} +11 -3
  176. package/.output/server/_ssr/{release-adoption-C7sUFDwa.mjs → release-adoption-DeICczY7.mjs} +2 -2
  177. package/.output/server/_ssr/{release-adoption-rpc-DcZAYRWJ.mjs → release-adoption-rpc-Dm-5yAJG.mjs} +8 -8
  178. package/.output/server/_ssr/{releaseAdoption-D6ScSu-W.mjs → releaseAdoption-kHZo8P90.mjs} +3 -3
  179. package/.output/server/_ssr/{remote-config-gKqDKMxk.mjs → remote-config-D1BhIBKu.mjs} +3 -3
  180. package/.output/server/_ssr/{remote-config-DOcSXzxG.mjs → remote-config-D7RruPiO.mjs} +2 -2
  181. package/.output/server/_ssr/{remote-config-BZ_vGV97.mjs → remote-config-ZFm-l4Gi.mjs} +20 -20
  182. package/.output/server/_ssr/{remote-config-rpc-CVPd3V69.mjs → remote-config-rpc-C7AZy37o.mjs} +3 -3
  183. package/.output/server/_ssr/{router-Bcyej4cr.mjs → router-BGkGFMsT.mjs} +72 -75
  184. package/.output/server/_ssr/{routes-B10xsCh4.mjs → routes-CJJxz-Ak.mjs} +304 -230
  185. package/.output/server/_ssr/{routes-ddBRVSju.mjs → routes-CiJ2dhL9.mjs} +14 -13
  186. package/.output/server/_ssr/{runtime.server-wcHT2Cop.mjs → runtime.server-CkSbWaZm.mjs} +2 -2
  187. package/.output/server/_ssr/{schema-migration-rpc-iWZzLv70.mjs → schema-migration-rpc-D4YlwvGH.mjs} +3 -3
  188. package/.output/server/_ssr/{select-i4WT0c9r.mjs → select-BB8GE7OZ.mjs} +3 -3
  189. package/.output/server/_ssr/{server-CMgMPrDx.mjs → server-DAHTchcr.mjs} +5 -5
  190. package/.output/server/_ssr/{sidebar-mIQgB0iy.mjs → sidebar-CsKVgZHa.mjs} +3 -3
  191. package/.output/server/_ssr/ssr.mjs +1 -1
  192. package/.output/server/_ssr/{start-By4wHYjG.mjs → start-D3noqqOK.mjs} +1 -1
  193. package/.output/server/_ssr/{switch-DR8EAh5C.mjs → switch-BvvmP7Y3.mjs} +3 -3
  194. package/.output/server/_ssr/{table-DXmK6G7A.mjs → table-WKKzprFn.mjs} +2 -2
  195. package/.output/server/_ssr/{tabs-DAfypcYe.mjs → tabs-BJ-4SgmC.mjs} +4 -4
  196. package/.output/server/_ssr/{updateFailures-DNiv3S_y.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
  197. package/.output/server/_tanstack-start-manifest_v-CSUJeG5D.mjs +219 -0
  198. package/.output/server/index.mjs +436 -366
  199. package/lib/index.d.mts +9 -0
  200. package/package.json +7 -30
  201. package/src/components/DataTable.tsx +21 -2
  202. package/src/components/FoldedRows.tsx +201 -0
  203. package/src/components/RowReason.tsx +56 -0
  204. package/src/components/features/native-builds/InstallCard.tsx +1 -1
  205. package/src/components/features/native-builds/IosDevicesPage.tsx +892 -0
  206. package/src/components/features/native-builds/IosInstall.tsx +292 -62
  207. package/src/components/features/native-builds/IpaDevicesCard.tsx +107 -0
  208. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +7 -0
  209. package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
  210. package/src/components/features/native-builds/NativeBuildsPage.tsx +2 -0
  211. package/src/components/features/native-builds/NativeBuildsTable.tsx +214 -30
  212. package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
  213. package/src/index.ts +9 -0
  214. package/src/lib/api-rpc.ts +56 -29
  215. package/src/lib/api.ts +65 -2
  216. package/src/lib/ios-devices-api.ts +110 -0
  217. package/src/lib/ios-devices-rpc.ts +174 -0
  218. package/src/lib/native-builds.ts +72 -7
  219. package/src/lib/server/console-runtime.server.ts +9 -2
  220. package/src/lib/server/deviceProfileToken.ts +187 -0
  221. package/src/lib/server/foldedPage.ts +360 -0
  222. package/src/lib/server/iosDeviceProfile.ts +230 -0
  223. package/src/lib/server/iosDevices.ts +223 -0
  224. package/src/lib/server/listReleases.ts +101 -62
  225. package/src/lib/server/nativeBuildInstall.ts +138 -7
  226. package/src/lib/server/nativeBuilds.ts +221 -26
  227. package/src/routeTree.gen.ts +64 -67
  228. package/src/routes/-native-builds-search.ts +20 -0
  229. package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
  230. package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
  231. package/src/routes/index.tsx +444 -299
  232. package/src/routes/native-builds_.devices.tsx +21 -0
  233. package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +0 -1
  234. package/.output/public/assets/RelativeTime-TCmpOVPg.js +0 -1
  235. package/.output/public/assets/StoreSubmission-CqSg880n.js +0 -1
  236. package/.output/public/assets/TargetDisplay-DwOaMOiI.js +0 -1
  237. package/.output/public/assets/api-LQJH44FU.js +0 -1
  238. package/.output/public/assets/api-keys-4w2-ofii.js +0 -1
  239. package/.output/public/assets/api-keys-uFY8FsN9.js +0 -1
  240. package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
  241. package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
  242. package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
  243. package/.output/public/assets/card-ulgg5xHn.js +0 -1
  244. package/.output/public/assets/check-CXVR3s3X.js +0 -1
  245. package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
  246. package/.output/public/assets/dialog-CLIaC82_.js +0 -1
  247. package/.output/public/assets/empty-Bhlj8PEo.js +0 -1
  248. package/.output/public/assets/field-q4sTYzNU.js +0 -1
  249. package/.output/public/assets/history-DakJoeSM.js +0 -1
  250. package/.output/public/assets/index-CJclLsbG.js +0 -10
  251. package/.output/public/assets/insights-0TUItqwh.js +0 -1
  252. package/.output/public/assets/insights-B75txQ_F.js +0 -42
  253. package/.output/public/assets/insights-C17Z0whn.js +0 -2
  254. package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
  255. package/.output/public/assets/insights-usage-rpc-BbFllvi_.js +0 -1
  256. package/.output/public/assets/insights_.distribution-AZcfvK7x.js +0 -1
  257. package/.output/public/assets/insights_.distribution-gDqNqI5E.js +0 -2
  258. package/.output/public/assets/installations-Ap2G2tDs.js +0 -1
  259. package/.output/public/assets/installations-D0g3xvw8.js +0 -2
  260. package/.output/public/assets/native-builds-Ba6cEZfm.js +0 -2
  261. package/.output/public/assets/native-builds-C3_-21we.js +0 -1
  262. package/.output/public/assets/native-builds_._buildId-BnP31v32.js +0 -1
  263. package/.output/public/assets/native-builds_._buildId-Cp9LJiMP.js +0 -2
  264. package/.output/public/assets/plus-BVhOauU3.js +0 -1
  265. package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
  266. package/.output/public/assets/remote-config-BRdy8QFR.js +0 -1
  267. package/.output/public/assets/remote-config-C9p5Pcdj.js +0 -6
  268. package/.output/public/assets/remote-config-CIAEArwq.js +0 -1
  269. package/.output/public/assets/routes-BLTF7nwe.js +0 -1
  270. package/.output/public/assets/search-nnvSOTEB.js +0 -1
  271. package/.output/public/assets/select-CBIU0_M1.js +0 -1
  272. package/.output/public/assets/smartphone-r0rRdPas.js +0 -1
  273. package/.output/public/assets/styles-BdlrKlVs.css +0 -2
  274. package/.output/public/assets/switch-CP6GsHmN.js +0 -1
  275. package/.output/public/assets/table-TUtVz-2l.js +0 -1
  276. package/.output/public/assets/tabs-CP3CSmtI.js +0 -1
  277. package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
  278. package/.output/server/_ssr/listReleases-CQEceg8j.mjs +0 -79
  279. package/.output/server/_ssr/nativeBuildDevice-DJUAzAIj.mjs +0 -210
  280. package/.output/server/_tanstack-start-manifest_v-8M7ggCuB.mjs +0 -192
  281. package/src/lib/server/nativeBuildDevice.ts +0 -253
  282. package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +0 -17
  283. package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +0 -17
  284. package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +0 -17
  285. /package/.output/public/assets/{uuidv7-cI6C63Fm.js → uuidv7-CVJ09bBG.js} +0 -0
  286. /package/.output/public/assets/{valueToPercent-B6X9rUJM.js → valueToPercent-Db73Kirz.js} +0 -0
@@ -1,24 +1,34 @@
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 { AlertTriangle, Loader2, Send, Smartphone } from "lucide-react";
4
5
  import { useEffect, useReducer, useState } from "react";
5
6
 
6
7
  import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
7
8
  import { Button, buttonVariants } from "@/components/ui/button";
9
+ import {
10
+ Field,
11
+ FieldDescription,
12
+ FieldError,
13
+ FieldLabel,
14
+ } from "@/components/ui/field";
15
+ import { Input } from "@/components/ui/input";
8
16
  import { Skeleton } from "@/components/ui/skeleton";
9
17
  import { useNativeBuildInstallEligibilityQuery } from "@/lib/api";
18
+ import {
19
+ useIosDeviceProfileLinkQuery,
20
+ useRequestIosDeviceAccessMutation,
21
+ } from "@/lib/ios-devices-api";
10
22
  import {
11
23
  consolePathOf,
24
+ IOS_DEVICE_RECEIPT_STORAGE_KEY,
12
25
  IOS_UDID_PATTERN,
13
26
  IOS_UDID_STORAGE_KEY,
27
+ iosDeviceProfileUrl,
14
28
  NATIVE_BUILD_INSTALL_LINK_TTL_MS,
15
- nativeBuildDeviceAddCommand,
16
- nativeBuildDeviceProfilePath,
17
29
  nativeBuildItmsUrl,
18
30
  } from "@/lib/native-builds";
19
31
 
20
- import { CopyableText } from "./CopyableText";
21
-
22
32
  /**
23
33
  * What an install does to the App Store's copy of the app on this iPhone, with
24
34
  * the same bundle ID. The one line to change after trying it on a real iPhone.
@@ -36,31 +46,77 @@ export const isIosBrowser = (
36
46
  /iPhone|iPod|iPad/u.test(browser.userAgent) ||
37
47
  (/Macintosh/u.test(browser.userAgent) && browser.maxTouchPoints > 1);
38
48
 
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;
49
+ /**
50
+ * What the profile's answer passed back in the fragment: the UDID, with a
51
+ * receipt of it from a check, or `requested` from a registration.
52
+ */
53
+ const fragmentOf = () => {
54
+ if (typeof window === "undefined") {
55
+ return { udid: null, receipt: null, requested: false };
56
+ }
57
+ const params = new URLSearchParams(window.location.hash.slice(1));
58
+ const udid = params.get("udid");
59
+ const valid = udid !== null && IOS_UDID_PATTERN.test(udid) ? udid : null;
60
+ return {
61
+ udid: valid,
62
+ receipt: valid === null ? null : params.get("r"),
63
+ requested: valid !== null && params.get("requested") === "1",
64
+ };
65
+ };
66
+
67
+ /** This iPhone's view of itself, as its profile last reported it. */
68
+ export interface IosDevice {
69
+ readonly ios: boolean;
70
+ readonly udid: string | null;
71
+ /** The receipt of `udid` that Request access takes, when a check made one. */
72
+ readonly receipt: string | null;
73
+ /** Whether this page opened from a registration's answer. */
74
+ readonly requested: boolean;
75
+ }
76
+
77
+ const readKept = (key: string) => {
78
+ try {
79
+ return window.localStorage.getItem(key);
80
+ } catch {
81
+ return null;
82
+ }
83
+ };
84
+
85
+ const keep = (key: string, value: string) => {
86
+ try {
87
+ window.localStorage.setItem(key, value);
88
+ } catch {
89
+ // A browser that keeps nothing: the fragment's values stand in memory.
90
+ }
44
91
  };
45
92
 
46
93
  /**
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.
94
+ * Whether this page is open on an iPhone, its UDID, and a receipt of it: the
95
+ * ones this phone kept, else the ones the profile's answer passed in the
96
+ * fragment, which are kept then. Read after the page mounts: the server
97
+ * renders it without a browser. Null until then.
50
98
  */
51
- export const useIosDevice = () => {
52
- const [device, setDevice] = useState<{
53
- readonly ios: boolean;
54
- readonly udid: string | null;
55
- } | null>(null);
99
+ export const useIosDevice = (): IosDevice | null => {
100
+ const [device, setDevice] = useState<IosDevice | null>(null);
56
101
  // Read at the first render, so an effect that runs again (React's
57
102
  // development check) still has it after the fragment is gone.
58
- const [passed] = useState(fragmentUdid);
103
+ const [passed] = useState(fragmentOf);
59
104
  useEffect(() => {
60
105
  const valid = (udid: string | null | undefined) =>
61
106
  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 !== "") {
107
+ // Only the profile's own answer, which carries a receipt or says it
108
+ // registered, replaces the ID this phone kept: a plain link's ID never does.
109
+ const answered = passed.receipt !== null || passed.requested;
110
+ if (passed.udid !== null && answered) {
111
+ keep(IOS_UDID_STORAGE_KEY, passed.udid);
112
+ if (passed.receipt !== null) {
113
+ keep(
114
+ IOS_DEVICE_RECEIPT_STORAGE_KEY,
115
+ JSON.stringify({ udid: passed.udid, receipt: passed.receipt }),
116
+ );
117
+ }
118
+ }
119
+ if (passed.udid !== null && window.location.hash !== "") {
64
120
  window.history.replaceState(
65
121
  window.history.state,
66
122
  "",
@@ -68,24 +124,43 @@ export const useIosDevice = () => {
68
124
  );
69
125
  }
70
126
  const read = () => {
71
- let udid: string | null = null;
127
+ // A browser that keeps nothing still has the fragment's, in memory.
128
+ const udid = valid(readKept(IOS_UDID_STORAGE_KEY)) ?? passed.udid;
129
+ let receipt: string | null = null;
72
130
  try {
73
- udid = window.localStorage.getItem(IOS_UDID_STORAGE_KEY);
131
+ const kept = JSON.parse(
132
+ readKept(IOS_DEVICE_RECEIPT_STORAGE_KEY) ?? "null",
133
+ ) as { udid?: unknown; receipt?: unknown } | null;
134
+ receipt =
135
+ kept?.udid === udid && typeof kept?.receipt === "string"
136
+ ? kept.receipt
137
+ : null;
74
138
  } catch {
75
- // A browser that keeps nothing: the fragment's ID, if any, stands.
139
+ receipt = null;
76
140
  }
77
- const kept = valid(udid) ?? passed;
141
+ if (receipt === null && passed.udid === udid) receipt = passed.receipt;
78
142
  setDevice((current) =>
79
- current?.udid === kept && current !== null
143
+ current !== null && current.udid === udid && current.receipt === receipt
80
144
  ? current
81
- : { ios: isIosBrowser(navigator), udid: kept },
145
+ : {
146
+ ios: isIosBrowser(navigator),
147
+ udid,
148
+ receipt,
149
+ requested: passed.requested,
150
+ },
82
151
  );
83
152
  };
84
153
  read();
85
154
  // The profile's answer may land in another tab, which keeps the ID there:
86
155
  // this tab reads it when that tab writes it, or when Safari shows it again.
87
156
  const onStorage = (event: StorageEvent) => {
88
- if (event.key === null || event.key === IOS_UDID_STORAGE_KEY) read();
157
+ if (
158
+ event.key === null ||
159
+ event.key === IOS_UDID_STORAGE_KEY ||
160
+ event.key === IOS_DEVICE_RECEIPT_STORAGE_KEY
161
+ ) {
162
+ read();
163
+ }
89
164
  };
90
165
  window.addEventListener("storage", onStorage);
91
166
  window.addEventListener("pageshow", read);
@@ -182,45 +257,209 @@ function InstallNotes() {
182
257
  }
183
258
 
184
259
  /**
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.
260
+ * The link that hands this iPhone the profile that reads its UDID, signed for
261
+ * this person, under the Console's path. A plain link, so iOS offers the
262
+ * profile; the page signs a new one before it expires. Once it's installed,
263
+ * the phone comes back to this page with the UDID and a receipt of it.
188
264
  */
189
- function InstallProfile({
265
+ function CheckThisIphone({
190
266
  build,
191
267
  again = false,
192
268
  }: {
193
269
  readonly build: NativeBuildRow;
194
- /** Second to the command: for a phone whose kept ID isn't its own. */
270
+ /** For a phone whose kept ID isn't its own, or whose check expired. */
195
271
  readonly again?: boolean;
196
272
  }) {
273
+ const link = useIosDeviceProfileLinkQuery({
274
+ mode: "identify",
275
+ buildId: build.id,
276
+ });
277
+ if (link.data?.status === "no-secret") {
278
+ return (
279
+ <p className="text-xs text-muted-foreground" role="status">
280
+ Set {link.data.secretName} on the Console to check iPhones from this
281
+ page.
282
+ </p>
283
+ );
284
+ }
285
+ if (link.data?.status !== "issued") {
286
+ return link.isError ? (
287
+ <p className="text-xs text-destructive" role="alert">
288
+ The check couldn't start. Reload the page to try again.
289
+ </p>
290
+ ) : (
291
+ <Skeleton aria-label="Preparing the check" className="h-11 w-full" />
292
+ );
293
+ }
197
294
  return (
198
295
  <a
199
296
  className={buttonVariants({
200
297
  className: ACTION_CLASS,
201
298
  variant: again ? "secondary" : "default",
202
299
  })}
203
- href={`${consolePathOf(window.location, build.id)}${nativeBuildDeviceProfilePath(build.id)}`}
300
+ href={iosDeviceProfileUrl(
301
+ consolePathOf(window.location, build.id),
302
+ link.data.token,
303
+ )}
204
304
  >
205
305
  <Smartphone data-icon="inline-start" />
206
- {again ? "Install the profile again" : "Install profile"}
306
+ {again ? "Check this iPhone again" : "Check this iPhone"}
207
307
  </a>
208
308
  );
209
309
  }
210
310
 
311
+ const shortDate = (ms: number) => dayjs(ms).format("MMM D");
312
+
313
+ /**
314
+ * What an iPhone the IPA doesn't list sees: the registry's word on it, or
315
+ * Request access, which takes the UDID from this person's receipt alone.
316
+ */
317
+ function NotInThisBuild({
318
+ build,
319
+ device,
320
+ registry,
321
+ newerBuild,
322
+ registryReadAt,
323
+ }: {
324
+ readonly build: NativeBuildRow;
325
+ readonly device: IosDevice;
326
+ readonly registry: IosDeviceRow | null;
327
+ /**
328
+ * The newer build of this app and channel that lists the iPhone, as the
329
+ * server matched `registry.build_id`, or null.
330
+ */
331
+ readonly newerBuild: string | null;
332
+ /** When the page last read `registry`. */
333
+ readonly registryReadAt: number;
334
+ }) {
335
+ const request = useRequestIosDeviceAccessMutation();
336
+ const [name, setName] = useState("");
337
+ // The request's answer stands in only while the page still shows the
338
+ // registry read before the request started: any read after that wins, an
339
+ // approval or a removal too, even one the mutation's own refresh finished
340
+ // before its answer reached this component.
341
+ const [requested, setRequested] = useState<{
342
+ readonly device: IosDeviceRow;
343
+ readonly readBefore: number;
344
+ } | null>(null);
345
+ const standIn = requested !== null && registryReadAt <= requested.readBefore;
346
+ const row = standIn ? requested.device : registry;
347
+ const heading = (
348
+ <div className="flex min-w-0 flex-col gap-1">
349
+ <p className="text-sm font-medium">Not in this build</p>
350
+ <p className="text-xs text-muted-foreground">
351
+ This IPA was signed without this iPhone, and iOS won't install it here.
352
+ </p>
353
+ </div>
354
+ );
355
+ if (row !== null) {
356
+ // The row's build_id may name a sandbox's or another app's build: only the
357
+ // server's match of it is offered.
358
+ const newer = standIn ? null : newerBuild;
359
+ return (
360
+ <div className="flex min-w-0 flex-col gap-3">
361
+ {heading}
362
+ <p className="text-sm" role="status">
363
+ {row.apple_error !== null && newer === null
364
+ ? `Apple didn't register ${row.name}: ${row.apple_error} A maintainer can see it on the iOS devices page.`
365
+ : row.status === "pending"
366
+ ? `${row.name} was requested on ${shortDate(row.created_at_ms)}. A maintainer approves it next.`
367
+ : newer !== null
368
+ ? `A newer build has ${row.name}.`
369
+ : `${row.name} is ${row.status}. It joins the next ad hoc build.`}
370
+ </p>
371
+ {newer !== null ? (
372
+ <Link
373
+ className={buttonVariants({ className: ACTION_CLASS })}
374
+ params={{ buildId: newer }}
375
+ to="/native-builds/$buildId"
376
+ >
377
+ Open the newer build
378
+ </Link>
379
+ ) : null}
380
+ </div>
381
+ );
382
+ }
383
+ if (device.receipt === null) {
384
+ return (
385
+ <div className="flex min-w-0 flex-col gap-3">
386
+ {heading}
387
+ <p className="text-xs text-muted-foreground">
388
+ Check this iPhone once more to request it for the next ad hoc build.
389
+ </p>
390
+ <CheckThisIphone build={build} again />
391
+ </div>
392
+ );
393
+ }
394
+ const trimmed = name.trim();
395
+ return (
396
+ <form
397
+ className="flex min-w-0 flex-col gap-3"
398
+ onSubmit={(event) => {
399
+ event.preventDefault();
400
+ if (trimmed === "") return;
401
+ const readBefore = registryReadAt;
402
+ request.mutate(
403
+ { receipt: device.receipt!, name: trimmed },
404
+ {
405
+ onSuccess: ({ device: saved }) =>
406
+ setRequested({ device: saved, readBefore }),
407
+ },
408
+ );
409
+ }}
410
+ >
411
+ {heading}
412
+ <Field data-invalid={request.isError || undefined}>
413
+ <FieldLabel htmlFor="ios-device-name">This iPhone's name</FieldLabel>
414
+ <Input
415
+ autoComplete="off"
416
+ className="h-11 sm:h-8"
417
+ id="ios-device-name"
418
+ maxLength={100}
419
+ onChange={(event) => setName(event.target.value)}
420
+ placeholder="Kim's iPhone"
421
+ value={name}
422
+ />
423
+ <FieldDescription>
424
+ A maintainer approves it, and it joins the next ad hoc build.
425
+ </FieldDescription>
426
+ <FieldError>
427
+ {request.isError
428
+ ? "The request didn't go through. Check this iPhone again, then try once more."
429
+ : null}
430
+ </FieldError>
431
+ </Field>
432
+ <Button
433
+ className={ACTION_CLASS}
434
+ disabled={trimmed === "" || request.isPending}
435
+ type="submit"
436
+ >
437
+ {request.isPending ? (
438
+ <Loader2 className="animate-spin" data-icon="inline-start" />
439
+ ) : (
440
+ <Send data-icon="inline-start" />
441
+ )}
442
+ Request access
443
+ </Button>
444
+ {request.isError ? <CheckThisIphone again build={build} /> : null}
445
+ </form>
446
+ );
447
+ }
448
+
211
449
  /**
212
450
  * 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.
451
+ * once when the page opens here, so a phone it doesn't list goes to Request
452
+ * access rather than a download iOS refuses at the end. App Store Connect isn't
453
+ * asked: a device registered after this IPA was signed still isn't in it.
216
454
  */
217
455
  export function IosInstall({
218
456
  build,
219
- udid,
457
+ device,
220
458
  }: {
221
459
  readonly build: NativeBuildRow;
222
- readonly udid: string | null;
460
+ readonly device: IosDevice;
223
461
  }) {
462
+ const { udid } = device;
224
463
  const eligibility = useNativeBuildInstallEligibilityQuery(build.id, udid);
225
464
  const { refetch } = eligibility;
226
465
  const expired = useInstallLinkExpired(
@@ -295,36 +534,27 @@ export function IosInstall({
295
534
  }
296
535
  if (result.device === "not-included") {
297
536
  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>
537
+ <NotInThisBuild
538
+ build={build}
539
+ device={device}
540
+ registry={result.registry}
541
+ newerBuild={result.newerBuild}
542
+ registryReadAt={eligibility.dataUpdatedAt}
543
+ />
314
544
  );
315
545
  }
316
546
  return (
317
547
  <div className="flex min-w-0 flex-col gap-3">
318
548
  <div className="flex min-w-0 flex-col gap-1">
319
- <p className="text-sm font-medium">Install the profile first</p>
549
+ <p className="text-sm font-medium">Check this iPhone first</p>
320
550
  <p className="text-xs text-muted-foreground">
321
- iOS installs this IPA only on the devices it lists. The profile reads
551
+ iOS installs this IPA only on the devices it lists. A profile reads
322
552
  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.
553
+ in Settings, where iOS calls it not signed. Safari comes back here,
554
+ and nothing stays installed.
325
555
  </p>
326
556
  </div>
327
- <InstallProfile build={build} />
557
+ <CheckThisIphone build={build} />
328
558
  </div>
329
559
  );
330
560
  }
@@ -0,0 +1,107 @@
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
+
10
+ /**
11
+ * The devices an ad hoc IPA installs on, read from its signing profile: each
12
+ * by the registry's name when the registry knows it, else by its UDID. Read
13
+ * only: the IPA decides, and a new build is what adds a device.
14
+ */
15
+ export function IpaDevicesCard({ build }: { readonly build: NativeBuildRow }) {
16
+ const query = useNativeBuildIpaDevicesQuery(build.id);
17
+ const result = query.data;
18
+ // An App Store export or an enterprise build lists none: no card.
19
+ if (result?.status === "store" || result?.status === "enterprise") {
20
+ return null;
21
+ }
22
+ const devices = result?.status === "listed" ? result.devices : null;
23
+ return (
24
+ <Card className="overflow-hidden shadow-sm">
25
+ <CardHeader className="flex flex-row items-center gap-2 border-b px-4 py-3">
26
+ <CardTitle className="text-sm">
27
+ <h2>Devices in this build</h2>
28
+ </CardTitle>
29
+ {devices === null ? null : (
30
+ <span className="text-xs tabular-nums text-muted-foreground">
31
+ {devices.length}
32
+ </span>
33
+ )}
34
+ <Link
35
+ className={buttonVariants({
36
+ className: "ml-auto h-11 sm:h-7",
37
+ size: "sm",
38
+ variant: "ghost",
39
+ })}
40
+ to="/native-builds/devices"
41
+ >
42
+ iOS devices
43
+ </Link>
44
+ </CardHeader>
45
+ <CardContent className="p-0">
46
+ {query.isPending ? (
47
+ <div className="flex flex-col gap-2 p-4">
48
+ <span className="sr-only">Reading this IPA's devices</span>
49
+ <Skeleton className="h-8 w-full" />
50
+ <Skeleton className="h-8 w-full" />
51
+ </div>
52
+ ) : query.isError || result?.status === "unavailable" ? (
53
+ <div className="flex flex-wrap items-center gap-3 p-4 text-xs text-muted-foreground">
54
+ <p className="min-w-0 flex-1">
55
+ The Console couldn't read this IPA's devices from storage.
56
+ </p>
57
+ <Button
58
+ className="h-11 sm:h-7"
59
+ onClick={() => void query.refetch()}
60
+ size="sm"
61
+ variant="outline"
62
+ >
63
+ <RefreshCw data-icon="inline-start" />
64
+ Retry
65
+ </Button>
66
+ </div>
67
+ ) : devices?.length === 0 ? (
68
+ <p className="p-4 text-xs text-muted-foreground">
69
+ This IPA lists no devices.
70
+ </p>
71
+ ) : (
72
+ <ul aria-label="Devices in this build" className="divide-y">
73
+ {devices?.map((device) => (
74
+ <li
75
+ className="flex min-h-11 min-w-0 items-center gap-3 px-4 py-2 text-sm"
76
+ key={device.udid}
77
+ >
78
+ <Smartphone
79
+ aria-hidden="true"
80
+ className="size-4 shrink-0 text-muted-foreground"
81
+ />
82
+ {device.name === null ? (
83
+ <span
84
+ className="min-w-0 font-mono text-xs [overflow-wrap:anywhere]"
85
+ translate="no"
86
+ >
87
+ {device.udid}
88
+ </span>
89
+ ) : (
90
+ <span className="flex min-w-0 flex-col">
91
+ <span className="truncate">{device.name}</span>
92
+ <span
93
+ className="font-mono text-xs text-muted-foreground"
94
+ translate="no"
95
+ >
96
+ …{device.udid.slice(-6)}
97
+ </span>
98
+ </span>
99
+ )}
100
+ </li>
101
+ ))}
102
+ </ul>
103
+ )}
104
+ </CardContent>
105
+ </Card>
106
+ );
107
+ }
@@ -28,9 +28,11 @@ import {
28
28
 
29
29
  import { BuiltInBundleCard } from "./BuiltInBundleCard";
30
30
  import { InstallCard } from "./InstallCard";
31
+ import { IpaDevicesCard } from "./IpaDevicesCard";
31
32
  import { PatchesCard } from "./PatchesCard";
32
33
  import { SandboxBadge } from "./SandboxBadge";
33
34
  import { ServedNowCard } from "./ServedNowCard";
35
+ import { isSubmitted } from "./StoreSubmission";
34
36
 
35
37
  export interface NativeBuildDetailSearch {
36
38
  /** Patches older than this target bundle: the next page. */
@@ -160,6 +162,11 @@ export function NativeBuildDetailPage({
160
162
  ) : (
161
163
  <>
162
164
  <InstallCard build={detail.build} />
165
+ {/* A store's IPA lists no devices: its page reads nothing more. */}
166
+ {detail.build.artifact_kind === "ipa" &&
167
+ !isSubmitted(detail.build) ? (
168
+ <IpaDevicesCard build={detail.build} />
169
+ ) : null}
163
170
  <BuiltInBundleCard detail={detail} />
164
171
  <ServedNowCard detail={detail} />
165
172
  <PatchesCard
@@ -0,0 +1,44 @@
1
+ import { Link } from "@tanstack/react-router";
2
+
3
+ import { tabsListVariants } from "@/components/ui/tabs";
4
+ import { cn } from "@/lib/utils";
5
+
6
+ const TAB_CLASS =
7
+ "relative inline-flex h-full items-center justify-center rounded-md border border-transparent px-3 text-xs font-medium whitespace-nowrap text-foreground/60 transition-colors hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none aria-[current=page]:bg-background aria-[current=page]:text-foreground aria-[current=page]:shadow-sm dark:text-muted-foreground dark:hover:text-foreground dark:aria-[current=page]:border-input dark:aria-[current=page]:bg-input/30 dark:aria-[current=page]:text-foreground";
8
+
9
+ /**
10
+ * The two views of Native builds: the builds, and the iOS devices ad hoc
11
+ * builds install on. Links, so each view has its own URL and Back works.
12
+ */
13
+ export function NativeBuildsNav({
14
+ current,
15
+ }: {
16
+ readonly current: "builds" | "devices";
17
+ }) {
18
+ return (
19
+ <nav
20
+ aria-label="Native builds views"
21
+ className={cn(
22
+ tabsListVariants(),
23
+ "h-11 sm:h-8 [&>a]:min-h-10 sm:[&>a]:min-h-0",
24
+ )}
25
+ >
26
+ <Link
27
+ activeOptions={{ exact: true, includeSearch: false }}
28
+ aria-current={current === "builds" ? "page" : undefined}
29
+ className={TAB_CLASS}
30
+ to="/native-builds"
31
+ >
32
+ Builds
33
+ </Link>
34
+ <Link
35
+ activeOptions={{ exact: true, includeSearch: false }}
36
+ aria-current={current === "devices" ? "page" : undefined}
37
+ className={TAB_CLASS}
38
+ to="/native-builds/devices"
39
+ >
40
+ iOS devices
41
+ </Link>
42
+ </nav>
43
+ );
44
+ }
@@ -17,6 +17,7 @@ import {
17
17
  } from "@/lib/api";
18
18
 
19
19
  import { ImportBuildDialog } from "./ImportBuild";
20
+ import { NativeBuildsNav } from "./NativeBuildsNav";
20
21
  import { NativeBuildsTable } from "./NativeBuildsTable";
21
22
 
22
23
  /**
@@ -69,6 +70,7 @@ export function NativeBuildsPage({
69
70
  </header>
70
71
 
71
72
  <div className="flex min-h-0 min-w-0 flex-1 flex-col gap-4 bg-muted/5 p-3 sm:p-6">
73
+ <NativeBuildsNav current="builds" />
72
74
  <div className="flex items-center gap-2">
73
75
  <Select
74
76
  items={[