Skip to content

Commit fcfeb76

Browse files
fcouryrekurt
andcommitted
feat(tui): add remaining connection manager features
Bring over the larger connection manager feature set from the original PR: metadata fields, search, persisted sort modes, manual reorder, usage stats, connection import/export, and richer form/detail UI. Preserve the current PR's startup fixes and AI-era changes while leaving repository rename churn out of this branch. Co-authored-by: nikita42 <13642481+rekurt@users.noreply.github.com>
1 parent 3b0e0de commit fcfeb76

9 files changed

Lines changed: 2528 additions & 486 deletions

File tree

crates/tsql/src/app/app.rs

Lines changed: 390 additions & 35 deletions
Large diffs are not rendered by default.

crates/tsql/src/config/connections.rs

Lines changed: 1079 additions & 116 deletions
Large diffs are not rendered by default.

crates/tsql/src/config/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ mod keymap;
1111
mod schema;
1212

1313
pub use connections::{
14-
connections_path, load_connections, save_connections, ConnectionColor, ConnectionEntry,
15-
ConnectionsFile, DbKind, SslMode,
14+
connections_path, export_to_path, import_from_path, load_connections, save_connections,
15+
write_connections_atomic, ConnectionColor, ConnectionEntry, ConnectionsFile, DbKind,
16+
ImportConflict, ImportSummary, SortMode, SslMode,
1617
};
1718
pub use keymap::{Action, KeyBinding, Keymap};
1819
pub use schema::{

crates/tsql/src/ui/confirm_prompt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub enum ConfirmContext {
4747
/// Closing connection form with unsaved changes.
4848
CloseConnectionForm,
4949
/// Switching to a new connection with unsaved query changes.
50-
SwitchConnection { entry: ConnectionEntry },
50+
SwitchConnection { entry: Box<ConnectionEntry> },
5151
/// Applying an in-app binary update.
5252
ApplyUpdate { info: UpdateInfo },
5353
/// Opening the AI assistant when current query editor has content.

0 commit comments

Comments
 (0)