@delmaredigital/payload-experiments 0.3.0-rc.4 → 0.4.0-rc.10
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/README.md +293 -688
- package/dist/admin/LayerUsage.js +1 -1
- package/dist/admin/MetricSourceSelect.js +4 -4
- package/dist/admin/PlacementStatus.d.ts +3 -0
- package/dist/admin/PlacementStatus.js +54 -0
- package/dist/admin/TestsDashboardCards.d.ts +1 -0
- package/dist/admin/TestsDashboardCards.js +5 -9
- package/dist/admin/TestsNavLink.d.ts +1 -0
- package/dist/admin/TestsNavLink.js +5 -11
- package/dist/admin/blocks/BlockPanel.d.ts +5 -0
- package/dist/admin/blocks/BlockPanel.js +245 -0
- package/dist/admin/blocks/TestBlockField.d.ts +5 -0
- package/dist/admin/blocks/TestBlockField.js +163 -0
- package/dist/admin/blocks/formApi.d.ts +46 -0
- package/dist/admin/blocks/formApi.js +159 -0
- package/dist/admin/blocks/inject.d.ts +7 -0
- package/dist/admin/blocks/inject.js +42 -0
- package/dist/admin/blocks/model.d.ts +18 -0
- package/dist/admin/blocks/model.js +49 -0
- package/dist/admin/blocks/statusCache.d.ts +9 -0
- package/dist/admin/blocks/statusCache.js +92 -0
- package/dist/admin/blocks/useBlockForm.d.ts +17 -0
- package/dist/admin/blocks/useBlockForm.js +46 -0
- package/dist/admin/components/RootViewMessage.js +1 -1
- package/dist/admin/copy/blocks.d.ts +47 -0
- package/dist/admin/copy/blocks.js +72 -0
- package/dist/admin/copy/goals.d.ts +8 -1
- package/dist/admin/copy/goals.js +14 -4
- package/dist/admin/copy/newTest.d.ts +13 -4
- package/dist/admin/copy/newTest.js +16 -4
- package/dist/admin/goals/XpGoalField.d.ts +4 -0
- package/dist/admin/goals/XpGoalField.js +194 -0
- package/dist/admin/goals/xpGoalField.css +47 -0
- package/dist/admin/pageCollections.d.ts +11 -0
- package/dist/admin/pageCollections.js +23 -0
- package/dist/admin/paths.d.ts +9 -0
- package/dist/admin/paths.js +9 -0
- package/dist/admin/placementStatus.model.d.ts +2 -0
- package/dist/admin/placementStatus.model.js +19 -0
- package/dist/admin/status.model.js +1 -1
- package/dist/admin/surface/ResultsRoute.d.ts +2 -1
- package/dist/admin/surface/ResultsRoute.js +20 -24
- package/dist/admin/surface/SurfaceShell.js +5 -2
- package/dist/admin/surface/TestRowMenu.d.ts +6 -0
- package/dist/admin/surface/TestRowMenu.js +156 -0
- package/dist/admin/surface/TestsHome.d.ts +5 -3
- package/dist/admin/surface/TestsHome.js +298 -59
- package/dist/admin/surface/TestsSurface.js +13 -8
- package/dist/admin/surface/goals/GoalForm.d.ts +1 -1
- package/dist/admin/surface/goals/GoalForm.js +159 -85
- package/dist/admin/surface/goals/GoalsList.d.ts +1 -1
- package/dist/admin/surface/goals/GoalsList.js +7 -6
- package/dist/admin/surface/goals/data.js +6 -3
- package/dist/admin/surface/goals/goals.css +7 -0
- package/dist/admin/surface/goals/goals.model.d.ts +12 -3
- package/dist/admin/surface/goals/goals.model.js +43 -2
- package/dist/admin/surface/home.model.d.ts +9 -8
- package/dist/admin/surface/home.model.js +28 -23
- package/dist/admin/surface/newTest/NewTest.d.ts +4 -4
- package/dist/admin/surface/newTest/NewTest.js +146 -101
- package/dist/admin/surface/newTest/PageWizard.d.ts +8 -0
- package/dist/admin/surface/newTest/PageWizard.js +244 -0
- package/dist/admin/surface/newTest/newTest.css +28 -9
- package/dist/admin/surface/results/ResultsHeader.d.ts +2 -2
- package/dist/admin/surface/results/ResultsHeader.js +58 -57
- package/dist/admin/surface/surface.css +10 -0
- package/dist/admin/surface/test/TestPage.d.ts +1 -2
- package/dist/admin/surface/test/TestPage.js +42 -161
- package/dist/admin/theme.css +2 -0
- package/dist/admin/views/CollectionListRedirect.d.ts +1 -0
- package/dist/admin/views/CollectionListRedirect.js +1 -1
- package/dist/admin/views/ExperimentsRootView.js +28 -133
- package/dist/admin/views/GoalEditRedirect.d.ts +4 -0
- package/dist/admin/views/GoalEditRedirect.js +14 -0
- package/dist/admin/views/GoalsCollectionListView.d.ts +2 -0
- package/dist/admin/views/GoalsCollectionListView.js +4 -0
- package/dist/admin/views/TestsCollectionListView.d.ts +2 -0
- package/dist/admin/views/TestsCollectionListView.js +4 -0
- package/dist/admin/views/TestsNavLinkServer.d.ts +1 -0
- package/dist/admin/views/TestsNavLinkServer.js +2 -2
- package/dist/admin/views/TestsSurfaceClient.d.ts +3 -0
- package/dist/admin/views/TestsSurfaceClient.js +11 -0
- package/dist/admin/views/buildSurfaceProps.d.ts +8 -0
- package/dist/admin/views/buildSurfaceProps.js +102 -0
- package/dist/admin/views/renderCollectionList.d.ts +2 -0
- package/dist/admin/views/renderCollectionList.js +34 -0
- package/dist/admin/views/renderTestsSurface.d.ts +3 -0
- package/dist/admin/views/renderTestsSurface.js +34 -0
- package/dist/blocks/bindings.d.ts +3 -0
- package/dist/blocks/bindings.js +28 -0
- package/dist/blocks/createExperimentBlock.d.ts +6 -0
- package/dist/blocks/createExperimentBlock.js +77 -0
- package/dist/blocks/formState.d.ts +31 -0
- package/dist/blocks/formState.js +146 -0
- package/dist/blocks/model.d.ts +41 -0
- package/dist/blocks/model.js +34 -0
- package/dist/blocks/placementLanguages.d.ts +7 -0
- package/dist/blocks/placementLanguages.js +27 -0
- package/dist/blocks/placementLocale.d.ts +37 -0
- package/dist/blocks/placementLocale.js +270 -0
- package/dist/client/ExperimentGroup.d.ts +6 -0
- package/dist/client/ExperimentGroup.js +9 -0
- package/dist/client/ExperimentsProvider.js +20 -4
- package/dist/client/clickGoals.d.ts +4 -0
- package/dist/client/clickGoals.js +43 -0
- package/dist/collections/experiments/config.js +29 -10
- package/dist/collections/experiments/deleteGuard.d.ts +2 -1
- package/dist/collections/experiments/deleteGuard.js +14 -3
- package/dist/collections/experiments/editability.js +4 -2
- package/dist/collections/experiments/lockHook.js +21 -2
- package/dist/collections/experiments/pickSlug.d.ts +2 -0
- package/dist/collections/experiments/pickSlug.js +10 -0
- package/dist/collections/labels.d.ts +3 -0
- package/dist/collections/labels.js +20 -0
- package/dist/collections/metrics.js +28 -6
- package/dist/collections/metricsGuards.js +2 -0
- package/dist/collections/phases.js +1 -0
- package/dist/collections/serialize.js +12 -4
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/db/adapter.d.ts +9 -1
- package/dist/db/adapter.js +77 -1
- package/dist/db/appends.d.ts +13 -0
- package/dist/db/appends.js +49 -0
- package/dist/db/bulkPlacementRemoval.d.ts +30 -0
- package/dist/db/bulkPlacementRemoval.js +111 -0
- package/dist/db/clickGoals.d.ts +9 -0
- package/dist/db/clickGoals.js +22 -0
- package/dist/db/delete.d.ts +2 -1
- package/dist/db/delete.js +3 -4
- package/dist/db/events.d.ts +9 -0
- package/dist/db/events.js +42 -8
- package/dist/db/executor.d.ts +7 -1
- package/dist/db/executor.js +7 -3
- package/dist/db/locks.d.ts +8 -0
- package/dist/db/locks.js +27 -4
- package/dist/db/names.d.ts +4 -0
- package/dist/db/names.js +4 -0
- package/dist/db/pageBindings.d.ts +4 -0
- package/dist/db/pageBindings.js +17 -0
- package/dist/db/pageBusy.d.ts +2 -0
- package/dist/db/pageBusy.js +10 -0
- package/dist/db/pageContent.d.ts +10 -0
- package/dist/db/pageContent.js +79 -0
- package/dist/db/pageCopies.d.ts +5 -0
- package/dist/db/pageCopies.js +31 -0
- package/dist/db/placements.d.ts +35 -0
- package/dist/db/placements.js +62 -0
- package/dist/db/results.d.ts +5 -1
- package/dist/db/results.js +21 -5
- package/dist/db/slugs.d.ts +8 -0
- package/dist/db/slugs.js +40 -0
- package/dist/db/snapshots.d.ts +7 -0
- package/dist/db/snapshots.js +8 -5
- package/dist/endpoints/clickKeys.d.ts +5 -0
- package/dist/endpoints/clickKeys.js +17 -0
- package/dist/endpoints/contentLocale.d.ts +6 -0
- package/dist/endpoints/contentLocale.js +15 -0
- package/dist/endpoints/deleteImpact.d.ts +6 -0
- package/dist/endpoints/deleteImpact.js +207 -0
- package/dist/endpoints/duplicateOriginal.d.ts +38 -0
- package/dist/endpoints/duplicateOriginal.js +407 -0
- package/dist/endpoints/editorSurface.d.ts +3 -0
- package/dist/endpoints/editorSurface.js +31 -0
- package/dist/endpoints/events.js +106 -39
- package/dist/endpoints/index.js +85 -9
- package/dist/endpoints/pages.d.ts +5 -0
- package/dist/endpoints/pages.js +303 -0
- package/dist/endpoints/placementStatus.d.ts +6 -0
- package/dist/endpoints/placementStatus.js +246 -0
- package/dist/endpoints/preflight.d.ts +1 -1
- package/dist/endpoints/preflight.js +17 -2
- package/dist/endpoints/readBody.d.ts +2 -0
- package/dist/endpoints/readBody.js +24 -0
- package/dist/endpoints/results.d.ts +1 -1
- package/dist/endpoints/results.js +10 -2
- package/dist/endpoints/routeId.d.ts +2 -2
- package/dist/endpoints/routeId.js +11 -5
- package/dist/endpoints/summary.js +46 -5
- package/dist/endpoints/testVersion.d.ts +2 -0
- package/dist/endpoints/testVersion.js +38 -0
- package/dist/endpoints/transitions.js +41 -29
- package/dist/endpoints/wrapBlock.d.ts +6 -0
- package/dist/endpoints/wrapBlock.js +76 -0
- package/dist/errors.d.ts +7 -2
- package/dist/errors.js +11 -3
- package/dist/events/request.d.ts +6 -2
- package/dist/events/request.js +35 -8
- package/dist/events/rows.d.ts +1 -1
- package/dist/events/rows.js +25 -7
- package/dist/events/writable.d.ts +9 -0
- package/dist/events/writable.js +13 -0
- package/dist/exports/adminClient.d.ts +6 -1
- package/dist/exports/adminClient.js +6 -1
- package/dist/exports/adminRsc.d.ts +3 -0
- package/dist/exports/adminRsc.js +3 -0
- package/dist/exports/blocks.d.ts +2 -0
- package/dist/exports/blocks.js +1 -0
- package/dist/exports/client.d.ts +1 -0
- package/dist/exports/client.js +1 -0
- package/dist/exports/index.d.ts +6 -1
- package/dist/exports/index.js +3 -0
- package/dist/exports/puck.d.ts +3 -1
- package/dist/exports/puck.js +2 -0
- package/dist/exports/puckEditor.d.ts +3 -0
- package/dist/exports/puckEditor.js +2 -0
- package/dist/exports/rsc.d.ts +4 -0
- package/dist/exports/rsc.js +3 -0
- package/dist/fields/xpGoal.d.ts +3 -0
- package/dist/fields/xpGoal.js +16 -0
- package/dist/globals/state.js +10 -0
- package/dist/goals/cache.d.ts +3 -0
- package/dist/goals/cache.js +35 -0
- package/dist/goals/fairness.d.ts +40 -0
- package/dist/goals/fairness.js +209 -0
- package/dist/goals/key.d.ts +4 -0
- package/dist/goals/key.js +3 -0
- package/dist/goals/picker/clickGoalPicker.model.d.ts +36 -0
- package/dist/goals/picker/clickGoalPicker.model.js +63 -0
- package/dist/goals/picker/copy.d.ts +20 -0
- package/dist/goals/picker/copy.js +24 -0
- package/dist/goals/picker/useClickGoalPicker.d.ts +30 -0
- package/dist/goals/picker/useClickGoalPicker.js +222 -0
- package/dist/goals/validate.d.ts +3 -0
- package/dist/goals/validate.js +15 -0
- package/dist/hooks/blockRemovalRule.d.ts +30 -0
- package/dist/hooks/blockRemovalRule.js +165 -0
- package/dist/hooks/hostHook.js +6 -2
- package/dist/hooks/pageGuard.d.ts +30 -1
- package/dist/hooks/pageGuard.js +337 -107
- package/dist/hooks/puckGoals.d.ts +5 -0
- package/dist/hooks/puckGoals.js +62 -0
- package/dist/hooks/puckNestedTests.d.ts +8 -0
- package/dist/hooks/puckNestedTests.js +36 -0
- package/dist/hooks/trackPageCopies.d.ts +11 -0
- package/dist/hooks/trackPageCopies.js +7 -0
- package/dist/lib/fetchAllDocs.d.ts +1 -1
- package/dist/lib/placementPages.d.ts +10 -0
- package/dist/{admin/previewLinks.model.js → lib/placementPages.js} +10 -5
- package/dist/manifest/compile.d.ts +2 -1
- package/dist/manifest/compile.js +13 -6
- package/dist/onInit.js +65 -0
- package/dist/options.d.ts +4 -0
- package/dist/options.js +62 -1
- package/dist/plugin.js +56 -44
- package/dist/proxy/pageNavigation.d.ts +4 -0
- package/dist/proxy/pageNavigation.js +28 -0
- package/dist/proxy/resolve.js +52 -25
- package/dist/puck/ExperimentPicker.d.ts +2 -1
- package/dist/puck/ExperimentPicker.js +62 -40
- package/dist/puck/ExperimentSlot.js +3 -1
- package/dist/puck/copy.d.ts +6 -1
- package/dist/puck/copy.js +6 -1
- package/dist/puck/editor/ConfigureTestDrawer.d.ts +25 -0
- package/dist/puck/editor/ConfigureTestDrawer.js +150 -0
- package/dist/puck/editor/CreateExperimentDrawer.d.ts +12 -2
- package/dist/puck/editor/CreateExperimentDrawer.js +89 -21
- package/dist/puck/editor/EditorControls.d.ts +14 -0
- package/dist/puck/editor/EditorControls.js +99 -0
- package/dist/puck/editor/ExperimentSlotEditor.js +951 -179
- package/dist/puck/editor/LeftoverVersions.d.ts +15 -0
- package/dist/puck/editor/LeftoverVersions.js +79 -0
- package/dist/puck/editor/PlacementNotice.d.ts +8 -0
- package/dist/puck/editor/PlacementNotice.js +22 -0
- package/dist/puck/editor/QuickTestActions.d.ts +6 -0
- package/dist/puck/editor/QuickTestActions.js +57 -0
- package/dist/puck/editor/ResultsReadout.d.ts +2 -1
- package/dist/puck/editor/ResultsReadout.js +10 -6
- package/dist/puck/editor/VersionBuilder.d.ts +66 -12
- package/dist/puck/editor/VersionBuilder.js +554 -231
- package/dist/puck/editor/armWrites.d.ts +11 -2
- package/dist/puck/editor/armWrites.js +43 -4
- package/dist/puck/editor/armsCache.d.ts +3 -1
- package/dist/puck/editor/armsCache.js +20 -4
- package/dist/puck/editor/blockClipboard.d.ts +16 -0
- package/dist/puck/editor/blockClipboard.js +20 -0
- package/dist/puck/editor/cloneSlot.d.ts +2 -0
- package/dist/puck/editor/cloneSlot.js +7 -0
- package/dist/puck/editor/copy.d.ts +64 -19
- package/dist/puck/editor/copy.js +72 -20
- package/dist/puck/editor/createTest.d.ts +3 -0
- package/dist/puck/editor/createTest.js +33 -0
- package/dist/puck/editor/editor.chrome.css +192 -19
- package/dist/puck/editor/editor.css +329 -24
- package/dist/puck/editor/editor.model.d.ts +21 -3
- package/dist/puck/editor/editor.model.js +67 -7
- package/dist/puck/editor/editorSurface.d.ts +10 -0
- package/dist/puck/editor/editorSurface.js +65 -0
- package/dist/puck/editor/experimentOutlinePlugin.js +96 -28
- package/dist/puck/editor/integration.d.ts +10 -0
- package/dist/puck/editor/integration.js +30 -0
- package/dist/puck/editor/localPlacements.d.ts +5 -0
- package/dist/puck/editor/localPlacements.js +43 -0
- package/dist/puck/editor/outlineVersion.d.ts +5 -0
- package/dist/puck/editor/outlineVersion.js +36 -0
- package/dist/puck/editor/placementsCache.d.ts +60 -0
- package/dist/puck/editor/placementsCache.js +263 -0
- package/dist/puck/editor/sidebar.d.ts +8 -0
- package/dist/puck/editor/sidebar.js +74 -0
- package/dist/puck/editor/usePageSaveReadiness.d.ts +6 -0
- package/dist/puck/editor/usePageSaveReadiness.js +31 -0
- package/dist/puck/editor/usePlacementNotice.d.ts +3 -0
- package/dist/puck/editor/usePlacementNotice.js +15 -0
- package/dist/puck/editor/xpGoalPuckEditorField.d.ts +7 -0
- package/dist/puck/editor/xpGoalPuckEditorField.js +153 -0
- package/dist/puck/experimentSlotField.d.ts +3 -0
- package/dist/puck/experimentSlotField.js +15 -4
- package/dist/puck/experimentSlug.d.ts +2 -0
- package/dist/puck/experimentSlug.js +3 -0
- package/dist/puck/integration.d.ts +6 -0
- package/dist/puck/integration.js +21 -0
- package/dist/puck/nestedTestCopy.d.ts +8 -0
- package/dist/puck/nestedTestCopy.js +22 -0
- package/dist/puck/nestedTests.d.ts +17 -0
- package/dist/puck/nestedTests.js +30 -0
- package/dist/puck/slotConfig.d.ts +1 -1
- package/dist/puck/slotConfig.js +17 -4
- package/dist/puck/visibility.d.ts +20 -0
- package/dist/puck/visibility.js +81 -0
- package/dist/puck/xpGoalField.d.ts +3 -0
- package/dist/puck/xpGoalField.js +6 -0
- package/dist/results/aggregate.d.ts +6 -3
- package/dist/results/aggregate.js +9 -9
- package/dist/results/health.d.ts +12 -0
- package/dist/results/health.js +55 -0
- package/dist/results/identityCredit.d.ts +1 -0
- package/dist/results/identityCredit.js +4 -1
- package/dist/results/snapshot.js +15 -2
- package/dist/results/verdict.js +2 -1
- package/dist/runtime/cookie.d.ts +10 -2
- package/dist/runtime/cookie.js +38 -6
- package/dist/runtime/cookieOptions.d.ts +6 -0
- package/dist/runtime/cookieOptions.js +14 -0
- package/dist/runtime/proxyRuntime.d.ts +1 -0
- package/dist/runtime/proxyRuntime.js +18 -8
- package/dist/runtime/signing.d.ts +1 -0
- package/dist/runtime/signing.js +5 -0
- package/dist/sanitizeReadinessDetail.d.ts +2 -2
- package/dist/sanitizeReadinessDetail.js +63 -2
- package/dist/server/getAssignments.js +11 -10
- package/dist/server/pageKindSeoContract.d.ts +27 -0
- package/dist/server/pageKindSeoContract.js +80 -0
- package/dist/server/recordContentChange.d.ts +1 -1
- package/dist/server/recordContentChange.js +88 -12
- package/dist/server/resolveExperimentBlocks.d.ts +5 -0
- package/dist/server/resolveExperimentBlocks.js +52 -0
- package/dist/server/resolveExperimentData.js +8 -8
- package/dist/server/runResults.js +104 -25
- package/dist/server/startExperiment.d.ts +20 -0
- package/dist/server/startExperiment.js +70 -0
- package/dist/server/toClientAssignments.js +2 -1
- package/dist/server/trackConversion.js +10 -13
- package/dist/{admin → testSurface}/PreviewLinks.d.ts +2 -1
- package/dist/{admin → testSurface}/PreviewLinks.js +8 -4
- package/dist/testSurface/actions/DecideDialog.d.ts +16 -0
- package/dist/{admin → testSurface}/actions/DecideDialog.js +79 -56
- package/dist/testSurface/actions/LifecycleAction.d.ts +16 -0
- package/dist/testSurface/actions/LifecycleAction.js +105 -0
- package/dist/{admin → testSurface}/actions/MakeContentResult.d.ts +4 -3
- package/dist/{admin → testSurface}/actions/MakeContentResult.js +10 -2
- package/dist/{admin → testSurface}/actions/actions.model.d.ts +13 -5
- package/dist/testSurface/actions/actions.model.js +122 -0
- package/dist/testSurface/api.d.ts +60 -0
- package/dist/testSurface/api.js +167 -0
- package/dist/testSurface/contentLocaleURL.d.ts +2 -0
- package/dist/testSurface/contentLocaleURL.js +3 -0
- package/dist/{admin → testSurface}/copy/actions.d.ts +30 -8
- package/dist/{admin → testSurface}/copy/actions.js +40 -11
- package/dist/{admin → testSurface}/copy/common.d.ts +13 -4
- package/dist/{admin → testSurface}/copy/common.js +18 -8
- package/dist/testSurface/copy/languages.d.ts +12 -0
- package/dist/testSurface/copy/languages.js +8 -0
- package/dist/{admin → testSurface}/copy/metrics.d.ts +1 -0
- package/dist/{admin → testSurface}/copy/metrics.js +1 -0
- package/dist/testSurface/copy/pages.d.ts +84 -0
- package/dist/testSurface/copy/pages.js +90 -0
- package/dist/{admin → testSurface}/copy/readiness.d.ts +59 -6
- package/dist/testSurface/copy/readiness.js +136 -0
- package/dist/{admin → testSurface}/copy/results.d.ts +7 -3
- package/dist/{admin → testSurface}/copy/results.js +7 -3
- package/dist/{admin → testSurface}/copy/review.d.ts +1 -1
- package/dist/{admin → testSurface}/copy/review.js +1 -1
- package/dist/{admin → testSurface}/copy/surface.d.ts +11 -2
- package/dist/{admin → testSurface}/copy/surface.js +13 -10
- package/dist/{admin → testSurface}/copy/testPage.d.ts +56 -7
- package/dist/testSurface/copy/testPage.js +165 -0
- package/dist/testSurface/format/adminURL.d.ts +7 -0
- package/dist/testSurface/format/adminURL.js +9 -0
- package/dist/{admin → testSurface}/metricSource.model.d.ts +2 -0
- package/dist/{admin → testSurface}/metricSource.model.js +4 -0
- package/dist/testSurface/placementLabel.d.ts +8 -0
- package/dist/testSurface/placementLabel.js +24 -0
- package/dist/testSurface/placements/placementLabels.d.ts +13 -0
- package/dist/testSurface/placements/placementLabels.js +22 -0
- package/dist/testSurface/placements/placementLabels.model.d.ts +13 -0
- package/dist/testSurface/placements/placementLabels.model.js +12 -0
- package/dist/testSurface/placements/usePlacementLabels.d.ts +12 -0
- package/dist/testSurface/placements/usePlacementLabels.js +102 -0
- package/dist/{admin → testSurface}/previewLinks.model.d.ts +1 -6
- package/dist/testSurface/previewLinks.model.js +4 -0
- package/dist/testSurface/readPreflight.d.ts +13 -0
- package/dist/testSurface/readPreflight.js +44 -0
- package/dist/testSurface/readinessRead.d.ts +53 -0
- package/dist/testSurface/readinessRead.js +50 -0
- package/dist/{admin → testSurface}/results/DataQualityPanel.js +4 -1
- package/dist/{admin → testSurface}/results/VerdictHero.d.ts +2 -1
- package/dist/{admin → testSurface}/results/VerdictHero.js +5 -1
- package/dist/testSurface/results/results.css +64 -0
- package/dist/{admin → testSurface}/results/results.model.d.ts +3 -0
- package/dist/{admin → testSurface}/results/results.model.js +14 -6
- package/dist/{admin → testSurface}/surface/contracts.d.ts +23 -8
- package/dist/testSurface/surface/editorPlacement.d.ts +26 -0
- package/dist/testSurface/surface/editorPlacement.js +78 -0
- package/dist/testSurface/surface/pageBlock/pageBlock.model.js +9 -0
- package/dist/{admin → testSurface}/surface/pageBlock/parts.js +39 -11
- package/dist/testSurface/surface/pagePicker/CopyRoute.d.ts +13 -0
- package/dist/testSurface/surface/pagePicker/CopyRoute.js +273 -0
- package/dist/testSurface/surface/pagePicker/PageCombobox.d.ts +21 -0
- package/dist/testSurface/surface/pagePicker/PageCombobox.js +503 -0
- package/dist/testSurface/surface/pagePicker/pagePicker.css +73 -0
- package/dist/testSurface/surface/pagePicker/pagePicker.model.d.ts +29 -0
- package/dist/testSurface/surface/pagePicker/pagePicker.model.js +40 -0
- package/dist/{admin → testSurface}/surface/readiness/ActionDialogs.d.ts +8 -4
- package/dist/testSurface/surface/readiness/ActionDialogs.js +351 -0
- package/dist/{admin → testSurface}/surface/readiness/Banner.d.ts +2 -3
- package/dist/testSurface/surface/readiness/Banner.js +187 -0
- package/dist/testSurface/surface/readiness/BlockerList.d.ts +11 -0
- package/dist/testSurface/surface/readiness/BlockerList.js +31 -0
- package/dist/testSurface/surface/readiness/SaveStatus.d.ts +10 -0
- package/dist/testSurface/surface/readiness/SaveStatus.js +66 -0
- package/dist/{admin → testSurface}/surface/readiness/parts.js +0 -2
- package/dist/testSurface/surface/readiness/readiness.model.d.ts +57 -0
- package/dist/testSurface/surface/readiness/readiness.model.js +377 -0
- package/dist/testSurface/surface/readiness/useTransition.d.ts +16 -0
- package/dist/testSurface/surface/readiness/useTransition.js +141 -0
- package/dist/testSurface/surface/results/ReleasePages.d.ts +19 -0
- package/dist/{admin → testSurface}/surface/results/ReleasePages.js +43 -47
- package/dist/{admin → testSurface}/surface/results/ResultsBody.d.ts +7 -3
- package/dist/{admin → testSurface}/surface/results/ResultsBody.js +129 -46
- package/dist/{admin → testSurface}/surface/results/useResults.d.ts +36 -9
- package/dist/{admin → testSurface}/surface/results/useResults.js +3 -2
- package/dist/{admin → testSurface}/surface/setting/parts.js +58 -18
- package/dist/testSurface/surface/setting/setting.css +17 -0
- package/dist/testSurface/surface/test/AdvancedSection.js +169 -0
- package/dist/testSurface/surface/test/DeleteTest.d.ts +23 -0
- package/dist/testSurface/surface/test/DeleteTest.js +270 -0
- package/dist/testSurface/surface/test/GoalSection.d.ts +4 -0
- package/dist/testSurface/surface/test/GoalSection.js +341 -0
- package/dist/testSurface/surface/test/LengthSection.d.ts +2 -0
- package/dist/{admin → testSurface}/surface/test/LengthSection.js +6 -2
- package/dist/testSurface/surface/test/PageHoldout.d.ts +3 -0
- package/dist/testSurface/surface/test/PageHoldout.js +70 -0
- package/dist/{admin → testSurface}/surface/test/Rail.js +7 -4
- package/dist/{admin → testSurface}/surface/test/ReadinessBar.d.ts +1 -0
- package/dist/{admin → testSurface}/surface/test/ReadinessBar.js +2 -3
- package/dist/{admin → testSurface}/surface/test/Section.d.ts +3 -1
- package/dist/testSurface/surface/test/Section.js +80 -0
- package/dist/{admin → testSurface}/surface/test/TargetingSection.js +82 -12
- package/dist/testSurface/surface/test/TestSurface.d.ts +19 -0
- package/dist/testSurface/surface/test/TestSurface.js +265 -0
- package/dist/testSurface/surface/test/VersionsSection.d.ts +5 -0
- package/dist/{admin → testSurface}/surface/test/VersionsSection.js +81 -40
- package/dist/{admin → testSurface}/surface/test/fields.d.ts +40 -8
- package/dist/testSurface/surface/test/fields.js +306 -0
- package/dist/{admin → testSurface}/surface/test/jumpToSection.d.ts +1 -1
- package/dist/{admin → testSurface}/surface/test/jumpToSection.js +4 -3
- package/dist/testSurface/surface/test/pageParts.d.ts +5 -0
- package/dist/testSurface/surface/test/pageParts.js +106 -0
- package/dist/testSurface/surface/test/testPage.css +103 -0
- package/dist/{admin → testSurface}/surface/test/testPage.model.d.ts +1 -0
- package/dist/{admin → testSurface}/surface/test/testPage.model.js +6 -0
- package/dist/{admin → testSurface}/surface/testDocument.model.d.ts +4 -0
- package/dist/{admin → testSurface}/surface/testDocument.model.js +6 -2
- package/dist/testSurface/surface/useTestDocument.d.ts +60 -0
- package/dist/testSurface/surface/useTestDocument.js +782 -0
- package/dist/testSurface/surface/watchTestDocument.d.ts +15 -0
- package/dist/testSurface/surface/watchTestDocument.js +181 -0
- package/dist/testSurface/surfaceUrls.d.ts +7 -0
- package/dist/testSurface/surfaceUrls.js +19 -0
- package/dist/testSurface/useApi.d.ts +60 -0
- package/dist/testSurface/useApi.js +8 -0
- package/dist/testSurface/useOnTestReturn.d.ts +2 -0
- package/dist/testSurface/useOnTestReturn.js +27 -0
- package/dist/testSurface/useReadinessPolling.d.ts +3 -0
- package/dist/testSurface/useReadinessPolling.js +26 -0
- package/dist/transitions/addMetric.d.ts +4 -6
- package/dist/transitions/addMetric.js +33 -2
- package/dist/transitions/allocate.d.ts +2 -2
- package/dist/transitions/allocate.js +3 -1
- package/dist/transitions/archive.d.ts +1 -1
- package/dist/transitions/archive.js +3 -2
- package/dist/transitions/checkStart.d.ts +18 -1
- package/dist/transitions/checkStart.js +207 -9
- package/dist/transitions/contentFields.js +9 -5
- package/dist/transitions/decide.d.ts +1 -1
- package/dist/transitions/decide.js +30 -3
- package/dist/transitions/deleteExperiment.d.ts +5 -3
- package/dist/transitions/deleteExperiment.js +43 -7
- package/dist/transitions/kernel.d.ts +4 -0
- package/dist/transitions/kernel.js +13 -4
- package/dist/transitions/makeContent.d.ts +7 -1
- package/dist/transitions/makeContent.js +74 -22
- package/dist/transitions/nestedPlacementNames.d.ts +5 -0
- package/dist/transitions/nestedPlacementNames.js +32 -0
- package/dist/transitions/pageAddress.d.ts +6 -0
- package/dist/transitions/pageAddress.js +71 -0
- package/dist/transitions/pageCollection.d.ts +10 -0
- package/dist/transitions/pageCollection.js +20 -0
- package/dist/transitions/pageVersions.d.ts +10 -0
- package/dist/transitions/pageVersions.js +46 -0
- package/dist/transitions/phaseRecord.d.ts +3 -0
- package/dist/transitions/phaseRecord.js +5 -0
- package/dist/transitions/placementInteractions.d.ts +40 -0
- package/dist/transitions/placementInteractions.js +98 -0
- package/dist/transitions/placements.d.ts +58 -4
- package/dist/transitions/placements.js +391 -21
- package/dist/transitions/preflightData.d.ts +7 -5
- package/dist/transitions/preflightData.js +269 -40
- package/dist/transitions/releaseHoldout.d.ts +2 -1
- package/dist/transitions/releaseHoldout.js +3 -1
- package/dist/transitions/releasePages.d.ts +2 -1
- package/dist/transitions/releasePages.js +3 -1
- package/dist/transitions/resolveCaps.d.ts +3 -4
- package/dist/transitions/resolveCaps.js +6 -2
- package/dist/transitions/start.d.ts +6 -8
- package/dist/transitions/start.js +112 -31
- package/dist/transitions/startReads.d.ts +7 -0
- package/dist/transitions/startReads.js +28 -0
- package/dist/transitions/stop.d.ts +2 -1
- package/dist/transitions/stop.js +3 -2
- package/dist/types/admin.d.ts +1 -1
- package/dist/types/assignments.d.ts +1 -0
- package/dist/types/contracts.d.ts +30 -3
- package/dist/types/endpoints.d.ts +204 -13
- package/dist/types/index.d.ts +3 -0
- package/dist/types/puck.d.ts +8 -1
- package/dist/types/runtime.d.ts +15 -9
- package/dist/types/snapshot.d.ts +19 -4
- package/dist/types/surface.d.ts +20 -7
- package/dist/ui/Button.js +2 -2
- package/dist/ui/Card.d.ts +2 -1
- package/dist/ui/Card.js +4 -4
- package/dist/ui/ChipsInput.d.ts +8 -1
- package/dist/ui/ChipsInput.js +17 -4
- package/dist/ui/Dialog.d.ts +24 -2
- package/dist/ui/Dialog.js +116 -6
- package/dist/ui/Drawer.d.ts +10 -0
- package/dist/ui/Drawer.js +29 -0
- package/dist/ui/Inputs.d.ts +4 -3
- package/dist/ui/Inputs.js +7 -4
- package/dist/ui/SelectControl.d.ts +33 -0
- package/dist/ui/SelectControl.js +504 -0
- package/dist/ui/Tabs.d.ts +4 -4
- package/dist/ui/Tabs.js +35 -32
- package/dist/ui/ui.css +49 -5
- package/package.json +9 -1
- package/dist/admin/actions/ConfirmDialog.d.ts +0 -18
- package/dist/admin/actions/ConfirmDialog.js +0 -149
- package/dist/admin/actions/DecideDialog.d.ts +0 -9
- package/dist/admin/actions/actions.model.js +0 -70
- package/dist/admin/api.d.ts +0 -38
- package/dist/admin/api.js +0 -99
- package/dist/admin/copy/readiness.js +0 -71
- package/dist/admin/copy/testPage.js +0 -100
- package/dist/admin/results/results.css +0 -64
- package/dist/admin/styles.css +0 -10
- package/dist/admin/styles.d.ts +0 -2
- package/dist/admin/styles.js +0 -3
- package/dist/admin/surface/pageBlock/pageBlock.model.js +0 -8
- package/dist/admin/surface/readiness/ActionDialogs.js +0 -302
- package/dist/admin/surface/readiness/Banner.js +0 -166
- package/dist/admin/surface/readiness/SaveStatus.d.ts +0 -5
- package/dist/admin/surface/readiness/SaveStatus.js +0 -53
- package/dist/admin/surface/readiness/readiness.model.d.ts +0 -24
- package/dist/admin/surface/readiness/readiness.model.js +0 -123
- package/dist/admin/surface/readiness/useTransition.d.ts +0 -11
- package/dist/admin/surface/readiness/useTransition.js +0 -35
- package/dist/admin/surface/results/ReleasePages.d.ts +0 -14
- package/dist/admin/surface/setting/setting.css +0 -17
- package/dist/admin/surface/test/AdvancedSection.js +0 -160
- package/dist/admin/surface/test/GoalSection.d.ts +0 -2
- package/dist/admin/surface/test/GoalSection.js +0 -228
- package/dist/admin/surface/test/LengthSection.d.ts +0 -2
- package/dist/admin/surface/test/Section.js +0 -47
- package/dist/admin/surface/test/VersionsSection.d.ts +0 -4
- package/dist/admin/surface/test/fields.js +0 -184
- package/dist/admin/surface/test/pageParts.d.ts +0 -2
- package/dist/admin/surface/test/pageParts.js +0 -45
- package/dist/admin/surface/test/testPage.css +0 -90
- package/dist/admin/surface/useTestDocument.d.ts +0 -23
- package/dist/admin/surface/useTestDocument.js +0 -377
- package/dist/admin/useApi.d.ts +0 -35
- package/dist/admin/useApi.js +0 -10
- /package/dist/{admin → testSurface}/actions/decide.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/actions/decide.model.js +0 -0
- /package/dist/{admin → testSurface}/allocation.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/allocation.model.js +0 -0
- /package/dist/{admin → testSurface}/arms/arms.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/arms/arms.model.js +0 -0
- /package/dist/{admin → testSurface}/arms/pageTarget.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/arms/pageTarget.model.js +0 -0
- /package/dist/{admin → testSurface}/arms/params.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/arms/params.model.js +0 -0
- /package/dist/{admin → testSurface}/copy/advanced.d.ts +0 -0
- /package/dist/{admin → testSurface}/copy/advanced.js +0 -0
- /package/dist/{admin → testSurface}/copy/arms.d.ts +0 -0
- /package/dist/{admin → testSurface}/copy/arms.js +0 -0
- /package/dist/{admin → testSurface}/copy/audience.d.ts +0 -0
- /package/dist/{admin → testSurface}/copy/audience.js +0 -0
- /package/dist/{admin → testSurface}/copy/recommendation.d.ts +0 -0
- /package/dist/{admin → testSurface}/copy/recommendation.js +0 -0
- /package/dist/{admin → testSurface}/copy/setting.d.ts +0 -0
- /package/dist/{admin → testSurface}/copy/setting.js +0 -0
- /package/dist/{admin → testSurface}/format/date.d.ts +0 -0
- /package/dist/{admin → testSurface}/format/date.js +0 -0
- /package/dist/{admin → testSurface}/labels.d.ts +0 -0
- /package/dist/{admin → testSurface}/labels.js +0 -0
- /package/dist/{admin → testSurface}/lockedNotice.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/lockedNotice.model.js +0 -0
- /package/dist/{admin → testSurface}/reload.d.ts +0 -0
- /package/dist/{admin → testSurface}/reload.js +0 -0
- /package/dist/{admin → testSurface}/results/CappedCell.d.ts +0 -0
- /package/dist/{admin → testSurface}/results/CappedCell.js +0 -0
- /package/dist/{admin → testSurface}/results/CiChart.d.ts +0 -0
- /package/dist/{admin → testSurface}/results/CiChart.js +0 -0
- /package/dist/{admin → testSurface}/results/DataQualityPanel.d.ts +0 -0
- /package/dist/{admin → testSurface}/results/DataTable.d.ts +0 -0
- /package/dist/{admin → testSurface}/results/DataTable.js +0 -0
- /package/dist/{admin → testSurface}/results/StatTile.d.ts +0 -0
- /package/dist/{admin → testSurface}/results/StatTile.js +0 -0
- /package/dist/{admin → testSurface}/results/chart.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/results/chart.model.js +0 -0
- /package/dist/{admin → testSurface}/results/format.d.ts +0 -0
- /package/dist/{admin → testSurface}/results/format.js +0 -0
- /package/dist/{admin → testSurface}/results/legacy.d.ts +0 -0
- /package/dist/{admin → testSurface}/results/legacy.js +0 -0
- /package/dist/{admin → testSurface}/results/releasePages.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/results/releasePages.model.js +0 -0
- /package/dist/{admin → testSurface}/results/snapshot.d.ts +0 -0
- /package/dist/{admin → testSurface}/results/snapshot.js +0 -0
- /package/dist/{admin → testSurface}/review/review.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/review/review.model.js +0 -0
- /package/dist/{admin → testSurface}/surface/contracts.js +0 -0
- /package/dist/{admin → testSurface}/surface/pageBlock/pageBlock.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/surface/pageBlock/parts.d.ts +0 -0
- /package/dist/{admin → testSurface}/surface/readiness/parts.d.ts +0 -0
- /package/dist/{admin → testSurface}/surface/results/recommendation.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/surface/results/recommendation.model.js +0 -0
- /package/dist/{admin → testSurface}/surface/setting/parts.d.ts +0 -0
- /package/dist/{admin → testSurface}/surface/setting/setting.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/surface/setting/setting.model.js +0 -0
- /package/dist/{admin → testSurface}/surface/test/AdvancedSection.d.ts +0 -0
- /package/dist/{admin → testSurface}/surface/test/Rail.d.ts +0 -0
- /package/dist/{admin → testSurface}/surface/test/TargetingSection.d.ts +0 -0
- /package/dist/{admin → testSurface}/targeting/targeting.model.d.ts +0 -0
- /package/dist/{admin → testSurface}/targeting/targeting.model.js +0 -0
- /package/dist/{admin → testSurface}/theme.d.ts +0 -0
- /package/dist/{admin → testSurface}/theme.js +0 -0
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { asymmetricGoalsCopy, placementUncheckedCopy } from './readiness.js';
|
|
1
2
|
export const ACTIONS_COPY = {
|
|
3
|
+
decisionUnavailable: 'This round can no longer be decided here. Copy your note before closing.',
|
|
2
4
|
start: 'Start',
|
|
3
5
|
restart: 'Start a new round',
|
|
4
6
|
stop: 'Stop',
|
|
@@ -8,13 +10,29 @@ export const ACTIONS_COPY = {
|
|
|
8
10
|
finish: 'Finish archiving',
|
|
9
11
|
archive: 'Archive',
|
|
10
12
|
discard: 'Discard winner',
|
|
11
|
-
startBody: '
|
|
12
|
-
restartBody: '
|
|
13
|
-
stopBody: '
|
|
13
|
+
startBody: 'The test will start showing versions to visitors and collecting results.',
|
|
14
|
+
restartBody: 'Visitors will start seeing test versions again. New results go into a new round, and earlier results are kept.',
|
|
15
|
+
stopBody: 'Visitors will go back to the Original. The test stops collecting data and keeps its results. Starting again begins a new round.',
|
|
14
16
|
original: 'Everyone will see the Original.',
|
|
15
|
-
discardBody: '
|
|
16
|
-
archiveBody: '
|
|
17
|
-
finishBody: 'The content
|
|
17
|
+
discardBody: 'Visitors go back to the Original. The test moves to Archived and keeps its results and decision note. You can then delete it.',
|
|
18
|
+
archiveBody: "The test moves out of the active list into Archived. It won't collect any more data, and visitors will keep seeing the Original. You can still view the results or delete the test later. You can't restart it.",
|
|
19
|
+
finishBody: 'The updated content stays in place. The test moves to Archived and keeps its results. You can then delete it.',
|
|
20
|
+
hardCodedBody: 'The test moves to Archived and keeps its results. The site will use the version your developer made permanent. You can then delete the test.',
|
|
21
|
+
confirmPermanentWinner: 'Confirm permanent winner',
|
|
22
|
+
titleLead: {
|
|
23
|
+
restart: 'Start a new round for',
|
|
24
|
+
decide: 'Decide the winner for',
|
|
25
|
+
'release-holdout': 'Release the holdout for',
|
|
26
|
+
'make-content': 'Make the winner permanent for',
|
|
27
|
+
discard: 'Discard the winner for',
|
|
28
|
+
'hard-coded': 'Confirm the permanent winner for',
|
|
29
|
+
allocate: 'Let more people into',
|
|
30
|
+
'add-metric': 'Add a goal to',
|
|
31
|
+
'release-pages': 'Release pages for'
|
|
32
|
+
},
|
|
33
|
+
decideBody: 'Choose the version visitors should see going forward. The test round ends and its results are kept.',
|
|
34
|
+
decideRoundMissing: "Couldn't find the versions from this round. Close this dialog and check the current round.",
|
|
35
|
+
actionChanged: 'This test changed. Close this dialog to see the current actions.',
|
|
18
36
|
noResults: 'There are no results yet.',
|
|
19
37
|
noRecommendation: "The results don't recommend a group yet.",
|
|
20
38
|
different: 'You chose a different group than the results recommend.',
|
|
@@ -31,7 +49,7 @@ export const ACTIONS_COPY = {
|
|
|
31
49
|
contentArchived: 'The winner is now the content and the test is archived.',
|
|
32
50
|
dismissLabel: (page)=>`Dismiss ${page}`,
|
|
33
51
|
undoLabel: (page)=>`Undo dismiss ${page}`,
|
|
34
|
-
dismissHelp: "Dismiss
|
|
52
|
+
dismissHelp: "Dismiss each page you plan to update by hand so you can finish archiving.",
|
|
35
53
|
contentEntryNotDecided: "This test isn't decided, so its pages can't be changed.",
|
|
36
54
|
contentEntryMissing: 'This page is no longer in the list. Reload to see the current list.',
|
|
37
55
|
contentEntryDismissed: 'This page was already dismissed.',
|
|
@@ -44,18 +62,21 @@ export const ACTIONS_COPY = {
|
|
|
44
62
|
failed: 'Failed',
|
|
45
63
|
contentReasons: {
|
|
46
64
|
localized: "This page has more than one language; Make it the content can't publish it safely yet. Copy the winning version by hand.",
|
|
47
|
-
locked: 'Someone is editing this page.
|
|
65
|
+
locked: 'Someone is editing this page. Retry when they finish.',
|
|
48
66
|
forbidden: "You can't read or update this page. Ask someone with access to update it by hand. If it was deleted or moved to trash, discard the winner to archive this test.",
|
|
49
67
|
'not-found': 'This page could not be found. Check whether it was deleted.',
|
|
50
|
-
validation: "This page couldn't be saved automatically. Update it by hand
|
|
68
|
+
validation: "This page couldn't be saved automatically. Update it by hand.",
|
|
51
69
|
'update-failed': "This page couldn't be updated this time. Retry; if it keeps happening, ask a developer."
|
|
52
70
|
},
|
|
53
71
|
missingContent: 'This page no longer exists; nothing to change.',
|
|
54
|
-
partial: "Some pages
|
|
72
|
+
partial: "Some pages still need changes."
|
|
55
73
|
};
|
|
74
|
+
export const actionTitle = (action, test)=>`${action} “${test}”?`;
|
|
75
|
+
export const actionTitleFor = (action, test)=>`${action} for “${test}”?`;
|
|
76
|
+
export const actionsForTest = (test)=>`Actions for ${test}`;
|
|
56
77
|
export const decideCopy = (winner, holdout, original)=>original ? ACTIONS_COPY.original : holdout ? `Everyone except the holdout will see ${winner}. The holdout keeps seeing the Original so we can measure the shipped change.` : `Everyone will see ${winner}.`;
|
|
57
78
|
export const releaseCopy = (winner)=>`The holdout will see ${winner} too. Measuring since shipping ends.`;
|
|
58
|
-
export const makeContentCopy = (winner, kind)=>kind === 'flag' ? `Saves ${winner}'s settings as the new defaults so the test can be archived.` : `Copies ${winner} into the page content so the test can be archived.`;
|
|
79
|
+
export const makeContentCopy = (winner, kind)=>kind === 'flag' ? `Saves ${winner}'s settings as the new defaults so the test can be archived.` : kind === 'page' ? `Archives the test and keeps serving ${winner} at the test's addresses. The pages and results are kept.` : `Copies ${winner} into the page content so the test can be archived.`;
|
|
59
80
|
export const hardCodedLabel = (winner)=>`The developer has hard-coded ${winner}`;
|
|
60
81
|
/** Old reports can contain host error text: never interpolate an unknown string. */ export const contentReportCopy = (reason, ok = false)=>reason === 'not-found' && ok ? ACTIONS_COPY.missingContent : ACTIONS_COPY.contentReasons[reason !== undefined && Object.hasOwn(ACTIONS_COPY.contentReasons, reason) ? reason : 'update-failed'];
|
|
61
82
|
// Each dismiss/restore refusal code has its own sentence; server text is never shown.
|
|
@@ -70,3 +91,11 @@ export const CONTENT_ENTRY_REFUSALS = {
|
|
|
70
91
|
},
|
|
71
92
|
fallback: ACTIONS_COPY.contentEntryFallback
|
|
72
93
|
};
|
|
94
|
+
export function addMetricWarningCopy(warning) {
|
|
95
|
+
if (warning.code === 'goal-added-mid-test') return "Clicks before this goal was added aren't counted (the same for every version).";
|
|
96
|
+
if (warning.code === 'placement-unchecked') {
|
|
97
|
+
const path = warning.detail?.path;
|
|
98
|
+
return placementUncheckedCopy(typeof path === 'string' ? path : 'This page');
|
|
99
|
+
}
|
|
100
|
+
return asymmetricGoalsCopy(warning.detail);
|
|
101
|
+
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
export declare const API_MESSAGES: {
|
|
2
|
+
readonly testAlreadyDeleted: "This test was already deleted. Reload the page.";
|
|
3
|
+
readonly deleteInvalidStatus: "Only draft and archived tests can be deleted. Open the test to see how to archive it.";
|
|
4
|
+
readonly testNoLongerDraft: "This test is no longer a draft. Reload the page.";
|
|
2
5
|
readonly notFound: "This test no longer exists.";
|
|
3
6
|
readonly goalNotFound: "That goal no longer exists. Choose another goal.";
|
|
4
7
|
readonly roundChanged: "This round has changed. Reload the page.";
|
|
5
8
|
readonly roundNotFound: "That round no longer exists. Choose another round.";
|
|
6
|
-
readonly commitUnverified: "The change may not have been saved. Reload
|
|
9
|
+
readonly commitUnverified: "The change may not have been saved. Reload to check.";
|
|
10
|
+
readonly transactionIsolation: "The site's database settings don't allow this right now. Ask your developer to check the server log.";
|
|
7
11
|
readonly notImplemented: "This isn't available yet.";
|
|
8
12
|
readonly unauthenticated: "Your session has expired. Sign in again.";
|
|
9
13
|
readonly forbidden: "You don't have permission to do this.";
|
|
10
|
-
readonly network: "Couldn't reach the server. Check your connection
|
|
14
|
+
readonly network: "Couldn't reach the server. Check your connection.";
|
|
11
15
|
readonly failed: "Couldn't complete this change. Try again.";
|
|
12
|
-
readonly unreadable: "Couldn't read the server's response. Reload
|
|
16
|
+
readonly unreadable: "Couldn't read the server's response. Reload to check.";
|
|
17
|
+
readonly deleteImpactUnavailable: "Couldn't check what visitors will see after deletion. Reopen this dialog to check again.";
|
|
13
18
|
};
|
|
14
19
|
export declare const LOCKED_MESSAGES: {
|
|
15
20
|
readonly creation: "Set when the test was created.";
|
|
@@ -22,6 +27,10 @@ export declare const LOCKED_MESSAGES: {
|
|
|
22
27
|
};
|
|
23
28
|
export declare function refusalMessage(code: string | undefined, status: number, message?: string, options?: {
|
|
24
29
|
notFound?: string;
|
|
30
|
+
forbidden?: string;
|
|
25
31
|
codes?: Readonly<Record<string, string>>;
|
|
26
32
|
fallback?: string;
|
|
27
|
-
}): string;
|
|
33
|
+
}, detail?: unknown): string;
|
|
34
|
+
export declare const INPUT_COPY: {
|
|
35
|
+
readonly selectRequired: "Choose an option.";
|
|
36
|
+
};
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
+
import { unpublishedPlacementsCopy } from './readiness.js';
|
|
1
2
|
export const API_MESSAGES = {
|
|
3
|
+
testAlreadyDeleted: 'This test was already deleted. Reload the page.',
|
|
4
|
+
deleteInvalidStatus: 'Only draft and archived tests can be deleted. Open the test to see how to archive it.',
|
|
5
|
+
testNoLongerDraft: 'This test is no longer a draft. Reload the page.',
|
|
2
6
|
notFound: 'This test no longer exists.',
|
|
3
7
|
goalNotFound: 'That goal no longer exists. Choose another goal.',
|
|
4
8
|
roundChanged: 'This round has changed. Reload the page.',
|
|
5
9
|
roundNotFound: 'That round no longer exists. Choose another round.',
|
|
6
|
-
commitUnverified: 'The change may not have been saved. Reload
|
|
10
|
+
commitUnverified: 'The change may not have been saved. Reload to check.',
|
|
11
|
+
transactionIsolation: "The site's database settings don't allow this right now. Ask your developer to check the server log.",
|
|
7
12
|
notImplemented: "This isn't available yet.",
|
|
8
13
|
unauthenticated: 'Your session has expired. Sign in again.',
|
|
9
14
|
forbidden: "You don't have permission to do this.",
|
|
10
|
-
network: "Couldn't reach the server. Check your connection
|
|
15
|
+
network: "Couldn't reach the server. Check your connection.",
|
|
11
16
|
failed: "Couldn't complete this change. Try again.",
|
|
12
|
-
unreadable: "Couldn't read the server's response. Reload
|
|
17
|
+
unreadable: "Couldn't read the server's response. Reload to check.",
|
|
18
|
+
deleteImpactUnavailable: "Couldn't check what visitors will see after deletion. Reopen this dialog to check again."
|
|
13
19
|
};
|
|
14
20
|
export const LOCKED_MESSAGES = {
|
|
15
21
|
creation: 'Set when the test was created.',
|
|
@@ -20,14 +26,18 @@ export const LOCKED_MESSAGES = {
|
|
|
20
26
|
archived: "Archived tests can't be changed.",
|
|
21
27
|
other: "Can't be changed in this state."
|
|
22
28
|
};
|
|
23
|
-
export function refusalMessage(code, status, message, options) {
|
|
24
|
-
//
|
|
29
|
+
export function refusalMessage(code, status, message, options, detail) {
|
|
30
|
+
// Authorization takes priority over code copy; entry-specific 404s still name the missing entry.
|
|
25
31
|
const mapped = code && options?.codes && Object.hasOwn(options.codes, code) ? options.codes[code] : undefined;
|
|
26
|
-
if (mapped !== undefined) return mapped;
|
|
27
32
|
if (code === 'unauthenticated' || status === 401) return API_MESSAGES.unauthenticated;
|
|
28
|
-
if (code === '
|
|
33
|
+
if (code === 'forbidden' || status === 403) return options?.forbidden ?? API_MESSAGES.forbidden;
|
|
34
|
+
if (code === 'not-found' || status === 404) return mapped ?? options?.notFound ?? API_MESSAGES.notFound;
|
|
29
35
|
if (code === 'commit-unverified') return API_MESSAGES.commitUnverified;
|
|
30
36
|
if (code === 'not-implemented' || status === 501) return API_MESSAGES.notImplemented;
|
|
31
|
-
if (
|
|
37
|
+
if (mapped !== undefined) return mapped;
|
|
38
|
+
if (code === 'placement-unpublished') return unpublishedPlacementsCopy(detail);
|
|
32
39
|
return options?.fallback ?? (message || API_MESSAGES.failed);
|
|
33
40
|
}
|
|
41
|
+
export const INPUT_COPY = {
|
|
42
|
+
selectRequired: 'Choose an option.'
|
|
43
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Shared by server readiness checks and client placement lists. */
|
|
2
|
+
export declare const PLACEMENT_LANGUAGES: {
|
|
3
|
+
readonly labelWithCode: (label: string, code: string) => string;
|
|
4
|
+
readonly allLocales: "All languages";
|
|
5
|
+
readonly locales: (names: string) => string;
|
|
6
|
+
};
|
|
7
|
+
export interface PlacementLanguages {
|
|
8
|
+
locales?: readonly string[];
|
|
9
|
+
allLocales?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** Shared suffix for server findings, placement rows, and delete-impact details. */
|
|
12
|
+
export declare function placementLanguageSuffix({ locales, allLocales }: PlacementLanguages): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Shared by server readiness checks and client placement lists. */ export const PLACEMENT_LANGUAGES = {
|
|
2
|
+
labelWithCode: (label, code)=>`${label} (${code})`,
|
|
3
|
+
allLocales: 'All languages',
|
|
4
|
+
locales: (names)=>`Languages: ${names}`
|
|
5
|
+
};
|
|
6
|
+
/** Shared suffix for server findings, placement rows, and delete-impact details. */ export function placementLanguageSuffix({ locales, allLocales }) {
|
|
7
|
+
return allLocales ? ` · ${PLACEMENT_LANGUAGES.allLocales}` : locales?.length ? ` · ${PLACEMENT_LANGUAGES.locales(locales.join(', '))}` : '';
|
|
8
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const METRICS_COPY: {
|
|
2
2
|
readonly source: "Measured by";
|
|
3
|
+
readonly browserWritablePrimary: "Visitors' browsers report this goal. Automated traffic can affect the results. For important decisions, use a goal your server records.";
|
|
3
4
|
readonly revenueHint: "Very large amounts are counted only up to the level that the top 1% of amounts reached in the 90 days before the test starts; totals are always shown in full.";
|
|
4
5
|
};
|
|
5
6
|
export declare const METRIC_KIND_LABELS: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export const METRICS_COPY = {
|
|
2
2
|
source: 'Measured by',
|
|
3
|
+
browserWritablePrimary: "Visitors' browsers report this goal. Automated traffic can affect the results. For important decisions, use a goal your server records.",
|
|
3
4
|
revenueHint: 'Very large amounts are counted only up to the level that the top 1% of amounts reached in the 90 days before the test starts; totals are always shown in full.'
|
|
4
5
|
};
|
|
5
6
|
export const METRIC_KIND_LABELS = {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare const PAGE_COPY: {
|
|
2
|
+
readonly loading: "Loading pages…";
|
|
3
|
+
readonly empty: "There are no pages here yet.";
|
|
4
|
+
readonly emptyPage: "There are no eligible pages on this results page.";
|
|
5
|
+
readonly error: "Couldn't load pages.";
|
|
6
|
+
readonly retry: "Try again";
|
|
7
|
+
readonly draft: "Draft";
|
|
8
|
+
readonly published: "Published";
|
|
9
|
+
readonly changed: "Changed";
|
|
10
|
+
readonly noPath: "This page has no address yet.";
|
|
11
|
+
readonly justNow: "Just now";
|
|
12
|
+
readonly search: "Search pages";
|
|
13
|
+
readonly searchHint: "Search by title or address";
|
|
14
|
+
readonly previous: "Previous page";
|
|
15
|
+
readonly next: "Next page";
|
|
16
|
+
readonly puckEditor: "Puck editor";
|
|
17
|
+
readonly blocksEditor: "Page editor";
|
|
18
|
+
readonly pageLimit: "Search to narrow the list.";
|
|
19
|
+
readonly choose: "Choose a page";
|
|
20
|
+
readonly where: "Where it shows";
|
|
21
|
+
readonly open: "Open";
|
|
22
|
+
readonly preview: "Preview";
|
|
23
|
+
readonly contentChecksOff: "Content checks are off for this page type.";
|
|
24
|
+
readonly copyIntro: "To create a test of this page, we'll copy the page and use the copy as the test version.";
|
|
25
|
+
readonly copyVisibility: "The copy stays private as a draft. Visitors at the Original's address can see it once you start the test.";
|
|
26
|
+
readonly copyTitle: "Title";
|
|
27
|
+
readonly copyAddressLabel: "Address";
|
|
28
|
+
readonly copyConfirm: "Make the copy";
|
|
29
|
+
readonly copyCancel: "Cancel";
|
|
30
|
+
readonly copyChecking: "Checking the title and address…";
|
|
31
|
+
readonly copying: "Making the draft…";
|
|
32
|
+
readonly copyOpen: "Open draft copy";
|
|
33
|
+
readonly copyOpenPage: "Open draft page";
|
|
34
|
+
readonly copyDraftSelected: "The selected page is still a draft.";
|
|
35
|
+
readonly copyPublishWhy: "The test can start once this copy is published.";
|
|
36
|
+
readonly copyEdit: "Edit the copy.";
|
|
37
|
+
readonly copyPublish: "Publish the copy when it's ready.";
|
|
38
|
+
readonly copyPublishedAddress: "Publishing the copy also makes it reachable at its own address until the test starts.";
|
|
39
|
+
readonly copyRouting: "During the test, visitors stay at the Original's address while the test uses the copy's address behind the scenes.";
|
|
40
|
+
readonly copyExisting: "Or choose an existing page.";
|
|
41
|
+
readonly copyUnavailable: "This page needs to be copied by hand because the site couldn't make a draft here.";
|
|
42
|
+
readonly copyNotEnabled: "Your site uses manual copies for this page type.";
|
|
43
|
+
readonly copyProtected: "Some fields have read restrictions, so make the copy in the page editor.";
|
|
44
|
+
readonly copyNoAccess: "Someone else needs to make the copy because your account can't create pages here.";
|
|
45
|
+
readonly copyAsk: "Ask someone with permission to make a copy of the Original.";
|
|
46
|
+
readonly copyChooseAfterAsk: "Then choose the copy below.";
|
|
47
|
+
readonly copyDisabled: "This page type requires a new page because duplication is disabled.";
|
|
48
|
+
readonly copyNewPage: "Create a new page.";
|
|
49
|
+
readonly copyContent: "Copy the content from the Original.";
|
|
50
|
+
readonly copyNoDrafts: "Pages of this type go live as soon as they're saved, so you need to make the copy by hand.";
|
|
51
|
+
readonly copyLocalized: "The Original has fields for different languages, so make the copy in the page editor.";
|
|
52
|
+
readonly copyEmbeddedTest: "The Original contains a test block, so make the copy in the page editor.";
|
|
53
|
+
readonly copyOriginal: "The Original needs a published page with no pending edits before it can be copied here.";
|
|
54
|
+
readonly copyChooseOriginal: "Choose the Original before making a test version.";
|
|
55
|
+
readonly copyAddress: "The copy needs an available address, so make it in the page editor.";
|
|
56
|
+
readonly copyUnique: "Another page already uses a value the copy needs to change, so the copy wasn't made. If it's an earlier copy, choose it in the page list.";
|
|
57
|
+
readonly copyTransactionLost: "Something went wrong, and nothing was copied. Try again.";
|
|
58
|
+
readonly copyChanged: "The test, the Original, or the proposed address changed. Check the latest details before making the copy.";
|
|
59
|
+
readonly duplicateStep: "Choose Duplicate for the Original.";
|
|
60
|
+
readonly keepTitleStep: "Keep the Original's title unless you're testing a new title.";
|
|
61
|
+
readonly homepageStep: "If the copy has a Homepage setting, turn it off.";
|
|
62
|
+
readonly ownAddress: "Give the copy its own address.";
|
|
63
|
+
readonly saveCopy: "Save the copy.";
|
|
64
|
+
readonly chooseCopy: "Choose the copy below.";
|
|
65
|
+
};
|
|
66
|
+
export declare const usedPageCopy: (label: string) => string;
|
|
67
|
+
export declare const usedAddressCopy: (label: string, path: string) => string;
|
|
68
|
+
export declare const openCollectionCopy: (collection: string) => string;
|
|
69
|
+
export declare const pageStepCopy: (label: string) => string;
|
|
70
|
+
export declare const pageNotFoundCopy: (path: string, collection: string) => string;
|
|
71
|
+
export declare const pageFieldCopy: (label: string) => string;
|
|
72
|
+
export declare const noPageMatches: (query: string) => string;
|
|
73
|
+
export declare const pageRangeCopy: (first: number, last: number, total: number) => string;
|
|
74
|
+
export declare const pageCountCopy: (count: number) => string;
|
|
75
|
+
export declare const draftPageAddress: (address: string) => string;
|
|
76
|
+
export declare const lastEditedCopy: (time: string) => string;
|
|
77
|
+
export declare const makeCopyLabel: (label: string) => string;
|
|
78
|
+
export declare const copyLocation: (collection: string) => string;
|
|
79
|
+
export declare const copiedPage: (title: string, path: string) => string;
|
|
80
|
+
export declare function orphanedPages(pages: Array<{
|
|
81
|
+
id: string | number;
|
|
82
|
+
title?: string;
|
|
83
|
+
path: string | null;
|
|
84
|
+
}>, collection: string): string;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export const PAGE_COPY = {
|
|
2
|
+
loading: 'Loading pages…',
|
|
3
|
+
empty: 'There are no pages here yet.',
|
|
4
|
+
emptyPage: 'There are no eligible pages on this results page.',
|
|
5
|
+
error: "Couldn't load pages.",
|
|
6
|
+
retry: 'Try again',
|
|
7
|
+
draft: 'Draft',
|
|
8
|
+
published: 'Published',
|
|
9
|
+
changed: 'Changed',
|
|
10
|
+
noPath: 'This page has no address yet.',
|
|
11
|
+
justNow: 'Just now',
|
|
12
|
+
search: 'Search pages',
|
|
13
|
+
searchHint: 'Search by title or address',
|
|
14
|
+
previous: 'Previous page',
|
|
15
|
+
next: 'Next page',
|
|
16
|
+
puckEditor: 'Puck editor',
|
|
17
|
+
blocksEditor: 'Page editor',
|
|
18
|
+
pageLimit: 'Search to narrow the list.',
|
|
19
|
+
choose: 'Choose a page',
|
|
20
|
+
where: 'Where it shows',
|
|
21
|
+
open: 'Open',
|
|
22
|
+
preview: 'Preview',
|
|
23
|
+
contentChecksOff: 'Content checks are off for this page type.',
|
|
24
|
+
copyIntro: "To create a test of this page, we'll copy the page and use the copy as the test version.",
|
|
25
|
+
copyVisibility: "The copy stays private as a draft. Visitors at the Original's address can see it once you start the test.",
|
|
26
|
+
copyTitle: 'Title',
|
|
27
|
+
copyAddressLabel: 'Address',
|
|
28
|
+
copyConfirm: 'Make the copy',
|
|
29
|
+
copyCancel: 'Cancel',
|
|
30
|
+
copyChecking: 'Checking the title and address…',
|
|
31
|
+
copying: 'Making the draft…',
|
|
32
|
+
copyOpen: 'Open draft copy',
|
|
33
|
+
copyOpenPage: 'Open draft page',
|
|
34
|
+
copyDraftSelected: 'The selected page is still a draft.',
|
|
35
|
+
copyPublishWhy: 'The test can start once this copy is published.',
|
|
36
|
+
copyEdit: 'Edit the copy.',
|
|
37
|
+
copyPublish: "Publish the copy when it's ready.",
|
|
38
|
+
copyPublishedAddress: 'Publishing the copy also makes it reachable at its own address until the test starts.',
|
|
39
|
+
copyRouting: "During the test, visitors stay at the Original's address while the test uses the copy's address behind the scenes.",
|
|
40
|
+
copyExisting: 'Or choose an existing page.',
|
|
41
|
+
copyUnavailable: "This page needs to be copied by hand because the site couldn't make a draft here.",
|
|
42
|
+
copyNotEnabled: 'Your site uses manual copies for this page type.',
|
|
43
|
+
copyProtected: 'Some fields have read restrictions, so make the copy in the page editor.',
|
|
44
|
+
copyNoAccess: "Someone else needs to make the copy because your account can't create pages here.",
|
|
45
|
+
copyAsk: 'Ask someone with permission to make a copy of the Original.',
|
|
46
|
+
copyChooseAfterAsk: 'Then choose the copy below.',
|
|
47
|
+
copyDisabled: 'This page type requires a new page because duplication is disabled.',
|
|
48
|
+
copyNewPage: 'Create a new page.',
|
|
49
|
+
copyContent: 'Copy the content from the Original.',
|
|
50
|
+
copyNoDrafts: "Pages of this type go live as soon as they're saved, so you need to make the copy by hand.",
|
|
51
|
+
copyLocalized: 'The Original has fields for different languages, so make the copy in the page editor.',
|
|
52
|
+
copyEmbeddedTest: 'The Original contains a test block, so make the copy in the page editor.',
|
|
53
|
+
copyOriginal: 'The Original needs a published page with no pending edits before it can be copied here.',
|
|
54
|
+
copyChooseOriginal: 'Choose the Original before making a test version.',
|
|
55
|
+
copyAddress: 'The copy needs an available address, so make it in the page editor.',
|
|
56
|
+
copyUnique: "Another page already uses a value the copy needs to change, so the copy wasn't made. If it's an earlier copy, choose it in the page list.",
|
|
57
|
+
copyTransactionLost: 'Something went wrong, and nothing was copied. Try again.',
|
|
58
|
+
copyChanged: 'The test, the Original, or the proposed address changed. Check the latest details before making the copy.',
|
|
59
|
+
duplicateStep: 'Choose Duplicate for the Original.',
|
|
60
|
+
keepTitleStep: "Keep the Original's title unless you're testing a new title.",
|
|
61
|
+
homepageStep: 'If the copy has a Homepage setting, turn it off.',
|
|
62
|
+
ownAddress: 'Give the copy its own address.',
|
|
63
|
+
saveCopy: 'Save the copy.',
|
|
64
|
+
chooseCopy: 'Choose the copy below.'
|
|
65
|
+
};
|
|
66
|
+
export const usedPageCopy = (label)=>`This is ${label}.`;
|
|
67
|
+
export const usedAddressCopy = (label, path)=>`This page needs its own address. It shares ${path} with ${label}.`;
|
|
68
|
+
export const openCollectionCopy = (collection)=>`Open ${collection}`;
|
|
69
|
+
export const pageStepCopy = (label)=>`A page for ${label}`;
|
|
70
|
+
export const pageNotFoundCopy = (path, collection)=>`${path} isn't in ${collection}. Choose a page.`;
|
|
71
|
+
export const pageFieldCopy = (label)=>`Page for ${label}`;
|
|
72
|
+
export const noPageMatches = (query)=>`No pages match “${query}”.`;
|
|
73
|
+
export const pageRangeCopy = (first, last, total)=>`${first.toLocaleString('en-US')}–${last.toLocaleString('en-US')} of ${total.toLocaleString('en-US')} pages`;
|
|
74
|
+
export const pageCountCopy = (count)=>`${count} ${count === 1 ? 'page' : 'pages'} shown`;
|
|
75
|
+
export const draftPageAddress = (address)=>`Draft address: ${address}`;
|
|
76
|
+
export const lastEditedCopy = (time)=>`Edited ${time}`;
|
|
77
|
+
export const makeCopyLabel = (label)=>`Make ${label} from the Original`;
|
|
78
|
+
export const copyLocation = (collection)=>`You can find the copy later in ${collection}.`;
|
|
79
|
+
export const copiedPage = (title, path)=>`We made a draft copy of “${title}” at ${path}.`;
|
|
80
|
+
export function orphanedPages(pages, collection) {
|
|
81
|
+
const names = pages.map(({ id, title, path })=>{
|
|
82
|
+
if (path) return title ? `${title} (${path})` : path;
|
|
83
|
+
return title ? `${title} (ID ${id})` : `page ID ${id}`;
|
|
84
|
+
});
|
|
85
|
+
if (pages.length === 1) {
|
|
86
|
+
if (!pages[0]?.path) return `Something went wrong while copying, but a page was made: ${names[0]}. Open it in ${collection} to give it an address, or delete it.`;
|
|
87
|
+
return `Something went wrong while copying, but a page was made: ${names[0]}. Choose it in the page list, or delete it in ${collection}.`;
|
|
88
|
+
}
|
|
89
|
+
return `Something went wrong while copying, but these pages were made: ${names.join(', ')}. Choose one in the page list, or delete them in ${collection}.`;
|
|
90
|
+
}
|
|
@@ -3,16 +3,32 @@ export declare const PLACEMENT_FAILURE_COPY: {
|
|
|
3
3
|
readonly forbidden: "You don't have permission to check where this test is used.";
|
|
4
4
|
readonly 'not-found': "A page used by this test no longer exists. Choose another page.";
|
|
5
5
|
};
|
|
6
|
+
export declare const SAVE_PAGE = "Save this page to put the test on it.";
|
|
7
|
+
export declare const PUBLISH_PAGE = "Publish this page to start the test.";
|
|
8
|
+
export declare const RUNNING_PUBLISH_PAGE = "This test is running, but visitors won't see it here until this page is published.";
|
|
9
|
+
export declare const RUNNING_SAVE_PAGE = "This test is running, but visitors won't see it here until this page is saved and published.";
|
|
6
10
|
export declare const READINESS_COPY: {
|
|
11
|
+
readonly beforeStart: "Before you can start:";
|
|
7
12
|
readonly label: "Readiness";
|
|
13
|
+
readonly refresh: "Refresh readiness";
|
|
8
14
|
readonly addGoal: "Add a goal";
|
|
9
15
|
readonly needsAttention: "Needs attention";
|
|
16
|
+
readonly needsAttentionPrefix: "Needs attention: ";
|
|
10
17
|
readonly missingVersions: "This test is missing its saved versions. Open the test and check its setup before changing this page.";
|
|
18
|
+
readonly addMissingVersionContent: "Add content to the empty versions.";
|
|
19
|
+
readonly summaryMissingVersionContent: "Add or publish the missing version content.";
|
|
20
|
+
readonly saveGeneralError: "Couldn't save. Reload to check the saved test.";
|
|
21
|
+
readonly changing: "Saving this change…";
|
|
22
|
+
readonly reloadAfterError: "Couldn't save the test. Reload to check its saved settings before starting.";
|
|
23
|
+
readonly chooseGoalToAdd: "Choose a goal to add it to this test.";
|
|
24
|
+
readonly reloadFirst: "Reload to see the latest settings and discard your unfinished edits.";
|
|
11
25
|
readonly ready: "Ready to start.";
|
|
12
|
-
readonly saveFirst: "
|
|
26
|
+
readonly saveFirst: "Wait for your changes to save.";
|
|
27
|
+
readonly finishEdits: "Finish your edits before starting the test.";
|
|
13
28
|
readonly saving: "Saving…";
|
|
14
29
|
readonly saved: "Saved";
|
|
15
30
|
readonly saveError: "Couldn't save — see the highlighted field";
|
|
31
|
+
readonly invalidRequest: "This test's setup couldn't be checked.";
|
|
16
32
|
readonly checkError: "Couldn't check readiness. Try again.";
|
|
17
33
|
readonly checking: "Checking readiness…";
|
|
18
34
|
readonly retry: "Try again";
|
|
@@ -24,7 +40,8 @@ export declare const READINESS_COPY: {
|
|
|
24
40
|
readonly allocate: "Let more people in";
|
|
25
41
|
readonly everyone: "Everyone already takes part.";
|
|
26
42
|
readonly participation: "How many people take part (%)";
|
|
27
|
-
readonly noPlacements: "
|
|
43
|
+
readonly noPlacements: "This test needs a block on a page. Add it to an Experiment block.";
|
|
44
|
+
readonly placementRemoved: "The block for this test was removed from its page, so it can't start again. Its results are kept. To test the block again, start a new test from the page.";
|
|
28
45
|
readonly noPoint: "Choose the setting to test.";
|
|
29
46
|
readonly busy: "Another test is already running on this setting. Stop it first.";
|
|
30
47
|
readonly noGoal: "Choose a goal.";
|
|
@@ -35,7 +52,10 @@ export declare const READINESS_COPY: {
|
|
|
35
52
|
readonly differentPeople: "This test's group counts different people. Create the test again without the group.";
|
|
36
53
|
readonly uncheckedPages: "Version pages aren't checked; make sure each one is published.";
|
|
37
54
|
readonly chooseDifferentPage: "Choose a different page";
|
|
38
|
-
readonly
|
|
55
|
+
readonly choosePages: "Choose pages";
|
|
56
|
+
readonly publishPage: "Publish the page";
|
|
57
|
+
readonly saveAndPublishPage: "Save and publish the page";
|
|
58
|
+
readonly noTargets: "Choose a page for each version.";
|
|
39
59
|
readonly pageVisitors: "Whole-page tests count visitors. Create the test again counting visitors.";
|
|
40
60
|
readonly blockPathRule: "Remove the page-path rule in Who takes part; page block tests run on their page.";
|
|
41
61
|
readonly removeRule: "Remove rule";
|
|
@@ -46,22 +66,55 @@ export declare const READINESS_COPY: {
|
|
|
46
66
|
readonly attributeFallback: "this attribute";
|
|
47
67
|
};
|
|
48
68
|
export declare const unsupportedContentCopy: (page: string) => string;
|
|
49
|
-
export declare const pageInUseCopy: (path: string) => string;
|
|
50
|
-
export declare const unpublishedPageCopy: (path: string
|
|
69
|
+
export declare const pageInUseCopy: (path: string, version?: boolean) => string;
|
|
70
|
+
export declare const unpublishedPageCopy: (path: string, context?: {
|
|
71
|
+
original: boolean;
|
|
72
|
+
found: boolean;
|
|
73
|
+
collection: string;
|
|
74
|
+
}) => string;
|
|
51
75
|
/** Old responses may include raw host errors; unknown strings use authored copy. */
|
|
52
76
|
export declare const placementFailureCopy: (reason: unknown) => "Couldn't check where this test is used. Try again." | "You don't have permission to check where this test is used." | "A page used by this test no longer exists. Choose another page.";
|
|
77
|
+
export declare const fixFieldsNext: (name: string) => string;
|
|
53
78
|
export declare const nextCopy: (sentence: string) => string;
|
|
54
79
|
export declare const versionsNext: (detail: string) => string;
|
|
55
|
-
export declare const contentNext: (group: string) => string;
|
|
80
|
+
export declare const contentNext: (group: string, page?: string) => string;
|
|
81
|
+
export declare const draftContentNext: (group: string, page: string) => string;
|
|
82
|
+
export declare const unsavedContentNext: (group: string) => string;
|
|
83
|
+
export declare const partialContentNext: (group: string, page: string) => string;
|
|
84
|
+
export declare function summaryContentNext(groups: string[], draftGroups?: string[]): string;
|
|
56
85
|
export declare const parameterNext: (parameter: string, group: string) => string;
|
|
57
86
|
export declare const placementNext: (group: string, detail: string) => string;
|
|
58
87
|
export declare const goalPeopleNext: (people: string) => string;
|
|
59
88
|
export declare const ruleNext: (detail: string) => string;
|
|
60
89
|
export declare const attributeNext: (attribute: string) => string;
|
|
90
|
+
export declare const firstStartOnlyCopy: (status: string) => string;
|
|
61
91
|
export declare const stoppedCopy: (date: string | null) => string;
|
|
62
92
|
export declare const decidedCopy: (date: string | null, winner: string) => string;
|
|
63
93
|
export declare const runningCopy: (date: string | null, people: number | null, days: number | null) => string;
|
|
94
|
+
export declare const lastBlockPlacementCopy: (name: string, removingPage?: boolean) => string;
|
|
95
|
+
export declare const hiddenBlockPlacementCopy: (name: string) => string;
|
|
96
|
+
export declare const bulkBlockRemovalCopy: (name: string) => string;
|
|
97
|
+
export declare const pendingBlockRemovalCopy: (name: string) => string;
|
|
64
98
|
/** After archive the guard protects the winner and the Original; only the winner page is "the winner". */
|
|
65
99
|
export declare const pageGuardCopy: (name: string, status: "running" | "decided" | "archived", role?: "winner" | "original") => string;
|
|
66
100
|
export declare const versionPageUnavailableCopy: (path: string, status?: string) => string;
|
|
67
101
|
export declare const versionPageUncheckedCopy: (path: string, status?: string) => string;
|
|
102
|
+
export declare const sameAddressCopy: (label: string, other: string, path: string) => string;
|
|
103
|
+
export declare const identicalVersionCopy: (version: string) => string;
|
|
104
|
+
/** Keep named actions aligned with the actual transition buttons. */
|
|
105
|
+
export declare function placementGuardCopy(page: {
|
|
106
|
+
name: string;
|
|
107
|
+
status: string;
|
|
108
|
+
}, block: {
|
|
109
|
+
name: string;
|
|
110
|
+
status: string;
|
|
111
|
+
}, preExisting: boolean): string;
|
|
112
|
+
export declare function interactingTestsCopy(page: string, state: string, name: string, version?: boolean): string;
|
|
113
|
+
export declare const goalInSomeVersionsCopy: (name?: string) => string;
|
|
114
|
+
export declare function asymmetricGoalsCopy(detail: unknown): string;
|
|
115
|
+
export declare const placementUncheckedCopy: (page: string) => string;
|
|
116
|
+
export declare const moreBlockers: (count: number) => string;
|
|
117
|
+
export declare const unpublishedPlacementsCopy: (detail?: unknown) => string;
|
|
118
|
+
export declare const unpublishedPlacementCopy: (title?: string) => string;
|
|
119
|
+
export declare const finishEditCopy: (field: string) => string;
|
|
120
|
+
export declare const duplicateVersionCopy: (page: string) => string;
|