Merge pull request #29821 from overleaf/dp-editor-redesign-opt-out

Prepare editor redesign for opt-out phase

GitOrigin-RevId: 5831970ff27e5c20f22c68b83471b6b832c2b2b4
This commit is contained in:
David
2025-12-03 09:05:48 +00:00
committed by Copybot
parent a1f1ca2028
commit 5982eed3fa
18 changed files with 372 additions and 35 deletions
@@ -4,15 +4,25 @@ import { UnsavedDocs } from '@/features/ide-react/components/unsaved-docs/unsave
import SystemMessages from '@/shared/components/system-messages'
import NewEditorPromoModal from '@/features/ide-redesign/components/new-editor-promo-modal'
import NewEditorIntroModal from '@/features/ide-redesign/components/new-editor-intro-modal'
import NewEditorOptOutIntroModal from '@/features/ide-redesign/components/new-editor-opt-out-intro-modal'
import { useFeatureFlag } from '@/shared/context/split-test-context'
export const Modals = memo(() => {
const isNewEditorOptOutStage = useFeatureFlag('editor-redesign-opt-out')
return (
<>
<ForceDisconnected />
<UnsavedDocs />
<SystemMessages />
<NewEditorPromoModal />
<NewEditorIntroModal />
{isNewEditorOptOutStage ? (
<NewEditorOptOutIntroModal />
) : (
<>
<NewEditorPromoModal />
<NewEditorIntroModal />
</>
)}
</>
)
})