Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions apple/TablePro/Core/Sync/Approvals/SyncApprovalsModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ internal struct SyncApprovalFailure: Equatable {
let message: String
}

// What pulled changes wait for the person on this Mac, whichever provider pulled them. The count is the engine's own,
// so the status line and the Welcome window say the same; the list is read only while something waits.
// The Team Library changes that wait for the person on this Mac. The count is the engine's own, so the status line and
// the Welcome window say the same; the list is read only while something waits.
@MainActor
internal final class SyncApprovalsModel: ObservableObject {
static let shared = SyncApprovalsModel()
Expand Down Expand Up @@ -103,7 +103,9 @@ internal final class SyncApprovalsModel: ObservableObject {
return
}
guard started == generation else { return }
show(waiting: count, records: read)
// A personal row an earlier build left waits only until the core's next pass settles it, and a TablePro Sync one
// holds values the server could have written (core ADR 0114, Approvals), so none is offered.
show(waiting: count, records: read.filter { $0.record.scope.hasPrefix("team_") })
}

// `record` is the copy the sheet showed, never one read since: its digest makes the core refuse a decision on values a
Expand Down
3 changes: 3 additions & 0 deletions apple/TablePro/Core/Sync/MoveBetweenProviders.swift
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,9 @@ extension ProviderMoves {
return String(localized: "This Mac signed in with a license key. Sign in to your TablePro account in Settings > Account, then try again.")
case "sync.changed":
return String(localized: "This changed while you were deciding. Look again, then choose.")
// A server without sealed records takes none of this Mac's library (core ADR 0114, Capability).
case "sync.server_too_old":
return String(localized: "The server needs an update before it can sync this Mac's library. Your data stays on this Mac.")
// Kept as it is for the newer build (core ADR 0105).
case "sync.state.newer_format":
return String(localized: "A newer version of TablePro last used this Mac's sync data. Update TablePro to sync again.")
Expand Down
5 changes: 1 addition & 4 deletions apple/TablePro/Models/Settings/ProFeature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ internal enum ProFeature: String, CaseIterable {
case .iCloudSync:
return String(localized: "Sync connections, settings, and favorites across your Macs.")
case .serviceSync:
return String(localized: """
Sync your connections, settings, and query history through your TablePro account. \
Passwords, other secrets and query history are end-to-end encrypted.
""")
return String(localized: "Sync your connections, settings, and query history through your TablePro account, end-to-end encrypted.")
case .encryptedExport:
return String(localized: "Export connections with encrypted credentials.")
case .envVarReferences:
Expand Down
2 changes: 1 addition & 1 deletion apple/TablePro/Views/Settings/SyncMoveSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ struct SyncMoveSheet: View {
private func review(_ plan: MovePlanInfo) -> some View {
VStack(alignment: .leading, spacing: 10) {
// swiftlint:disable:next line_length
Text("This Mac's data goes up to your TablePro account. Passwords, other secrets and query history are end-to-end encrypted; the server can read connections, saved queries and settings.")
Text("This Mac's data goes up to your TablePro account end-to-end encrypted. The server can't read your connections, saved queries, settings, passwords or query history.")
.fixedSize(horizontal: false, vertical: true)

VStack(alignment: .leading, spacing: 6) {
Expand Down
2 changes: 1 addition & 1 deletion apple/TablePro/Views/Settings/SyncPaneLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct SyncPaneInputs {
var offersICloudDataDeletion = false
// The scopes TablePro Sync read last, with the server's switches.
var scopes: [ScopeStatusInfo] = []
// Records whose pulled values wait for the person, on any provider, Team Library's included.
// Team Library records whose pulled values wait for the person.
var waitingApprovals = 0
// Team Library records this Mac and the team both changed, which wait for the person to keep one side.
var waitingConflicts = 0
Expand Down
2 changes: 1 addition & 1 deletion apple/TablePro/Views/Settings/SyncSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ extension SyncProviderSetting {
case .iCloud:
String(localized: "Keep your connections and the items you choose the same on devices signed in to your Apple Account.")
case .tableproSync:
String(localized: "Sync through your TablePro account with every device signed in to it. Passwords, other secrets and query history are end-to-end encrypted.")
String(localized: "Sync through your TablePro account with every device signed in to it, end-to-end encrypted.")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion apple/TablePro/Views/Settings/SyncStatusRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct SyncStatusRow: View {
HStack(spacing: 8) {
if let review {
Button(String(localized: "Review…"), action: review)
.accessibilityHint(Text("Shows the changes from your other devices that wait for your approval"))
.accessibilityHint(Text("Shows the Team Library changes that wait for your approval"))
.accessibilityIdentifier("settings-sync-review-approvals")
}
if let resolve {
Expand Down
Loading
Loading