From e09f0398debe4d75217b2ae64a253afc41ddfdb9 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 20 Jun 2024 13:03:30 +0100 Subject: [PATCH] Merge pull request #19007 from overleaf/ai-error-assistant-updates Updates to the AI error assistant GitOrigin-RevId: 6ca708b97a7eda81618abf3006b4bcc8d46f3dd4 --- services/web/frontend/extracted-translations.json | 2 ++ .../js/features/pdf-preview/components/pdf-log-entry.jsx | 8 +++++--- services/web/locales/en.json | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index a4a835c23e..26fae4461b 100644 --- a/services/web/frontend/extracted-translations.json +++ b/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": "", diff --git a/services/web/frontend/js/features/pdf-preview/components/pdf-log-entry.jsx b/services/web/frontend/js/features/pdf-preview/components/pdf-log-entry.jsx index 8ee421ad7c..ffe5458107 100644 --- a/services/web/frontend/js/features/pdf-preview/components/pdf-log-entry.jsx +++ b/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() + } } }) } diff --git a/services/web/locales/en.json b/services/web/locales/en.json index d3c41640cd..39695834ca 100644 --- a/services/web/locales/en.json +++ b/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": "Go back 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>__featureType__ 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.",