@hot-updater/console 1.2.0-rc.49 → 1.2.0-rc.50

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 (155) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-BFcW2mlI.js → -native-builds-search-6aptbS4G.js} +1 -1
  3. package/.output/public/assets/{ChannelPicker-Ck8vBdjI.js → ChannelPicker-DPR-7lqV.js} +1 -1
  4. package/.output/public/assets/{EventDetails-BGglj3Ap.js → EventDetails-LQ8ejbsd.js} +1 -1
  5. package/.output/public/assets/FoldedRows-1NvB9gAS.js +1 -0
  6. package/.output/public/assets/HashValueDisplay-DTSMSH9O.js +1 -0
  7. package/.output/public/assets/IosInstall-BRuSakxm.js +1 -0
  8. package/.output/public/assets/{RelativeTime-5ZP9WlQ6.js → RelativeTime-m-FKh1Jb.js} +1 -1
  9. package/.output/public/assets/{RolloutPercentageBadge-DCtG7c1o.js → RolloutPercentageBadge-DF4EeZIJ.js} +1 -1
  10. package/.output/public/assets/RowReason-BvIxbpPP.js +1 -0
  11. package/.output/public/assets/{SandboxBadge-PM92jCk6.js → SandboxBadge-DPmJn40v.js} +1 -1
  12. package/.output/public/assets/{TargetDisplay-DG_I3qln.js → TargetDisplay-Ctuz3qIp.js} +1 -1
  13. package/.output/public/assets/api-znPyglTl.js +1 -0
  14. package/.output/public/assets/{constants-C5gi7fdZ.js → constants-yj-e3ahf.js} +1 -1
  15. package/.output/public/assets/{index-BHt1lVdq.js → index-oTXLdUR-.js} +2 -2
  16. package/.output/public/assets/{insights-nnyldFdS.js → insights-BL6Z8zFv.js} +2 -2
  17. package/.output/public/assets/{insights-CSHfYaU4.js → insights-BMjBMtJU.js} +2 -2
  18. package/.output/public/assets/{insights-search-CfbhmuFL.js → insights-search-B4NkHGeC.js} +1 -1
  19. package/.output/public/assets/{insights_.distribution-CzuSRyqb.js → insights_.distribution-Br_CW9s9.js} +2 -2
  20. package/.output/public/assets/{insights_.distribution-7l1cAZVo.js → insights_.distribution-C4E-JuVI.js} +1 -1
  21. package/.output/public/assets/{installations-BHWbfpbI.js → installations-Cjx0648C.js} +1 -1
  22. package/.output/public/assets/{installations-DlTdbNgY.js → installations-m1v6oE-2.js} +2 -2
  23. package/.output/public/assets/native-builds-B0zJ4wjg.js +1 -0
  24. package/.output/public/assets/native-builds-BC0sjxPC.js +2 -0
  25. package/.output/public/assets/{native-builds-zwqucwx2.js → native-builds-B_pQ4D5H.js} +1 -1
  26. package/.output/public/assets/native-builds_._buildId-CSyC7YAA.js +1 -0
  27. package/.output/public/assets/native-builds_._buildId-GPlkI_2m.js +2 -0
  28. package/.output/public/assets/{native-builds_.devices-Bet7RN0x.js → native-builds_.devices-Cox001IR.js} +2 -2
  29. package/.output/public/assets/native-builds_.devices-DAW19hcQ.js +1 -0
  30. package/.output/public/assets/{remote-config-C7grLPjp.js → remote-config-BCQHNGRY.js} +1 -1
  31. package/.output/public/assets/{remote-config-DfUXmtPZ.js → remote-config-CDlB7JK8.js} +3 -3
  32. package/.output/public/assets/routes-C7Pv3Cfg.js +1 -0
  33. package/.output/public/assets/{routes-C047Z4F3.js → routes-JJGRGqsf.js} +2 -2
  34. package/.output/public/assets/styles-D5kpHu-Z.css +2 -0
  35. package/.output/server/{__23tanstack-start-server-fn-resolver-Bf0cbPMx.mjs → __23tanstack-start-server-fn-resolver-DY-niJR4.mjs} +58 -58
  36. package/.output/server/_libs/_.mjs +1 -1
  37. package/.output/server/_libs/lucide-react.mjs +17 -1
  38. package/.output/server/_ssr/{-native-builds-search-Bwt8tQzp.mjs → -native-builds-search-D10dMZzL.mjs} +10 -3
  39. package/.output/server/_ssr/{BundleIdDisplay-4XylLb5Q.mjs → BundleIdDisplay-CGdSiouM.mjs} +2 -2
  40. package/.output/server/_ssr/{ChannelPicker-CqXiOROk.mjs → ChannelPicker-J5HfKxSS.mjs} +6 -6
  41. package/.output/server/_ssr/{ConsoleFeatureUnavailable-DVFHeS3i.mjs → ConsoleFeatureUnavailable-C52o4oew.mjs} +6 -6
  42. package/.output/server/_ssr/{EventDetails-LgY08-Qa.mjs → EventDetails-CDLSkVNA.mjs} +7 -7
  43. package/.output/server/_ssr/{RowReason-BPvZzTjP.mjs → FoldedRows-CrRYEVkd.mjs} +6 -40
  44. package/.output/server/_ssr/HashValueDisplay-BrT2wgxk.mjs +65 -0
  45. package/.output/server/_ssr/{InsightsPageHeader-DO-fpFxk.mjs → InsightsPageHeader-DVrudLMJ.mjs} +6 -6
  46. package/.output/server/_ssr/{IosInstall-DlaWL-KQ.mjs → IosInstall-DcKlZU_q.mjs} +30 -14
  47. package/.output/server/_ssr/{NativeBuildsNav-DqYfoHCs.mjs → NativeBuildsNav-BC1WIQ1W.mjs} +3 -3
  48. package/.output/server/_ssr/{NotFoundPage-CwzO3kTD.mjs → NotFoundPage-CEhZtcst.mjs} +2 -2
  49. package/.output/server/_ssr/{QrCode-DdxxNZ2I.mjs → QrCode-Dj9BKV3l.mjs} +2 -2
  50. package/.output/server/_ssr/{RelativeTime-UNp6jyTX.mjs → RelativeTime-Dgbh4UPb.mjs} +4 -4
  51. package/.output/server/_ssr/{RolloutPercentageBadge-DoDPCp5t.mjs → RolloutPercentageBadge-BYEDUW1d.mjs} +3 -3
  52. package/.output/server/_ssr/RowReason-BweNBWkA.mjs +59 -0
  53. package/.output/server/_ssr/{SandboxBadge-BhyoXSA9.mjs → SandboxBadge-O8-kbXAw.mjs} +2 -2
  54. package/.output/server/_ssr/{TargetDisplay-DIO6xo6c.mjs → TargetDisplay-D3JAXwcF.mjs} +3 -3
  55. package/.output/server/_ssr/{alert-dialog-CNTK3_5o.mjs → alert-dialog-CxEcyUb6.mjs} +1 -1
  56. package/.output/server/_ssr/{api-DlOLh3f5.mjs → api-IIqxWeDx.mjs} +16 -6
  57. package/.output/server/_ssr/{api-keys-BnxQYO4V.mjs → api-keys-CYefExfc.mjs} +2 -2
  58. package/.output/server/_ssr/{api-keys-rpc-OKrIM3PZ.mjs → api-keys-rpc-qkGQ3Sp3.mjs} +3 -3
  59. package/.output/server/_ssr/{api-keys-DrEgzgio.mjs → api-keys-wFak2vKN.mjs} +10 -10
  60. package/.output/server/_ssr/{api-rpc-Bm9iTKOj.mjs → api-rpc-3NKc545A.mjs} +12 -12
  61. package/.output/server/_ssr/{auth-rpc-BNnd4K7W.mjs → auth-rpc-PCSJzNJf.mjs} +4 -4
  62. package/.output/server/_ssr/{auth.server-D92eE7EP.mjs → auth.server-NGj7G3bq.mjs} +227 -91
  63. package/.output/server/_ssr/{badge-D8uuNsMF.mjs → badge-CxSJ-pjU.mjs} +1 -1
  64. package/.output/server/_ssr/{card-BBnWNRdd.mjs → card-BDXDcrk_.mjs} +1 -1
  65. package/.output/server/_ssr/{config.server-Cwk-r0zt.mjs → config.server-CwUGPk-F.mjs} +3 -3
  66. package/.output/server/_ssr/{console-access-CZzatEz1.mjs → console-access-BOt-Xxd7.mjs} +2 -2
  67. package/.output/server/_ssr/{console-features-api-B2p2oFYe.mjs → console-features-api-Dw_Tktev.mjs} +3 -3
  68. package/.output/server/_ssr/{console-features-rpc-CbPZspBL.mjs → console-features-rpc-D8VFHwYj.mjs} +3 -3
  69. package/.output/server/_ssr/{constants-BjsJZqaU.mjs → constants-D-2jpCiJ.mjs} +3 -2
  70. package/.output/server/_ssr/{dialog-BZKA7-zO.mjs → dialog-CJ4zMagm.mjs} +1 -1
  71. package/.output/server/_ssr/{empty-BT-jlLF9.mjs → empty-DYy36pwa.mjs} +2 -2
  72. package/.output/server/_ssr/{field-ChzggDmB.mjs → field-MI8oNc5n.mjs} +2 -2
  73. package/.output/server/_ssr/{input-group-DquNSLZ7.mjs → input-group-Bf7wHa21.mjs} +1 -1
  74. package/.output/server/_ssr/{insights-DmfaQfHu.mjs → insights-CKTR62Ox.mjs} +5 -5
  75. package/.output/server/_ssr/{insights-B7n8qIG0.mjs → insights-CbGG5htV.mjs} +2 -2
  76. package/.output/server/_ssr/{insights-api-0ET8QzxE.mjs → insights-api-CqjIxe1A.mjs} +3 -3
  77. package/.output/server/_ssr/{insights-BoNBNA6O.mjs → insights-b3XeQlzF.mjs} +38 -33
  78. package/.output/server/_ssr/{insights-failures-rpc-ClPcZpm7.mjs → insights-failures-rpc-fmWHkLhL.mjs} +5 -5
  79. package/.output/server/_ssr/{insights-recovery-rpc-B5Kji_LQ.mjs → insights-recovery-rpc-BpwoS9XL.mjs} +3 -3
  80. package/.output/server/_ssr/{insights-rpc-CuXt4Iry.mjs → insights-rpc-qwXzuBUQ.mjs} +3 -3
  81. package/.output/server/_ssr/{insights-search-CFhH0iTR.mjs → insights-search-B_8PizlM.mjs} +2 -2
  82. package/.output/server/_ssr/{insights-usage-rpc-Hug5SC2U.mjs → insights-usage-rpc-Cbg82l2g.mjs} +3 -3
  83. package/.output/server/_ssr/{insights-usage-rpc-BlSD38zW.mjs → insights-usage-rpc-D8lgk1Sk.mjs} +3 -3
  84. package/.output/server/_ssr/{insights_.distribution-_6B2Vl-V.mjs → insights_.distribution--XTBM-oT.mjs} +14 -14
  85. package/.output/server/_ssr/{insights_.distribution-D5pVQCzq.mjs → insights_.distribution-DTaKryjw.mjs} +2 -2
  86. package/.output/server/_ssr/{insights_.distribution-CAUDvrPR.mjs → insights_.distribution-Ed2vqrwP.mjs} +5 -5
  87. package/.output/server/_ssr/{installations-oWB7DHX_.mjs → installations-Ce_9dNq0.mjs} +2 -2
  88. package/.output/server/_ssr/{installations-DYi3XG0X.mjs → installations-DyfuFp3L.mjs} +12 -12
  89. package/.output/server/_ssr/{installations-B6i9chek.mjs → installations-W8W7AYwn.mjs} +4 -4
  90. package/.output/server/_ssr/{ios-devices-rpc-DSnkNF0c.mjs → ios-devices-rpc-5kZM1bgU.mjs} +22 -10
  91. package/.output/server/_ssr/{iosDeviceCookie-EZE63jbQ.mjs → iosDeviceCookie-BTfPOUhS.mjs} +4 -4
  92. package/.output/server/_ssr/{iosDeviceProfile-Dot9sOca.mjs → iosDeviceProfile-BAoo32s_.mjs} +5 -5
  93. package/.output/server/_ssr/{iosDevices-BxINvCep.mjs → iosDevices-DuNmS3td.mjs} +23 -4
  94. package/.output/server/_ssr/{native-artifact-D4ZISXRZ.mjs → native-artifact-0tXDLTsd.mjs} +1 -1
  95. package/.output/server/_ssr/{native-builds-_Idh0Vht.mjs → native-builds-1s5DIHa2.mjs} +3 -3
  96. package/.output/server/_ssr/{native-builds-CGlRqH0W.mjs → native-builds-DEyFHKDa.mjs} +16 -16
  97. package/.output/server/_ssr/{native-builds_._buildId-BopDAnUl.mjs → native-builds_._buildId-ElCXKaXI.mjs} +33 -21
  98. package/.output/server/_ssr/{native-builds_._buildId-DUIgNSbF.mjs → native-builds_._buildId-mJ8i0pL8.mjs} +3 -3
  99. package/.output/server/_ssr/{native-builds_.devices-CT0T4ZEH.mjs → native-builds_.devices-DNWZLCra.mjs} +56 -18
  100. package/.output/server/_ssr/{native-builds_.devices-CJYmhOte.mjs → native-builds_.devices-Dz8b48Fo.mjs} +3 -3
  101. package/.output/server/_ssr/{nativeBuildDownloadLink-BlSWR9Ly.mjs → nativeBuildDownloadLink-D8Se_CCi.mjs} +2 -2
  102. package/.output/server/_ssr/{nativeBuildInstall-CzTNaHHA.mjs → nativeBuildInstall-DemC_4Zc.mjs} +7 -7
  103. package/.output/server/_ssr/{nativeBuilds-S1_ZcH6M.mjs → nativeBuilds-BFSeuC75.mjs} +21 -5
  104. package/.output/server/_ssr/{plistText-DkzlCfPI.mjs → plistText-BORUpyEb.mjs} +1 -1
  105. package/.output/server/_ssr/{publicConsoleBase-wTKw3_iB.mjs → publicConsoleBase-C3sNbafy.mjs} +1 -1
  106. package/.output/server/_ssr/{release-adoption-rpc-BZekkMVs.mjs → release-adoption-rpc-1mKibOdV.mjs} +5 -5
  107. package/.output/server/_ssr/{releaseCatalogCompiler-CJ2Shida.mjs → releaseCatalogCompiler-CuL3ptgg.mjs} +2 -2
  108. package/.output/server/_ssr/{remote-config-DzGJ47fS.mjs → remote-config-C_HNYPZ_.mjs} +18 -18
  109. package/.output/server/_ssr/{remote-config-qQiWc9F0.mjs → remote-config-D2Cohnwn.mjs} +2 -2
  110. package/.output/server/_ssr/{remote-config-BJQyrUEJ.mjs → remote-config-q9fegj-G.mjs} +2 -2
  111. package/.output/server/_ssr/{remote-config-rpc-krZrX9D0.mjs → remote-config-rpc-6hfHFrO6.mjs} +3 -3
  112. package/.output/server/_ssr/{router-BObHTWLX.mjs → router-DODxASKG.mjs} +35 -35
  113. package/.output/server/_ssr/{routes-BcrSXX1Y.mjs → routes-BJjTUNSe.mjs} +42 -23
  114. package/.output/server/_ssr/{routes-xU4hQEnz.mjs → routes-C-nYThl0.mjs} +10 -10
  115. package/.output/server/_ssr/{schema-migration-rpc-BiIhD-p1.mjs → schema-migration-rpc-C31JquTn.mjs} +4 -4
  116. package/.output/server/_ssr/{select-TmlKL8E0.mjs → select-CjACvu9s.mjs} +2 -2
  117. package/.output/server/_ssr/{server-CNUDX2vc.mjs → server-Dyw2qgSR.mjs} +3 -3
  118. package/.output/server/_ssr/{sidebar-rpA5D4b1.mjs → sidebar-DQkRAO_e.mjs} +2 -2
  119. package/.output/server/_ssr/ssr.mjs +1 -1
  120. package/.output/server/_ssr/{switch-CBNhbz-3.mjs → switch-DZJSRVl3.mjs} +2 -2
  121. package/.output/server/_ssr/{table-CrXl2hfM.mjs → table-BA-6GQFs.mjs} +1 -1
  122. package/.output/server/_ssr/{tabs-C9cbWq4e.mjs → tabs-CtB3PIts.mjs} +2 -2
  123. package/.output/server/_ssr/{updateFailures-BwDwIoNu.mjs → updateFailures-DcCONz23.mjs} +6 -3
  124. package/.output/server/{_tanstack-start-manifest_v-Dm__dcXw.mjs → _tanstack-start-manifest_v-Bfv6fYk6.mjs} +59 -59
  125. package/.output/server/index.mjs +240 -240
  126. package/package.json +7 -7
  127. package/src/components/HashValueDisplay.tsx +21 -5
  128. package/src/components/RowReason.tsx +8 -1
  129. package/src/components/features/bundles/BundleMetadata.tsx +21 -0
  130. package/src/components/features/insights/UpdateFailures.tsx +35 -10
  131. package/src/components/features/native-builds/IosDevicesPage.tsx +47 -2
  132. package/src/components/features/native-builds/IpaDevicesCard.tsx +22 -10
  133. package/src/lib/api.ts +11 -0
  134. package/src/lib/constants.ts +3 -0
  135. package/src/lib/ios-devices-api.ts +21 -7
  136. package/src/lib/ios-devices-rpc.ts +37 -10
  137. package/src/lib/schema-migration-rpc.ts +1 -1
  138. package/src/lib/server/iosDevices.ts +40 -1
  139. package/src/lib/server/nativeBuilds.ts +1 -1
  140. package/src/lib/server/updateFailures.ts +6 -1
  141. package/src/routes/-native-builds-search.ts +18 -9
  142. package/.output/public/assets/ChannelBadge-BgVCJfJs.js +0 -1
  143. package/.output/public/assets/HashValueDisplay-DvwvQchI.js +0 -1
  144. package/.output/public/assets/IosInstall-DvV3pRKv.js +0 -1
  145. package/.output/public/assets/RowReason-CXMCJ-Jc.js +0 -1
  146. package/.output/public/assets/api-B-1SpJeB.js +0 -1
  147. package/.output/public/assets/native-builds-DDTZlyLe.js +0 -1
  148. package/.output/public/assets/native-builds-DhwYkLmx.js +0 -2
  149. package/.output/public/assets/native-builds_._buildId-2cLz1YM1.js +0 -2
  150. package/.output/public/assets/native-builds_._buildId-C4ZAkDN_.js +0 -1
  151. package/.output/public/assets/native-builds_.devices-C0ebsrcu.js +0 -1
  152. package/.output/public/assets/routes-BHP1sMv1.js +0 -1
  153. package/.output/public/assets/styles-CiSUsSSk.css +0 -2
  154. package/.output/server/_ssr/ChannelBadge-CNu_3ciH.mjs +0 -23
  155. package/.output/server/_ssr/HashValueDisplay-DJ4KApnA.mjs +0 -55
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/console",
3
3
  "type": "module",
