Add a member directory tab (#11)

* Add HealthChat API and extended profile services

Expose OpenID tokens and homeserver credentials from the client proxy, and
add fork-only services for the HealthChat member directory backend
(api.healthchat.ch) plus a service that reads MSC4133 extended profile
fields directly from the homeserver. Groundwork for the members tab and
the profile screens.

Claude-Session: https://claude.ai/code/session_013qdTbAWsZj2quQzEkagXaS

* Show extended profile details on the profile screens

Add a UserProfileScreenHook that lets the fork inject an extra Form
section below the header of the user profile and room member details
screens. The HealthChat implementation loads the MSC4133 extended
profile fields and renders them with tappable phone/email/website
links, hiding the section entirely for profiles without any fields.

Strings live in a new fork-only HealthChat.strings table (de/en/fr,
generated as HealthChatL10n via SwiftGen) since Untranslated.strings
pins the English bundle.

Claude-Session: https://claude.ai/code/session_013qdTbAWsZj2quQzEkagXaS

* Add a member directory tab

Add a HomeTabsHook that lets the fork append an extra tab to the home
tab bar, and a HealthChat members flow behind it: a directory of all
approved members from the HealthChat API with server-side search,
pending-approval and error states, chat shortcuts and pushed member
profiles. Chats and calls are handed back to the session flow via the
hook's actions publisher.

Claude-Session: https://claude.ai/code/session_013qdTbAWsZj2quQzEkagXaS
This commit is contained in:
2026-09-22 17:03:28 +02:00
parent 352d25f2bb
commit 93149f1cbd
33 changed files with 954 additions and 1 deletions
@@ -347,6 +347,13 @@ extension PreviewTests {
}
}
@Test
func healthChatMemberDirectoryScreen() async throws {
for (index, preview) in HealthChatMemberDirectoryScreen_Previews._allPreviews.enumerated() {
try await assertSnapshots(matching: preview, step: index)
}
}
@Test
func highlightedTimelineItemModifier() async throws {
for (index, preview) in HighlightedTimelineItemModifier_Previews._allPreviews.enumerated() {
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1330bdf08030ca860724fd5c2f65033004dd42c066fc8617ff8d00954bad83c8
size 79809
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca1253d8529e3c7ca8541d8e9b4533680496e97fed4d0783a48998cb01137821
size 81699
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:91247aee8564f70018e5ef3fe17966fc2111d1c1a1f910e8ea382657320adf43
size 39454
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:736ba40f231684e1a886bc5aac2ca14002f0d73329c25bc3786f6733c09e310c
size 42377
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:835f7263895535cfec1d671cedeb84751be94545c1ca3670e55ee8d1e09b2bf7
size 115087
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d45d4bce9720d2953fc778eb008fd5a126a45cf01ecf9eeb98ad2ef203733ed
size 117358
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f5f4c69f3edb9af10ce7286084d969b67d949c5d3499d3ef49eb1b82caa19a7
size 68274
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a52d8441c8052e6b633dbf0aba62d55912ab177008764b06d65c99420a002085
size 69205
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:de8ee6d4ea64a8bbec86e011b8d6ff507ed1f0c8664e5f2b50c2e25f8e089525
size 85969
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:de8ee6d4ea64a8bbec86e011b8d6ff507ed1f0c8664e5f2b50c2e25f8e089525
size 85969
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:67522686b52a4479ea55eb1a202e516236ce40c7277112ca77e3c86d9ba565a6
size 50652
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:67522686b52a4479ea55eb1a202e516236ce40c7277112ca77e3c86d9ba565a6
size 50652