@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
@@ -1,43 +1,35 @@
1
1
  import { i as __toESM } from "../_runtime.mjs";
2
- import { a as SliderIndicator, bt as require_react, c as SliderControl, l as SliderRoot, o as SliderThumb, s as SliderTrack, yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
- import { B as Download, D as LoaderCircle, F as Funnel, I as FingerprintPattern, J as ChevronLeft, O as List, T as Minus, U as CircleOff, X as Check, Y as ChevronDown, a as Trash2, g as RotateCcw, i as TriangleAlert, nt as ArrowRight, o as Tags, q as ChevronRight, s as Tag, t as X, tt as ArrowUpRight, v as Plus, x as Package, z as ExternalLink } from "../_libs/lucide-react.mjs";
4
- import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, a as SheetContent, c as SheetTitle, i as Sheet, j as useIsMobile, k as cn, n as Input, o as SheetDescription, r as Separator$1, s as SheetHeader, t as Button$1 } from "./sidebar-t0NiN0-2.mjs";
2
+ import { Et as require_react, Tt as require_jsx_runtime, a as SliderIndicator, c as SliderControl, l as SliderRoot, o as SliderThumb, s as SliderTrack } from "../_libs/@base-ui/react+[...].mjs";
3
+ import { B as Download, D as LoaderCircle, O as List, P as Funnel, R as ExternalLink, T as Minus, U as CircleOff, X as Check, Y as ChevronDown, a as Trash2, g as RotateCcw, i as TriangleAlert, nt as ArrowRight, o as Tags, q as ChevronRight, s as Tag, t as X, tt as ArrowUpRight, v as Plus, x as Package } from "../_libs/lucide-react.mjs";
4
+ import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, a as SheetContent, c as SheetTitle, i as Sheet, j as useIsMobile, k as cn, n as Input, o as SheetDescription, r as Separator$1, s as SheetHeader, t as Button$1 } from "./sidebar-BrVL3L7R.mjs";
5
5
  import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
6
- import { a as Badge, c as CardDescription, d as CardTitle, i as AlertTitle, o as Card, r as AlertDescription, s as CardContent, t as Alert, u as CardHeader } from "./badge-oO-0mLsr.mjs";
7
- import { a as AlertDialogDescription, i as AlertDialogContent, l as AlertDialogTitle, n as AlertDialogAction, o as AlertDialogFooter, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog$1 } from "./alert-dialog-DxboqQmd.mjs";
8
- import { a as DialogHeader, i as DialogFooter, n as DialogContent, o as DialogTitle, r as DialogDescription, s as DialogTrigger, t as Dialog$1 } from "./dialog-DsuMZ5oh.mjs";
9
- import { a as FieldLabel, c as Label, i as FieldGroup, n as FieldDescription, r as FieldError, t as Field } from "./field-DfXmt9CS.mjs";
10
- import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-L9ZQgxNF.mjs";
6
+ import { a as CardHeader, n as CardContent, o as CardTitle, r as CardDescription, t as Card } from "./card-CFCftDfI.mjs";
7
+ import { a as Badge, i as AlertTitle, r as AlertDescription, t as Alert } from "./badge-Dpp4q7sD.mjs";
8
+ import { a as AlertDialogDescription, i as AlertDialogContent, l as AlertDialogTitle, n as AlertDialogAction, o as AlertDialogFooter, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog$1 } from "./alert-dialog-Bd4E9xdw.mjs";
9
+ import { a as DialogHeader, i as DialogFooter, n as DialogContent, o as DialogTitle, r as DialogDescription, s as DialogTrigger, t as Dialog$1 } from "./dialog-DQR_QI_X.mjs";
10
+ import { a as FieldLabel, c as Label, i as FieldGroup, n as FieldDescription, r as FieldError, t as Field } from "./field-BqYN8sZT.mjs";
11
+ import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-Bg7nCnct.mjs";
11
12
  import { n as toast } from "../_libs/sonner.mjs";
12
- import { D as normalizeRolloutCohortCount, E as normalizeCohortValue, T as isValidCohort, b as getPatchFileHash, g as getNumericCohortRolloutPosition, i as NUMERIC_COHORT_SIZE, t as INVALID_COHORT_ERROR_MESSAGE, v as getPatchBaseBundleId, y as getPatchBaseFileHash } from "./dist-TEpM_UAD.mjs";
13
- import { d as platformLabel, f as releaseNativeBuildScope, i as nativeBuildArtifacts } from "./native-builds-DhXL5zf_.mjs";
13
+ import { D as normalizeRolloutCohortCount, E as normalizeCohortValue, T as isValidCohort, b as getPatchFileHash, g as getNumericCohortRolloutPosition, i as NUMERIC_COHORT_SIZE, t as INVALID_COHORT_ERROR_MESSAGE, v as getPatchBaseBundleId, y as getPatchBaseFileHash } from "./dist-B6-irDRA.mjs";
14
+ import { D as platformLabel, O as releaseNativeBuildScope, m as nativeBuildArtifacts } from "./native-builds-BXBkklfA.mjs";
14
15
  import { n as normalizeRange } from "../_libs/verkit.mjs";