4
- "version": "1.2.0-rc.49",
4
+ "version": "1.2.0-rc.50",
5
5
  "files": [
6
6
  ".output",
7
7
  "lib",
@@ -59,10 +59,10 @@
59
59
  "tw-animate-css": "^1.4.0",
60
60
  "uqr": "^0.1.3",
61
61
  "verkit": "0.4.0",
62
- "@hot-updater/bsdiff": "1.2.0-rc.49",
63
- "@hot-updater/plugin-core": "1.2.0-rc.49",
64
- "@hot-updater/protocol": "1.2.0-rc.49",
65
- "@hot-updater/server": "1.2.0-rc.49"
62
+ "@hot-updater/bsdiff": "1.2.0-rc.50",
63
+ "@hot-updater/server": "1.2.0-rc.50",
64
+ "@hot-updater/protocol": "1.2.0-rc.50",
65
+ "@hot-updater/plugin-core": "1.2.0-rc.50"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@tanstack/devtools-vite": "^0.6.0",
@@ -86,8 +86,8 @@
86
86
  "vite-tsconfig-paths": "^6.1.1",
87
87
  "vitest": "4.1.4",
88
88
  "web-vitals": "^5.1.0",
89
- "@hot-updater/cli-tools": "1.2.0-rc.49",
90
- "@hot-updater/mock": "1.2.0-rc.49"
89
+ "@hot-updater/cli-tools": "1.2.0-rc.50",
90
+ "@hot-updater/mock": "1.2.0-rc.50"
91
91
  },
