Skip to content

refactor(ui): trim redundant descriptions and help copy across views - #225

Merged
Blankll merged 4 commits into
masterfrom
refactor/ui-cleanup
Nov 27, 2026
Merged

Blankll merged 4 commits into
masterfrom
refactor/ui-cleanup

Conversation

@Blankll

@Blankll Blankll commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Removes non-informative subtitles, duplicate headers/descriptions, redundant setting help lines, instructional tips, and bare confirmation labels across SQLKit without changing existing page layouts, while adding a shared keyboard-focusable InfoTip, consolidating the Settings plan status row, and updating the native Rust driver badge icon.

Changes

  • Shared InfoTip (src/components/ui/info-tip/): Added a keyboard-focusable ⓘ tooltip trigger backed by ui/tooltip for setting explanations that prevent user error if omitted.
  • Page Header Subtitles: Removed restating subtitles on ConnectionsPage (-2 lines only), SettingsPage, HistoryPage, and TransferPage.
  • Settings (SettingsPage, SettingsAbout, plan-section, ai-settings, provider-list, provider-form-dialog, bridge-status, mcp-bridge, jre-driver-section, DefaultPermissionEditor):
    • Removed duplicate tab/card headers (General, Editor, Query, AI, MCP Bridge, JRE & Drivers) and redundant help descriptions while keeping existing cards, containers, switches, and inputs intact.
    • Consolidated plan-section.vue account status (plan badge, email, Version lock ⓘ, expiry date, and actions) into a single horizontal line, moving warnings/notices to a conditional line below.
    • Moved non-obvious help copy (SQL formatter indent/line width, AI system prompt/auto-compact/max iterations/token budget, manual model sync, MCP port, JRE usage, Bridge JAR, default AI permission scope, automatic update checks) into InfoTip.
  • Connections & Forms (ServerCard, ServerFormDialog, ConnectionPromptDialog, SshProfileDialog, ConnectionPermissionEditor):
    • Replaced the native Rust driver lightning bolt icon in ServerCard.vue with a minimal 2px line-art Ferris crab SVG matching the adjacent JDBC coffee cup and HTTP globe badges.
    • Removed redundant dialog descriptions and moved connection agent prompt / SSH agent help lines into InfoTip; updated connection.prompt.confirm from bare "Confirm" to verb+object ("Save Prompt") across all 7 locales.
  • History (HistoryPage): Removed redundant "Recent Queries" card header while keeping the card/table layout intact; updated the clear-history confirmation button from bare "Confirm" to the explicit action ("Clear All" / "Clear Non-Favorites").
  • Instructional & Empty-State Copy Cleanup: Removed pages.queries.landing.tip (QueriesPage), F12 hint (UpdateNotification), continueHint (chat-panel), esc subtitle (model-picker), and redundant second-line task empty description (TaskSidebar, TaskManagerPanel); tightened sessionsEmpty, reviewHelp, and reviewConnectionHelp.
  • i18n (enUS, zhCN, zhTW, jaJP, koKR, esES, ptBR): Synced all 7 locale files (36 unused keys removed, 4 keys tightened).
  • Tests: Added standard @/components/ui/tooltip mocks in the 4 Jest component tests that mount InfoTip.

Verification

  • npm run lint:check: passed (0 errors)
  • npm run build (vue-tsc --noEmit && vite build): passed (3,758 modules)
  • npm test -- --no-coverage: 68/68 test suites passed, 947/947 tests passed (including i18nParity.test.ts and i18nKeys.test.ts)
  • npm run test:ui (Playwright): 3/3 tests passed
  • Visual screenshot verification in light/dark themes confirming Connections home layout preserved, Ferris crab badge crisp at 14px, single-line Settings Account & Plan row, and clean MCP/JRE headers with InfoTip

Keep all existing page layouts, containers, cards, and icons untouched; only remove redundant subtitles, duplicate card headers/descriptions, instructional tips, and bare confirmation labels, tucking necessary setting explanations into a shared keyboard-focusable InfoTip component.

- Add shared InfoTip component (src/components/ui/info-tip) backed by ui/tooltip
- Remove redundant page header subtitles on Connections, Settings, History, and Transfer
- Settings: remove duplicate tab/card headers and self-evident help lines; tuck non-obvious help text (SQL formatter indent/line width, AI agent options, model sync, JRE usage, default AI permissions, update auto-check) into InfoTip
- Connections/Forms: remove redundant dialog descriptions on ServerFormDialog and ConnectionPromptDialog; move agent prompt & SSH agent help text into InfoTip; update prompt confirm button to verb+object ("Save Prompt")
- History: remove redundant card header and change clear-history dialog button from bare "Confirm" to action+object ("Clear All" / "Clear Non-Favorites")
- Remove instructional copy in QueriesPage (landing tip), UpdateNotification (F12 hint), chat-panel (continueHint), and model-picker (esc subtitle)
- Sync all 7 locale files (enUS, zhCN, zhTW, jaJP, koKR, esES, ptBR): remove 35 unused keys and update connection.prompt.confirm
- Add tooltip mocks in component Jest tests covering components that now render InfoTip
@Blankll
Blankll force-pushed the refactor/ui-cleanup branch from 1709bca to 6e886cd Compare November 25, 2026 15:57
@Blankll Blankll changed the title refactor(ui): simplify chrome, copy, containers, and icons across views refactor(ui): trim redundant descriptions and help copy across views Nov 25, 2026
… and native Rust icon

- Settings / Account & Plan (plan-section.vue): consolidate plan badge, email, version lock InfoTip, expiry date, and action buttons into a single horizontal row
- Settings / MCP Bridge (bridge-status.vue): deduplicate tab/card title ("Status"), move portDesc into InfoTip, and remove redundant autoStartDesc
- Settings / JRE & Drivers (jre-driver-section.vue): remove duplicate tab/card title and add InfoTip tooltip on Bridge JAR matching Java Runtime
- Connections (ServerCard.vue): replace native Rust driver lightning bolt with a minimal 2px outline Ferris crab SVG matching the JDBC coffee cup and HTTP globe badges
- Tasks (TaskSidebar.vue, TaskManagerPanel.vue): remove redundant second-line empty state description
- i18n (all 7 locales): remove autoStartDesc and emptyDescription, restore bridgeCard.description for InfoTip, and trim instructional phrasing from sessionsEmpty, reviewHelp, and reviewConnectionHelp
@Blankll
Blankll merged commit d5fa77c into master Nov 27, 2026
3 checks passed
@Blankll
Blankll deleted the refactor/ui-cleanup branch November 27, 2026 06:17
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