mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
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:
committed by
Copybot
parent
eed92fc845
commit
51afc7d85e
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user