Skip to content

Polish: connection and app-shell P3s from the UX review #838

Closed

Description

@EVWorth

Severity: P3 (polish)

Small issues found while using the app on the mock backend. Each item lists what happens, the cause and the fix.

  • Stop the query toolbar overlapping at small window widths. At 1024×680 on ?mock=connected, "Find", "Replace" and "Format" draw on top of each other ("FindReplaceFormat"). Even at 1366 wide, "Ctrl+Enter / F9" and the connection name wrap onto two lines once a long name such as "Production (read-only)" is selected. Cause: src/components/editor/QueryToolbar.tsx; the button row has no shrink-0/whitespace-nowrap or overflow handling. Fix: keep buttons from shrinking, hide the shortcut hint and button labels (icon only) below a breakpoint, and add an overflow menu.
  • Give the editor the selected theme's colours. With Nord selected, the editor stays the vs-dark grey; with Solarized Light, it is plain white. The rest of the app follows the palette. Cause: src/components/editor/SQLEditor.tsx:325 picks vs-dark/vs by base only. Fix: monaco.editor.defineTheme from the active theme's colours (background, foreground, selection, line highlight).
  • Keep the connection dialog the same height on every tab. Switching General / SSL / SSH Tunnel / Advanced in "New Connection…" makes the dialog jump vertically. Save is greyed out with no hint that Name is required. Cause: src/components/connection/ConnectionDialog.tsx:68 (centred), :103 (min-h-[320px] only), :223 (canSave in useConnectionForm.ts). Fix: fixed body height or top-anchored placement, required-field markers, and a "Name is required" message.
  • Name the server vendor correctly in the status bar. It always prints "MySQL {version}", so a MariaDB server will read "MySQL 10.11.x-MariaDB". Cause: src/components/layout/StatusBar.tsx:208. Fix: derive the vendor from the version string.
  • Show the copy icon next to the status-bar connection. The icon is meant to appear on hover but never does. Cause: src/components/layout/StatusBar.tsx:190-192 uses group-hover:opacity-100, but the button has no group class. Fix: add group to the button.
  • Label the title-bar theme button with the current theme. It cycles only Dark → Light → System, and its label ("Theme: Dark — click for Light") ignores a chosen Nord / Solarized / High Contrast / custom theme. Cause: src/components/layout/FeatureButtons.tsx:18, :59, :124 (labels and cycle keyed on the three modes). Fix: label with the current theme's name, and say what the next click picks.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. EVWorth commented on Oct 21, 2026

    @EVWorth
    OwnerAuthor

    More detail from the editor/results UX review (part of #783):

    • Not only at narrow widths. At 1366px wide, when the active connection has a long name ("Production (read-only)" on ?mock=connected), the Find, Replace, Format, Schema and Save icons shrink to dots, "Ctrl+Enter / F9" wraps onto two lines, and the connection label wraps to "Production / (read-only)".
    • At 1024px the labels also run together ("Find ReplaceFormat").
    • Cause:
      • src/components/editor/QueryToolbar.tsx:124: toolbarBtnClass has no shrink-0 / whitespace-nowrap, and the 12px lucide icons are flex children that can shrink.
      • :150-152: the shortcut-hint span can wrap.
      • :293-301: the connection label has no min-w-0 truncate.
    • Fix:
      • Add shrink-0 whitespace-nowrap to the buttons and their icons.
      • Give the connection block min-w-0 and truncate the name, with the full name in a title.
      • Hide the shortcut hint, then the button labels, below a breakpoint, keeping icons and tooltips.

    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions