diff --git a/services/web/app/src/Features/Project/ProjectController.mjs b/services/web/app/src/Features/Project/ProjectController.mjs index 2643b1d101..5f624a757b 100644 --- a/services/web/app/src/Features/Project/ProjectController.mjs +++ b/services/web/app/src/Features/Project/ProjectController.mjs @@ -405,6 +405,7 @@ const _ProjectController = { 'editor-redesign-new-users', 'writefull-frontend-migration', 'chat-edit-delete', + 'compile-timeout-remove-info', ].filter(Boolean) const getUserValues = async userId => diff --git a/services/web/frontend/js/features/ide-redesign/components/pdf-preview/pdf-error-state/compile-timeout-error-state.tsx b/services/web/frontend/js/features/ide-redesign/components/pdf-preview/pdf-error-state/compile-timeout-error-state.tsx index ee8a173221..b7e5dfda9c 100644 --- a/services/web/frontend/js/features/ide-redesign/components/pdf-preview/pdf-error-state/compile-timeout-error-state.tsx +++ b/services/web/frontend/js/features/ide-redesign/components/pdf-preview/pdf-error-state/compile-timeout-error-state.tsx @@ -12,12 +12,15 @@ import { isNewUser, useIsNewEditorEnabled, } from '@/features/ide-redesign/utils/new-editor-utils' -import { getSplitTestVariant } from '@/utils/splitTestUtils' +import { getSplitTestVariant, isSplitTestEnabled } from '@/utils/splitTestUtils' export const ShortCompileTimeoutErrorState = () => { const { t } = useTranslation() const { isProjectOwner } = useCompileContext() const newEditor = useIsNewEditorEnabled() + const shouldHideCompileTimeoutInfo = isSplitTestEnabled( + 'compile-timeout-remove-info' + ) const { compileTimeout } = getMeta('ol-compileSettings') const segmentation = useMemo( @@ -79,9 +82,11 @@ export const ShortCompileTimeoutErrorState = () => { } iconType="running_with_errors" extraContent={ -
- -
+ !shouldHideCompileTimeoutInfo && ( +
+ +
+ ) } actions={ isProjectOwner && ( diff --git a/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-prompt-new.tsx b/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-prompt-new.tsx index dbe75be19c..1e3a632d8f 100644 --- a/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-prompt-new.tsx +++ b/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-prompt-new.tsx @@ -13,7 +13,7 @@ import { useIsNewEditorEnabled, useIsNewErrorLogsPositionEnabled, } from '@/features/ide-redesign/utils/new-editor-utils' -import { getSplitTestVariant } from '@/utils/splitTestUtils' +import { getSplitTestVariant, isSplitTestEnabled } from '@/utils/splitTestUtils' function TimeoutUpgradePromptNew() { const { @@ -23,6 +23,9 @@ function TimeoutUpgradePromptNew() { isProjectOwner, } = useDetachCompileContext() const newEditor = useIsNewEditorEnabled() + const shouldHideCompileTimeoutInfo = isSplitTestEnabled( + 'compile-timeout-remove-info' + ) const { enableStopOnFirstError } = useStopOnFirstError({ eventSource: 'timeout-new', @@ -55,12 +58,15 @@ function TimeoutUpgradePromptNew() { isProjectOwner={isProjectOwner} segmentation={sharedSegmentation} /> - {getMeta('ol-ExposedSettings').enableSubscriptions && ( - - )} + {getMeta('ol-ExposedSettings').enableSubscriptions && + !shouldHideCompileTimeoutInfo && ( + + )} ) }