feat(devtools): add reset guided tour prompts toggle #250

Open
opened 2026-06-23 16:49:19 +00:00 by jmiller · 1 comment
Owner

Reset Guided Tour Prompts

Overview

One-shot toggle in DevTools plugin settings to reset all MokoSuite guided tour completion flags, allowing tours to re-trigger for all users.

Features

  • Reset Tour Prompts — radio toggle (Yes/No, default No) in DevTools basic fieldset
  • One-shot behavior: resets on save, automatically turns back off (same pattern as reset_hits and delete_versions)
  • Clears completion records from #__user_profiles where profile_key LIKE 'guidedtours.tour%mokosuite%'
  • Useful for development, demos, and training new admins

Implementation

  • Add field to mokosuiteclient_devtools.xml:
<field name="reset_tour_prompts" type="radio" default="0"
    label="Reset Tour Prompts"
    description="One-shot: reset all MokoSuite guided tour completion flags on save."
    class="btn-group btn-group-yesno">
    <option value="1">JYES</option>
    <option value="0">JNO</option>
</field>
  • Handle in onExtensionAfterSave() alongside existing one-shot toggles
  • Query: DELETE FROM #__user_profiles WHERE profile_key LIKE 'guidedtours.tour%' (scoped to MokoSuite tours)

Related

  • Guided tours feature (#248)
## Reset Guided Tour Prompts ### Overview One-shot toggle in DevTools plugin settings to reset all MokoSuite guided tour completion flags, allowing tours to re-trigger for all users. ### Features - **Reset Tour Prompts** — radio toggle (Yes/No, default No) in DevTools basic fieldset - One-shot behavior: resets on save, automatically turns back off (same pattern as reset_hits and delete_versions) - Clears completion records from `#__user_profiles` where `profile_key LIKE 'guidedtours.tour%mokosuite%'` - Useful for development, demos, and training new admins ### Implementation - Add field to `mokosuiteclient_devtools.xml`: ```xml <field name="reset_tour_prompts" type="radio" default="0" label="Reset Tour Prompts" description="One-shot: reset all MokoSuite guided tour completion flags on save." class="btn-group btn-group-yesno"> <option value="1">JYES</option> <option value="0">JNO</option> </field> ``` - Handle in `onExtensionAfterSave()` alongside existing one-shot toggles - Query: `DELETE FROM #__user_profiles WHERE profile_key LIKE 'guidedtours.tour%'` (scoped to MokoSuite tours) ### Related - Guided tours feature (#248)
jmiller added this to the v03.00.00 milestone 2026-06-23 16:49:20 +00:00
Author
Owner

Branch created: feature/250-feat-devtools-add-reset-guided-tour-prom

git fetch origin
git checkout feature/250-feat-devtools-add-reset-guided-tour-prom
Branch created: [`feature/250-feat-devtools-add-reset-guided-tour-prom`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteClient/src/branch/feature/250-feat-devtools-add-reset-guided-tour-prom) ```bash git fetch origin git checkout feature/250-feat-devtools-add-reset-guided-tour-prom ```
Sign in to join this conversation.
No labels
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteClient#250