Ver Fonte

Merge pull request #26471 from overleaf/dp-update-editor-switcher-modal

Add line about new error logs to editor switcher modal

GitOrigin-RevId: 13ca361060ab1e9144c3a3d4ebc1fc487e6a8895
David há 1 ano atrás
pai
commit
90309f59ae

+ 1 - 0
services/web/frontend/extracted-translations.json

@@ -1076,6 +1076,7 @@
   "neither_agree_nor_disagree": "",
   "new_compile_domain_notice": "",
   "new_create_tables_and_equations": "",
+  "new_error_logs_panel": "",
   "new_file": "",
   "new_folder": "",
   "new_font_open_dyslexic": "",

+ 4 - 0
services/web/frontend/js/features/ide-redesign/components/switcher-modal/modal.tsx

@@ -15,6 +15,7 @@ import Notification from '@/shared/components/notification'
 import { useSwitchEnableNewEditorState } from '../../hooks/use-switch-enable-new-editor-state'
 import { Trans, useTranslation } from 'react-i18next'
 import { useEditorAnalytics } from '@/shared/hooks/use-editor-analytics'
+import { useFeatureFlag } from '@/shared/context/split-test-context'
 import { useSurveyUrl } from '../../hooks/use-survey-url'
 
 export const IdeRedesignSwitcherModal = () => {
@@ -160,10 +161,13 @@ const SwitcherModalContentDisabled: FC<ModalContentProps> = ({
 
 const SwitcherWhatsNew = () => {
   const { t } = useTranslation()
+  const newErrorlogs = useFeatureFlag('new-editor-error-logs-redesign')
+
   return (
     <div className="ide-redesign-switcher-modal-whats-new">
       <h4>{t('latest_updates')}</h4>
       <ul>
+        {newErrorlogs && <li>{t('new_error_logs_panel')}</li>}
         <li>{t('searching_all_project_files_is_now_available')}</li>
         <li>{t('double_clicking_on_the_pdf_shows')}</li>
       </ul>

+ 1 - 0
services/web/locales/en.json

@@ -1408,6 +1408,7 @@
   "neither_agree_nor_disagree": "Neither agree nor disagree",
   "new_compile_domain_notice": "We’ve recently migrated PDF downloads to a new domain. Something might be blocking your browser from accessing that new domain, <0>__compilesUserContentDomain__</0>. This could be caused by network blocking or a strict browser plugin rule. Please follow our <1>troubleshooting guide</1>.",
   "new_create_tables_and_equations": "NEW! <sparkle/> Create tables and equations in seconds",
+  "new_error_logs_panel": "New error logs panel. Added ‘Go to location in code’ and ‘Go to location in PDF’ buttons (17 June 2025)",
   "new_file": "New file",
   "new_folder": "New folder",
   "new_font_open_dyslexic": "New font: OpenDyslexic Mono is designed to improve readability for those with dyslexia.",