feat: implement page-specific interactive 'Getting started' tour#559
feat: implement page-specific interactive 'Getting started' tour#559J08nY wants to merge 2 commits intocrocs-muni:pagefrom
Conversation
There was a problem hiding this comment.
Pull request overview
Implements a page-specific “Getting started” guided tour across the site using Driver.js, with per-page step definitions in Jinja templates and a global navbar “Tour” trigger.
Changes:
- Added Driver.js (JS/CSS) to the global static library bundle and introduced a shared tour runner (
static/tour.js). - Added a navbar “Tour” button that is enabled only when
window.tourStepsis present on the page. - Defined
window.tourStepsfor home, CC/FIPS/PP search pages, and CC/FIPS/PP entry pages.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
sec_certs_page/templates/common/base.html.jinja2 |
Adds Driver.js assets, loads the tour runner, and introduces the navbar tour trigger UI. |
sec_certs_page/static/tour.js |
Implements the generic tour runner (enable/disable button, start tour, URL auto-trigger). |
sec_certs_page/static/lib/driver.js |
Adds the Driver.js library to static assets. |
sec_certs_page/static/lib/driver.css |
Adds Driver.js styles to static assets. |
sec_certs_page/templates/index.html.jinja2 |
Adds element IDs for targeting + defines homepage tour steps. |
sec_certs_page/templates/cc/search/base.html.jinja2 |
Defines CC search page tour steps. |
sec_certs_page/templates/fips/search/base.html.jinja2 |
Defines FIPS search page tour steps. |
sec_certs_page/templates/pp/search/base.html.jinja2 |
Defines PP search page tour steps. |
sec_certs_page/templates/cc/entry/index.html.jinja2 |
Defines CC entry page tour steps. |
sec_certs_page/templates/fips/entry/index.html.jinja2 |
Defines FIPS entry page tour steps. |
sec_certs_page/templates/pp/entry/index.html.jinja2 |
Defines PP entry page tour steps. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Cool! I'll look into this with Mariia in the following days so she can review it from her perspective. |
|
It is a very rough sketch. Ideally a human will create the actual tours. I just wanted to put in the framework. |
|
Yeah, I get it. Thanks a lot for kicking this off |
This pull request implements a page-specific interactive 'Getting started' tour using Driver.js.
Key Features:
Implementation Details: