From 01eb96c841be6c4c0e3f9455e53b84a286a4b5a4 Mon Sep 17 00:00:00 2001 From: spacedandy-agents-simplex <342056592+spacedandy-agents-simplex@users.noreply.github.com> Date: Thu, 15 Oct 2026 16:37:05 +0000 Subject: [PATCH] ios: show "Show more" in the secondary colour while the next page loads The row was disabled while loading but kept its primary colour, so it looked tappable. The Kotlin app already does this. --- apps/ios/Shared/Views/ChatList/DirectorySearchView.swift | 2 +- apps/ios/spec/client/chat-list.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ios/Shared/Views/ChatList/DirectorySearchView.swift b/apps/ios/Shared/Views/ChatList/DirectorySearchView.swift index 71f3183cf0..3f7622d106 100644 --- a/apps/ios/Shared/Views/ChatList/DirectorySearchView.swift +++ b/apps/ios/Shared/Views/ChatList/DirectorySearchView.swift @@ -282,7 +282,7 @@ struct DirectoryShowMoreRow: View { Task { await onlineSearch.loadMore() } } label: { Text("Show more") - .foregroundColor(theme.colors.primary) + .foregroundColor(onlineSearch.loading ? theme.colors.secondary : theme.colors.primary) } .disabled(onlineSearch.loading) } diff --git a/apps/ios/spec/client/chat-list.md b/apps/ios/spec/client/chat-list.md index bcb12ec966..bc08b00404 100644 --- a/apps/ios/spec/client/chat-list.md +++ b/apps/ios/spec/client/chat-list.md @@ -416,7 +416,7 @@ Each part renders only when it has rows: the Names part when `rows.names` is not | Name | [`NameSearchRow`](../../Shared/Views/ChatList/DirectorySearchView.swift#L249): avatar, profile name in bold, the SimpleX name in parentheses (secondary), description (2 lines) | `planAndConnect(result.target, dismiss: false)` | | Directory entry | [`DirectorySearchRow`](../../Shared/Views/ChatList/DirectorySearchView.swift#L196): avatar, `#` + name, the directory's SimpleX name claim as plain text, description (2 lines), member or subscriber count, and the verb "Join channel" / "Join group" (one line, fixed size) | `planAndConnect(result.entry.link, dismiss: false)` | | Retry | [`DirectoryRetryRow`](../../Shared/Views/ChatList/DirectorySearchView.swift#L291) via [`directoryRetryRow()`](../../Shared/Views/ChatList/ChatListView.swift#L695): "Search failed, tap to retry" | `retry()` | -| Show more | [`DirectoryShowMoreRow`](../../Shared/Views/ChatList/DirectorySearchView.swift#L276) via [`directoryShowMoreRow()`](../../Shared/Views/ChatList/ChatListView.swift#L689): "Show more", disabled while `loading` | `loadMore()` | +| Show more | [`DirectoryShowMoreRow`](../../Shared/Views/ChatList/DirectorySearchView.swift#L276) via [`directoryShowMoreRow()`](../../Shared/Views/ChatList/ChatListView.swift#L689): "Show more", disabled and in the secondary colour while `loading` | `loadMore()` | A name or directory row tap first sets `searchFocussed = false`. Text from the directory and from name owners is rendered with `Text(String)` / `Text(verbatim:)` (never parsed as markdown) with line limits.