Repository navigation
feat: connecting and schema browser P2s - #864
Merged
Merged
Conversation
Track in-flight connects per profile instead of the shared loading flag, render a placeholder tab with a spinner and cancel button for each, and say "Connecting to <name>…" in the status bar. Fixes #799. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
A failed connect now opens a panel under the tab bar with the whole message plus Retry and Edit connection. The status-bar chip carries the message in its tooltip and expands on click instead of dismissing. The Test Connection result wraps, and caught errors lose the "Error: " prefix that String(e) added. Fixes #804. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The sidebar empty state lists saved profiles with a Connect button each (name, user@host, env badge) plus New Connection, or a "Create your first connection" prompt on first run. The Connection menu gains a "Connect to" submenu, the palette gets a "Connect: <name>" entry per profile and drops Disconnect when nothing is connected, and the tab bar's "+" now reads "Connect". All of them go through ConnectionTabs' existing connect flow via a connect-profile event. Fixes #817. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Fixes #806. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Fixes #810. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Show DDL and View DDL on tables, views, procedures, functions and triggers now open one "ddl" tab per object, filled from the schema API (getTableDdl, getViewDdl, getRoutineDdl, getTriggerDdl) and shown in read-only Monaco with Copy and Open in editor. Events have no DDL command yet and still run SHOW CREATE EVENT. Fixes #800. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Fixes #809. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The preload effect depended on `databases`, rebuilt every render, and each load it made re-rendered the tree, so it restarted on every load. A folder that failed to load was never cached and was retried forever. Adding events to the preload (#806) made that common: listing events fails without the EVENT privilege. Key the effect on the database names instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The menu bar, the palette and the sidebar can all request a connect. A request for a profile that is already opening is now ignored, and one for an open profile selects its connection. The menu disables and the palette hides profiles that are still connecting. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
A cancel was recorded by profile id, so after cancelling a slow connect and pressing Connect again, whichever attempt finished first consumed it. If the retry won, it was closed and the cancelled attempt was kept. Each connect now gets its own token and cancel marks that token. A cancelled attempt that settles late no longer clears the retry's placeholder either. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The startup reconnect re-points only tabs that carry a profileId, so a restored DDL tab kept the previous session's connection id and showed "Connection not found". Show DDL now records the connection's profile. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
to_lowercase can change a non-ASCII string's byte length, so its offsets do not fit the original. to_ascii_lowercase keeps them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The status bar kept one open flag for the connection error popover, so after its details were opened once, the next unrelated error appeared with them already open. The chip is now its own component, keyed on the message, so each error starts closed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Use errorMessage(), added in #804, where String(e) remained. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
635ac15 reads connectionStore.connecting in the palette and 773759c passes profileId when opening a DDL tab; the AppLayout and Sidebar mocks had neither. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Owner
Author
|
Fixes from a review of this PR:
Left as is: When Test Connection hits the pool timeout, it now probes again, so it can take up to twice the timeout. Connect already does this, and a clear cause is worth the wait. Vitest: 157 files, 3142 tests. Browser suite: all 10 files, 344 tests. Generated by Claude Code |
Merged
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.
This is the third batch from the UX review (#783). Each fix is its own commit with a regression test.
Fixes #799, fixes #804, fixes #817, fixes #809, fixes #800, fixes #806, fixes #810.
Connecting
String(e)added to every message is gone.+menu. The macOS native menu still lacks the submenu; that is macOS native menu has no "Connect to" submenu #863.mas-core): Test Connection now gives the same plain diagnosis as Connect, including the pool-timeout probe. A success names the product, for example "Connected to MariaDB 10.11.6"; before, it always said MySQL. The result's shape is unchanged, so there are no binding changes. The mock backend's text matches.Schema browser
ddltab kind) with Copy, Open in editor and Reload buttons, instead of one truncated grid cell. It works for tables (SQLite included), views, routines and triggers. Events and database statistics still use the old path, because there is no backend command for event DDL.Checks
tsc --noEmitand dprint are clean.CHROMIUM_PATH=… npm run test:browser): 10 files, 344 tests.cargo fmt,cargo clippy -p mas-core -D warningsandcargo test -p mas-corepass. The live-server tests were not run against MySQL or MariaDB.Generated by Claude Code