15
- import { n as InfoTooltip } from "./insights-search-B0O3YoO2.mjs";
16
- import { t as PlatformIcon } from "./PlatformIcon-CFLiTjh1.mjs";
17
- import { a as InputGroupText, i as InputGroupInput, n as InputGroupAddon, o as Textarea, t as InputGroup } from "./input-group-BCO7zTpU.mjs";
18
- import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-Cywc0NmT.mjs";
19
- import { _ as useReleaseQuery, a as useConfigQuery, c as useDeleteReleaseMutation, g as useReleaseNativeBuildQuery, h as useReleaseCatalogDiagnosticsQuery, i as useChannelsQuery, m as usePromoteReleaseMutation, n as useBundleChildrenQuery, o as useCreateChannelMutation, p as usePreflightReleaseMutation, r as useBundleQuery, s as useDeleteChannelMutation, t as useBundleChildCountsQuery, v as useReleasesQuery, y as useUpdateReleaseMutation } from "./api-cvzOLlTy.mjs";
20
- import { t as BundleIdDisplay } from "./BundleIdDisplay-LdRkYdnN.mjs";
21
- import { t as HashValueDisplay } from "./HashValueDisplay-C4Vs4cmO.mjs";
22
- import { n as getCommitUrl, t as TimestampDisplay } from "./git-CTA8Aqr0.mjs";
23
- import { t as RolloutPercentageBadge } from "./RolloutPercentageBadge-vmwE8iae.mjs";
24
- import { n as useDialogTarget, t as Switch$1 } from "./switch-D1T38CnM.mjs";
25
- import { a as updateReleaseFilters, i as releaseFilterOf, n as Route, r as hasReleaseFilters, s as useReleaseColumns, t as ReleaseSections } from "./routes-BeTsUkNX.mjs";
26
- //#region node_modules/.nitro/vite/services/ssr/assets/routes-D9JnXVWL.js
16
+ import { n as InfoTooltip } from "./insights-search-iFN4UaUv.mjs";
17
+ import { n as PlatformLabel, t as PlatformIcon } from "./PlatformIcon-BpGOEXjU.mjs";
18
+ import { a as InputGroupText, i as InputGroupInput, n as InputGroupAddon, o as Textarea, t as InputGroup } from "./input-group-Brv0mmyp.mjs";
19
+ import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-C9HpIZxd.mjs";
20
+ import { C as useReleasesQuery, S as useReleaseQuery, _ as usePreflightReleaseMutation, a as useConfigQuery, b as useReleaseFoldQuery, c as useDeleteReleaseMutation, i as useChannelsQuery, n as useBundleChildrenQuery, o as useCreateChannelMutation, r as useBundleQuery, s as useDeleteChannelMutation, t as useBundleChildCountsQuery, v as usePromoteReleaseMutation, w as useUpdateReleaseMutation, x as useReleaseNativeBuildQuery, y as useReleaseCatalogDiagnosticsQuery } from "./api-BT7aA8UM.mjs";
21
+ import { t as BundleIdDisplay } from "./BundleIdDisplay-DvzlYWq8.mjs";
22
+ import { t as HashValueDisplay } from "./HashValueDisplay-Cas_zjIS.mjs";
23
+ import { t as ChannelBadge } from "./ChannelBadge-qF_Pc5Ud.mjs";
24
+ import { a as DataTableBody, c as DataTableFullRow, d as DataTableSkeletonRows, f as RelativeTime, i as DataTable, l as DataTablePagination, n as DataCardSkeletons, o as DataTableEmpty, p as openOutsideControls, r as DataCardsEmpty, s as DataTableFrame, t as DataCard, u as DataTableRow } from "./RelativeTime-DpEVzDP9.mjs";
25
+ import { i as TargetDisplay, n as CopyableText } from "./TargetDisplay-BBsP7IaZ.mjs";
26
+ import { a as foldKey, c as groupsOf, i as RowReason, l as useOpenFolds, n as DataTableFold, o as foldLabel, r as FoldStatus, s as foldedTotal, t as DataCardFold } from "./RowReason-C-PjIxzq.mjs";
27
+ import { n as TimestampDisplay, r as getCommitUrl, t as RolloutPercentageBadge } from "./RolloutPercentageBadge-DW8-_w30.mjs";
28
+ import { n as useDialogTarget, t as Switch$1 } from "./switch-DtnsoZHO.mjs";
29
+ import { a as updateReleaseFilters, i as releaseFilterOf, n as Route, r as hasReleaseFilters, s as useReleaseColumns, t as ReleaseSections } from "./routes-DpapxHLc.mjs";
30
+ //#region node_modules/.nitro/vite/services/ssr/assets/routes-BJeztqpQ.js
27
31
  var import_react = /* @__PURE__ */ __toESM(require_react());
28
32
  var import_jsx_runtime = require_jsx_runtime();
29
- var channelColors = {
30
- production: "bg-green-500/10 text-green-700 dark:text-green-400 border-green-500/20",
31
- dev: "bg-blue-500/10 text-blue-700 dark:text-blue-400 border-blue-500/20",
32
- staging: "bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 border-yellow-500/20"
33
- };
34
- function ChannelBadge({ channel, className }) {
35
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
36
- variant: "outline",
37
- className: cn(channelColors[channel.toLowerCase()] || "bg-gray-500/10 text-gray-700 dark:text-gray-400 border-gray-500/20", className),
38
- children: channel
39
- });
40
- }
41
33
  function EnabledStatusIcon({ enabled, className, falseIcon = "x", colorMode = "semantic" }) {
42
34
  const iconColorClassName = colorMode === "inherit" ? "text-current" : void 0;
43
35
  if (enabled) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { className: cn("h-4 w-4", iconColorClassName ?? "text-green-600 dark:text-green-400", className) });
@@ -301,7 +293,7 @@ function ChannelManagementDialog({ open, onOpenChange }) {
301
293
  disabled: !normalizedName || createChannel.isPending,
302
294
  children: [createChannel.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, {
303
295
  "data-icon": "inline-start",
304
- className: "animate-spin"
296
+ className: "animate-spin motion-reduce:animate-none"
305
297
  }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Plus, { "data-icon": "inline-start" }), "Create"]
306
298
  })
307
299
  ]
@@ -312,7 +304,7 @@ function ChannelManagementDialog({ open, onOpenChange }) {
312
304
  className: "max-h-72 overflow-y-auto rounded-lg border",
313
305
  children: isLoadingChannels ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
314
306
  className: "flex h-20 items-center justify-center text-muted-foreground",
315
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, { className: "mr-2 size-3.5 animate-spin" }), "Loading channels"]
307
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, { className: "mr-2 size-3.5 animate-spin motion-reduce:animate-none" }), "Loading channels"]
316
308
  }) : channels.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
317
309
  className: "flex h-20 items-center justify-center text-muted-foreground",
318
310
  children: "No channels yet"
@@ -320,15 +312,9 @@ function ChannelManagementDialog({ open, onOpenChange }) {
320
312
  className: "divide-y",
321
313
  children: channels.map((channel) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("li", {
322
314
  className: "flex min-h-12 items-center gap-3 px-3 py-2",
323
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
324
- className: "min-w-0 flex-1",
325
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
326
- className: "truncate text-xs font-medium",
327
- children: channel.name
328
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
329
- className: "truncate font-mono text-[10px] text-muted-foreground",
330
- children: channel.id
331
- })]
315
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
316
+ className: "min-w-0 flex-1 truncate text-xs font-medium",
317
+ children: channel.name
332
318
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
333
319
  type: "button",
334
320
  variant: "ghost",
@@ -579,10 +565,10 @@ function RolloutCohortsDialog({ releaseId, rolloutCohortCount, targetCohorts })
579
565
  })] });
580
566
  }
581
567
  /**
582
- * The native build a release's bundle reaches, and whether that bundle has
583
- * a patch from its built-in bundle: the newest build of the release's
584
- * scope, one read. A release of an app version range targets many builds,
585
- * so it shows none and reads nothing.
568
+ * The native build new deploys to a release's scope patch from, and whether
569
+ * this bundle has a patch from its built-in bundle: the scope's store build,
570
+ * or with none its newest, in two reads at most. A release of an app version
571
+ * range targets many builds, so it shows none and reads nothing.
586
572
  */
