diff --git a/services/web/app/src/Features/Project/ProjectController.js b/services/web/app/src/Features/Project/ProjectController.js index 2b55d500ee..4ba5fad2c5 100644 --- a/services/web/app/src/Features/Project/ProjectController.js +++ b/services/web/app/src/Features/Project/ProjectController.js @@ -608,7 +608,7 @@ const ProjectController = { SplitTestHandler.getAssignment( req, res, - 'writefull-integration', + 'writefull-oauth-promotion', cb ) } diff --git a/services/web/app/src/Features/Tutorial/TutorialController.js b/services/web/app/src/Features/Tutorial/TutorialController.js index 42058b00a9..5c5a3ba307 100644 --- a/services/web/app/src/Features/Tutorial/TutorialController.js +++ b/services/web/app/src/Features/Tutorial/TutorialController.js @@ -6,6 +6,7 @@ const VALID_KEYS = [ 'react-history-buttons-tutorial', 'table-generator-promotion', 'writefull-integration', + 'writefull-oauth-promotion', ] async function completeTutorial(req, res, next) { diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 49083ee906..61792892ae 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -1394,7 +1394,7 @@ "try_recompile_project_or_troubleshoot": "", "try_relinking_provider": "", "try_to_compile_despite_errors": "", - "try_writefull_for_free": "", + "try_writefull": "", "turn_off": "", "turn_off_link_sharing": "", "turn_on": "", @@ -1509,12 +1509,14 @@ "work_offline": "", "work_with_non_overleaf_users": "", "writefull": "", + "writefull_alternate_login_prompt": "", "writefull_disable_prompt_body": "", "writefull_learn_more": "", "writefull_loading_error_body": "", "writefull_loading_error_title": "", "writefull_prompt_body": "", "writefull_prompt_terms": "", + "writefull_prompt_terms_title": "", "writefull_prompt_title": "", "writefull_settings_description": "", "x_changes_in": "", diff --git a/services/web/frontend/stylesheets/components/notifications.less b/services/web/frontend/stylesheets/components/notifications.less index 8da642cb7d..1d5cea58df 100644 --- a/services/web/frontend/stylesheets/components/notifications.less +++ b/services/web/frontend/stylesheets/components/notifications.less @@ -97,6 +97,8 @@ } .notification-disclaimer { + color: @neutral-60; + font-size: @font-size-small; padding-bottom: 16px; } diff --git a/services/web/frontend/stylesheets/modules/writefull.less b/services/web/frontend/stylesheets/modules/writefull.less index b524aebf17..2770bbfba8 100644 --- a/services/web/frontend/stylesheets/modules/writefull.less +++ b/services/web/frontend/stylesheets/modules/writefull.less @@ -13,3 +13,11 @@ max-width: 520px; text-align: left; } + +.writefull-disclosure-summary { + display: flex; + align-items: center; + cursor: pointer; + color: @blue-50; + user-select: none; +} diff --git a/services/web/locales/en.json b/services/web/locales/en.json index b0fc92209b..70ba4eab3c 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -1991,7 +1991,7 @@ "try_recompile_project_or_troubleshoot": "Please try recompiling the project from scratch, and if that doesn’t help, follow our <0>troubleshooting guide.", "try_relinking_provider": "It looks like you need to re-link your __provider__ account.", "try_to_compile_despite_errors": "Try to compile despite errors", - "try_writefull_for_free": "Try Writefull for free", + "try_writefull": "Try Writefull", "turn_off": "Turn off", "turn_off_link_sharing": "Turn off link sharing", "turn_on": "Turn on", @@ -2138,13 +2138,15 @@ "work_with_non_overleaf_users": "Work with non Overleaf users", "would_you_like_to_see_a_university_subscription": "Would you like to see a university-wide __appName__ subscription at your university?", "writefull": "Writefull", + "writefull_alternate_login_prompt": "If you have a Writefull account, <0>log in to get started. If you don’t have a Writefull account, we’ll create one for you. By enabling Writefull, you accept Writefull’s <1>terms of service and <2>privacy policy.", "writefull_disable_prompt_body": "Writefull is enabled. You can switch it on or off in the account settings anytime.", "writefull_learn_more": "Learn more about Writefull for Overleaf", "writefull_loading_error_body": "Try refreshing the page. If this doesn’t work, try disabling any active browser extensions to check they aren’t blocking Writefull from loading.", "writefull_loading_error_title": "Writefull didn’t load correctly", - "writefull_prompt_body": "Turn on the new Writefull integration to get free AI-powered language feedback specifically tailored to research writing.", - "writefull_prompt_terms": "[COPY NOT FINAL] By trying Writefull you agree to their <0>terms of service and <1>privacy policy. If you already have a Writefull account, you can <2>log in to it. If not, we’ll create one for you as <3>__email__.", - "writefull_prompt_title": "AI writing assistance in Overleaf", + "writefull_prompt_body": "Get Writefull’s research-tailored, AI-powered language feedback and LaTeX help directly in Overleaf.", + "writefull_prompt_terms": "When you click <0>Try Writefull, your email address and Overleaf user ID will be shared with Writefull. This will either link your Overleaf and Writefull accounts (if you have both with the same email address) or it’ll create a new Writefull account for you.<1> When enabled, Writefull has access to the content of any project you open, so you can get AI language feedback and suggestions. Read more about <2>Writefull for Overleaf.", + "writefull_prompt_terms_title": "What data is shared with Writefull?", + "writefull_prompt_title": "Accelerate your writing process with AI", "writefull_settings_description": "Get free AI-based language feedback specifically tailored for research writing with Writefull for Overleaf.", "x_changes_in": "__count__ change in", "x_changes_in_plural": "__count__ changes in",