Merge pull request #9538 from overleaf/ta-galileo-week5

Galileo Week5 Pack

GitOrigin-RevId: 8a72efd15ec59955c2fa3a0f1e5d38fb200f018f
This commit is contained in:
Timothée Alby 2022-09-13 09:55:41 +02:00 committed by Copybot
parent 19c73cbd73
commit 687ce143f3
3 changed files with 31 additions and 13 deletions

View file

@ -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": "",

View file

@ -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,
]
)

View file

@ -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",