Fixes for UI Tour#1429
Conversation
…hanged color of tour titles, fixed back nav issue
✅ Deploy Preview for afmg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR improves the UI Tour experience by aligning the tour prompt button styling with other UI controls, adding keyboard navigation, and tightening step state synchronization so that navigating backward restores the correct underlying UI state (addressing layout corruption issues reported in #1421 / #1422).
Changes:
- Updated the tour prompt button markup and CSS to use a button + SVG icon and refreshed positioning/shadows.
- Added custom keyboard navigation for the tour (arrow keys for previous/next, Esc to exit) and adjusted tour step hooks to better restore UI state when navigating backward.
- Expanded Playwright e2e coverage to validate backward navigation state restoration and to prevent the “toolsContent leak” regression when closing the tour early.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| tests/e2e/ui-tour.spec.ts | Adds extensive e2e regression coverage for backward navigation state restoration and early-close menu corruption scenarios. |
| src/modules/ui-tour.ts | Implements keyboard navigation handling, injects driver.js popover text styling, and adjusts step lifecycle hooks to keep UI state consistent when moving backward. |
| src/index.html | Updates the tour prompt button markup to a semantic <button> with an inline SVG icon. |
| public/index.css | Restyles the tour prompt button to match the app’s minimized button aesthetic and adds hover behavior for the SVG icon. |
| let stylesInjected = false; | ||
| function injectTourStyles(): void { | ||
| if (stylesInjected) return; | ||
| stylesInjected = true; | ||
| const style = document.createElement("style"); | ||
| style.textContent = | ||
| ".driver-popover-title,.driver-popover-description,.driver-popover-progress-text{color:#000!important}"; | ||
| document.head.appendChild(style); |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
Thanks. It looks driverjs has a built-in way to allow keyboard navigation and colors, why do we need to build our own? |
|
Ok, will look at that |
|
@Azgaar - the lint error is in the river generator - not anything I touched. |
|
No worries. |
Description
Addresses bugs #1421 and #1422