Merge pull request #31862 from overleaf/mj-system-theme-split-test-dates

[web] Update dates for system theme split test

GitOrigin-RevId: 735b99e234d7613e057947d70ca8e2d8364e30aa
This commit is contained in:
Mathias Jakobsen
2026-02-27 10:06:37 +00:00
committed by Copybot
parent eed92fc845
commit 51afc7d85e
3 changed files with 5 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ async function getEnableNewEditorLegacyDefault(req, res, user) {
return false
}
const SYSTEM_THEME_USER_CUTOFF_DATE = new Date(Date.UTC(2026, 1, 15, 12, 0, 0)) // 12pm GMT on February 15, 2026
const SYSTEM_THEME_USER_CUTOFF_DATE = new Date(Date.UTC(2026, 2, 2, 12, 0, 0)) // 12pm GMT on March 2, 2026
async function getOverallTheme(req, res, user) {
if (user.ace.overallTheme != null) {

View File

@@ -6,8 +6,7 @@ import { useActiveOverallTheme } from '@/shared/hooks/use-active-overall-theme'
import { Overlay, Popover } from 'react-bootstrap'
import { useTranslation } from 'react-i18next'
// TODO: Update this before release
const NEW_USER_CUTOFF_DATE = new Date('2026-02-15')
const SYSTEM_THEME_USER_CUTOFF_DATE = new Date(Date.UTC(2026, 2, 2, 12, 0, 0)) // 12pm GMT on March 2, 2026
type ThemedProjectDashboardNotificationProps = {
target: HTMLElement | null
@@ -25,7 +24,7 @@ export const ThemedProjectDashboardNotification = ({
} = useUserSettingsContext()
const { signUpDate: signUpDateString } = useUserContext()
const signUpDate = signUpDateString ? new Date(signUpDateString) : new Date(0)
const isNewUser = signUpDate > NEW_USER_CUTOFF_DATE
const isNewUser = signUpDate >= SYSTEM_THEME_USER_CUTOFF_DATE
const { t } = useTranslation()
if (!target) {

View File

@@ -50,7 +50,7 @@ describe('UserSettingsHelper', function () {
beforeEach(async function (ctx) {
const user = {
ace: {},
signUpDate: new Date('2026-02-16T00:00:00Z'),
signUpDate: new Date('2027-02-16T00:00:00Z'),
}
ctx.SplitTestHandler.promises.getAssignment
@@ -79,7 +79,7 @@ describe('UserSettingsHelper', function () {
beforeEach(async function (ctx) {
const user = {
ace: {},
signUpDate: new Date('2026-02-16T00:00:00Z'),
signUpDate: new Date('2027-02-16T00:00:00Z'),
}
ctx.SplitTestHandler.promises.getAssignment