587
573
  function ReleaseNativeBuildLink({ release, channel, bundle }) {
588
574
  const input = release.bundle_id === null ? null : {
@@ -1366,7 +1352,11 @@ function ReleaseStateBadge({ release }) {
1366
1352
  children: [release.enabled ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { className: "size-3" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CircleOff, { className: "size-3" }), release.enabled ? "Enabled" : "Disabled"]
1367
1353
  });
1368
1354
  }
1369
- var PAGE_SIZE = 20;
1355
+ /** A fold of unreachable bundles: "1 unreachable bundle", "2 …". */
1356
+ var UNREACHABLE_BUNDLES = {
1357
+ one: "unreachable bundle",
1358
+ other: "unreachable bundles"
1359
+ };
1370
1360
  var platformFilterItems = [{
1371
1361
  label: "iOS",
1372
1362
  value: "ios"
@@ -1388,19 +1378,6 @@ var statusFilterItems = [
1388
1378
  value: "disabled"
1389
1379
  }
1390
1380
  ];
1391
- var dateFormatter = new Intl.DateTimeFormat(void 0, {
1392
- dateStyle: "medium",
1393
- timeStyle: "short"
1394
- });
1395
- var tableDateFormatter = new Intl.DateTimeFormat(void 0, { dateStyle: "medium" });
1396
- /**
1397
- * Opens a bundle from a click anywhere on its row or card, except on a
1398
- * control inside it, which keeps its own action.
1399
- */
1400
- var openOutsideControls = (open) => (event) => {
1401
- if (event.target instanceof Element && event.target.closest("button, a, input, select, textarea")) return;
1402
- open();
1403
- };
1404
1381
  function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, search }) {
1405
1382
  const hasFilters = hasReleaseFilters(search);
1406
1383
  const channelSelected = search.channelId !== void 0;
@@ -1414,7 +1391,7 @@ function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, se
1414
1391
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
1415
1392
  className: "sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-2 border-b bg-background px-3 py-3 sm:h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:py-0 sm:backdrop-blur-sm",
1416
1393
  children: [
1417
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1" }),
1394
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1 size-11 lg:size-7" }),
1418
1395
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
1419
1396
  className: "sr-only",
1420
1397
  children: "Bundles"
@@ -1432,7 +1409,7 @@ function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, se
1432
1409
  value: search.channelId ?? "all",
1433
1410
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectTrigger, {
1434
1411
  "aria-label": "Channel",
1435
- className: "h-8 w-[calc(50%-0.25rem)] min-w-[132px] text-xs sm:w-[140px]",
1412
+ className: "w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 sm:w-[140px] sm:data-[size=default]:h-8",
1436
1413
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectValue, {})
1437
1414
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
1438
1415
  value: "all",
@@ -1449,7 +1426,7 @@ function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, se
1449
1426
  value: search.platform ?? "ios",
1450
1427
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectTrigger, {
1451
1428
  "aria-label": "Platform",
1452
- className: "h-8 w-[calc(50%-0.25rem)] min-w-[132px] text-xs sm:w-[140px]",
1429
+ className: "w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:data-[size=default]:h-8",
1453
1430
  title: channelSelected ? void 0 : "Choose a channel first",
1454
1431
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectValue, {})
1455
1432
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
@@ -1467,7 +1444,7 @@ function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, se
1467
1444
  value: search.enabled === void 0 ? "all" : search.enabled ? "enabled" : "disabled",
1468
1445
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectTrigger, {
1469
1446
  "aria-label": "Status",
1470
- className: "h-8 w-[calc(50%-0.25rem)] min-w-[132px] text-xs sm:w-[140px]",
1447
+ className: "w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:data-[size=default]:h-8",
1471
1448
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectValue, {})
1472
1449
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectGroup, { children: [
1473
1450
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
@@ -1486,6 +1463,7 @@ function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, se
1486
1463
  }),
1487
1464
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
1488
1465
  "aria-label": "Manage channels",
1466
+ className: "size-11 max-sm:order-1 sm:size-7",
1489
1467
  onClick: onManageChannels,
1490
1468
  size: "icon-sm",
1491
1469
  title: "Manage channels",
@@ -1493,29 +1471,29 @@ function BundleFilterToolbar({ channels, onChange, onClear, onManageChannels, se
1493
1471
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tags, {})
1494
1472
  }),
1495
1473
  search.bundleId ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Badge, {
1496
- className: "max-w-48 gap-1",
1474
+ className: "max-w-48 gap-1 max-sm:order-3",
1497
1475
  variant: "secondary",
1498
1476
  children: ["Artifact filter", /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
1499
1477
  "aria-label": "Clear artifact filter",
1500
- className: "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
1478
+ className: "relative rounded-sm after:absolute after:-inset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden",
1501
1479
  onClick: () => onChange({ bundleId: void 0 }),
1502
1480
  type: "button",
1503
1481
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { className: "size-3" })
1504
1482
  })]
1505
1483
  }) : null,
1506
1484
  search.scopeKey ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Badge, {
1507
- className: "max-w-48 gap-1",
1485
+ className: "max-w-48 gap-1 max-sm:order-3",
1508
1486
  variant: "secondary",
1509
1487
  children: ["Target filter", /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
1510
1488
  "aria-label": "Clear target filter",
1511
- className: "rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
1489
+ className: "relative rounded-sm after:absolute after:-inset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden",
1512
1490
  onClick: () => onChange({ scopeKey: void 0 }),
1513
1491
  type: "button",
1514
1492
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { className: "size-3" })
1515
1493
  })]
1516
1494
  }) : null,
1517
1495
  hasFilters ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
1518
- className: "h-8 px-2 text-xs text-muted-foreground hover:text-foreground sm:ml-auto",
1496
+ className: "h-11 px-2 text-xs text-muted-foreground hover:text-foreground max-sm:order-3 sm:ml-auto sm:h-8",
1519
1497
  onClick: onClear,
1520
1498
  size: "sm",
1521
1499
  variant: "ghost",
@@ -1534,7 +1512,7 @@ function BundleEntry({ expanded, onOpen, onToggleExpand, release }) {
1534
1512
  "aria-expanded": expanded,
1535
1513
  "aria-label": expanded ? "Hide advanced artifact diagnostics" : "Show advanced artifact diagnostics",
1536
1514
  title: "Advanced artifact diagnostics",
1537
- className: "size-8 shrink-0 touch-manipulation",
1515
+ className: "size-11 shrink-0 touch-manipulation sm:size-8",
1538
1516
  onClick: onToggleExpand,
1539
1517
  size: "icon",
1540
1518
  type: "button",
@@ -1542,7 +1520,7 @@ function BundleEntry({ expanded, onOpen, onToggleExpand, release }) {
1542
1520
  children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, {})
1543
1521
  }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1544
