Repository navigation
feat: VS Code-style custom title bar, icon redesign, v0.1.2 - #2
Merged
Merged
Conversation
- Custom title bar on Windows/Linux: inline menus (File/Edit/Connection/ Database/Tools/Help), toolbar buttons, window controls (−□×) - Draggable title bar with double-click to maximize/restore - Right-click system context menu (Restore/Move/Size/Minimize/Maximize/Close) - Toolbar buttons merged into title bar, old toolbar bar removed on Windows/Linux - macOS: native title bar + menu bar + standalone Toolbar (unchanged) - SQLPilot icon redesigned to fill full canvas with dark background - All platform icons regenerated (ICO, ICNS, PNGs, Windows Store, iOS, Android) - Native window decorations removed on Windows/Linux via set_decorations(false) - Native menu removed on Windows/Linux via app.remove_menu() - Added window API permissions to capabilities/default.json - Bump version: 0.1.1 → 0.1.2 Co-authored-by: Copilot <[email protected]>
closeTab intentionally prevents closing the last query tab. Updated test to assert this behavior and add a multi-tab close test. Co-authored-by: Copilot <[email protected]>
…S/Windows) GitHub Actions service containers require Linux runners. The Rust integration tests test MySQL connectivity which is OS-agnostic, so Linux-only coverage is sufficient. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates SQLPilot’s desktop UI to a VS Code-style custom title bar on Windows/Linux, adds session persistence + formatter settings on the frontend, refreshes app/icon assets across platforms, and bumps the app version to v0.1.2 (frontend + Tauri).
Changes:
- Add custom TitleBar + inline MenuBar + connection tabs (Windows/Linux custom chrome; macOS keeps native menu/title bar).
- Persist editor session (tabs/active tab) and add user-configurable SQL formatter settings + post-format SQL casing pass.
- Redesign/regenerate icons across iOS/Android/Windows assets and bump versions to 0.1.2.
Reviewed changes
Copilot reviewed 35 out of 89 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| vite.config.ts | Injects app version into import.meta.env at build time. |
| src/types/index.ts | Adds profileId to EditorTab to support reconnect/session restore. |
| src/stores/settingsStore.ts | New Zustand store for SQL formatter settings persisted to localStorage. |
| src/stores/editorStore.ts | Adds localStorage session restore + save subscription; tweaks tab defaults/close behavior; supports profileId. |
| src/lib/tauri-api.ts | Adds getAppVersion() using Tauri app API (fallback to Vite-defined version). |
| src/lib/sql-post-process.ts | New SQL post-processing step for identifier casing adjustments after formatting. |
| src/lib/schema-completion-provider.ts | Adjusts completion item kinds + suggests DB names in table context. |
| src/components/layout/Toolbar.tsx | Removes app branding/shortcuts from toolbar; shifts responsibilities to TitleBar. |
| src/components/layout/TitleBar.tsx | New custom title bar (drag/maximize, system menu, window controls, inline menu + actions). |
| src/components/layout/StatusBar.tsx | Displays dynamic app version via api.getAppVersion(). |
| src/components/layout/Sidebar.tsx | Refactors sidebar to focus on selected connection + schema tree. |
| src/components/layout/MenuBar.tsx | New inline menu bar emitting menu-action DOM events. |
| src/components/layout/MainPanel.tsx | Removes “welcome” empty state (tabs now persisted/always present). |
| src/components/layout/ConnectionTabs.tsx | New connection tab strip + profile popover; reconnects from persisted tab profileIds. |
| src/components/layout/AppLayout.tsx | Wires menu actions from DOM + macOS native menu events into app actions; switches toolbar/titlebar by OS. |
| src/components/editor/SQLEditor.tsx | Uses formatter settings + post-processing when formatting from the editor action. |
| src/components/editor/QueryToolbar.tsx | Uses formatter settings + post-processing; adds formatter settings dialog entry point. |
| src/components/editor/FormatterSettingsDialog.tsx | New dialog UI for SQL formatter preferences. |
| src/components/editor/EditorTabs.tsx | Prevents closing last query tab visually; tweaks tab bar controls. |
| src/components/common/ShortcutsDialog.tsx | Expands into a Help dialog (Shortcuts + About) while keeping export alias. |
| src-tauri/tauri.conf.json | Bumps Tauri app version to 0.1.2. |
| src-tauri/src/menu.rs | Adds macOS native app menu structure (File/Edit/Connection/Database/Tools/Help). |
| src-tauri/src/lib.rs | Sets native menu on macOS; removes menu + disables decorations on Windows/Linux for custom chrome. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset variant. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset variant. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset variant. |
| src-tauri/icons/ios/[email protected] | Regenerated iOS icon asset. |
| src-tauri/icons/icon.svg | Updated core app icon SVG used by Tauri packaging. |
| src-tauri/icons/android/values/ic_launcher_background.xml | Sets Android launcher background color resource. |
| src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png | Regenerated Android round launcher icon (xhdpi). |
| src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png | Regenerated Android launcher icon (xhdpi). |
| src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png | Regenerated Android round launcher icon (mdpi). |
| src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png | Regenerated Android adaptive foreground (mdpi). |
| src-tauri/icons/android/mipmap-mdpi/ic_launcher.png | Regenerated Android launcher icon (mdpi). |
| src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png | Regenerated Android round launcher icon (hdpi). |
| src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png | Regenerated Android adaptive foreground (hdpi). |
| src-tauri/icons/android/mipmap-hdpi/ic_launcher.png | Regenerated Android launcher icon (hdpi). |
| src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml | Android adaptive icon definition (foreground/background). |
| src-tauri/icons/StoreLogo.png | Regenerated Windows Store logo asset. |
| src-tauri/icons/Square89x89Logo.png | Regenerated Windows tile asset. |
| src-tauri/icons/Square71x71Logo.png | Regenerated Windows tile asset. |
| src-tauri/icons/Square44x44Logo.png | Regenerated Windows tile asset. |
| src-tauri/icons/Square30x30Logo.png | Regenerated Windows tile asset. |
| src-tauri/icons/Square150x150Logo.png | Regenerated Windows tile asset. |
| src-tauri/icons/Square142x142Logo.png | Regenerated Windows tile asset. |
| src-tauri/icons/Square107x107Logo.png | Regenerated Windows tile asset. |
| src-tauri/icons/64x64.png | Regenerated generic icon asset. |
| src-tauri/icons/32x32.png | Regenerated generic icon asset. |
| src-tauri/icons/128x128.png | Regenerated generic icon asset. |
| src-tauri/crates/mas-core/src/query/executor.rs | Cleans up sqlx imports (removes unused Acquire). |
| src-tauri/crates/mas-core/src/connection/manager.rs | Auto-selects a non-system DB when no default database is provided. |
| src-tauri/capabilities/default.json | Adds window permissions needed for custom title bar window actions. |
| src-tauri/Cargo.toml | Bumps Rust crate/app version to 0.1.2. |
| public/icon.svg | Updated web/public icon asset (used by TitleBar + favicon). |
| package.json | Bumps frontend version to 0.1.2. |
| package-lock.json | Updates lockfile metadata/version fields. |
| index.html | Switches favicon from /vite.svg to /icon.svg. |
| README.md | Adds Buy Me a Coffee button. |
| .github/FUNDING.yml | Adds GitHub funding config for Buy Me a Coffee. |
Comments suppressed due to low confidence (1)
src/stores/editorStore.ts:100
addTabcreates query tabs without persistingprofileId. Since connection IDs are runtime-only UUIDs, restored sessions rely onprofileIdfor auto-reconnect; tabs created viaaddTab(selectedConnectionId)won’t reconnect after restart unless something later callssetTabConnection(..., profileId). Consider extendingaddTabto acceptprofileId(and passing it from callers), or deriving it from the selected connection at creation time so session restore is reliable.
- editorStore: debounce localStorage writes (500ms) to avoid saving on every keystroke which risks quota exhaustion on large tabs - FormatterSettingsDialog: reset local state on reopen so stale in-progress edits from a previous session are never shown - TitleBar: disable Move/Size system menu items unconditionally since they have no implementation (action: null) - menu.rs: remove 'Export Results' from macOS File menu until an export dialog is implemented - Add unit tests for postProcessSQL covering backtick lowercasing, dot-qualified identifier lowercasing, string literal protection, and edge cases Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Prevents cargo fmt / prettier failures on CI caused by CRLF line endings from Windows development environments. Co-authored-by: Copilot <[email protected]>
- mas-ai/service.rs: collapse nested if into match guard to satisfy clippy::collapsible_match (-D warnings) - ci.yml: map MySQL service to port 13306 (host:container 13306:3306) and seed with -P 13306 to match test_profile() which hardcodes 13306 Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
EVWorth
added a commit
that referenced
this pull request
Jul 20, 2026
Two parallel research agents audited SQLPilot against SQuirreL,
HeidiSQL, MySQL Workbench, DBeaver, DataGrip, Navicat, TablePlus,
pgAdmin, Postico, SQLTools (VS Code). Landed the small wins + the
two bugs they uncovered in one shot.
## Bugs fixed
1. Ctrl+Shift+A (Explain Analyze) was advertised in ShortcutsDialog
but no Monaco action existed. Pressing it did nothing. Now: real
Monaco action wired to executeExplainAnalyze.
2. F5 was double-bound to two conflicting semantics:
- useKeyboardShortcuts.ts -> F5 = 'execute query whole tab'
- src-tauri/src/menu.rs -> F5 = 'Refresh Schema'
Industry consensus (8/10 tools: DBeaver, HeidiSQL, pgAdmin, Navicat,
MySQL Workbench, TablePlus, DataGrip, SQLTools) says F5 = Refresh
Schema. Resolved by:
- Removed F5 from useKeyboardShortcuts.ts execute-all path.
- Added a Monaco action 'refresh-schema' with F5 keybinding so the
bind works inside the editor too.
- Left Tauri menu.rs F5 = refresh-schema as-is.
Ctrl+Shift+Enter remains the only 'execute all' binding.
3. Ctrl+Shift+F collision with Format SQL. SchemaTree filter input
focus was on Ctrl+Shift+F, colliding with Format SQL when both
Monaco was focused and the tree visible. Rebound to Ctrl+Shift+O.
## New Monaco actions (SQLEditor.tsx)
- explain-analyze: Ctrl+Shift+A (fixes #1)
- lowercase-selected: Ctrl+Shift+L (industry standard, 8/10 tools)
- uppercase-selected: Ctrl+Shift+U (industry standard, 8/10 tools)
- refresh-schema: F5 (fixes #2)
## New app-level shortcuts (useKeyboardShortcuts.ts)
- Ctrl+B: toggle sidebar (alias for Ctrl+Shift+C; 8/10 industry tools
use Ctrl+B). Both bindings work.
- Ctrl+1..9: switch to tab by index (industry standard 6/10).
## Docs updated (ShortcutsDialog.tsx)
- Removed F5 = Run all statements (now = Refresh schema)
- Added Monaco-default entries (Ctrl+/, Ctrl+D, Alt+Up/Down, F12)
that were previously undocumented
- Toggle sidebar shows both Ctrl+B / Ctrl+Shift+C
- Switch to tab by index shows Ctrl+1..9
- Focus schema tree filter shows Ctrl+Shift+O (was Ctrl+Shift+F)
## Tests
- Delete obsolete F5 app-level execute query block (5 tests removed).
- Add ShortcutsDialog tests for new entries.
- Add useKeyboardShortcuts tests for Ctrl+B and Ctrl+1..9 (5 cases).
- Add SQLEditor browser tests for new Monaco actions (8 tests covering
registration + run() delegation for explain-analyze, refresh-schema,
lowercase, uppercase).
Total: ~16 added, ~5 removed. vitest full: 1462/1462 pass (was 1453).
## Out of scope (deliberate)
Industry research surfaced several larger asks that need new UI
components / store work and are better as separate PRs or issues:
- Command palette (Ctrl+Shift+P)
- Quick file/tab switcher (Ctrl+P)
- Restore closed tab (Ctrl+Shift+T) -- needs tab history in editorStore
- Query history view (no history UI yet)
- Settings dialog (Ctrl+,) -- no global settings dialog exists
- Inline commit pending grid edits, add/delete/duplicate row from grid
- "Cancel running query" -- low industry prevalence + Escape
interference
Items NOT changed but worth flagging:
- Ctrl+Shift+C for sidebar kept as alias alongside new Ctrl+B
- shortcut choices follow industry consensus except where SQLPilot's
choice was already better
This was referenced Jul 22, 2026
EVWorth
added a commit
that referenced
this pull request
Jul 23, 2026
Issue 243 asks to capture the createUpdaterArtifacts gotcha in RELEASING.md. The gotcha already exists as gotcha #2 (PR #241 added the env var). What's missing is the cross-link from .opencode/AGENTS.md and an update to the example to reflect the renamed Build bundles (no release) step after #251. - docs/RELEASING.md: rename step in gotcha #2 example from Build and publish to Build bundles (no release), trim the trailing '...' - .opencode/AGENTS.md: add pitfall #13 referencing the gotcha, and a 'read RELEASING.md gotchas 1-5' note in the Release Flow section Closes #243
EVWorth
added a commit
that referenced
this pull request
Jul 23, 2026
Issue 243 asks to capture the createUpdaterArtifacts gotcha in RELEASING.md. The gotcha already exists as gotcha #2 (PR #241 added the env var). What's missing is the cross-link from .opencode/AGENTS.md and an update to the example to reflect the renamed Build bundles (no release) step after #251. - docs/RELEASING.md: rename step in gotcha #2 example from Build and publish to Build bundles (no release), trim the trailing '...' - .opencode/AGENTS.md: add pitfall #13 referencing the gotcha, and a 'read RELEASING.md gotchas 1-5' note in the Release Flow section Closes #243
EVWorth
added a commit
that referenced
this pull request
Jul 23, 2026
…252) Issue 243 asks to capture the createUpdaterArtifacts gotcha in RELEASING.md. The gotcha already exists as gotcha #2 (PR #241 added the env var). What's missing is the cross-link from .opencode/AGENTS.md and an update to the example to reflect the renamed Build bundles (no release) step after #251. - docs/RELEASING.md: rename step in gotcha #2 example from Build and publish to Build bundles (no release), trim the trailing '...' - .opencode/AGENTS.md: add pitfall #13 referencing the gotcha, and a 'read RELEASING.md gotchas 1-5' note in the Release Flow section Closes #243
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's changed
Custom title bar (Windows/Linux)
macOS (unchanged)
Icon redesign
Version bump
0.1.1 → 0.1.2