diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 776b35a5ca..6d317e74ce 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -155,6 +155,20 @@ "from_external_url": "", "from_provider": "", "full_doc_history": "", + "galileo_feedback_button": "", + "galileo_feedback_detail": "", + "galileo_feedback_intro": "", + "galileo_feedback_reason_incomplete": "", + "galileo_feedback_reason_incorrect": "", + "galileo_feedback_reason_not_relevant": "", + "galileo_feedback_reason_other": "", + "galileo_feedback_reasons": "", + "galileo_feedback_send_debug": "", + "galileo_feedback_send_debug_more": "", + "galileo_feedback_source": "", + "galileo_feedback_source_other": "", + "galileo_feedback_title": "", + "galileo_toogle_description": "", "generic_linked_file_compile_error": "", "generic_something_went_wrong": "", "get_collaborative_benefits": "", @@ -432,6 +446,7 @@ "select_from_source_files": "", "select_from_your_computer": "", "selected": "", + "send": "", "send_first_message": "", "sending": "", "server_error": "", diff --git a/services/web/frontend/js/shared/context/editor-context.js b/services/web/frontend/js/shared/context/editor-context.js index ae456f06e0..25fd71643e 100644 --- a/services/web/frontend/js/shared/context/editor-context.js +++ b/services/web/frontend/js/shared/context/editor-context.js @@ -36,7 +36,6 @@ EditorContext.Provider.propTypes = { showGalileo: PropTypes.bool, toggleGalileo: PropTypes.func, insertGalileoAutocomplete: PropTypes.func, - insertGalileoCiteAutocomplete: PropTypes.func, isProjectOwner: PropTypes.bool, isRestrictedTokenMember: PropTypes.bool, permissionsLevel: PropTypes.oneOf(['readOnly', 'readAndWrite', 'owner']), @@ -143,18 +142,10 @@ export function EditorProvider({ children, settings }) { ) }, []) - const insertGalileoAutocomplete = useCallback(text => { + const insertGalileoAutocomplete = useCallback(suggestion => { window.dispatchEvent( new CustomEvent('editor:insert-galileo-completion', { - detail: { text, cite: false }, - }) - ) - }, []) - - const insertGalileoCiteAutocomplete = useCallback(text => { - window.dispatchEvent( - new CustomEvent('editor:insert-galileo-completion', { - detail: { text, cite: true }, + detail: suggestion, }) ) }, []) @@ -174,7 +165,6 @@ export function EditorProvider({ children, settings }) { showGalileo, toggleGalileo, insertGalileoAutocomplete, - insertGalileoCiteAutocomplete, }), [ cobranding, @@ -189,7 +179,6 @@ export function EditorProvider({ children, settings }) { showGalileo, toggleGalileo, insertGalileoAutocomplete, - insertGalileoCiteAutocomplete, ] ) diff --git a/services/web/locales/en.json b/services/web/locales/en.json index bc42f6dcb8..01de78ff72 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -1736,6 +1736,20 @@ "you_get_access_to_info": "These features are available only to you (the subscriber).", "symbol_palette": "Symbol palette", "symbol_palette_info": "A quick and convenient way to insert math symbols into your document.", + "galileo_toogle_description": "Toggle Galileo", + "galileo_feedback_button": "Give feedback", + "galileo_feedback_title": "Galileo Feedback", + "galileo_feedback_intro": "We are working on improving Galileo, your feedback is very welcome. ", + "galileo_feedback_source": "Select a recent suggestion", + "galileo_feedback_source_other": "My feedback is not about a recent suggestion", + "galileo_feedback_reasons": "Choose a reason", + "galileo_feedback_reason_not_relevant": "Suggestion not relevant", + "galileo_feedback_reason_incorrect": "Suggestion incorrect", + "galileo_feedback_reason_incomplete": "Suggestion incomplete", + "galileo_feedback_reason_other": "Other", + "galileo_feedback_detail": "Tell us more", + "galileo_feedback_send_debug": "Share additional data", + "galileo_feedback_send_debug_more": "Share the part of your document that was used to generate the suggestion", "github_only_integration_lowercase": "GitHub integration", "github_only_integration_lowercase_info": "Link your Overleaf projects directly to a GitHub repository that acts as a remote repository for your overleaf project. This allows you to share with collaborators outside of Overleaf, and integrate Overleaf into more complex workflows.", "git_integration_lowercase": "Git integration",