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

This commit is contained in:
2026-07-25 23:59:51 -04:00
parent 8e4f89f4ec
commit 96992cf918
8 changed files with 174 additions and 18 deletions
+4 -2
View File
@@ -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)