1522
  "aria-hidden": "true",
1545
- className: "size-8 shrink-0"
1523
+ className: "size-11 shrink-0 sm:size-8"
1546
1524
  }),
1547
1525
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
1548
1526
  "aria-label": `Open details for ID ${release.id}`,
@@ -1563,11 +1541,11 @@ function BundleEntry({ expanded, onOpen, onToggleExpand, release }) {
1563
1541
  variant: "secondary",
1564
1542
  children: operationLabel
1565
1543
  }) : null,
1566
- release.currentlyUnreachable ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1567
- "aria-label": "Unreachable: no device gets this bundle with the current delivery settings.",
1568
- className: "inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground",
1569
- title: "No device gets this bundle with the current delivery settings.",
1570
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CircleOff, { className: "size-3.5" }), "Unreachable"]
1544
+ release.currentlyUnreachable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RowReason, {
1545
+ icon: CircleOff,
1546
+ label: "Unreachable: no device gets this bundle with the current delivery settings.",
1547
+ reason: "No device gets this bundle with the current delivery settings.",
1548
+ children: "Unreachable"
1571
1549
  }) : null
1572
1550
  ]
1573
1551
  });
@@ -1602,44 +1580,111 @@ function ReleaseBundleChildrenPanel({ onDetailClick, panelId, release }) {
1602
1580
  panelId
1603
1581
  });
1604
1582
  }
1583
+ /**
1584
+ * The patch counts and feature slots of a group of releases: the page's
1585
+ * reachable ones, or one fold's, so opening a fold reads its own rows'
1586
+ * and changes no other query.
1587
+ */
1588
+ function useRowContext(releases, channels) {
1589
+ return {
1590
+ patchCounts: useBundleChildCountsQuery(Array.from(new Set(releases.flatMap((release) => release.bundle_id ? [release.bundle_id] : [])))).data ?? {},
1591
+ slotReleases: releases.flatMap((release) => {
1592
+ const channel = channels.find((item) => item.id === release.channel_id)?.name;
1593
+ return channel ? [{
1594
+ releaseId: release.id,
1595
+ platform: release.platform,
1596
+ channel,
1597
+ builtIn: !release.bundle_id
1598
+ }] : [];
1599
+ })
1600
+ };
1601
+ }
1602
+ /** Whether a fold of the page holds `releaseId`: IDs order the list. */
1603
+ var foldHolds = (fold, releaseId) => releaseId >= fold.to && (fold.from === void 0 || releaseId < fold.from);
1604
+ /**
1605
+ * A fold of unreachable bundles, where they sit in the list: closed, the
1606
+ * number it holds; open, those bundles in order, subdued, read a chunk at a
1607
+ * time once it opens.
1608
+ */
1609
+ function UnreachableBundlesFold({ fold, filter, channels, columns, isMobile, open, onOpenChange, render }) {
1610
+ const query = useReleaseFoldQuery(filter, {
1611
+ ...fold.from === void 0 ? {} : { from: fold.from },
1612
+ to: fold.to
1613
+ }, open);
1614
+ const rows = query.data?.pages.flatMap((page) => page.rows) ?? [];
1615
+ const ctx = useRowContext(rows, channels);
1616
+ const statusColumns = isMobile ? void 0 : columns;
1617
+ const status = query.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FoldStatus, {
1618
+ columns: statusColumns,
1619
+ label: "Unreachable bundles",
1620
+ onRetry: () => void query.refetch(),
1621
+ state: "error"
1622
+ }) : query.isPending || query.isFetchingNextPage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FoldStatus, {
1623
+ columns: statusColumns,
1624
+ label: "Loading unreachable bundles",
1625
+ state: "loading"
1626
+ }) : query.hasNextPage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FoldStatus, {
1627
+ columns: statusColumns,
1628
+ label: "Unreachable bundles",
1629
+ onMore: () => void query.fetchNextPage(),
1630
+ state: "more"
1631
+ }) : null;
1632
+ const props = {
1633
+ label: foldLabel(fold, UNREACHABLE_BUNDLES),
1634
+ open,
1635
+ onOpenChange,
1636
+ panelId: `bundle-fold-${fold.to}`
1637
+ };
1638
+ return isMobile ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataCardFold, {
1639
+ ...props,
1640
+ children: [rows.map((release) => render(release, ctx)), status]
1641
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataTableFold, {
1642
+ ...props,
1643
+ columns,
1644
+ children: [rows.map((release) => render(release, ctx)), status]
1645
+ });
1646
+ }
1605
1647
  function BundlesPage() {
1606
1648
  const search = Route.useSearch();
1607
1649
  const navigate = Route.useNavigate();
1608
1650
  const isMobile = useIsMobile();
1609
1651
  const [channelsOpen, setChannelsOpen] = (0, import_react.useState)(false);
1610
1652
  const [expandedReleaseId, setExpandedReleaseId] = (0, import_react.useState)();
1653
+ const folds = useOpenFolds();
1654
+ const filter = releaseFilterOf(search);
1611
1655
  const releasesQuery = useReleasesQuery({
1612
1656
  afterReleaseId: search.afterReleaseId,
1613
1657
  beforeReleaseId: search.beforeReleaseId,
1614
- filter: releaseFilterOf(search),
1615
- limit: PAGE_SIZE
1658
+ filter,
1659
+ releaseId: search.releaseId
1616
1660
  });
1617
1661
  const channels = useChannelsQuery().data ?? [];
1618
- const releases = releasesQuery.data?.data ?? [];
1619
- const patchCountsByBundleId = useBundleChildCountsQuery(Array.from(new Set(releases.flatMap((release) => release.bundle_id ? [release.bundle_id] : [])))).data ?? {};
1662
+ const entries = releasesQuery.data?.entries ?? [];
1663
+ const releases = entries.flatMap((entry) => entry.kind === "row" ? [entry.row] : []);
1664
+ const pageContext = useRowContext(releases, channels);
1620
1665
  const nextCursor = releasesQuery.data?.next;
1621
1666
  const previousCursor = releasesQuery.data?.previous;
1622
- const slotReleases = releases.flatMap((release) => {
1623
- const channel = channels.find((item) => item.id === release.channel_id)?.name;
1624
- return channel ? [{
1625
- releaseId: release.id,
1626
- platform: release.platform,
1627
- channel,
1628
- builtIn: !release.bundle_id
1629
- }] : [];
1630
- });
1631
1667
  const featureColumns = useReleaseColumns();
1632
1668
  const columnCount = 10 + featureColumns.length;
1633
1669
  const channelNames = new Map(channels.map((channel) => [channel.id, channel.name]));
1670
+ const visible = (releaseId) => releases.some((release) => release.id === releaseId) || entries.some((entry) => entry.kind === "fold" && folds.isOpen(foldKey(entry)) && foldHolds(entry, releaseId));
1671
+ const lineageVisible = expandedReleaseId !== void 0 && visible(expandedReleaseId);
1634
1672
  (0, import_react.useEffect)(() => {
1635
- if (expandedReleaseId && !releases.some((release) => release.id === expandedReleaseId)) setExpandedReleaseId(void 0);
1636
- }, [expandedReleaseId, releases]);
1673
+ if (expandedReleaseId !== void 0 && !lineageVisible) setExpandedReleaseId(void 0);
1674
+ }, [expandedReleaseId, lineageVisible]);
1637
1675
  const go = (nextSearch, resetScroll = true) => void navigate({
1638
1676
  resetScroll,
1639
1677
  search: nextSearch,
1640
1678
  to: "/"
1641
1679
  });
