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={ -