@hot-updater/console 1.0.0-rc.8 → 1.0.0
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/ConsoleFeatureUnavailable-jB4Loglh.js +1 -0
- package/.output/public/assets/EventDetails-B6yUsyNA.js +1 -0
- package/.output/public/assets/HashValueDisplay-BFX_kY3-.js +1 -0
- package/.output/public/assets/InsightsInfo-BNO0WznZ.js +1 -0
- package/.output/public/assets/InsightsPageHeader-B892oVml.js +1 -0
- package/.output/public/assets/NotFoundPage-DIqCpWa3.js +1 -0
- package/.output/public/assets/alert-dialog-Bbk_4-WJ.js +1 -0
- package/.output/public/assets/api-DCM0wr6O.js +1 -0
- package/.output/public/assets/api-keys-CIO9L_wu.js +1 -0
- package/.output/public/assets/api-keys-DVTL_--f.js +1 -0
- package/.output/public/assets/arrow-left-CnMYpqB7.js +1 -0
- package/.output/public/assets/arrow-up-right-BtffZA6e.js +1 -0
- package/.output/public/assets/chevron-right-BqD5wtFb.js +1 -0
- package/.output/public/assets/clipboard-DS9ucUQL.js +1 -0
- package/.output/public/assets/console-features-api-BH5m_PtQ.js +1 -0
- package/.output/public/assets/dialog-Bqbb7B0N.js +1 -0
- package/.output/public/assets/dist-LxKJB-Vu.js +1 -0
- package/.output/public/assets/empty-CuT2UhFp.js +1 -0
- package/.output/public/assets/field-BBDpjIqu.js +1 -0
- package/.output/public/assets/index-6o51GkFe.js +11 -0
- package/.output/public/assets/input-group-ja_30qaF.js +1 -0
- package/.output/public/assets/insights-CmraDzQh.js +1 -0
- package/.output/public/assets/insights-CxZ2GCYV.js +2 -0
- package/.output/public/assets/insights-api-BigAU9sZ.js +1 -0
- package/.output/public/assets/insights-usage-rpc-DYEhsCKT.js +1 -0
- package/.output/public/assets/insights-vNRCrfnS.js +42 -0
- package/.output/public/assets/insights_.distribution-ChOerfJt.js +1 -0
- package/.output/public/assets/insights_.distribution-D-e4iga8.js +1 -0
- package/.output/public/assets/insights_.distribution-DZtkibX1.js +2 -0
- package/.output/public/assets/installations-BazSJXE0.js +2 -0
- package/.output/public/assets/installations-ClHTqdAO.js +1 -0
- package/.output/public/assets/installations-DpKsBuHi.js +1 -0
- package/.output/public/assets/key-round-wS_SIZ6b.js +1 -0
- package/.output/public/assets/list-CgrYiadM.js +1 -0
- package/.output/public/assets/refresh-cw-BYgoNCco.js +1 -0
- package/.output/public/assets/remote-config-BWwHOkCK.js +1 -0
- package/.output/public/assets/remote-config-Br56BODb.js +6 -0
- package/.output/public/assets/remote-config-CXOi0LRu.js +1 -0
- package/.output/public/assets/routes-B88Erkpk.js +2 -0
- package/.output/public/assets/routes-CfzsAleC.js +1 -0
- package/.output/public/assets/search-DaTDPW25.js +1 -0
- package/.output/public/assets/select-BZZBXMkr.js +1 -0
- package/.output/public/assets/sidebar-DNVyJPfX.js +3 -0
- package/.output/public/assets/smartphone-DpTFgtKf.js +1 -0
- package/.output/public/assets/styles-DTGEAJFv.css +2 -0
- package/.output/public/assets/switch-DZ1TPwx-.js +1 -0
- package/.output/public/assets/table-Gm4qRWwE.js +1 -0
- package/.output/public/assets/tabs-C7FOEjFC.js +1 -0
- package/.output/public/assets/undo-2-CmrHjwFc.js +1 -0
- package/.output/public/assets/useCompositeListItem-9E4pj_CH.js +1 -0
- package/.output/public/assets/valueToPercent-CH8GCHaL.js +1 -0
- package/.output/server/__23tanstack-start-server-fn-resolver-BpRlos5Q.mjs +170 -0
- package/.output/server/_libs/@base-ui/react+[...].mjs +4389 -4207
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +3802 -4022
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +140 -97
- package/.output/server/_libs/lucide-react.mjs +221 -9
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/react-redux+[...].mjs +1 -1
- package/.output/server/_libs/recharts+[...].mjs +483 -901
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tanstack__history.mjs +68 -41
- package/.output/server/_libs/tanstack__query-core.mjs +2010 -309
- package/.output/server/_libs/tanstack__react-query.mjs +448 -21
- package/.output/server/_libs/verkit.mjs +102 -1
- package/.output/server/_ssr/BundleIdDisplay-x94o9rlU.mjs +13 -0
- package/.output/server/_ssr/ConsoleFeatureUnavailable-ldW8v8-q.mjs +58 -0
- package/.output/server/_ssr/EventDetails-Q8kfj9Nr.mjs +344 -0
- package/.output/server/_ssr/{HashValueDisplay-C5tS4oGo.mjs → HashValueDisplay-n1GholGS.mjs} +3 -3
- package/.output/server/_ssr/InsightsInfo-DuJFatQO.mjs +75 -0
- package/.output/server/_ssr/InsightsPageHeader-BSUX3Ye9.mjs +145 -0
- package/.output/server/_ssr/NotFoundPage-DZzOOzS3.mjs +37 -0
- package/.output/server/_ssr/{dialog-WiIAKl4L.mjs → alert-dialog-C43Doa0I.mjs} +6 -83
- package/.output/server/_ssr/{api-keys-aXriWrv7.mjs → api-keys-B4sYm8dM.mjs} +48 -9
- package/.output/server/_ssr/api-keys-CEnM9fqG.mjs +5 -0
- package/.output/server/_ssr/api-keys-rpc-BIFuUgMt.mjs +52 -0
- package/.output/server/_ssr/api-oZjRn9tP.mjs +186 -0
- package/.output/server/_ssr/api-rpc-BNiFRRK8.mjs +240 -0
- package/.output/server/_ssr/{auth-BF8mbAgF.mjs → auth-UP0wXs4i.mjs} +1 -1
- package/.output/server/_ssr/{auth-rpc-B7w3AdRr.mjs → auth-rpc-DnZqYxyq.mjs} +6 -6
- package/.output/server/_ssr/auth.server-DFpyxRDd.mjs +5374 -0
- package/.output/server/_ssr/bundleActivity-M5gzBFNg.mjs +18 -0
- package/.output/server/_ssr/config-WVX4IxSR.mjs +15 -0
- package/.output/server/_ssr/config.server-DskXCAyI.mjs +35 -0
- package/.output/server/_ssr/console-access-BJfAXknd.mjs +17 -0
- package/.output/server/_ssr/console-features-Oz0q20jJ.mjs +61 -0
- package/.output/server/_ssr/console-features-api-C9kiKvaV.mjs +43 -0
- package/.output/server/_ssr/console-features-rpc-P0GL7Z-R.mjs +19 -0
- package/.output/server/_ssr/{createServerFn-B2hcXoPM.mjs → createMiddleware-Cm6Tn0_Y.mjs} +67 -56
- package/.output/server/_ssr/{createServerRpc-DB29C_5p.mjs → createServerRpc-RLR4H-Fn.mjs} +2 -2
- package/.output/server/_ssr/databaseConfig-C5SkAyUy.mjs +5 -0
- package/.output/server/_ssr/{databaseJsonValue-d6I3nAS4.mjs → databaseJsonValue-Csbuzc9Q.mjs} +28 -5
- package/.output/server/_ssr/databaseRows-CPphvbag.mjs +73 -0
- package/.output/server/_ssr/dialog-BbYDMjdC.mjs +84 -0
- package/.output/server/_ssr/{dist-CyzPaI5v.mjs → dist-CbQbBIw-.mjs} +140 -7
- package/.output/server/_ssr/{downloadBundle-CI7JUKvC.mjs → downloadBundle-CZysjmNW.mjs} +10 -10
- package/.output/server/_ssr/empty-CVLGfxuu.mjs +60 -0
- package/.output/server/_ssr/{empty-plugin-adapters-B5QvGpEl.mjs → empty-plugin-adapters-CPtwX8a7.mjs} +1 -1
- package/.output/server/_ssr/failureReports-DKDhVsXA.mjs +33 -0
- package/.output/server/_ssr/field-asw83X0v.mjs +189 -0
- package/.output/server/_ssr/getBundleChildren-Cv9iz1As.mjs +22 -0
- package/.output/server/_ssr/{input-group-Coj6SwVP.mjs → input-group-CuYJHosb.mjs} +2 -2
- package/.output/server/_ssr/insights-B55FG5fm.mjs +14 -0
- package/.output/server/_ssr/insights-CWnHIFUV.mjs +5 -0
- package/.output/server/_ssr/insights-CpLpedFZ.mjs +2315 -0
- package/.output/server/_ssr/insights-api-sjws23WF.mjs +122 -0
- package/.output/server/_ssr/insights-errors-BjnFUyZj.mjs +34 -0
- package/.output/server/_ssr/insights-failures-rpc-BvbWvqNf.mjs +36 -0
- package/.output/server/_ssr/insights-failures-xaa41Buf.mjs +46 -0
- package/.output/server/_ssr/insights-recovery-BWQhiZaF.mjs +28 -0
- package/.output/server/_ssr/insights-recovery-rpc-GiYXdkaY.mjs +32 -0
- package/.output/server/_ssr/{insights-rpc-l2-oBYth.mjs → insights-rpc-DP_8Rmz4.mjs} +22 -14
- package/.output/server/_ssr/insights-usage-BpBM0U0c.mjs +29 -0
- package/.output/server/_ssr/insights-usage-rpc-BiolgB8e.mjs +29 -0
- package/.output/server/_ssr/insights-usage-rpc-KStL0zOx.mjs +41 -0
- package/.output/server/_ssr/insightsUsage-CzhVjsc8.mjs +56 -0
- package/.output/server/_ssr/insights_.distribution-CVrnbP3R.mjs +7 -0
- package/.output/server/_ssr/insights_.distribution-D2HaNTAA.mjs +16 -0
- package/.output/server/_ssr/{insights_.distribution-INw6QxbU.mjs → insights_.distribution-DN9pR422.mjs} +50 -22
- package/.output/server/_ssr/installations-BHmbbnH8.mjs +5 -0
- package/.output/server/_ssr/{installations-DH-tQuRo.mjs → installations-BSCmFq8Q.mjs} +279 -367
- package/.output/server/_ssr/installations-DD1g__Nc.mjs +69 -0
- package/.output/server/_ssr/listReleases-BfUBlCHo.mjs +79 -0
- package/.output/server/_ssr/plugins-BaD1slHx.mjs +2086 -0
- package/.output/server/_ssr/release-adoption-005tQRpo.mjs +55 -0
- package/.output/server/_ssr/release-adoption-rpc-BsstqxUp.mjs +41 -0
- package/.output/server/_ssr/releaseAdoption-CtOFkwli.mjs +114 -0
- package/.output/server/_ssr/releaseManagement-DFMUnDF5.mjs +11 -0
- package/.output/server/_ssr/remote-config-C2Ee8lXO.mjs +5 -0
- package/.output/server/_ssr/remote-config-Dv1ccMo-.mjs +17 -0
- package/.output/server/_ssr/remote-config-of0lGQH8.mjs +2648 -0
- package/.output/server/_ssr/remote-config-rpc-BzX31mUS.mjs +115 -0
- package/.output/server/_ssr/rolldown-runtime-rSIU-vHC.mjs +13 -0
- package/.output/server/_ssr/{router-DfFyAp5p.mjs → router-D8NuoJ_I.mjs} +117 -136
- package/.output/server/_ssr/{routes-BtsfVx-p.mjs → routes-DgvnFqDy.mjs} +195 -429
- package/.output/server/_ssr/routes-V8sDybGf.mjs +409 -0
- package/.output/server/_ssr/runtime.server-De0QVWc9.mjs +104 -0
- package/.output/server/_ssr/schema-BiAVyEj2.mjs +361 -0
- package/.output/server/_ssr/{select-CyvLaMza.mjs → select-t3iXRwc9.mjs} +3 -3
- package/.output/server/_ssr/server-h4VxnExB.mjs +8325 -0
- package/.output/server/_ssr/{createSsrRpc-C-dLcQuy.mjs → sidebar-DJcErBMo.mjs} +107 -47
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/start-BfFbHKMK.mjs +4 -0
- package/.output/server/_ssr/switch-E-btwMGt.mjs +43 -0
- package/.output/server/_ssr/{table-CkVhsNpe.mjs → table-37Dd23TN.mjs} +2 -2
- package/.output/server/_ssr/tabs-DEFnTm95.mjs +45 -0
- package/.output/server/_ssr/updateFailures-H6pnnYK4.mjs +40 -0
- package/.output/server/_ssr/{uuidv7-D0QFkPL_.mjs → uuidv7-C88s9jWF.mjs} +2 -2
- package/.output/server/_tanstack-start-manifest_v-55AGsehh.mjs +139 -0
- package/.output/server/index.mjs +303 -205
- package/LICENSE +13 -14
- package/README.md +80 -71
- package/lib/index.d.mts +23 -11
- package/lib/vite-internal.mjs +13 -3
- package/lib/vite.d.mts +2 -0
- package/package.json +14 -14
- package/src/components/AppSidebar.tsx +74 -75
- package/src/components/ConsoleAccessPage.tsx +5 -1
- package/src/components/ConsoleFeatureUnavailable.tsx +80 -0
- package/src/components/NotFoundPage.tsx +7 -7
- package/src/components/features/FeatureSlots.tsx +103 -0
- package/src/components/features/api-keys/apiKeysFeatureUi.tsx +15 -0
- package/src/components/features/bundles/BundleMetadata.tsx +8 -5
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +1 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +8 -6
- package/src/components/features/insights/AppUsage.tsx +41 -14
- package/src/components/features/insights/BuiltinBundle.tsx +36 -0
- package/src/components/features/insights/ComparedBundlesChart.tsx +310 -0
- package/src/components/features/insights/EstimatedCount.tsx +18 -0
- package/src/components/features/insights/EventDetails.tsx +390 -26
- package/src/components/features/insights/EventHistoryCard.tsx +111 -25
- package/src/components/features/insights/EventHistoryList.tsx +1 -1
- package/src/components/features/insights/FailureReports.tsx +407 -0
- package/src/components/features/insights/InsightsControls.tsx +240 -142
- package/src/components/features/insights/InsightsErrorAlert.tsx +14 -1
- package/src/components/features/insights/InsightsOverview.tsx +601 -403
- package/src/components/features/insights/InsightsPageHeader.tsx +19 -14
- package/src/components/features/insights/InsightsPeriodSelector.tsx +67 -12
- package/src/components/features/insights/InstallationHistoryCard.tsx +65 -10
- package/src/components/features/insights/InstallationMatchesCard.tsx +1 -1
- package/src/components/features/insights/ReleaseActivity.tsx +308 -0
- package/src/components/features/insights/ReportingDevicesSummary.tsx +13 -13
- package/src/components/features/insights/RollbackButton.tsx +118 -0
- package/src/components/features/insights/UpdateFailures.tsx +382 -0
- package/src/components/features/insights/insightsFeatureUi.tsx +35 -0
- package/src/components/features/releases/ReleaseEditorSheet.tsx +27 -13
- package/src/components/features/remote-config/ConditionDialog.tsx +592 -0
- package/src/components/features/remote-config/ConditionsCard.tsx +247 -0
- package/src/components/features/remote-config/ParameterDialog.tsx +426 -0
- package/src/components/features/remote-config/ParametersCard.tsx +254 -0
- package/src/components/features/remote-config/PreviewCard.tsx +284 -0
- package/src/components/features/remote-config/PublishDialog.tsx +325 -0
- package/src/components/features/remote-config/RemoteConfigPage.tsx +353 -0
- package/src/components/features/remote-config/RuleSummary.tsx +21 -0
- package/src/components/features/remote-config/ValueInput.tsx +151 -0
- package/src/components/features/remote-config/VersionsCard.tsx +384 -0
- package/src/components/features/remote-config/remoteConfigFeatureUi.tsx +15 -0
- package/src/components/features/remote-config/useDateTimeText.ts +16 -0
- package/src/components/ui/sidebar.tsx +22 -29
- package/src/index.ts +26 -19
- package/src/lib/api-keys-api.ts +0 -28
- package/src/lib/api-keys-rpc.ts +27 -38
- package/src/lib/api-rpc.ts +125 -288
- package/src/lib/api.ts +15 -134
- package/src/lib/bundle-activity.ts +24 -4
- package/src/lib/console-access.ts +20 -0
- package/src/lib/console-features-api.ts +68 -0
- package/src/lib/console-features-rpc.ts +13 -0
- package/src/lib/console-features.ts +98 -0
- package/src/lib/insights-api.ts +56 -2
- package/src/lib/insights-errors.ts +64 -0
- package/src/lib/insights-failures-rpc.ts +36 -0
- package/src/lib/insights-failures.ts +130 -0
- package/src/lib/insights-recovery-rpc.ts +13 -17
- package/src/lib/insights-recovery.ts +12 -36
- package/src/lib/insights-retention.ts +21 -0
- package/src/lib/insights-rpc.ts +30 -12
- package/src/lib/insights-search.ts +50 -4
- package/src/lib/insights-usage-rpc.ts +15 -9
- package/src/lib/insights-usage.ts +41 -3
- package/src/lib/insights-view.ts +34 -5
- package/src/lib/release-adoption-api.ts +214 -0
- package/src/lib/release-adoption-rpc.ts +49 -0
- package/src/lib/release-adoption.ts +164 -0
- package/src/lib/remote-config-api.ts +119 -0
- package/src/lib/remote-config-draft.ts +666 -0
- package/src/lib/remote-config-rpc.ts +196 -0
- package/src/lib/scroll-restoration.ts +21 -0
- package/src/lib/server/auth.server.ts +13 -5
- package/src/lib/server/bundleActivity.ts +27 -28
- package/src/lib/server/config.server.ts +21 -76
- package/src/lib/server/console-feature-apis.ts +70 -0
- package/src/lib/server/console-runtime.server.ts +82 -38
- package/src/lib/server/downloadBundle.ts +14 -15
- package/src/lib/server/failureReports.ts +50 -0
- package/src/lib/server/getBundleChildren.ts +31 -122
- package/src/lib/server/insightsUsage.ts +52 -113
- package/src/lib/server/listReleases.ts +109 -44
- package/src/lib/server/releaseAdoption.ts +151 -0
- package/src/lib/server/releaseReachability.ts +8 -8
- package/src/lib/server/remoteConfig.ts +75 -0
- package/src/lib/server/runtime.server.ts +120 -31
- package/src/lib/server/updateFailures.ts +66 -0
- package/src/lib/use-dialog-target.ts +27 -0
- package/src/routeTree.gen.ts +44 -44
- package/src/router.tsx +3 -2
- package/src/routes/-installations-search.ts +32 -8
- package/src/routes/-releases-search.ts +76 -29
- package/src/routes/__root.tsx +7 -1
- package/src/routes/api/bundles/$bundleId/download.ts +2 -5
- package/src/routes/api-keys.tsx +5 -2
- package/src/routes/index.tsx +210 -152
- package/src/routes/insights.tsx +91 -23
- package/src/routes/insights_.distribution.tsx +50 -9
- package/src/routes/installations.tsx +97 -40
- package/src/routes/remote-config.tsx +42 -0
- package/src/styles.css +9 -0
- package/src/vite-internal.ts +15 -3
- package/src/vite.ts +2 -0
- package/.output/public/assets/HashValueDisplay-BpTc3Oyg.js +0 -1
- package/.output/public/assets/InsightsPageHeader-DC2eEst8.js +0 -1
- package/.output/public/assets/api-CdUyUqzR.js +0 -42
- package/.output/public/assets/api-keys-64PM9PwW.js +0 -1
- package/.output/public/assets/api-keys-api-BeaJnvY5.js +0 -1
- package/.output/public/assets/arrow-left-04Rh8Zgp.js +0 -1
- package/.output/public/assets/card-CYHs5FZv.js +0 -1
- package/.output/public/assets/chart-no-axes-combined-DwyMsVFW.js +0 -1
- package/.output/public/assets/createServerFn-DU71xucx.js +0 -3
- package/.output/public/assets/dialog-IVMkBRCq.js +0 -1
- package/.output/public/assets/dist-BR4GzeEu.js +0 -1
- package/.output/public/assets/field-B3CYDpjg.js +0 -1
- package/.output/public/assets/index-C39o7rJH.js +0 -10
- package/.output/public/assets/info-C3y9HNoU.js +0 -1
- package/.output/public/assets/input-group-nLZylhWF.js +0 -1
- package/.output/public/assets/insights-Bm9v8uO3.js +0 -2
- package/.output/public/assets/insights-DS3iO7Up.js +0 -1
- package/.output/public/assets/insights-search-Byj3g3Mp.js +0 -1
- package/.output/public/assets/insights-usage-rpc-BaGR3lgq.js +0 -1
- package/.output/public/assets/insights_.distribution-B1i6cjlQ.js +0 -1
- package/.output/public/assets/insights_.distribution-C1Wf27eB.js +0 -2
- package/.output/public/assets/installations-CkFW4fV9.js +0 -2
- package/.output/public/assets/installations-DxTaIcHD.js +0 -1
- package/.output/public/assets/lazyRouteComponent-BapzjYnb.js +0 -1
- package/.output/public/assets/list-Dqt53fWZ.js +0 -1
- package/.output/public/assets/loader-circle-CUKfUqow.js +0 -1
- package/.output/public/assets/preload-helper-ClBMtM1g.js +0 -1
- package/.output/public/assets/refresh-cw-CNE_2PnD.js +0 -1
- package/.output/public/assets/routes-Cgtvspjg.js +0 -2
- package/.output/public/assets/routes-O2r2UUN8.js +0 -1
- package/.output/public/assets/shield-check-BFcJ46kz.js +0 -1
- package/.output/public/assets/signing-BgspC-xP.js +0 -1
- package/.output/public/assets/styles-DnrWuBwd.css +0 -2
- package/.output/public/assets/table-BuWQgxJJ.js +0 -1
- package/.output/public/assets/useMutation-CSV9NCUl.js +0 -1
- package/.output/public/assets/useOpenInteractionType-D5kduCTD.js +0 -1
- package/.output/public/assets/valueToPercent-BAtcbSLk.js +0 -1
- package/.output/server/__23tanstack-start-server-fn-resolver-CmYkol9D.mjs +0 -150
- package/.output/server/_ssr/InsightsPageHeader-Dma3dVj1.mjs +0 -64
- package/.output/server/_ssr/api-C3bGmgY0.mjs +0 -332
- package/.output/server/_ssr/api-keys-api-BRF6rbRC.mjs +0 -60
- package/.output/server/_ssr/api-keys-rpc-BMa1ZM6N.mjs +0 -136
- package/.output/server/_ssr/api-rpc-BYQ2e0z6.mjs +0 -1399
- package/.output/server/_ssr/auth.server-CmicHh0J.mjs +0 -47
- package/.output/server/_ssr/bundle-signing-rpc-DbQ4pFAX.mjs +0 -16
- package/.output/server/_ssr/bundle-signing.server-Uqt1OF49.mjs +0 -12
- package/.output/server/_ssr/bundleActivity-pBrPSG01.mjs +0 -28
- package/.output/server/_ssr/card-B7KSO_25.mjs +0 -108
- package/.output/server/_ssr/config-Dv8qLDZ0.mjs +0 -13
- package/.output/server/_ssr/config.server-C-d1QaBU.mjs +0 -368
- package/.output/server/_ssr/databaseRows-5bCRTxm-.mjs +0 -126
- package/.output/server/_ssr/deleteBundle-8X-jq7Z7.mjs +0 -66
- package/.output/server/_ssr/field-BDwuU8RE.mjs +0 -74
- package/.output/server/_ssr/getBundleChildren-DoL8l_AS.mjs +0 -50
- package/.output/server/_ssr/insights-BDJjaDLp.mjs +0 -938
- package/.output/server/_ssr/insights-D0FWpfOS.mjs +0 -10
- package/.output/server/_ssr/insights-recovery-Cv6RSyeR.mjs +0 -21
- package/.output/server/_ssr/insights-recovery-rpc-BE9YsK_T.mjs +0 -37
- package/.output/server/_ssr/insights-search-1czJMZgk.mjs +0 -21
- package/.output/server/_ssr/insights-usage-rpc-BE_aCnea.mjs +0 -184
- package/.output/server/_ssr/insights-usage-rpc-CtAolz-t.mjs +0 -24
- package/.output/server/_ssr/insightsContract-B09K_Px1.mjs +0 -303
- package/.output/server/_ssr/insightsHistory-Ci4rYAgl.mjs +0 -41
- package/.output/server/_ssr/insightsRecovery-CaghWL2t.mjs +0 -113
- package/.output/server/_ssr/insightsUsage-DNIj6jxF.mjs +0 -71
- package/.output/server/_ssr/insights_.distribution-Cp0kf1vW.mjs +0 -10
- package/.output/server/_ssr/installations-Bhyiwx8G.mjs +0 -29
- package/.output/server/_ssr/routes-xBkI2Fmt.mjs +0 -37
- package/.output/server/_ssr/runtime.server-CsiKFp_Z.mjs +0 -436
- package/.output/server/_ssr/server-BdkuOWe8.mjs +0 -7468
- package/.output/server/_ssr/signing-CQ70saFm.mjs +0 -133
- package/.output/server/_ssr/start-DpViQGnt.mjs +0 -4
- package/.output/server/_tanstack-start-manifest_v-CrBsoKQQ.mjs +0 -125
- package/src/components/features/bundles/BundleActivityChart.tsx +0 -97
- package/src/components/features/bundles/BundleInsightsSummary.tsx +0 -126
- package/src/components/features/signing/BundleSigningPage.tsx +0 -139
- package/src/lib/bundle-signing-api.ts +0 -14
- package/src/lib/bundle-signing-rpc.ts +0 -16
- package/src/lib/server/bundle-signing.server.ts +0 -23
- package/src/lib/server/deleteBundle.ts +0 -145
- package/src/lib/server/insightsHistory.ts +0 -52
- package/src/lib/server/insightsRecovery.ts +0 -187
- package/src/routes/signing.tsx +0 -37
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import {
|
|
3
|
+
CartesianGrid,
|
|
4
|
+
Line,
|
|
5
|
+
LineChart,
|
|
6
|
+
ReferenceLine,
|
|
7
|
+
XAxis,
|
|
8
|
+
YAxis,
|
|
9
|
+
} from "recharts";
|
|
10
|
+
|
|
11
|
+
import { BundleIdDisplay } from "@/components/BundleIdDisplay";
|
|
12
|
+
import {
|
|
13
|
+
ChartContainer,
|
|
14
|
+
ChartTooltip,
|
|
15
|
+
ChartTooltipContent,
|
|
16
|
+
} from "@/components/ui/chart";
|
|
17
|
+
import type { AdoptionRelease } from "@/lib/release-adoption";
|
|
18
|
+
import type { ReleaseHealthState } from "@/lib/release-adoption-api";
|
|
19
|
+
|
|
20
|
+
type DotProps = {
|
|
21
|
+
readonly cx?: number;
|
|
22
|
+
readonly cy?: number;
|
|
23
|
+
readonly index: number;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const HOUR = 3_600_000;
|
|
27
|
+
const DAY = 24 * HOUR;
|
|
28
|
+
const times = new Intl.DateTimeFormat("en", {
|
|
29
|
+
month: "short",
|
|
30
|
+
day: "numeric",
|
|
31
|
+
hour: "2-digit",
|
|
32
|
+
minute: "2-digit",
|
|
33
|
+
hourCycle: "h23",
|
|
34
|
+
timeZone: "UTC",
|
|
35
|
+
});
|
|
36
|
+
const dates = new Intl.DateTimeFormat("en", {
|
|
37
|
+
month: "short",
|
|
38
|
+
day: "numeric",
|
|
39
|
+
timeZone: "UTC",
|
|
40
|
+
});
|
|
41
|
+
const clock = new Intl.DateTimeFormat("en", {
|
|
42
|
+
hour: "2-digit",
|
|
43
|
+
minute: "2-digit",
|
|
44
|
+
hourCycle: "h23",
|
|
45
|
+
timeZone: "UTC",
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/** One hue per compared bundle, in the validated order of `--series-*`. */
|
|
49
|
+
const SERIES = ["--series-1", "--series-2", "--series-3", "--series-4"];
|
|
50
|
+
|
|
51
|
+
export const formatDeployedAt = (ms: number) => `${times.format(ms)} UTC`;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* A color for each bundle that stays with it: a bundle keeps its hue while
|
|
55
|
+
* others are added or removed, and a new one takes the first free hue.
|
|
56
|
+
*/
|
|
57
|
+
export function useSeriesColors(releaseIds: readonly string[]) {
|
|
58
|
+
const [slots] = useState(() => new Map<string, number>());
|
|
59
|
+
// Recomputing from the same ids gives the same slots, so this stays pure
|
|
60
|
+
// enough to run twice.
|
|
61
|
+
// A Map allows deleting the entry being visited.
|
|
62
|
+
for (const releaseId of slots.keys())
|
|
63
|
+
if (!releaseIds.includes(releaseId)) slots.delete(releaseId);
|
|
64
|
+
for (const releaseId of releaseIds) {
|
|
65
|
+
if (slots.has(releaseId)) continue;
|
|
66
|
+
const used = new Set(slots.values());
|
|
67
|
+
let slot = 0;
|
|
68
|
+
while (used.has(slot)) slot += 1;
|
|
69
|
+
slots.set(releaseId, slot);
|
|
70
|
+
}
|
|
71
|
+
return (releaseId: string) =>
|
|
72
|
+
`var(${SERIES[(slots.get(releaseId) ?? 0) % SERIES.length]})`;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
type Period = ReleaseHealthState["period"];
|
|
76
|
+
|
|
77
|
+
type Points =
|
|
78
|
+
| readonly { readonly startMs: number; readonly events: number }[]
|
|
79
|
+
| undefined;
|
|
80
|
+
|
|
81
|
+
type ChartLine = {
|
|
82
|
+
readonly release: AdoptionRelease;
|
|
83
|
+
/** The bundle's counts, drawn solid. */
|
|
84
|
+
readonly points: Points;
|
|
85
|
+
/** Another count of the bundle, drawn dashed in its hue: its downloads. */
|
|
86
|
+
readonly dashed?: Points;
|
|
87
|
+
readonly measuredAtMs: number | undefined;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/** An interval as the tooltip names it, in UTC. */
|
|
91
|
+
export const spanOf = (startMs: number, endMs: number) =>
|
|
92
|
+
dates.format(startMs) === dates.format(endMs)
|
|
93
|
+
? `${times.format(startMs)}–${clock.format(endMs)} UTC`
|
|
94
|
+
: `${times.format(startMs)} – ${times.format(endMs)} UTC`;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* One row per interval of the period, at the interval's end, with each
|
|
98
|
+
* bundle's count as `b<index>` and its dashed count, when it has one, as
|
|
99
|
+
* `d<index>`: none before the interval it was deployed in, and none while
|
|
100
|
+
* its counts load.
|
|
101
|
+
*/
|
|
102
|
+
export const curveOf = (period: Period, lines: readonly ChartLine[]) =>
|
|
103
|
+
Array.from(
|
|
104
|
+
{ length: Math.round(period.durationMs / period.intervalMs) },
|
|
105
|
+
(_, interval) => {
|
|
106
|
+
const startMs = period.startMs + interval * period.intervalMs;
|
|
107
|
+
const endMs = startMs + period.intervalMs;
|
|
108
|
+
const countOf = (release: AdoptionRelease, points: Points) =>
|
|
109
|
+
points === undefined || endMs <= release.deployedAtMs
|
|
110
|
+
? null
|
|
111
|
+
: (points.find((point) => point.startMs === startMs)?.events ?? 0);
|
|
112
|
+
return Object.fromEntries([
|
|
113
|
+
["startMs", startMs],
|
|
114
|
+
["endMs", endMs],
|
|
115
|
+
...lines.flatMap((line, index) => [
|
|
116
|
+
[`b${index}`, countOf(line.release, line.points)],
|
|
117
|
+
...("dashed" in line
|
|
118
|
+
? [[`d${index}`, countOf(line.release, line.dashed)]]
|
|
119
|
+
: []),
|
|
120
|
+
]),
|
|
121
|
+
]) as { startMs: number; endMs: number } & Record<string, number | null>;
|
|
122
|
+
},
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Ticks on whole UTC times between the first count and the period's end, so
|
|
127
|
+
* a date names its midnight: every 4 hours of a day, each midnight of a week,
|
|
128
|
+
* every fifth midnight of a month.
|
|
129
|
+
*/
|
|
130
|
+
export const ticksOf = (period: Period) => {
|
|
131
|
+
const step =
|
|
132
|
+
period.intervalMs === HOUR
|
|
133
|
+
? 4 * HOUR
|
|
134
|
+
: period.intervalMs === 6 * HOUR
|
|
135
|
+
? DAY
|
|
136
|
+
: 5 * DAY;
|
|
137
|
+
const ticks: number[] = [];
|
|
138
|
+
for (
|
|
139
|
+
let at = Math.ceil((period.startMs + period.intervalMs) / step) * step;
|
|
140
|
+
at < period.endMs;
|
|
141
|
+
at += step
|
|
142
|
+
)
|
|
143
|
+
ticks.push(at);
|
|
144
|
+
return ticks;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Each bundle's counts per interval of the period on one timeline, with its
|
|
149
|
+
* deployment marked: a solid line, and a dashed one in its hue when the
|
|
150
|
+
* bundle has a second count. A count sits at the end of its interval, so a
|
|
151
|
+
* line starts after its deployment, with the interval it was deployed in.
|
|
152
|
+
*/
|
|
153
|
+
export function ComparedBundlesChart({
|
|
154
|
+
period,
|
|
155
|
+
lines,
|
|
156
|
+
colorOf,
|
|
157
|
+
active,
|
|
158
|
+
label,
|
|
159
|
+
names,
|
|
160
|
+
}: {
|
|
161
|
+
readonly period: Period;
|
|
162
|
+
readonly lines: readonly ChartLine[];
|
|
163
|
+
readonly colorOf: (releaseId: string) => string;
|
|
164
|
+
readonly active: string | null;
|
|
165
|
+
readonly label: string;
|
|
166
|
+
/** What the solid and dashed lines count, as the tooltip names them. */
|
|
167
|
+
readonly names?: { readonly solid?: string; readonly dashed?: string };
|
|
168
|
+
}) {
|
|
169
|
+
const measuredAtMs = Math.max(
|
|
170
|
+
0,
|
|
171
|
+
...lines.map((line) => line.measuredAtMs ?? 0),
|
|
172
|
+
);
|
|
173
|
+
const curve = curveOf(period, lines);
|
|
174
|
+
const ticks = ticksOf(period);
|
|
175
|
+
const tick = (value: number) =>
|
|
176
|
+
period.intervalMs === HOUR ? times.format(value) : dates.format(value);
|
|
177
|
+
// The ID that names the bundle across the Console, and what the line counts.
|
|
178
|
+
const labelOf = (release: AdoptionRelease, name: string | undefined) => (
|
|
179
|
+
<span className="flex items-center gap-1.5 whitespace-nowrap">
|
|
180
|
+
<BundleIdDisplay
|
|
181
|
+
bundleId={release.releaseId}
|
|
182
|
+
className="whitespace-nowrap"
|
|
183
|
+
/>
|
|
184
|
+
{name ? <span className="text-muted-foreground">{name}</span> : null}
|
|
185
|
+
</span>
|
|
186
|
+
);
|
|
187
|
+
const config = Object.fromEntries(
|
|
188
|
+
lines.flatMap((line, index) => [
|
|
189
|
+
[
|
|
190
|
+
`b${index}`,
|
|
191
|
+
{
|
|
192
|
+
label: labelOf(line.release, names?.solid),
|
|
193
|
+
color: colorOf(line.release.releaseId),
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
...("dashed" in line
|
|
197
|
+
? [
|
|
198
|
+
[
|
|
199
|
+
`d${index}`,
|
|
200
|
+
{
|
|
201
|
+
label: labelOf(line.release, names?.dashed),
|
|
202
|
+
color: colorOf(line.release.releaseId),
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
]
|
|
206
|
+
: []),
|
|
207
|
+
]),
|
|
208
|
+
);
|
|
209
|
+
// A point with no neighbour, as the first hour after a deployment, draws
|
|
210
|
+
// no line: mark it, hollow on a dashed line.
|
|
211
|
+
const isolated =
|
|
212
|
+
(key: string, color: string, hollow: boolean) =>
|
|
213
|
+
({ cx, cy, index: at }: DotProps) => {
|
|
214
|
+
const value = curve[at]?.[key];
|
|
215
|
+
return value == null ||
|
|
216
|
+
cx == null ||
|
|
217
|
+
cy == null ||
|
|
218
|
+
curve[at - 1]?.[key] != null ||
|
|
219
|
+
curve[at + 1]?.[key] != null ? (
|
|
220
|
+
<g key={`${key}-${at}`} />
|
|
221
|
+
) : (
|
|
222
|
+
<circle
|
|
223
|
+
key={`${key}-${at}`}
|
|
224
|
+
cx={cx}
|
|
225
|
+
cy={cy}
|
|
226
|
+
r={4}
|
|
227
|
+
fill={hollow ? "var(--background)" : color}
|
|
228
|
+
stroke={color}
|
|
229
|
+
strokeWidth={hollow ? 2 : 0}
|
|
230
|
+
/>
|
|
231
|
+
);
|
|
232
|
+
};
|
|
233
|
+
return (
|
|
234
|
+
<ChartContainer
|
|
235
|
+
aria-label={label}
|
|
236
|
+
className="h-64 w-full aspect-auto"
|
|
237
|
+
config={config}
|
|
238
|
+
>
|
|
239
|
+
<LineChart
|
|
240
|
+
accessibilityLayer
|
|
241
|
+
data={curve}
|
|
242
|
+
margin={{ left: -12, right: 12, top: 8 }}
|
|
243
|
+
>
|
|
244
|
+
<CartesianGrid vertical={false} />
|
|
245
|
+
<XAxis
|
|
246
|
+
dataKey="endMs"
|
|
247
|
+
type="number"
|
|
248
|
+
domain={["dataMin", "dataMax"]}
|
|
249
|
+
ticks={ticks}
|
|
250
|
+
tickFormatter={tick}
|
|
251
|
+
axisLine={false}
|
|
252
|
+
tickLine={false}
|
|
253
|
+
minTickGap={32}
|
|
254
|
+
/>
|
|
255
|
+
<YAxis allowDecimals={false} axisLine={false} tickLine={false} />
|
|
256
|
+
<ChartTooltip
|
|
257
|
+
content={
|
|
258
|
+
<ChartTooltipContent
|
|
259
|
+
labelFormatter={(_, payload) => {
|
|
260
|
+
const point = payload[0]?.payload;
|
|
261
|
+
return point
|
|
262
|
+
? `${spanOf(point.startMs, point.endMs)}${point.endMs > measuredAtMs ? " · In progress" : ""}`
|
|
263
|
+
: "";
|
|
264
|
+
}}
|
|
265
|
+
/>
|
|
266
|
+
}
|
|
267
|
+
/>
|
|
268
|
+
{lines.map(({ release }) =>
|
|
269
|
+
release.deployedAtMs >= period.startMs ? (
|
|
270
|
+
<ReferenceLine
|
|
271
|
+
key={`deployed-${release.releaseId}`}
|
|
272
|
+
x={release.deployedAtMs}
|
|
273
|
+
stroke={colorOf(release.releaseId)}
|
|
274
|
+
strokeOpacity={0.5}
|
|
275
|
+
ifOverflow="extendDomain"
|
|
276
|
+
/>
|
|
277
|
+
) : null,
|
|
278
|
+
)}
|
|
279
|
+
{lines.flatMap((line, index) =>
|
|
280
|
+
// The dashed line first: the tooltip lists it first, and the solid one
|
|
281
|
+
// draws over it where they meet.
|
|
282
|
+
([...("dashed" in line ? ["d"] : []), "b"] as const).map((kind) => {
|
|
283
|
+
const { releaseId } = line.release;
|
|
284
|
+
return (
|
|
285
|
+
<Line
|
|
286
|
+
key={`${kind}-${releaseId}`}
|
|
287
|
+
dataKey={`${kind}${index}`}
|
|
288
|
+
type="linear"
|
|
289
|
+
stroke={`var(--color-${kind}${index})`}
|
|
290
|
+
strokeDasharray={kind === "d" ? "6 4" : undefined}
|
|
291
|
+
strokeWidth={active === releaseId ? 3 : 2}
|
|
292
|
+
strokeOpacity={
|
|
293
|
+
active === null || active === releaseId ? 1 : 0.25
|
|
294
|
+
}
|
|
295
|
+
dot={isolated(
|
|
296
|
+
`${kind}${index}`,
|
|
297
|
+
colorOf(releaseId),
|
|
298
|
+
kind === "d",
|
|
299
|
+
)}
|
|
300
|
+
activeDot={{ r: 4 }}
|
|
301
|
+
connectNulls={false}
|
|
302
|
+
isAnimationActive={false}
|
|
303
|
+
/>
|
|
304
|
+
);
|
|
305
|
+
}),
|
|
306
|
+
)}
|
|
307
|
+
</LineChart>
|
|
308
|
+
</ChartContainer>
|
|
309
|
+
);
|
|
310
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A unique count the server estimates from a HyperLogLog sketch, typically
|
|
3
|
+
* within about 3% of the true count. It shows as approximate, as analytics
|
|
4
|
+
* consoles mark estimates, and says so to screen readers. Zero is exact: no
|
|
5
|
+
* report reached the sketch.
|
|
6
|
+
*/
|
|
7
|
+
export function EstimatedCount({ value }: { readonly value: number }) {
|
|
8
|
+
if (value === 0) return "0";
|
|
9
|
+
return (
|
|
10
|
+
<span title="Estimated">
|
|
11
|
+
<span aria-hidden="true" className="mr-1 text-muted-foreground">
|
|
12
|
+
≈
|
|
13
|
+
</span>
|
|
14
|
+
<span className="sr-only">Estimated </span>
|
|
15
|
+
{value.toLocaleString()}
|
|
16
|
+
</span>
|
|
17
|
+
);
|
|
18
|
+
}
|