Skip to content
Merged

1.7.0 #492

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
d4d1013
feat: opt in to debug log collection
Avi0n Nov 1, 2026
8d28a21
chore: tighten debug log collection checks
Avi0n Nov 1, 2026
affb2c6
chore: update test tooling and small cleanup (#482)
Avi0n Nov 2, 2026
a38e24f
bump version to 1.6.3
Avi0n Nov 2, 2026
d4b8be9
fix: own each bluetooth connection's recovery (#481)
Avi0n Nov 4, 2026
c494664
feat: add meshcore sensor support (#473)
Avi0n Nov 4, 2026
1011e5b
fix: restore connected radio menu behavior
Avi0n Nov 4, 2026
9569b6d
feat: show retained telemetry on device info
Avi0n Nov 4, 2026
62c12cb
ui: remove device info connection section
Avi0n Nov 4, 2026
83822ae
feat: add message retry settings
Avi0n Nov 5, 2026
1150ba5
bump SwiftFormat to 0.64.5
Avi0n Nov 5, 2026
82c611a
fix: restore flood scope after channel sends
Avi0n Nov 6, 2026
6125af2
fix: stop restarting dm sends after acceptance
Avi0n Nov 6, 2026
f92bdad
fix: count initial send in dm retry progress
Avi0n Nov 6, 2026
2b66930
Add Text Rules for incoming messages (#485)
Avi0n Nov 6, 2026
6cd70b5
fix: filter dm replay lookups by body
Avi0n Nov 6, 2026
faf9357
refactor: model remote login attempts
Avi0n Nov 7, 2026
e861271
fix: keep trace completion tied to its request
Avi0n Nov 7, 2026
3da34dc
refactor: make pairing ownership explicit
Avi0n Nov 7, 2026
2029446
fix: serialize durable ack settlement
Avi0n Nov 7, 2026
443332c
fix: bind node config import to its operation
Avi0n Nov 8, 2026
9f0069c
refactor: make sync claim ownership explicit
Avi0n Nov 8, 2026
c3b1491
refactor: model remote cli slot ownership
Avi0n Nov 8, 2026
b498ff0
refactor: centralize chat open anchor state
Avi0n Nov 8, 2026
4d4f02a
feat: persist queued reaction sends
Avi0n Nov 8, 2026
f81beb3
refactor: centralize initial send admission
Avi0n Nov 8, 2026
4e7f513
fix: preserve channel resend repeats
Avi0n Nov 8, 2026
dd3b250
fix: restore outgoing repeat details
Avi0n Nov 8, 2026
7085f9b
fix: anchor confirmation dialogs to controls
Avi0n Nov 8, 2026
a9d1727
fix: correct commands
Avi0n Nov 8, 2026
85f3d3a
remove docs
Avi0n Nov 9, 2026
834c8f2
fix: keep the status menu morph off the icon
Avi0n Nov 9, 2026
7877623
fix: use an alert for channel confirms on mac
Avi0n Nov 9, 2026
a6a5be8
refactor: one modifier for each channel confirm
Avi0n Nov 9, 2026
8b4a5e7
feat: focus voiceover on the latest message
Avi0n Nov 9, 2026
5f7440d
bump messaging-ui revision
Avi0n Nov 9, 2026
0d4de1a
feat: speak only the composer draft
Avi0n Nov 9, 2026
dc05a5f
fix: run package tests with xcode swift
Avi0n Nov 9, 2026
922666c
fix: hide hops when the path byte is reserved
Avi0n Nov 9, 2026
8001a51
fix: follow each direct message command result
Avi0n Nov 10, 2026
60e3917
refactor: move channel drain out of init
Avi0n Nov 10, 2026
3ab18bf
feat: add switches for flood fallback
Avi0n Nov 10, 2026
e7b2a85
Use device localisation for temperature/distance/pressure units
neilalexander Nov 9, 2026
3d7fe5b
Merge pull request #488 from neilalexander/neil/temperatures
Avi0n Nov 10, 2026
8072624
test: time out session commands on a test clock
Avi0n Nov 10, 2026
c9aec49
add acknowledgements
Avi0n Nov 10, 2026
1c82fc4
test: time leftover session waits on a clock
Avi0n Nov 10, 2026
4461ed5
Update README.md
Avi0n Nov 10, 2026
0289986
feat: show MECP readings in chat
Avi0n Nov 11, 2026
335c931
feat: seed an emergency MECP channel
Avi0n Nov 11, 2026
4d999bc
l10n: add missing translations
Avi0n Nov 11, 2026
a924290
fix: set barometer digits from the pressure unit
Avi0n Nov 11, 2026
ceb42dd
refactor: draw MECP readings as message text
Avi0n Nov 11, 2026
6de2d1e
fix: keep import open during identity rebuild
Avi0n Nov 12, 2026
41c051b
fix: macos idle crash
Avi0n Nov 12, 2026
3c07444
fix: keep the composer clear of a late inset
Avi0n Nov 12, 2026
697a6ce
ui: rework the status live activity
Avi0n Nov 12, 2026
9c6a9ba
refactor: simplify the status live activity
Avi0n Nov 12, 2026
e667644
fix: omit the v-contact from companion config
Avi0n Nov 12, 2026
90d322e
fix: hold the packet rate in place
Avi0n Nov 13, 2026
30f0e89
fix: mark the metal lock before suspend
Avi0n Nov 13, 2026
1308fe3
ui: show sync status while pairing
Avi0n Nov 13, 2026
2da28f0
fix: accept untagged companion cli replies
Avi0n Nov 14, 2026
ce8d5d6
fix: cancel a stuck onboarding pair
Avi0n Nov 14, 2026
d10c5b6
chore: correct comment
Avi0n Nov 15, 2026
95f284e
bump marketing version to 1.7.0
Avi0n Nov 15, 2026
bd47303
ui: add the 1.7 what's new notes
Avi0n Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: Install SwiftFormat
env:
SWIFTFORMAT_VERSION: 0.63.0
SWIFTFORMAT_VERSION: 0.64.5
run: |
# Pinned rather than using the runner image's preinstalled build, so an
# image update cannot change the lint result without a commit here.
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ jobs:

- name: Test MeshCore
run: |
# The 8 minute kill starts after the build, so compile time is not part of the test budget.
swift build --package-path MeshCore --build-tests
run_tests() {
rm -f "$RUNNER_TEMP/watchdog-fired"
swift test --package-path MeshCore --no-parallel &
swift test --package-path MeshCore --no-parallel --skip-build &
TEST_PID=$!
(
sleep 480
Expand Down Expand Up @@ -63,9 +65,11 @@ jobs:

- name: Test MC1Services
run: |
# The 8 minute kill starts after the build, so compile time is not part of the test budget.
swift build --package-path MC1Services --build-tests
run_tests() {
rm -f "$RUNNER_TEMP/watchdog-fired"
swift test --package-path MC1Services --no-parallel &
swift test --package-path MC1Services --no-parallel --skip-build &
TEST_PID=$!
(
sleep 480
Expand Down
1 change: 1 addition & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
--disable wrapIfStatementBodies # single-line early returns and `if case` checks stay on one line
--disable wrapIfExpressionBodies # same, for if-expression branches
--disable redundantSwiftUIGroup # mis-parses Group(subviews:) into uncompilable code, and strips Groups whose modifiers must not reapply per-child
--disable repeatedGuard # consecutive guards with the same exit stay on their own lines

# Leave file headers untouched
--header ignore
4 changes: 4 additions & 0 deletions MC1/Extensions/ContactType+Display.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ extension ContactType {
case .chat: L10n.Contacts.Contacts.NodeKind.contact
case .repeater: L10n.Contacts.Contacts.NodeKind.repeater
case .room: L10n.Contacts.Contacts.NodeKind.room
case .sensor: L10n.Contacts.Contacts.NodeKind.sensor
}
}

Expand All @@ -16,6 +17,7 @@ extension ContactType {
case .chat: "person.fill"
case .repeater: "antenna.radiowaves.left.and.right"
case .room: "person.3.fill"
case .sensor: "sensor"
}
}

Expand All @@ -24,6 +26,7 @@ extension ContactType {
case .chat: .blue
case .repeater: .green
case .room: .purple
case .sensor: .gray
}
}

Expand All @@ -32,6 +35,7 @@ extension ContactType {
case .chat: .contactChat
case .repeater: .contactRepeater
case .room: .contactRoom
case .sensor: .contactSensor
}
}
}
3 changes: 3 additions & 0 deletions MC1/Extensions/Errors/Error+UserFacingMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ extension Error {
case let error as AppBackupError: error.userFacingMessage
case let error as BLEError: error.userFacingMessage
case let error as ConnectionError: error.userFacingMessage
case let error as IdentityImportRecoveryRequired:
L10n.Settings.ConfigImport.identityOutcomeUnknown(error.recovery.sourceName)
case let error as ConnectionRequestFailure: error.underlying.userFacingMessage
case let error as WiFiTransportError: error.userFacingMessage
case let error as AccessorySetupKitError: error.userFacingMessage
case let error as ContactServiceError: error.userFacingMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extension MessageServiceError {
L10n.Localizable.Error.MessageService.contactNotFound
case .channelNotFound:
L10n.Localizable.Error.MessageService.channelNotFound
case .sendFailed:
case .sendFailed, .persistenceError:
L10n.Localizable.Error.MessageService.sendFailed
case .invalidRecipient:
L10n.Localizable.Error.MessageService.invalidRecipient
Expand Down
8 changes: 8 additions & 0 deletions MC1/Extensions/Errors/RemoteNodeError+UserFacingMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ extension RemoteNodeError {
/// package-level `errorDescription` stays the developer-facing fallback.
var userFacingMessage: String {
switch self {
case .invalidPasswordLength:
L10n.Localizable.Error.RemoteNode.invalidPasswordLength(ProtocolLimits.maxRemotePasswordBytes)
case .invalidSensorSetting:
L10n.Localizable.Error.RemoteNode.invalidSensorSetting
case .sensorSettingRejected:
L10n.Localizable.Error.RemoteNode.sensorSettingRejected
case .sensorOutcomeUnknown:
L10n.Localizable.Error.RemoteNode.sensorOutcomeUnknown
case .notConnected:
L10n.Localizable.Error.RemoteNode.notConnected
case .loginFailed:
Expand Down
12 changes: 12 additions & 0 deletions MC1/Extensions/IdentityImportRecovery+Presentation.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import MC1Services

extension IdentityImportRecovery {
var targetDescription: String {
switch capturedConnectionMethod {
case let .bluetooth(peripheralUUID, _):
"\(L10n.Settings.Bluetooth.header): \(peripheralUUID.uuidString)"
case let .wifi(host, port, _):
"\(L10n.Settings.Connection.Link.wifi): \(host):\(port)"
}
}
}
12 changes: 6 additions & 6 deletions MC1/Extensions/View+LiquidGlass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,11 @@ extension View {
}
}

/// Drop-in replacement for `Menu` that works around an iPadOS 26 Liquid Glass bug
/// where toolbar Menus leave a ghost box after dismissal.
///
/// On iOS 26+, renders the label as a plain view with an invisible interactive `Menu`
/// overlay, so the glass morph animation has nothing visible to ghost.
/// On earlier iOS versions, uses a standard `Menu`.
/// On iOS 26 the menu label is a clear rectangle under `colorMultiply(.clear)`.
/// The glass morph has no icon to follow, and dismissal leaves no leftover glass box.
/// `accessibilityLabel` names the menu; the visible label is hidden from VoiceOver.
struct ToolbarMenu<Content: View, LabelView: View>: View {
let accessibilityLabel: String
@ViewBuilder let content: Content
@ViewBuilder let label: LabelView

Expand All @@ -105,9 +103,11 @@ struct ToolbarMenu<Content: View, LabelView: View>: View {
.contentShape(Rectangle())
}
.colorMultiply(.clear)
.accessibilityLabel(accessibilityLabel)
}
} else {
Menu { content } label: { label }
.accessibilityLabel(accessibilityLabel)
}
}
}
Expand Down
6 changes: 2 additions & 4 deletions MC1/Intents/AppState+IntentRefresh.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ func shouldPublishRecipientIDs(
currentRadioID: UUID?,
fresh: Set<String>
) -> Bool {
guard let capturedRadioID, capturedRadioID == currentRadioID else { return false }
guard fresh == captured else { return false }
guard let capturedRadioID, capturedRadioID == currentRadioID, fresh == captured else { return false }
return captured != previous
}

Expand Down Expand Up @@ -44,8 +43,7 @@ extension AppState {
fresh = []
}

guard !Task.isCancelled, connectionManager.services === expectedServices else { return }
guard shouldPublishRecipientIDs(
guard !Task.isCancelled, connectionManager.services === expectedServices, shouldPublishRecipientIDs(
previous: lastPublishedRecipientIDs,
capturedRadioID: capturedRadioID,
captured: captured,
Expand Down
2 changes: 1 addition & 1 deletion MC1/Intents/SendMessageIntent+Routing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ extension SendMessageIntent {
case .invalidRecipient, .contactNotFound, .channelNotFound: .invalidRecipient
case .messageTooLong: .messageTooLong
case let .sessionError(underlying): .sessionError(underlying)
case .sendFailed: .sendFailed
case .sendFailed, .persistenceError: .sendFailed
}
case let serviceError as ChannelServiceError:
switch serviceError {
Expand Down
35 changes: 6 additions & 29 deletions MC1/Intents/SendMessageIntent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,46 +153,23 @@ struct SendMessageIntent: AppIntent {
let nodeNameByteCount = appState.connectedDevice?.nodeName.utf8.count ?? 0
try validate(message: message, for: recipient, nodeNameByteCount: nodeNameByteCount)

let pending: MessageDTO
let admission: ChatSendAdmission
do {
switch recipient {
case let .contact(dto):
pending = try await services.messageService.createPendingMessage(text: message, to: dto)
admission = try await services.chatSendQueueService.enqueueDirectMessage(text: message, to: dto)
case let .channel(dto):
pending = try await services.messageService.createPendingChannelMessage(
admission = try await services.chatSendQueueService.enqueueChannelMessage(
text: message,
channelIndex: dto.index,
radioID: dto.radioID
to: dto,
localNodeName: appState.connectedDevice?.nodeName
)
}
} catch {
throw mapToIntentError(error)
}

do {
switch recipient {
case let .contact(dto):
try await services.chatSendQueueService.enqueueDM(
DirectMessageEnvelope(messageID: pending.id, contactID: dto.id)
)
case let .channel(dto):
try await services.chatSendQueueService.enqueueChannel(
ChannelMessageEnvelope(
messageID: pending.id,
channelIndex: dto.index,
isResend: false,
messageText: pending.text,
messageTimestamp: pending.timestamp,
localNodeName: appState.connectedDevice?.nodeName
)
)
}
} catch {
// The row is already persisted as `.pending`, but the enqueue write
// failed so no `PendingSend` backs it and the drain never sends it.
// Mark it `.failed` so it surfaces a retry instead of hanging pending,
// the same recovery the chat send path performs.
_ = try? await services.dataStore.updateMessageStatusUnlessDelivered(id: pending.id, status: .failed)
if case let .enqueueFailed(_, error) = admission {
throw mapToIntentError(error)
}
// A headless send never crosses the chat view model that an in-app send
Expand Down
2 changes: 2 additions & 0 deletions MC1/MC1App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ struct MC1App: App {
private let pendingExternalURL = PendingExternalURL()

init() {
MacSuspendLockMarker.markIfNeeded()
OfflineMapNetwork.configure()
// Register the bridge synchronously here: a background-launched intent
// runs only `App.init` (no scene, no `.task`), so a deferred
Expand Down Expand Up @@ -198,6 +199,7 @@ struct MC1App: App {
}

private func handleScenePhaseChange(from oldPhase: ScenePhase, to newPhase: ScenePhase) {
MacSuspendLockMarker.markIfNeeded()
appState.logToolbarResumeProbe(
source: "scenePhase",
scene: "\(scenePhaseName(oldPhase))->\(scenePhaseName(newPhase))"
Expand Down
26 changes: 26 additions & 0 deletions MC1/Models/WhatsNew/WhatsNewCatalog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,32 @@ import Foundation
/// release as one `WhatsNewRelease` plus its `L10n` strings; it presents once on upgrade.
enum WhatsNewCatalog {
static let releases: [WhatsNewRelease] = [
WhatsNewRelease(
version: WhatsNewVersion(major: 1, minor: 7),
items: [
WhatsNewItem(
symbol: "line.3.horizontal.decrease",
title: L10n.WhatsNew.WhatsNew.BlocksAndFilters.title,
description: L10n.WhatsNew.WhatsNew.BlocksAndFilters.description
),
WhatsNewItem(
symbol: "paperplane",
title: L10n.WhatsNew.WhatsNew.DirectMessages.title,
description: L10n.WhatsNew.WhatsNew.DirectMessages.description
),
WhatsNewItem(
symbol: "gauge.with.dots.needle.67percent",
title: L10n.WhatsNew.WhatsNew.NodeTelemetry.title,
description: L10n.WhatsNew.WhatsNew.NodeTelemetry.description
),
WhatsNewItem(
symbol: "platter.filled.bottom.and.arrow.down.iphone",
title: L10n.WhatsNew.WhatsNew.LiveActivity.title,
description: L10n.WhatsNew.WhatsNew.LiveActivity.description
)
],
releaseNotesURL: URL(string: "https://github.com/Avi0n/MeshCoreOne/releases/tag/v1.7.0")!
),
WhatsNewRelease(
version: WhatsNewVersion(major: 1, minor: 6),
items: [
Expand Down
Loading
Loading