feat(tutorial): enhance tutorial flow and add tests for help button functionality
Chore App Build, Test, and Push Docker Images / build-and-push (push) Has been cancelled
Chore App Build, Test, and Push Docker Images / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { activeStep, maybeShow, clearChainProgress, modalTutorialStepId, helpButtonHidden } from './controller'
|
||||
import { activeStep, maybeShow, clearChainProgress, modalTutorialStepId, helpButtonHidden, sessionSkipped } from './controller'
|
||||
|
||||
// Map route names to the tutorial step that should re-fire when the user taps `?`.
|
||||
// Keep this list lean — only routes that have a tutorial step actually wired.
|
||||
@@ -65,7 +65,9 @@ function onClick() {
|
||||
if (!id) return
|
||||
// Clear any active step so the manual re-fire wins.
|
||||
activeStep.value = null
|
||||
// Temporarily clear local "seen" for the whole chain so every step replays.
|
||||
// A previous Cancel/Skip would otherwise permanently block manual help.
|
||||
sessionSkipped.value = false
|
||||
// Temporarily clear local "seen" state for the whole chain so every step replays.
|
||||
// The server state is left alone; on dismiss `markStepSeen` simply no-ops.
|
||||
clearChainProgress(id)
|
||||
maybeShow(id, null, true)
|
||||
|
||||
Reference in New Issue
Block a user