mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 21:23:45 +01:00
Merge pull request #28597 from overleaf/mj-auto-collapse-timeout-messages-when-error-state-present
[web] Avoid double compile time paywall GitOrigin-RevId: f732006f92ff0029c2f69297f43b9ca441994145
This commit is contained in:
committed by
Copybot
parent
5c6d6888f2
commit
e9e9ecfff6
+5
-2
@@ -14,6 +14,7 @@ import {
|
||||
import {
|
||||
isNewUser,
|
||||
useIsNewEditorEnabled,
|
||||
useIsNewErrorLogsPositionEnabled,
|
||||
} from '@/features/ide-redesign/utils/new-editor-utils'
|
||||
import { getSplitTestVariant } from '@/utils/splitTestUtils'
|
||||
|
||||
@@ -78,6 +79,7 @@ const CompileTimeout = memo(function CompileTimeout({
|
||||
segmentation,
|
||||
}: CompileTimeoutProps) {
|
||||
const { t } = useTranslation()
|
||||
const newLogsPosition = useIsNewErrorLogsPositionEnabled()
|
||||
|
||||
const extraSearchParams = useMemo(() => {
|
||||
if (!isNewUser()) {
|
||||
@@ -97,7 +99,7 @@ const CompileTimeout = memo(function CompileTimeout({
|
||||
|
||||
return (
|
||||
<PdfLogEntry
|
||||
autoExpand
|
||||
autoExpand={!newLogsPosition}
|
||||
headerTitle={t('your_compile_timed_out')}
|
||||
formattedContent={
|
||||
getMeta('ol-ExposedSettings').enableSubscriptions && (
|
||||
@@ -159,6 +161,7 @@ const PreventTimeoutHelpMessage = memo(function PreventTimeoutHelpMessage({
|
||||
}: PreventTimeoutHelpMessageProps) {
|
||||
const { t } = useTranslation()
|
||||
const { sendEvent } = useEditorAnalytics()
|
||||
const newLogsPosition = useIsNewErrorLogsPositionEnabled()
|
||||
|
||||
function sendInfoClickEvent() {
|
||||
sendEvent('paywall-info-click', {
|
||||
@@ -181,7 +184,7 @@ const PreventTimeoutHelpMessage = memo(function PreventTimeoutHelpMessage({
|
||||
|
||||
return (
|
||||
<PdfLogEntry
|
||||
autoExpand
|
||||
autoExpand={!newLogsPosition}
|
||||
headerTitle={t('reasons_for_compile_timeouts')}
|
||||
formattedContent={
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user