1642
1680
  const changeFilters = (filters) => go(updateReleaseFilters(search, filters));
1681
+ const select = (release) => {
1682
+ if (!releases.some(({ id }) => id === release.id)) folds.set(release.id, true);
1683
+ go({
1684
+ ...search,
1685
+ releaseId: release.id
1686
+ }, false);
1687
+ };
1643
1688
  const openChildBundle = (bundle) => {
1644
1689
  const childRelease = releases.find((release) => release.bundle_id === bundle.id);
1645
1690
  setExpandedReleaseId(void 0);
@@ -1655,8 +1700,8 @@ function BundlesPage() {
1655
1700
  const onLaterPage = search.afterReleaseId !== void 0 || search.beforeReleaseId !== void 0;
1656
1701
  const previousSearch = previousCursor ? {
1657
1702
  ...search,
1658
- afterReleaseId: previousCursor,
1659
- beforeReleaseId: void 0,
1703
+ afterReleaseId: "after" in previousCursor ? previousCursor.after : void 0,
1704
+ beforeReleaseId: "before" in previousCursor ? previousCursor.before : void 0,
1660
1705
  releaseId: void 0
1661
1706
  } : null;
1662
1707
  const nextSearch = nextCursor ? {
@@ -1671,6 +1716,210 @@ function BundlesPage() {
1671
1716
  beforeReleaseId: void 0,
1672
1717
  releaseId: void 0
1673
1718
  };
1719
+ const renderCard = (release, ctx) => {
1720
+ const channelName = channelNames.get(release.channel_id) ?? release.channel_id;
1721
+ const patchCount = release.bundle_id ? ctx.patchCounts[release.bundle_id] : 0;
1722
+ const isExpanded = lineageVisible && expandedReleaseId === release.id;
1723
+ const panelId = `bundle-lineage-panel-${release.id}`;
1724
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataCard, {
1725
+ "aria-label": `Bundle ${release.id}`,
1726
+ className: cn("gap-3", release.currentlyUnreachable && "bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100", isExpanded && "border-b-0 bg-primary/5"),
1727
+ "data-state": search.releaseId === release.id ? "selected" : void 0,
1728
+ onClick: openOutsideControls(() => select(release)),
1729
+ children: [
1730
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1731
+ className: "flex items-start justify-between gap-3",
1732
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(BundleEntry, {
1733
+ expanded: isExpanded,
1734
+ onOpen: () => select(release),
1735
+ onToggleExpand: () => setExpandedReleaseId(isExpanded ? void 0 : release.id),
1736
+ release
1737
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelBadge, {
1738
+ channel: channelName,
1739
+ className: "shrink-0"
1740
+ })]
1741
+ }),
1742
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
1743
+ className: "flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground",
1744
+ children: [
1745
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1746
+ className: "flex items-center gap-1.5 text-foreground",
1747
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformIcon, {
1748
+ className: "size-4",
1749
+ platform: release.platform
1750
+ }), release.platform === "ios" ? "iOS" : "Android"]
1751
+ }),
1752
+ patchCount === void 0 || patchCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1753
+ "aria-hidden": "true",
1754
+ children: "·"
1755
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: patchCount === void 0 ? "Checking patches" : `${patchCount} ${patchCount === 1 ? "patch" : "patches"}` })] }) : null,
1756
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1757
+ "aria-hidden": "true",
1758
+ children: "·"
1759
+ }),
1760
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: release.created_at_ms })
1761
+ ]
1762
+ }),
1763
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1764
+ className: "flex flex-wrap items-center gap-x-3 gap-y-2 text-xs",
1765
+ children: [
1766
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageBadge, { percentage: release.rollout_cohort_count / 10 }),
1767
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseStateBadge, { release }),
1768
+ release.should_force_update ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
1769
+ variant: "secondary",
1770
+ children: "Force update"
1771
+ }) : null,
1772
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1773
+ className: "flex items-center",
1774
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1775
+ className: "sr-only",
1776
+ children: "Target "
1777
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TargetDisplay, {
1778
+ appVersion: release.target_app_version,
1779
+ fingerprintHash: release.fingerprint_hash
1780
+ })]
1781
+ })
1782
+ ]
1783
+ }),
1784
+ featureColumns.map(({ Cell, feature, label }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1785
+ className: "mt-3 text-xs",
1786
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1787
+ className: "sr-only",
1788
+ children: label
1789
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cell, {
1790
+ releaseId: release.id,
1791
+ releases: ctx.slotReleases
1792
+ })]
1793
+ }, feature)),
1794
+ release.message ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
1795
+ className: "line-clamp-2 text-xs text-muted-foreground",
1796
+ children: release.message
1797
+ }) : null
1798
+ ]
1799
+ }), isExpanded && release.bundle_id ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseBundleChildrenPanel, {
1800
+ onDetailClick: openChildBundle,
1801
+ panelId,
1802
+ release
1803
+ }) : null] }, release.id);
1804
+ };
1805
+ const renderRow = (release, ctx) => {
1806
+ const isExpanded = lineageVisible && expandedReleaseId === release.id;
1807
+ const panelId = `bundle-lineage-panel-${release.id}`;
1808
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataTableRow, {
1809
+ "aria-label": `Open bundle ${release.id}`,
1810
+ className: cn(release.currentlyUnreachable && "bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100", isExpanded && "bg-primary/5"),
1811
+ "data-state": search.releaseId === release.id ? "selected" : void 0,
1812
+ onOpen: () => select(release),
1813
+ children: [
1814
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BundleEntry, {
1815
+ expanded: isExpanded,
1816
+ onOpen: () => select(release),
1817
+ onToggleExpand: () => setExpandedReleaseId(isExpanded ? void 0 : release.id),
1818
+ release
1819
+ }) }),
1820
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelBadge, { channel: channelNames.get(release.channel_id) ?? release.channel_id }) }),
1821
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1822
+ className: "whitespace-nowrap",
1823
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformLabel, { platform: release.platform })
1824
+ }),
1825
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: release.bundle_id && ctx.patchCounts[release.bundle_id] === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1826
+ className: "text-sm text-muted-foreground",
1827
+ children: "Checking"
1828
+ }) : release.bundle_id && ctx.patchCounts[release.bundle_id] > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Badge, {
1829
+ variant: "secondary",
1830
+ children: [
1831
+ ctx.patchCounts[release.bundle_id],
1832
+ " ",
1833
+ ctx.patchCounts[release.bundle_id] === 1 ? "patch" : "patches"
1834
+ ]
1835
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1836
+ className: "text-muted-foreground",
1837
+ children: "-"
1838
+ }) }),
1839
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TargetDisplay, {
1840
+ appVersion: release.target_app_version,
1841
+ fingerprintHash: release.fingerprint_hash
1842
+ }) }),
1843
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1844
+ className: "flex items-center",
1845
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EnabledStatusIcon, { enabled: release.enabled }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1846
+ className: "sr-only",
1847
+ children: release.enabled ? "Enabled" : "Disabled"
1848
+ })]
1849
+ }) }),
1850
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1851
+ className: "flex items-center",
1852
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EnabledStatusIcon, {
1853
+ enabled: release.should_force_update,
1854
+ falseIcon: "minus"
1855
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1856
+ className: "sr-only",
1857
+ children: release.should_force_update ? "Required" : "Optional"
1858
+ })]
1859
+ }) }),
1860
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageBadge, { percentage: release.rollout_cohort_count / 10 }) }),
1861
+ featureColumns.map(({ Cell, feature }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cell, {
1862
+ releaseId: release.id,
1863
+ releases: ctx.slotReleases
1864
+ }) }, feature)),
1865
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1866
+ className: "text-sm text-muted-foreground",
1867
+ title: release.message ?? void 0,
1868
+ children: release.message || "-"
1869
+ }),
1870
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1871
+ className: "text-xs text-muted-foreground",
1872
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: release.created_at_ms })
1873
+ })
1874
+ ]
1875
+ }), isExpanded && release.bundle_id ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableRow, {
1876
+ className: "hover:bg-transparent",
1877
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1878
+ className: "border-t-0 p-0",
1879
+ colSpan: columnCount,
1880
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseBundleChildrenPanel, {
1881
+ onDetailClick: openChildBundle,
1882
+ panelId,
1883
+ release
1884
+ })
1885
+ })
1886
+ }) : null] }, release.id);
1887
+ };
1888
+ const fold = (entry, render) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(UnreachableBundlesFold, {
1889
+ channels,
1890
+ columns: columnCount,
1891
+ filter,
1892
+ fold: entry,
1893
+ isMobile,
1894
+ onOpenChange: (open) => folds.set(foldKey(entry), open),
1895
+ open: folds.isOpen(foldKey(entry)),
1896
+ render
1897
+ }, `fold-${entry.to}`);
1898
+ const empty = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableEmpty, {
1899
+ icon: Package,
1900
+ title: releases.length === 0 && entries.length > 0 ? "No device gets the bundles here" : onLaterPage ? "No more bundles" : hasReleaseFilters(search) ? "No bundles match these filters" : "No bundles yet",
1901
+ children: onLaterPage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
1902
+ className: buttonVariants({
1903
+ className: "mt-1 min-h-11 sm:min-h-8",
1904
+ variant: "outline"
1905
+ }),
1906
+ search: newestSearch,
1907
+ to: "/",
1908
+ children: "Show the newest bundles"
1909
+ }) : hasReleaseFilters(search) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
1910
+ className: "mt-1 min-h-11 sm:min-h-8",
1911
+ onClick: () => go({}),
1912
+ variant: "outline",
1913
+ children: "Clear filters"
1914
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Deploy one from your app's project:" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1915
+ className: "w-full text-left",
1916
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
1917
+ label: "the deploy command",
1918
+ value: "npx hot-updater deploy",
1919
+ wrap: true
1920
+ })
1921
+ })] })
1922
+ });
1674
1923
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1675
1924
  className: "flex h-svh min-h-0 min-w-0 flex-col",
