[web] Add split test for defaulting LaTeX beginners to visual mode (#19745)

GitOrigin-RevId: 4dff08f0f7f413ba3cdacbe46cf7493eca47657d
This commit is contained in:
Domagoj Kriskovic 2024-08-01 15:04:45 +02:00 committed by Copybot
parent 0766c91079
commit 55d0f51279

View file

@ -340,6 +340,7 @@ const _ProjectController = {
!anonymous && 'writefull-oauth-promotion',
'ieee-stylesheet',
'write-and-cite',
'default-visual-for-beginners',
].filter(Boolean)
const getUserValues = async userId =>
@ -733,7 +734,12 @@ const _ProjectController = {
hasTrackChangesFeature: Features.hasFeature('track-changes'),
projectTags,
linkSharingWarning: linkSharingChanges.variant === 'active',
usedLatex,
usedLatex:
// only use the usedLatex value if the split test is enabled
splitTestAssignments['default-visual-for-beginners']?.variant ===
'enabled'
? usedLatex
: null,
})
timer.done()
} catch (err) {