92
92
  "description": "React Native OTA solution for self-hosted",
93
93
  "license": "SEE LICENSE IN LICENSE",
@@ -1,3 +1,4 @@
1
+ import { useState, type ReactNode } from "react";
1
2
  import { toast } from "sonner";
2
3
 
3
4
  import { cn } from "@/lib/utils";
@@ -11,6 +12,8 @@ interface HashValueDisplayProps {
11
12
  maxLength?: number;
12
13
  className?: string;
13
14
  buttonClassName?: string;
15
+ /** Shown under the value in the tooltip, which then also opens on click. */
16
+ hint?: ReactNode;
14
17
  }
15
18
 
16
19
  export const shortenIdentifier = (value: string, maxLength = 12) =>
@@ -24,7 +27,9 @@ export function HashValueDisplay({
24
27
  maxLength = 12,
25
28
  className,
26
29
  buttonClassName,
30
+ hint,
27
31
  }: HashValueDisplayProps) {
32
+ const [open, setOpen] = useState(false);
28
33
  const isTruncated = display !== value || display.length > maxLength;
29
34
  const truncated = shortenIdentifier(display, maxLength);
30
35
 
@@ -42,6 +47,7 @@ export function HashValueDisplay({
42
47
  const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {
43
48
  event.preventDefault();
44
49
  event.stopPropagation();
50
+ if (hint) setOpen(true);
45
51
  void copyValue();
46
52
  };
47
53
 
@@ -66,8 +72,9 @@ export function HashValueDisplay({
66
72
  );
67
73
 
68
74
  return (
69
- <Tooltip>
75
+ <Tooltip open={open} onOpenChange={setOpen}>
70
76
  <TooltipTrigger
77
+ closeOnClick={!hint}
71
78
  render={
72
79
  <button
73
80
  type="button"
@@ -87,10 +94,19 @@ export function HashValueDisplay({
87
94
  >
88
95
  {content}
89
96
  </TooltipTrigger>
90
- <TooltipContent hidden={!isTruncated}>
91
- <p translate="no" className="break-all font-mono text-xs tabular-nums">
92
- {value}
93
- </p>
97
+ <TooltipContent
98
+ className={hint ? "max-w-64 flex-col items-start" : undefined}
99
+ hidden={!isTruncated && !hint}
100
+ >
101
+ {isTruncated ? (
102
+ <p
103
+ translate="no"
104
+ className="break-all font-mono text-xs tabular-nums"
105
+ >
106
+ {value}
107
+ </p>
108
+ ) : null}
109
+ {hint ? <p>{hint}</p> : null}
94
110
  </TooltipContent>
95
111
  </Tooltip>
96
112
  );
@@ -6,6 +6,7 @@ import {
6
6
  TooltipContent,
7
7
  TooltipTrigger,
8
8
  } from "@/components/ui/tooltip";
9
+ import { cn } from "@/lib/utils";
9
10
 
10
11
  /**
11
12
  * A quiet word on a row a list shades, such as "Older" or "Unreachable",
@@ -16,12 +17,15 @@ import {
16
17
  export function RowReason({
17
18
  icon: Icon,
18
19
  children,
20
+ className,
19
21
  label,
20
22
  reason,
21
23
  }: {
22
24
  readonly icon: LucideIcon;
23
25
  /** The word the row shows. */
24
26
  readonly children: string;
27
+ /** Classes for the word, such as the size of the text it stands in. */
28
+ readonly className?: string;
25
29
  /** The word and its reason, as a screen reader names the control. */
26
30
  readonly label: string;
27
31
  /** The reason, as its tooltip says it. */
@@ -34,7 +38,10 @@ export function RowReason({
34
38
  <TooltipTrigger
35
39
  aria-describedby={open ? `${id}-reason` : undefined}
36
40
  aria-label={label}
37
- className="relative inline-flex shrink-0 items-center gap-1 rounded-sm text-xs text-muted-foreground transition-colors after:absolute after:-inset-x-2 after:-inset-y-3.5 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none motion-reduce:transition-none sm:after:hidden"
41
+ className={cn(
42
+ "relative inline-flex shrink-0 items-center gap-1 rounded-sm text-xs text-muted-foreground transition-colors after:absolute after:-inset-x-2 after:-inset-y-3.5 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none motion-reduce:transition-none sm:after:hidden",
43
+ className,
44
+ )}
38
45
  closeOnClick={false}
39
46
  id={id}
40
47
  onClick={() => setOpen((value) => !value)}
@@ -5,6 +5,7 @@ import { ExternalLink } from "lucide-react";
5
5
  import { HashValueDisplay } from "@/components/HashValueDisplay";
6
6
  import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
7
7
  import { useConfigQuery } from "@/lib/api";
8
+ import { CONSOLE_GIT_URL_GUIDE_URL } from "@/lib/constants";
8
9
  import { getCommitUrl } from "@/lib/git";
9
10
 
10
11
  interface BundleMetadataProps {
@@ -29,6 +30,10 @@ export function BundleMetadata({ bundle, release }: BundleMetadataProps) {
29
30
  bundle?.gitCommitHash && isFetched
30
31
  ? getCommitUrl(configData?.console.gitUrl, bundle.gitCommitHash)
31
32
  : null;
33
+ const showGitUrlHint =
34
+ isFetched &&
35
+ Boolean(bundle?.gitCommitHash) &&
36
+ !configData?.console.gitUrl?.trim();
32
37
  const target =
33
38
  release.strategy === "APP_VERSION"
34
39
  ? release.target_app_version
@@ -68,6 +73,22 @@ export function BundleMetadata({ bundle, release }: BundleMetadataProps) {
68
73
  <div className="flex items-center justify-start gap-1 sm:justify-end">
69
74
  <HashValueDisplay
70
75
  className={gitCommitUrl ? "text-primary" : undefined}
76
+ hint={
77
+ showGitUrlHint ? (
78
+ <>
79
+ Set <code className="font-mono">console.gitUrl</code>{" "}
80
+ in your config to open commits in your repository.{" "}
81
+ <a
82
+ className="font-medium underline underline-offset-2"
83
+ href={CONSOLE_GIT_URL_GUIDE_URL}
84
+ rel="noopener noreferrer"
85
+ target="_blank"
86
+ >
87
+ Learn more
88
+ </a>
89
+ </>
90
+ ) : undefined
91
+ }
71
92
  maxLength={12}
72
93
  value={bundle.gitCommitHash}
73
94
  />
@@ -52,6 +52,7 @@ function FailureSummary({
52
52
  failures,
53
53
  installations,
54
54
  previous,
55
+ atLeast,
55
56
  children,
56
57
  }: {
57
58
  readonly id: string;
@@ -61,6 +62,8 @@ function FailureSummary({
61
62
  /** What the rate is a share of. */
62
63
  readonly of: string;
63
64
  readonly failures: number;
65
+ /** Failures, and the rate when it counts them, are at least what they say. */
66
+ readonly atLeast?: { readonly rate: boolean };
64
67
  readonly installations: number;
65
68
  readonly previous?: {
66
69
  readonly rate: number | null;
@@ -78,6 +81,7 @@ function FailureSummary({
78
81
  <InfoTooltip label={`About ${title.toLowerCase()}`}>{info}</InfoTooltip>
79
82
  </h3>
80
83
  <p className="text-3xl font-semibold tracking-tight tabular-nums">
84
+ {atLeast?.rate && rate !== null ? "≥" : null}
81
85
  <Rate value={rate} />
82
86
  </p>
83
87
  <p className="text-xs text-muted-foreground">{of}</p>
@@ -89,6 +93,7 @@ function FailureSummary({
89
93
  />
90
94
  ) : null}
91
95
  <p className="mt-2 text-sm text-muted-foreground tabular-nums">
96
+ {atLeast ? "≥" : null}
92
97
  {failures.toLocaleString()} {failures === 1 ? "failure" : "failures"}
93
98
  {" · "}
94
99
  <EstimatedCount value={installations} />{" "}
@@ -147,8 +152,10 @@ function FailureRow({
147
152
  total,
148
153
  }: {
149
154
  readonly failure: InsightsFailureBreakdown;
150
- readonly total: number;
155
+ /** The breakdown's total; null when it holds only the rows read, so its counts are at least what they say. */
156
+ readonly total: number | null;
151
157
  }) {
158
+ const atLeast = total === null ? "≥" : "";
152
159
  const label = `${failureStageLabel(failure.stage)} · ${failureReasonLabel(failure.reason)}`;
153
160
  return (
154
161
  <TableRow className="[&>td]:px-2 [&>td]:py-3 [&>td]:align-top sm:[&>td]:px-4">
@@ -188,6 +195,7 @@ function FailureRow({
188
195
  : parts.join(" · ")}
189
196
  </span>
190
197
  <span className="shrink-0 font-medium tabular-nums">
198
+ {atLeast}
191
199
  {detail.events.toLocaleString()}
192
200
  </span>
193
201
  </li>
@@ -198,14 +206,17 @@ function FailureRow({
198
206
  </TableCell>
199
207
  <TableCell className="text-right tabular-nums">
200
208
  <span className="inline-flex min-h-11 items-center text-sm font-medium">
209
+ {atLeast}
201
210
  {failure.events.toLocaleString()}
202
211
  </span>
203
212
  </TableCell>
204
- <TableCell className="text-right tabular-nums text-muted-foreground">
205
- <span className="inline-flex min-h-11 items-center text-sm">
206
- {share(failure.events, total)}
207
- </span>
208
- </TableCell>
213
+ {total === null ? null : (
214
+ <TableCell className="text-right tabular-nums text-muted-foreground">
215
+ <span className="inline-flex min-h-11 items-center text-sm">
216
+ {share(failure.events, total)}
217
+ </span>
218
+ </TableCell>
219
+ )}
209
220
  </TableRow>
210
221
  );
211
222
  }
@@ -223,6 +234,8 @@ function FailuresReport({
223
234
  .filter(({ reason }) => reason === "unknown")
224
235
  .reduce((sum, { events }) => sum + events, 0);
225
236
  const patchAttempts = report.patchDownloads + report.patchFallbacks;
237
+ // An hour read only in part: its failures count in part, installations in full.
238
+ const capped = (report.cappedHours?.length ?? 0) > 0;
226
239
  return (
227
240
  <div className="flex flex-col gap-8">
228
241
  <div className={cn("grid gap-6", report.checks && "sm:grid-cols-2")}>
@@ -234,6 +247,7 @@ function FailuresReport({
234
247
  of="of update attempts failed"
235
248
  failures={report.failedUpdates}
236
249
  installations={report.failedInstallations}
250
+ atLeast={capped ? { rate: true } : undefined}
237
251
  previous={
238
252
  report.previous && {
239
253
  rate: report.previous.attemptRate,
@@ -258,6 +272,7 @@ function FailuresReport({
258
272
  of="of active installations had a check fail"
259
273
  failures={report.checks.failures}
260
274
  installations={report.checks.failedInstallations}
275
+ atLeast={capped ? { rate: false } : undefined}
261
276
  previous={
262
277
  report.previous && {
263
278
  rate: report.previous.checkRate,
@@ -289,7 +304,9 @@ function FailuresReport({
289
304
  ) : null}
290
305
  {breakdown.length === 0 ? (
291
306
  <p className="text-sm text-muted-foreground">
292
- No update failures in this period.
307
+ {capped
308
+ ? "None among the failures read: some hours held more failure kinds than are read."
309
+ : "No update failures in this period."}
293
310
  </p>
294
311
  ) : (
295
312
  <Table aria-label="Failures by stage and reason">
@@ -299,7 +316,11 @@ function FailuresReport({
299
316
  <TableHead className="w-16 text-right sm:w-24">
300
317
  Reports
301
318
  </TableHead>
302
- <TableHead className="w-16 text-right sm:w-24">Share</TableHead>
319
+ {capped ? null : (
320
+ <TableHead className="w-16 text-right sm:w-24">
321
+ Share
322
+ </TableHead>
323
+ )}
303
324
  </TableRow>
304
325
  </TableHeader>
305
326
  <TableBody>
@@ -307,7 +328,7 @@ function FailuresReport({
307
328
  <FailureRow
308
329
  key={`${failure.stage} ${failure.reason}`}
309
330
  failure={failure}
310
- total={total}
331
+ total={capped ? null : total}
311
332
  />
312
333
  ))}
313
334
  </TableBody>
@@ -378,7 +399,11 @@ export function UpdateFailures({
378
399
  </CardContent>
379
400
  {query.data?.coverage.kind === "partial" ? (
380
401
  <CardFooter className="border-t px-6 py-5">
381
- <span className="text-xs text-muted-foreground">Partial</span>
402
+ <span className="text-xs text-muted-foreground">
403
+ {(query.data.cappedHours?.length ?? 0) > 0
404
+ ? "Partial: some hours held more failure kinds than are read, so failures are at least the counts shown."
405
+ : "Partial"}
406
+ </span>
382
407
  </CardFooter>
383
408
  ) : null}
384
409
  </Card>
@@ -27,6 +27,7 @@ import {
27
27
  DataTableEmpty,
28
28
  DataTableFrame,
29
29
  DataTableFullRow,
30
+ DataTablePagination,
30
31
  DataTableSkeletonRows,
31
32
  } from "@/components/DataTable";
32
33
  import { QrCode } from "@/components/QrCode";
@@ -880,9 +881,13 @@ export function IosDevicesPage({
880
881
  readonly onSearchChange: (search: IosDevicesSearch) => void;
881
882
  }) {
882
883
  const isMobile = useIsMobile();
883
- const query = useIosDevicesQuery(search.status);
884
+ const query = useIosDevicesQuery(search);
884
885
  const view = query.data;
885
886
  const rows = view?.devices;
887
+ // A page other than the newest, whose status the page links keep.
888
+ const paged = search.before !== undefined || search.after !== undefined;
889
+ const statusSearch: IosDevicesSearch =
890
+ search.status === undefined ? {} : { status: search.status };
886
891
  const queryClient = useQueryClient();
887
892
  // Refresh and Retry read every registry query the page shows: the list,
888
893
  // and this iPhone's own row on a phone. A disabled read, such as the row
@@ -896,7 +901,20 @@ export function IosDevicesPage({
896
901
  phone?.ios === true ? (phone.udid?.toLowerCase() ?? null) : null;
897
902
  const close = () => setDialog(null);
898
903
 
899
- const empty = (
904
+ const empty = paged ? (
905
+ <DataTableEmpty icon={Smartphone} title="No more iPhones">
906
+ <Link
907
+ className={buttonVariants({
908
+ className: "mt-1 min-h-11 sm:min-h-8",
909
+ variant: "outline",
910
+ })}
911
+ search={statusSearch}
912
+ to={IOS_DEVICES_PATH}
913
+ >
914
+ Show the newest iPhones
915
+ </Link>
916
+ </DataTableEmpty>
917
+ ) : (
900
918
  <DataTableEmpty
901
919
  icon={Smartphone}
902
920
  title={
@@ -1083,6 +1101,33 @@ export function IosDevicesPage({
1083
1101
  )}
1084
1102
  </DataTableFrame>
1085
1103
  )}
1104
+ {query.isError || rows === undefined ? null : (
1105
+ <DataTablePagination
1106
+ count={rows.length}
1107
+ label="iOS device pages"
1108
+ newest={
1109
+ paged ? { search: statusSearch, to: IOS_DEVICES_PATH } : undefined
1110
+ }
1111
+ next={
1112
+ view?.next === undefined
1113
+ ? undefined
1114
+ : {
1115
+ search: { ...statusSearch, before: view.next },
1116
+ to: IOS_DEVICES_PATH,
1117
+ }
1118
+ }
1119
+ noun={["device", "devices"]}
1120
+ pending={query.isPlaceholderData}
1121
+ previous={
1122
+ view?.previous === undefined
1123
+ ? undefined
1124
+ : {
1125
+ search: { ...statusSearch, after: view.previous },
1126
+ to: IOS_DEVICES_PATH,
1127
+ }
1128
+ }
1129
+ />
1130
+ )}
1086
1131
  </div>
1087
1132
  {dialog !== null && dialog.kind !== "remove" ? (
1088
1133
  <NameDialog key={dialog.device.id} onClose={close} target={dialog} />
@@ -1,7 +1,8 @@
1
1
  import type { NativeBuildRow } from "@hot-updater/plugin-core";
2
2
  import { Link } from "@tanstack/react-router";
3
- import { RefreshCw, Smartphone } from "lucide-react";
3
+ import { CircleHelp, RefreshCw, Smartphone } from "lucide-react";
4
4
 
5
+ import { RowReason } from "@/components/RowReason";
5
6
  import { Button, buttonVariants } from "@/components/ui/button";
6
7
  import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
7
8
  import { Skeleton } from "@/components/ui/skeleton";
@@ -10,6 +11,14 @@ import { maskIosUdid } from "@/lib/native-builds";
10
11
 
11
12
  import { ShortHash } from "./ShortHash";
12
13
 
14
+ /**
15
+ * Why the Console can't name a device the IPA lists, and how to name it:
16
+ * Apple's ad hoc profile lists every enabled device in the account, the
17
+ * registry only those registered through Hot Updater.
18
+ */
19
+ const UNKNOWN_DEVICE_REASON =
20
+ "In your Apple account, but not in Hot Updater. Open iOS devices on that iPhone to register it.";
21
+
13
22
  /**
14
23
  * The devices an ad hoc IPA installs on, read from its signing profile: each
15
24
  * by the registry's name when the registry knows it, else as an unknown
@@ -84,15 +93,18 @@ export function IpaDevicesCard({ build }: { readonly build: NativeBuildRow }) {
84
93
  className="size-4 shrink-0 text-muted-foreground"
85
94
  />
86
95
  <span className="flex min-w-0 flex-col items-start">
87
- <span
88
- className={
89
- device.name === null
90
- ? "truncate text-muted-foreground"
91
- : "truncate"
92
- }
93
- >
94
- {device.name ?? "Unknown device"}
95
- </span>
96
+ {device.name === null ? (
97
+ <RowReason
98
+ className="text-sm"
99
+ icon={CircleHelp}
100
+ label={`Unknown device: ${UNKNOWN_DEVICE_REASON}`}
101
+ reason={UNKNOWN_DEVICE_REASON}
102
+ >
103
+ Unknown device
104
+ </RowReason>
105
+ ) : (
106
+ <span className="truncate">{device.name}</span>
107
+ )}
96
108
  <span className="text-muted-foreground">
97
109
  <ShortHash
98
110
  label="UDID"
package/src/lib/api.ts CHANGED
@@ -146,6 +146,13 @@ export function useChannelsQuery() {
146
146
  });
147
147
  }
148
148
 
149
+ /**
150
+ * How long a list of releases or patches stays fresh, as the native build
151
+ * list does: a focus within it reads nothing. A change made in this Console
152
+ * invalidates it at once; a deploy from elsewhere shows within a minute.
153
+ */
154
+ const LIST_STALE_MS = 60_000;
155
+
149
156
  export function useReleasesQuery(
150
157
  filters?: ReleaseFilters,
151
158
  { enabled = true }: { readonly enabled?: boolean } = {},
@@ -154,6 +161,7 @@ export function useReleasesQuery(
154
161
  queryKey: queryKeys.releases.list(filters),
155
162
  queryFn: () => getReleases({ data: filters }),
156
163
  placeholderData: (previousData) => previousData,
164
+ staleTime: LIST_STALE_MS,
157
165
  enabled,
158
166
  });
159
167
  }
@@ -180,6 +188,7 @@ export function useReleaseFoldQuery(
180
188
  initialPageParam: undefined as string | undefined,
181
189
  getNextPageParam: (last) => last.next,
182
190
  enabled,
191
+ staleTime: LIST_STALE_MS,
183
192
  });
184
193
  }
185
194
 
@@ -295,6 +304,7 @@ export function useNativeBuildPatchesQuery(
295
304
  queryFn: () => getNativeBuildPatches({ data: { minBundleId, ...page } }),
296
305
  enabled: enabled && minBundleId.length > 0,
297
306
  placeholderData: (previousData) => previousData,
307
+ staleTime: LIST_STALE_MS,
298
308
  });
299
309
  }
300
310
 
@@ -464,6 +474,7 @@ export function useDeleteReleaseMutation() {
464
474
  queryClient.invalidateQueries({
465
475
  queryKey: queryKeys.bundleChildren.all,
466
476
  }),
477
+ queryClient.invalidateQueries({ queryKey: ["native-build-patches"] }),
467
478
  ]);
468
479
  },
469
480
  });
@@ -14,3 +14,6 @@ export const ALL_CHANNELS = "all";
14
14
 
15
15
  /** The channel filter's choice that lists every channel, on every page. */
16
16
  export const ALL_CHANNELS_LABEL = "All channels";
17
+
18
+ export const CONSOLE_GIT_URL_GUIDE_URL =
19
+ "https://hot-updater.dev/docs/guides/console#git-url";
@@ -20,7 +20,12 @@ import { releasePendingReceipt } from "./native-builds";
20
20
 
21
21
  export const iosDeviceKeys = {
22
22
  all: ["ios-devices"] as const,
23
- list: (status?: IosDeviceStatus) => ["ios-devices", status ?? "all"] as const,
23
+ list: (page: IosDevicesPage) =>
24
+ [
25
+ "ios-devices",
26
+ page.status ?? "all",
27
+ { before: page.before, after: page.after },
28
+ ] as const,
24
29
  device: (udid: string) => ["ios-devices", "device", udid] as const,
25
30
  // What the cookie names doesn't depend on the ID this page kept: one read
26
31
  // serves the page whether it knew its iPhone or learns it from the answer.
@@ -35,15 +40,24 @@ export const iosDeviceKeys = {
35
40
  */
36
41
  export const PROFILE_LINK_REFRESH_MS = 10 * 60 * 1000;
37
42
 
43
+ /** A page of the iOS devices page: one status or all, and a keyset cursor. */
44
+ export interface IosDevicesPage {
45
+ readonly status?: IosDeviceStatus;
46
+ /** Devices older than this ID: the next page. */
47
+ readonly before?: string;
48
+ /** Devices newer than this ID: the previous page. */
49
+ readonly after?: string;
50
+ }
51
+
38
52
  /**
39
- * The registry, one status or all, kept on screen while it reloads, so a
40
- * filter change never blanks the table.
53
+ * One page of the registry, one status or all, kept on screen while it
54
+ * reloads, so a filter or page change never blanks the table. It reads
55
+ * again on focus: an approver sees a new request without reloading.
41
56
  */
42
- export function useIosDevicesQuery(status?: IosDeviceStatus) {
57
+ export function useIosDevicesQuery(page: IosDevicesPage) {
43
58
  return useQuery({
44
- queryKey: iosDeviceKeys.list(status),
45
- queryFn: () =>
46
- getIosDevices({ data: status === undefined ? {} : { status } }),
59
+ queryKey: iosDeviceKeys.list(page),
60
+ queryFn: () => getIosDevices({ data: page }),
47
61
  placeholderData: keepPreviousData,
48
62
  });
49
63
  }
@@ -49,7 +49,12 @@ const registry = async () => {
49
49
  };
50
50
 
51
51
  export interface IosDevicesView {
52
- readonly devices: IosDeviceRow[];
52
+ /** One page of the registry, newest first. */
53
+ readonly devices: readonly IosDeviceRow[];
54
+ /** `before` of the next, older page, when there may be one. */
55
+ readonly next?: string;
56
+ /** `after` of the previous, newer page, when there may be one. */
57
+ readonly previous?: string;
53
58
  readonly viewer: {
54
59
  readonly email: string;
55
60
  readonly canApprove: boolean;
@@ -63,16 +68,35 @@ export interface IosDevicesView {
63
68
  readonly secretName: string;
64
69
  }
65
70
 
66
- /** The registry, or one status of it, with what the viewer may do. */
71
+ /** A device ID, the page cursor. */
72
+ const cursor = (input: unknown, field: "before" | "after") =>
73
+ record(input)[field] === undefined ? {} : { [field]: text(input, field, 36) };
74
+
75
+ /** A page of the registry, or of one status of it, with what the viewer may do. */
67
76
  export const getIosDevices = createServerFn({ method: "GET" })
68
77
  .middleware([consoleAccess])
69
- .validator((input: { status?: IosDeviceStatus } | undefined) => {
70
- const status = input?.status;
71
- if (status !== undefined && !STATUSES.includes(status)) {
72
- throw new TypeError("Invalid status.");
73
- }
74
- return status === undefined ? {} : { status };
75
- })
78
+ .validator(
79
+ (
80
+ input:
81
+ | {
82
+ status?: IosDeviceStatus;
83
+ before?: string;
84
+ after?: string;
85
+ }
86
+ | undefined,
87
+ ) => {
88
+ const status = input?.status;
89
+ if (status !== undefined && !STATUSES.includes(status)) {
90
+ throw new TypeError("Invalid status.");
91
+ }
92
+ return {
93
+ ...(status === undefined ? {} : { status }),
94
+ ...(input === undefined
95
+ ? {}
96
+ : { ...cursor(input, "before"), ...cursor(input, "after") }),
97
+ };
98
+ },
99
+ )
76
100
  .handler(async ({ data }): Promise<IosDevicesView> => {
77
101
  const [
78
102
  { request, core, principal, viewer, devices },
@@ -81,8 +105,11 @@ export const getIosDevices = createServerFn({ method: "GET" })
81
105
  registry(),
82
106
  import("./server/nativeBuildDownloadLink"),
83
107
  ]);
108
+ const page = await devices.listIosDevicePage(core, data);
84
109
  return {
85
- devices: await devices.listIosDevices(core, data.status),
110
+ devices: page.data,
111
+ ...(page.next === undefined ? {} : { next: page.next }),
112
+ ...(page.previous === undefined ? {} : { previous: page.previous }),
86
113
  viewer,
87
114
  defaultName: devices.defaultDeviceName(principal),
88
115
  registration: await devices.deviceRegistration(request),
@@ -18,7 +18,7 @@ export const getSchemaMigrationRpc = createServerFn({ method: "GET" })
18
18
  const { prepareConfig } = await import("./server/config.server");
19
19
  const { config, core } = await prepareConfig();
20
20
  try {
21
- await core.listChannels();
21
+ await core.ready();
22
22
  return null;
23
23
  } catch (error) {
24
24
  return schemaMigrationOf(error, config.plugins);