Update terminology to be more human-friendly

- Change 'nick:' to 'name:' in the UI
- Replace 'peer/peers' with 'person/people' throughout
- Update 'No peers connected' to 'No people connected'
- Fix menu layout with fixedSize()
- Update debug messages to use 'people' instead of 'peers'
This commit is contained in:
jack
2025-07-02 21:25:35 +02:00
parent b517cb7cc3
commit d67e11cdab
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ class BluetoothMeshService: NSObject {
print("[DEBUG] Cannot scan - central not powered on")
return
}
print("[DEBUG] Starting scan for peers...")
print("[DEBUG] Starting scan for people...")
centralManager.scanForPeripherals(withServices: [BluetoothMeshService.serviceUUID], options: [CBCentralManagerScanOptionAllowDuplicatesKey: false])
}
+5 -4
View File
@@ -118,7 +118,7 @@ struct ContentView: View {
Spacer()
HStack(spacing: 4) {
Text("nick:")
Text("name:")
.font(.system(size: 11, design: .monospaced))
.foregroundColor(secondaryTextColor)
@@ -144,13 +144,13 @@ struct ContentView: View {
private var peerStatusView: some View {
Menu {
if viewModel.connectedPeers.isEmpty {
Text("No peers connected")
Text("No people connected")
.font(.system(size: 12, design: .monospaced))
} else {
let peerNicknames = viewModel.meshService.getPeerNicknames()
let myPeerID = viewModel.meshService.myPeerID
ForEach(viewModel.connectedPeers.filter { $0 != myPeerID }.sorted(), id: \.self) { peerID in
let displayName = peerNicknames[peerID] ?? "peer-\(peerID.prefix(4))"
let displayName = peerNicknames[peerID] ?? "person-\(peerID.prefix(4))"
Button(action: {
// Only allow private chat if peer has announced
if peerNicknames[peerID] != nil {
@@ -183,7 +183,7 @@ struct ContentView: View {
}
// Text
Text(viewModel.isConnected ? "\(viewModel.connectedPeers.count) \(viewModel.connectedPeers.count == 1 ? "peer" : "peers")" : "scanning")
Text(viewModel.isConnected ? "\(viewModel.connectedPeers.count) \(viewModel.connectedPeers.count == 1 ? "person" : "people")" : "scanning")
.font(.system(size: 14, design: .monospaced))
.foregroundColor(viewModel.isConnected ? textColor : Color.red)
@@ -195,6 +195,7 @@ struct ContentView: View {
}
.menuStyle(.borderlessButton)
.menuIndicator(.hidden)
.fixedSize()
}
private var messagesView: some View {