Skip to content

🎨 Palette: Add keyboard shortcut (D) for Dashboard#212

Open
ruhdevops wants to merge 3 commits into
mainfrom
palette-dashboard-shortcut-10962933799758429067
Open

🎨 Palette: Add keyboard shortcut (D) for Dashboard#212
ruhdevops wants to merge 3 commits into
mainfrom
palette-dashboard-shortcut-10962933799758429067

Conversation

@ruhdevops

Copy link
Copy Markdown
Owner

This PR implements a micro-UX improvement by adding a keyboard shortcut ('D') to toggle the Dashboard panel.

💡 What:

  • Added a keyboard shortcut hint (D) to the Dashboard button's title attribute for discoverability.
  • Added a global keydown listener in js/app.js that toggles the Dashboard visibility when 'D' is pressed.
  • Enhanced tests/shortcut.spec.js with an automated test for the new shortcut.

🎯 Why:

  • Power users often prefer keyboard navigation for frequently used panels.
  • Provides consistency with existing shortcuts like / (Search) and B (Watch Later).

♿ Accessibility:

  • The shortcut hint is placed in the title attribute to provide a visual tooltip without cluttering the screen reader's aria-label.
  • The logic is guarded to ensure it doesn't trigger when focus is inside text inputs or textareas.
  • Updated aria-expanded and aria-hidden states are correctly managed during the toggle.

PR created automatically by Jules for task 10962933799758429067 started by @ruhdevops

- Updated `#dashboardBtn` title in `index.html` to include shortcut hint "(D)".
- Implemented 'D' key listener in `js/app.js` to toggle the Dashboard panel.
- Ensured shortcut respects input focus guard to prevent accidental triggers while typing.
- Added automated verification test in `tests/shortcut.spec.js`.

Co-authored-by: ruhdevops <203426218+ruhdevops@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.

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yt-studio Error Error Jun 17, 2026 5:28am
yt-studio-production Error Error Jun 17, 2026 5:28am

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
ytstudio 5978fed Jun 17 2026, 05:28 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
ytstudio 5978fed Jun 17 2026, 05:28 AM

@netlify

netlify Bot commented Jun 17, 2026

Copy link
Copy Markdown

Deploy Preview for ytr-studio failed.

Name Link
🔨 Latest commit 5978fed
🔍 Latest deploy log https://app.netlify.com/projects/ytr-studio/deploys/6a32305be7aca8000853cf37

@netlify

netlify Bot commented Jun 17, 2026

Copy link
Copy Markdown

Deploy Preview for elegant-seahorse-d9d460 ready!

Name Link
🔨 Latest commit 5978fed
🔍 Latest deploy log https://app.netlify.com/projects/elegant-seahorse-d9d460/deploys/6a32305bc111730009f24598
😎 Deploy Preview https://deploy-preview-212--elegant-seahorse-d9d460.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

- Updated `#dashboardBtn` title in `index.html` to include shortcut hint "(D)".
- Implemented 'D' key listener in `js/app.js` to toggle the Dashboard panel.
- Ensured shortcut respects input focus guard to prevent accidental triggers while typing.
- Added automated verification test in `tests/shortcut.spec.js`.

Co-authored-by: ruhdevops <203426218+ruhdevops@users.noreply.github.com>
- Adds 'D' keyboard shortcut to toggle the Dashboard panel.
- Implements shortcut hint (D) in Dashboard button tooltip for better discoverability.
- Ensures global shortcuts are ignored when typing in input or textarea fields.
- Cleans up significant redundancy in js/app.js where DOM elements and listeners were duplicated multiple times.
- Updates tests/shortcut.spec.js with verification for the new Dashboard shortcut.
- Synchronizes aria-expanded and aria-hidden states for the Dashboard panel.

Co-authored-by: ruhdevops <203426218+ruhdevops@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