Эх сурвалжийг харах

Merge pull request #19007 from overleaf/ai-error-assistant-updates

Updates to the AI error assistant

GitOrigin-RevId: 6ca708b97a7eda81618abf3006b4bcc8d46f3dd4
Alf Eaton 2 жил өмнө
parent
commit
b66d45784a

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

@@ -507,6 +507,7 @@
   "github_workflow_files_delete_github_repo": "",
   "github_workflow_files_error": "",
   "give_feedback": "",
+  "give_your_feedback": "",
   "go_next_page": "",
   "go_page": "",
   "go_prev_page": "",
@@ -1370,6 +1371,7 @@
   "this_could_be_because_we_cant_support_some_elements_of_the_table": "",
   "this_field_is_required": "",
   "this_grants_access_to_features_2": "",
+  "this_is_a_labs_experiment": "",
   "this_project_exceeded_compile_timeout_limit_on_free_plan": "",
   "this_project_is_public": "",
   "this_project_is_public_read_only": "",

+ 5 - 3
services/web/frontend/js/features/pdf-preview/components/pdf-log-entry.jsx

@@ -54,10 +54,12 @@ function PdfLogEntry({
         window.addEventListener('editor:view-compile-log-entry', event => {
           if (event.detail.id === id) {
             element.scrollIntoView({ block: 'start', inline: 'nearest' })
-          }
 
-          if (event.detail.suggestFix) {
-            element.querySelector('button[data-action="suggest-fix"]')?.click()
+            if (event.detail.suggestFix) {
+              element
+                .querySelector('button[data-action="suggest-fix"]')
+                ?.click()
+            }
           }
         })
       }

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

@@ -749,6 +749,7 @@
   "github_workflow_files_delete_github_repo": "The repository has been created on GitHub but linking was unsuccessful. You will have to delete GitHub repository or choose a new name.",
   "github_workflow_files_error": "The __appName__ GitHub sync service couldn’t sync GitHub Workflow files (in .github/workflows/). Please authorize __appName__ to edit your GitHub workflow files and try again.",
   "give_feedback": "Give feedback",
+  "give_your_feedback": "give your feedback",
   "global": "global",
   "go_back_and_link_accts": "<a href=\"__link__\">Go back</a> and link your accounts",
   "go_next_page": "Go to Next Page",
@@ -1957,6 +1958,7 @@
   "this_could_be_because_we_cant_support_some_elements_of_the_table": "This could be because we can’t yet support some elements of the table in the table preview. Or there may be an error in the table’s LaTeX code.",
   "this_field_is_required": "This field is required",
   "this_grants_access_to_features_2": "This grants you access to <0>__appName__</0> <0>__featureType__</0> features.",
+  "this_is_a_labs_experiment": "This is a Labs experiment",
   "this_is_your_template": "This is your template from your project",
   "this_project_exceeded_compile_timeout_limit_on_free_plan": "This project exceeded the compile timeout limit on our free plan.",
   "this_project_is_public": "This project is public and can be edited by anyone with the URL.",