feat(ios): Live Activity for running queries and iPad multi-window support#1182
Merged
feat(ios): Live Activity for running queries and iPad multi-window support#1182
Conversation
…yboard layout conflicts
… ticks each second
…op hardcoded background tint
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.
Summary
Two iOS-first features bundled because they share Info.plist edits and target a common goal of bringing the app onto more iPad surfaces.
Live Activity (iOS 16.1+)
Long-running queries now surface on the Lock Screen and Dynamic Island via ActivityKit:
TableProWidgetextension converts from a single@main Widgetto@main WidgetBundleso it can ship bothQuickConnectWidgetand the newQueryLiveActivityWidget.QueryActivityAttributeslives inTableProWidget/Shared/and is in both the app target (to start/end the activity) and the widget target (to render). The pbxprojmembershipExceptionsfor the app target gains the new file alongside the existing two shared files.QueryEditorView.executeQueryDirectcallsActivity.request(...)when execution starts andactivity.end(...)in thedeferblock. When the user has Live Activities disabled in Settings the request silently no-ops viaActivityAuthorizationInfo().areActivitiesEnabled.Info.plistgainsNSSupportsLiveActivities = true.Privacy toggle: Settings → Privacy adds "Hide query in Live Activities". When on, the lock screen and Dynamic Island show "Running query" instead of the SQL preview. Off by default.
iPad multi-window
Info.plistgainsUIApplicationSceneManifest.UIApplicationSupportsMultipleScenes = true.ConnectionListView.selectedConnectionIdStringswitches from@AppStorageto@SceneStorageso each window remembers its own selected connection across cold launches and Stage Manager rearrangement. The two preference flagslastFilterTagIdandgroupByGroupstay@AppStoragebecause tag filter and grouping are global preferences, not per-window state. ThesearchTextkeys in the Data Browser and Table List are already@SceneStorage.AppState,coordinatorCache, and theappState.connectionsarray are shared across windows by design - users want the same list of connections in every window.Side fixes
SQLHighlightTextViewkeyboard accessory toolbar: revert fromUIInputViewback to plainUIViewwith.secondarySystemBackground, which resolves the keyboard layout constraint conflict logged on iOS 26.ConnectionCoordinator.reconnectIfNeeded(): only setisReconnecting = trueafter the ping health check fails, so the "Reconnecting" chip no longer flashes during routine ping checks (e.g., after tapping a Live Activity).Test plan
@SceneStorageper scene)