feat(tutorial): update tutorial labels and modal titles to improve clarity
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 3m12s
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 3m12s
- Changed "Skip tour" button to "Cancel" in various tutorial overlays. - Updated modal titles from "Confirm Task" to "Confirm Penalty" where applicable. - Modified tutorial step call-to-action labels from "Got it" and "Next" to "Continue" for consistency. - Added tests for new tutorial overlay behavior and button interactions. - Refactored tutorial controller to allow ignoring tutorial enabled state in step visibility checks. - Enhanced user profile tutorial restart functionality with appropriate modal messages. - Updated user profile and task confirmation dialog components to reflect new titles and messages. - Adjusted configuration files for local development environments.
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, tutorialEnabled, clearChainProgress, modalTutorialStepId, helpButtonHidden } from './controller'
|
||||
import { activeStep, maybeShow, clearChainProgress, modalTutorialStepId, helpButtonHidden } 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.
|
||||
@@ -57,7 +57,6 @@ const targetStepId = computed<string | null>(() => {
|
||||
|
||||
const visible = computed(() => {
|
||||
if (helpButtonHidden.value) return false
|
||||
if (!tutorialEnabled.value) return false
|
||||
return targetStepId.value !== null
|
||||
})
|
||||
|
||||
@@ -69,7 +68,7 @@ function onClick() {
|
||||
// Temporarily clear local "seen" for the whole chain so every step replays.
|
||||
// The server state is left alone; on dismiss `markStepSeen` simply no-ops.
|
||||
clearChainProgress(id)
|
||||
maybeShow(id)
|
||||
maybeShow(id, null, true)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user