@hot-updater/console 1.2.0-rc.26 → 1.2.0-rc.28
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-OlRj4Jz0.js → -native-builds-search-7blX2yQW.js} +1 -1
- package/.output/public/assets/BundleIdDisplay-B0gAH01c.js +1 -0
- package/.output/public/assets/CompositeItem-Dy4xgOMg.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-DUqlpHCp.js → ConsoleFeatureUnavailable-cy_snb33.js} +1 -1
- package/.output/public/assets/{EventDetails-DZsRlDHk.js → EventDetails-sxag8Hfc.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-MoZMmTeP.js → HashValueDisplay-DMweha_0.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-2bTrjXln.js → InsightsPageHeader-D5TJspVe.js} +1 -1
- package/.output/public/assets/IosInstall-B5NspihF.js +1 -0
- package/.output/public/assets/NativeBuildsNav-CjOOlbEu.js +1 -0
- package/.output/public/assets/{NotFoundPage-Ckb5GMhh.js → NotFoundPage-DDOJarFa.js} +1 -1
- package/.output/public/assets/{PlatformIcon-CJ69KopR.js → PlatformIcon-BBvlg6JY.js} +1 -1
- package/.output/public/assets/RelativeTime-CY1dKZpv.js +1 -0
- package/.output/public/assets/{RolloutPercentageBadge-G6qt8rVb.js → RolloutPercentageBadge-BHgHkBGB.js} +1 -1
- package/.output/public/assets/RowReason-BMx_vclu.js +1 -0
- package/.output/public/assets/SandboxBadge-irEkMf1P.js +1 -0
- package/.output/public/assets/TargetDisplay-DB8D019f.js +1 -0
- package/.output/public/assets/{alert-dialog-DiRLrFVe.js → alert-dialog-CLC_h1fL.js} +1 -1
- package/.output/public/assets/api-DLryz9hA.js +1 -0
- package/.output/public/assets/api-keys-Cd-aNt-v.js +1 -0
- package/.output/public/assets/api-keys-D3tAc4Uu.js +1 -0
- package/.output/public/assets/arrow-left-DQjHJAnT.js +1 -0
- package/.output/public/assets/arrow-right-CXp_K3xK.js +1 -0
- package/.output/public/assets/arrow-up-right-BFafIOrq.js +1 -0
- package/.output/public/assets/{badge-D0NFvUY5.js → badge-DJMW4YVM.js} +1 -1
- package/.output/public/assets/card-C4sBAMU-.js +1 -0
- package/.output/public/assets/check-CqWNyG93.js +1 -0
- package/.output/public/assets/chevron-right-DNbYTBX1.js +1 -0
- package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-BCkZpskJ.js} +1 -1
- package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-DZrZK5gR.js} +1 -1
- package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-BO5V64P3.js} +1 -1
- package/.output/public/assets/{copy-DsuLj3oj.js → copy-CH1__JAW.js} +1 -1
- package/.output/public/assets/dialog-tCTZmAo8.js +1 -0
- package/.output/public/assets/{dist-Bf1BPKMs.js → dist-Bw_uSBJn.js} +1 -1
- package/.output/public/assets/empty-DsbLxQ1w.js +1 -0
- package/.output/public/assets/field-DL4OXTJ7.js +1 -0
- package/.output/public/assets/git-branch-ByZMEBxZ.js +1 -0
- package/.output/public/assets/history-wYnPoVmT.js +1 -0
- package/.output/public/assets/index-CAnjb7M2.js +10 -0
- package/.output/public/assets/{input-group-D_NfhUbX.js → input-group-B7jx0icS.js} +1 -1
- package/.output/public/assets/insights-DIs4nJI9.js +2 -0
- package/.output/public/assets/insights-DTF7C4jb.js +42 -0
- package/.output/public/assets/insights-api-B6Gj74n5.js +1 -0
- package/.output/public/assets/insights-bUk3ChoU.js +1 -0
- package/.output/public/assets/{insights-search-CYPrQVUC.js → insights-search-TfRz5kGG.js} +1 -1
- package/.output/public/assets/insights-usage-rpc-B4V-Qqo4.js +1 -0
- package/.output/public/assets/insights_.distribution-BPl5oRt4.js +2 -0
- package/.output/public/assets/{insights_.distribution-_dZi1_ay.js → insights_.distribution-BqfzAuAf.js} +1 -1
- package/.output/public/assets/insights_.distribution-BqtmnGTt.js +1 -0
- package/.output/public/assets/installations-6U8c_03X.js +1 -0
- package/.output/public/assets/{installations-Y_7QW_p8.js → installations-BU65zztK.js} +1 -1
- package/.output/public/assets/installations-D3MbzcFb.js +2 -0
- package/.output/public/assets/{key-round-DzBe6DHr.js → key-round-B-P_hhUB.js} +1 -1
- package/.output/public/assets/{link-DTEyW70e.js → link-CN3iHC4A.js} +2 -2
- package/.output/public/assets/{list-B6GeoQ_b.js → list-fFsS8Wxe.js} +1 -1
- package/.output/public/assets/loader-circle-GWIgH0fo.js +1 -0
- package/.output/public/assets/native-builds-BdzfAFnF.js +1 -0
- package/.output/public/assets/native-builds-CWwvuOXr.js +2 -0
- package/.output/public/assets/native-builds-Eh72Vr2G.js +1 -0
- package/.output/public/assets/native-builds_._buildId-33ksAlnZ.js +1 -0
- package/.output/public/assets/native-builds_._buildId-BVA5GnZP.js +2 -0
- package/.output/public/assets/native-builds_.devices-CElovmwq.js +1 -0
- package/.output/public/assets/native-builds_.devices-DWtcOVYO.js +2 -0
- package/.output/public/assets/{package-ytYrywZH.js → package-CXSDZsME.js} +1 -1
- package/.output/public/assets/plus-Cx-yFNd9.js +1 -0
- package/.output/public/assets/preload-helper-CRQjUQaZ.js +1 -0
- package/.output/public/assets/{refresh-cw-C-tvoCcE.js → refresh-cw-BgiOaFX3.js} +1 -1
- package/.output/public/assets/{relativeTime-DvyxGIsm.js → relativeTime-CBmDq8wh.js} +1 -1
- package/.output/public/assets/remote-config-B3oq9qR0.js +1 -0
- package/.output/public/assets/remote-config-CGbqsPh_.js +6 -0
- package/.output/public/assets/remote-config-D1OkfQKt.js +1 -0
- package/.output/public/assets/{rotate-cw-Clk5xTeE.js → rotate-cw-C1v7YuN7.js} +1 -1
- package/.output/public/assets/{routes-gQXSzO_n.js → routes-BTG3rg0l.js} +2 -2
- package/.output/public/assets/routes-CVbPjRKo.js +1 -0
- package/.output/public/assets/search-DiOSjaYL.js +1 -0
- package/.output/public/assets/select-CA8r-UUe.js +1 -0
- package/.output/public/assets/send-BgXZNiEA.js +1 -0
- package/.output/public/assets/{sidebar-Di9SN47G.js → sidebar-yC7KdImc.js} +1 -1
- package/.output/public/assets/smartphone-CxP0GGT6.js +1 -0
- package/.output/public/assets/styles-B0kzy3kp.css +2 -0
- package/.output/public/assets/switch-BTHWmKQ5.js +1 -0
- package/.output/public/assets/table-CwF7yxj4.js +1 -0
- package/.output/public/assets/tabs-CHNnCyvw.js +1 -0
- package/.output/public/assets/trash-2-CYISg7ZF.js +1 -0
- package/.output/public/assets/{undo-2-Bt0YXG26.js → undo-2-Bod3vw7x.js} +1 -1
- package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-lAmUsXcc.js} +1 -1
- package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-w3qYaU2L.js} +1 -1
- package/.output/server/{__23tanstack-start-server-fn-resolver-z8rr63xV.mjs → __23tanstack-start-server-fn-resolver-BFiPs5uv.mjs} +85 -49
- package/.output/server/_libs/@base-ui/react+[...].mjs +1488 -183
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_libs/lucide-react.mjs +22 -2
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/react-redux+[...].mjs +1 -1
- package/.output/server/_libs/recharts+[...].mjs +1 -1
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tanstack__react-query.mjs +1 -1
- package/.output/server/_ssr/{-native-builds-search-M6t7EIt4.mjs → -native-builds-search-Mm_AZoRU.mjs} +8 -2
- package/.output/server/_ssr/{BundleIdDisplay-DRnAzJse.mjs → BundleIdDisplay-BSBR5eJ3.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-BEU7r4aH.mjs → ConsoleFeatureUnavailable-DcZ4JBVq.mjs} +8 -8
- package/.output/server/_ssr/CopyableText-DgNEsByt.mjs +33 -0
- package/.output/server/_ssr/{EventDetails-CjT6o2sJ.mjs → EventDetails-CUHZuwei.mjs} +9 -9
- package/.output/server/_ssr/{HashValueDisplay-Bkim8r3-.mjs → HashValueDisplay-B9ORaCcP.mjs} +3 -3
- package/.output/server/_ssr/{InsightsPageHeader-Ctw4N3SZ.mjs → InsightsPageHeader-C0bJqC-n.mjs} +9 -9
- package/.output/server/_ssr/IosInstall-C5Y5gnDY.mjs +574 -0
- package/.output/server/_ssr/NativeBuildsNav-hFiyBaFW.mjs +38 -0
- package/.output/server/_ssr/{NotFoundPage-Bh3gFsR6.mjs → NotFoundPage-D4xRjmIA.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CMLs3Wez.mjs → PlatformIcon-BpGOEXjU.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-DjdCU0J7.mjs → RelativeTime-DnvxB666.mjs} +20 -9
- package/.output/server/_ssr/{RolloutPercentageBadge-BiIHw-V2.mjs → RolloutPercentageBadge-NBnIOzY9.mjs} +4 -4
- package/.output/server/_ssr/RowReason-B_jZN48d.mjs +169 -0
- package/.output/server/_ssr/{StoreSubmission-Cv59joPo.mjs → SandboxBadge-CFtTG1ZJ.mjs} +17 -17
- package/.output/server/_ssr/{TargetDisplay-D1PKOupt.mjs → TargetDisplay-0sb03v_6.mjs} +7 -33
- package/.output/server/_ssr/{alert-dialog-BOKQTpmP.mjs → alert-dialog-SLr1Q_AI.mjs} +2 -2
- package/.output/server/_ssr/{api-CDvGGB1B.mjs → api-CkgOQzSb.mjs} +74 -17
- package/.output/server/_ssr/{api-keys-DvbSgd9L.mjs → api-keys-BP7NJtoX.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-NYJ0VaDB.mjs → api-keys-BcSzq0TA.mjs} +11 -11
- package/.output/server/_ssr/{api-keys-rpc-B0MrcD15.mjs → api-keys-rpc-IWPOq5vn.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-CIB9gcI7.mjs → api-rpc-cNJTB3v4.mjs} +48 -32
- package/.output/server/_ssr/{auth-rpc-DsIffEXe.mjs → auth-rpc-oaBbtxSP.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-Dt9XHLs_.mjs → auth.server-WQw9JjMm.mjs} +587 -19
- package/.output/server/_ssr/{badge-KS3YftV5.mjs → badge-n3c0OTBQ.mjs} +2 -2
- package/.output/server/_ssr/{bundleActivity-BGVvqWx7.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
- package/.output/server/_ssr/{card-CG5GqIoA.mjs → card-CYgCcRUd.mjs} +2 -2
- package/.output/server/_ssr/{config.server-CJs-9Zd_.mjs → config.server-R3KQbcML.mjs} +4 -4
- package/.output/server/_ssr/{console-access-ClmTMpo_.mjs → console-access-BLVi82IN.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-CpMYF0Pb.mjs → console-features-api-B2JvJOlE.mjs} +4 -4
- package/.output/server/_ssr/{console-features-rpc-D-dr-WF8.mjs → console-features-rpc-LAxQoSNw.mjs} +3 -3
- package/.output/server/_ssr/{console-features-CRP-pfov.mjs → console-features-xaGDhRC9.mjs} +1 -1
- package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
- package/.output/server/_ssr/{dialog-DvHMJkq7.mjs → dialog-eru_h5oK.mjs} +2 -2
- package/.output/server/_ssr/{downloadBundle-BX8ODCZT.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
- package/.output/server/_ssr/{empty-Bx8DnyWN.mjs → empty-Bu4qodCx.mjs} +3 -3
- package/.output/server/_ssr/{failureReports-C_CmBF4x.mjs → failureReports-BA2eg11O.mjs} +3 -3
- package/.output/server/_ssr/{field-BVI4lxoz.mjs → field-DA5lwO5U.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-BJTufthT.mjs → getBundleChildren-CdqFonhl.mjs} +1 -1
- package/.output/server/_ssr/{input-group-CpJwooTk.mjs → input-group-VV5E3q78.mjs} +2 -2
- package/.output/server/_ssr/{insights-b1hq1O0p.mjs → insights-BJIt1xuT.mjs} +2 -2
- package/.output/server/_ssr/{insights-B-VtObqr.mjs → insights-C23mopzv.mjs} +5 -5
- package/.output/server/_ssr/{insights-DxlHHXPK.mjs → insights-Ci82qdkq.mjs} +27 -27
- package/.output/server/_ssr/{insights-api-8PWQ7PiR.mjs → insights-api-BwXMKUSe.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-Bz3sWNZm.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-DNQ9qVVf.mjs → insights-failures-7zH97WOO.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-pY2KV9HI.mjs → insights-failures-rpc-BuZ-jnby.mjs} +10 -10
- package/.output/server/_ssr/{insights-recovery-DOkpqnQ8.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-CejmWL_y.mjs → insights-recovery-rpc-DrXSy9aA.mjs} +6 -6
- package/.output/server/_ssr/{insights-rpc-D_7d_AAJ.mjs → insights-rpc-DyrIZg3a.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-CoMkZvRt.mjs → insights-search-CNkNB-aa.mjs} +3 -3
- package/.output/server/_ssr/{insights-usage-4KDIN3Kg.mjs → insights-usage-h8fipPTv.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-CrGZDHzO.mjs → insights-usage-rpc-C7UC1lom.mjs} +6 -6
- package/.output/server/_ssr/{insights-usage-rpc-B1XSuara.mjs → insights-usage-rpc-cTgmD-Ej.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-DmQdJZqT.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-EOOOOTb6.mjs → insights_.distribution-BauOpBTE.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-CpqnDZNG.mjs → insights_.distribution-CIY_IGmh.mjs} +16 -16
- package/.output/server/_ssr/{insights_.distribution-B9sPDvG4.mjs → insights_.distribution-wfFKEv-Z.mjs} +5 -5
- package/.output/server/_ssr/{installations-BOI_y7Ma.mjs → installations-Ba3YVrAf.mjs} +13 -13
- package/.output/server/_ssr/{installations-dWlOOS7Y.mjs → installations-VzacOKHp.mjs} +2 -2
- package/.output/server/_ssr/{installations-D0_0hzdi.mjs → installations-jGW7nvEV.mjs} +4 -4
- package/.output/server/_ssr/ios-devices-rpc-Bhn7VVIh.mjs +138 -0
- package/.output/server/_ssr/iosDeviceProfile-_XT8TpgZ.mjs +176 -0
- package/.output/server/_ssr/iosDevices-Bc27J72d.mjs +129 -0
- package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
- package/.output/server/_ssr/{native-builds-OUdRtp6m.mjs → native-builds-BXBkklfA.mjs} +28 -6
- package/.output/server/_ssr/{native-builds-Bx_az6YZ.mjs → native-builds-DZFJGcHy.mjs} +3 -3
- package/.output/server/_ssr/{native-builds-C721Rw23.mjs → native-builds-DiNkKHly.mjs} +221 -86
- package/.output/server/_ssr/{native-builds_._buildId-ubi48Sfs.mjs → native-builds_._buildId-CuM1PsT6.mjs} +108 -294
- package/.output/server/_ssr/{native-builds_._buildId-YItxv8j9.mjs → native-builds_._buildId-D0n4QZY6.mjs} +3 -3
- package/.output/server/_ssr/native-builds_.devices-D0JJlX8E.mjs +689 -0
- package/.output/server/_ssr/native-builds_.devices-DiM2FdcW.mjs +10 -0
- package/.output/server/_ssr/{nativeBuildDownloadLink-C0I8eLpS.mjs → nativeBuildDownloadLink-CvvWuhh0.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildInstall-CxG8K8TL.mjs → nativeBuildInstall-BqcVHBaD.mjs} +54 -7
- package/.output/server/_ssr/{nativeBuilds-CRLmvFaO.mjs → nativeBuilds-Cub0EUGN.mjs} +135 -13
- package/.output/server/_ssr/{publicConsoleBase-DvHYxDaG.mjs → publicConsoleBase-f67NLLXZ.mjs} +11 -3
- package/.output/server/_ssr/{release-adoption-C7sUFDwa.mjs → release-adoption-DeICczY7.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-DcZAYRWJ.mjs → release-adoption-rpc-Dm-5yAJG.mjs} +8 -8
- package/.output/server/_ssr/{releaseAdoption-D6ScSu-W.mjs → releaseAdoption-kHZo8P90.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-gKqDKMxk.mjs → remote-config-D1BhIBKu.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-DOcSXzxG.mjs → remote-config-D7RruPiO.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-BZ_vGV97.mjs → remote-config-ZFm-l4Gi.mjs} +20 -20
- package/.output/server/_ssr/{remote-config-rpc-CVPd3V69.mjs → remote-config-rpc-C7AZy37o.mjs} +3 -3
- package/.output/server/_ssr/{router-Bcyej4cr.mjs → router-BGkGFMsT.mjs} +72 -75
- package/.output/server/_ssr/{routes-B10xsCh4.mjs → routes-CJJxz-Ak.mjs} +304 -230
- package/.output/server/_ssr/{routes-ddBRVSju.mjs → routes-CiJ2dhL9.mjs} +14 -13
- package/.output/server/_ssr/{runtime.server-wcHT2Cop.mjs → runtime.server-CkSbWaZm.mjs} +2 -2
- package/.output/server/_ssr/{schema-migration-rpc-iWZzLv70.mjs → schema-migration-rpc-D4YlwvGH.mjs} +3 -3
- package/.output/server/_ssr/{select-i4WT0c9r.mjs → select-BB8GE7OZ.mjs} +3 -3
- package/.output/server/_ssr/{server-CMgMPrDx.mjs → server-DAHTchcr.mjs} +5 -5
- package/.output/server/_ssr/{sidebar-mIQgB0iy.mjs → sidebar-CsKVgZHa.mjs} +3 -3
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-By4wHYjG.mjs → start-D3noqqOK.mjs} +1 -1
- package/.output/server/_ssr/{switch-DR8EAh5C.mjs → switch-BvvmP7Y3.mjs} +3 -3
- package/.output/server/_ssr/{table-DXmK6G7A.mjs → table-WKKzprFn.mjs} +2 -2
- package/.output/server/_ssr/{tabs-DAfypcYe.mjs → tabs-BJ-4SgmC.mjs} +4 -4
- package/.output/server/_ssr/{updateFailures-DNiv3S_y.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
- package/.output/server/_tanstack-start-manifest_v-CSUJeG5D.mjs +219 -0
- package/.output/server/index.mjs +436 -366
- package/lib/index.d.mts +9 -0
- package/package.json +7 -30
- package/src/components/DataTable.tsx +21 -2
- package/src/components/FoldedRows.tsx +201 -0
- package/src/components/RowReason.tsx +56 -0
- package/src/components/features/native-builds/InstallCard.tsx +1 -1
- package/src/components/features/native-builds/IosDevicesPage.tsx +892 -0
- package/src/components/features/native-builds/IosInstall.tsx +292 -62
- package/src/components/features/native-builds/IpaDevicesCard.tsx +107 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +7 -0
- package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +2 -0
- package/src/components/features/native-builds/NativeBuildsTable.tsx +214 -30
- package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
- package/src/index.ts +9 -0
- package/src/lib/api-rpc.ts +56 -29
- package/src/lib/api.ts +65 -2
- package/src/lib/ios-devices-api.ts +110 -0
- package/src/lib/ios-devices-rpc.ts +174 -0
- package/src/lib/native-builds.ts +72 -7
- package/src/lib/server/console-runtime.server.ts +9 -2
- package/src/lib/server/deviceProfileToken.ts +187 -0
- package/src/lib/server/foldedPage.ts +360 -0
- package/src/lib/server/iosDeviceProfile.ts +230 -0
- package/src/lib/server/iosDevices.ts +223 -0
- package/src/lib/server/listReleases.ts +101 -62
- package/src/lib/server/nativeBuildInstall.ts +138 -7
- package/src/lib/server/nativeBuilds.ts +221 -26
- package/src/routeTree.gen.ts +64 -67
- package/src/routes/-native-builds-search.ts +20 -0
- package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
- package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
- package/src/routes/index.tsx +444 -299
- package/src/routes/native-builds_.devices.tsx +21 -0
- package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +0 -1
- package/.output/public/assets/RelativeTime-TCmpOVPg.js +0 -1
- package/.output/public/assets/StoreSubmission-CqSg880n.js +0 -1
- package/.output/public/assets/TargetDisplay-DwOaMOiI.js +0 -1
- package/.output/public/assets/api-LQJH44FU.js +0 -1
- package/.output/public/assets/api-keys-4w2-ofii.js +0 -1
- package/.output/public/assets/api-keys-uFY8FsN9.js +0 -1
- package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
- package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
- package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
- package/.output/public/assets/card-ulgg5xHn.js +0 -1
- package/.output/public/assets/check-CXVR3s3X.js +0 -1
- package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
- package/.output/public/assets/dialog-CLIaC82_.js +0 -1
- package/.output/public/assets/empty-Bhlj8PEo.js +0 -1
- package/.output/public/assets/field-q4sTYzNU.js +0 -1
- package/.output/public/assets/history-DakJoeSM.js +0 -1
- package/.output/public/assets/index-CJclLsbG.js +0 -10
- package/.output/public/assets/insights-0TUItqwh.js +0 -1
- package/.output/public/assets/insights-B75txQ_F.js +0 -42
- package/.output/public/assets/insights-C17Z0whn.js +0 -2
- package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
- package/.output/public/assets/insights-usage-rpc-BbFllvi_.js +0 -1
- package/.output/public/assets/insights_.distribution-AZcfvK7x.js +0 -1
- package/.output/public/assets/insights_.distribution-gDqNqI5E.js +0 -2
- package/.output/public/assets/installations-Ap2G2tDs.js +0 -1
- package/.output/public/assets/installations-D0g3xvw8.js +0 -2
- package/.output/public/assets/native-builds-Ba6cEZfm.js +0 -2
- package/.output/public/assets/native-builds-C3_-21we.js +0 -1
- package/.output/public/assets/native-builds_._buildId-BnP31v32.js +0 -1
- package/.output/public/assets/native-builds_._buildId-Cp9LJiMP.js +0 -2
- package/.output/public/assets/plus-BVhOauU3.js +0 -1
- package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
- package/.output/public/assets/remote-config-BRdy8QFR.js +0 -1
- package/.output/public/assets/remote-config-C9p5Pcdj.js +0 -6
- package/.output/public/assets/remote-config-CIAEArwq.js +0 -1
- package/.output/public/assets/routes-BLTF7nwe.js +0 -1
- package/.output/public/assets/search-nnvSOTEB.js +0 -1
- package/.output/public/assets/select-CBIU0_M1.js +0 -1
- package/.output/public/assets/smartphone-r0rRdPas.js +0 -1
- package/.output/public/assets/styles-BdlrKlVs.css +0 -2
- package/.output/public/assets/switch-CP6GsHmN.js +0 -1
- package/.output/public/assets/table-TUtVz-2l.js +0 -1
- package/.output/public/assets/tabs-CP3CSmtI.js +0 -1
- package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
- package/.output/server/_ssr/listReleases-CQEceg8j.mjs +0 -79
- package/.output/server/_ssr/nativeBuildDevice-DJUAzAIj.mjs +0 -210
- package/.output/server/_tanstack-start-manifest_v-8M7ggCuB.mjs +0 -192
- package/src/lib/server/nativeBuildDevice.ts +0 -253
- package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +0 -17
- package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +0 -17
- package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +0 -17
- /package/.output/public/assets/{uuidv7-cI6C63Fm.js → uuidv7-CVJ09bBG.js} +0 -0
- /package/.output/public/assets/{valueToPercent-B6X9rUJM.js → valueToPercent-Db73Kirz.js} +0 -0
|
@@ -0,0 +1,689 @@
|
|
|
1
|
+
import { i as __toESM } from "../_runtime.mjs";
|
|
2
|
+
import { Et as require_react, Tt as require_jsx_runtime, d as MenuRoot, f as MenuPositioner, h as MenuItem, m as MenuPopup, p as MenuPortal, pt as Separator, u as MenuTrigger } from "../_libs/@base-ui/react+[...].mjs";
|
|
3
|
+
import { D as LoaderCircle, M as HardDrive, X as Check, _ as RefreshCw, a as Trash2, i as TriangleAlert, u as Smartphone, y as Pencil, z as Ellipsis } from "../_libs/lucide-react.mjs";
|
|
4
|
+
import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, j as useIsMobile, k as cn, n as Input, t as Button$1 } from "./sidebar-CsKVgZHa.mjs";
|
|
5
|
+
import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
6
|
+
import { a as CardHeader, n as CardContent, o as CardTitle, t as Card } from "./card-CYgCcRUd.mjs";
|
|
7
|
+
import { a as Badge, i as AlertTitle, n as AlertAction, r as AlertDescription, t as Alert } from "./badge-n3c0OTBQ.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-SLr1Q_AI.mjs";
|
|
9
|
+
import { a as DialogHeader, i as DialogFooter, n as DialogContent, o as DialogTitle, r as DialogDescription, t as Dialog$1 } from "./dialog-eru_h5oK.mjs";
|
|
10
|
+
import { a as FieldLabel, i as FieldGroup, n as FieldDescription, r as FieldError, t as Field } from "./field-DA5lwO5U.mjs";
|
|
11
|
+
import { i as TableHead, o as TableRow, r as TableCell } from "./table-WKKzprFn.mjs";
|
|
12
|
+
import { f as iosDeviceProfileUrl, n as IOS_DEVICES_PATH, p as maskIosUdid, t as IOS_DEVICES_ADD_COMMAND, u as consolePathOf } from "./native-builds-BXBkklfA.mjs";
|
|
13
|
+
import { r as extractTimestampFromUUIDv7 } from "./uuidv7-CmHbryZT.mjs";
|
|
14
|
+
import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-BB8GE7OZ.mjs";
|
|
15
|
+
import { n as require_dayjs_min } from "../_libs/dayjs.mjs";
|
|
16
|
+
import { c as DataTableFullRow, d as DataTableSkeletonRows, f as RelativeTime, i as DataTable, n as DataCardSkeletons, o as DataTableEmpty, r as DataCardsEmpty, s as DataTableFrame, t as DataCard } from "./RelativeTime-DnvxB666.mjs";
|
|
17
|
+
import { t as CopyableText } from "./CopyableText-DgNEsByt.mjs";
|
|
18
|
+
import { t as NativeBuildsNav } from "./NativeBuildsNav-hFiyBaFW.mjs";
|
|
19
|
+
import { a as useIosDeviceProfileLinkQuery, c as useRemoveIosDeviceMutation, i as useIosDevice, l as useRenameIosDeviceMutation, n as QrCode, o as useIosDevicesQuery, r as useApproveIosDeviceMutation } from "./IosInstall-C5Y5gnDY.mjs";
|
|
20
|
+
import { t as Route } from "./native-builds_.devices-DiM2FdcW.mjs";
|
|
21
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/native-builds_.devices-D0JJlX8E.js
|
|
22
|
+
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
23
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
24
|
+
var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min());
|
|
25
|
+
function DropdownMenu({ ...props }) {
|
|
26
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuRoot, {
|
|
27
|
+
"data-slot": "dropdown-menu",
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function DropdownMenuTrigger({ ...props }) {
|
|
32
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuTrigger, {
|
|
33
|
+
"data-slot": "dropdown-menu-trigger",
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function DropdownMenuContent({ align = "start", alignOffset = 0, side = "bottom", sideOffset = 4, className, ...props }) {
|
|
38
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPositioner, {
|
|
39
|
+
className: "isolate z-50 outline-none",
|
|
40
|
+
align,
|
|
41
|
+
alignOffset,
|
|
42
|
+
side,
|
|
43
|
+
sideOffset,
|
|
44
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPopup, {
|
|
45
|
+
"data-slot": "dropdown-menu-content",
|
|
46
|
+
className: cn("dark z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
47
|
+
...props
|
|
48
|
+
})
|
|
49
|
+
}) });
|
|
50
|
+
}
|
|
51
|
+
function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
|
|
52
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuItem, {
|
|
53
|
+
"data-slot": "dropdown-menu-item",
|
|
54
|
+
"data-inset": inset,
|
|
55
|
+
"data-variant": variant,
|
|
56
|
+
className: cn("group/dropdown-menu-item relative flex min-h-7 cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7.5 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 data-[variant=destructive]:*:[svg]:text-destructive", className),
|
|
57
|
+
...props
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function DropdownMenuSeparator({ className, ...props }) {
|
|
61
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Separator, {
|
|
62
|
+
"data-slot": "dropdown-menu-separator",
|
|
63
|
+
className: cn("-mx-1 my-1 h-px bg-border/50", className),
|
|
64
|
+
...props
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
var STATUS_LABELS = {
|
|
68
|
+
pending: "Requested",
|
|
69
|
+
approved: "Approved",
|
|
70
|
+
registered: "Registered"
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Only a request waits on someone, so only it takes a status color; the
|
|
74
|
+
* other states are the normal course and stay neutral.
|
|
75
|
+
*/
|
|
76
|
+
var STATUS_BADGES = {
|
|
77
|
+
pending: "warning",
|
|
78
|
+
approved: "secondary",
|
|
79
|
+
registered: "muted"
|
|
80
|
+
};
|
|
81
|
+
var ALL = "all";
|
|
82
|
+
var COLUMNS = 6;
|
|
83
|
+
/** The Console's path from this page, so links work under a base path. */
|
|
84
|
+
var consolePath = () => window.location.pathname.endsWith("/native-builds/devices") ? window.location.pathname.slice(0, -IOS_DEVICES_PATH.length) : consolePathOf(window.location, "");
|
|
85
|
+
/** Who may act on a row, decided again on the server. */
|
|
86
|
+
var actionsFor = (device, viewer) => ({
|
|
87
|
+
approve: viewer.canApprove && device.status === "pending",
|
|
88
|
+
rename: viewer.canApprove,
|
|
89
|
+
remove: viewer.canApprove,
|
|
90
|
+
withdraw: !viewer.canApprove && device.status === "pending" && device.requested_by === viewer.email
|
|
91
|
+
});
|
|
92
|
+
function AppleError({ device }) {
|
|
93
|
+
return device.apple_error === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
94
|
+
className: "max-w-64 text-xs whitespace-normal text-muted-foreground",
|
|
95
|
+
children: device.apple_error
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
function DeviceStatus({ device, withError = true }) {
|
|
99
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
100
|
+
className: "flex min-w-0 shrink-0 flex-col items-start gap-1",
|
|
101
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
|
|
102
|
+
variant: STATUS_BADGES[device.status],
|
|
103
|
+
children: STATUS_LABELS[device.status]
|
|
104
|
+
}), withError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppleError, { device }) : null]
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function DeviceBuild({ device }) {
|
|
108
|
+
if (device.build_id === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
109
|
+
className: "text-muted-foreground",
|
|
110
|
+
children: "—"
|
|
111
|
+
});
|
|
112
|
+
let label = "A build";
|
|
113
|
+
try {
|
|
114
|
+
label = `Build of ${(0, import_dayjs_min.default)(extractTimestampFromUUIDv7(device.build_id)).format("MMM D")}`;
|
|
115
|
+
} catch {}
|
|
116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
|
|
117
|
+
className: "text-xs font-medium underline-offset-4 hover:underline",
|
|
118
|
+
params: { buildId: device.build_id },
|
|
119
|
+
to: "/native-builds/$buildId",
|
|
120
|
+
children: label
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function DeviceActions({ device, viewer, onOpen }) {
|
|
124
|
+
const can = actionsFor(device, viewer);
|
|
125
|
+
if (!can.approve && !can.rename && !can.remove && !can.withdraw) return null;
|
|
126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
127
|
+
className: "flex items-center justify-end gap-1",
|
|
128
|
+
children: [
|
|
129
|
+
can.approve ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
130
|
+
className: "h-11 sm:h-7",
|
|
131
|
+
onClick: () => onOpen({
|
|
132
|
+
kind: "approve",
|
|
133
|
+
device
|
|
134
|
+
}),
|
|
135
|
+
size: "sm",
|
|
136
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { "data-icon": "inline-start" }), "Approve"]
|
|
137
|
+
}) : null,
|
|
138
|
+
can.withdraw ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
139
|
+
className: "h-11 sm:h-7",
|
|
140
|
+
onClick: () => onOpen({
|
|
141
|
+
kind: "remove",
|
|
142
|
+
device
|
|
143
|
+
}),
|
|
144
|
+
size: "sm",
|
|
145
|
+
variant: "outline",
|
|
146
|
+
children: "Withdraw"
|
|
147
|
+
}) : null,
|
|
148
|
+
can.rename || can.remove ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenu, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
149
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
150
|
+
"aria-label": `More actions for ${device.name}`,
|
|
151
|
+
className: "size-11 sm:size-7",
|
|
152
|
+
size: "icon-sm",
|
|
153
|
+
variant: "ghost"
|
|
154
|
+
}),
|
|
155
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ellipsis, { "aria-hidden": "true" })
|
|
156
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
|
|
157
|
+
align: "end",
|
|
158
|
+
children: [
|
|
159
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
160
|
+
onClick: () => onOpen({
|
|
161
|
+
kind: "rename",
|
|
162
|
+
device
|
|
163
|
+
}),
|
|
164
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pencil, { "aria-hidden": "true" }), "Rename"]
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
|
|
167
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
168
|
+
onClick: () => onOpen({
|
|
169
|
+
kind: "remove",
|
|
170
|
+
device
|
|
171
|
+
}),
|
|
172
|
+
variant: "destructive",
|
|
173
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Trash2, { "aria-hidden": "true" }), device.status === "pending" ? "Decline" : "Remove"]
|
|
174
|
+
})
|
|
175
|
+
]
|
|
176
|
+
})] }) : null
|
|
177
|
+
]
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
function DeviceRow({ device, viewer, onOpen }) {
|
|
181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
|
|
182
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
183
|
+
className: "font-medium",
|
|
184
|
+
children: device.name
|
|
185
|
+
}),
|
|
186
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
187
|
+
className: "font-mono text-xs",
|
|
188
|
+
title: device.udid,
|
|
189
|
+
translate: "no",
|
|
190
|
+
children: maskIosUdid(device.udid)
|
|
191
|
+
}) }),
|
|
192
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
193
|
+
className: "text-xs",
|
|
194
|
+
children: device.requested_by ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
195
|
+
className: "text-muted-foreground",
|
|
196
|
+
children: "Terminal"
|
|
197
|
+
})
|
|
198
|
+
}),
|
|
199
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceStatus, { device }) }),
|
|
200
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
201
|
+
className: "text-xs",
|
|
202
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: device.created_at_ms })
|
|
203
|
+
}),
|
|
204
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceBuild, { device }) }),
|
|
205
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
206
|
+
className: "text-right",
|
|
207
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceActions, {
|
|
208
|
+
device,
|
|
209
|
+
onOpen,
|
|
210
|
+
viewer
|
|
211
|
+
})
|
|
212
|
+
})
|
|
213
|
+
] });
|
|
214
|
+
}
|
|
215
|
+
function DeviceCard({ device, viewer, onOpen }) {
|
|
216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataCard, {
|
|
217
|
+
className: "cursor-default gap-3",
|
|
218
|
+
children: [
|
|
219
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
220
|
+
className: "flex min-w-0 items-start justify-between gap-3",
|
|
221
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
222
|
+
className: "flex min-w-0 flex-col gap-0.5",
|
|
223
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
224
|
+
className: "truncate text-sm font-medium",
|
|
225
|
+
children: device.name
|
|
226
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
227
|
+
className: "font-mono text-xs text-muted-foreground",
|
|
228
|
+
translate: "no",
|
|
229
|
+
children: maskIosUdid(device.udid)
|
|
230
|
+
})]
|
|
231
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceStatus, {
|
|
232
|
+
device,
|
|
233
|
+
withError: false
|
|
234
|
+
})]
|
|
235
|
+
}),
|
|
236
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppleError, { device }),
|
|
237
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
238
|
+
className: "flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground",
|
|
239
|
+
children: [
|
|
240
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: device.requested_by ?? "Terminal" }),
|
|
241
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
242
|
+
"aria-hidden": "true",
|
|
243
|
+
children: "·"
|
|
244
|
+
}),
|
|
245
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: device.created_at_ms }),
|
|
246
|
+
device.build_id === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
247
|
+
"aria-hidden": "true",
|
|
248
|
+
children: "·"
|
|
249
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceBuild, { device })] })
|
|
250
|
+
]
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceActions, {
|
|
253
|
+
device,
|
|
254
|
+
onOpen,
|
|
255
|
+
viewer
|
|
256
|
+
})
|
|
257
|
+
]
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
/** Name a device: approving a request, or renaming any device. */
|
|
261
|
+
function NameDialog({ target, onClose }) {
|
|
262
|
+
const approve = useApproveIosDeviceMutation();
|
|
263
|
+
const rename = useRenameIosDeviceMutation();
|
|
264
|
+
const mutation = target.kind === "approve" ? approve : rename;
|
|
265
|
+
const [name, setName] = (0, import_react.useState)(target.device.name);
|
|
266
|
+
const trimmed = name.trim();
|
|
267
|
+
const submit = (event) => {
|
|
268
|
+
event.preventDefault();
|
|
269
|
+
if (trimmed === "") return;
|
|
270
|
+
mutation.mutate({
|
|
271
|
+
id: target.device.id,
|
|
272
|
+
name: trimmed
|
|
273
|
+
}, { onSuccess: onClose });
|
|
274
|
+
};
|
|
275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog$1, {
|
|
276
|
+
onOpenChange: (open) => open ? null : onClose(),
|
|
277
|
+
open: true,
|
|
278
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogContent, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogHeader, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogTitle, { children: target.kind === "approve" ? `Approve ${target.device.name}?` : `Rename ${target.device.name}` }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogDescription, { children: target.kind === "approve" ? "The next ad hoc build registers this iPhone with your Apple account. Each new iPhone uses one of the account's 100 a year, and removing it never gives the slot back." : "The registry shows this name. The next ad hoc build doesn't rename it at Apple." })] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", {
|
|
279
|
+
onSubmit: submit,
|
|
280
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(FieldGroup, { children: [target.kind === "approve" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dl", {
|
|
281
|
+
className: "grid grid-cols-[auto_minmax(0,1fr)] gap-x-4 gap-y-1 text-sm",
|
|
282
|
+
children: [
|
|
283
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
284
|
+
className: "text-muted-foreground",
|
|
285
|
+
children: "Requested by"
|
|
286
|
+
}),
|
|
287
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
|
|
288
|
+
className: "truncate",
|
|
289
|
+
children: target.device.requested_by ?? "Terminal"
|
|
290
|
+
}),
|
|
291
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
292
|
+
className: "text-muted-foreground",
|
|
293
|
+
children: "UDID"
|
|
294
|
+
}),
|
|
295
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
|
|
296
|
+
className: "font-mono text-xs",
|
|
297
|
+
translate: "no",
|
|
298
|
+
children: maskIosUdid(target.device.udid)
|
|
299
|
+
})
|
|
300
|
+
]
|
|
301
|
+
}) : null, /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, {
|
|
302
|
+
"data-invalid": mutation.isError || void 0,
|
|
303
|
+
children: [
|
|
304
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
|
|
305
|
+
htmlFor: "ios-device-dialog-name",
|
|
306
|
+
children: "Name"
|
|
307
|
+
}),
|
|
308
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
|
|
309
|
+
autoComplete: "off",
|
|
310
|
+
id: "ios-device-dialog-name",
|
|
311
|
+
maxLength: 100,
|
|
312
|
+
onChange: (event) => setName(event.target.value),
|
|
313
|
+
value: name
|
|
314
|
+
}),
|
|
315
|
+
target.kind === "approve" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldDescription, { children: "The iPhone's ID comes from the person who asked. Approve devices you recognize." }) : null,
|
|
316
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldError, { children: mutation.isError ? `Couldn't ${target.kind === "approve" ? "approve" : "rename"} ${target.device.name}. Check your connection and try again.` : null })
|
|
317
|
+
]
|
|
318
|
+
})] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogFooter, {
|
|
319
|
+
className: "mt-4",
|
|
320
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
321
|
+
className: "h-11 sm:h-8",
|
|
322
|
+
disabled: trimmed === "" || mutation.isPending,
|
|
323
|
+
type: "submit",
|
|
324
|
+
children: [mutation.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
325
|
+
className: "animate-spin",
|
|
326
|
+
"data-icon": "inline-start"
|
|
327
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { "data-icon": "inline-start" }), target.kind === "approve" ? "Approve" : "Rename"]
|
|
328
|
+
})
|
|
329
|
+
})]
|
|
330
|
+
})] })
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
function RemoveDialog({ device, viewer, onClose }) {
|
|
334
|
+
const remove = useRemoveIosDeviceMutation();
|
|
335
|
+
const withdraw = !viewer.canApprove;
|
|
336
|
+
const decline = device.status === "pending";
|
|
337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialog$1, {
|
|
338
|
+
onOpenChange: (open) => open ? null : onClose(),
|
|
339
|
+
open: true,
|
|
340
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogContent, { children: [
|
|
341
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogHeader, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogTitle, { children: withdraw ? `Withdraw ${device.name}?` : decline ? `Decline ${device.name}?` : `Remove ${device.name}?` }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogDescription, { children: decline ? "It leaves the list. Its owner can request it again." : "It leaves the registry, but it stays in new ad hoc builds while it's enabled in your Apple account: Xcode's automatic ad hoc profile takes every enabled device on the team. A build that is running may already have registered it." })] }),
|
|
342
|
+
decline || !viewer.canApprove ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
343
|
+
className: "flex min-w-0 flex-col gap-1.5 text-xs text-muted-foreground [&_code]:break-words [&_code]:whitespace-normal",
|
|
344
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "To keep it out of new builds, disable it at Apple from a terminal. Its slot isn't returned until the membership year renews." }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
|
|
345
|
+
label: "the command that disables it",
|
|
346
|
+
value: `npx hot-updater native-build devices remove --udid ${device.udid}`,
|
|
347
|
+
wrap: true
|
|
348
|
+
})]
|
|
349
|
+
}),
|
|
350
|
+
remove.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
351
|
+
className: "text-xs text-destructive",
|
|
352
|
+
role: "alert",
|
|
353
|
+
children: [
|
|
354
|
+
"Couldn't ",
|
|
355
|
+
withdraw ? "withdraw" : decline ? "decline" : "remove",
|
|
356
|
+
" ",
|
|
357
|
+
device.name,
|
|
358
|
+
". Check your connection and try again."
|
|
359
|
+
]
|
|
360
|
+
}) : null,
|
|
361
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogFooter, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogCancel, {
|
|
362
|
+
disabled: remove.isPending,
|
|
363
|
+
children: "Cancel"
|
|
364
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogAction, {
|
|
365
|
+
disabled: remove.isPending,
|
|
366
|
+
onClick: (event) => {
|
|
367
|
+
event.preventDefault();
|
|
368
|
+
remove.mutate({ udid: device.udid }, { onSuccess: onClose });
|
|
369
|
+
},
|
|
370
|
+
variant: "destructive",
|
|
371
|
+
children: [remove.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
372
|
+
className: "animate-spin",
|
|
373
|
+
"data-icon": "inline-start"
|
|
374
|
+
}) : null, withdraw ? "Withdraw" : decline ? "Decline" : "Remove"]
|
|
375
|
+
})] })
|
|
376
|
+
] })
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Where an iPhone joins the list: on a computer, a QR code of this page; on
|
|
381
|
+
* the iPhone, its name and the profile that reads its UDID, signed for the
|
|
382
|
+
* person who is signed in.
|
|
383
|
+
*/
|
|
384
|
+
function RegisterCard({ view, devices }) {
|
|
385
|
+
const phone = useIosDevice();
|
|
386
|
+
const [name, setName] = (0, import_react.useState)(null);
|
|
387
|
+
const typed = name ?? view?.defaultName ?? "";
|
|
388
|
+
const [signed, setSigned] = (0, import_react.useState)(typed);
|
|
389
|
+
(0, import_react.useEffect)(() => {
|
|
390
|
+
const timer = setTimeout(() => setSigned(typed.trim()), 400);
|
|
391
|
+
return () => clearTimeout(timer);
|
|
392
|
+
}, [typed]);
|
|
393
|
+
const onPhone = phone?.ios === true;
|
|
394
|
+
const link = useIosDeviceProfileLinkQuery({
|
|
395
|
+
mode: "register",
|
|
396
|
+
name: signed || "iPhone"
|
|
397
|
+
}, onPhone && view?.registration === "ready");
|
|
398
|
+
const https = phone === null || window.location.protocol === "https:";
|
|
399
|
+
const back = phone?.requested && phone.udid !== null ? devices?.find((device) => device.udid === phone.udid?.toLowerCase()) : void 0;
|
|
400
|
+
const body = (() => {
|
|
401
|
+
if (phone === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
|
|
402
|
+
"aria-label": "Loading",
|
|
403
|
+
className: "h-36 w-full"
|
|
404
|
+
});
|
|
405
|
+
if (back !== void 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
406
|
+
className: "text-sm",
|
|
407
|
+
role: "status",
|
|
408
|
+
children: [
|
|
409
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
410
|
+
className: "font-medium",
|
|
411
|
+
children: back.name
|
|
412
|
+
}),
|
|
413
|
+
" ·",
|
|
414
|
+
" ",
|
|
415
|
+
STATUS_LABELS[back.status],
|
|
416
|
+
".",
|
|
417
|
+
" ",
|
|
418
|
+
back.status === "pending" ? "A maintainer approves it next, and it joins the next ad hoc build." : "It joins the next ad hoc build."
|
|
419
|
+
]
|
|
420
|
+
});
|
|
421
|
+
if (view?.registration === "local-console") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
422
|
+
className: "text-xs text-muted-foreground",
|
|
423
|
+
role: "status",
|
|
424
|
+
children: "iPhones register through your hosted Console: an iPhone can't reach this computer's."
|
|
425
|
+
});
|
|
426
|
+
if (view?.registration === "no-secret") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
427
|
+
className: "text-xs text-muted-foreground",
|
|
428
|
+
role: "status",
|
|
429
|
+
children: "Set BETTER_AUTH_SECRET on this Console to register iPhones."
|
|
430
|
+
});
|
|
431
|
+
if (!onPhone) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
432
|
+
className: "flex flex-col items-start gap-4 sm:flex-row sm:items-center",
|
|
433
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrCode, {
|
|
434
|
+
className: "size-36 shrink-0",
|
|
435
|
+
label: "Open this page on an iPhone",
|
|
436
|
+
value: `${window.location.origin}${consolePath()}${IOS_DEVICES_PATH}`
|
|
437
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
438
|
+
className: "flex min-w-0 flex-col gap-1",
|
|
439
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
440
|
+
className: "text-sm font-medium",
|
|
441
|
+
children: "Open this page on the iPhone, in Safari."
|
|
442
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
443
|
+
className: "text-xs text-muted-foreground",
|
|
444
|
+
children: "It installs a profile that reads the iPhone's ID, then lists the iPhone here as requested. Nothing stays installed."
|
|
445
|
+
})]
|
|
446
|
+
})]
|
|
447
|
+
});
|
|
448
|
+
if (!https) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
449
|
+
className: "text-xs text-muted-foreground",
|
|
450
|
+
role: "status",
|
|
451
|
+
children: "iPhones need this Console on HTTPS."
|
|
452
|
+
});
|
|
453
|
+
if (link.data?.status === "local-console") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
454
|
+
className: "text-xs text-muted-foreground",
|
|
455
|
+
role: "status",
|
|
456
|
+
children: "iPhones register through your hosted Console: an iPhone can't reach this computer's."
|
|
457
|
+
});
|
|
458
|
+
if (link.data?.status === "no-secret") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
459
|
+
className: "text-xs text-muted-foreground",
|
|
460
|
+
role: "status",
|
|
461
|
+
children: [
|
|
462
|
+
"Set ",
|
|
463
|
+
link.data.secretName,
|
|
464
|
+
" on this Console to register iPhones."
|
|
465
|
+
]
|
|
466
|
+
});
|
|
467
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
468
|
+
className: "flex min-w-0 flex-col gap-3",
|
|
469
|
+
children: [
|
|
470
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
|
|
471
|
+
htmlFor: "ios-device-register-name",
|
|
472
|
+
children: "This iPhone's name"
|
|
473
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
|
|
474
|
+
autoComplete: "off",
|
|
475
|
+
className: "h-11",
|
|
476
|
+
id: "ios-device-register-name",
|
|
477
|
+
maxLength: 100,
|
|
478
|
+
onChange: (event) => setName(event.target.value),
|
|
479
|
+
value: typed
|
|
480
|
+
})] }),
|
|
481
|
+
link.data?.status === "issued" && signed === typed.trim() ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
482
|
+
className: buttonVariants({ className: "h-auto min-h-11 w-full whitespace-normal" }),
|
|
483
|
+
href: iosDeviceProfileUrl(consolePath(), link.data.token),
|
|
484
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Smartphone, { "data-icon": "inline-start" }), "Install profile"]
|
|
485
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
|
|
486
|
+
"aria-label": "Preparing the profile",
|
|
487
|
+
className: "h-11 w-full"
|
|
488
|
+
}),
|
|
489
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
490
|
+
className: "text-xs text-muted-foreground",
|
|
491
|
+
children: "Safari only. Allow the download, then install it in Settings, where iOS calls it not signed. Safari comes back here, and nothing stays installed."
|
|
492
|
+
})
|
|
493
|
+
]
|
|
494
|
+
});
|
|
495
|
+
})();
|
|
496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
|
|
497
|
+
className: "shadow-sm",
|
|
498
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
|
|
499
|
+
className: "border-b px-4 py-3",
|
|
500
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
|
|
501
|
+
className: "text-sm",
|
|
502
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Register an iPhone" })
|
|
503
|
+
})
|
|
504
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, {
|
|
505
|
+
className: "p-4 sm:p-6",
|
|
506
|
+
children: body
|
|
507
|
+
})]
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* The iOS device registry inside Native builds: the iPhones and iPads a team
|
|
512
|
+
* asked to install ad hoc builds on. Testers register from an iPhone,
|
|
513
|
+
* approvers approve, rename, and remove, and the next ad hoc build registers
|
|
514
|
+
* what was approved with Apple. Android builds need none of this.
|
|
515
|
+
*/
|
|
516
|
+
function IosDevicesPage({ search, onSearchChange }) {
|
|
517
|
+
const isMobile = useIsMobile();
|
|
518
|
+
const query = useIosDevicesQuery(search.status);
|
|
519
|
+
const view = query.data;
|
|
520
|
+
const rows = view?.devices;
|
|
521
|
+
const [dialog, setDialog] = (0, import_react.useState)(null);
|
|
522
|
+
const close = () => setDialog(null);
|
|
523
|
+
const empty = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableEmpty, {
|
|
524
|
+
icon: Smartphone,
|
|
525
|
+
title: search.status === void 0 ? "No iPhones yet" : `No ${STATUS_LABELS[search.status].toLowerCase()} iPhones`,
|
|
526
|
+
children: search.status === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Open this page on an iPhone to register it." }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
527
|
+
className: "h-11 sm:h-7",
|
|
528
|
+
onClick: () => onSearchChange({}),
|
|
529
|
+
size: "sm",
|
|
530
|
+
variant: "outline",
|
|
531
|
+
children: "Show all"
|
|
532
|
+
})
|
|
533
|
+
});
|
|
534
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
535
|
+
className: "flex h-svh min-h-0 min-w-0 flex-col",
|
|
536
|
+
children: [
|
|
537
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
|
|
538
|
+
className: "sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm",
|
|
539
|
+
children: [
|
|
540
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1 size-11 lg:size-7" }),
|
|
541
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
542
|
+
className: "flex items-center gap-1.5",
|
|
543
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(HardDrive, {
|
|
544
|
+
"aria-hidden": "true",
|
|
545
|
+
className: "size-3.5 text-muted-foreground"
|
|
546
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
|
|
547
|
+
className: "text-sm font-medium",
|
|
548
|
+
children: "Native builds"
|
|
549
|
+
})]
|
|
550
|
+
}),
|
|
551
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
552
|
+
className: "basis-full pl-12 text-xs text-muted-foreground sm:basis-auto sm:pl-0",
|
|
553
|
+
children: "The iPhones and iPads ad hoc builds install on. Android needs none."
|
|
554
|
+
})
|
|
555
|
+
]
|
|
556
|
+
}),
|
|
557
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
558
|
+
className: "flex min-h-0 min-w-0 flex-1 flex-col gap-4 overflow-y-auto bg-muted/5 p-3 sm:p-6",
|
|
559
|
+
children: [
|
|
560
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildsNav, { current: "devices" }),
|
|
561
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegisterCard, {
|
|
562
|
+
devices: rows,
|
|
563
|
+
view
|
|
564
|
+
}),
|
|
565
|
+
view !== void 0 && !view.viewer.approversConfigured ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
566
|
+
className: "flex min-w-0 flex-col gap-1.5 text-xs text-muted-foreground",
|
|
567
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Nobody approves in this Console. Approve from a terminal:" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
|
|
568
|
+
label: "the approve command",
|
|
569
|
+
value: IOS_DEVICES_ADD_COMMAND
|
|
570
|
+
})]
|
|
571
|
+
}) : null,
|
|
572
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
573
|
+
className: "flex items-center gap-2",
|
|
574
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Select$1, {
|
|
575
|
+
items: [{
|
|
576
|
+
label: "All statuses",
|
|
577
|
+
value: ALL
|
|
578
|
+
}, ...Object.keys(STATUS_LABELS).map((status) => ({
|
|
579
|
+
label: STATUS_LABELS[status],
|
|
580
|
+
value: status
|
|
581
|
+
}))],
|
|
582
|
+
onValueChange: (value) => onSearchChange(value === null || value === ALL ? {} : { status: value }),
|
|
583
|
+
value: search.status ?? ALL,
|
|
584
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
585
|
+
"aria-label": "Status",
|
|
586
|
+
className: "min-w-0 flex-1 text-xs data-[size=default]:h-11 sm:w-44 sm:flex-none sm:data-[size=default]:h-8",
|
|
587
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
588
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
589
|
+
value: ALL,
|
|
590
|
+
children: "All statuses"
|
|
591
|
+
}), Object.keys(STATUS_LABELS).map((status) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
592
|
+
value: status,
|
|
593
|
+
children: STATUS_LABELS[status]
|
|
594
|
+
}, status))] }) })]
|
|
595
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
596
|
+
"aria-label": "Refresh iOS devices",
|
|
597
|
+
className: "ml-auto size-11 sm:size-7",
|
|
598
|
+
disabled: query.isFetching,
|
|
599
|
+
onClick: () => void query.refetch(),
|
|
600
|
+
size: "icon-sm",
|
|
601
|
+
variant: "ghost",
|
|
602
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "aria-hidden": "true" })
|
|
603
|
+
})]
|
|
604
|
+
}),
|
|
605
|
+
query.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
|
|
606
|
+
variant: "destructive",
|
|
607
|
+
children: [
|
|
608
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
|
|
609
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "iOS devices couldn't be loaded" }),
|
|
610
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: "Check your connection and try again." }),
|
|
611
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
612
|
+
onClick: () => void query.refetch(),
|
|
613
|
+
size: "xs",
|
|
614
|
+
variant: "outline",
|
|
615
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
|
|
616
|
+
}) })
|
|
617
|
+
]
|
|
618
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFrame, { children: isMobile ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
619
|
+
"aria-busy": query.isPlaceholderData,
|
|
620
|
+
"aria-label": "iOS devices",
|
|
621
|
+
className: "aria-busy:opacity-60",
|
|
622
|
+
role: "list",
|
|
623
|
+
children: query.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataCardSkeletons, { label: "Loading iOS devices" }) : rows?.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataCardsEmpty, { children: empty }) : rows?.map((device) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
624
|
+
className: "border-b last:border-b-0",
|
|
625
|
+
role: "listitem",
|
|
626
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceCard, {
|
|
627
|
+
device,
|
|
628
|
+
onOpen: setDialog,
|
|
629
|
+
viewer: view.viewer
|
|
630
|
+
})
|
|
631
|
+
}, device.id))
|
|
632
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTable, {
|
|
633
|
+
"aria-busy": query.isPlaceholderData,
|
|
634
|
+
"aria-label": "iOS devices",
|
|
635
|
+
className: "aria-busy:opacity-60",
|
|
636
|
+
header: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
637
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Name" }),
|
|
638
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "UDID" }),
|
|
639
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Requested by" }),
|
|
640
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Status" }),
|
|
641
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Added" }),
|
|
642
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Build" }),
|
|
643
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
|
|
644
|
+
className: "text-right",
|
|
645
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
646
|
+
className: "sr-only",
|
|
647
|
+
children: "Actions"
|
|
648
|
+
})
|
|
649
|
+
})
|
|
650
|
+
] }),
|
|
651
|
+
children: query.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableSkeletonRows, {
|
|
652
|
+
columns: COLUMNS + 1,
|
|
653
|
+
label: "Loading iOS devices"
|
|
654
|
+
}) : rows?.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFullRow, {
|
|
655
|
+
columns: COLUMNS + 1,
|
|
656
|
+
children: empty
|
|
657
|
+
}) : rows?.map((device) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceRow, {
|
|
658
|
+
device,
|
|
659
|
+
onOpen: setDialog,
|
|
660
|
+
viewer: view.viewer
|
|
661
|
+
}, device.id))
|
|
662
|
+
}) })
|
|
663
|
+
]
|
|
664
|
+
}),
|
|
665
|
+
dialog !== null && dialog.kind !== "remove" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NameDialog, {
|
|
666
|
+
onClose: close,
|
|
667
|
+
target: dialog
|
|
668
|
+
}, dialog.device.id) : null,
|
|
669
|
+
dialog?.kind === "remove" && view !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RemoveDialog, {
|
|
670
|
+
device: dialog.device,
|
|
671
|
+
onClose: close,
|
|
672
|
+
viewer: view.viewer
|
|
673
|
+
}, dialog.device.id) : null
|
|
674
|
+
]
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
function IosDevicesRoute() {
|
|
678
|
+
const search = Route.useSearch();
|
|
679
|
+
const navigate = Route.useNavigate();
|
|
680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IosDevicesPage, {
|
|
681
|
+
onSearchChange: (next) => void navigate({
|
|
682
|
+
search: next,
|
|
683
|
+
replace: true
|
|
684
|
+
}),
|
|
685
|
+
search
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
//#endregion
|
|
689
|
+
export { IosDevicesRoute as component };
|