1676
1925
  children: [
@@ -1690,342 +1939,49 @@ function BundlesPage() {
1690
1939
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "Bundles could not be loaded" }),
1691
1940
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: releasesQuery.error.message })
1692
1941
  ]
1693
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1694
- className: "min-h-0 min-w-0 flex-1 overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm [&_[data-slot=table-container]]:h-full [&_[data-slot=table-container]]:overflow-auto",
1695
- children: isMobile ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1696
- className: "h-full overflow-y-auto",
1697
- children: releasesQuery.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1698
- className: "flex flex-col gap-3 p-4",
1699
- children: Array.from({ length: 5 }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-44 w-full" }, index))
1700
- }) : releases.length ? releases.map((release) => {
1701
- const channelName = channelNames.get(release.channel_id) ?? release.channel_id;
1702
- const patchCount = release.bundle_id ? patchCountsByBundleId[release.bundle_id] : 0;
1703
- const isExpanded = expandedReleaseId === release.id;
1704
- const panelId = `bundle-lineage-panel-${release.id}`;
1705
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("article", {
1706
- "aria-label": `Bundle ${release.id}`,
1707
- className: cn("flex cursor-pointer touch-manipulation flex-col gap-4 border-b p-4 transition-[background-color,filter] last:border-b-0 hover:bg-muted/10 active:bg-muted/20 motion-reduce:transition-none data-[state=selected]:bg-muted/15", release.currentlyUnreachable && "bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100", isExpanded && "border-b-0 bg-primary/5"),
1708
- "data-state": search.releaseId === release.id ? "selected" : void 0,
1709
- onClick: openOutsideControls(() => go({
1710
- ...search,
1711
- releaseId: release.id
1712
- }, false)),
1713
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1714
- className: "flex items-start justify-between gap-3",
1715
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(BundleEntry, {
1716
- expanded: isExpanded,
1717
- onOpen: () => go({
1718
- ...search,
1719
- releaseId: release.id
1720
- }, false),
1721
- onToggleExpand: () => setExpandedReleaseId(isExpanded ? void 0 : release.id),
1722
- release
1723
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelBadge, {
1724
- channel: channelName,
1725
- className: "shrink-0"
1726
- })]
1727
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dl", {
1728
- className: "grid grid-cols-2 gap-3 text-xs",
1729
- children: [
1730
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1731
- className: "rounded-md bg-muted/40 p-3",
1732
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
1733
- className: "text-muted-foreground",
1734
- children: "Platform"
1735
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dd", {
1736
- className: "mt-1 flex items-center gap-2 font-medium",
1737
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformIcon, {
1738
- className: "size-4",
1739
- platform: release.platform
1740
- }), release.platform === "ios" ? "iOS" : "Android"]
1741
- })]
1742
- }),
1743
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1744
- className: "rounded-md bg-muted/40 p-3",
1745
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
1746
- className: "text-muted-foreground",
1747
- children: "Created"
1748
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
1749
- className: "mt-1 tabular-nums",
1750
- children: dateFormatter.format(release.created_at_ms)
1751
- })]
1752
- }),
1753
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1754
- className: "rounded-md bg-muted/40 p-3",
1755
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
1756
- className: "text-muted-foreground",
1757
- children: "Rollout"
1758
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
1759
- className: "mt-1",
1760
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageBadge, { percentage: release.rollout_cohort_count / 10 })
1761
- })]
1762
- }),
1763
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1764
- className: "rounded-md bg-muted/40 p-3",
1765
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
1766
- className: "text-muted-foreground",
1767
- children: "Patches"
1768
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
1769
- className: "mt-1",
1770
- children: patchCount === void 0 ? "Checking" : patchCount > 0 ? `${patchCount} ${patchCount === 1 ? "patch" : "patches"}` : "—"
1771
- })]
1772
- }),
1773
- featureColumns.map(({ Cell, feature, label }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1774
- className: "col-span-2 rounded-md bg-muted/40 p-3",
1775
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
1776
- className: "mb-2 text-muted-foreground",
1777
- children: label
1778
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cell, {
1779
- releaseId: release.id,
1780
- releases: slotReleases
1781
- }) })]
1782
- }, feature)),
1783
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1784
- className: "col-span-2 flex flex-wrap items-center gap-2 rounded-md bg-muted/40 p-3",
1785
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseStateBadge, { release }), release.should_force_update ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
1786
- variant: "secondary",
1787
- children: "Force update"
1788
- }) : null]
1789
- }),
1790
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1791
- className: "col-span-2 grid grid-cols-1 gap-2 rounded-md border bg-background/80 p-3",
1792
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1793
- className: "flex items-start justify-between gap-3",
1794
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
1795
- className: "text-muted-foreground",
1796
- children: "Target"
1797
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
1798
- className: "min-w-0 truncate text-right font-mono",
1799
- children: release.target_app_version ?? release.fingerprint_hash ?? "—"
1800
- })]
1801
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1802
- className: "flex items-start justify-between gap-3",
1803
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
1804
- className: "text-muted-foreground",
1805
- children: "Message"
1806
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
1807
- className: "min-w-0 text-right text-foreground",
1808
- children: release.message || "—"
1809
- })]
1810
- })]
1811
- })
1812
- ]
1813
- })]
1814
- }), isExpanded && release.bundle_id ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseBundleChildrenPanel, {
1815
- onDetailClick: openChildBundle,
1816
- panelId,
1817
- release
1818
- }) : null] }, release.id);
1819
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
1820
- className: "p-8 text-center text-sm text-muted-foreground",
1821
- children: onLaterPage ? "No more bundles on this side." : hasReleaseFilters(search) ? "No bundles match these filters." : "No bundles yet. Deploy an update to see it here."
1822
- })
1823
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Table, {
1824
- className: "min-w-max",
1825
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHeader, {
1826
- className: "bg-muted/40",
1827
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, {
1828
- className: "border-b border-border/60 hover:bg-transparent [&>th]:h-10 [&>th]:text-xs [&>th]:font-semibold [&>th]:uppercase [&>th]:text-muted-foreground/70",
1829
- children: [
1830
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "ID" }),
1831
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Channel" }),
1832
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Platform" }),
1833
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Patches" }),
1834
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Target" }),
1835
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Enabled" }),
1836
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Force update" }),
1837
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Rollout" }),
1838
- featureColumns.map(({ feature, label }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: label }, feature)),
1839
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Message" }),
1840
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Created" })
1841
- ]
1842
- })
1843
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableBody, { children: [releasesQuery.isPending ? Array.from({ length: 7 }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1844
- colSpan: columnCount,
1845
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-8 w-full" })
1846
- }) }, index)) : releases.map((release) => {
1847
- const isExpanded = expandedReleaseId === release.id;
1848
- const panelId = `bundle-lineage-panel-${release.id}`;
1849
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, {
1850
- "aria-label": `Open bundle ${release.id}`,
1851
- className: cn("cursor-pointer transition-[background-color,filter] hover:bg-muted/10 focus-within:bg-muted/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring motion-reduce:transition-none data-[state=selected]:bg-muted/15 [&>td]:py-3", release.currentlyUnreachable && "bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100", isExpanded && "bg-primary/5"),
1852
- "data-state": search.releaseId === release.id ? "selected" : void 0,
1853
- onClick: openOutsideControls(() => go({
1854
- ...search,
1855
- releaseId: release.id
1856
- }, false)),
1857
- onKeyDown: (event) => {
1858
- if (event.target !== event.currentTarget || event.key !== "Enter" && event.key !== " ") return;
1859
- event.preventDefault();
1860
- go({
1861
- ...search,
1862
- releaseId: release.id
1863
- }, false);
1864
- },
1865
- tabIndex: 0,
1866
- children: [
1867
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BundleEntry, {
1868
- expanded: isExpanded,
1869
- onOpen: () => go({
1870
- ...search,
1871
- releaseId: release.id
1872
- }, false),
1873
- onToggleExpand: () => setExpandedReleaseId(isExpanded ? void 0 : release.id),
1874
- release
1875
- }) }),
1876
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelBadge, { channel: channelNames.get(release.channel_id) ?? release.channel_id }) }),
1877
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1878
- className: "whitespace-nowrap",
1879
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1880
- className: "flex items-center gap-2",
1881
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformIcon, {
1882
- className: "size-4",
1883
- platform: release.platform
1884
- }), release.platform === "ios" ? "iOS" : "Android"]
1885
- })
1886
- }),
1887
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: release.bundle_id && patchCountsByBundleId[release.bundle_id] === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1888
- className: "text-sm text-muted-foreground",
1889
- children: "Checking"
1890
- }) : release.bundle_id && patchCountsByBundleId[release.bundle_id] > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Badge, {
1891
- variant: "secondary",
1892
- children: [
1893
- patchCountsByBundleId[release.bundle_id],
1894
- " ",
1895
- patchCountsByBundleId[release.bundle_id] === 1 ? "patch" : "patches"
1896
- ]
1897
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1898
- className: "text-muted-foreground",
1899
- children: "-"
1900
- }) }),
1901
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: release.target_app_version ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1902
- className: "flex items-center gap-2",
1903
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Package, { className: "size-4 shrink-0 text-muted-foreground" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1904
- className: "font-medium",
1905
- children: release.target_app_version
1906
- })]
1907
- }) : release.fingerprint_hash ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1908
- className: "flex min-w-[160px] items-center gap-2",
1909
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FingerprintPattern, { className: "size-4 shrink-0 text-muted-foreground" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HashValueDisplay, {
1910
- maxLength: 12,
1911
- value: release.fingerprint_hash
1912
- })]
1913
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1914
- className: "text-muted-foreground",
1915
- children: "-"
1916
- }) }),
1917
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1918
- className: "flex items-center",
1919
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EnabledStatusIcon, { enabled: release.enabled }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1920
- className: "sr-only",
1921
- children: release.enabled ? "Enabled" : "Disabled"
1922
- })]
1923
- }) }),
1924
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1925
- className: "flex items-center",
1926
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EnabledStatusIcon, {
1927
- enabled: release.should_force_update,
1928
- falseIcon: "minus"
1929
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1930
- className: "sr-only",
1931
- children: release.should_force_update ? "Required" : "Optional"
1932
- })]
1933
- }) }),
1934
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageBadge, { percentage: release.rollout_cohort_count / 10 }) }),
1935
- featureColumns.map(({ Cell, feature }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cell, {
1936
- releaseId: release.id,
1937
- releases: slotReleases
1938
- }) }, feature)),
1939
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1940
- className: "text-sm text-muted-foreground",
1941
- title: release.message ?? void 0,
1942
- children: release.message || "-"
1943
- }),
1944
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1945
- className: "whitespace-nowrap text-xs text-muted-foreground",
1946
- title: dateFormatter.format(release.created_at_ms),
1947
- children: tableDateFormatter.format(release.created_at_ms)
1948
- })
1949
- ]
1950
- }), isExpanded && release.bundle_id ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableRow, {
1951
- className: "hover:bg-transparent",
1952
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1953
- className: "border-t-0 p-0",
1954
- colSpan: columnCount,
1955
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseBundleChildrenPanel, {
1956
- onDetailClick: openChildBundle,
1957
- panelId,
1958
- release
1959
- })
1960
- })
1961
- }) : null] }, release.id);
1962
- }), !releasesQuery.isPending && releases.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1963
- className: "h-40 text-center text-muted-foreground",
1964
- colSpan: columnCount,
1965
- children: onLaterPage ? "No more bundles on this side." : hasReleaseFilters(search) ? "No bundles match these filters." : "No bundles yet. Deploy an update to see it here."
1966
- }) }) : null] })]
1967
- })
1968
- }), !releasesQuery.isError && !releasesQuery.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("nav", {
1969
- "aria-label": "Bundle pagination",
1970
- className: "flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between",
1971
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
1972
- className: "text-xs font-medium text-muted-foreground",
1973
- children: [
1974
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1975
- className: "text-foreground",
1976
- children: releases.length
1977
- }),
1978
- " ",
1979
- releases.length === 1 ? "entry" : "entries",
1980
- ", newest first"
1981
- ]
1982
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1983
- className: "flex flex-wrap items-center gap-3 sm:justify-end",
1984
- children: [
1985
- onLaterPage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
1986
- className: buttonVariants({
1987
- className: "h-8 flex-1 px-3 text-xs sm:flex-none",
1988
- size: "sm",
1989
- variant: "ghost"
1990
- }),
1991
- search: newestSearch,
1992
- to: "/",
1993
- children: "Newest"
1994
- }) : null,
1995
- previousSearch ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
1996
- className: buttonVariants({
1997
- className: "h-8 flex-1 px-3 text-xs sm:flex-none",
1998
- size: "sm",
1999
- variant: "outline"
2000
- }),
2001
- search: previousSearch,
2002
- to: "/",
2003
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeft, { "data-icon": "inline-start" }), "Previous"]
2004
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
2005
- className: "h-8 flex-1 px-3 text-xs sm:flex-none",
2006
- disabled: true,
2007
- size: "sm",
2008
- variant: "outline",
2009
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeft, { "data-icon": "inline-start" }), "Previous"]
2010
- }),
2011
- nextSearch ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
2012
- className: buttonVariants({
2013
- className: "h-8 flex-1 px-3 text-xs sm:flex-none",
2014
- size: "sm",
2015
- variant: "outline"
2016
- }),
2017
- search: nextSearch,
2018
- to: "/",
2019
- children: ["Next", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, { "data-icon": "inline-end" })]
2020
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
2021
- className: "h-8 flex-1 px-3 text-xs sm:flex-none",
2022
- disabled: true,
2023
- size: "sm",
2024
- variant: "outline",
2025
- children: ["Next", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, { "data-icon": "inline-end" })]
2026
- })
2027
- ]
2028
- })]
1942
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFrame, { children: isMobile ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1943
+ className: "h-full overflow-y-auto",
1944
+ children: releasesQuery.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataCardSkeletons, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [releases.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataCardsEmpty, { children: empty }) : null, entries.map((entry) => entry.kind === "row" ? renderCard(entry.row, pageContext) : fold(entry, renderCard))] })
1945
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTable, {
1946
+ rowGroups: true,
1947
+ header: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1948
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "ID" }),
1949
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Channel" }),
1950
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Platform" }),
1951
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Patches" }),
1952
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Target" }),
1953
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Enabled" }),
1954
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Force update" }),
1955
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Rollout" }),
1956
+ featureColumns.map(({ feature, label }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: label }, feature)),
1957
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Message" }),
1958
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Created" })
1959
+ ] }),
1960
+ children: releasesQuery.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableBody, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableSkeletonRows, { columns: columnCount }) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [releases.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableBody, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFullRow, {
1961
+ columns: columnCount,
1962
+ children: empty
1963
+ }) }) : null, groupsOf(entries).map((group) => group.kind === "fold" ? fold(group.fold, renderRow) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableBody, { children: group.rows.map((release) => renderRow(release, pageContext)) }, `rows-${group.rows[0].id}`))] })
1964
+ }) }), !releasesQuery.isError && !releasesQuery.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTablePagination, {
1965
+ count: releases.length,
1966
+ folded: {
1967
+ ...foldedTotal(entries),
1968
+ label: "unreachable"
1969
+ },
1970
+ label: "Bundle pagination",
1971
+ noun: ["bundle", "bundles"],
1972
+ pending: releasesQuery.isPlaceholderData,
1973
+ newest: onLaterPage ? {
1974
+ search: newestSearch,
1975
+ to: "/"
1976
+ } : void 0,
1977
+ next: nextSearch ? {
1978
+ search: nextSearch,
1979
+ to: "/"
1980
+ } : void 0,
1981
+ previous: previousSearch ? {
1982
+ search: previousSearch,
1983
+ to: "/"
1984
+ } : void 0
2029
1985
  }) : null]
2030
1986
  }),
2031
1987
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReleaseEditorSheet, {