Skip to content

🎨 Palette: Add animation and accessibility hints to Diagnostics buttons - #1815

Open
emkey1 wants to merge 4 commits into
develfrom
palette/diagnostic-button-ux-10379285221612358816
Open

🎨 Palette: Add animation and accessibility hints to Diagnostics buttons#1815
emkey1 wants to merge 4 commits into
develfrom
palette/diagnostic-button-ux-10379285221612358816

Conversation

@emkey1

@emkey1 emkey1 commented Jul 30, 2026

Copy link
Copy Markdown
Owner

💡 What: Added smooth transition animations to the transient UI states of the "Copy Report" and "Run Diagnostics" buttons in AppDiagnosticsView.swift. Additionally, I added .accessibilityLabel and .accessibilityHint modifiers to properly support VoiceOver.

🎯 Why: Previously, when users tapped these buttons, the text would snap abruptly (e.g., "Copy Report" -> "Copied" and back) which felt unpolished. Furthermore, VoiceOver users lacked context about what these iconless utility buttons actually did, and they weren't informed when the state actually changed.

📸 Before/After: Visually, the buttons now smoothly cross-fade text. For screen readers, tapping "Copy Report" will dynamically read out "Copied diagnostics report" instead of remaining silent or confusing.

Accessibility: Significant improvement. Added explicit hints ("Copies the diagnostics report to the clipboard") and dynamic labels that follow best practices for transient state UI elements.


PR created automatically by Jules for task 10379285221612358816 started by @emkey1

- Wrapped `copiedReport` state toggles in `withAnimation` blocks to prevent jarring UI state snaps in the "Copy Report" button.
- Added dynamic `.accessibilityLabel` to both buttons to accurately reflect changing states (e.g., "Copied diagnostics report", "Running diagnostics").
- Added `.accessibilityHint` to clarify the resulting actions for VoiceOver users.

Co-authored-by: emkey1 <18100932+emkey1@users.noreply.github.com>
@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.

google-labs-jules Bot and others added 3 commits July 30, 2026 02:54
- Wrapped `copiedReport` state toggles in `withAnimation` blocks to prevent jarring UI state snaps in the "Copy Report" button.
- Added dynamic `.accessibilityLabel` to both buttons to accurately reflect changing states (e.g., "Copied diagnostics report", "Running diagnostics").
- Added `.accessibilityHint` to clarify the resulting actions for VoiceOver users.

Co-authored-by: emkey1 <18100932+emkey1@users.noreply.github.com>
- Wrapped `copiedReport` state toggles in `withAnimation` blocks to prevent jarring UI state snaps in the "Copy Report" button.
- Added dynamic `.accessibilityLabel` to both buttons to accurately reflect changing states (e.g., "Copied diagnostics report", "Running diagnostics").
- Added `.accessibilityHint` to clarify the resulting actions for VoiceOver users.

Co-authored-by: emkey1 <18100932+emkey1@users.noreply.github.com>
- Wrapped `copiedReport` state toggles in `withAnimation` blocks to prevent jarring UI state snaps in the "Copy Report" button.
- Added dynamic `.accessibilityLabel` to both buttons to accurately reflect changing states (e.g., "Copied diagnostics report", "Running diagnostics").
- Added `.accessibilityHint` to clarify the resulting actions for VoiceOver users.
- Fixed GitHub Actions CI test failures by ensuring `libcurl` and `sqlite3` are available/bundled so that builtin IDs remain stable for core test fixtures.

Co-authored-by: emkey1 <18100932+emkey1@users.noreply.github.com>
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