@hot-updater/console 1.2.0-rc.31 → 1.2.0-rc.33

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 (262) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/-native-builds-search-BvCftqF2.js +1 -0
  3. package/.output/public/assets/{BundleIdDisplay-CTBdtFQ8.js → BundleIdDisplay-D8oR8mcP.js} +1 -1
  4. package/.output/public/assets/{ChannelBadge-CEabmopB.js → ChannelBadge-Do-lWsLM.js} +1 -1
  5. package/.output/public/assets/{CompositeItem-KUM5yQVr.js → CompositeItem-CyQoQkYs.js} +1 -1
  6. package/.output/public/assets/{ConsoleFeatureUnavailable-Be-0iTww.js → ConsoleFeatureUnavailable-C0iDIboF.js} +1 -1
  7. package/.output/public/assets/{EventDetails-bDOYte1z.js → EventDetails-DFWS-HcW.js} +1 -1
  8. package/.output/public/assets/{HashValueDisplay-D2f0HmyU.js → HashValueDisplay-DKziWjEg.js} +1 -1
  9. package/.output/public/assets/{InsightsPageHeader-Cj2ROSQO.js → InsightsPageHeader-BATHTZWn.js} +1 -1
  10. package/.output/public/assets/IosInstall-DsKczesK.js +1 -0
  11. package/.output/public/assets/NativeBuildsNav-D3FIlSu0.js +1 -0
  12. package/.output/public/assets/{NotFoundPage-CVBtl68B.js → NotFoundPage-CijSy63W.js} +1 -1
  13. package/.output/public/assets/{PlatformIcon-DVnzzGqM.js → PlatformIcon-Kq3q98tU.js} +1 -1
  14. package/.output/public/assets/QrCode-D3-Vuudy.js +1 -0
  15. package/.output/public/assets/{RelativeTime-Dz25a2yJ.js → RelativeTime-CP7nosYx.js} +1 -1
  16. package/.output/public/assets/{RolloutPercentageBadge-D_I0Raj2.js → RolloutPercentageBadge-DnmU8XbU.js} +1 -1
  17. package/.output/public/assets/{RowReason-CAkj76WL.js → RowReason-D7TZ2xwW.js} +1 -1
  18. package/.output/public/assets/SandboxBadge-BPf2uve4.js +1 -0
  19. package/.output/public/assets/TargetDisplay-DzSkf5yP.js +1 -0
  20. package/.output/public/assets/alert-dialog-Dihztkem.js +1 -0
  21. package/.output/public/assets/{api-C1OPeiG1.js → api-B1z_XXrQ.js} +1 -1
  22. package/.output/public/assets/api-keys-C_u_ZmPS.js +1 -0
  23. package/.output/public/assets/api-keys-DPuPM7ag.js +1 -0
  24. package/.output/public/assets/arrow-left-CxxDwBQs.js +1 -0
  25. package/.output/public/assets/arrow-right-jHG0fJt7.js +1 -0
  26. package/.output/public/assets/arrow-up-right-BPRe5soE.js +1 -0
  27. package/.output/public/assets/{badge-FZMD5vvS.js → badge-D4Tiwei-.js} +1 -1
  28. package/.output/public/assets/{card-CyHYmHue.js → card-BfeRlTvj.js} +1 -1
  29. package/.output/public/assets/check-Dz_5aNwx.js +1 -0
  30. package/.output/public/assets/chevron-right-CuYrscDY.js +1 -0
  31. package/.output/public/assets/{circle-off-BCkZpskJ.js → circle-off-BZFOMb8J.js} +1 -1
  32. package/.output/public/assets/{clipboard-DZrZK5gR.js → clipboard-D8uvj6FN.js} +1 -1
  33. package/.output/public/assets/{console-features-api-BO5V64P3.js → console-features-api-De6tXQnd.js} +1 -1
  34. package/.output/public/assets/{copy-CH1__JAW.js → copy-BxI24-g-.js} +1 -1
  35. package/.output/public/assets/dialog-e9AF5T6h.js +1 -0
  36. package/.output/public/assets/{dist-DAM__Tdz.js → dist-BEIz5ojx.js} +1 -1
  37. package/.output/public/assets/{download-B2GjTySo.js → download-ekENI2Sw.js} +1 -1
  38. package/.output/public/assets/{empty--YaE5Z4p.js → empty-DpSPWLc2.js} +1 -1
  39. package/.output/public/assets/{field-CdhSgWhI.js → field-PkdRPD3A.js} +1 -1
  40. package/.output/public/assets/{git-branch-DG1VDaKq.js → git-branch-BWrvONjc.js} +1 -1
  41. package/.output/public/assets/{history-C0wv4htz.js → history-DwdBLzJP.js} +1 -1
  42. package/.output/public/assets/index-BZVWufH3.js +10 -0
  43. package/.output/public/assets/input-group-DNfVeeYZ.js +1 -0
  44. package/.output/public/assets/{insights-_j_ieOyh.js → insights-Bm4Kua5R.js} +2 -2
  45. package/.output/public/assets/insights-CpnFoyo5.js +2 -0
  46. package/.output/public/assets/insights-MQrx_wbP.js +1 -0
  47. package/.output/public/assets/{insights-api-B6Gj74n5.js → insights-api-CXXCRZhF.js} +1 -1
  48. package/.output/public/assets/{insights-search-Bgvg6wSP.js → insights-search-CtEcj6lz.js} +1 -1
  49. package/.output/public/assets/{insights-usage-rpc-BUCinjSN.js → insights-usage-rpc-DdmD1Nuy.js} +1 -1
  50. package/.output/public/assets/{insights_.distribution-CRkGNelG.js → insights_.distribution-Bjo0aQE4.js} +1 -1
  51. package/.output/public/assets/insights_.distribution-Dd2mYz8D.js +2 -0
  52. package/.output/public/assets/insights_.distribution-REbBAqgL.js +1 -0
  53. package/.output/public/assets/{installations-BsD6LgNc.js → installations-DYT2mSjX.js} +2 -2
  54. package/.output/public/assets/installations-Di02gX_V.js +1 -0
  55. package/.output/public/assets/{installations-CYTzndfP.js → installations-iqDa8KPW.js} +1 -1
  56. package/.output/public/assets/{key-round-D7UgdXyA.js → key-round-B-vaAsR7.js} +1 -1
  57. package/.output/public/assets/{link-CN3iHC4A.js → link-D95E0fwF.js} +1 -1
  58. package/.output/public/assets/{list-Bm-CfN5g.js → list-Dq40Mmoj.js} +1 -1
  59. package/.output/public/assets/loader-circle-C26cZDSM.js +1 -0
  60. package/.output/public/assets/native-builds-7sC78eTq.js +1 -0
  61. package/.output/public/assets/native-builds-BOSmoLed.js +1 -0
  62. package/.output/public/assets/native-builds-CXDwW54k.js +2 -0
  63. package/.output/public/assets/native-builds_._buildId-C7-yUwvH.js +2 -0
  64. package/.output/public/assets/native-builds_._buildId-u5dG7ej5.js +1 -0
  65. package/.output/public/assets/native-builds_.devices-CQ_tB3SO.js +1 -0
  66. package/.output/public/assets/native-builds_.devices-C_YZoRxB.js +2 -0
  67. package/.output/public/assets/plus-Bp6IqwOH.js +1 -0
  68. package/.output/public/assets/{preload-helper-CRQjUQaZ.js → preload-helper-52zhjEsw.js} +1 -1
  69. package/.output/public/assets/{refresh-cw-BHhBYjS8.js → refresh-cw-CpCxPYma.js} +1 -1
  70. package/.output/public/assets/{relativeTime-BYRt19mj.js → relativeTime-D_aYJRc7.js} +1 -1
  71. package/.output/public/assets/remote-config-BbiN7bGR.js +6 -0
  72. package/.output/public/assets/remote-config-BhdrBpLM.js +1 -0
  73. package/.output/public/assets/remote-config-Dmuqm9xx.js +1 -0
  74. package/.output/public/assets/{rotate-cw-Ba-slJea.js → rotate-cw-Bn3fIWmY.js} +1 -1
  75. package/.output/public/assets/routes-C4MTDNA3.js +2 -0
  76. package/.output/public/assets/routes-Cjjfwbs_.js +1 -0
  77. package/.output/public/assets/search-DeKSyo9Q.js +1 -0
  78. package/.output/public/assets/{select-CA8r-UUe.js → select-BAd2hAoW.js} +1 -1
  79. package/.output/public/assets/{sidebar-yC7KdImc.js → sidebar-UnsNYOry.js} +1 -1
  80. package/.output/public/assets/smartphone-lSZWrqxx.js +1 -0
  81. package/.output/public/assets/styles-CQNxu86i.css +2 -0
  82. package/.output/public/assets/{switch-BsV3d4km.js → switch-C_s67MO4.js} +1 -1
  83. package/.output/public/assets/{table-D8YjT_ht.js → table-r_sYqKTQ.js} +1 -1
  84. package/.output/public/assets/{tabs-RdhEl9sE.js → tabs-BBfg-c0h.js} +1 -1
  85. package/.output/public/assets/{trash-2-B5KIvrXy.js → trash-2-BPH7ydek.js} +1 -1
  86. package/.output/public/assets/{undo-2-CFcU9dIB.js → undo-2-CGeTBZjC.js} +1 -1
  87. package/.output/public/assets/{useCompositeListItem-lAmUsXcc.js → useCompositeListItem-B9ONn9qn.js} +1 -1
  88. package/.output/public/assets/{useMutation-w3qYaU2L.js → useMutation-BWX97JX2.js} +1 -1
  89. package/.output/server/{__23tanstack-start-server-fn-resolver-CPVg1lWP.mjs → __23tanstack-start-server-fn-resolver-DBw1tYEH.mjs} +58 -62
  90. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  91. package/.output/server/_libs/_.mjs +1 -1
  92. package/.output/server/_ssr/{-native-builds-search-DD7wilC0.mjs → -native-builds-search-OJ8XmaBa.mjs} +1 -1
  93. package/.output/server/_ssr/{BundleIdDisplay-CHwdLSxI.mjs → BundleIdDisplay-DsNg19E8.mjs} +2 -2
  94. package/.output/server/_ssr/{ChannelBadge-DdrhdvMM.mjs → ChannelBadge-DWQcxohs.mjs} +3 -3
  95. package/.output/server/_ssr/{ConsoleFeatureUnavailable-DPX24kXX.mjs → ConsoleFeatureUnavailable-CfcFJ4k4.mjs} +6 -6
  96. package/.output/server/_ssr/{EventDetails-6jBbGcbN.mjs → EventDetails-DJYShaIG.mjs} +6 -6
  97. package/.output/server/_ssr/{HashValueDisplay-B4--TU87.mjs → HashValueDisplay-B7FFJcIK.mjs} +2 -2
  98. package/.output/server/_ssr/{InsightsPageHeader-CuJ8N3TQ.mjs → InsightsPageHeader-CaceslcD.mjs} +6 -6
  99. package/.output/server/_ssr/{IosInstall-CHC-d6NT.mjs → IosInstall-gEVi9PFl.mjs} +164 -72
  100. package/.output/server/_ssr/{NativeBuildsNav-C69l7uNo.mjs → NativeBuildsNav-DoB6DGO2.mjs} +5 -5
  101. package/.output/server/_ssr/{NotFoundPage-ZsHGzoLS.mjs → NotFoundPage-Bu3yot-M.mjs} +2 -2
  102. package/.output/server/_ssr/{PlatformIcon-BXcpYcrO.mjs → PlatformIcon-X18AN8Yp.mjs} +1 -1
  103. package/.output/server/_ssr/QrCode-DkmvYkKS.mjs +50 -0
  104. package/.output/server/_ssr/{RelativeTime-7vOoIT4P.mjs → RelativeTime-Dg47Cmmt.mjs} +3 -3
  105. package/.output/server/_ssr/{RolloutPercentageBadge--MojdSYZ.mjs → RolloutPercentageBadge-CcEZuUxL.mjs} +3 -3
  106. package/.output/server/_ssr/{RowReason-CIaGuzr1.mjs → RowReason-CbKEYA9N.mjs} +4 -4
  107. package/.output/server/_ssr/{SandboxBadge-BqBSRE2-.mjs → SandboxBadge-CuTOlGaF.mjs} +2 -2
  108. package/.output/server/_ssr/{TargetDisplay-CLn4k3f5.mjs → TargetDisplay-DkRZwhNW.mjs} +3 -3
  109. package/.output/server/_ssr/{alert-dialog-DihcZr0y.mjs → alert-dialog-Ckdomw6e.mjs} +3 -3
  110. package/.output/server/_ssr/{api-nFsUxTG1.mjs → api-BIDpAoY0.mjs} +4 -4
  111. package/.output/server/_ssr/{api-keys-DExjZkdx.mjs → api-keys-BStTPcTe.mjs} +11 -9
  112. package/.output/server/_ssr/{api-keys-CN5wpM3R.mjs → api-keys-MdcfK9Zw.mjs} +2 -2
  113. package/.output/server/_ssr/{api-keys-rpc-CClIn3D8.mjs → api-keys-rpc-FwkHHfJL.mjs} +3 -3
  114. package/.output/server/_ssr/{api-rpc-DLRzLoop.mjs → api-rpc-DI164kWO.mjs} +13 -13
  115. package/.output/server/_ssr/{auth-rpc-U46OWsbS.mjs → auth-rpc-DOONC4Xw.mjs} +4 -4
  116. package/.output/server/_ssr/{auth.server-iIXxFs8t.mjs → auth.server-MkFb8t-c.mjs} +2 -2
  117. package/.output/server/_ssr/{badge-jnl4Ajh1.mjs → badge-MGJQ5WNb.mjs} +1 -1
  118. package/.output/server/_ssr/{card-BEfQk5Ei.mjs → card-st1F0w5g.mjs} +1 -1
  119. package/.output/server/_ssr/{config.server-Ig1eUxaf.mjs → config.server-A4yZxfTn.mjs} +4 -4
  120. package/.output/server/_ssr/{console-access-BOTh4-fO.mjs → console-access-Cj95NxRZ.mjs} +2 -2
  121. package/.output/server/_ssr/{console-features-CzhqrCcX.mjs → console-features-DTYyXrWO.mjs} +1 -1
  122. package/.output/server/_ssr/{console-features-api-Dk02j_6v.mjs → console-features-api-WvvE114Q.mjs} +5 -5
  123. package/.output/server/_ssr/{console-features-rpc-B_V68MjF.mjs → console-features-rpc-DxhmScBd.mjs} +3 -3
  124. package/.output/server/_ssr/{deviceProfileToken-BbLKmrUb.mjs → deviceProfileToken-xzDLfE0T.mjs} +21 -5
  125. package/.output/server/_ssr/{dialog-DuyJ0HsU.mjs → dialog-jxN7lCij.mjs} +4 -4
  126. package/.output/server/_ssr/{empty-BDBZwsuM.mjs → empty-Dfmlc-7_.mjs} +2 -2
  127. package/.output/server/_ssr/{field-CX6srGIn.mjs → field-BrPlhj0S.mjs} +2 -2
  128. package/.output/server/_ssr/{input-group-CV_H0YX7.mjs → input-group-Ckaa4ML0.mjs} +2 -2
  129. package/.output/server/_ssr/{insights-CBoiq6pK.mjs → insights-BX9okQmy.mjs} +2 -2
  130. package/.output/server/_ssr/{insights-DQmsr9I4.mjs → insights-CmbOo4Er.mjs} +29 -24
  131. package/.output/server/_ssr/{insights-Td2VtKJZ.mjs → insights-DHvN6knB.mjs} +5 -5
  132. package/.output/server/_ssr/{insights-api-G8ZOyKKA.mjs → insights-api-t8rcSzVu.mjs} +3 -3
  133. package/.output/server/_ssr/{insights-failures-rpc-Ba4YSjbA.mjs → insights-failures-rpc-DadwsaxJ.mjs} +7 -7
  134. package/.output/server/_ssr/{insights-recovery-rpc-LKbOLo-_.mjs → insights-recovery-rpc-BK-RELe9.mjs} +4 -4
  135. package/.output/server/_ssr/{insights-rpc-TkflAi0Z.mjs → insights-rpc-BmDuFOYA.mjs} +3 -3
  136. package/.output/server/_ssr/{insights-search-aCzmEqnq.mjs → insights-search-CQ0aMRHX.mjs} +2 -2
  137. package/.output/server/_ssr/{insights-usage-rpc-Cbk3jKjA.mjs → insights-usage-rpc-CkeNir2v.mjs} +4 -4
  138. package/.output/server/_ssr/{insights-usage-rpc-NoT-iWyp.mjs → insights-usage-rpc-JhBWMZfn.mjs} +3 -3
  139. package/.output/server/_ssr/{insights_.distribution-Bo1WRLKV.mjs → insights_.distribution-BtGiM-F8.mjs} +15 -15
  140. package/.output/server/_ssr/{insights_.distribution-Vt7W1Xw7.mjs → insights_.distribution-CEldmJz1.mjs} +2 -2
  141. package/.output/server/_ssr/{insights_.distribution-Y3uFkJMX.mjs → insights_.distribution-DlBTOrjk.mjs} +5 -5
  142. package/.output/server/_ssr/{installations-BEUOlOQs.mjs → installations-3fgKUnRv.mjs} +11 -11
  143. package/.output/server/_ssr/{installations-BpcY3NSj.mjs → installations-DHbd6gfU.mjs} +2 -2
  144. package/.output/server/_ssr/{installations-DClqNAQn.mjs → installations-oBJc0TH1.mjs} +4 -4
  145. package/.output/server/_ssr/{ios-devices-rpc-DmjO2Cbe.mjs → ios-devices-rpc-DjlS64L9.mjs} +9 -21
  146. package/.output/server/_ssr/iosDeviceCookie-Ccxr1MR8.mjs +155 -0
  147. package/.output/server/_ssr/{iosDeviceProfile-CseUPyC3.mjs → iosDeviceProfile-nEW-zQnl.mjs} +13 -14
  148. package/.output/server/_ssr/{iosDevices-BcM0YdL8.mjs → iosDevices-gG7HCnCL.mjs} +4 -20
  149. package/.output/server/_ssr/{native-artifact-C-jGiTjz.mjs → native-artifact-BRNP_q-y.mjs} +1 -1
  150. package/.output/server/_ssr/{native-builds-CwdDL-ag.mjs → native-builds-Be2Ga-eY.mjs} +17 -17
  151. package/.output/server/_ssr/{native-builds-B31AnQ0z.mjs → native-builds-mq_fr3k0.mjs} +3 -3
  152. package/.output/server/_ssr/{native-builds-DjoHvBQf.mjs → native-builds-nRuXKypG.mjs} +63 -2
  153. package/.output/server/_ssr/{native-builds_._buildId-Dew-f4Ox.mjs → native-builds_._buildId-Cq-3MWHV.mjs} +3 -3
  154. package/.output/server/_ssr/{native-builds_._buildId-xNxhulXv.mjs → native-builds_._buildId-Du028raJ.mjs} +20 -27
  155. package/.output/server/_ssr/{native-builds_.devices-BBWNnbAj.mjs → native-builds_.devices-CWOFxrsg.mjs} +120 -68
  156. package/.output/server/_ssr/{native-builds_.devices-DpYGqdjz.mjs → native-builds_.devices-DVBT3gKp.mjs} +3 -3
  157. package/.output/server/_ssr/{nativeBuildDownloadLink-CMo_0eeE.mjs → nativeBuildDownloadLink-BXFMIxJ8.mjs} +2 -2
  158. package/.output/server/_ssr/{nativeBuildInstall-BlT6X49f.mjs → nativeBuildInstall-CjG3sJmP.mjs} +8 -7
  159. package/.output/server/_ssr/{nativeBuilds-DnIRDijn.mjs → nativeBuilds-DaF-TcfO.mjs} +2 -2
  160. package/.output/server/_ssr/plistText-DkzlCfPI.mjs +15 -0
  161. package/.output/server/_ssr/{publicConsoleBase-CBG0Pv8f.mjs → publicConsoleBase-wTKw3_iB.mjs} +2 -14
  162. package/.output/server/_ssr/{release-adoption-rpc-CNwUfrya.mjs → release-adoption-rpc-BiUppdo3.mjs} +7 -7
  163. package/.output/server/_ssr/{releaseAdoption-COlUf2W5.mjs → releaseAdoption-DfEYq7I4.mjs} +1 -1
  164. package/.output/server/_ssr/{remote-config-D1X_UwRB.mjs → remote-config-8SDPC3Ex.mjs} +2 -2
  165. package/.output/server/_ssr/{remote-config-7NN5w0OC.mjs → remote-config-CKjwym6Y.mjs} +2 -2
  166. package/.output/server/_ssr/{remote-config-DdcrliiZ.mjs → remote-config-MgYpLVNI.mjs} +19 -19
  167. package/.output/server/_ssr/{remote-config-rpc-oR3e-Ixt.mjs → remote-config-rpc-RoH5hIma.mjs} +3 -3
  168. package/.output/server/_ssr/{router-DxsgaBqH.mjs → router-DaSGo-53.mjs} +101 -61
  169. package/.output/server/_ssr/{routes-BXne94ak.mjs → routes-2wXfjE3q.mjs} +37 -33
  170. package/.output/server/_ssr/{routes-DdZw0VC5.mjs → routes-Y7SrNegl.mjs} +11 -10
  171. package/.output/server/_ssr/{runtime.server-DImJAltO.mjs → runtime.server-BUbb281Z.mjs} +2 -2
  172. package/.output/server/_ssr/{schema-migration-rpc-BZueLWKW.mjs → schema-migration-rpc-C302GUdI.mjs} +3 -3
  173. package/.output/server/_ssr/{select-DcWzmCb3.mjs → select-DsWMUB9T.mjs} +1 -1
  174. package/.output/server/_ssr/{server-DA_rB8Ch.mjs → server-Bx_Shfka.mjs} +4 -4
  175. package/.output/server/_ssr/{sidebar-BsFYs26D.mjs → sidebar-S1E-7aSS.mjs} +6 -6
  176. package/.output/server/_ssr/ssr.mjs +1 -1
  177. package/.output/server/_ssr/{start-Ds6WPOwH.mjs → start-BaUpXI0L.mjs} +1 -1
  178. package/.output/server/_ssr/{switch-CByCMAau.mjs → switch-DMCgvrFu.mjs} +3 -3
  179. package/.output/server/_ssr/{table-SLiL-w8T.mjs → table-BN3AmMyY.mjs} +1 -1
  180. package/.output/server/_ssr/{tabs-BCG8AAvJ.mjs → tabs-D3tzMdsj.mjs} +3 -3
  181. package/.output/server/_ssr/{updateFailures-Cl1Fxj4J.mjs → updateFailures-BwDwIoNu.mjs} +1 -1
  182. package/.output/server/_tanstack-start-manifest_v-DcKFR9bk.mjs +225 -0
  183. package/.output/server/index.mjs +431 -431
  184. package/package.json +7 -7
  185. package/src/components/AppSidebar.tsx +11 -2
  186. package/src/components/features/api-keys/ApiKeysPage.tsx +4 -2
  187. package/src/components/features/bundles/BundleMetadata.tsx +1 -1
  188. package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
  189. package/src/components/features/channels/ChannelManagementDialog.tsx +6 -2
  190. package/src/components/features/insights/FailureReports.tsx +3 -2
  191. package/src/components/features/insights/InsightsOverview.tsx +7 -1
  192. package/src/components/features/insights/ReleaseActivity.tsx +5 -1
  193. package/src/components/features/insights/ReleaseCombobox.tsx +1 -1
  194. package/src/components/features/insights/UpdateFailures.tsx +1 -0
  195. package/src/components/features/native-builds/BuiltInBundleCard.tsx +1 -1
  196. package/src/components/features/native-builds/IosDevicesPage.tsx +120 -34
  197. package/src/components/features/native-builds/IosInstall.tsx +85 -27
  198. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +1 -2
  199. package/src/components/features/native-builds/NativeBuildsNav.tsx +2 -2
  200. package/src/components/features/native-builds/NativeBuildsTable.tsx +1 -1
  201. package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +1 -1
  202. package/src/components/features/releases/ReleaseEditorSheet.tsx +6 -5
  203. package/src/components/ui/alert-dialog.tsx +2 -2
  204. package/src/components/ui/dialog.tsx +3 -3
  205. package/src/components/ui/input.tsx +1 -1
  206. package/src/components/ui/sheet.tsx +1 -1
  207. package/src/components/ui/sidebar.tsx +2 -2
  208. package/src/components/ui/slider.tsx +1 -1
  209. package/src/components/ui/switch.tsx +1 -1
  210. package/src/components/ui/tabs.tsx +1 -1
  211. package/src/components/ui/textarea.tsx +1 -1
  212. package/src/lib/ios-devices-api.ts +170 -5
  213. package/src/lib/ios-devices-rpc.ts +0 -12
  214. package/src/lib/native-builds.ts +88 -0
  215. package/src/lib/server/deviceProfileToken.ts +37 -3
  216. package/src/lib/server/iosDeviceCookie.ts +239 -0
  217. package/src/lib/server/iosDeviceProfile.ts +4 -2
  218. package/src/lib/server/iosDevices.ts +0 -30
  219. package/src/routeTree.gen.ts +44 -0
  220. package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
  221. package/src/routes/[_]hot-updater/devices/request.ts +28 -0
  222. package/.output/public/assets/-native-builds-search-DdHwfe4q.js +0 -1
  223. package/.output/public/assets/IosInstall-B-Yt7DUj.js +0 -1
  224. package/.output/public/assets/NativeBuildsNav-DaqxQPnG.js +0 -1
  225. package/.output/public/assets/SandboxBadge-BVxHg_HF.js +0 -1
  226. package/.output/public/assets/TargetDisplay-B_dqT5iw.js +0 -1
  227. package/.output/public/assets/alert-dialog-Ch0QxRsa.js +0 -1
  228. package/.output/public/assets/api-keys-DLC8jjaM.js +0 -1
  229. package/.output/public/assets/api-keys-eDnzgFAf.js +0 -1
  230. package/.output/public/assets/arrow-left-DQjHJAnT.js +0 -1
  231. package/.output/public/assets/arrow-right-CXp_K3xK.js +0 -1
  232. package/.output/public/assets/arrow-up-right-BFafIOrq.js +0 -1
  233. package/.output/public/assets/check-CqWNyG93.js +0 -1
  234. package/.output/public/assets/chevron-right-DNbYTBX1.js +0 -1
  235. package/.output/public/assets/dialog-BLj71-Nf.js +0 -1
  236. package/.output/public/assets/index-IK43LiLE.js +0 -10
  237. package/.output/public/assets/input-group-XKLcUGoa.js +0 -1
  238. package/.output/public/assets/insights-C94CdeAA.js +0 -1
  239. package/.output/public/assets/insights-DILMVpk8.js +0 -2
  240. package/.output/public/assets/insights_.distribution-Bb6_S-hD.js +0 -2
  241. package/.output/public/assets/insights_.distribution-CyAu3RN3.js +0 -1
  242. package/.output/public/assets/installations-BA01mqJE.js +0 -1
  243. package/.output/public/assets/loader-circle-iMqC-8ZE.js +0 -1
  244. package/.output/public/assets/native-builds-C-Dayo63.js +0 -2
  245. package/.output/public/assets/native-builds-_3SRMVOS.js +0 -1
  246. package/.output/public/assets/native-builds_._buildId-BPJzn5LY.js +0 -2
  247. package/.output/public/assets/native-builds_._buildId-DJWMBKQQ.js +0 -1
  248. package/.output/public/assets/native-builds_.devices-BbE0s2il.js +0 -1
  249. package/.output/public/assets/native-builds_.devices-BiXjrMS-.js +0 -2
  250. package/.output/public/assets/package-BmfoZ5Zj.js +0 -1
  251. package/.output/public/assets/plus-Db0KxLZp.js +0 -1
  252. package/.output/public/assets/remote-config-Cxkr7_BP.js +0 -1
  253. package/.output/public/assets/remote-config-DAOyn5xL.js +0 -1
  254. package/.output/public/assets/remote-config-DXv25LX1.js +0 -6
  255. package/.output/public/assets/routes-CH42g1N9.js +0 -1
  256. package/.output/public/assets/routes-_QhVAS_l.js +0 -2
  257. package/.output/public/assets/search-dJG2BYmx.js +0 -1
  258. package/.output/public/assets/send-DuMOCzbD.js +0 -1
  259. package/.output/public/assets/smartphone-D1C6BRd_.js +0 -1
  260. package/.output/public/assets/styles-BYO5PJYg.css +0 -2
  261. package/.output/server/_tanstack-start-manifest_v-BoMD43wU.mjs +0 -225
  262. /package/.output/public/assets/{uuidv7-DAoOOpz9.js → uuidv7-DgXZ1zRR.js} +0 -0
