Merge pull request #27128 from overleaf/mj-ide-tooltip-teardown

[web] Editor Redesign: Tear down editor nudge tooltips

GitOrigin-RevId: 83c412ad782d041c960eba8533ffc49935524b9c
This commit is contained in:
David
2025-07-15 09:58:30 +01:00
committed by Copybot
parent ce56a79603
commit 567a9508cb
5 changed files with 2 additions and 45 deletions
@@ -351,8 +351,6 @@ const _ProjectController = {
'word-count-client',
'editor-popup-ux-survey',
'new-editor-error-logs-redesign',
'ide-redesign-experiment-nudge',
'ide-redesign-new-survey-prompt',
].filter(Boolean)
const getUserValues = async userId =>
@@ -442,7 +442,6 @@
"doing_this_will_verify_affiliation_and_allow_log_in_2": "",
"done": "",
"dont_forget_you_currently_have": "",
"dont_miss_out_on_the_updated_editor": "",
"dont_reload_or_close_this_tab": "",
"double_clicking_on_the_pdf_shows": "",
"download": "",
@@ -780,7 +779,6 @@
"hotkey_toggle_track_changes": "",
"hotkey_undo": "",
"hotkeys": "",
"how_are_you_finding_the_updates_to_the_new_editor": "",
"how_it_works": "",
"how_many_licenses_do_you_want_to_buy": "",
"how_to_create_tables": "",
@@ -1737,7 +1735,6 @@
"take_short_survey": "",
"take_survey": "",
"tell_the_project_owner_and_ask_them_to_upgrade": "",
"tell_us_what_you_think": "",
"template": "",
"template_description": "",
"template_title_taken_from_project_title": "",
@@ -2081,7 +2078,6 @@
"were_performing_maintenance": "",
"were_redesigning_our_editor_to_make_it_easier_to_use": "",
"were_reducing_compile_timeout": "",
"weve_been_making_changes_and_improvements_why_not_give_it_a_try": "",
"what_did_you_find_most_helpful": "",
"what_do_you_need_help_with": "",
"what_does_this_mean": "",
@@ -1,19 +1,13 @@
import { useCallback, useRef } from 'react'
import { useCallback } from 'react'
import OLButton from '../ui/components/ol/ol-button'
import { useIdeRedesignSwitcherContext } from '../ide-react/context/ide-redesign-switcher-context'
import MaterialIcon from '@/shared/components/material-icon'
import { useTranslation } from 'react-i18next'
import TooltipPromotion from '../ide-redesign/components/tooltip-promo'
const TUTORIAL_KEY = 'try-redesign-again-nudge-promo'
const EVENT_DATA = { name: 'try-redesign-again-nudge-promotion' }
const TryNewEditorButton = () => {
const { t } = useTranslation()
const { setShowSwitcherModal } = useIdeRedesignSwitcherContext()
const switcherButtonRef = useRef(null)
const onClick = useCallback(() => {
setShowSwitcherModal(true)
}, [setShowSwitcherModal])
@@ -25,21 +19,9 @@ const TryNewEditorButton = () => {
size="sm"
leadingIcon={<MaterialIcon type="experiment" unfilled />}
variant="secondary"
ref={switcherButtonRef}
>
{t('try_the_new_editor')}
</OLButton>
<TooltipPromotion
target={switcherButtonRef.current}
splitTestName="ide-redesign-experiment-nudge"
tutorialKey={TUTORIAL_KEY}
eventData={EVENT_DATA}
className="toolbar-experiment-tooltip"
header={t('dont_miss_out_on_the_updated_editor')}
content={t(
'weve_been_making_changes_and_improvements_why_not_give_it_a_try'
)}
/>
</div>
)
}
@@ -2,13 +2,9 @@ import { useIdeRedesignSwitcherContext } from '@/features/ide-react/context/ide-
import OLButton from '@/features/ui/components/ol/ol-button'
import OLTooltip from '@/features/ui/components/ol/ol-tooltip'
import MaterialIcon from '@/shared/components/material-icon'
import { useCallback, useRef } from 'react'
import { useCallback } from 'react'
import { useTranslation } from 'react-i18next'
import { useSurveyUrl } from '../../hooks/use-survey-url'
import TooltipPromotion from '../tooltip-promo'
const TUTORIAL_KEY = 'ide-redesign-new-survey-promo'
const EVENT_DATA = { name: 'ide-redesign-new-survey-promotion' }
export const LabsActions = () => {
const { t } = useTranslation()
@@ -17,7 +13,6 @@ export const LabsActions = () => {
setShowSwitcherModal(true)
}, [setShowSwitcherModal])
const surveyURL = useSurveyUrl()
const feedbackLinkRef = useRef<HTMLAnchorElement>(null)
return (
<>
@@ -42,7 +37,6 @@ export const LabsActions = () => {
</div>
<div className="ide-redesign-toolbar-button-container">
<a
ref={feedbackLinkRef}
href={surveyURL}
rel="noopener noreferrer"
target="_blank"
@@ -50,15 +44,6 @@ export const LabsActions = () => {
>
{t('give_feedback')}
</a>
<TooltipPromotion
target={feedbackLinkRef.current}
splitTestName="ide-redesign-new-survey-prompt"
content={t('tell_us_what_you_think')}
header={t('how_are_you_finding_the_updates_to_the_new_editor')}
eventData={EVENT_DATA}
tutorialKey={TUTORIAL_KEY}
placement="bottom"
/>
</div>
</>
)
-4
View File
@@ -575,7 +575,6 @@
"done": "Done",
"dont_forget_you_currently_have": "Dont forget, you currently have:",
"dont_have_account": "Dont have an account?",
"dont_miss_out_on_the_updated_editor": "Dont miss out on the updated editor",
"dont_reload_or_close_this_tab": "Dont reload or close this tab.",
"double_clicking_on_the_pdf_shows": "Double clicking on the PDF shows the corresponding location in code. Added word count (7 May 2025)",
"download": "Download",
@@ -1000,7 +999,6 @@
"hotkey_toggle_track_changes": "Toggle track changes",
"hotkey_undo": "Undo",
"hotkeys": "Hotkeys",
"how_are_you_finding_the_updates_to_the_new_editor": "How are you finding the updates to the new editor?",
"how_it_works": "How it works",
"how_many_licenses_do_you_want_to_buy": "How many licenses do you want to buy?",
"how_many_users_do_you_need": "How many users do you need?",
@@ -2237,7 +2235,6 @@
"take_short_survey": "Take a short survey",
"take_survey": "Take survey",
"tell_the_project_owner_and_ask_them_to_upgrade": "<0>Tell the project owner</0> and ask them to upgrade their Overleaf plan if you need more compile time.",
"tell_us_what_you_think": "Tell us what you think",
"template": "Template",
"template_approved_by_publisher": "This template has been approved by the publisher",
"template_description": "Template Description",
@@ -2628,7 +2625,6 @@
"were_performing_maintenance": "Were performing maintenance on Overleaf and you need to wait a moment. Sorry for any inconvenience. The editor will refresh automatically in __seconds__ seconds.",
"were_redesigning_our_editor_to_make_it_easier_to_use": "Were redesigning our editor to make it easier to use and ensure its future ready. Try it out and give us your feedback to help us get this right. (Some features are still in the works, so you can switch back at any time.)",
"were_reducing_compile_timeout": "Were in the process of <0>reducing the compile timeout limit</0> on our free plan, which may affect your project in future.",
"weve_been_making_changes_and_improvements_why_not_give_it_a_try": "Weve been making changes and improvements. Why not give it a try?",
"what_did_you_find_most_helpful": "What did you find most helpful?",
"what_do_you_need": "What do you need?",
"what_do_you_need_help_with": "What do you need help with?",