Merge pull request #34318 from overleaf/dp-labs-custom-success-notification

Add customisable success notification for Labs experiment enrollment

GitOrigin-RevId: 7d60ea3bac124909b19f8f537e1ab2b6db8d787e
This commit is contained in:
David
2026-06-09 08:06:14 +00:00
committed by Copybot
parent 38e3104edf
commit a16274409e
4 changed files with 34 additions and 0 deletions
@@ -836,6 +836,11 @@ async function _loadSplitTestInfoInLocals(locals, splitTestName, session) {
description: splitTest.labsDescription || '',
icon: splitTest.labsIcon || '',
surveyLink: splitTest.badgeInfo?.labs?.url || '',
successNotification: {
content: splitTest.labsSuccessNotification?.content || '',
buttonLabel: splitTest.labsSuccessNotification?.buttonLabel || '',
buttonUrl: splitTest.labsSuccessNotification?.buttonUrl || '',
},
isFull: SplitTestUtils.isExperimentFull(variant),
versionCreatedAt:
currentVersion.createdAt instanceof Date