mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-05 22:36:34 +00:00
feat(healthchat): show profile fields on profile screens
Renderer slot in UserProfileView (all three profile screens) shows specialty, practice, address, contact links and further info from the HealthChat API, with inline retry on failure.
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (c) 2026 Novaloop AG
|
||||
* Copyright (c) 2026 Element Creations Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.healthchat.api
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import io.element.android.libraries.matrix.api.core.UserId
|
||||
|
||||
/**
|
||||
* Renders the HealthChat profile fields (specialty, practice, contact details, …) for a user.
|
||||
*
|
||||
* Injected into the upstream profile screens as a slot so the fork's only upstream diff is
|
||||
* one defaulted parameter plus the injection (same pattern as `InvitePeopleRenderer`).
|
||||
*/
|
||||
interface HealthChatProfileSectionRenderer {
|
||||
@Composable
|
||||
fun Render(
|
||||
userId: UserId,
|
||||
isCurrentUser: Boolean,
|
||||
modifier: Modifier,
|
||||
)
|
||||
}
|
||||
@@ -11,4 +11,13 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="UnusedResources">
|
||||
<string name="healthchat_error_network">Ein Netzwerkfehler ist aufgetreten. Bitte prüfen Sie Ihre Verbindung und versuchen Sie es erneut.</string>
|
||||
<string name="healthchat_error_unknown">Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.</string>
|
||||
<string name="healthchat_field_specialty">Fachgebiet</string>
|
||||
<string name="healthchat_field_practice_name">Praxis / Unternehmen</string>
|
||||
<string name="healthchat_field_address">Adresse</string>
|
||||
<string name="healthchat_field_business_email">E-Mail (geschäftlich)</string>
|
||||
<string name="healthchat_field_business_tel">Telefon (geschäftlich)</string>
|
||||
<string name="healthchat_field_website">Webseite</string>
|
||||
<string name="healthchat_field_further_info">Weitere Infos / Qualifikationen</string>
|
||||
<string name="healthchat_profile_error_loading">Die HealthChat-Profildaten konnten nicht geladen werden.</string>
|
||||
<string name="healthchat_profile_not_approved_hint">Profildetails sind sichtbar, sobald Ihr Konto freigegeben ist.</string>
|
||||
</resources>
|
||||
|
||||
@@ -11,4 +11,13 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="UnusedResources">
|
||||
<string name="healthchat_error_network">Une erreur réseau est survenue. Veuillez vérifier votre connexion et réessayer.</string>
|
||||
<string name="healthchat_error_unknown">Une erreur est survenue. Veuillez réessayer.</string>
|
||||
<string name="healthchat_field_specialty">Spécialité</string>
|
||||
<string name="healthchat_field_practice_name">Cabinet / Entreprise</string>
|
||||
<string name="healthchat_field_address">Adresse</string>
|
||||
<string name="healthchat_field_business_email">E-mail (professionnel)</string>
|
||||
<string name="healthchat_field_business_tel">Téléphone (professionnel)</string>
|
||||
<string name="healthchat_field_website">Site web</string>
|
||||
<string name="healthchat_field_further_info">Informations complémentaires / qualifications</string>
|
||||
<string name="healthchat_profile_error_loading">Les détails du profil HealthChat n’ont pas pu être chargés.</string>
|
||||
<string name="healthchat_profile_not_approved_hint">Les détails du profil seront visibles dès que votre compte aura été approuvé.</string>
|
||||
</resources>
|
||||
|
||||
@@ -11,4 +11,13 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="UnusedResources">
|
||||
<string name="healthchat_error_network">Si è verificato un errore di rete. Controlla la connessione e riprova.</string>
|
||||
<string name="healthchat_error_unknown">Qualcosa è andato storto. Riprova.</string>
|
||||
<string name="healthchat_field_specialty">Specializzazione</string>
|
||||
<string name="healthchat_field_practice_name">Studio / Azienda</string>
|
||||
<string name="healthchat_field_address">Indirizzo</string>
|
||||
<string name="healthchat_field_business_email">E-mail (professionale)</string>
|
||||
<string name="healthchat_field_business_tel">Telefono (professionale)</string>
|
||||
<string name="healthchat_field_website">Sito web</string>
|
||||
<string name="healthchat_field_further_info">Ulteriori informazioni / qualifiche</string>
|
||||
<string name="healthchat_profile_error_loading">Impossibile caricare i dettagli del profilo HealthChat.</string>
|
||||
<string name="healthchat_profile_not_approved_hint">I dettagli del profilo saranno visibili non appena il tuo account sarà stato approvato.</string>
|
||||
</resources>
|
||||
|
||||
@@ -12,4 +12,13 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="UnusedResources">
|
||||
<string name="healthchat_error_network">A network error occurred. Please check your connection and try again.</string>
|
||||
<string name="healthchat_error_unknown">Something went wrong. Please try again.</string>
|
||||
<string name="healthchat_field_specialty">Specialty</string>
|
||||
<string name="healthchat_field_practice_name">Practice / Company</string>
|
||||
<string name="healthchat_field_address">Address</string>
|
||||
<string name="healthchat_field_business_email">Email (business)</string>
|
||||
<string name="healthchat_field_business_tel">Phone (business)</string>
|
||||
<string name="healthchat_field_website">Website</string>
|
||||
<string name="healthchat_field_further_info">Further info / qualifications</string>
|
||||
<string name="healthchat_profile_error_loading">The HealthChat profile details couldn’t be loaded.</string>
|
||||
<string name="healthchat_profile_not_approved_hint">Profile details become visible once your account has been approved.</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user