Skip to content

fix(tour): improve shepherd tour step progress and navigation#764

Open
harsh-na wants to merge 5 commits intoaccordproject:mainfrom
harsh-na:harsh-na/i94/shepherd-tour-fix
Open

fix(tour): improve shepherd tour step progress and navigation#764
harsh-na wants to merge 5 commits intoaccordproject:mainfrom
harsh-na:harsh-na/i94/shepherd-tour-fix

Conversation

@harsh-na
Copy link

@harsh-na harsh-na commented Feb 28, 2026

Closes #763

This PR improves the Template Playground onboarding tour by adding a step progress indicator and Back button navigation to enhance the user experience.

Users can now clearly see how many steps remain in the tour and navigate backwards if needed.

Changes

  • Added dynamic step counter (current step / total steps) to all tour popups

  • Added Back button for all steps after the first step

  • Refactored Shepherd tour implementation to reduce code duplication

  • Improved popup layout with clean header and structured content

  • Standardized tour buttons (Back / Skip / Next / Finish)

  • Improved visual hierarchy for better readability

Flags

  • UI-only improvement — no functional changes to Template Playground
  • No breaking changes expected
  • Tour behavior remains backward compatible

Screenshots or Video

Before:

  • No indication of remaining steps

  • No backward navigation

image

After:

  • Step indicator (e.g. Step 3/15) visible in each popup

  • Back button available for navigation

image

Cleaner and more structured layout

Related Issues

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from fork:branchname

Signed-off-by: harshit <harshitgalaxy710@gmail.com>
@harsh-na harsh-na requested a review from a team as a code owner February 28, 2026 22:12
@netlify
Copy link

netlify bot commented Feb 28, 2026

Deploy Preview for ap-template-playground ready!

Name Link
🔨 Latest commit c3aef66
🔍 Latest deploy log https://app.netlify.com/projects/ap-template-playground/deploys/69a5a3f0eb98800008212c6a
😎 Deploy Preview https://deploy-preview-764--ap-template-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Member

@sanketshevkar sanketshevkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please break down the file in separate isolated files? Please create a new folder for all shephard tour related things like styles, components and utils.

Also make sure you have unit test coverage for all the files. Thanks!

harsh-na and others added 3 commits March 2, 2026 02:30
@harsh-na
Copy link
Author

harsh-na commented Mar 2, 2026

Hi @sanketshevkar, As suggested by you, I modularize the files, and also ensured unit Test coverage,
Please let me know, if anything else I can do,
Thanks

…tyles(build safe-css)

Signed-off-by: harshit <harshitgalaxy710@gmail.com>
@harsh-na
Copy link
Author

harsh-na commented Mar 5, 2026

Hi @sanketshevkar , Please review my PR, as it's been quiet long since I raised it,
Thanks

import { useEffect } from "react";
import { tour } from "../tour/tourConfig";
import "../styles/components/Tour.css";
const Tour = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels unnecessary, why do we need this?

Steps Test
-----------------------------*/

test("adds all 15 tour steps", () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think writing tests simply for the utility function should help. I don't see the need to create a dummy component and then import and export the utilities separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Guided Tour UX: Add Step Counter and Back Button Support

2 participants