@hot-updater/console 1.2.0-rc.3 → 1.2.0-rc.30

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 (342) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-C-TGpFAm.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-CUtcXuY2.js → ConsoleFeatureUnavailable-Be-0iTww.js} +1 -1
  7. package/.output/public/assets/{EventDetails-Dl2RvPAk.js → EventDetails-bDOYte1z.js} +1 -1
  8. package/.output/public/assets/HashValueDisplay-D2f0HmyU.js +1 -0
  9. package/.output/public/assets/{InsightsPageHeader-DHhqY3DT.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-DZ3DxyRA.js → NotFoundPage-CVBtl68B.js} +1 -1
  13. package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-DVnzzGqM.js} +1 -1
  14. package/.output/public/assets/RelativeTime-B4PK8qDw.js +1 -0
  15. package/.output/public/assets/RolloutPercentageBadge-D_I0Raj2.js +1 -0
  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-BqYScr9y.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-FZMD5vvS.js +1 -0
  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-CPlO6ko9.js → dist-DAM__Tdz.js} +1 -1
  36. package/.output/public/assets/{download-Cf24LBde.js → download-B2GjTySo.js} +1 -1
  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-CgwVUC2n.js +10 -0
  42. package/.output/public/assets/{input-group-D3OUBk4n.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-DghCbEnk.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-CRkGNelG.js +1 -0
  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-DwNKkHhy.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--NIee1FZ.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-CTzpCVsb.js +1 -0
  64. package/.output/public/assets/native-builds_.devices-D_kl2-bc.js +2 -0
  65. package/.output/public/assets/package-BmfoZ5Zj.js +1 -0
  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-B9HHjLej.js → refresh-cw-BHhBYjS8.js} +1 -1
  69. package/.output/public/assets/{relativeTime-YQt84dYr.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-Cv2aVbYr.js → rotate-cw-Ba-slJea.js} +1 -1
  74. package/.output/public/assets/routes-DM3TyTLW.js +2 -0
  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-CUX96_BG.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/public/assets/valueToPercent-Bn8p2lng.js +1 -0
  90. package/.output/server/{__23tanstack-start-server-fn-resolver-DJQS4eWX.mjs → __23tanstack-start-server-fn-resolver-q4YFIDyr.mjs} +94 -46
  91. package/.output/server/_chunks/ssr-renderer.mjs +2 -2
  92. package/.output/server/_libs/@base-ui/react+[...].mjs +1488 -183
  93. package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
  94. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  95. package/.output/server/_libs/_.mjs +2 -0
  96. package/.output/server/_libs/lucide-react.mjs +22 -28
  97. package/.output/server/_libs/next-themes.mjs +1 -1
  98. package/.output/server/_libs/react-redux+[...].mjs +1 -1
  99. package/.output/server/_libs/recharts+[...].mjs +1 -1
  100. package/.output/server/_libs/sonner.mjs +1 -1
  101. package/.output/server/_libs/tanstack__react-query.mjs +1 -1
  102. package/.output/server/_ssr/{-native-builds-search-CwNcoXf4.mjs → -native-builds-search-Mm_AZoRU.mjs} +9 -3
  103. package/.output/server/_ssr/{BundleIdDisplay-LdRkYdnN.mjs → BundleIdDisplay-DvzlYWq8.mjs} +3 -3
  104. package/.output/server/_ssr/ChannelBadge-qF_Pc5Ud.mjs +23 -0
  105. package/.output/server/_ssr/{ConsoleFeatureUnavailable-BN-FZ8eG.mjs → ConsoleFeatureUnavailable-DKUgr0N_.mjs} +7 -7
  106. package/.output/server/_ssr/{EventDetails-B77sWxgh.mjs → EventDetails-T1XtYEDD.mjs} +8 -8
  107. package/.output/server/_ssr/{HashValueDisplay-C4Vs4cmO.mjs → HashValueDisplay-Cas_zjIS.mjs} +7 -7
  108. package/.output/server/_ssr/{InsightsPageHeader-Dx4jJ7X0.mjs → InsightsPageHeader-BrllhUl2.mjs} +8 -8
  109. package/.output/server/_ssr/IosInstall-CEHI8F2M.mjs +615 -0
  110. package/.output/server/_ssr/NativeBuildsNav-2xSHyA1a.mjs +38 -0
  111. package/.output/server/_ssr/{NotFoundPage-DB5cXeVZ.mjs → NotFoundPage-D6H9vxj_.mjs} +3 -3
  112. package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-BpGOEXjU.mjs} +13 -3
  113. package/.output/server/_ssr/RelativeTime-DpEVzDP9.mjs +237 -0
  114. package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-DW8-_w30.mjs} +20 -4
  115. package/.output/server/_ssr/RowReason-C-PjIxzq.mjs +186 -0
  116. package/.output/server/_ssr/SandboxBadge-CDdNew0R.mjs +97 -0
  117. package/.output/server/_ssr/TargetDisplay-BBsP7IaZ.mjs +83 -0
  118. package/.output/server/_ssr/{alert-dialog-DxboqQmd.mjs → alert-dialog-Bd4E9xdw.mjs} +2 -2
  119. package/.output/server/_ssr/{api-cvzOLlTy.mjs → api-BT7aA8UM.mjs} +167 -33
  120. package/.output/server/_ssr/{api-keys-C3QCQvpV.mjs → api-keys-D2NvcQZv.mjs} +2 -2
  121. package/.output/server/_ssr/{api-keys-CrbGr02t.mjs → api-keys-DjWpM20P.mjs} +11 -10
  122. package/.output/server/_ssr/{api-keys-rpc-BcTQzRLj.mjs → api-keys-rpc-nM5H7V7f.mjs} +4 -4
  123. package/.output/server/_ssr/{api-rpc-B48nsUak.mjs → api-rpc-DX4HynbW.mjs} +83 -35
  124. package/.output/server/_ssr/{auth-rpc-C0gtG9nJ.mjs → auth-rpc-LCxTtYz2.mjs} +5 -5
  125. package/.output/server/_ssr/{auth.server-B0JikHOQ.mjs → auth.server-CERo_xef.mjs} +797 -174
  126. package/.output/server/_ssr/{badge-oO-0mLsr.mjs → badge-Dpp4q7sD.mjs} +4 -45
  127. package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
  128. package/.output/server/_ssr/card-CFCftDfI.mjs +49 -0
  129. package/.output/server/_ssr/{config.server-CJVHGJtr.mjs → config.server-5W5WD8x2.mjs} +4 -4
  130. package/.output/server/_ssr/{console-access-4TW5Af_n.mjs → console-access-B0S5YFUa.mjs} +2 -2
  131. package/.output/server/_ssr/{console-features-api-DfzZRyXa.mjs → console-features-api-CV_EReEj.mjs} +4 -4
  132. package/.output/server/_ssr/{console-features-rpc-DqNpa3U9.mjs → console-features-rpc-D3xlQsuy.mjs} +4 -4
  133. package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-xaGDhRC9.mjs} +1 -1
  134. package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
  135. package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-XAvDetmn.mjs} +1 -1
  136. package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
  137. package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BtRVBD0C.mjs} +3 -3
  138. package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
  139. package/.output/server/_ssr/{dialog-DsuMZ5oh.mjs → dialog-DQR_QI_X.mjs} +2 -2
  140. package/.output/server/_ssr/{dist-TEpM_UAD.mjs → dist-B6-irDRA.mjs} +1 -1
  141. package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
  142. package/.output/server/_ssr/{empty-r4kJO91t.mjs → empty-C7PFnkCH.mjs} +3 -3
  143. package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
  144. package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-BA2eg11O.mjs} +3 -3
  145. package/.output/server/_ssr/{field-DfXmt9CS.mjs → field-BqYN8sZT.mjs} +3 -3
  146. package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
  147. package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-CdqFonhl.mjs} +2 -2
  148. package/.output/server/_ssr/{input-group-BCO7zTpU.mjs → input-group-Brv0mmyp.mjs} +2 -2
  149. package/.output/server/_ssr/{insights-CRu5FUj8.mjs → insights--xI3A0KI.mjs} +5 -5
  150. package/.output/server/_ssr/{insights-DrrhPDER.mjs → insights-CD1e3EnW.mjs} +2 -2
  151. package/.output/server/_ssr/{insights-Csqlj6u7.mjs → insights-Dd0VdO-1.mjs} +27 -26
  152. package/.output/server/_ssr/{insights-api-NW5VCXqg.mjs → insights-api-Bt2XVa4Y.mjs} +5 -5
  153. package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
  154. package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-7zH97WOO.mjs} +2 -2
  155. package/.output/server/_ssr/{insights-failures-rpc-CoFrAOK9.mjs → insights-failures-rpc-DBGzXP5A.mjs} +11 -11
  156. package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
  157. package/.output/server/_ssr/{insights-recovery-rpc-sud_FyGW.mjs → insights-recovery-rpc-C6fAh-i_.mjs} +7 -7
  158. package/.output/server/_ssr/{insights-rpc-Ce2Isz9q.mjs → insights-rpc-pThKC9oj.mjs} +4 -4
  159. package/.output/server/_ssr/{insights-search-B0O3YoO2.mjs → insights-search-iFN4UaUv.mjs} +5 -5
  160. package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-h8fipPTv.mjs} +1 -1
  161. package/.output/server/_ssr/{insights-usage-rpc-Cwf1t4aW.mjs → insights-usage-rpc-B-RLvdLZ.mjs} +5 -5
  162. package/.output/server/_ssr/{insights-usage-rpc-C-cS2F9s.mjs → insights-usage-rpc-CGHZQ9jq.mjs} +7 -7
  163. package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
  164. package/.output/server/_ssr/{insights_.distribution-DIkh5VqM.mjs → insights_.distribution-C6iXJ93Y.mjs} +15 -14
  165. package/.output/server/_ssr/{insights_.distribution-D52TkQ2V.mjs → insights_.distribution-E6Ns2aN7.mjs} +2 -2
  166. package/.output/server/_ssr/{insights_.distribution--3aR6Kpy.mjs → insights_.distribution-xHmfwwa5.mjs} +5 -5
  167. package/.output/server/_ssr/{installations-Bu4Lb0x9.mjs → installations-7V-Xyui8.mjs} +12 -12
  168. package/.output/server/_ssr/{installations-DftevpDt.mjs → installations-CZnN6slr.mjs} +4 -4
  169. package/.output/server/_ssr/{installations-C818mFCp.mjs → installations-D6Upc9Rt.mjs} +2 -2
  170. package/.output/server/_ssr/ios-devices-rpc-CXuHk24G.mjs +139 -0
  171. package/.output/server/_ssr/iosDeviceProfile-BESi_onx.mjs +176 -0
  172. package/.output/server/_ssr/iosDevices-BmvvvZRo.mjs +129 -0
  173. package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
  174. package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
  175. package/.output/server/_ssr/{native-builds-DOASMwGh.mjs → native-builds-BUojmVWC.mjs} +3 -3
  176. package/.output/server/_ssr/native-builds-BXBkklfA.mjs +197 -0
  177. package/.output/server/_ssr/native-builds-BhDCE89P.mjs +717 -0
  178. package/.output/server/_ssr/{native-builds_._buildId-CTytnLBB.mjs → native-builds_._buildId-DRiCNDdO.mjs} +3 -3
  179. package/.output/server/_ssr/native-builds_._buildId-DkMpG-OB.mjs +1176 -0
  180. package/.output/server/_ssr/native-builds_.devices-DSideebA.mjs +10 -0
  181. package/.output/server/_ssr/native-builds_.devices-DsOx1R36.mjs +702 -0
  182. package/.output/server/_ssr/nativeBuildDownloadLink-DDAUVU8q.mjs +96 -0
  183. package/.output/server/_ssr/nativeBuildInstall-CcBrfTsc.mjs +250 -0
  184. package/.output/server/_ssr/nativeBuilds-Cub0EUGN.mjs +287 -0
  185. package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-CX7wutet.mjs} +6 -6
  186. package/.output/server/_ssr/publicConsoleBase-f67NLLXZ.mjs +610 -0
  187. package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-DeICczY7.mjs} +2 -2
  188. package/.output/server/_ssr/{release-adoption-rpc-OizwttJD.mjs → release-adoption-rpc-BjMXMi9A.mjs} +9 -9
  189. package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-kHZo8P90.mjs} +4 -4
  190. package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-D9dAMI17.mjs} +3 -3
  191. package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-EPhok_Py.mjs} +1 -1
  192. package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-DaZ7ifUF.mjs} +2 -2
  193. package/.output/server/_ssr/{remote-config-DaBgnVnL.mjs → remote-config-B1iZuZOF.mjs} +2 -2
  194. package/.output/server/_ssr/{remote-config-Dypc_nuk.mjs → remote-config-C_DprbJz.mjs} +23 -22
  195. package/.output/server/_ssr/{remote-config-DZu7gJLL.mjs → remote-config-C_q6FBE4.mjs} +3 -3
  196. package/.output/server/_ssr/{remote-config-rpc-DOfPhqli.mjs → remote-config-rpc-BFTPcMfZ.mjs} +5 -5
  197. package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
  198. package/.output/server/_ssr/{router-BkRbvels.mjs → router-BDXPwfwl.mjs} +92 -59
  199. package/.output/server/_ssr/{routes-D9JnXVWL.mjs → routes-BJeztqpQ.mjs} +388 -432
  200. package/.output/server/_ssr/{routes-BeTsUkNX.mjs → routes-DpapxHLc.mjs} +14 -17
  201. package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-CkSbWaZm.mjs} +4 -4
  202. package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-3oDJJFWa.mjs} +1 -1
  203. package/.output/server/_ssr/{schema-migration-rpc-B2VGxRY6.mjs → schema-migration-rpc-a4bLEdaP.mjs} +4 -4
  204. package/.output/server/_ssr/{select-Cywc0NmT.mjs → select-C9HpIZxd.mjs} +2 -2
  205. package/.output/server/_ssr/{server-Ds-fU1zf.mjs → server-C8ZmMWnn.mjs} +7 -7
  206. package/.output/server/_ssr/{sidebar-t0NiN0-2.mjs → sidebar-BrVL3L7R.mjs} +3 -3
  207. package/.output/server/_ssr/ssr.mjs +1 -1
  208. package/.output/server/_ssr/{start-BvDsQehg.mjs → start-D3noqqOK.mjs} +2 -2
  209. package/.output/server/_ssr/{switch-D1T38CnM.mjs → switch-DtnsoZHO.mjs} +3 -3
  210. package/.output/server/_ssr/{table-L9ZQgxNF.mjs → table-Bg7nCnct.mjs} +2 -2
  211. package/.output/server/_ssr/{tabs-BiByrAnU.mjs → tabs-BEIoGLTL.mjs} +4 -4
  212. package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
  213. package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-CmHbryZT.mjs} +2 -2
  214. package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-NmbU0MD2.mjs} +1 -1
  215. package/.output/server/_tanstack-start-manifest_v-C_TPyfFP.mjs +225 -0
  216. package/.output/server/index.mjs +479 -381
  217. package/lib/index.d.mts +9 -0
  218. package/package.json +7 -30
  219. package/src/components/ChannelBadge.tsx +9 -9
  220. package/src/components/DataTable.tsx +347 -0
  221. package/src/components/FoldedRows.tsx +219 -0
  222. package/src/components/HashValueDisplay.tsx +6 -3
  223. package/src/components/PlatformIcon.tsx +10 -0
  224. package/src/components/RelativeTime.tsx +31 -0
  225. package/src/components/RowReason.tsx +56 -0
  226. package/src/components/TargetDisplay.tsx +69 -0
  227. package/src/components/ThemeProvider.tsx +11 -2
  228. package/src/components/features/api-keys/ApiKeysPage.tsx +1 -1
  229. package/src/components/features/channels/ChannelManagementDialog.tsx +5 -10
  230. package/src/components/features/insights/ReleaseActivity.tsx +1 -1
  231. package/src/components/features/native-builds/BuiltInBundleCard.tsx +108 -58
  232. package/src/components/features/native-builds/CommitLink.tsx +3 -2
  233. package/src/components/features/native-builds/ImportBuild.tsx +1 -1
  234. package/src/components/features/native-builds/InstallCard.tsx +310 -67
  235. package/src/components/features/native-builds/IosDevicesPage.tsx +944 -0
  236. package/src/components/features/native-builds/IosInstall.tsx +632 -0
  237. package/src/components/features/native-builds/IpaDevicesCard.tsx +111 -0
  238. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +21 -4
  239. package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
  240. package/src/components/features/native-builds/NativeBuildsPage.tsx +65 -76
  241. package/src/components/features/native-builds/NativeBuildsTable.tsx +668 -318
  242. package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
  243. package/src/components/features/native-builds/PatchesCard.tsx +3 -2
  244. package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +4 -4
  245. package/src/components/features/native-builds/SandboxBadge.tsx +21 -0
  246. package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
  247. package/src/components/features/native-builds/ShortHash.tsx +6 -3
  248. package/src/components/features/native-builds/StoreSubmission.tsx +18 -12
  249. package/src/components/features/native-builds/playTracks.ts +19 -0
  250. package/src/components/features/remote-config/PublishDialog.tsx +4 -1
  251. package/src/components/features/remote-config/VersionsCard.tsx +5 -2
  252. package/src/components/ui/badge.tsx +2 -0
  253. package/src/components/ui/sonner.tsx +3 -1
  254. package/src/index.ts +9 -0
  255. package/src/lib/api-rpc.ts +124 -35
  256. package/src/lib/api.ts +150 -14
  257. package/src/lib/ios-devices-api.ts +110 -0
  258. package/src/lib/ios-devices-rpc.ts +183 -0
  259. package/src/lib/native-builds.ts +160 -17
  260. package/src/lib/server/console-runtime.server.ts +9 -2
  261. package/src/lib/server/deviceProfileToken.ts +187 -0
  262. package/src/lib/server/foldedPage.ts +360 -0
  263. package/src/lib/server/iosDeviceProfile.ts +230 -0
  264. package/src/lib/server/iosDevices.ts +223 -0
  265. package/src/lib/server/listReleases.ts +101 -62
  266. package/src/lib/server/local-console.ts +1 -1
  267. package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
  268. package/src/lib/server/nativeBuildInstall.ts +495 -0
  269. package/src/lib/server/nativeBuilds.ts +308 -59
  270. package/src/lib/server/plistText.ts +17 -0
  271. package/src/lib/server/publicConsoleBase.ts +17 -0
  272. package/src/routeTree.gen.ts +85 -18
  273. package/src/routes/-native-builds-search.ts +20 -0
  274. package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
  275. package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
  276. package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
  277. package/src/routes/api/native-builds/$buildId/download.ts +22 -1
  278. package/src/routes/index.tsx +541 -532
  279. package/src/routes/native-builds_.devices.tsx +21 -0
  280. package/src/styles.css +24 -0
  281. package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
  282. package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
  283. package/.output/public/assets/StoreSubmission-ViTkW4eJ.js +0 -1
  284. package/.output/public/assets/api-P2g8dCNg.js +0 -1
  285. package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
  286. package/.output/public/assets/api-keys-FueRkF9q.js +0 -1
  287. package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
  288. package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
  289. package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
  290. package/.output/public/assets/badge-DWFcDWho.js +0 -1
  291. package/.output/public/assets/check-CXVR3s3X.js +0 -1
  292. package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
  293. package/.output/public/assets/dialog-CNUPxNxH.js +0 -1
  294. package/.output/public/assets/empty-B3Uwdd6k.js +0 -1
  295. package/.output/public/assets/field-D-2-mnNh.js +0 -1
  296. package/.output/public/assets/history-DqHlgSuV.js +0 -1
  297. package/.output/public/assets/index-CqP5HPV6.js +0 -10
  298. package/.output/public/assets/insights-B-0odqpt.js +0 -42
  299. package/.output/public/assets/insights-BSVGfxSL.js +0 -1
  300. package/.output/public/assets/insights-NK5B6ReS.js +0 -2
  301. package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
  302. package/.output/public/assets/insights-usage-rpc-CKQH0pUS.js +0 -1
  303. package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
  304. package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
  305. package/.output/public/assets/insights_.distribution-dvk6vYDM.js +0 -1
  306. package/.output/public/assets/installations-B674P5Z5.js +0 -2
  307. package/.output/public/assets/installations-BWxczZ2t.js +0 -1
  308. package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
  309. package/.output/public/assets/native-builds-BOC71grI.js +0 -1
  310. package/.output/public/assets/native-builds-D6rldpSh.js +0 -2
  311. package/.output/public/assets/native-builds-DAy2678K.js +0 -1
  312. package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
  313. package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
  314. package/.output/public/assets/plus-BReVKct-.js +0 -1
  315. package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
  316. package/.output/public/assets/remote-config-B7ujqhLa.js +0 -6
  317. package/.output/public/assets/remote-config-WjpozBG5.js +0 -1
  318. package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
  319. package/.output/public/assets/routes-BDdBIxYS.js +0 -1
  320. package/.output/public/assets/routes-CCD33Azv.js +0 -2
  321. package/.output/public/assets/search-BCel4Oy6.js +0 -1
  322. package/.output/public/assets/select-CBIU0_M1.js +0 -1
  323. package/.output/public/assets/smartphone-CMaSy_ir.js +0 -1
  324. package/.output/public/assets/styles-uK-0vUMk.css +0 -2
  325. package/.output/public/assets/switch-BpdiHL_t.js +0 -1
  326. package/.output/public/assets/table-Bpy3SvSo.js +0 -1
  327. package/.output/public/assets/tabs-Xmt7tZeG.js +0 -1
  328. package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
  329. package/.output/public/assets/valueToPercent-BLwGy_xK.js +0 -1
  330. package/.output/server/_ssr/RolloutPercentageBadge-vmwE8iae.mjs +0 -21
  331. package/.output/server/_ssr/StoreSubmission-DE4vgy5B.mjs +0 -139
  332. package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
  333. package/.output/server/_ssr/native-builds-CWjU--fI.mjs +0 -510
  334. package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
  335. package/.output/server/_ssr/native-builds_._buildId-D4lYJLIU.mjs +0 -813
  336. package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
  337. package/.output/server/_ssr/nativeBuilds-B_7BPjt_.mjs +0 -133
  338. package/.output/server/_ssr/qr-code-C7kNRIDX.mjs +0 -22
  339. package/.output/server/_tanstack-start-manifest_v-B5nsO5L4.mjs +0 -184
  340. package/src/lib/server/nativeBuildQr.ts +0 -73
  341. package/src/routes/[_]hot-updater/native-builds/qr.ts +0 -14
  342. /package/.output/public/assets/{uuidv7-zXMtwR9Q.js → uuidv7-DAoOOpz9.js} +0 -0
