Tooltips für alle Konfigurationsfelder + wählbarer Backup-Ordner

.help(...)-Tooltips auf jedem Eingabefeld/Picker/Toggle in Connect-
sowie allen Einrichten-Schritten (WAN/LAN/VLAN/WLAN/Firewall) --
kurze Erklärung was der Wert bedeutet und welche Auswirkung er hat,
passend zum Laien-Anspruch der App.

Sicherungen-Tab: Speicherort jetzt änderbar (Ordner wählen über
nativen macOS-Dialog, Zurücksetzen auf Standard). BackupService hält
den gewählten Pfad in UserDefaults (BackupService.customDirectoryURL),
fällt ohne Auswahl weiter auf ~/Library/Application Support/... zurück.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HReLXMbmPvtQ23p1iWiJNW
This commit is contained in:
Kay
2026-09-12 20:30:22 +02:00
co-authored by Claude Sonnet 5
parent c1f9940eae
commit 9d1aecc452
10 changed files with 111 additions and 2 deletions
@@ -0,0 +1,20 @@
import XCTest
@testable import RouterOSAssistant
final class BackupServiceTests: XCTestCase {
override func tearDown() {
BackupService.customDirectoryURL = nil
super.tearDown()
}
func testCustomDirectoryDefaultsToNil() {
BackupService.customDirectoryURL = nil
XCTAssertNil(BackupService.customDirectoryURL)
}
func testCustomDirectoryRoundTrips() {
let url = URL(fileURLWithPath: "/tmp/RouterOSAssistantTestBackups", isDirectory: true)
BackupService.customDirectoryURL = url
XCTAssertEqual(BackupService.customDirectoryURL?.path, url.path)
}
}