Skip to content

Update tutorial buttons and focus styling - #127

Merged
azayrahmad merged 1 commit into
mainfrom
update-tour-buttons-12346915366510469433
Mar 31, 2026
Merged

azayrahmad merged 1 commit into
mainfrom
update-tour-buttons-12346915366510469433

Conversation

@azayrahmad

Copy link
Copy Markdown
Owner

I have updated the guided tour to use more descriptive action buttons ("Continue", "Finish", and "Stop") instead of the generic "OK". These buttons now include the standard bullet icon.

Technically, I've enhanced the DialogManager to support auto-focusing the first button in a dialog, which fulfills the requirement for the default button to be automatically focused. I also introduced a <span> wrapper for button labels to allow for a dashed border to be styled tightly around the text upon focus, mirroring the visual feedback used for choice items in the agent's balloon.

Verification was performed using Playwright to capture screenshots and videos of the tour steps, confirming the correct labels, icons, focus behavior, and styling. Existing unit tests for DialogManager and Balloon also pass.


PR created automatically by Jules for task 12346915366510469433 started by @azayrahmad

@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Modified `TourManager.ts` to replace "OK" buttons with "Continue", "Finish", and "Stop" buttons using bullet icons.
- Implemented "Stop" button logic in `TourManager.ts` to terminate the tour early.
- Updated `DialogManager.ts` to wrap button text labels in `<span class="button-label">` and automatically focus the first button.
- Enhanced `Renderer.ts` CSS to apply a dashed focus border only to the `.button-label` span, preventing it from affecting the bullet icon sprite.

Co-Authored-By: azayrahmad <10110227+azayrahmad@users.noreply.github.com>
@azayrahmad
azayrahmad force-pushed the update-tour-buttons-12346915366510469433 branch from 08fb35a to 885cc95 Compare March 31, 2026 05:16
@azayrahmad
azayrahmad merged commit 167b8f9 into main Mar 31, 2026
1 check passed
@azayrahmad
azayrahmad deleted the update-tour-buttons-12346915366510469433 branch March 31, 2026 05:18
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.

1 participant