@@ -0,0 +1,944 @@
1
+ import {
2
+ extractTimestampFromUUIDv7,
3
+ type IosDeviceRow,
4
+ type IosDeviceStatus,
5
+ } from "@hot-updater/plugin-core";
6
+ import { Link } from "@tanstack/react-router";
7
+ import dayjs from "dayjs";
8
+ import {
9
+ AlertTriangle,
10
+ Check,
11
+ HardDrive,
12
+ Loader2,
13
+ MoreHorizontal,
14
+ Pencil,
15
+ RefreshCw,
16
+ Smartphone,
17
+ Trash2,
18
+ } from "lucide-react";
19
+ import { type FormEvent, useEffect, useState } from "react";
20
+
21
+ import {
22
+ DataCard,
23
+ DataCardSkeletons,
24
+ DataCardsEmpty,
25
+ DataTable,
26
+ DataTableEmpty,
27
+ DataTableFrame,
28
+ DataTableFullRow,
29
+ DataTableSkeletonRows,
30
+ } from "@/components/DataTable";
31
+ import { QrCode } from "@/components/QrCode";
32
+ import { RelativeTime } from "@/components/RelativeTime";
33
+ import { NoValue } from "@/components/TargetDisplay";
34
+ import {
35
+ Alert,
36
+ AlertAction,
37
+ AlertDescription,
38
+ AlertTitle,
39
+ } from "@/components/ui/alert";
40
+ import {
41
+ AlertDialog,
42
+ AlertDialogAction,
43
+ AlertDialogCancel,
44
+ AlertDialogContent,
45
+ AlertDialogDescription,
46
+ AlertDialogFooter,
47
+ AlertDialogHeader,
48
+ AlertDialogTitle,
49
+ } from "@/components/ui/alert-dialog";
50
+ import { Badge } from "@/components/ui/badge";
51
+ import { Button, buttonVariants } from "@/components/ui/button";
52
+ import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
53
+ import {
54
+ Dialog,
55
+ DialogContent,
56
+ DialogDescription,
57
+ DialogFooter,
58
+ DialogHeader,
59
+ DialogTitle,
60
+ } from "@/components/ui/dialog";
61
+ import {
62
+ DropdownMenu,
63
+ DropdownMenuContent,
64
+ DropdownMenuItem,
65
+ DropdownMenuSeparator,
66
+ DropdownMenuTrigger,
67
+ } from "@/components/ui/dropdown-menu";
68
+ import {
69
+ Field,
70
+ FieldDescription,
71
+ FieldError,
72
+ FieldGroup,
73
+ FieldLabel,
74
+ } from "@/components/ui/field";
75
+ import { Input } from "@/components/ui/input";
76
+ import {
77
+ Select,
78
+ SelectContent,
79
+ SelectGroup,
80
+ SelectItem,
81
+ SelectTrigger,
82
+ SelectValue,
83
+ } from "@/components/ui/select";
84
+ import { SidebarTrigger } from "@/components/ui/sidebar";
85
+ import { Skeleton } from "@/components/ui/skeleton";
86
+ import { TableCell, TableHead, TableRow } from "@/components/ui/table";
87
+ import { useIsMobile } from "@/hooks/use-mobile";
88
+ import {
89
+ useApproveIosDeviceMutation,
90
+ useIosDeviceProfileLinkQuery,
91
+ useIosDevicesQuery,
92
+ useRemoveIosDeviceMutation,
93
+ useRenameIosDeviceMutation,
94
+ } from "@/lib/ios-devices-api";
95
+ import type { IosDevicesView } from "@/lib/ios-devices-rpc";
96
+ import {
97
+ consolePathOf,
98
+ IOS_DEVICES_ADD_COMMAND,
99
+ IOS_DEVICES_PATH,
100
+ iosDeviceProfileUrl,
101
+ maskIosUdid,
102
+ } from "@/lib/native-builds";
103
+ import type { IosDevicesSearch } from "@/routes/-native-builds-search";
104
+
105
+ import { CopyableText } from "./CopyableText";
106
+ import { useIosDevice } from "./IosInstall";
107
+ import { NativeBuildsNav } from "./NativeBuildsNav";
108
+
109
+ const STATUS_LABELS: Record<IosDeviceStatus, string> = {
110
+ pending: "Requested",
111
+ approved: "Approved",
112
+ registered: "Registered",
113
+ };
114
+
115
+ /**
116
+ * Only a request waits on someone, so only it takes a status color; the
117
+ * other states are the normal course and stay neutral.
118
+ */
119
+ const STATUS_BADGES: Record<
120
+ IosDeviceStatus,
121
+ "warning" | "secondary" | "muted"
122
+ > = {
123
+ pending: "warning",
124
+ approved: "secondary",
125
+ registered: "muted",
126
+ };
127
+
128
+ const ALL = "all";
129
+ const COLUMNS = 6;
130
+
131
+ type Viewer = IosDevicesView["viewer"];
132
+
133
+ /** The Console's path from this page, so links work under a base path. */
134
+ const consolePath = () =>
135
+ window.location.pathname.endsWith(IOS_DEVICES_PATH)
136
+ ? window.location.pathname.slice(0, -IOS_DEVICES_PATH.length)
137
+ : consolePathOf(window.location, "");
138
+
139
+ /** Who may act on a row, decided again on the server. */
140
+ const actionsFor = (device: IosDeviceRow, viewer: Viewer) => ({
141
+ approve: viewer.canApprove && device.status === "pending",
142
+ rename: viewer.canApprove,
143
+ remove: viewer.canApprove,
144
+ withdraw:
145
+ !viewer.canApprove &&
146
+ device.status === "pending" &&
147
+ device.requested_by === viewer.email,
148
+ });
149
+
150
+ /**
151
+ * Apple's refusal of an approved device is the row an approver acts on, so it
152
+ * takes the warning in place of Approved; the other states stay neutral.
153
+ */
154
+ const appleRefused = (device: IosDeviceRow) =>
155
+ device.status === "approved" && device.apple_error !== null;
156
+
157
+ /** Who asked for a device: a person, or a terminal for one the CLI added. */
158
+ const requesterOf = (device: IosDeviceRow) =>
159
+ device.requested_by ?? "Added from a terminal";
160
+
161
+ /**
162
+ * Apple's reason. In a table cell it wraps at most two lines in a narrow
163
+ * column, the full text on hover and to a screen reader, so a long reason
164
+ * never widens the table past its frame; a card shows all of it.
165
+ */
166
+ function AppleError({
167
+ device,
168
+ inTable = false,
169
+ }: {
170
+ readonly device: IosDeviceRow;
171
+ readonly inTable?: boolean;
172
+ }) {
173
+ if (device.apple_error === null) return null;
174
+ return inTable ? (
175
+ <span
176
+ className="line-clamp-2 max-w-48 text-xs whitespace-normal text-muted-foreground"
177
+ title={device.apple_error}
178
+ >
179
+ {device.apple_error}
180
+ </span>
181
+ ) : (
182
+ <span className="max-w-64 text-xs whitespace-normal text-muted-foreground">
183
+ {device.apple_error}
184
+ </span>
185
+ );
186
+ }
187
+
188
+ function DeviceStatus({
189
+ device,
190
+ withError = true,
191
+ }: {
192
+ readonly device: IosDeviceRow;
193
+ /** Apple's reason under the badge; a card shows it on its own line. */
194
+ readonly withError?: boolean;
195
+ }) {
196
+ return (
197
+ <div className="flex min-w-0 shrink-0 flex-col items-start gap-1">
198
+ {appleRefused(device) ? (
199
+ <Badge variant="warning">Apple refused</Badge>
200
+ ) : (
201
+ <Badge variant={STATUS_BADGES[device.status]}>
202
+ {STATUS_LABELS[device.status]}
203
+ </Badge>
204
+ )}
205
+ {withError ? <AppleError device={device} inTable /> : null}
206
+ </div>
207
+ );
208
+ }
209
+
210
+ function DeviceBuild({ device }: { readonly device: IosDeviceRow }) {
211
+ if (device.build_id === null) {
212
+ return <NoValue />;
213
+ }
214
+ let label = "A build";
215
+ try {
216
+ label = `Build of ${dayjs(extractTimestampFromUUIDv7(device.build_id)).format("MMM D")}`;
217
+ } catch {
218
+ // An ID that isn't a UUIDv7 keeps the plain label.
219
+ }
220
+ return (
221
+ <Link
222
+ className="text-xs font-medium underline-offset-4 hover:underline"
223
+ params={{ buildId: device.build_id }}
224
+ to="/native-builds/$buildId"
225
+ >
226
+ {label}
227
+ </Link>
228
+ );
229
+ }
230
+
231
+ type NameTarget = {
232
+ readonly kind: "approve" | "rename";
233
+ readonly device: IosDeviceRow;
234
+ };
235
+ type DialogTarget =
236
+ | NameTarget
237
+ | { readonly kind: "remove"; readonly device: IosDeviceRow }
238
+ | null;
239
+
240
+ function DeviceActions({
241
+ device,
242
+ viewer,
243
+ onOpen,
244
+ }: {
245
+ readonly device: IosDeviceRow;
246
+ readonly viewer: Viewer;
247
+ readonly onOpen: (target: DialogTarget) => void;
248
+ }) {
249
+ const can = actionsFor(device, viewer);
250
+ if (!can.approve && !can.rename && !can.remove && !can.withdraw) return null;
251
+ return (
252
+ <div className="flex items-center justify-end gap-1">
253
+ {can.approve ? (
254
+ <Button
255
+ className="h-11 sm:h-8"
256
+ onClick={() => onOpen({ kind: "approve", device })}
257
+ size="sm"
258
+ >
259
+ <Check data-icon="inline-start" />
260
+ Approve
261
+ </Button>
262
+ ) : null}
263
+ {can.withdraw ? (
264
+ <Button
265
+ className="h-11 sm:h-8"
266
+ onClick={() => onOpen({ kind: "remove", device })}
267
+ size="sm"
268
+ variant="outline"
269
+ >
270
+ Withdraw
271
+ </Button>
272
+ ) : null}
273
+ {can.rename || can.remove ? (
274
+ <DropdownMenu>
275
+ <DropdownMenuTrigger
276
+ render={
277
+ <Button
278
+ aria-label={`More actions for ${device.name}`}
279
+ className="size-11 sm:size-8"
280
+ size="icon-sm"
281
+ variant="ghost"
282
+ />
283
+ }
284
+ >
285
+ <MoreHorizontal aria-hidden="true" />
286
+ </DropdownMenuTrigger>
287
+ <DropdownMenuContent align="end">
288
+ <DropdownMenuItem
289
+ onClick={() => onOpen({ kind: "rename", device })}
290
+ >
291
+ <Pencil aria-hidden="true" />
292
+ Rename
293
+ </DropdownMenuItem>
294
+ <DropdownMenuSeparator />
295
+ <DropdownMenuItem
296
+ onClick={() => onOpen({ kind: "remove", device })}
297
+ variant="destructive"
298
+ >
299
+ <Trash2 aria-hidden="true" />
300
+ {device.status === "pending" ? "Decline" : "Remove"}
301
+ </DropdownMenuItem>
302
+ </DropdownMenuContent>
303
+ </DropdownMenu>
304
+ ) : null}
305
+ </div>
306
+ );
307
+ }
308
+
309
+ function DeviceRow({
310
+ device,
311
+ viewer,
312
+ onOpen,
313
+ }: {
314
+ readonly device: IosDeviceRow;
315
+ readonly viewer: Viewer;
316
+ readonly onOpen: (target: DialogTarget) => void;
317
+ }) {
318
+ return (
319
+ <TableRow>
320
+ <TableCell className="font-medium">{device.name}</TableCell>
321
+ <TableCell>
322
+ <span className="font-mono text-xs" title={device.udid} translate="no">
323
+ {maskIosUdid(device.udid)}
324
+ </span>
325
+ </TableCell>
326
+ <TableCell className="text-xs">
327
+ {device.requested_by ?? (
328
+ <span className="text-muted-foreground">{requesterOf(device)}</span>
329
+ )}
330
+ </TableCell>
331
+ <TableCell>
332
+ <DeviceStatus device={device} />
333
+ </TableCell>
334
+ <TableCell className="text-xs">
335
+ <RelativeTime ms={device.created_at_ms} />
336
+ </TableCell>
337
+ <TableCell>
338
+ <DeviceBuild device={device} />
339
+ </TableCell>
340
+ <TableCell className="text-right">
341
+ <DeviceActions device={device} onOpen={onOpen} viewer={viewer} />
342
+ </TableCell>
343
+ </TableRow>
344
+ );
345
+ }
346
+
347
+ function DeviceCard({
348
+ device,
349
+ viewer,
350
+ onOpen,
351
+ }: {
352
+ readonly device: IosDeviceRow;
353
+ readonly viewer: Viewer;
354
+ readonly onOpen: (target: DialogTarget) => void;
355
+ }) {
356
+ return (
357
+ <DataCard className="cursor-default gap-3">
358
+ <div className="flex min-w-0 items-start justify-between gap-3">
359
+ <div className="flex min-w-0 flex-col gap-0.5">
360
+ <p className="truncate text-sm font-medium">{device.name}</p>
361
+ <p className="font-mono text-xs text-muted-foreground" translate="no">
362
+ {maskIosUdid(device.udid)}
363
+ </p>
364
+ </div>
365
+ <DeviceStatus device={device} withError={false} />
366
+ </div>
367
+ <AppleError device={device} />
368
+ <p className="flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground">
369
+ <span>{requesterOf(device)}</span>
370
+ <span aria-hidden="true">·</span>
371
+ <RelativeTime ms={device.created_at_ms} />
372
+ {device.build_id === null ? null : (
373
+ <>
374
+ <span aria-hidden="true">·</span>
375
+ <DeviceBuild device={device} />
376
+ </>
377
+ )}
378
+ </p>
379
+ <DeviceActions device={device} onOpen={onOpen} viewer={viewer} />
380
+ </DataCard>
381
+ );
382
+ }
383
+
384
+ /** Name a device: approving a request, or renaming any device. */
385
+ function NameDialog({
386
+ target,
387
+ onClose,
388
+ }: {
389
+ readonly target: NameTarget;
390
+ readonly onClose: () => void;
391
+ }) {
392
+ const approve = useApproveIosDeviceMutation();
393
+ const rename = useRenameIosDeviceMutation();
394
+ const mutation = target.kind === "approve" ? approve : rename;
395
+ const [name, setName] = useState(target.device.name);
396
+ const trimmed = name.trim();
397
+ const submit = (event: FormEvent) => {
398
+ event.preventDefault();
399
+ if (trimmed === "") return;
400
+ mutation.mutate(
401
+ { id: target.device.id, name: trimmed },
402
+ { onSuccess: onClose },
403
+ );
404
+ };
405
+ return (
406
+ <Dialog onOpenChange={(open) => (open ? null : onClose())} open>
407
+ <DialogContent>
408
+ <DialogHeader>
409
+ <DialogTitle>
410
+ {target.kind === "approve"
411
+ ? `Approve ${target.device.name}?`
412
+ : `Rename ${target.device.name}`}
413
+ </DialogTitle>
414
+ <DialogDescription>
415
+ {target.kind === "approve"
416
+ ? "The next ad hoc build registers this iPhone with your Apple account. Each new iPhone uses one of the account's 100 a year, and removing it never gives the slot back."
417
+ : "The registry shows this name. The next ad hoc build doesn't rename it at Apple."}
418
+ </DialogDescription>
419
+ </DialogHeader>
420
+ <form onSubmit={submit}>
421
+ <FieldGroup>
422
+ {target.kind === "approve" ? (
423
+ <dl className="grid grid-cols-[auto_minmax(0,1fr)] gap-x-4 gap-y-1 text-sm">
424
+ <dt className="text-muted-foreground">Requested by</dt>
425
+ <dd className="truncate">
426
+ {target.device.requested_by ?? "Terminal (CLI)"}
427
+ </dd>
428
+ <dt className="text-muted-foreground">UDID</dt>
429
+ {/* All of it, to check against Finder: a phone has no hover. */}
430
+ <dd
431
+ className="font-mono text-xs break-all select-all"
432
+ translate="no"
433
+ >
434
+ {target.device.udid}
435
+ </dd>
436
+ </dl>
437
+ ) : null}
438
+ <Field data-invalid={mutation.isError || undefined}>
439
+ <FieldLabel htmlFor="ios-device-dialog-name">Name</FieldLabel>
440
+ <Input
441
+ autoComplete="off"
442
+ id="ios-device-dialog-name"
443
+ maxLength={100}
444
+ onChange={(event) => setName(event.target.value)}
445
+ value={name}
446
+ />
447
+ {target.kind === "approve" ? (
448
+ <FieldDescription>
449
+ The iPhone's ID comes from the person who asked. Approve
450
+ devices you recognize.
451
+ </FieldDescription>
452
+ ) : null}
453
+ <FieldError>
454
+ {mutation.isError
455
+ ? `Couldn't ${target.kind === "approve" ? "approve" : "rename"} ${target.device.name}. Check your connection and try again.`
456
+ : null}
457
+ </FieldError>
458
+ </Field>
459
+ </FieldGroup>
460
+ <DialogFooter className="mt-4">
461
+ <Button
462
+ className="h-11 sm:h-8"
463
+ disabled={trimmed === "" || mutation.isPending}
464
+ type="submit"
465
+ >
466
+ {mutation.isPending ? (
467
+ <Loader2
468
+ className="animate-spin motion-reduce:animate-none"
469
+ data-icon="inline-start"
470
+ />
471
+ ) : (
472
+ <Check data-icon="inline-start" />
473
+ )}
474
+ {target.kind === "approve" ? "Approve" : "Rename"}
475
+ </Button>
476
+ </DialogFooter>
477
+ </form>
478
+ </DialogContent>
479
+ </Dialog>
480
+ );
481
+ }
482
+
483
+ function RemoveDialog({
484
+ device,
485
+ viewer,
486
+ onClose,
487
+ }: {
488
+ readonly device: IosDeviceRow;
489
+ readonly viewer: Viewer;
490
+ readonly onClose: () => void;
491
+ }) {
492
+ const remove = useRemoveIosDeviceMutation();
493
+ const withdraw = !viewer.canApprove;
494
+ const decline = device.status === "pending";
495
+ return (
496
+ <AlertDialog onOpenChange={(open) => (open ? null : onClose())} open>
497
+ <AlertDialogContent>
498
+ <AlertDialogHeader>
499
+ <AlertDialogTitle>
500
+ {withdraw
501
+ ? `Withdraw ${device.name}?`
502
+ : decline
503
+ ? `Decline ${device.name}?`
504
+ : `Remove ${device.name}?`}
505
+ </AlertDialogTitle>
506
+ <AlertDialogDescription>
507
+ {decline
508
+ ? "It leaves the list. Its owner can request it again."
509
+ : "It leaves the list. New ad hoc builds keep it until it's disabled at Apple."}
510
+ </AlertDialogDescription>
511
+ </AlertDialogHeader>
512
+ {decline || !viewer.canApprove ? null : (
513
+ <div className="flex min-w-0 flex-col text-xs text-muted-foreground [&_code]:break-words [&_code]:whitespace-normal">
514
+ <CopyableText
515
+ label="the command that disables it"
516
+ value={`npx hot-updater native-build devices remove --udid ${device.udid}`}
517
+ wrap
518
+ />
519
+ </div>
520
+ )}
521
+ {remove.isError ? (
522
+ <p className="text-xs text-destructive" role="alert">
523
+ Couldn't {withdraw ? "withdraw" : decline ? "decline" : "remove"}{" "}
524
+ {device.name}. Check your connection and try again.
525
+ </p>
526
+ ) : null}
527
+ <AlertDialogFooter>
528
+ <AlertDialogCancel disabled={remove.isPending}>
529
+ Cancel
530
+ </AlertDialogCancel>
531
+ <AlertDialogAction
532
+ disabled={remove.isPending}
533
+ onClick={(event) => {
534
+ event.preventDefault();
535
+ remove.mutate({ udid: device.udid }, { onSuccess: onClose });
536
+ }}
537
+ variant="destructive"
538
+ >
539
+ {remove.isPending ? (
540
+ <Loader2
541
+ className="animate-spin motion-reduce:animate-none"
542
+ data-icon="inline-start"
543
+ />
544
+ ) : null}
545
+ {withdraw ? "Withdraw" : decline ? "Decline" : "Remove"}
546
+ </AlertDialogAction>
547
+ </AlertDialogFooter>
548
+ </AlertDialogContent>
549
+ </AlertDialog>
550
+ );
551
+ }
552
+
553
+ /** Why iPhones can't register through this Console. */
554
+ function RegistrationNotice({
555
+ status,
556
+ secretName,
557
+ }: {
558
+ readonly status: "local-console" | "no-secret";
559
+ /** The secret to set, for `no-secret`. */
560
+ readonly secretName?: string;
561
+ }) {
562
+ return (
563
+ <p className="text-xs text-muted-foreground" role="status">
564
+ {status === "local-console"
565
+ ? "iPhones register through your hosted Console: an iPhone can't reach this computer's."
566
+ : `Set ${secretName} on this Console to register iPhones.`}
567
+ </p>
568
+ );
569
+ }
570
+
571
+ /**
572
+ * Where an iPhone joins the list: on a computer, a QR code of this page; on
573
+ * the iPhone, its name and the profile that reads its UDID, signed for the
574
+ * person who is signed in.
575
+ */
576
+ function RegisterCard({
577
+ view,
578
+ devices,
579
+ }: {
580
+ readonly view: IosDevicesView | undefined;
581
+ readonly devices: readonly IosDeviceRow[] | undefined;
582
+ }) {
583
+ const phone = useIosDevice();
584
+ const [name, setName] = useState<string | null>(null);
585
+ const typed = name ?? view?.defaultName ?? "";
586
+ // The link is signed for the name as typed; a pause before signing again.
587
+ const [signed, setSigned] = useState(typed);
588
+ useEffect(() => {
589
+ const timer = setTimeout(() => setSigned(typed.trim()), 400);
590
+ return () => clearTimeout(timer);
591
+ }, [typed]);
592
+ const onPhone = phone?.ios === true;
593
+ const link = useIosDeviceProfileLinkQuery(
594
+ { mode: "register", name: signed || "iPhone" },
595
+ onPhone && view?.registration === "ready",
596
+ );
597
+ const https = phone === null || window.location.protocol === "https:";
598
+ const back =
599
+ phone?.requested && phone.udid !== null
600
+ ? devices?.find((device) => device.udid === phone.udid?.toLowerCase())
601
+ : undefined;
602
+
603
+ const body = (() => {
604
+ // The server renders this without a browser: where it is and what it is
605
+ // are read once the page mounts.
606
+ if (phone === null) {
607
+ return <Skeleton aria-label="Loading" className="h-36 w-full" />;
608
+ }
609
+ if (back !== undefined) {
610
+ return (
611
+ <p className="text-sm" role="status">
612
+ <span className="font-medium">{back.name}</span> ·{" "}
613
+ {STATUS_LABELS[back.status]}.{" "}
614
+ {back.status === "pending"
615
+ ? "A maintainer approves it next, and it joins the next ad hoc build."
616
+ : "It joins the next ad hoc build."}
617
+ </p>
618
+ );
619
+ }
620
+ if (
621
+ view !== undefined &&
622
+ (view.registration === "local-console" ||
623
+ view.registration === "no-secret")
624
+ ) {
625
+ return (
626
+ <RegistrationNotice
627
+ secretName={view.secretName}
628
+ status={view.registration}
629
+ />
630
+ );
631
+ }
632
+ if (!onPhone) {
633
+ return (
634
+ <div className="flex flex-col items-start gap-4 sm:flex-row sm:items-center">
635
+ <QrCode
636
+ className="size-36 shrink-0"
637
+ label="Open this page on an iPhone"
638
+ value={`${window.location.origin}${consolePath()}${IOS_DEVICES_PATH}`}
639
+ />
640
+ <div className="flex min-w-0 flex-col gap-1">
641
+ <p className="text-sm font-medium">
642
+ Open this page on the iPhone, in Safari.
643
+ </p>
644
+ <p className="text-xs text-muted-foreground">
645
+ It installs a profile that reads the iPhone's ID, then lists the
646
+ iPhone here as requested. Nothing stays installed.
647
+ </p>
648
+ </div>
649
+ </div>
650
+ );
651
+ }
652
+ if (!https) {
653
+ return (
654
+ <p className="text-xs text-muted-foreground" role="status">
655
+ iPhones need this Console on HTTPS.
656
+ </p>
657
+ );
658
+ }
659
+ if (link.data?.status === "local-console") {
660
+ return <RegistrationNotice status="local-console" />;
661
+ }
662
+ if (link.data?.status === "no-secret") {
663
+ return (
664
+ <RegistrationNotice
665
+ secretName={link.data.secretName}
666
+ status="no-secret"
667
+ />
668
+ );
669
+ }
670
+ return (
671
+ <div className="flex min-w-0 flex-col gap-3">
672
+ <Field>
673
+ <FieldLabel htmlFor="ios-device-register-name">
674
+ This iPhone's name
675
+ </FieldLabel>
676
+ <Input
677
+ autoComplete="off"
678
+ className="h-11"
679
+ id="ios-device-register-name"
680
+ maxLength={100}
681
+ onChange={(event) => setName(event.target.value)}
682
+ value={typed}
683
+ />
684
+ </Field>
685
+ {link.data?.status === "issued" && signed === typed.trim() ? (
686
+ <a
687
+ className={buttonVariants({
688
+ className: "h-auto min-h-11 w-full whitespace-normal",
689
+ })}
690
+ href={iosDeviceProfileUrl(consolePath(), link.data.token)}
691
+ >
692
+ <Smartphone data-icon="inline-start" />
693
+ Install profile
694
+ </a>
695
+ ) : (
696
+ <Skeleton
697
+ aria-label="Preparing the profile"
698
+ className="h-11 w-full"
699
+ />
700
+ )}
701
+ <p className="text-xs text-muted-foreground">
702
+ Safari only. Allow the download, then install it in Settings, where
703
+ iOS calls it not signed. Safari comes back here, and nothing stays
704
+ installed.
705
+ </p>
706
+ </div>
707
+ );
708
+ })();
709
+
710
+ return (
711
+ <Card className="shadow-sm">
712
+ <CardHeader className="border-b px-4 py-3">
713
+ <CardTitle className="text-sm">
714
+ <h2>Register an iPhone</h2>
715
+ </CardTitle>
716
+ </CardHeader>
717
+ <CardContent className="p-4 sm:p-6">{body}</CardContent>
718
+ </Card>
719
+ );
720
+ }
721
+
722
+ /**
723
+ * The iOS device registry inside Native builds: the iPhones and iPads a team
724
+ * asked to install ad hoc builds on. Testers register from an iPhone,
725
+ * approvers approve, rename, and remove, and the next ad hoc build registers
726
+ * what was approved with Apple. Android builds need none of this.
727
+ */
728
+ export function IosDevicesPage({
729
+ search,
730
+ onSearchChange,
731
+ }: {
732
+ readonly search: IosDevicesSearch;
733
+ readonly onSearchChange: (search: IosDevicesSearch) => void;
734
+ }) {
735
+ const isMobile = useIsMobile();
736
+ const query = useIosDevicesQuery(search.status);
737
+ const view = query.data;
738
+ const rows = view?.devices;
739
+ const [dialog, setDialog] = useState<DialogTarget>(null);
740
+ const close = () => setDialog(null);
741
+
742
+ const empty = (
743
+ <DataTableEmpty
744
+ icon={Smartphone}
745
+ title={
746
+ search.status === undefined
747
+ ? "No iPhones yet"
748
+ : `No ${STATUS_LABELS[search.status].toLowerCase()} iPhones`
749
+ }
750
+ >
751
+ {search.status === undefined ? (
752
+ <p>Open this page on an iPhone to register it.</p>
753
+ ) : (
754
+ <Button
755
+ className="h-11 sm:h-8"
756
+ onClick={() => onSearchChange({})}
757
+ size="sm"
758
+ variant="outline"
759
+ >
760
+ Show all
761
+ </Button>
762
+ )}
763
+ </DataTableEmpty>
764
+ );
765
+
766
+ return (
767
+ <div className="flex h-svh min-h-0 min-w-0 flex-col">
768
+ <header className="sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm">
769
+ <SidebarTrigger className="-ml-1 size-11 lg:size-7" />
770
+ <div className="flex items-center gap-1.5">
771
+ <HardDrive
772
+ aria-hidden="true"
773
+ className="size-3.5 text-muted-foreground"
774
+ />
775
+ <h1 className="text-sm font-medium">Native builds</h1>
776
+ </div>
777
+ <p className="basis-full pl-12 text-xs text-muted-foreground sm:basis-auto sm:pl-0">
778
+ The iPhones and iPads ad hoc builds install on. Android needs none.
779
+ </p>
780
+ </header>
781
+
782
+ <div className="flex min-h-0 min-w-0 flex-1 flex-col gap-4 overflow-y-auto bg-muted/5 p-3 sm:p-6">
783
+ <NativeBuildsNav current="devices" />
784
+ <RegisterCard devices={rows} view={view} />
785
+ {view !== undefined && !view.viewer.approversConfigured ? (
786
+ <div className="flex min-w-0 flex-col gap-1.5 text-xs text-muted-foreground">
787
+ <p>Nobody approves in this Console. Approve from a terminal:</p>
788
+ <CopyableText
789
+ label="the approve command"
790
+ value={IOS_DEVICES_ADD_COMMAND}
791
+ />
792
+ </div>
793
+ ) : null}
794
+ <div className="flex items-center gap-2">
795
+ <Select
796
+ items={[
797
+ { label: "All statuses", value: ALL },
798
+ ...(Object.keys(STATUS_LABELS) as IosDeviceStatus[]).map(
799
+ (status) => ({ label: STATUS_LABELS[status], value: status }),
800
+ ),
801
+ ]}
802
+ onValueChange={(value) =>
803
+ onSearchChange(
804
+ value === null || value === ALL
805
+ ? {}
806
+ : { status: value as IosDeviceStatus },
807
+ )
808
+ }
809
+ value={search.status ?? ALL}
810
+ >
811
+ <SelectTrigger
812
+ aria-label="Status"
813
+ className="min-w-0 flex-1 text-xs data-[size=default]:h-11 sm:w-44 sm:flex-none sm:data-[size=default]:h-8"
814
+ >
815
+ <SelectValue />
816
+ </SelectTrigger>
817
+ <SelectContent>
818
+ <SelectGroup>
819
+ <SelectItem value={ALL}>All statuses</SelectItem>
820
+ {(Object.keys(STATUS_LABELS) as IosDeviceStatus[]).map(
821
+ (status) => (
822
+ <SelectItem key={status} value={status}>
823
+ {STATUS_LABELS[status]}
824
+ </SelectItem>
825
+ ),
826
+ )}
827
+ </SelectGroup>
828
+ </SelectContent>
829
+ </Select>
830
+ <Button
831
+ aria-label="Refresh iOS devices"
832
+ className="ml-auto size-11 sm:size-7"
833
+ disabled={query.isFetching}
834
+ onClick={() => void query.refetch()}
835
+ size="icon-sm"
836
+ variant="ghost"
837
+ >
838
+ <RefreshCw aria-hidden="true" />
839
+ </Button>
840
+ </div>
841
+ {query.isError ? (
842
+ <Alert variant="destructive">
843
+ <AlertTriangle />
844
+ <AlertTitle>iOS devices couldn't be loaded</AlertTitle>
845
+ <AlertDescription>
846
+ Check your connection and try again.
847
+ </AlertDescription>
848
+ <AlertAction>
849
+ <Button
850
+ onClick={() => void query.refetch()}
851
+ size="xs"
852
+ variant="outline"
853
+ >
854
+ <RefreshCw data-icon="inline-start" />
855
+ Retry
856
+ </Button>
857
+ </AlertAction>
858
+ </Alert>
859
+ ) : (
860
+ <DataTableFrame>
861
+ {isMobile ? (
862
+ <div
863
+ aria-busy={query.isPlaceholderData}
864
+ aria-label="iOS devices"
865
+ className="aria-busy:opacity-60"
866
+ role="list"
867
+ >
868
+ {query.isLoading ? (
869
+ <DataCardSkeletons label="Loading iOS devices" />
870
+ ) : rows?.length === 0 ? (
871
+ <DataCardsEmpty>{empty}</DataCardsEmpty>
872
+ ) : (
873
+ rows?.map((device) => (
874
+ <div
875
+ className="border-b last:border-b-0"
876
+ key={device.id}
877
+ role="listitem"
878
+ >
879
+ <DeviceCard
880
+ device={device}
881
+ onOpen={setDialog}
882
+ viewer={view!.viewer}
883
+ />
884
+ </div>
885
+ ))
886
+ )}
887
+ </div>
888
+ ) : (
889
+ <DataTable
890
+ aria-busy={query.isPlaceholderData}
891
+ aria-label="iOS devices"
892
+ className="aria-busy:opacity-60"
893
+ header={
894
+ <>
895
+ <TableHead>Name</TableHead>
896
+ <TableHead>UDID</TableHead>
897
+ <TableHead>Requested by</TableHead>
898
+ <TableHead>Status</TableHead>
899
+ <TableHead>Added</TableHead>
900
+ <TableHead>Build</TableHead>
901
+ <TableHead className="text-right">
902
+ <span className="sr-only">Actions</span>
903
+ </TableHead>
904
+ </>
905
+ }
906
+ >
907
+ {query.isLoading ? (
908
+ <DataTableSkeletonRows
909
+ columns={COLUMNS + 1}
910
+ label="Loading iOS devices"
911
+ />
912
+ ) : rows?.length === 0 ? (
913
+ <DataTableFullRow columns={COLUMNS + 1}>
914
+ {empty}
915
+ </DataTableFullRow>
916
+ ) : (
917
+ rows?.map((device) => (
918
+ <DeviceRow
919
+ device={device}
920
+ key={device.id}
921
+ onOpen={setDialog}
922
+ viewer={view!.viewer}
923
+ />
924
+ ))
925
+ )}
926
+ </DataTable>
927
+ )}
928
+ </DataTableFrame>
929
+ )}
930
+ </div>
931
+ {dialog !== null && dialog.kind !== "remove" ? (
932
+ <NameDialog key={dialog.device.id} onClose={close} target={dialog} />
933
+ ) : null}
934
+ {dialog?.kind === "remove" && view !== undefined ? (
935
+ <RemoveDialog
936
+ device={dialog.device}
937
+ key={dialog.device.id}
938
+ onClose={close}
939
+ viewer={view.viewer}
940
+ />
941
+ ) : null}
942
+ </div>
943
+ );
944
+ }