@delmaredigital/payload-experiments 0.4.0-rc.7 → 0.4.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/README.md +9 -15
- package/dist/admin/MetricSourceSelect.js +10 -3
- package/dist/admin/armSelect/armSelect.model.d.ts +1 -1
- package/dist/admin/blocks/BlockPanel.d.ts +1 -0
- package/dist/admin/blocks/BlockPanel.js +75 -29
- package/dist/admin/blocks/model.js +7 -6
- package/dist/admin/copy/blocks.d.ts +14 -11
- package/dist/admin/copy/blocks.js +33 -22
- package/dist/admin/copy/goals.d.ts +15 -8
- package/dist/admin/copy/goals.js +18 -8
- package/dist/admin/copy/newTest.d.ts +10 -7
- package/dist/admin/copy/newTest.js +14 -7
- package/dist/admin/copy/status.d.ts +1 -1
- package/dist/admin/copy/status.js +2 -1
- package/dist/admin/pageCollections.d.ts +1 -0
- package/dist/admin/pageCollections.js +3 -0
- package/dist/admin/placementStatus.model.js +5 -3
- package/dist/admin/status.model.d.ts +1 -0
- package/dist/admin/status.model.js +2 -1
- package/dist/admin/surface/ResultsRoute.js +12 -10
- package/dist/admin/surface/SurfaceShell.d.ts +4 -2
- package/dist/admin/surface/SurfaceShell.js +28 -3
- package/dist/admin/surface/TestRowMenu.d.ts +13 -0
- package/dist/admin/surface/TestRowMenu.js +163 -0
- package/dist/admin/surface/TestsHome.d.ts +4 -3
- package/dist/admin/surface/TestsHome.js +224 -52
- package/dist/admin/surface/TestsSurface.js +2 -1
- package/dist/admin/surface/goals/DeleteGoalDialog.d.ts +7 -0
- package/dist/admin/surface/goals/DeleteGoalDialog.js +42 -0
- package/dist/admin/surface/goals/GoalForm.d.ts +1 -0
- package/dist/admin/surface/goals/GoalForm.js +280 -198
- package/dist/admin/surface/goals/GoalsList.js +102 -33
- package/dist/admin/surface/goals/data.d.ts +2 -0
- package/dist/admin/surface/goals/data.js +9 -0
- package/dist/admin/surface/goals/goals.css +3 -2
- package/dist/admin/surface/goals/goals.model.d.ts +2 -2
- package/dist/admin/surface/goals/goals.model.js +7 -12
- package/dist/admin/surface/home.model.d.ts +15 -8
- package/dist/admin/surface/home.model.js +22 -18
- package/dist/admin/surface/newTest/NewTest.d.ts +3 -3
- package/dist/admin/surface/newTest/NewTest.js +156 -96
- package/dist/admin/surface/newTest/PageWizard.d.ts +4 -1
- package/dist/admin/surface/newTest/PageWizard.js +99 -68
- package/dist/admin/surface/newTest/newTest.css +28 -11
- package/dist/admin/surface/results/ResultsHeader.d.ts +1 -1
- package/dist/admin/surface/results/ResultsHeader.js +98 -66
- package/dist/admin/surface/surface.css +29 -0
- package/dist/admin/surface/test/TestPage.js +46 -38
- package/dist/admin/surface/useXpStepNav.d.ts +11 -0
- package/dist/admin/surface/useXpStepNav.js +14 -0
- package/dist/admin/views/TestsSurfaceClient.js +27 -3
- package/dist/admin/views/buildSurfaceProps.js +18 -66
- package/dist/arms/copy.d.ts +13 -3
- package/dist/arms/copy.js +5 -4
- package/dist/blocks/createExperimentBlock.js +1 -1
- package/dist/blocks/formState.js +2 -2
- package/dist/collections/experiments/armInvariants.js +8 -5
- package/dist/collections/experiments/config.js +8 -3
- package/dist/collections/experiments/deleteGuard.js +2 -2
- package/dist/collections/experiments/lockHook.js +21 -2
- package/dist/collections/experiments/pickSlug.js +2 -0
- package/dist/collections/metrics.js +12 -5
- package/dist/collections/metricsGuards.js +2 -0
- package/dist/collections/serialize.js +8 -6
- 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/delete.d.ts +1 -1
- package/dist/db/delete.js +2 -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/pageCopies.d.ts +5 -0
- package/dist/db/pageCopies.js +31 -0
- package/dist/db/results.d.ts +5 -1
- package/dist/db/results.js +21 -5
- package/dist/db/snapshots.d.ts +2 -0
- package/dist/endpoints/deleteImpact.js +2 -1
- package/dist/endpoints/duplicateOriginal.d.ts +38 -0
- package/dist/endpoints/duplicateOriginal.js +414 -0
- package/dist/endpoints/editorSurface.js +1 -1
- package/dist/endpoints/events.js +103 -39
- package/dist/endpoints/index.js +22 -8
- package/dist/endpoints/pages.js +245 -66
- package/dist/endpoints/placementStatus.js +8 -4
- package/dist/endpoints/results.d.ts +1 -1
- package/dist/endpoints/results.js +9 -2
- package/dist/endpoints/routeId.d.ts +2 -2
- package/dist/endpoints/routeId.js +11 -5
- package/dist/endpoints/summary.js +46 -12
- package/dist/endpoints/testVersion.d.ts +2 -0
- package/dist/endpoints/testVersion.js +38 -0
- package/dist/endpoints/transitions.js +41 -29
- package/dist/errors.d.ts +4 -0
- package/dist/errors.js +6 -0
- 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 +24 -8
- package/dist/events/writable.d.ts +9 -0
- package/dist/events/writable.js +13 -0
- package/dist/exports/index.d.ts +1 -1
- package/dist/exports/rsc.d.ts +1 -0
- package/dist/exports/rsc.js +1 -0
- package/dist/goals/fairness.js +2 -2
- package/dist/goals/picker/copy.js +1 -1
- package/dist/goals/sourceLabel.d.ts +2 -0
- package/dist/goals/sourceLabel.js +4 -0
- package/dist/hooks/hostHook.js +6 -2
- package/dist/hooks/pageGuard.js +4 -0
- package/dist/hooks/trackPageCopies.d.ts +11 -0
- package/dist/hooks/trackPageCopies.js +7 -0
- package/dist/labels/arms.d.ts +3 -0
- package/dist/labels/arms.js +8 -0
- package/dist/lib/fetchAllDocs.d.ts +1 -1
- package/dist/manifest/compile.js +8 -5
- package/dist/onInit.js +14 -0
- package/dist/options.d.ts +2 -0
- package/dist/options.js +23 -2
- package/dist/plugin.js +56 -2
- 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/editor/ConfigureTestDrawer.d.ts +7 -7
- package/dist/puck/editor/ConfigureTestDrawer.js +40 -29
- package/dist/puck/editor/ExperimentSlotEditor.d.ts +2 -1
- package/dist/puck/editor/ExperimentSlotEditor.js +376 -139
- package/dist/puck/editor/LeftoverVersions.js +17 -32
- package/dist/puck/editor/QuickTestActions.d.ts +6 -3
- package/dist/puck/editor/QuickTestActions.js +55 -33
- package/dist/puck/editor/ResultsReadout.d.ts +4 -1
- package/dist/puck/editor/ResultsReadout.js +28 -15
- package/dist/puck/editor/VersionBuilder.d.ts +17 -4
- package/dist/puck/editor/VersionBuilder.js +175 -112
- package/dist/puck/editor/armWrites.js +2 -2
- package/dist/puck/editor/armsCache.js +1 -3
- package/dist/puck/editor/copy.d.ts +14 -7
- package/dist/puck/editor/copy.js +26 -13
- package/dist/puck/editor/editor.chrome.css +10 -8
- package/dist/puck/editor/editor.css +15 -9
- package/dist/puck/editor/editor.model.d.ts +1 -0
- package/dist/puck/editor/placementsCache.d.ts +4 -0
- package/dist/puck/editor/usePageSaveReadiness.d.ts +6 -0
- package/dist/puck/editor/usePageSaveReadiness.js +31 -0
- package/dist/puck/nestedTestCopy.js +2 -2
- package/dist/puck/slotConfig.d.ts +1 -1
- package/dist/puck/slotConfig.js +1 -1
- package/dist/results/aggregate.d.ts +6 -3
- package/dist/results/aggregate.js +9 -9
- package/dist/results/analyse.d.ts +2 -0
- package/dist/results/analyse.js +2 -2
- package/dist/results/health.d.ts +8 -0
- package/dist/results/health.js +28 -0
- package/dist/results/identityCredit.d.ts +1 -0
- package/dist/results/identityCredit.js +4 -1
- package/dist/results/verdict.d.ts +4 -4
- package/dist/results/verdict.js +15 -11
- 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 +20 -2
- package/dist/server/getAssignments.js +11 -10
- package/dist/server/recordContentChange.d.ts +1 -1
- package/dist/server/recordContentChange.js +11 -2
- package/dist/server/resolveExperimentBlocks.js +2 -4
- package/dist/server/resolveExperimentData.js +2 -5
- package/dist/server/runResults.js +54 -15
- package/dist/server/startExperiment.d.ts +20 -0
- package/dist/server/startExperiment.js +70 -0
- package/dist/server/trackConversion.js +10 -13
- package/dist/testSurface/PreviewLinks.d.ts +2 -1
- package/dist/testSurface/PreviewLinks.js +3 -3
- package/dist/testSurface/actions/DecideDialog.d.ts +10 -4
- package/dist/testSurface/actions/DecideDialog.js +93 -63
- package/dist/testSurface/actions/LifecycleAction.d.ts +17 -0
- package/dist/testSurface/actions/LifecycleAction.js +107 -0
- package/dist/testSurface/actions/MakeContentResult.d.ts +4 -3
- package/dist/testSurface/actions/MakeContentResult.js +10 -2
- package/dist/testSurface/actions/actions.model.d.ts +13 -5
- package/dist/testSurface/actions/actions.model.js +75 -22
- package/dist/testSurface/actions/decide.model.d.ts +1 -0
- package/dist/testSurface/actions/decide.model.js +1 -0
- package/dist/testSurface/allocation.model.js +6 -3
- package/dist/testSurface/api.d.ts +9 -6
- package/dist/testSurface/api.js +43 -23
- package/dist/testSurface/copy/actions.d.ts +37 -14
- package/dist/testSurface/copy/actions.js +40 -17
- package/dist/testSurface/copy/advanced.d.ts +10 -0
- package/dist/testSurface/copy/advanced.js +10 -0
- package/dist/testSurface/copy/arms.d.ts +1 -1
- package/dist/testSurface/copy/arms.js +1 -1
- package/dist/testSurface/copy/audience.d.ts +4 -3
- package/dist/testSurface/copy/audience.js +5 -4
- package/dist/testSurface/copy/common.d.ts +8 -6
- package/dist/testSurface/copy/common.js +8 -6
- package/dist/testSurface/copy/languages.d.ts +1 -0
- package/dist/testSurface/copy/languages.js +1 -0
- package/dist/testSurface/copy/metrics.d.ts +7 -0
- package/dist/testSurface/copy/metrics.js +9 -0
- package/dist/testSurface/copy/pages.d.ts +67 -7
- package/dist/testSurface/copy/pages.js +74 -7
- package/dist/testSurface/copy/readiness.d.ts +20 -7
- package/dist/testSurface/copy/readiness.js +36 -10
- package/dist/testSurface/copy/recommendation.d.ts +1 -22
- package/dist/testSurface/copy/recommendation.js +2 -22
- package/dist/testSurface/copy/results.d.ts +21 -12
- package/dist/testSurface/copy/results.js +24 -13
- package/dist/testSurface/copy/review.d.ts +13 -10
- package/dist/testSurface/copy/review.js +14 -10
- package/dist/testSurface/copy/setting.d.ts +1 -2
- package/dist/testSurface/copy/setting.js +1 -2
- package/dist/testSurface/copy/surface.d.ts +11 -2
- package/dist/testSurface/copy/surface.js +14 -11
- package/dist/testSurface/copy/testPage.d.ts +36 -12
- package/dist/testSurface/copy/testPage.js +53 -16
- package/dist/testSurface/format/date.d.ts +5 -2
- package/dist/testSurface/format/date.js +24 -8
- package/dist/testSurface/format/roundProgress.d.ts +6 -0
- package/dist/testSurface/format/roundProgress.js +15 -0
- package/dist/testSurface/format/useDateFormatter.d.ts +3 -0
- package/dist/testSurface/format/useDateFormatter.js +8 -0
- package/dist/testSurface/labels.d.ts +1 -2
- package/dist/testSurface/labels.js +2 -3
- package/dist/testSurface/lockedNotice.model.d.ts +2 -0
- package/dist/testSurface/lockedNotice.model.js +31 -0
- package/dist/testSurface/readPreflight.d.ts +4 -0
- package/dist/testSurface/readPreflight.js +6 -0
- package/dist/testSurface/readinessRead.d.ts +3 -0
- package/dist/testSurface/readinessRead.js +4 -0
- package/dist/testSurface/results/CiChart.js +2 -1
- package/dist/testSurface/results/DataTable.d.ts +1 -1
- package/dist/testSurface/results/DataTable.js +4 -3
- package/dist/testSurface/results/VerdictHero.d.ts +3 -2
- package/dist/testSurface/results/VerdictHero.js +5 -1
- package/dist/testSurface/results/legacy.d.ts +0 -5
- package/dist/testSurface/results/legacy.js +0 -14
- package/dist/testSurface/results/results.css +2 -2
- package/dist/testSurface/results/results.model.d.ts +9 -4
- package/dist/testSurface/results/results.model.js +31 -23
- package/dist/testSurface/results/snapshot.d.ts +2 -0
- package/dist/testSurface/results/snapshot.js +3 -0
- package/dist/testSurface/surface/contracts.d.ts +13 -1
- package/dist/testSurface/surface/editorPlacement.d.ts +3 -3
- package/dist/testSurface/surface/editorPlacement.js +2 -2
- package/dist/testSurface/surface/pageBlock/pageBlock.model.js +3 -3
- package/dist/testSurface/surface/pageBlock/parts.js +25 -12
- package/dist/testSurface/surface/pagePicker/CopyRoute.d.ts +8 -1
- package/dist/testSurface/surface/pagePicker/CopyRoute.js +243 -22
- package/dist/testSurface/surface/pagePicker/PageCombobox.d.ts +15 -4
- package/dist/testSurface/surface/pagePicker/PageCombobox.js +300 -197
- package/dist/testSurface/surface/pagePicker/pagePicker.css +73 -10
- package/dist/testSurface/surface/pagePicker/pagePicker.model.d.ts +5 -3
- package/dist/testSurface/surface/pagePicker/pagePicker.model.js +17 -2
- package/dist/testSurface/surface/readiness/ActionDialogs.d.ts +9 -5
- package/dist/testSurface/surface/readiness/ActionDialogs.js +241 -230
- package/dist/testSurface/surface/readiness/Banner.d.ts +5 -1
- package/dist/testSurface/surface/readiness/Banner.js +113 -141
- package/dist/testSurface/surface/readiness/SaveStatus.d.ts +8 -4
- package/dist/testSurface/surface/readiness/SaveStatus.js +23 -22
- package/dist/testSurface/surface/readiness/readiness.model.d.ts +20 -6
- package/dist/testSurface/surface/readiness/readiness.model.js +168 -21
- package/dist/testSurface/surface/readiness/useTransition.d.ts +6 -4
- package/dist/testSurface/surface/readiness/useTransition.js +57 -14
- package/dist/testSurface/surface/results/ReleasePages.d.ts +6 -3
- package/dist/testSurface/surface/results/ReleasePages.js +42 -41
- package/dist/testSurface/surface/results/ResultsBody.d.ts +11 -4
- package/dist/testSurface/surface/results/ResultsBody.js +221 -118
- package/dist/testSurface/surface/results/recommendation.model.d.ts +6 -9
- package/dist/testSurface/surface/results/recommendation.model.js +15 -59
- package/dist/testSurface/surface/results/useResults.d.ts +13 -8
- package/dist/testSurface/surface/results/useResults.js +3 -2
- package/dist/testSurface/surface/setting/parts.js +89 -46
- package/dist/testSurface/surface/setting/setting.css +2 -1
- package/dist/testSurface/surface/test/AdvancedSection.js +11 -4
- package/dist/testSurface/surface/test/DeleteTest.d.ts +10 -2
- package/dist/testSurface/surface/test/DeleteTest.js +173 -74
- package/dist/testSurface/surface/test/GoalSection.js +18 -14
- package/dist/testSurface/surface/test/LengthSection.js +24 -13
- package/dist/testSurface/surface/test/PageHoldout.d.ts +1 -1
- package/dist/testSurface/surface/test/PageHoldout.js +11 -8
- package/dist/testSurface/surface/test/ReadinessBar.d.ts +2 -1
- package/dist/testSurface/surface/test/ReadinessBar.js +4 -10
- package/dist/testSurface/surface/test/Section.js +8 -0
- package/dist/testSurface/surface/test/TargetingSection.js +82 -12
- package/dist/testSurface/surface/test/TestSurface.js +73 -37
- package/dist/testSurface/surface/test/VersionsSection.js +141 -91
- package/dist/testSurface/surface/test/fields.d.ts +32 -6
- package/dist/testSurface/surface/test/fields.js +166 -52
- package/dist/testSurface/surface/test/pageParts.js +27 -12
- package/dist/testSurface/surface/test/testPage.css +9 -2
- package/dist/testSurface/surface/test/testPage.model.d.ts +1 -0
- package/dist/testSurface/surface/test/testPage.model.js +6 -0
- package/dist/testSurface/surface/testDocument.model.d.ts +3 -0
- package/dist/testSurface/surface/testDocument.model.js +4 -1
- package/dist/testSurface/surface/useTestDocument.d.ts +21 -5
- package/dist/testSurface/surface/useTestDocument.js +472 -167
- package/dist/testSurface/surface/watchTestDocument.d.ts +15 -0
- package/dist/testSurface/surface/watchTestDocument.js +181 -0
- package/dist/testSurface/surfaceUrls.d.ts +1 -0
- package/dist/testSurface/surfaceUrls.js +4 -0
- package/dist/testSurface/useApi.d.ts +8 -5
- package/dist/testSurface/useOnTestReturn.d.ts +2 -0
- package/dist/testSurface/useOnTestReturn.js +27 -0
- package/dist/testSurface/useReadinessPolling.js +3 -1
- package/dist/transitions/addMetric.d.ts +2 -5
- package/dist/transitions/addMetric.js +5 -1
- 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 +1 -0
- package/dist/transitions/checkStart.js +17 -6
- package/dist/transitions/decide.d.ts +1 -1
- package/dist/transitions/decide.js +5 -3
- package/dist/transitions/deleteExperiment.d.ts +2 -2
- package/dist/transitions/deleteExperiment.js +17 -7
- package/dist/transitions/kernel.d.ts +4 -0
- package/dist/transitions/kernel.js +9 -4
- package/dist/transitions/makeContent.d.ts +2 -1
- package/dist/transitions/makeContent.js +12 -8
- package/dist/transitions/nestedPlacementNames.d.ts +2 -2
- package/dist/transitions/nestedPlacementNames.js +4 -5
- package/dist/transitions/pageAddress.d.ts +6 -0
- package/dist/transitions/pageAddress.js +71 -0
- package/dist/transitions/pageVersions.d.ts +1 -1
- package/dist/transitions/phaseRecord.d.ts +2 -0
- package/dist/transitions/phaseRecord.js +5 -0
- package/dist/transitions/placementInteractions.d.ts +3 -3
- package/dist/transitions/placementInteractions.js +8 -7
- package/dist/transitions/placements.d.ts +2 -0
- package/dist/transitions/placements.js +5 -5
- package/dist/transitions/preflightData.d.ts +3 -2
- package/dist/transitions/preflightData.js +77 -43
- 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 +2 -4
- package/dist/transitions/start.d.ts +7 -9
- package/dist/transitions/start.js +75 -39
- 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/armKey.d.ts +2 -0
- package/dist/types/armKey.js +1 -0
- package/dist/types/contracts.d.ts +17 -4
- package/dist/types/endpoints.d.ts +89 -17
- package/dist/types/endpoints.js +1 -1
- package/dist/types/runtime.d.ts +15 -9
- package/dist/types/snapshot.d.ts +2 -0
- package/dist/types/surface.d.ts +7 -9
- package/dist/ui/ChipsInput.d.ts +8 -1
- package/dist/ui/ChipsInput.js +17 -4
- package/dist/ui/Dialog.d.ts +21 -2
- package/dist/ui/Dialog.js +101 -4
- package/dist/ui/Inputs.js +0 -1
- package/dist/ui/ui.css +5 -1
- package/package.json +2 -2
|
@@ -1,24 +1,84 @@
|
|
|
1
1
|
export declare const PAGE_COPY: {
|
|
2
|
-
readonly more: "More";
|
|
3
2
|
readonly loading: "Loading pages…";
|
|
4
3
|
readonly empty: "There are no pages here yet.";
|
|
5
|
-
readonly
|
|
4
|
+
readonly emptyPage: "There are no eligible pages on this results page.";
|
|
5
|
+
readonly error: "Couldn't load pages.";
|
|
6
6
|
readonly retry: "Try again";
|
|
7
7
|
readonly draft: "Draft";
|
|
8
|
+
readonly published: "Published";
|
|
9
|
+
readonly changed: "Changed";
|
|
8
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.";
|
|
9
19
|
readonly choose: "Choose a page";
|
|
10
20
|
readonly where: "Where it shows";
|
|
11
21
|
readonly open: "Open";
|
|
12
22
|
readonly preview: "Preview";
|
|
13
23
|
readonly contentChecksOff: "Content checks are off for this page type.";
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
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: (label?: string) => string;
|
|
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: (label?: string) => string;
|
|
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: (label?: string) => string;
|
|
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: (label?: string) => string;
|
|
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: (label?: string) => string;
|
|
52
|
+
readonly copyEmbeddedTest: (label?: string) => string;
|
|
53
|
+
readonly copyOriginal: (label?: string) => string;
|
|
54
|
+
readonly copyChooseOriginal: (label?: string) => string;
|
|
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: (label?: string) => string;
|
|
59
|
+
readonly duplicateStep: (label?: string) => string;
|
|
60
|
+
readonly keepTitleStep: (label?: string) => string;
|
|
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.";
|
|
17
65
|
};
|
|
18
66
|
export declare const usedPageCopy: (label: string) => string;
|
|
19
|
-
export declare const usedAddressCopy: (label: string, path: string
|
|
20
|
-
export declare const openOriginalCopy: (collection: string) => string;
|
|
67
|
+
export declare const usedAddressCopy: (label: string, path: string) => string;
|
|
21
68
|
export declare const openCollectionCopy: (collection: string) => string;
|
|
22
69
|
export declare const pageStepCopy: (label: string) => string;
|
|
23
70
|
export declare const pageNotFoundCopy: (path: string, collection: string) => string;
|
|
24
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, controlLabel?: 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;
|
|
@@ -1,24 +1,91 @@
|
|
|
1
|
+
import { controlVersionName } from '../../labels/arms.js';
|
|
1
2
|
export const PAGE_COPY = {
|
|
2
|
-
more: 'More',
|
|
3
3
|
loading: 'Loading pages…',
|
|
4
4
|
empty: 'There are no pages here yet.',
|
|
5
|
-
|
|
5
|
+
emptyPage: 'There are no eligible pages on this results page.',
|
|
6
|
+
error: "Couldn't load pages.",
|
|
6
7
|
retry: 'Try again',
|
|
7
8
|
draft: 'Draft',
|
|
9
|
+
published: 'Published',
|
|
10
|
+
changed: 'Changed',
|
|
8
11
|
noPath: 'This page has no address yet.',
|
|
12
|
+
justNow: 'Just now',
|
|
13
|
+
search: 'Search pages',
|
|
14
|
+
searchHint: 'Search by title or address',
|
|
15
|
+
previous: 'Previous page',
|
|
16
|
+
next: 'Next page',
|
|
17
|
+
puckEditor: 'Puck editor',
|
|
18
|
+
blocksEditor: 'Page editor',
|
|
19
|
+
pageLimit: 'Search to narrow the list.',
|
|
9
20
|
choose: 'Choose a page',
|
|
10
21
|
where: 'Where it shows',
|
|
11
22
|
open: 'Open',
|
|
12
23
|
preview: 'Preview',
|
|
13
24
|
contentChecksOff: 'Content checks are off for this page type.',
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
25
|
+
copyIntro: "To create a test of this page, we'll copy the page and use the copy as the test version.",
|
|
26
|
+
copyVisibility: (label)=>`The copy stays private as a draft. Visitors at ${controlVersionName(label)}'s address can see it once you start the test.`,
|
|
27
|
+
copyTitle: 'Title',
|
|
28
|
+
copyAddressLabel: 'Address',
|
|
29
|
+
copyConfirm: 'Make the copy',
|
|
30
|
+
copyCancel: 'Cancel',
|
|
31
|
+
copyChecking: 'Checking the title and address…',
|
|
32
|
+
copying: 'Making the draft…',
|
|
33
|
+
copyOpen: 'Open draft copy',
|
|
34
|
+
copyOpenPage: 'Open draft page',
|
|
35
|
+
copyDraftSelected: 'The selected page is still a draft.',
|
|
36
|
+
copyPublishWhy: 'The test can start once this copy is published.',
|
|
37
|
+
copyEdit: 'Edit the copy.',
|
|
38
|
+
copyPublish: "Publish the copy when it's ready.",
|
|
39
|
+
copyPublishedAddress: 'Publishing the copy also makes it reachable at its own address until the test starts.',
|
|
40
|
+
copyRouting: (label)=>`During the test, visitors stay at ${controlVersionName(label)}'s address while the test uses the copy's address behind the scenes.`,
|
|
41
|
+
copyExisting: 'Or choose an existing page.',
|
|
42
|
+
copyUnavailable: "This page needs to be copied by hand because the site couldn't make a draft here.",
|
|
43
|
+
copyNotEnabled: 'Your site uses manual copies for this page type.',
|
|
44
|
+
copyProtected: 'Some fields have read restrictions, so make the copy in the page editor.',
|
|
45
|
+
copyNoAccess: "Someone else needs to make the copy because your account can't create pages here.",
|
|
46
|
+
copyAsk: (label)=>`Ask someone with permission to make a copy of ${controlVersionName(label)}.`,
|
|
47
|
+
copyChooseAfterAsk: 'Then choose the copy below.',
|
|
48
|
+
copyDisabled: 'This page type requires a new page because duplication is disabled.',
|
|
49
|
+
copyNewPage: 'Create a new page.',
|
|
50
|
+
copyContent: (label)=>`Copy the content from ${controlVersionName(label)}.`,
|
|
51
|
+
copyNoDrafts: "Pages of this type go live as soon as they're saved, so you need to make the copy by hand.",
|
|
52
|
+
copyLocalized: (label)=>`${controlVersionName(label, true)} has fields for different languages, so make the copy in the page editor.`,
|
|
53
|
+
copyEmbeddedTest: (label)=>`${controlVersionName(label, true)} contains a test block, so make the copy in the page editor.`,
|
|
54
|
+
copyOriginal: (label)=>`${controlVersionName(label, true)} needs a published page with no pending edits before it can be copied here.`,
|
|
55
|
+
copyChooseOriginal: (label)=>`Choose ${controlVersionName(label)} before making a test version.`,
|
|
56
|
+
copyAddress: 'The copy needs an available address, so make it in the page editor.',
|
|
57
|
+
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.",
|
|
58
|
+
copyTransactionLost: 'Something went wrong, and nothing was copied. Try again.',
|
|
59
|
+
copyChanged: (label)=>`The test, ${controlVersionName(label)}, or the proposed address changed. Check the latest details before making the copy.`,
|
|
60
|
+
duplicateStep: (label)=>`Choose Duplicate for ${controlVersionName(label)}.`,
|
|
61
|
+
keepTitleStep: (label)=>`Keep ${controlVersionName(label)}'s title unless you're testing a new title.`,
|
|
62
|
+
homepageStep: 'If the copy has a Homepage setting, turn it off.',
|
|
63
|
+
ownAddress: 'Give the copy its own address.',
|
|
64
|
+
saveCopy: 'Save the copy.',
|
|
65
|
+
chooseCopy: 'Choose the copy below.'
|
|
17
66
|
};
|
|
18
67
|
export const usedPageCopy = (label)=>`This is ${label}.`;
|
|
19
|
-
export const usedAddressCopy = (label, path
|
|
20
|
-
export const openOriginalCopy = (collection)=>`Open the Original in ${collection}.`;
|
|
68
|
+
export const usedAddressCopy = (label, path)=>`This page needs its own address. It shares ${path} with ${label}.`;
|
|
21
69
|
export const openCollectionCopy = (collection)=>`Open ${collection}`;
|
|
22
70
|
export const pageStepCopy = (label)=>`A page for ${label}`;
|
|
23
71
|
export const pageNotFoundCopy = (path, collection)=>`${path} isn't in ${collection}. Choose a page.`;
|
|
24
72
|
export const pageFieldCopy = (label)=>`Page for ${label}`;
|
|
73
|
+
export const noPageMatches = (query)=>`No pages match “${query}”.`;
|
|
74
|
+
export const pageRangeCopy = (first, last, total)=>`${first.toLocaleString('en-US')}–${last.toLocaleString('en-US')} of ${total.toLocaleString('en-US')} pages`;
|
|
75
|
+
export const pageCountCopy = (count)=>`${count} ${count === 1 ? 'page' : 'pages'} shown`;
|
|
76
|
+
export const draftPageAddress = (address)=>`Draft address: ${address}`;
|
|
77
|
+
export const lastEditedCopy = (time)=>`Edited ${time}`;
|
|
78
|
+
export const makeCopyLabel = (label, controlLabel)=>`Make ${label} from ${controlVersionName(controlLabel)}`;
|
|
79
|
+
export const copyLocation = (collection)=>`You can find the copy later in ${collection}.`;
|
|
80
|
+
export const copiedPage = (title, path)=>`We made a draft copy of “${title}” at ${path}.`;
|
|
81
|
+
export function orphanedPages(pages, collection) {
|
|
82
|
+
const names = pages.map(({ id, title, path })=>{
|
|
83
|
+
if (path) return title ? `${title} (${path})` : path;
|
|
84
|
+
return title ? `${title} (ID ${id})` : `page ID ${id}`;
|
|
85
|
+
});
|
|
86
|
+
if (pages.length === 1) {
|
|
87
|
+
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.`;
|
|
88
|
+
return `Something went wrong while copying, but a page was made: ${names[0]}. Choose it in the page list, or delete it in ${collection}.`;
|
|
89
|
+
}
|
|
90
|
+
return `Something went wrong while copying, but these pages were made: ${names.join(', ')}. Choose one in the page list, or delete them in ${collection}.`;
|
|
91
|
+
}
|
|
@@ -10,17 +10,21 @@ export declare const RUNNING_SAVE_PAGE = "This test is running, but visitors won
|
|
|
10
10
|
export declare const READINESS_COPY: {
|
|
11
11
|
readonly beforeStart: "Before you can start:";
|
|
12
12
|
readonly label: "Readiness";
|
|
13
|
+
readonly refresh: "Refresh readiness";
|
|
13
14
|
readonly addGoal: "Add a goal";
|
|
14
15
|
readonly needsAttention: "Needs attention";
|
|
15
16
|
readonly needsAttentionPrefix: "Needs attention: ";
|
|
16
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.";
|
|
17
20
|
readonly saveGeneralError: "Couldn't save. Reload to check the saved test.";
|
|
18
21
|
readonly changing: "Saving this change…";
|
|
19
22
|
readonly reloadAfterError: "Couldn't save the test. Reload to check its saved settings before starting.";
|
|
20
23
|
readonly chooseGoalToAdd: "Choose a goal to add it to this test.";
|
|
21
|
-
readonly reloadFirst: "Reload to see the latest
|
|
24
|
+
readonly reloadFirst: "Reload to see the latest settings and discard your unfinished edits.";
|
|
22
25
|
readonly ready: "Ready to start.";
|
|
23
26
|
readonly saveFirst: "Wait for your changes to save.";
|
|
27
|
+
readonly finishEdits: "Finish your edits before starting the test.";
|
|
24
28
|
readonly saving: "Saving…";
|
|
25
29
|
readonly saved: "Saved";
|
|
26
30
|
readonly saveError: "Couldn't save — see the highlighted field";
|
|
@@ -32,11 +36,11 @@ export declare const READINESS_COPY: {
|
|
|
32
36
|
readonly running: "Running";
|
|
33
37
|
readonly stopped: "Stopped";
|
|
34
38
|
readonly decided: "Decided";
|
|
35
|
-
readonly addMetric: "Add a
|
|
39
|
+
readonly addMetric: "Add a goal to track alongside the main goal.";
|
|
36
40
|
readonly allocate: "Let more people in";
|
|
37
41
|
readonly everyone: "Everyone already takes part.";
|
|
38
42
|
readonly participation: "How many people take part (%)";
|
|
39
|
-
readonly noPlacements: "
|
|
43
|
+
readonly noPlacements: "This test needs a block on a page. Add it to a Test block.";
|
|
40
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.";
|
|
41
45
|
readonly noPoint: "Choose the setting to test.";
|
|
42
46
|
readonly busy: "Another test is already running on this setting. Stop it first.";
|
|
@@ -49,6 +53,8 @@ export declare const READINESS_COPY: {
|
|
|
49
53
|
readonly uncheckedPages: "Version pages aren't checked; make sure each one is published.";
|
|
50
54
|
readonly chooseDifferentPage: "Choose a different page";
|
|
51
55
|
readonly choosePages: "Choose pages";
|
|
56
|
+
readonly publishPage: "Publish the page";
|
|
57
|
+
readonly saveAndPublishPage: "Save and publish the page";
|
|
52
58
|
readonly noTargets: "Choose a page for each version.";
|
|
53
59
|
readonly pageVisitors: "Whole-page tests count visitors. Create the test again counting visitors.";
|
|
54
60
|
readonly blockPathRule: "Remove the page-path rule in Who takes part; page block tests run on their page.";
|
|
@@ -60,23 +66,28 @@ export declare const READINESS_COPY: {
|
|
|
60
66
|
readonly attributeFallback: "this attribute";
|
|
61
67
|
};
|
|
62
68
|
export declare const unsupportedContentCopy: (page: string) => string;
|
|
63
|
-
export declare const pageInUseCopy: (path: string, version?: boolean) => string;
|
|
69
|
+
export declare const pageInUseCopy: (path: string, version?: boolean, label?: string) => string;
|
|
64
70
|
export declare const unpublishedPageCopy: (path: string, context?: {
|
|
65
71
|
original: boolean;
|
|
66
72
|
found: boolean;
|
|
67
73
|
collection: string;
|
|
68
|
-
}) => string;
|
|
74
|
+
}, label?: string) => string;
|
|
69
75
|
/** Old responses may include raw host errors; unknown strings use authored copy. */
|
|
70
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.";
|
|
71
77
|
export declare const fixFieldsNext: (name: string) => string;
|
|
72
78
|
export declare const nextCopy: (sentence: string) => string;
|
|
73
79
|
export declare const versionsNext: (detail: string) => string;
|
|
74
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;
|
|
75
85
|
export declare const parameterNext: (parameter: string, group: string) => string;
|
|
76
86
|
export declare const placementNext: (group: string, detail: string) => string;
|
|
77
87
|
export declare const goalPeopleNext: (people: string) => string;
|
|
78
88
|
export declare const ruleNext: (detail: string) => string;
|
|
79
89
|
export declare const attributeNext: (attribute: string) => string;
|
|
90
|
+
export declare const firstStartOnlyCopy: (status: string) => string;
|
|
80
91
|
export declare const stoppedCopy: (date: string | null) => string;
|
|
81
92
|
export declare const decidedCopy: (date: string | null, winner: string) => string;
|
|
82
93
|
export declare const runningCopy: (date: string | null, people: number | null, days: number | null) => string;
|
|
@@ -88,8 +99,8 @@ export declare const pendingBlockRemovalCopy: (name: string) => string;
|
|
|
88
99
|
export declare const pageGuardCopy: (name: string, status: "running" | "decided" | "archived", role?: "winner" | "original") => string;
|
|
89
100
|
export declare const versionPageUnavailableCopy: (path: string, status?: string) => string;
|
|
90
101
|
export declare const versionPageUncheckedCopy: (path: string, status?: string) => string;
|
|
91
|
-
export declare const sameAddressCopy: (label: string, other: string, path: string
|
|
92
|
-
export declare const identicalVersionCopy: (version: string) => string;
|
|
102
|
+
export declare const sameAddressCopy: (label: string, other: string, path: string) => string;
|
|
103
|
+
export declare const identicalVersionCopy: (version: string, control: string) => string;
|
|
93
104
|
/** Keep named actions aligned with the actual transition buttons. */
|
|
94
105
|
export declare function placementGuardCopy(page: {
|
|
95
106
|
name: string;
|
|
@@ -105,3 +116,5 @@ export declare const placementUncheckedCopy: (page: string) => string;
|
|
|
105
116
|
export declare const moreBlockers: (count: number) => string;
|
|
106
117
|
export declare const unpublishedPlacementsCopy: (detail?: unknown) => string;
|
|
107
118
|
export declare const unpublishedPlacementCopy: (title?: string) => string;
|
|
119
|
+
export declare const finishEditCopy: (field: string) => string;
|
|
120
|
+
export declare const duplicateVersionCopy: (page: string) => string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { controlVersionName } from '../../labels/arms.js';
|
|
1
2
|
export const PLACEMENT_FAILURE_COPY = {
|
|
2
3
|
'placements-failed': "Couldn't check where this test is used. Try again.",
|
|
3
4
|
forbidden: "You don't have permission to check where this test is used.",
|
|
@@ -10,17 +11,21 @@ export const RUNNING_SAVE_PAGE = "This test is running, but visitors won't see i
|
|
|
10
11
|
export const READINESS_COPY = {
|
|
11
12
|
beforeStart: 'Before you can start:',
|
|
12
13
|
label: 'Readiness',
|
|
14
|
+
refresh: 'Refresh readiness',
|
|
13
15
|
addGoal: 'Add a goal',
|
|
14
16
|
needsAttention: 'Needs attention',
|
|
15
17
|
needsAttentionPrefix: 'Needs attention: ',
|
|
16
18
|
missingVersions: 'This test is missing its saved versions. Open the test and check its setup before changing this page.',
|
|
19
|
+
addMissingVersionContent: 'Add content to the empty versions.',
|
|
20
|
+
summaryMissingVersionContent: 'Add or publish the missing version content.',
|
|
17
21
|
saveGeneralError: "Couldn't save. Reload to check the saved test.",
|
|
18
22
|
changing: 'Saving this change…',
|
|
19
23
|
reloadAfterError: "Couldn't save the test. Reload to check its saved settings before starting.",
|
|
20
24
|
chooseGoalToAdd: 'Choose a goal to add it to this test.',
|
|
21
|
-
reloadFirst: 'Reload to see the latest
|
|
25
|
+
reloadFirst: 'Reload to see the latest settings and discard your unfinished edits.',
|
|
22
26
|
ready: 'Ready to start.',
|
|
23
27
|
saveFirst: 'Wait for your changes to save.',
|
|
28
|
+
finishEdits: 'Finish your edits before starting the test.',
|
|
24
29
|
saving: 'Saving…',
|
|
25
30
|
saved: 'Saved',
|
|
26
31
|
saveError: "Couldn't save — see the highlighted field",
|
|
@@ -32,11 +37,11 @@ export const READINESS_COPY = {
|
|
|
32
37
|
running: 'Running',
|
|
33
38
|
stopped: 'Stopped',
|
|
34
39
|
decided: 'Decided',
|
|
35
|
-
addMetric: 'Add a
|
|
40
|
+
addMetric: 'Add a goal to track alongside the main goal.',
|
|
36
41
|
allocate: 'Let more people in',
|
|
37
42
|
everyone: 'Everyone already takes part.',
|
|
38
43
|
participation: 'How many people take part (%)',
|
|
39
|
-
noPlacements: '
|
|
44
|
+
noPlacements: 'This test needs a block on a page. Add it to a Test block.',
|
|
40
45
|
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.",
|
|
41
46
|
noPoint: 'Choose the setting to test.',
|
|
42
47
|
busy: 'Another test is already running on this setting. Stop it first.',
|
|
@@ -49,6 +54,8 @@ export const READINESS_COPY = {
|
|
|
49
54
|
uncheckedPages: "Version pages aren't checked; make sure each one is published.",
|
|
50
55
|
chooseDifferentPage: 'Choose a different page',
|
|
51
56
|
choosePages: 'Choose pages',
|
|
57
|
+
publishPage: 'Publish the page',
|
|
58
|
+
saveAndPublishPage: 'Save and publish the page',
|
|
52
59
|
noTargets: 'Choose a page for each version.',
|
|
53
60
|
pageVisitors: 'Whole-page tests count visitors. Create the test again counting visitors.',
|
|
54
61
|
blockPathRule: 'Remove the page-path rule in Who takes part; page block tests run on their page.',
|
|
@@ -61,35 +68,52 @@ export const READINESS_COPY = {
|
|
|
61
68
|
attributeFallback: 'this attribute'
|
|
62
69
|
};
|
|
63
70
|
export const unsupportedContentCopy = (page)=>`${page} has more than one language, so Make it the content isn't available for it; you'll copy the winning version by hand.`;
|
|
64
|
-
export const pageInUseCopy = (path, version = false)=>version ? `${path} is already in another running or decided test. Make a new copy of
|
|
65
|
-
export const unpublishedPageCopy = (path, context)=>!context ? `${path} isn't a published page yet. Publish it, or choose another page.` : context.original ? `${path} isn't published, so it can't be
|
|
71
|
+
export const pageInUseCopy = (path, version = false, label)=>version ? `${path} is already in another running or decided test. Make a new copy of ${controlVersionName(label)} for this version, or finish that test first.` : `Another running or decided test already uses ${path}. Choose a different page, or finish that test first.`;
|
|
72
|
+
export const unpublishedPageCopy = (path, context, label)=>!context ? `${path} isn't a published page yet. Publish it, or choose another page.` : context.original ? `${path} isn't published, so it can't be ${controlVersionName(label)}. Publish it, or choose another page.` : context.found ? `${path} is still a draft. Publish it in ${context.collection} to get it ready for the test.` : `${path} isn't published yet, or no page has that address. Publish it in ${context.collection}, or choose another page.`;
|
|
66
73
|
/** Old responses may include raw host errors; unknown strings use authored copy. */ export const placementFailureCopy = (reason)=>PLACEMENT_FAILURE_COPY[typeof reason === 'string' && Object.hasOwn(PLACEMENT_FAILURE_COPY, reason) ? reason : 'placements-failed'];
|
|
67
74
|
const withoutPeriod = (value)=>value.trim().replace(/[.!?]+$/, '');
|
|
68
75
|
export const fixFieldsNext = (name)=>`Fix the highlighted fields in ${name}.`;
|
|
69
76
|
export const nextCopy = (sentence)=>`Next: ${sentence}`;
|
|
70
77
|
export const versionsNext = (detail)=>`Fix the versions: ${withoutPeriod(detail)}.`;
|
|
71
78
|
export const contentNext = (group, page = 'the page')=>`Add content for ${group} on ${page}.`;
|
|
79
|
+
export const draftContentNext = (group, page)=>`${group} has content in the draft of ${page}. ${READINESS_COPY.publishPage}.`;
|
|
80
|
+
export const unsavedContentNext = (group)=>`${group} has unsaved content. ${READINESS_COPY.saveAndPublishPage}.`;
|
|
81
|
+
export const partialContentNext = (group, page)=>`Fill ${group} in the empty Test blocks on ${page}.`;
|
|
82
|
+
export function summaryContentNext(groups, draftGroups = []) {
|
|
83
|
+
const format = new Intl.ListFormat('en-US');
|
|
84
|
+
return [
|
|
85
|
+
groups.length ? `Add or publish content for ${format.format(groups)}.` : '',
|
|
86
|
+
draftGroups.length ? `Publish the draft content for ${format.format(draftGroups)}.` : ''
|
|
87
|
+
].filter(Boolean).join(' ');
|
|
88
|
+
}
|
|
72
89
|
export const parameterNext = (parameter, group)=>`Set a value for ${parameter} on ${group}.`;
|
|
73
90
|
export const placementNext = (group, detail)=>`Add content for ${group} wherever this setting is used${detail.trim() ? `: ${withoutPeriod(detail)}` : ''}.`;
|
|
74
91
|
export const goalPeopleNext = (people)=>`This goal can't be measured for ${people}. Choose another goal.`;
|
|
75
92
|
export const ruleNext = (detail)=>`Fix the rule: ${withoutPeriod(detail)}.`;
|
|
76
93
|
export const attributeNext = (attribute)=>`Remove the rule on ${attribute}: it isn't available.`;
|
|
77
|
-
export const
|
|
94
|
+
export const firstStartOnlyCopy = (status)=>`Only a draft that has never started can start this way. The test is currently ${status === 'draft' ? 'a draft' : status}.`;
|
|
95
|
+
export const stoppedCopy = (date)=>`Stopped${date ? ` ${date}` : ''}. You can edit the versions, goal, audience or length. Starting again resets the results.`;
|
|
78
96
|
export const decidedCopy = (date, winner)=>`Decided${date ? ` ${date}` : ''}: ${winner}.`;
|
|
97
|
+
function daysToGoCopy(days) {
|
|
98
|
+
if (days === null) return null;
|
|
99
|
+
if (days === 0) return 'past the planned end';
|
|
100
|
+
if (days === 1) return 'last planned day';
|
|
101
|
+
return `about ${days} days to go`;
|
|
102
|
+
}
|
|
79
103
|
export const runningCopy = (date, people, days)=>[
|
|
80
104
|
date ? `Running since ${date}` : READINESS_COPY.running,
|
|
81
105
|
people === null ? null : `${people.toLocaleString('en-US')} people so far`,
|
|
82
|
-
days
|
|
106
|
+
daysToGoCopy(days)
|
|
83
107
|
].filter(Boolean).join(' · ');
|
|
84
108
|
export const lastBlockPlacementCopy = (name, removingPage = false)=>removingPage ? `“${name}” is running and this page is the only published place it appears. Stop the test first.` : `“${name}” is running and this is the only published place it appears. Stop the test, or keep its block on this page.`;
|
|
85
109
|
export const hiddenBlockPlacementCopy = (name)=>`“${name}” is running and this is the only published place it appears. Stop the test first, or keep its block visible on this page.`;
|
|
86
110
|
export const bulkBlockRemovalCopy = (name)=>`“${name}” is running and the pages in this change are the only published places it appears. Stop the test first.`;
|
|
87
111
|
export const pendingBlockRemovalCopy = (name)=>`“${name}” is running and the pages in this change are the only published places it appears. Stop the test first, or change these pages one at a time.`;
|
|
88
|
-
/** After archive the guard protects the winner and the Original; only the winner page is "the winner". */ export const pageGuardCopy = (name, status, role = 'winner')=>status === 'archived' ? role === 'original' ? `This page's address now shows the winner of the finished test "${name}".
|
|
112
|
+
/** After archive the guard protects the winner and the Original; only the winner page is "the winner". */ export const pageGuardCopy = (name, status, role = 'winner')=>status === 'archived' ? role === 'original' ? `This page's address now shows the winner of the finished test "${name}". Use "Release pages" on the test to free it.` : `This page is shown at other addresses because the finished test "${name}" made it the winner. Use "Release pages" on the test to free it.` : status === 'decided' ? `This page is part of the decided test "${name}". Choose "Make it the content" or "Discard winner" on the test before you delete, rename or unpublish it.` : `This page is part of the running test "${name}". Stop the test before you delete, rename or unpublish it.`;
|
|
89
113
|
export const versionPageUnavailableCopy = (path, status = 'running')=>`${path} isn't published, so visitors assigned to it see an error. Republish it, or ${status === 'decided' ? 'discard the winner' : 'stop the test'}.`;
|
|
90
114
|
export const versionPageUncheckedCopy = (path, status = 'running')=>`Couldn't check whether ${path} is published. Check that it is still published, or ${status === 'decided' ? 'discard the winner' : 'stop the test'}.`;
|
|
91
|
-
export const sameAddressCopy = (label, other, path
|
|
92
|
-
export const identicalVersionCopy = (version)=>`${version} looks the same as
|
|
115
|
+
export const sameAddressCopy = (label, other, path)=>`${label} has the same address (${path}) as ${other}. Choose a different page.`;
|
|
116
|
+
export const identicalVersionCopy = (version, control)=>`${version} looks the same as ${control}, so the test would compare nothing. Change it before you start.`;
|
|
93
117
|
/** Keep named actions aligned with the actual transition buttons. */ export function placementGuardCopy(page, block, preExisting) {
|
|
94
118
|
const action = (test)=>test.status === 'running' ? `stop ${test.name}` : `choose "Make it the content" or "Discard winner" on ${test.name}`;
|
|
95
119
|
return preExisting ? `This page is in two tests that change it, ${page.name} and ${block.name}. Before you publish, ${action(page)} or ${action(block)}.` : `This page is part of the ${page.status} test ${page.name}, so a block from another test can't be added to it. Finish one of the tests first.`;
|
|
@@ -115,3 +139,5 @@ export const unpublishedPlacementsCopy = (detail)=>(Array.isArray(detail) && det
|
|
|
115
139
|
return unpublishedPlacementCopy(title);
|
|
116
140
|
}).join('\n');
|
|
117
141
|
export const unpublishedPlacementCopy = (title = 'this page')=>`The block you're testing is only on a draft of ${title}. Publish the page before you start.`;
|
|
142
|
+
export const finishEditCopy = (field)=>`Finish your edit to “${field}” before starting the test.`;
|
|
143
|
+
export const duplicateVersionCopy = (page)=>`The Test block on ${page} has the same version twice. Remove the extra version.`;
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
export declare const RECOMMENDATION_COPY: {
|
|
2
|
-
readonly unavailable: "Results aren't available right now. Recompute, and ask a developer if it keeps happening.";
|
|
3
|
-
readonly dataProblem: "Stop: the data looks unbalanced, check the setup.";
|
|
4
|
-
readonly collecting: "Too early to tell. Keep it running.";
|
|
5
|
-
readonly stoppedCollecting: "Stopped before enough people took part to tell.";
|
|
6
|
-
readonly originalBetter: "The Original is best. Keep the Original.";
|
|
7
|
-
readonly noDifference: "No difference found. Keep the Original, or test a bigger change.";
|
|
8
|
-
readonly keepRunning: "No difference so far. Keep running.";
|
|
9
|
-
readonly longDuration: "No clear difference, and a clear answer would take more than 3 months at this traffic. Consider a bigger change.";
|
|
10
|
-
readonly group: "Variant";
|
|
11
|
-
readonly guardrail: "an important outcome";
|
|
12
|
-
readonly winner: "the winner";
|
|
13
|
-
};
|
|
14
|
-
export declare const guardrailRecommendation: (group: string, guardrail: string) => string;
|
|
15
1
|
export declare const collectingRecommendation: (people: string) => string;
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const winnerRecommendation: (group: string) => string;
|
|
18
|
-
export declare const mixedRecommendation: (better: string, worse: string) => string;
|
|
19
|
-
export declare const runningRecommendation: (date: string) => string;
|
|
20
|
-
export declare const rolloutCollectingRecommendation: (winner: string) => string;
|
|
21
|
-
export declare const rolloutReadoutRecommendation: (winner: string, lift: string) => string;
|
|
22
|
-
/** Matches the stored server finding; it is not a new statistical decision. */
|
|
23
|
-
export declare const storedGuardrailFinding: (group: string, guardrail: string) => string;
|
|
2
|
+
export declare const noDifferenceRecommendation: (control: string) => string;
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
dataProblem: 'Stop: the data looks unbalanced, check the setup.',
|
|
4
|
-
collecting: 'Too early to tell. Keep it running.',
|
|
5
|
-
stoppedCollecting: 'Stopped before enough people took part to tell.',
|
|
6
|
-
originalBetter: 'The Original is best. Keep the Original.',
|
|
7
|
-
noDifference: 'No difference found. Keep the Original, or test a bigger change.',
|
|
8
|
-
keepRunning: 'No difference so far. Keep running.',
|
|
9
|
-
longDuration: 'No clear difference, and a clear answer would take more than 3 months at this traffic. Consider a bigger change.',
|
|
10
|
-
group: 'Variant',
|
|
11
|
-
guardrail: 'an important outcome',
|
|
12
|
-
winner: 'the winner'
|
|
13
|
-
};
|
|
14
|
-
export const guardrailRecommendation = (group, guardrail)=>`Stop: ${group} is making ${guardrail} worse.`;
|
|
15
|
-
export const collectingRecommendation = (people)=>`Too early to tell. About ${people} more people needed to be sure.`;
|
|
16
|
-
export const worseRecommendation = (group)=>`No version beats the Original, and ${group} does worse. Keep the Original.`;
|
|
17
|
-
export const winnerRecommendation = (group)=>`${group} is most likely to be best.`;
|
|
18
|
-
export const mixedRecommendation = (better, worse)=>`Mixed: ${better} does better, ${worse} does worse. Review before deciding.`;
|
|
19
|
-
export const runningRecommendation = (date)=>`No difference so far. Keep running until ${date}.`;
|
|
20
|
-
export const rolloutCollectingRecommendation = (winner)=>`Since shipping ${winner}: still collecting data.`;
|
|
21
|
-
export const rolloutReadoutRecommendation = (winner, lift)=>`Since shipping ${winner}: ${lift} compared with the holdout.`;
|
|
22
|
-
/** Matches the stored server finding; it is not a new statistical decision. */ export const storedGuardrailFinding = (group, guardrail)=>`Stop: ${group} harms ${guardrail}.`;
|
|
1
|
+
export const collectingRecommendation = (people)=>`About ${people} people needed in total to be sure.`;
|
|
2
|
+
export const noDifferenceRecommendation = (control)=>`Keep ${control}, or test a bigger change.`;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare const RESULTS_COPY: {
|
|
2
|
-
readonly chooseGroup: "Choose a group";
|
|
3
2
|
readonly tests: "Tests";
|
|
4
3
|
readonly results: "Results";
|
|
5
4
|
readonly test: "Test";
|
|
@@ -39,7 +38,6 @@ export declare const RESULTS_COPY: {
|
|
|
39
38
|
readonly chanceToWin: "Chance to win";
|
|
40
39
|
readonly risk: "Risk";
|
|
41
40
|
readonly comparison: "Comparison";
|
|
42
|
-
readonly original: "Original";
|
|
43
41
|
readonly holdout: "Measured, not compared";
|
|
44
42
|
readonly holdoutBaseline: "Holdout · baseline";
|
|
45
43
|
readonly shippedGroup: "the winner";
|
|
@@ -58,19 +56,22 @@ export declare const RESULTS_COPY: {
|
|
|
58
56
|
readonly infeasible: "A clear answer would take more than 90 days at this traffic.";
|
|
59
57
|
readonly noCap: "Not capped: fewer than 20 people had this outcome in the 90 days before Start, so every value counts in full.";
|
|
60
58
|
readonly quality: "Data quality";
|
|
61
|
-
readonly missingWinner: "The stored winner is missing from this round
|
|
62
|
-
readonly missingWinnerNext: "
|
|
63
|
-
readonly srm: "Traffic isn't splitting as set.
|
|
59
|
+
readonly missingWinner: "The stored winner is missing from this round's results.";
|
|
60
|
+
readonly missingWinnerNext: "Refresh results. If the problem continues, contact a developer before trusting these results.";
|
|
61
|
+
readonly srm: "Traffic isn't splitting as set. Caching, a page placed twice, or automated traffic could affect the split.";
|
|
62
|
+
readonly srmAction: "Don't trust these results. Ask a developer to check for caching, a page placed twice, or automated traffic.";
|
|
64
63
|
readonly multiGroup: "People who saw more than one group were excluded.";
|
|
65
64
|
readonly multiGroupNext: "Check for caching or a page placed twice before trusting the results.";
|
|
66
65
|
readonly mismatch: "Beacons that didn't match the assigned group were ignored.";
|
|
67
66
|
readonly mismatchNext: "Check that the page reports the group it actually showed.";
|
|
67
|
+
readonly rapidBrowserEvents: "A larger share of visitors acted within seconds of arriving on one version than on another. One version may make it easier to act quickly, or some activity may be automated.";
|
|
68
|
+
readonly rapidBrowserEventsNext: "Check where the action appears in each version and ask your site team to review the traffic before choosing a winner.";
|
|
68
69
|
readonly identity: "Some linked identities were seen in different groups.";
|
|
69
70
|
readonly identityNext: "Check identity linking at sign-in and registration.";
|
|
70
71
|
readonly tooFew: "Too few people have seen the compared groups.";
|
|
71
72
|
readonly tooFewNext: "Keep collecting results until each compared group reaches the planned minimum.";
|
|
72
73
|
readonly layerFull: "The layer has fewer slices reserved than the requested allocation.";
|
|
73
|
-
readonly layerNext: "Free
|
|
74
|
+
readonly layerNext: "Free up room in the layer to include more people.";
|
|
74
75
|
readonly unavailable: {
|
|
75
76
|
'source-failed': string;
|
|
76
77
|
'source-unavailable': string;
|
|
@@ -81,7 +82,7 @@ export declare const RESULTS_COPY: {
|
|
|
81
82
|
'not-supplied': string;
|
|
82
83
|
'analysis-failed': string;
|
|
83
84
|
};
|
|
84
|
-
readonly unavailableNext: "
|
|
85
|
+
readonly unavailableNext: "Refresh results. If the problem continues, contact a developer.";
|
|
85
86
|
readonly loading: "Loading results…";
|
|
86
87
|
readonly refreshing: "Refreshing…";
|
|
87
88
|
readonly retryPreview: "Retry preview links";
|
|
@@ -89,11 +90,13 @@ export declare const RESULTS_COPY: {
|
|
|
89
90
|
readonly empty: "No results yet — the first results appear within the hour after Start.";
|
|
90
91
|
readonly retry: "Retry";
|
|
91
92
|
readonly round: "Round";
|
|
92
|
-
readonly recompute: "
|
|
93
|
-
readonly recomputing: "
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
93
|
+
readonly recompute: "Refresh results";
|
|
94
|
+
readonly recomputing: "Refreshing…";
|
|
95
|
+
readonly updated: (time: string) => string;
|
|
96
|
+
readonly previousRound: "Choose the latest test round to decide.";
|
|
97
|
+
readonly primary: "Main goal";
|
|
98
|
+
readonly secondary: "Also tracked (not used for the decision)";
|
|
99
|
+
readonly guardrail: "Must not get worse";
|
|
97
100
|
readonly chart: "Confidence interval over time";
|
|
98
101
|
readonly noHistory: "Not enough history yet.";
|
|
99
102
|
};
|
|
@@ -101,10 +104,14 @@ export declare const pagesReleasedCopy: (date: string, name?: string) => string;
|
|
|
101
104
|
export declare const roundLabel: (round: number, kind: string) => string;
|
|
102
105
|
export declare const decidedTitle: (winner: string) => string;
|
|
103
106
|
export declare const shippingTitle: (winner: string) => string;
|
|
107
|
+
export declare const keepRunningTo: (date: string) => string;
|
|
108
|
+
export declare const pastPlannedEnd: (date: string) => string;
|
|
104
109
|
export declare const moreDays: (days: string) => string;
|
|
105
110
|
export declare const collectingCopy: (n: string, minimum: string, conversions: string, conversionMinimum: string) => string;
|
|
106
111
|
export declare const uncappedTotal: (total: string) => string;
|
|
107
112
|
export declare const cappedCount: (count: string, cap: string) => string;
|
|
113
|
+
export declare const revenueCapHelp: (threshold: string) => string;
|
|
114
|
+
export declare const percentileCapHelp: (tail: number) => string;
|
|
108
115
|
export declare const atLeast: (bound: string) => string;
|
|
109
116
|
export declare const atMost: (bound: string) => string;
|
|
110
117
|
export declare const intervalCopy: (low: string, high: string) => string;
|
|
@@ -117,3 +124,5 @@ export declare const metricUnavailable: (name: string, reason: string) => string
|
|
|
117
124
|
export declare const chartSummary: (metric: string, groups: string, from: string, to: string, changes?: string[]) => string;
|
|
118
125
|
export declare const contentChangeTitle: (date: string) => string;
|
|
119
126
|
export declare const daysOfPlan: (days: string, planned: string) => string;
|
|
127
|
+
/** Use the frozen control label in the fixed wording stored by older verdict writers. */
|
|
128
|
+
export declare function verdictControlCopy(sentence: string, control: string): string;
|