Skip to content

ux/ui fixes#9

Merged
sthbryan merged 13 commits into
mainfrom
fix/ui-fixes
Jun 3, 2026
Merged

ux/ui fixes#9
sthbryan merged 13 commits into
mainfrom
fix/ui-fixes

Conversation

@sthbryan
Copy link
Copy Markdown
Owner

@sthbryan sthbryan commented Jun 3, 2026

Summary

  • Restricts global quit/back key handling to the list/home view only, so settings, forms, and other screens don't accidentally exit when pressing Esc or q.
  • Improves dropdown accessibility by adding inert/aria-hidden when closed and fixing outside-click handling with escape key support.
  • Removes unwanted hover scale effect on tunnel cards to prevent visual jump in grids.
  • Normalizes i18n string capitalization and updates gitignore.

Copilot AI review requested due to automatic review settings June 3, 2026 21:14
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates key bindings, localizes UI strings, refactors the Svelte dropdown component to remain in the DOM while hidden, and adjusts tunnel card styling. Feedback highlights a critical bug in the key bindings where ctrl+c is overwritten by esc, redundant cleanup logic and unnecessary event propagation in the dropdown component, and a regression in the dropdown alignment logic that negatively impacts user experience.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread internal/app/model_types.go Outdated
Comment thread web-svelte/src/lib/components/Dropdown.svelte Outdated
Comment thread web-svelte/src/lib/components/Dropdown.svelte Outdated
Comment thread web-svelte/src/lib/components/TunnelCard.svelte Outdated
@sthbryan sthbryan changed the title fix: restrict quit/back shortcuts to home and add a11y to dropdown ui fixes Jun 3, 2026
@sthbryan sthbryan changed the title ui fixes ux/ui fixes Jun 3, 2026
Copy link
Copy Markdown

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 adjusts input handling and UI accessibility by (1) changing TUI quit/back key behavior and related hints, and (2) improving the Svelte dropdown’s closed-state accessibility by keeping it mounted while making it non-interactive/hidden from assistive tech.

Changes:

  • Updated TUI key bindings and navigation hint strings (EN/ES).
  • Reworked the Svelte Dropdown to remain in the DOM and use inert + aria-hidden when closed, plus improved outside-click handling.
  • Tweaked dropdown alignment logic in TunnelCard.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
internal/app/keyhandlers.go Handles global key routing for Quit/Back and per-view key handlers (referenced by PR description).
internal/app/model_types.go Updates default key bindings for Back/Quit.
internal/i18n/locales/en.yaml Updates UI hint strings (incl. Logs hint).
internal/i18n/locales/es.yaml Updates UI hint strings (incl. Logs hint).
web-svelte/src/lib/components/Dropdown.svelte Keeps menu mounted; adds inert/aria-hidden; refines outside click + Escape handling.
web-svelte/src/lib/components/TunnelCard.svelte Adjusts dropdown alignment logic and card hover styling.
.gitignore Ignores .pi.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web-svelte/src/lib/components/Dropdown.svelte Outdated
Comment thread internal/app/model_types.go
Comment thread web-svelte/src/lib/components/TunnelCard.svelte Outdated
Comment thread internal/i18n/locales/en.yaml Outdated
Comment thread internal/i18n/locales/es.yaml Outdated
@sthbryan sthbryan merged commit 61a0e5a into main Jun 3, 2026
4 checks passed
@sthbryan sthbryan deleted the fix/ui-fixes branch June 3, 2026 21:40
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.

2 participants