@@ -23,10 +23,16 @@ import { Skeleton } from "@/components/ui/skeleton";
23
23
  import { useNativeBuildInstallEligibilityQuery } from "@/lib/api";
24
24
  import {
25
25
  useIosDeviceProfileLinkQuery,
26
- useRequestIosDeviceAccessMutation,
26
+ keepIosDeviceReceipt,
27
+ keptIsThisIphone,
28
+ useKeptIosDeviceQuery,
29
+ useRequestThisIphoneMutation,
27
30
  } from "@/lib/ios-devices-api";
28
31
  import {
29
32
  consolePathOf,
33
+ consolePathOfNativeBuildsPage,
34
+ holdPendingReceipt,
35
+ readPendingReceipt,
30
36
  IOS_DEVICE_RECEIPT_STORAGE_KEY,
31
37
  IOS_UDID_PATTERN,
32
38
  IOS_UDID_STORAGE_KEY,
@@ -74,7 +80,10 @@ const fragmentOf = () => {
74
80
  export interface IosDevice {
75
81
  readonly ios: boolean;
76
82
  readonly udid: string | null;
77
- /** The receipt of `udid` that Request access takes, when a check made one. */
83
+ /**
84
+ * The profile's fresh receipt of `udid`, from the fragment, in memory only:
85
+ * the page trades it for the HttpOnly cookie that proves this iPhone later.
86
+ */
78
87
  readonly receipt: string | null;
79
88
  /** Whether this page opened from a registration's answer. */
80
89
  readonly requested: boolean;
@@ -108,6 +117,32 @@ const keep = (key: string, value: string) => {
108
117
  * back to it already open. Read after the page mounts: the server
109
118
  * renders it without a browser. Null until then.
110
119
  */
120
+ /** Tells this page's `useIosDevice` that the ID it keeps was just written. */
121
+ const ADOPTED_EVENT = "hot-updater-ios-device-adopted";
122
+
123
+ /**
124
+ * Adopts the UDID this Safari's cookie names, when the page kept none: Safari
125
+ * wipes script storage after a week away while the 30-day HttpOnly cookie
126
+ * stays, and the cookie is the proof. Kept again, so every page knows it.
127
+ */
128
+ export const useAdoptKeptIosDevice = (
129
+ device: IosDevice | null,
130
+ kept: string | null | undefined,
131
+ ) => {
132
+ const adopt =
133
+ device?.ios === true &&
134
+ device.udid === null &&
135
+ kept != null &&
136
+ IOS_UDID_PATTERN.test(kept)
137
+ ? kept
138
+ : null;
139
+ useEffect(() => {
140
+ if (adopt === null) return;
141
+ keep(IOS_UDID_STORAGE_KEY, adopt);
142
+ window.dispatchEvent(new Event(ADOPTED_EVENT));
143
+ }, [adopt]);
144
+ };
145
+
111
146
  export const useIosDevice = (): IosDevice | null => {
112
147
  const [device, setDevice] = useState<IosDevice | null>(null);
113
148
  // Read at the first render, so an effect that runs again (React's
@@ -128,11 +163,14 @@ export const useIosDevice = (): IosDevice | null => {
128
163
  if (fragment.udid !== null && answered) {
129
164
  answers += 1;
130
165
  keep(IOS_UDID_STORAGE_KEY, fragment.udid);
166
+ // Kept as this Safari's cookie on any page, whatever it shows next;
167
+ // held in this tab's session until then, so a reload can trade it.
131
168
  if (fragment.receipt !== null) {
132
- keep(
133
- IOS_DEVICE_RECEIPT_STORAGE_KEY,
134
- JSON.stringify({ udid: fragment.udid, receipt: fragment.receipt }),
135
- );
169
+ holdPendingReceipt(fragment.udid, fragment.receipt);
170
+ keepIosDeviceReceipt(
171
+ consolePathOfNativeBuildsPage(window.location),
172
+ fragment.receipt,
173
+ ).catch(() => undefined);
136
174
  }
137
175
  }
138
176
  if (fragment.udid !== null && window.location.hash !== "") {
@@ -144,22 +182,21 @@ export const useIosDevice = (): IosDevice | null => {
144
182
  }
145
183
  };
146
184
  absorb(passed);
185
+ // A receipt is no longer kept here: the page trades the fragment's for an
186
+ // HttpOnly cookie that script can't read. One an earlier version kept goes.
187
+ try {
188
+ window.localStorage.removeItem(IOS_DEVICE_RECEIPT_STORAGE_KEY);
189
+ } catch {
190
+ // A browser that keeps nothing kept none.
191
+ }
147
192
  const read = () => {
148
193
  // A browser that keeps nothing still has the fragment's, in memory.
149
194
  const udid = valid(readKept(IOS_UDID_STORAGE_KEY)) ?? latest.udid;
150
- let receipt: string | null = null;
151
- try {
152
- const kept = JSON.parse(
153
- readKept(IOS_DEVICE_RECEIPT_STORAGE_KEY) ?? "null",
154
- ) as { udid?: unknown; receipt?: unknown } | null;
155
- receipt =
156
- kept?.udid === udid && typeof kept?.receipt === "string"
157
- ? kept.receipt
158
- : null;
159
- } catch {
160
- receipt = null;
161
- }
162
- if (receipt === null && latest.udid === udid) receipt = latest.receipt;
195
+ // The fragment's receipt until the cookie holds it: in memory, or held
196
+ // in this tab's session through a reload during an outage.
197
+ const receipt =
198
+ (latest.udid === udid ? latest.receipt : null) ??
199
+ readPendingReceipt(udid);
163
200
  const requested = latest.requested;
164
201
  const taken = answers;
165
202
  setDevice((current) =>
@@ -182,11 +219,7 @@ export const useIosDevice = (): IosDevice | null => {
182
219
  // The profile's answer may land in another tab, which keeps the ID there:
183
220
  // this tab reads it when that tab writes it, or when Safari shows it again.
184
221
  const onStorage = (event: StorageEvent) => {
185
- if (
186
- event.key === null ||
187
- event.key === IOS_UDID_STORAGE_KEY ||
188
- event.key === IOS_DEVICE_RECEIPT_STORAGE_KEY
189
- ) {
222
+ if (event.key === null || event.key === IOS_UDID_STORAGE_KEY) {
190
223
  read();
191
224
  }
192
225
  };
@@ -202,11 +235,13 @@ export const useIosDevice = (): IosDevice | null => {
202
235
  read();
203
236
  };
204
237
  window.addEventListener("storage", onStorage);
238
+ window.addEventListener(ADOPTED_EVENT, read);
205
239
  window.addEventListener("hashchange", onReturn);
206
240
  window.addEventListener("pageshow", onReturn);
207
241
  document.addEventListener("visibilitychange", onReturn);
208
242
  return () => {
209
243
  window.removeEventListener("storage", onStorage);
244
+ window.removeEventListener(ADOPTED_EVENT, read);
210
245
  window.removeEventListener("hashchange", onReturn);
211
246
  window.removeEventListener("pageshow", onReturn);
212
247
  document.removeEventListener("visibilitychange", onReturn);
@@ -442,7 +477,18 @@ function NotInThisBuild({
442
477
  /** When the page last read `registry`. */
443
478
  readonly registryReadAt: number;
444
479
  }) {
445
- const request = useRequestIosDeviceAccessMutation();
480
+ const consolePath = consolePathOf(window.location, build.id);
481
+ const request = useRequestThisIphoneMutation(consolePath);
482
+ // This Safari's proof of the iPhone: the profile's fresh receipt, traded
483
+ // for the cookie, or the cookie an earlier check left.
484
+ // Read only where it decides something: a phone the registry doesn't know.
485
+ const kept = useKeptIosDeviceQuery(
486
+ consolePath,
487
+ device.receipt,
488
+ device.ios && device.udid !== null && registry === null,
489
+ );
490
+ const proved =
491
+ device.receipt !== null || keptIsThisIphone(kept.data?.udid, device.udid);
446
492
  const [name, setName] = useState("");
447
493
  // The request's answer stands in only while the page still shows the
448
494
  // registry read before the request started: any read after that wins, an
@@ -491,7 +537,12 @@ function NotInThisBuild({
491
537
  </div>
492
538
  );
493
539
  }
494
- if (device.receipt === null) {
540
+ if (!proved && kept.isPending && device.udid !== null) {
541
+ return (
542
+ <Skeleton aria-label="Reading this iPhone" className="h-11 w-full" />
543
+ );
544
+ }
545
+ if (!proved) {
495
546
  return (
496
547
  <div className="flex min-w-0 flex-col gap-3">
497
548
  {heading}
@@ -511,7 +562,7 @@ function NotInThisBuild({
511
562
  if (trimmed === "") return;
512
563
  const readBefore = registryReadAt;
513
564
  request.mutate(
514
- { receipt: device.receipt!, name: trimmed },
565
+ { receipt: device.receipt, name: trimmed },
515
566
  {
516
567
  onSuccess: ({ device: saved }) =>
517
568
  setRequested({ device: saved, readBefore }),
@@ -573,6 +624,13 @@ export function IosInstall({
573
624
  readonly build: NativeBuildRow;
574
625
  readonly device: IosDevice;
575
626
  }) {
627
+ // A phone that kept no ID asks the cookie once which iPhone it is.
628
+ const kept = useKeptIosDeviceQuery(
629
+ consolePathOf(window.location, build.id),
630
+ device.receipt,
631
+ device.ios && device.udid === null,
632
+ );
633
+ useAdoptKeptIosDevice(device, kept.data?.udid);
576
634
  const { udid } = device;
577
635
  const eligibility = useNativeBuildInstallEligibilityQuery(build.id, udid);
578
636
  const { refetch } = eligibility;
@@ -142,8 +142,7 @@ export function NativeBuildDetailPage({
142
142
  </EmptyMedia>
143
143
  <EmptyTitle>Native build not found</EmptyTitle>
144
144
  <EmptyDescription>
145
- No native build has this ID. It may have been deleted with{" "}
146
- <code className="font-mono">native-build delete</code>, or be
145
+ No native build has this ID. It may have been deleted, or be
147
146
  from another console.
148
147
  </EmptyDescription>
149
148
  </EmptyHeader>
@@ -4,7 +4,7 @@ import { tabsListVariants } from "@/components/ui/tabs";
4
4
  import { cn } from "@/lib/utils";
5
5
 
6
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";
7
+ "relative inline-flex h-full min-h-11 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
8
 
9
9
  /**
10
10
  * The two views of Native builds: the builds, and the iOS devices ad hoc
@@ -20,7 +20,7 @@ export function NativeBuildsNav({
20
20
  aria-label="Native builds views"
21
21
  className={cn(
22
22
  tabsListVariants(),
23
- "h-11 sm:h-8 [&>a]:min-h-10 sm:[&>a]:min-h-0",
23
+ "h-auto min-h-11 sm:h-8 sm:min-h-0 [&>a]:min-h-11 sm:[&>a]:min-h-0",
24
24
  )}
25
25
  >
26
26
  <Link
@@ -251,7 +251,7 @@ function ChannelFilterButton({
251
251
  return (
252
252
  <button
253
253
  aria-label={`Show the builds that embed ${channel}`}
254
- className="relative flex max-w-full min-w-0 rounded-md text-left after:absolute after:inset-x-0 after:-inset-y-[11px] focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:after:hidden"
254
+ className="relative flex max-w-full min-w-0 rounded-md text-left after:absolute after:-inset-x-1 after:-inset-y-[11px] focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:after:hidden"
255
255
  onClick={() => onChannel(channel)}
256
256
  title={channel}
257
257
  type="button"
@@ -88,7 +88,7 @@ export function ReleaseNativeBuildLink({
88
88
  <span className="text-xs text-muted-foreground">
89
89
  None tracked for this scope ·{" "}
90
90
  <Link
91
- className="underline-offset-4 hover:text-foreground hover:underline"
91
+ className="relative underline-offset-4 after:absolute after:-inset-x-2 after:-inset-y-4 hover:text-foreground hover:underline md:after:hidden"
92
92
  search={{ channel }}
93
93
  to="/native-builds"
94
94
  >
@@ -564,6 +564,7 @@ export function ReleaseEditorSheet({
564
564
  />
565
565
  <Button
566
566
  aria-label="Add cohort"
567
+ className="max-md:size-11"
567
568
  disabled={!newCohort.trim()}
568
569
  onClick={addCohort}
569
570
  size="icon"
@@ -608,7 +609,7 @@ export function ReleaseEditorSheet({
608
609
  </FieldGroup>
609
610
  {error ? <FieldError>{error}</FieldError> : null}
610
611
  <Button
611
- className="w-full"
612
+ className="w-full max-md:h-11"
612
613
  disabled={!dirty || busy}
613
614
  onClick={save}
614
615
  size="lg"
@@ -624,7 +625,7 @@ export function ReleaseEditorSheet({
624
625
  <section className="flex flex-col gap-4">
625
626
  <h3 className="text-sm font-medium">Actions</h3>
626
627
  <Button
627
- className="w-full"
628
+ className="w-full max-md:h-11"
628
629
  disabled={!release.bundle_id || busy}
629
630
  onClick={() => setShowPromote(true)}
630
631
  size="sm"
@@ -634,7 +635,7 @@ export function ReleaseEditorSheet({
634
635
  </Button>
635
636
  {release.bundle_id ? (
636
637
  <Button
637
- className="w-full"
638
+ className="w-full max-md:h-11"
638
639
  disabled={busy}
639
640
  onClick={() => {
640
641
  window.open(
@@ -652,7 +653,7 @@ export function ReleaseEditorSheet({
652
653
  </Button>
653
654
  ) : null}
654
655
  <Button
655
- className="w-full"
656
+ className="w-full max-md:h-11"
656
657
  disabled={release.enabled || busy}
657
658
  onClick={() => setConfirmDelete(true)}
658
659
  size="sm"
@@ -724,7 +725,7 @@ export function ReleaseEditorSheet({
724
725
  </dd>
725
726
  {onShowScope ? (
726
727
  <Button
727
- className="mt-1 h-auto px-0 text-xs"
728
+ className="mt-1 h-auto px-0 text-xs max-md:min-h-11"
728
729
  onClick={() => onShowScope(release.scope_key)}
729
730
  size="sm"
730
731
  variant="link"
@@ -50,7 +50,7 @@ function AlertDialogContent({
50
50
  data-slot="alert-dialog-content"
51
51
  data-size={size}
52
52
  className={cn(
53
- "group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
53
+ "group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none max-h-[calc(100dvh-2rem)] overflow-y-auto data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
54
54
  className,
55
55
  )}
56
56
  {...props}
@@ -83,7 +83,7 @@ function AlertDialogFooter({
83
83
  <div
84
84
  data-slot="alert-dialog-footer"
85
85
  className={cn(
86
- "flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",
86
+ "flex flex-col-reverse gap-2 max-sm:*:min-h-11 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",
87
87
  className,
88
88
  )}
89
89
  {...props}
@@ -53,7 +53,7 @@ function DialogContent({
53
53
  <DialogPrimitive.Popup
54
54
  data-slot="dialog-content"
55
55
  className={cn(
56
- "fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-xs/relaxed ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
56
+ "fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-xs/relaxed ring-1 ring-foreground/10 duration-100 outline-none max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
57
57
  className,
58
58
  )}
59
59
  {...props}
@@ -65,7 +65,7 @@ function DialogContent({
65
65
  render={
66
66
  <Button
67
67
  variant="ghost"
68
- className="absolute top-2 right-2"
68
+ className="absolute top-2 right-2 max-md:top-1 max-md:right-1 max-md:size-11"
69
69
  size="icon-sm"
70
70
  />
71
71
  }
@@ -101,7 +101,7 @@ function DialogFooter({
101
101
  <div
102
102
  data-slot="dialog-footer"
103
103
  className={cn(
104
- "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
104
+ "flex flex-col-reverse gap-2 max-sm:*:min-h-11 sm:flex-row sm:justify-end",
105
105
  className,
106
106
  )}
107
107
  {...props}
@@ -8,7 +8,7 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
8
8
  type={type}
9
9
  data-slot="input"
10
10
  className={cn(
11
- "bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border px-2 py-0.5 text-sm transition-colors file:h-6 file:text-xs/relaxed file:font-medium focus-visible:ring-[2px] aria-invalid:ring-[2px] md:text-xs/relaxed file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
11
+ "bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border px-2 py-0.5 text-sm transition-colors file:h-6 file:text-xs/relaxed file:font-medium focus-visible:ring-[2px] aria-invalid:ring-[2px] md:text-xs/relaxed file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 max-md:h-11 max-md:text-base",
12
12
  className,
13
13
  )}
14
14
  {...props}
@@ -63,7 +63,7 @@ function SheetContent({
63
63
  render={
64
64
  <Button
65
65
  variant="ghost"
66
- className="absolute top-4 right-4"
66
+ className="absolute top-4 right-4 max-md:top-2 max-md:right-2 max-md:size-11"
67
67
  size="icon-sm"
68
68
  />
69
69
  }
@@ -315,7 +315,7 @@ function SidebarTrigger({
315
315
  data-slot="sidebar-trigger"
316
316
  variant="ghost"
317
317
  size="icon-sm"
318
- className={cn(className)}
318
+ className={cn("max-lg:size-11", className)}
319
319
  onClick={(event) => {
320
320
  onClick?.(event);
321
321
  toggleSidebar();
@@ -535,7 +535,7 @@ const sidebarMenuButtonVariants = cva(
535
535
  "bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
536
536
  },
537
537
  size: {
538
- default: "h-8 text-xs",
538
+ default: "h-8 text-xs max-md:h-11",
539
539
  sm: "h-7 text-xs",
540
540
  lg: "h-12 text-xs group-data-[collapsible=icon]:p-0!",
541
541
  },
@@ -45,7 +45,7 @@ function Slider({
45
45
  <SliderPrimitive.Thumb
46
46
  data-slot="slider-thumb"
47
47
  key={index}
48
- className="relative block size-4 shrink-0 rounded-full border border-primary/50 bg-background shadow transition-colors select-none after:absolute after:-inset-2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring data-disabled:pointer-events-none data-disabled:opacity-50"
48
+ className="relative block size-4 shrink-0 rounded-full border border-primary/50 bg-background shadow transition-colors select-none after:absolute after:-inset-2 max-md:after:-inset-3.5 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring data-disabled:pointer-events-none data-disabled:opacity-50"
49
49
  />
50
50
  ))}
51
51
  </SliderPrimitive.Control>
@@ -9,7 +9,7 @@ function Switch({ className, ...props }: SwitchPrimitive.Root.Props) {
9
9
  <SwitchPrimitive.Root
10
10
  data-slot="switch"
11
11
  className={cn(
12
- "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-checked:bg-primary data-unchecked:bg-input data-disabled:cursor-not-allowed data-disabled:opacity-50",
12
+ "peer relative inline-flex h-5 w-9 shrink-0 after:absolute after:-inset-x-1 after:-inset-y-3 md:after:hidden cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-checked:bg-primary data-unchecked:bg-input data-disabled:cursor-not-allowed data-disabled:opacity-50",
13
13
  className,
14
14
  )}
15
15
  {...props}
@@ -57,7 +57,7 @@ function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props) {
57
57
  <TabsPrimitive.Tab
58
58
  data-slot="tabs-trigger"
59
59
  className={cn(
60
- "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-xs font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start group-data-vertical/tabs:py-[calc(--spacing(1.25))] hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",
60
+ "relative inline-flex h-[calc(100%-1px)] flex-1 items-center max-md:before:absolute max-md:before:inset-x-0 max-md:before:-inset-y-1 max-md:before:content-[''] justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-xs font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start group-data-vertical/tabs:py-[calc(--spacing(1.25))] hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",
61
61
  "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
62
62
  "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground",
63
63
  "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
@@ -7,7 +7,7 @@ function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
7
7
  <textarea
8
8
  data-slot="textarea"
9
9
  className={cn(
10
- "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
10
+ "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 max-md:text-base",
11
11
  className,
12
12
  )}
13
13
  {...props}
@@ -1,10 +1,11 @@
1
- import type { IosDeviceStatus } from "@hot-updater/plugin-core";
1
+ import type { IosDeviceRow, IosDeviceStatus } from "@hot-updater/plugin-core";
2
2
  import {
3
3
  keepPreviousData,
4
4
  useMutation,
5
5
  useQuery,
6
6
  useQueryClient,
7
7
  } from "@tanstack/react-query";
8
+ import { useEffect } from "react";
8
9
 
9
10
  import {
10
11
  approveIosDevice,
@@ -14,13 +15,17 @@ import {
14
15
  getNativeBuildIpaDevices,
15
16
  removeIosDevice,
16
17
  renameIosDevice,
17
- requestIosDeviceAccess,
18
18
  } from "./ios-devices-rpc";
19
+ import { releasePendingReceipt } from "./native-builds";
19
20
 
20
21
  export const iosDeviceKeys = {
21
22
  all: ["ios-devices"] as const,
22
23
  list: (status?: IosDeviceStatus) => ["ios-devices", status ?? "all"] as const,
23
24
  device: (udid: string) => ["ios-devices", "device", udid] as const,
25
+ // What the cookie names doesn't depend on the ID this page kept: one read
26
+ // serves the page whether it knew its iPhone or learns it from the answer.
27
+ kept: (receipt: string | null) =>
28
+ ["ios-devices", "kept", receipt ?? ""] as const,
24
29
  ipa: (buildId: string) => ["native-build-ipa-devices", buildId] as const,
25
30
  };
26
31
 
@@ -119,7 +124,167 @@ export const useRemoveIosDeviceMutation = () =>
119
124
  removeIosDevice({ data: input }),
120
125
  );
121
126
 
122
- export const useRequestIosDeviceAccessMutation = () =>
123
- useInvalidatingMutation((input: { receipt: string; name: string }) =>
124
- requestIosDeviceAccess({ data: input }),
127
+ /** The routes this iPhone's kept proof is sent to, under the Console's path. */
128
+ const deviceRoute = (consolePath: string, name: "receipt" | "request") =>
129
+ `${consolePath}/_hot-updater/devices/${name}`;
130
+
131
+ const sendDeviceRoute = async <T>(
132
+ url: string,
133
+ init: RequestInit & { readonly json?: unknown } = {},
134
+ ): Promise<T> => {
135
+ const { json, ...rest } = init;
136
+ const response = await fetch(url, {
137
+ credentials: "same-origin",
138
+ ...rest,
139
+ ...(json === undefined
140
+ ? {}
141
+ : {
142
+ headers: { "content-type": "application/json" },
143
+ body: JSON.stringify(json),
144
+ }),
145
+ });
146
+ const body = (await response.json().catch(() => null)) as
147
+ | (T & { readonly error?: string })
148
+ | null;
149
+ if (!response.ok || body === null) {
150
+ throw new Error(body?.error ?? `Request failed (${response.status}).`);
151
+ }
152
+ return body;
153
+ };
154
+
155
+ /** Told when a trade sets the cookie, so a cached "no proof" is read again. */
156
+ const KEPT_EVENT = "hot-updater-ios-device-kept";
157
+
158
+ /**
159
+ * The same news for this Safari's other tabs, which share the cookie: a
160
+ * timestamp only, written where their `storage` event hears it.
161
+ */
162
+ const KEPT_PING_KEY = "hot-updater-ios-device-kept";
163
+
164
+ /** Trades in flight or done, one per receipt: a failed one is forgotten. */
165
+ const trades = new Map<string, Promise<unknown>>();
166
+
167
+ /**
168
+ * Trades the profile answer's fresh receipt for this Safari's HttpOnly cookie,
169
+ * wherever the answer lands: whatever the build page or the registry says, the
170
+ * proof is kept. One request per receipt while it is in flight or once it has
171
+ * succeeded; a failed one rejects and is forgotten, so the next refresh,
172
+ * refocus, or reload trades it again while it is still valid. Once traded,
173
+ * the receipt leaves this tab's session storage.
174
+ */
175
+ export const keepIosDeviceReceipt = (consolePath: string, receipt: string) => {
176
+ let trade = trades.get(receipt);
177
+ if (trade === undefined) {
178
+ trade = sendDeviceRoute(deviceRoute(consolePath, "receipt"), {
179
+ method: "POST",
180
+ json: { receipt },
181
+ }).then(
182
+ (answer) => {
183
+ releasePendingReceipt(receipt);
184
+ window.dispatchEvent(new Event(KEPT_EVENT));
185
+ try {
186
+ window.localStorage.setItem(KEPT_PING_KEY, String(Date.now()));
187
+ } catch {
188
+ // A browser that keeps nothing has no other tab to tell.
189
+ }
190
+ return answer;
191
+ },
192
+ (error: unknown) => {
193
+ trades.delete(receipt);
194
+ throw error;
195
+ },
196
+ );
197
+ trades.set(receipt, trade);
198
+ }
199
+ return trade;
200
+ };
201
+
202
+ /**
203
+ * The UDID this Safari has proved for the signed-in person, from its HttpOnly
204
+ * cookie, or null, read after the page's fresh receipt, if any, is traded for
205
+ * it. Read on an iPhone only.
206
+ */
207
+ export function useKeptIosDeviceQuery(
208
+ consolePath: string,
209
+ receipt: string | null,
210
+ enabled: boolean,
211
+ ) {
212
+ // A trade on this page, or in another tab, sets the cookie the receiptless
213
+ // read may have found empty: that read, cached for good otherwise, is read
214
+ // again.
215
+ const queryClient = useQueryClient();
216
+ useEffect(() => {
217
+ const onKept = () =>
218
+ void queryClient.invalidateQueries({
219
+ queryKey: iosDeviceKeys.kept(null),
220
+ exact: true,
221
+ });
222
+ const onStorage = (event: StorageEvent) => {
223
+ if (event.key === KEPT_PING_KEY) onKept();
224
+ };
225
+ window.addEventListener(KEPT_EVENT, onKept);
226
+ window.addEventListener("storage", onStorage);
227
+ return () => {
228
+ window.removeEventListener(KEPT_EVENT, onKept);
229
+ window.removeEventListener("storage", onStorage);
230
+ };
231
+ }, [queryClient]);
232
+ return useQuery({
233
+ queryKey: iosDeviceKeys.kept(receipt),
234
+ queryFn: async () => {
235
+ let failed: unknown = null;
236
+ if (receipt !== null) {
237
+ await keepIosDeviceReceipt(consolePath, receipt).catch((error) => {
238
+ failed = error;
239
+ });
240
+ }
241
+ const kept = await sendDeviceRoute<{ udid: string | null }>(
242
+ deviceRoute(consolePath, "receipt"),
243
+ );
244
+ // A trade that failed with no earlier proof leaves the read failed, so
245
+ // the next refresh or refocus trades the receipt again; no timer does.
246
+ if (failed !== null && kept.udid === null) throw failed;
247
+ return kept;
248
+ },
249
+ enabled,
250
+ retry: false,
251
+ staleTime: Number.POSITIVE_INFINITY,
252
+ });
253
+ }
254
+
255
+ /**
256
+ * Forgets this Safari's proof of its iPhone before sign-out, so the next
257
+ * person on this Safari starts from the profile. Only an iPhone or iPad holds
258
+ * one; a failure leaves the cookie, which the next email ignores anyway.
259
+ */
260
+ export const forgetKeptIosDevice = async (consolePath: string) => {
261
+ await sendDeviceRoute(deviceRoute(consolePath, "receipt"), {
262
+ method: "DELETE",
263
+ }).catch(() => undefined);
264
+ };
265
+
266
+ /**
267
+ * Requests this iPhone for the signed-in person, under `name`: the UDID comes
268
+ * from the profile's fresh receipt when the page has one, else from the
269
+ * cookie that proved it before.
270
+ */
271
+ export const useRequestThisIphoneMutation = (consolePath: string) =>
272
+ useInvalidatingMutation(
273
+ (input: { readonly name: string; readonly receipt: string | null }) =>
274
+ sendDeviceRoute<{ device: IosDeviceRow; created: boolean }>(
275
+ deviceRoute(consolePath, "request"),
276
+ {
277
+ method: "POST",
278
+ json:
279
+ input.receipt === null
280
+ ? { name: input.name }
281
+ : { name: input.name, receipt: input.receipt },
282
+ },
283
+ ),
125
284
  );
285
+
286
+ /** Whether the cookie's UDID is this iPhone's, whatever its case. */
287
+ export const keptIsThisIphone = (
288
+ kept: string | null | undefined,
289
+ udid: string | null,
290
+ ) => kept != null && udid !== null && kept.toLowerCase() === udid.toLowerCase();
@@ -129,18 +129,6 @@ export const createIosDeviceProfileLink = createServerFn({ method: "POST" })
129
129
  return devices.issueDeviceProfileLink(request, viewer, data);
130
130
  });
131
131
 
132
- /** Requests the iPhone this person's receipt names, for the next ad hoc build. */
133
- export const requestIosDeviceAccess = createServerFn({ method: "POST" })
134
- .middleware([consoleAccess])
135
- .validator((input: unknown) => ({
136
- receipt: text(input, "receipt"),
137
- name: text(input, "name", 100),
138
- }))
139
- .handler(async ({ data }) => {
140
- const { request, core, viewer, devices } = await registry();
141
- return devices.requestIosDeviceAccess(request, core, viewer, data);
142
- });
143
-
144
132
  /** Approves a requested device, with its name: approvers only. */
145
133
  export const approveIosDevice = createServerFn({ method: "POST" })
146
134
  .middleware([consoleAccess])