feat: Onboarding-Tour um Benutzerprofil erweitern
Profil-Schritte auf dem Dashboard und in den Einstellungen, entry_open highlightet nur die Karte ohne Editor, Finish verweist auf Benutzerprofil. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import { X, ChevronLeft, ChevronRight } from 'lucide-react'
|
||||
import {
|
||||
getTourStepCopy,
|
||||
getTourTargetSelector,
|
||||
getTourTargetRetryDelay,
|
||||
isCenteredTourStep,
|
||||
useAppTour
|
||||
} from '../context/AppTourContext.tsx'
|
||||
@@ -89,10 +90,15 @@ export default function AppTourOverlay() {
|
||||
updateSpotlight()
|
||||
window.addEventListener('resize', updateSpotlight)
|
||||
window.addEventListener('scroll', updateSpotlight, true)
|
||||
const timer = window.setTimeout(updateSpotlight, 120)
|
||||
const retryDelay = getTourTargetRetryDelay(currentStepId)
|
||||
const timer = window.setTimeout(updateSpotlight, retryDelay)
|
||||
const retryTimer = retryDelay > 120
|
||||
? window.setTimeout(updateSpotlight, retryDelay + 180)
|
||||
: undefined
|
||||
|
||||
return () => {
|
||||
window.clearTimeout(timer)
|
||||
if (retryTimer !== undefined) window.clearTimeout(retryTimer)
|
||||
window.removeEventListener('resize', updateSpotlight)
|
||||
window.removeEventListener('scroll', updateSpotlight, true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user