@hot-updater/console 1.2.0-rc.28 → 1.2.0-rc.29
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.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/{-native-builds-search-7blX2yQW.js → -native-builds-search-DdHwfe4q.js} +1 -1
- package/.output/public/assets/ChannelBadge-CEabmopB.js +1 -0
- package/.output/public/assets/{CompositeItem-Dy4xgOMg.js → CompositeItem-KUM5yQVr.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-cy_snb33.js → ConsoleFeatureUnavailable-Be-0iTww.js} +1 -1
- package/.output/public/assets/EventDetails-bDOYte1z.js +1 -0
- package/.output/public/assets/HashValueDisplay-D2f0HmyU.js +1 -0
- package/.output/public/assets/{InsightsPageHeader-D5TJspVe.js → InsightsPageHeader-Cj2ROSQO.js} +1 -1
- package/.output/public/assets/IosInstall-CHI2C4Yd.js +1 -0
- package/.output/public/assets/{NativeBuildsNav-CjOOlbEu.js → NativeBuildsNav-DaqxQPnG.js} +1 -1
- package/.output/public/assets/{RelativeTime-CY1dKZpv.js → RelativeTime-B4PK8qDw.js} +1 -1
- package/.output/public/assets/{RolloutPercentageBadge-BHgHkBGB.js → RolloutPercentageBadge-D_I0Raj2.js} +1 -1
- package/.output/public/assets/{RowReason-BMx_vclu.js → RowReason-B7VM1ztc.js} +1 -1
- package/.output/public/assets/{SandboxBadge-irEkMf1P.js → SandboxBadge-BVxHg_HF.js} +1 -1
- package/.output/public/assets/TargetDisplay-KU7JhIWG.js +1 -0
- package/.output/public/assets/api-keys-DLC8jjaM.js +1 -0
- package/.output/public/assets/api-keys-eDnzgFAf.js +1 -0
- package/.output/public/assets/download-B2GjTySo.js +1 -0
- package/.output/public/assets/{index-CAnjb7M2.js → index-BdyQq4-k.js} +3 -3
- package/.output/public/assets/insights-C94CdeAA.js +1 -0
- package/.output/public/assets/insights-DILMVpk8.js +2 -0
- package/.output/public/assets/{insights-DTF7C4jb.js → insights-_j_ieOyh.js} +1 -1
- package/.output/public/assets/{insights-search-TfRz5kGG.js → insights-search-Bgvg6wSP.js} +1 -1
- package/.output/public/assets/{insights-usage-rpc-B4V-Qqo4.js → insights-usage-rpc-BUCinjSN.js} +1 -1
- package/.output/public/assets/insights_.distribution-Bb6_S-hD.js +2 -0
- package/.output/public/assets/{insights_.distribution-BqfzAuAf.js → insights_.distribution-CRkGNelG.js} +1 -1
- package/.output/public/assets/insights_.distribution-CyAu3RN3.js +1 -0
- package/.output/public/assets/installations-BA01mqJE.js +1 -0
- package/.output/public/assets/{installations-D3MbzcFb.js → installations-BsD6LgNc.js} +2 -2
- package/.output/public/assets/{installations-BU65zztK.js → installations-CYTzndfP.js} +1 -1
- package/.output/public/assets/native-builds-BMbws1g5.js +2 -0
- package/.output/public/assets/native-builds-xgHiHQML.js +1 -0
- package/.output/public/assets/native-builds_._buildId-B04z9yfk.js +1 -0
- package/.output/public/assets/native-builds_._buildId-DaMmTcHo.js +2 -0
- package/.output/public/assets/native-builds_.devices-B-u7uLLG.js +2 -0
- package/.output/public/assets/native-builds_.devices-CVNAQtSy.js +1 -0
- package/.output/public/assets/{remote-config-D1OkfQKt.js → remote-config-Cxkr7_BP.js} +1 -1
- package/.output/public/assets/remote-config-DAOyn5xL.js +1 -0
- package/.output/public/assets/{remote-config-CGbqsPh_.js → remote-config-DXv25LX1.js} +3 -3
- package/.output/public/assets/{routes-BTG3rg0l.js → routes-DM3TyTLW.js} +2 -2
- package/.output/public/assets/routes-Des97uK_.js +1 -0
- package/.output/public/assets/styles-BHLI87EH.css +2 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-BFiPs5uv.mjs → __23tanstack-start-server-fn-resolver-DTuNq7_z.mjs} +58 -58
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_ssr/{BundleIdDisplay-BSBR5eJ3.mjs → BundleIdDisplay-BX6DLh1K.mjs} +2 -2
- package/.output/server/_ssr/ChannelBadge-D7O95Ack.mjs +23 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-DcZ4JBVq.mjs → ConsoleFeatureUnavailable-Dfs3WUZf.mjs} +5 -5
- package/.output/server/_ssr/{EventDetails-CUHZuwei.mjs → EventDetails-C1Q9caVa.mjs} +6 -6
- package/.output/server/_ssr/{HashValueDisplay-B9ORaCcP.mjs → HashValueDisplay-SIEeZe0O.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-C0bJqC-n.mjs → InsightsPageHeader-CAcbXSFD.mjs} +5 -5
- package/.output/server/_ssr/{IosInstall-C5Y5gnDY.mjs → IosInstall-B7yxnQ7o.mjs} +61 -20
- package/.output/server/_ssr/{NativeBuildsNav-hFiyBaFW.mjs → NativeBuildsNav-BwoEX7xx.mjs} +3 -3
- package/.output/server/_ssr/{NotFoundPage-D4xRjmIA.mjs → NotFoundPage-Cd_nKv04.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-DnvxB666.mjs → RelativeTime-B5txzq94.mjs} +23 -6
- package/.output/server/_ssr/{RolloutPercentageBadge-NBnIOzY9.mjs → RolloutPercentageBadge-BEV8btLv.mjs} +3 -3
- package/.output/server/_ssr/{RowReason-B_jZN48d.mjs → RowReason-CEDEk7-N.mjs} +24 -7
- package/.output/server/_ssr/{SandboxBadge-CFtTG1ZJ.mjs → SandboxBadge-wlOMZIUd.mjs} +2 -2
- package/.output/server/_ssr/{TargetDisplay-0sb03v_6.mjs → TargetDisplay-076I9qHx.mjs} +29 -20
- package/.output/server/_ssr/{alert-dialog-SLr1Q_AI.mjs → alert-dialog-DrD4hAp4.mjs} +1 -1
- package/.output/server/_ssr/{api-CkgOQzSb.mjs → api-C1plnjZg.mjs} +3 -3
- package/.output/server/_ssr/{api-keys-BP7NJtoX.mjs → api-keys-Bzn-P-lX.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-BcSzq0TA.mjs → api-keys-L8_p18pO.mjs} +10 -10
- package/.output/server/_ssr/{api-keys-rpc-IWPOq5vn.mjs → api-keys-rpc-Mne2yo8z.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-cNJTB3v4.mjs → api-rpc-ChVBmeca.mjs} +13 -6
- package/.output/server/_ssr/{auth-rpc-oaBbtxSP.mjs → auth-rpc-Dml8l_eq.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-WQw9JjMm.mjs → auth.server-DOShgraQ.mjs} +2 -2
- package/.output/server/_ssr/{badge-n3c0OTBQ.mjs → badge-BasQflNy.mjs} +1 -1
- package/.output/server/_ssr/{card-CYgCcRUd.mjs → card-BrGGQYC0.mjs} +1 -1
- package/.output/server/_ssr/{config.server-R3KQbcML.mjs → config.server-CVOdMDBk.mjs} +3 -3
- package/.output/server/_ssr/{console-access-BLVi82IN.mjs → console-access-Bi-abtY-.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-B2JvJOlE.mjs → console-features-api-Bjxo5ur3.mjs} +3 -3
- package/.output/server/_ssr/{console-features-rpc-LAxQoSNw.mjs → console-features-rpc-xzdodg3g.mjs} +3 -3
- package/.output/server/_ssr/{dialog-eru_h5oK.mjs → dialog-7iMkt9l0.mjs} +1 -1
- package/.output/server/_ssr/{empty-Bu4qodCx.mjs → empty-Chb-YL3R.mjs} +2 -2
- package/.output/server/_ssr/{field-DA5lwO5U.mjs → field-mL_Aa6ff.mjs} +2 -2
- package/.output/server/_ssr/{input-group-VV5E3q78.mjs → input-group-C00_xYka.mjs} +1 -1
- package/.output/server/_ssr/{insights-Ci82qdkq.mjs → insights-BcVNQCXf.mjs} +19 -19
- package/.output/server/_ssr/{insights-BJIt1xuT.mjs → insights-BdF3o0Yp.mjs} +2 -2
- package/.output/server/_ssr/{insights-C23mopzv.mjs → insights-C9sSQPMF.mjs} +5 -5
- package/.output/server/_ssr/{insights-api-BwXMKUSe.mjs → insights-api-CShlv9dA.mjs} +3 -3
- package/.output/server/_ssr/{insights-failures-rpc-BuZ-jnby.mjs → insights-failures-rpc-C-cv9bId.mjs} +4 -4
- package/.output/server/_ssr/{insights-recovery-rpc-DrXSy9aA.mjs → insights-recovery-rpc-Ct-jIQZU.mjs} +3 -3
- package/.output/server/_ssr/{insights-rpc-DyrIZg3a.mjs → insights-rpc-Dc0I8O3n.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-CNkNB-aa.mjs → insights-search-D_vVwBwW.mjs} +2 -2
- package/.output/server/_ssr/{insights-usage-rpc-C7UC1lom.mjs → insights-usage-rpc-4TR94EHa.mjs} +3 -3
- package/.output/server/_ssr/{insights-usage-rpc-cTgmD-Ej.mjs → insights-usage-rpc-D60hOhzl.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-CIY_IGmh.mjs → insights_.distribution-BgnfMzw1.mjs} +13 -13
- package/.output/server/_ssr/{insights_.distribution-wfFKEv-Z.mjs → insights_.distribution-DkD7uAwA.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-BauOpBTE.mjs → insights_.distribution-wT1mjWsG.mjs} +2 -2
- package/.output/server/_ssr/{installations-VzacOKHp.mjs → installations-DtRbzy3N.mjs} +2 -2
- package/.output/server/_ssr/{installations-jGW7nvEV.mjs → installations-DvxMRP5u.mjs} +4 -4
- package/.output/server/_ssr/{installations-Ba3YVrAf.mjs → installations-tFsFnxKk.mjs} +11 -11
- package/.output/server/_ssr/{ios-devices-rpc-Bhn7VVIh.mjs → ios-devices-rpc-CIPuCUQ8.mjs} +9 -8
- package/.output/server/_ssr/{iosDeviceProfile-_XT8TpgZ.mjs → iosDeviceProfile-WyMC1593.mjs} +2 -2
- package/.output/server/_ssr/{iosDevices-Bc27J72d.mjs → iosDevices-B0TjF_sb.mjs} +2 -2
- package/.output/server/_ssr/{native-builds-DZFJGcHy.mjs → native-builds-C458T7Ts.mjs} +2 -2
- package/.output/server/_ssr/{native-builds-DiNkKHly.mjs → native-builds-C5WxR0BT.mjs} +35 -25
- package/.output/server/_ssr/{native-builds_._buildId-CuM1PsT6.mjs → native-builds_._buildId-CyCGKZ1H.mjs} +89 -61
- package/.output/server/_ssr/{native-builds_._buildId-D0n4QZY6.mjs → native-builds_._buildId-UsgsqKI8.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_.devices-DiM2FdcW.mjs → native-builds_.devices-BcfLIzJs.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_.devices-D0JJlX8E.mjs → native-builds_.devices-BpTcIWm0.mjs} +57 -57
- package/.output/server/_ssr/{nativeBuildDownloadLink-CvvWuhh0.mjs → nativeBuildDownloadLink-CtB2G7qG.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildInstall-BqcVHBaD.mjs → nativeBuildInstall-PavEyZtZ.mjs} +5 -4
- package/.output/server/_ssr/{release-adoption-rpc-Dm-5yAJG.mjs → release-adoption-rpc-DkT6ui4_.mjs} +5 -5
- package/.output/server/_ssr/{remote-config-D1BhIBKu.mjs → remote-config-BKlK0dFP.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-D7RruPiO.mjs → remote-config-D_nQT__6.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-C7AZy37o.mjs → remote-config-rpc-BW6lyp9Y.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-ZFm-l4Gi.mjs → remote-config-v1hs050H.mjs} +20 -20
- package/.output/server/_ssr/{router-BGkGFMsT.mjs → router-hKO__Vrv.mjs} +25 -25
- package/.output/server/_ssr/{routes-CJJxz-Ak.mjs → routes-DKxm5A7X.mjs} +30 -25
- package/.output/server/_ssr/{routes-CiJ2dhL9.mjs → routes-OhljAvlx.mjs} +8 -8
- package/.output/server/_ssr/{schema-migration-rpc-D4YlwvGH.mjs → schema-migration-rpc-DrrYEFqy.mjs} +3 -3
- package/.output/server/_ssr/{select-BB8GE7OZ.mjs → select-M4kWGKJW.mjs} +1 -1
- package/.output/server/_ssr/{server-DAHTchcr.mjs → server-4hXySEh0.mjs} +3 -3
- package/.output/server/_ssr/{sidebar-CsKVgZHa.mjs → sidebar-CFlo6lny.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{switch-BvvmP7Y3.mjs → switch-xTCGSBdC.mjs} +2 -2
- package/.output/server/_ssr/{table-WKKzprFn.mjs → table-CqdaVMjd.mjs} +1 -1
- package/.output/server/_ssr/{tabs-BJ-4SgmC.mjs → tabs-DtMAFr25.mjs} +2 -2
- package/.output/server/_tanstack-start-manifest_v-CYfHRC4i.mjs +225 -0
- package/.output/server/index.mjs +351 -344
- package/package.json +7 -7
- package/src/components/DataTable.tsx +26 -1
- package/src/components/FoldedRows.tsx +20 -2
- package/src/components/features/api-keys/ApiKeysPage.tsx +1 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +2 -2
- package/src/components/features/native-builds/CommitLink.tsx +2 -1
- package/src/components/features/native-builds/InstallCard.tsx +76 -39
- package/src/components/features/native-builds/IosDevicesPage.tsx +75 -42
- package/src/components/features/native-builds/IosInstall.tsx +103 -31
- package/src/components/features/native-builds/IpaDevicesCard.tsx +19 -15
- package/src/components/features/native-builds/NativeBuildsTable.tsx +17 -13
- package/src/components/features/native-builds/ShortHash.tsx +5 -2
- package/src/components/features/remote-config/PublishDialog.tsx +4 -1
- package/src/components/features/remote-config/VersionsCard.tsx +5 -2
- package/src/components/ui/sonner.tsx +3 -1
- package/src/lib/api-rpc.ts +14 -1
- package/src/lib/ios-devices-rpc.ts +10 -1
- package/src/lib/server/nativeBuildInstall.ts +9 -0
- package/src/routes/index.tsx +5 -2
- package/src/styles.css +2 -2
- package/.output/public/assets/EventDetails-sxag8Hfc.js +0 -1
- package/.output/public/assets/HashValueDisplay-DMweha_0.js +0 -1
- package/.output/public/assets/IosInstall-B5NspihF.js +0 -1
- package/.output/public/assets/TargetDisplay-DB8D019f.js +0 -1
- package/.output/public/assets/api-keys-Cd-aNt-v.js +0 -1
- package/.output/public/assets/api-keys-D3tAc4Uu.js +0 -1
- package/.output/public/assets/insights-DIs4nJI9.js +0 -2
- package/.output/public/assets/insights-bUk3ChoU.js +0 -1
- package/.output/public/assets/insights_.distribution-BPl5oRt4.js +0 -2
- package/.output/public/assets/insights_.distribution-BqtmnGTt.js +0 -1
- package/.output/public/assets/installations-6U8c_03X.js +0 -1
- package/.output/public/assets/native-builds-BdzfAFnF.js +0 -1
- package/.output/public/assets/native-builds-CWwvuOXr.js +0 -2
- package/.output/public/assets/native-builds-Eh72Vr2G.js +0 -1
- package/.output/public/assets/native-builds_._buildId-33ksAlnZ.js +0 -1
- package/.output/public/assets/native-builds_._buildId-BVA5GnZP.js +0 -2
- package/.output/public/assets/native-builds_.devices-CElovmwq.js +0 -1
- package/.output/public/assets/native-builds_.devices-DWtcOVYO.js +0 -2
- package/.output/public/assets/remote-config-B3oq9qR0.js +0 -1
- package/.output/public/assets/routes-CVbPjRKo.js +0 -1
- package/.output/public/assets/styles-B0kzy3kp.css +0 -2
- package/.output/server/_ssr/CopyableText-DgNEsByt.mjs +0 -33
- package/.output/server/_tanstack-start-manifest_v-CSUJeG5D.mjs +0 -219
- /package/.output/public/assets/{BundleIdDisplay-B0gAH01c.js → BundleIdDisplay-CTBdtFQ8.js} +0 -0
- /package/.output/public/assets/{NotFoundPage-DDOJarFa.js → NotFoundPage-CVBtl68B.js} +0 -0
- /package/.output/public/assets/{PlatformIcon-BBvlg6JY.js → PlatformIcon-DVnzzGqM.js} +0 -0
- /package/.output/public/assets/{alert-dialog-CLC_h1fL.js → alert-dialog-Ch0QxRsa.js} +0 -0
- /package/.output/public/assets/{api-DLryz9hA.js → api-C1OPeiG1.js} +0 -0
- /package/.output/public/assets/{badge-DJMW4YVM.js → badge-FZMD5vvS.js} +0 -0
- /package/.output/public/assets/{card-C4sBAMU-.js → card-CyHYmHue.js} +0 -0
- /package/.output/public/assets/{dialog-tCTZmAo8.js → dialog-BLj71-Nf.js} +0 -0
- /package/.output/public/assets/{dist-Bw_uSBJn.js → dist-DAM__Tdz.js} +0 -0
- /package/.output/public/assets/{empty-DsbLxQ1w.js → empty--YaE5Z4p.js} +0 -0
- /package/.output/public/assets/{field-DL4OXTJ7.js → field-CdhSgWhI.js} +0 -0
- /package/.output/public/assets/{git-branch-ByZMEBxZ.js → git-branch-DG1VDaKq.js} +0 -0
- /package/.output/public/assets/{history-wYnPoVmT.js → history-C0wv4htz.js} +0 -0
- /package/.output/public/assets/{input-group-B7jx0icS.js → input-group-XKLcUGoa.js} +0 -0
- /package/.output/public/assets/{key-round-B-P_hhUB.js → key-round-D7UgdXyA.js} +0 -0
- /package/.output/public/assets/{list-fFsS8Wxe.js → list-Bm-CfN5g.js} +0 -0
- /package/.output/public/assets/{loader-circle-GWIgH0fo.js → loader-circle-iMqC-8ZE.js} +0 -0
- /package/.output/public/assets/{package-CXSDZsME.js → package-BmfoZ5Zj.js} +0 -0
- /package/.output/public/assets/{plus-Cx-yFNd9.js → plus-Db0KxLZp.js} +0 -0
- /package/.output/public/assets/{refresh-cw-BgiOaFX3.js → refresh-cw-BHhBYjS8.js} +0 -0
- /package/.output/public/assets/{relativeTime-CBmDq8wh.js → relativeTime-BYRt19mj.js} +0 -0
- /package/.output/public/assets/{rotate-cw-C1v7YuN7.js → rotate-cw-Ba-slJea.js} +0 -0
- /package/.output/public/assets/{search-DiOSjaYL.js → search-dJG2BYmx.js} +0 -0
- /package/.output/public/assets/{send-BgXZNiEA.js → send-DuMOCzbD.js} +0 -0
- /package/.output/public/assets/{smartphone-CxP0GGT6.js → smartphone-D1C6BRd_.js} +0 -0
- /package/.output/public/assets/{switch-BTHWmKQ5.js → switch-BsV3d4km.js} +0 -0
- /package/.output/public/assets/{table-CwF7yxj4.js → table-D8YjT_ht.js} +0 -0
- /package/.output/public/assets/{tabs-CHNnCyvw.js → tabs-RdhEl9sE.js} +0 -0
- /package/.output/public/assets/{trash-2-CYISg7ZF.js → trash-2-B5KIvrXy.js} +0 -0
- /package/.output/public/assets/{undo-2-Bod3vw7x.js → undo-2-CFcU9dIB.js} +0 -0
- /package/.output/public/assets/{uuidv7-CVJ09bBG.js → uuidv7-DAoOOpz9.js} +0 -0
- /package/.output/public/assets/{valueToPercent-Db73Kirz.js → valueToPercent-Bn8p2lng.js} +0 -0
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { IosDeviceRow, NativeBuildRow } from "@hot-updater/plugin-core";
|
|
2
2
|
import { Link } from "@tanstack/react-router";
|
|
3
3
|
import dayjs from "dayjs";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
AlertTriangle,
|
|
6
|
+
Loader2,
|
|
7
|
+
RefreshCw,
|
|
8
|
+
Send,
|
|
9
|
+
Smartphone,
|
|
10
|
+
} from "lucide-react";
|
|
5
11
|
import { useEffect, useReducer, useState } from "react";
|
|
6
12
|
|
|
7
13
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
@@ -284,32 +290,92 @@ function CheckThisIphone({
|
|
|
284
290
|
}
|
|
285
291
|
if (link.data?.status !== "issued") {
|
|
286
292
|
return link.isError ? (
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
293
|
+
<>
|
|
294
|
+
<Alert variant="destructive">
|
|
295
|
+
<AlertTriangle />
|
|
296
|
+
<AlertTitle>The check couldn't start</AlertTitle>
|
|
297
|
+
<AlertDescription>
|
|
298
|
+
Check your connection and try again.
|
|
299
|
+
</AlertDescription>
|
|
300
|
+
</Alert>
|
|
301
|
+
<Button
|
|
302
|
+
className={ACTION_CLASS}
|
|
303
|
+
disabled={link.isFetching}
|
|
304
|
+
onClick={() => void link.refetch()}
|
|
305
|
+
variant="outline"
|
|
306
|
+
>
|
|
307
|
+
<RefreshCw data-icon="inline-start" />
|
|
308
|
+
Reload
|
|
309
|
+
</Button>
|
|
310
|
+
</>
|
|
290
311
|
) : (
|
|
291
312
|
<Skeleton aria-label="Preparing the check" className="h-11 w-full" />
|
|
292
313
|
);
|
|
293
314
|
}
|
|
294
315
|
return (
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
className
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
316
|
+
<>
|
|
317
|
+
<a
|
|
318
|
+
className={buttonVariants({
|
|
319
|
+
className: ACTION_CLASS,
|
|
320
|
+
variant: again ? "secondary" : "default",
|
|
321
|
+
})}
|
|
322
|
+
href={iosDeviceProfileUrl(
|
|
323
|
+
consolePathOf(window.location, build.id),
|
|
324
|
+
link.data.token,
|
|
325
|
+
)}
|
|
326
|
+
>
|
|
327
|
+
<Smartphone data-icon="inline-start" />
|
|
328
|
+
{again ? "Check this iPhone again" : "Check this iPhone"}
|
|
329
|
+
</a>
|
|
330
|
+
<p className="text-xs text-muted-foreground">
|
|
331
|
+
Allow the download, then install it in Settings, where iOS calls it not
|
|
332
|
+
signed. Nothing stays installed.
|
|
333
|
+
</p>
|
|
334
|
+
</>
|
|
308
335
|
);
|
|
309
336
|
}
|
|
310
337
|
|
|
311
338
|
const shortDate = (ms: number) => dayjs(ms).format("MMM D");
|
|
312
339
|
|
|
340
|
+
/**
|
|
341
|
+
* Apple's refusal of this iPhone, in its own words, and the one next step: the
|
|
342
|
+
* iOS devices page for an approver, else whom to ask.
|
|
343
|
+
*/
|
|
344
|
+
function AppleRefusal({
|
|
345
|
+
device,
|
|
346
|
+
canApprove,
|
|
347
|
+
}: {
|
|
348
|
+
readonly device: IosDeviceRow;
|
|
349
|
+
readonly canApprove: boolean;
|
|
350
|
+
}) {
|
|
351
|
+
return (
|
|
352
|
+
<div className="flex min-w-0 flex-col gap-3">
|
|
353
|
+
<Alert>
|
|
354
|
+
<AlertTriangle />
|
|
355
|
+
<AlertTitle>Apple didn't register this iPhone</AlertTitle>
|
|
356
|
+
<AlertDescription>{device.apple_error}</AlertDescription>
|
|
357
|
+
</Alert>
|
|
358
|
+
{canApprove ? (
|
|
359
|
+
<Link
|
|
360
|
+
className={buttonVariants({
|
|
361
|
+
className: ACTION_CLASS,
|
|
362
|
+
variant: "outline",
|
|
363
|
+
})}
|
|
364
|
+
to="/native-builds/devices"
|
|
365
|
+
>
|
|
366
|
+
iOS devices
|
|
367
|
+
</Link>
|
|
368
|
+
) : (
|
|
369
|
+
<p className="text-xs text-muted-foreground">
|
|
370
|
+
{device.status === "approved"
|
|
371
|
+
? "Ask a maintainer to free a device slot."
|
|
372
|
+
: "Ask a maintainer to check it on the iOS devices page."}
|
|
373
|
+
</p>
|
|
374
|
+
)}
|
|
375
|
+
</div>
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
|
|
313
379
|
/**
|
|
314
380
|
* What an iPhone the IPA doesn't list sees: the registry's word on it, or
|
|
315
381
|
* Request access, which takes the UDID from this person's receipt alone.
|
|
@@ -319,6 +385,7 @@ function NotInThisBuild({
|
|
|
319
385
|
device,
|
|
320
386
|
registry,
|
|
321
387
|
newerBuild,
|
|
388
|
+
canApprove,
|
|
322
389
|
registryReadAt,
|
|
323
390
|
}: {
|
|
324
391
|
readonly build: NativeBuildRow;
|
|
@@ -329,6 +396,8 @@ function NotInThisBuild({
|
|
|
329
396
|
* server matched `registry.build_id`, or null.
|
|
330
397
|
*/
|
|
331
398
|
readonly newerBuild: string | null;
|
|
399
|
+
/** Whether the viewer approves devices, read only under Apple's refusal. */
|
|
400
|
+
readonly canApprove: boolean;
|
|
332
401
|
/** When the page last read `registry`. */
|
|
333
402
|
readonly registryReadAt: number;
|
|
334
403
|
}) {
|
|
@@ -356,17 +425,18 @@ function NotInThisBuild({
|
|
|
356
425
|
// The row's build_id may name a sandbox's or another app's build: only the
|
|
357
426
|
// server's match of it is offered.
|
|
358
427
|
const newer = standIn ? null : newerBuild;
|
|
428
|
+
if (row.apple_error !== null && newer === null) {
|
|
429
|
+
return <AppleRefusal canApprove={canApprove} device={row} />;
|
|
430
|
+
}
|
|
359
431
|
return (
|
|
360
432
|
<div className="flex min-w-0 flex-col gap-3">
|
|
361
433
|
{heading}
|
|
362
434
|
<p className="text-sm" role="status">
|
|
363
|
-
{row.
|
|
364
|
-
?
|
|
365
|
-
:
|
|
366
|
-
?
|
|
367
|
-
:
|
|
368
|
-
? `A newer build has ${row.name}.`
|
|
369
|
-
: `${row.name} is ${row.status}. It joins the next ad hoc build.`}
|
|
435
|
+
{row.status === "pending"
|
|
436
|
+
? `${row.name} was requested on ${shortDate(row.created_at_ms)}. A maintainer approves it next.`
|
|
437
|
+
: newer !== null
|
|
438
|
+
? `A newer build has ${row.name}.`
|
|
439
|
+
: `${row.name} is ${row.status}. It joins the next ad hoc build.`}
|
|
370
440
|
</p>
|
|
371
441
|
{newer !== null ? (
|
|
372
442
|
<Link
|
|
@@ -435,7 +505,10 @@ function NotInThisBuild({
|
|
|
435
505
|
type="submit"
|
|
436
506
|
>
|
|
437
507
|
{request.isPending ? (
|
|
438
|
-
<Loader2
|
|
508
|
+
<Loader2
|
|
509
|
+
className="animate-spin motion-reduce:animate-none"
|
|
510
|
+
data-icon="inline-start"
|
|
511
|
+
/>
|
|
439
512
|
) : (
|
|
440
513
|
<Send data-icon="inline-start" />
|
|
441
514
|
)}
|
|
@@ -481,8 +554,8 @@ export function IosInstall({
|
|
|
481
554
|
<AlertTitle>Installation details unavailable</AlertTitle>
|
|
482
555
|
<AlertDescription>
|
|
483
556
|
The Console couldn't read this IPA from storage in parts, which takes
|
|
484
|
-
an HTTPS download link that answers Range requests.
|
|
485
|
-
|
|
557
|
+
an HTTPS download link that answers Range requests. Other ways to
|
|
558
|
+
install still work from a computer.
|
|
486
559
|
</AlertDescription>
|
|
487
560
|
</Alert>
|
|
488
561
|
);
|
|
@@ -519,7 +592,7 @@ export function IosInstall({
|
|
|
519
592
|
if (result.device === "included") {
|
|
520
593
|
return (
|
|
521
594
|
<div className="flex min-w-0 flex-col gap-3">
|
|
522
|
-
<p className="text-sm font-medium">
|
|
595
|
+
<p className="text-sm font-medium">In this build</p>
|
|
523
596
|
{expired ? (
|
|
524
597
|
<RenewInstallLink
|
|
525
598
|
fetching={eligibility.isFetching}
|
|
@@ -539,6 +612,7 @@ export function IosInstall({
|
|
|
539
612
|
device={device}
|
|
540
613
|
registry={result.registry}
|
|
541
614
|
newerBuild={result.newerBuild}
|
|
615
|
+
canApprove={result.canApprove}
|
|
542
616
|
registryReadAt={eligibility.dataUpdatedAt}
|
|
543
617
|
/>
|
|
544
618
|
);
|
|
@@ -549,9 +623,7 @@ export function IosInstall({
|
|
|
549
623
|
<p className="text-sm font-medium">Check this iPhone first</p>
|
|
550
624
|
<p className="text-xs text-muted-foreground">
|
|
551
625
|
iOS installs this IPA only on the devices it lists. A profile reads
|
|
552
|
-
this iPhone's ID
|
|
553
|
-
in Settings, where iOS calls it not signed. Safari comes back here,
|
|
554
|
-
and nothing stays installed.
|
|
626
|
+
this iPhone's ID, then Safari comes back here.
|
|
555
627
|
</p>
|
|
556
628
|
</div>
|
|
557
629
|
<CheckThisIphone build={build} />
|
|
@@ -6,10 +6,14 @@ import { Button, buttonVariants } from "@/components/ui/button";
|
|
|
6
6
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
|
7
7
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
8
8
|
import { useNativeBuildIpaDevicesQuery } from "@/lib/ios-devices-api";
|
|
9
|
+
import { maskIosUdid } from "@/lib/native-builds";
|
|
10
|
+
|
|
11
|
+
import { ShortHash } from "./ShortHash";
|
|
9
12
|
|
|
10
13
|
/**
|
|
11
14
|
* The devices an ad hoc IPA installs on, read from its signing profile: each
|
|
12
|
-
* by the registry's name when the registry knows it, else
|
|
15
|
+
* by the registry's name when the registry knows it, else as an unknown
|
|
16
|
+
* device, over its UDID's last characters, which copy the whole UDID. Read
|
|
13
17
|
* only: the IPA decides, and a new build is what adds a device.
|
|
14
18
|
*/
|
|
15
19
|
export function IpaDevicesCard({ build }: { readonly build: NativeBuildRow }) {
|
|
@@ -79,24 +83,24 @@ export function IpaDevicesCard({ build }: { readonly build: NativeBuildRow }) {
|
|
|
79
83
|
aria-hidden="true"
|
|
80
84
|
className="size-4 shrink-0 text-muted-foreground"
|
|
81
85
|
/>
|
|
82
|
-
|
|
86
|
+
<span className="flex min-w-0 flex-col items-start">
|
|
83
87
|
<span
|
|
84
|
-
className=
|
|
85
|
-
|
|
88
|
+
className={
|
|
89
|
+
device.name === null
|
|
90
|
+
? "truncate text-muted-foreground"
|
|
91
|
+
: "truncate"
|
|
92
|
+
}
|
|
86
93
|
>
|
|
87
|
-
{device.
|
|
94
|
+
{device.name ?? "Unknown device"}
|
|
88
95
|
</span>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
>
|
|
96
|
-
…{device.udid.slice(-6)}
|
|
97
|
-
</span>
|
|
96
|
+
<span className="text-muted-foreground">
|
|
97
|
+
<ShortHash
|
|
98
|
+
label="UDID"
|
|
99
|
+
shown={maskIosUdid(device.udid)}
|
|
100
|
+
value={device.udid}
|
|
101
|
+
/>
|
|
98
102
|
</span>
|
|
99
|
-
|
|
103
|
+
</span>
|
|
100
104
|
</li>
|
|
101
105
|
))}
|
|
102
106
|
</ul>
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
foldKey,
|
|
33
33
|
foldLabel,
|
|
34
34
|
FoldStatus,
|
|
35
|
+
foldedTotal,
|
|
35
36
|
groupsOf,
|
|
36
37
|
useOpenFolds,
|
|
37
38
|
} from "@/components/FoldedRows";
|
|
@@ -205,21 +206,29 @@ function BuildLink({ build }: { readonly build: NativeBuildRow }) {
|
|
|
205
206
|
* cell the tag sits beside the kind, so a sandbox row is as tall as any other,
|
|
206
207
|
* and the cell is capped at its widest short kind ("AAB Sandbox"): only a
|
|
207
208
|
* longer kind, such as a sandbox "Simulator app", puts its tag under it rather
|
|
208
|
-
* than widen the table past its frame.
|
|
209
|
-
*
|
|
209
|
+
* than widen the table past its frame. A fold's build says "Older" after them,
|
|
210
|
+
* as a Bundles row says "Unreachable" beside its ID, wrapping under the kind
|
|
211
|
+
* within the same cap. On a card the tag sits beside the kind, under it only
|
|
212
|
+
* when a narrow card has no room.
|
|
210
213
|
*/
|
|
211
214
|
function BuildIdentity({
|
|
212
215
|
build,
|
|
213
216
|
inTable = false,
|
|
217
|
+
older = false,
|
|
218
|
+
newer,
|
|
214
219
|
}: {
|
|
215
220
|
readonly build: NativeBuildRow;
|
|
216
221
|
readonly inTable?: boolean;
|
|
222
|
+
/** "Older" after the kind and its tag, where Bundles says "Unreachable". */
|
|
223
|
+
readonly older?: boolean;
|
|
224
|
+
readonly newer?: NativeBuildRow;
|
|
217
225
|
}) {
|
|
218
226
|
if (inTable) {
|
|
219
227
|
return (
|
|
220
228
|
<span className="flex max-w-24 flex-wrap items-center gap-x-1.5 gap-y-1">
|
|
221
229
|
<BuildLink build={build} />
|
|
222
230
|
<SandboxBadge build={build} />
|
|
231
|
+
{older ? <OlderBuildLabel newer={newer} /> : null}
|
|
223
232
|
</span>
|
|
224
233
|
);
|
|
225
234
|
}
|
|
@@ -334,7 +343,7 @@ function BuildRow({
|
|
|
334
343
|
return (
|
|
335
344
|
<DataTableRow
|
|
336
345
|
aria-label={`Open native build ${build.id}`}
|
|
337
|
-
className="data-[older=true]:bg-muted/
|
|
346
|
+
className="data-[older=true]:bg-muted/60 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/60 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100"
|
|
338
347
|
data-older={older ? true : undefined}
|
|
339
348
|
onOpen={() =>
|
|
340
349
|
void navigate({
|
|
@@ -344,7 +353,7 @@ function BuildRow({
|
|
|
344
353
|
}
|
|
345
354
|
>
|
|
346
355
|
<TableCell>
|
|
347
|
-
<BuildIdentity build={build} inTable />
|
|
356
|
+
<BuildIdentity build={build} inTable newer={newer} older={older} />
|
|
348
357
|
</TableCell>
|
|
349
358
|
<TableCell>
|
|
350
359
|
<ChannelFilterButton channel={channel} onChannel={onChannel} />
|
|
@@ -371,14 +380,7 @@ function BuildRow({
|
|
|
371
380
|
{formatByteSize(build.byte_size)}
|
|
372
381
|
</TableCell>
|
|
373
382
|
<TableCell className="text-xs text-muted-foreground">
|
|
374
|
-
{
|
|
375
|
-
<RelativeTime ms={createdAt(build)} />
|
|
376
|
-
) : (
|
|
377
|
-
<span className="flex flex-col items-start gap-1">
|
|
378
|
-
<RelativeTime ms={createdAt(build)} />
|
|
379
|
-
<OlderBuildLabel newer={newer} />
|
|
380
|
-
</span>
|
|
381
|
-
)}
|
|
383
|
+
<RelativeTime ms={createdAt(build)} />
|
|
382
384
|
</TableCell>
|
|
383
385
|
<TableCell className="text-right">
|
|
384
386
|
<DownloadButton build={build} />
|
|
@@ -411,7 +413,7 @@ function BuildCard({
|
|
|
411
413
|
return (
|
|
412
414
|
<DataCard
|
|
413
415
|
aria-label={`Native build ${buildTitle(build)} ${build.id}`}
|
|
414
|
-
className="gap-3 border-b-0 data-[older=true]:bg-muted/
|
|
416
|
+
className="gap-3 border-b-0 data-[older=true]:bg-muted/60 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/60 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100"
|
|
415
417
|
data-older={older ? true : undefined}
|
|
416
418
|
onClick={openOutsideControls(
|
|
417
419
|
() =>
|
|
@@ -740,7 +742,9 @@ export function NativeBuildsTable({
|
|
|
740
742
|
{builds.isLoading || entries === undefined ? null : (
|
|
741
743
|
<DataTablePagination
|
|
742
744
|
count={count}
|
|
745
|
+
folded={{ ...foldedTotal(entries), label: "older" }}
|
|
743
746
|
label="Native build pages"
|
|
747
|
+
noun={["build", "builds"]}
|
|
744
748
|
pending={builds.isPlaceholderData}
|
|
745
749
|
newest={
|
|
746
750
|
paged
|
|
@@ -7,11 +7,14 @@ import { toast } from "sonner";
|
|
|
7
7
|
export function ShortHash({
|
|
8
8
|
value,
|
|
9
9
|
length,
|
|
10
|
+
shown = value.slice(0, length),
|
|
10
11
|
label,
|
|
11
12
|
}: {
|
|
12
13
|
readonly value: string;
|
|
13
14
|
/** How many leading characters show, such as 7 for a commit. */
|
|
14
|
-
readonly length
|
|
15
|
+
readonly length?: number;
|
|
16
|
+
/** What shows in place of the prefix, such as a masked UDID. */
|
|
17
|
+
readonly shown?: string;
|
|
15
18
|
/** What the value is, for the copy button, such as "commit". */
|
|
16
19
|
readonly label: string;
|
|
17
20
|
}) {
|
|
@@ -35,7 +38,7 @@ export function ShortHash({
|
|
|
35
38
|
translate="no"
|
|
36
39
|
type="button"
|
|
37
40
|
>
|
|
38
|
-
{
|
|
41
|
+
{shown}
|
|
39
42
|
</button>
|
|
40
43
|
);
|
|
41
44
|
}
|
|
@@ -311,7 +311,10 @@ export function PublishDialog({
|
|
|
311
311
|
type="submit"
|
|
312
312
|
>
|
|
313
313
|
{publish.isPending ? (
|
|
314
|
-
<Loader2
|
|
314
|
+
<Loader2
|
|
315
|
+
className="animate-spin motion-reduce:animate-none"
|
|
316
|
+
data-icon="inline-start"
|
|
317
|
+
/>
|
|
315
318
|
) : (
|
|
316
319
|
<Upload data-icon="inline-start" />
|
|
317
320
|
)}
|
|
@@ -323,7 +323,7 @@ export function VersionsCard({
|
|
|
323
323
|
>
|
|
324
324
|
{versions.isFetchingNextPage ? (
|
|
325
325
|
<Loader2
|
|
326
|
-
className="animate-spin"
|
|
326
|
+
className="animate-spin motion-reduce:animate-none"
|
|
327
327
|
data-icon="inline-start"
|
|
328
328
|
/>
|
|
329
329
|
) : null}
|
|
@@ -370,7 +370,10 @@ export function VersionsCard({
|
|
|
370
370
|
}
|
|
371
371
|
>
|
|
372
372
|
{rollback.isPending ? (
|
|
373
|
-
<Loader2
|
|
373
|
+
<Loader2
|
|
374
|
+
className="animate-spin motion-reduce:animate-none"
|
|
375
|
+
data-icon="inline-start"
|
|
376
|
+
/>
|
|
374
377
|
) : (
|
|
375
378
|
<RotateCcw data-icon="inline-start" />
|
|
376
379
|
)}
|
|
@@ -22,7 +22,9 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|
|
22
22
|
info: <InfoIcon className="size-4" />,
|
|
23
23
|
warning: <TriangleAlertIcon className="size-4" />,
|
|
24
24
|
error: <OctagonXIcon className="size-4" />,
|
|
25
|
-
loading:
|
|
25
|
+
loading: (
|
|
26
|
+
<Loader2Icon className="size-4 animate-spin motion-reduce:animate-none" />
|
|
27
|
+
),
|
|
26
28
|
}}
|
|
27
29
|
style={
|
|
28
30
|
{
|
package/src/lib/api-rpc.ts
CHANGED
|
@@ -414,5 +414,18 @@ export const getNativeBuildInstallEligibility = createServerFn({
|
|
|
414
414
|
prepare(),
|
|
415
415
|
import("./server/nativeBuildInstall"),
|
|
416
416
|
]);
|
|
417
|
-
return checkNativeBuildInstall(data.id, data.udid, deps
|
|
417
|
+
return checkNativeBuildInstall(data.id, data.udid, deps, {
|
|
418
|
+
// Under Apple's refusal only: an approver gets the iOS devices page.
|
|
419
|
+
canApprove: async () => {
|
|
420
|
+
const [{ getRequest }, { requireConsoleAccess }, { iosDeviceViewer }] =
|
|
421
|
+
await Promise.all([
|
|
422
|
+
import("@tanstack/react-start/server"),
|
|
423
|
+
import("./server/auth.server"),
|
|
424
|
+
import("./server/iosDevices"),
|
|
425
|
+
]);
|
|
426
|
+
const principal = await requireConsoleAccess(getRequest());
|
|
427
|
+
return (await iosDeviceViewer(principal, deps.config.deviceApprovers))
|
|
428
|
+
.canApprove;
|
|
429
|
+
},
|
|
430
|
+
});
|
|
418
431
|
});
|
|
@@ -59,6 +59,8 @@ export interface IosDevicesView {
|
|
|
59
59
|
readonly defaultName: string;
|
|
60
60
|
/** Whether iPhones can register through this Console. */
|
|
61
61
|
readonly registration: "ready" | "local-console" | "no-secret";
|
|
62
|
+
/** The secret that signs iPhone links, which `no-secret` asks to set. */
|
|
63
|
+
readonly secretName: string;
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
/** The registry, or one status of it, with what the viewer may do. */
|
|
@@ -72,12 +74,19 @@ export const getIosDevices = createServerFn({ method: "GET" })
|
|
|
72
74
|
return status === undefined ? {} : { status };
|
|
73
75
|
})
|
|
74
76
|
.handler(async ({ data }): Promise<IosDevicesView> => {
|
|
75
|
-
const
|
|
77
|
+
const [
|
|
78
|
+
{ request, core, principal, viewer, devices },
|
|
79
|
+
{ CONSOLE_SECRET_ENV },
|
|
80
|
+
] = await Promise.all([
|
|
81
|
+
registry(),
|
|
82
|
+
import("./server/nativeBuildDownloadLink"),
|
|
83
|
+
]);
|
|
76
84
|
return {
|
|
77
85
|
devices: await devices.listIosDevices(core, data.status),
|
|
78
86
|
viewer,
|
|
79
87
|
defaultName: devices.defaultDeviceName(principal),
|
|
80
88
|
registration: await devices.deviceRegistration(request),
|
|
89
|
+
secretName: CONSOLE_SECRET_ENV,
|
|
81
90
|
};
|
|
82
91
|
});
|
|
83
92
|
|
|
@@ -198,6 +198,11 @@ export type NativeBuildInstallEligibility =
|
|
|
198
198
|
* it names may be a sandbox's or another app's.
|
|
199
199
|
*/
|
|
200
200
|
readonly newerBuild: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* Whether the viewer approves devices, which decides the next step under
|
|
203
|
+
* Apple's refusal: asked only when `registry` carries one, else false.
|
|
204
|
+
*/
|
|
205
|
+
readonly canApprove: boolean;
|
|
201
206
|
readonly expiresAt: string | null;
|
|
202
207
|
/** The token of the Install button's manifest and download. */
|
|
203
208
|
readonly link: NativeBuildDownloadLinkResult;
|
|
@@ -277,10 +282,13 @@ export const checkNativeBuildInstall = async (
|
|
|
277
282
|
request,
|
|
278
283
|
now = Date.now(),
|
|
279
284
|
fetch = globalThis.fetch,
|
|
285
|
+
canApprove = async () => false,
|
|
280
286
|
}: {
|
|
281
287
|
readonly request?: Request;
|
|
282
288
|
readonly now?: number;
|
|
283
289
|
readonly fetch?: typeof globalThis.fetch;
|
|
290
|
+
/** Whether the viewer approves devices, asked only under Apple's refusal. */
|
|
291
|
+
readonly canApprove?: () => Promise<boolean>;
|
|
284
292
|
} = {},
|
|
285
293
|
): Promise<NativeBuildInstallEligibility> => {
|
|
286
294
|
const build = await core.getNativeBuild(id);
|
|
@@ -317,6 +325,7 @@ export const checkNativeBuildInstall = async (
|
|
|
317
325
|
fetch,
|
|
318
326
|
now,
|
|
319
327
|
}),
|
|
328
|
+
canApprove: registry?.apple_error == null ? false : await canApprove(),
|
|
320
329
|
expiresAt,
|
|
321
330
|
link: await issueNativeBuildDownloadLink(
|
|
322
331
|
id,
|
package/src/routes/index.tsx
CHANGED
|
@@ -42,6 +42,7 @@ import {
|
|
|
42
42
|
foldKey,
|
|
43
43
|
foldLabel,
|
|
44
44
|
FoldStatus,
|
|
45
|
+
foldedTotal,
|
|
45
46
|
groupsOf,
|
|
46
47
|
useOpenFolds,
|
|
47
48
|
} from "@/components/FoldedRows";
|
|
@@ -648,7 +649,7 @@ function BundlesPage() {
|
|
|
648
649
|
className={cn(
|
|
649
650
|
"gap-3",
|
|
650
651
|
release.currentlyUnreachable &&
|
|
651
|
-
"bg-muted/
|
|
652
|
+
"bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100",
|
|
652
653
|
isExpanded && "border-b-0 bg-primary/5",
|
|
653
654
|
)}
|
|
654
655
|
data-state={search.releaseId === release.id ? "selected" : undefined}
|
|
@@ -732,7 +733,7 @@ function BundlesPage() {
|
|
|
732
733
|
aria-label={`Open bundle ${release.id}`}
|
|
733
734
|
className={cn(
|
|
734
735
|
release.currentlyUnreachable &&
|
|
735
|
-
"bg-muted/
|
|
736
|
+
"bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100",
|
|
736
737
|
isExpanded && "bg-primary/5",
|
|
737
738
|
)}
|
|
738
739
|
data-state={search.releaseId === release.id ? "selected" : undefined}
|
|
@@ -987,7 +988,9 @@ function BundlesPage() {
|
|
|
987
988
|
{!releasesQuery.isError && !releasesQuery.isPending ? (
|
|
988
989
|
<DataTablePagination
|
|
989
990
|
count={releases.length}
|
|
991
|
+
folded={{ ...foldedTotal(entries), label: "unreachable" }}
|
|
990
992
|
label="Bundle pagination"
|
|
993
|
+
noun={["bundle", "bundles"]}
|
|
991
994
|
pending={releasesQuery.isPlaceholderData}
|
|
992
995
|
newest={onLaterPage ? { search: newestSearch, to: "/" } : undefined}
|
|
993
996
|
next={nextSearch ? { search: nextSearch, to: "/" } : undefined}
|
package/src/styles.css
CHANGED
|
@@ -44,8 +44,8 @@ code {
|
|
|
44
44
|
* A channel's badge, by name, and any other channel's. Each text keeps
|
|
45
45
|
* AA contrast on its own 10% tint.
|
|
46
46
|
*/
|
|
47
|
-
--channel-production: oklch(0.
|
|
48
|
-
--channel-staging: oklch(0.
|
|
47
|
+
--channel-production: oklch(0.487 0.154 150.069);
|
|
48
|
+
--channel-staging: oklch(0.514 0.135 66.442);
|
|
49
49
|
--channel-dev: oklch(0.488 0.243 264.376);
|
|
50
50
|
--channel-other: oklch(0.373 0.034 259.733);
|
|
51
51
|
/*
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Di as e,Ri as t,Vi as n,Vr as r,_ as i,b as a,g as o,gr as s,v as c,x as l,y as u}from"./sidebar-yC7KdImc.js";import{f as d}from"./insights-api-B6Gj74n5.js";import{t as f}from"./check-CqWNyG93.js";import{a as p}from"./useCompositeListItem-lAmUsXcc.js";import{t as m}from"./copy-CH1__JAW.js";import{r as h,t as g}from"./HashValueDisplay-DMweha_0.js";import{s as _}from"./input-group-B7jx0icS.js";import{t as v}from"./smartphone-CxP0GGT6.js";import{t as y}from"./badge-DJMW4YVM.js";import{n as b}from"./dist-Bw_uSBJn.js";import{i as x,o as S,r as C,t as w}from"./empty-DsbLxQ1w.js";import{n as T,r as E}from"./InsightsPageHeader-D5TJspVe.js";var D=r(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),O=r(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),k=r(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),A=r(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),j=n(t(),1),M=e(),N={UPDATE_DOWNLOADED:{label:`Downloaded`,description:`Downloaded. It launches when the app restarts.`,variant:`default`,icon:h},UPDATE_APPLIED:{label:`Launched`,description:`The app restarted into the downloaded bundle.`,variant:`success`,icon:f},RECOVERED:{label:`Crashed`,description:`Crashed on the bundle and rolled back.`,variant:`warning`,icon:_},UPDATE_FAILED:{label:`Update failed`,description:`An update check, download, or install failed.`,variant:`destructive`,icon:k},UNCHANGED:{label:`Launch`,description:`The app launched; the report changed nothing.`,variant:`secondary`,icon:D}},P=e=>{let{kinds:t=[],previous:n}=e.change??{};return t.includes(`first_seen`)?{label:`First seen`,description:`The installation's first report to this server.`,variant:`secondary`,icon:A}:t.includes(`app_version`)||t.includes(`native_build`)?{label:`App updated`,description:n&&n.appVersion!==e.appVersion?`From app ${n.appVersion} to ${e.appVersion}.`:`A new build of the same app version.`,variant:`secondary`,icon:v}:t.includes(`bundle`)?{label:`Launched`,description:`Seen running this bundle; the report of the restart into it never arrived.`,variant:`success`,icon:f}:t.includes(`release`)?{label:`Release adopted`,description:`The bundle it runs now ships under another release.`,variant:`secondary`,icon:O}:t.includes(`channel`)?{label:`Channel changed`,description:n?`From ${n.channel} to ${e.channel}.`:`It reports on another channel.`,variant:`secondary`,icon:O}:N.UNCHANGED},F=e=>e.type===`UNCHANGED`&&e.change?P({change:e.change,appVersion:e.appVersion??``,channel:e.channel??``}):N[e.type];function I(){let[e,t]=(0,j.useState)(`UTC`);return(0,j.useEffect)(()=>{t(Intl.DateTimeFormat().resolvedOptions().timeZone)},[]),new Intl.DateTimeFormat(`en`,{timeZone:e,timeZoneName:`shortOffset`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`})}function L(e,t){let n=Object.fromEntries(t.formatToParts(new Date(e)).map(({type:e,value:t})=>[e,t])),r=n.timeZoneName===`GMT`?`GMT+0`:n.timeZoneName;return`${n.year}/${n.month}/${n.day} ${n.hour}:${n.minute}:${n.second} ${r}`}function R({value:e,formatter:t,touch:n=!1}){let r=new Date(e),i=L(e,t);return(0,M.jsxs)(`details`,{className:`group/time`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring/30 [&::-webkit-details-marker]:hidden ${n?`flex min-h-11 items-center`:``}`,children:(0,M.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,M.jsx)(`time`,{dateTime:r.toISOString(),className:`whitespace-nowrap`,children:i}),(0,M.jsx)(p,{"aria-hidden":`true`,className:`size-3 text-muted-foreground group-open/time:rotate-180`})]})}),(0,M.jsx)(`p`,{className:`mt-2 text-muted-foreground`,children:r.toISOString().replace(`T`,` `).replace(`Z`,` UTC`)})]})}var z={patch:`A patch delivered it.`,manifest:`Only the changed files were downloaded.`,archive:`The full archive was downloaded.`},B=e=>{if(e.late)return`Counted nothing: the installation had already downloaded or run this bundle.`;if(e.impliedDownload)return`Its download report never arrived; the download counted with it.`;if(e.type===`UPDATE_FAILED`&&e.failure)return d(e.failure);if(e.type===`UPDATE_DOWNLOADED`&&e.delivery){let t=z[e.delivery]??null;return e.patchFallback?`The patch failed. ${t??``}`.trim():t}return null};function V({response:e}){let t=async()=>{try{await navigator.clipboard.writeText(e.body),b.success(`Response body copied`)}catch{b.error(`Could not copy the response body`)}};return(0,M.jsxs)(`section`,{"aria-label":`Response body`,className:`flex min-w-0 flex-col gap-3`,children:[(0,M.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response body`}),(0,M.jsxs)(s,{variant:`outline`,className:`min-h-11`,disabled:e.body===null||e.body===``,onClick:()=>void t(),children:[(0,M.jsx)(m,{"aria-hidden":`true`,"data-icon":`inline-start`}),` Copy body`]})]}),e.bodyTruncated?(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Truncated to the 4 KiB reporting limit. Copy includes only the stored text.`}):null,e.body?(0,M.jsx)(`pre`,{className:`rounded-md border bg-muted/30 p-4 font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:e.body}):(0,M.jsx)(w,{children:(0,M.jsxs)(x,{children:[(0,M.jsx)(S,{children:e.body===null?`Response body unavailable`:`Empty response body`}),(0,M.jsx)(C,{children:e.body===null?`The client received the HTTP status but could not read the body.`:e.status===304?`The server returned no body. The client can reuse its cached catalog.`:`The server returned no text in this response.`})]})})]})}function H({event:e}){let t=e.httpResponse,n=I(),r=t.status===304?`Not modified`:t.status>=500?`Server error`:t.status>=400?`Request error`:t.status>=300?`Redirect`:`Success`,d=t.resource===`catalog`?`Catalog`:`Artifact`,f=[[`App`,e.platform&&`${e.platform===`ios`?`iOS`:`Android`} ${e.appVersion}`],[`Channel`,e.channel],[`SDK`,e.sdkVersion],[`Installation`,e.installId]].filter(([,e])=>e!=null);return(0,M.jsxs)(o,{children:[(0,M.jsxs)(l,{"aria-label":`View ${d.toLowerCase()} response: HTTP ${t.status}`,render:(0,M.jsx)(s,{variant:`ghost`,className:`-ml-2 h-auto min-h-11 justify-start`}),children:[(0,M.jsxs)(y,{variant:t.status>=400?`destructive`:`secondary`,children:[`HTTP `,t.status]}),(0,M.jsxs)(`span`,{children:[d,` response`]})]}),(0,M.jsxs)(i,{className:`data-[side=right]:w-full data-[side=right]:sm:max-w-2xl`,children:[(0,M.jsxs)(u,{className:`border-b pr-14`,children:[(0,M.jsx)(a,{children:`HTTP response`}),(0,M.jsxs)(c,{children:[d,` · HTTP `,t.status,` · `,r,`. Most recent response available when this report was created.`]})]}),(0,M.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-6`,children:[(0,M.jsxs)(`section`,{"aria-label":`Request`,className:`flex min-w-0 flex-col gap-2`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Request`}),(0,M.jsxs)(`p`,{className:`font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:[`GET `,t.path]}),t.receivedAtMs==null?null:(0,M.jsxs)(`div`,{className:`text-xs text-muted-foreground`,children:[`Response received`,` `,(0,M.jsx)(R,{value:t.receivedAtMs,formatter:n})]})]}),(0,M.jsx)(V,{response:t}),f.length?(0,M.jsxs)(`section`,{"aria-label":`Response context`,className:`flex flex-col gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response context`}),(0,M.jsx)(`dl`,{className:`grid grid-cols-2 gap-x-6 gap-y-4`,children:f.map(([e,t])=>(0,M.jsxs)(`div`,{className:`min-w-0`,children:[(0,M.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,M.jsx)(`dd`,{className:`mt-1 text-sm wrap-anywhere`,children:t})]},e))})]}):null]})]})]})}function U({event:e}){let t=F(e),n=t.icon,r=B(e);return(0,M.jsxs)(`div`,{className:`flex min-w-0 flex-col items-start gap-2`,children:[(0,M.jsxs)(y,{variant:t.variant,className:`gap-1 whitespace-nowrap [&_svg]:size-3`,children:[(0,M.jsx)(n,{"aria-hidden":`true`}),t.label]}),(0,M.jsx)(`p`,{className:`max-w-56 whitespace-pre-wrap wrap-anywhere text-xs text-muted-foreground`,children:e.type===`UPDATE_FAILED`&&r?r:t.description}),e.httpResponse?(0,M.jsx)(H,{event:e}):null,e.type===`UPDATE_FAILED`&&e.failure?.errorStack?(0,M.jsxs)(`details`,{className:`w-full max-w-56 text-xs`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground`,children:`Stack trace`}),(0,M.jsx)(`pre`,{className:`mt-2 max-h-64 overflow-auto whitespace-pre-wrap wrap-anywhere font-mono`,children:e.failure.errorStack})]}):null,e.type!==`UPDATE_FAILED`&&r?(0,M.jsx)(`p`,{className:`max-w-56 whitespace-normal text-xs text-muted-foreground`,children:r}):null]})}function W({event:e,touch:t=!1}){let n=e.type===`UPDATE_DOWNLOADED`,r=e.type===`UPDATE_FAILED`,i=!r||e.failure?.stage!==`check`,a=e.type===`UNCHANGED`&&e.change?.kinds.includes(`bundle`)===!0&&e.change.previous!==void 0,o=a?e.change.previous.bundleId:e.fromBundleId,s=n||r||a||e.type===`UPDATE_APPLIED`||e.type===`RECOVERED`;return(0,M.jsxs)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] items-center gap-x-2 gap-y-2`,children:[o&&s?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n||r?`Running`:`From`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(g,{value:o,buttonClassName:t?`min-h-11 px-3`:void 0}),E(o,a?e.change.previous.minBundleId:e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null,i?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n?`Pending`:r?`Target`:s?`To`:`Current`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(g,{value:e.toBundleId,buttonClassName:t?`min-h-11 px-3`:void 0}),E(e.toBundleId,e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null]})}export{H as a,V as i,R as n,I as o,U as r,W as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Di as e,Vr as t,at as n,nt as r,rt as i,vr as a}from"./sidebar-yC7KdImc.js";import{n as o}from"./dist-Bw_uSBJn.js";var s=t(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),c=e(),l=(e,t=12)=>e.length>t?`${e.slice(0,Math.max(1,t-4))}…${e.slice(-4)}`:e;function u({value:e,display:t=e,maxLength:s=12,className:u,buttonClassName:d}){let f=t!==e||t.length>s,p=l(t,s),m=async()=>{try{await navigator.clipboard.writeText(e),o.success(`Copied to clipboard`,{description:e})}catch{o.error(`Failed to copy value`)}},h=e=>{e.preventDefault(),e.stopPropagation(),m()},g=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),m())},_=(0,c.jsx)(`span`,{translate:`no`,className:a(`font-mono text-xs tabular-nums whitespace-nowrap`,u),children:p});return(0,c.jsxs)(r,{children:[(0,c.jsx)(n,{render:(0,c.jsx)(`button`,{type:`button`,"aria-label":`Copy full value: ${e}`,translate:`no`,className:a(`ring-ring/30 bg-muted/40 border-border/70 relative inline-flex min-w-0 after:absolute after:inset-x-0 after:-inset-y-3 sm:after:hidden max-w-full cursor-pointer items-center rounded-md border px-1.5 py-0.5 align-top shadow-xs outline-none transition-[background-color,border-color,transform,box-shadow]`,`hover:bg-muted/70 active:scale-[0.98] active:bg-muted/85 focus-visible:ring-[2px]`,`touch-manipulation select-none motion-reduce:transition-none motion-reduce:active:scale-100`,!f&&`cursor-copy`,d),onClick:h,onKeyDown:g}),children:_}),(0,c.jsx)(i,{hidden:!f,children:(0,c.jsx)(`p`,{translate:`no`,className:`break-all font-mono text-xs tabular-nums`,children:e})})]})}export{l as n,s as r,u as t};
|