feat(healthchat): show default contacts while approval is pending

An unapproved account only gets the server's default contacts, which are
its way to reach support — list them instead of discarding them, and hide
the search field that cannot return anything.
This commit is contained in:
Sedat Qaja
2026-10-09 14:23:39 +02:00
parent 57570df8dd
commit 181c518dc7
8 changed files with 121 additions and 26 deletions
@@ -10,6 +10,8 @@ import Foundation
// swiftlint:disable explicit_type_interface function_parameter_count identifier_name line_length
// swiftlint:disable nesting type_body_length type_name vertical_whitespace_opening_braces
internal nonisolated enum HealthChatL10n {
/// Refresh
internal static var actionRefresh: String { return HealthChatL10n.tr("HealthChat", "action_refresh") }
/// Title
internal static var commonAcademicTitle: String { return HealthChatL10n.tr("HealthChat", "common_academic_title") }
/// Address
@@ -50,6 +52,8 @@ internal nonisolated enum HealthChatL10n {
internal static var screenInviteMemberTitle: String { return HealthChatL10n.tr("HealthChat", "screen_invite_member_title") }
/// Your account is being reviewed. You’ll get access to the member directory once it has been approved.
internal static var screenMemberDirectoryPendingApproval: String { return HealthChatL10n.tr("HealthChat", "screen_member_directory_pending_approval") }
/// Account under review
internal static var screenMemberDirectoryPendingTitle: String { return HealthChatL10n.tr("HealthChat", "screen_member_directory_pending_title") }
/// Name, practice, city or speciality
internal static var screenMemberDirectorySearchPlaceholder: String { return HealthChatL10n.tr("HealthChat", "screen_member_directory_search_placeholder") }
/// Members