Skip to content

Fixes for UI Tour#1429

Merged
Azgaar merged 12 commits into
Azgaar:masterfrom
JoeMcMahon87:master
May 12, 2026
Merged

Fixes for UI Tour#1429
Azgaar merged 12 commits into
Azgaar:masterfrom
JoeMcMahon87:master

Conversation

@JoeMcMahon87
Copy link
Copy Markdown
Contributor

Description

  1. Updated styling of the UI Tour button to match the Chatbot button
  2. Added keyboard navigation (up/left goes back, and down/right goes forward)
  3. Changed title to black on tour panel title
  4. Fixed behavior of tour when going backwards so the underlying UI matches panel

Addresses bugs #1421 and #1422

Copilot AI review requested due to automatic review settings May 8, 2026 20:01
@netlify
Copy link
Copy Markdown

netlify Bot commented May 8, 2026

Deploy Preview for afmg ready!

Name Link
🔨 Latest commit c150e1c
🔍 Latest deploy log https://app.netlify.com/projects/afmg/deploys/6a03286b1d052800081bac9a
😎 Deploy Preview https://deploy-preview-1429--afmg.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
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

Comment thread src/modules/ui-tour.ts Outdated
Comment on lines +6 to +13
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);
Comment thread src/modules/ui-tour.ts Outdated
Comment thread public/index.css
Comment thread src/index.html
JoeMcMahon87 and others added 2 commits May 8, 2026 16:07
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Azgaar
Copy link
Copy Markdown
Owner

Azgaar commented May 11, 2026

Thanks. It looks driverjs has a built-in way to allow keyboard navigation and colors, why do we need to build our own?

@JoeMcMahon87
Copy link
Copy Markdown
Contributor Author

Ok, will look at that

@JoeMcMahon87
Copy link
Copy Markdown
Contributor Author

@Azgaar - the lint error is in the river generator - not anything I touched.

@Azgaar
Copy link
Copy Markdown
Owner

Azgaar commented May 12, 2026

No worries.

@Azgaar Azgaar merged commit a6b0453 into Azgaar:master May 12, 2026
6 of 7 checks passed
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.

3 participants