mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
Merge pull request #32968 from overleaf/worktree-labs-feature-preview
Add labs preview modal to editor GitOrigin-RevId: 0df33135febc8e94129bcdfdfb5c4981326dfab0
This commit is contained in:
@@ -828,6 +828,22 @@ async function _loadSplitTestInfoInLocals(locals, splitTestName, session) {
|
||||
phase,
|
||||
badgeInfo: splitTest.badgeInfo?.[phase],
|
||||
}
|
||||
|
||||
if (phase === 'labs') {
|
||||
const variant = currentVersion.variants?.[0]
|
||||
info.labsDetails = {
|
||||
title: splitTest.labsTitle || '',
|
||||
description: splitTest.labsDescription || '',
|
||||
icon: splitTest.labsIcon || '',
|
||||
surveyLink: splitTest.badgeInfo?.labs?.url || '',
|
||||
isFull: SplitTestUtils.isExperimentFull(variant),
|
||||
versionCreatedAt:
|
||||
currentVersion.createdAt instanceof Date
|
||||
? currentVersion.createdAt.toISOString()
|
||||
: currentVersion.createdAt,
|
||||
}
|
||||
}
|
||||
|
||||
if (Settings.devToolbar.enabled) {
|
||||
info.active = currentVersion.active
|
||||
info.variants = currentVersion.variants.map(variant => ({
|
||||
|
||||
Reference in New Issue
Block a user