Skip to content

Commit 44e41b2

Browse files
authored
feat(welcome): add Import from Other App button to the left pane (#1235)
1 parent d5d53ce commit 44e41b2

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- Right-click Set Value submenu on date, datetime, and timestamp cells now offers current-value SQL function presets (`CURRENT_DATE` for date columns, `CURRENT_TIME` for time columns, `NOW()` and `CURRENT_TIMESTAMP` for datetime and timestamp columns).
13+
- Welcome screen left pane gains an Import from Other App button next to Create Connection and Try Sample Database, opening the existing TablePlus / Sequel Ace / DBeaver import flow.
1314

1415
### Changed
1516

TablePro/Views/Connection/WelcomeActionsPanel.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import SwiftUI
88
struct WelcomeActionsPanel: View {
99
let onActivateLicense: () -> Void
1010
let onCreateConnection: () -> Void
11+
let onImportFromApp: () -> Void
1112
let onTrySample: () -> Void
1213

1314
private let updaterBridge = UpdaterBridge.shared
@@ -43,6 +44,13 @@ struct WelcomeActionsPanel: View {
4344
.buttonStyle(.borderedProminent)
4445
.controlSize(.large)
4546

47+
Button(action: onImportFromApp) {
48+
Label(String(localized: "Import from Other App..."), systemImage: "square.and.arrow.down.on.square")
49+
.frame(maxWidth: .infinity, alignment: .center)
50+
}
51+
.buttonStyle(.bordered)
52+
.controlSize(.large)
53+
4654
Button(action: onTrySample) {
4755
Label(String(localized: "Try Sample Database"), systemImage: "cylinder.split.1x2")
4856
.frame(maxWidth: .infinity, alignment: .center)

TablePro/Views/Connection/WelcomeWindowView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ struct WelcomeWindowView: View {
198198
WelcomeActionsPanel(
199199
onActivateLicense: { vm.activeSheet = .activation },
200200
onCreateConnection: { WindowOpener.shared.openConnectionForm() },
201+
onImportFromApp: { vm.importConnectionsFromApp() },
201202
onTrySample: { vm.openSampleDatabase() }
202203
)
203204
.frame(width: 240)

0 commit comments

Comments
 (0)