From c5eddff08424f84b2bfdac400de05380968727fb Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Fri, 3 Apr 2026 00:44:48 +0200 Subject: [PATCH] fix(web): friends page header, button visibility, and status casing --- packages/web/src/components/chat/FriendsPage.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/web/src/components/chat/FriendsPage.tsx b/packages/web/src/components/chat/FriendsPage.tsx index 2a38f627..4b7cb614 100644 --- a/packages/web/src/components/chat/FriendsPage.tsx +++ b/packages/web/src/components/chat/FriendsPage.tsx @@ -19,6 +19,8 @@ import { getPrimaryActivity } from '@backspace/shared/src/activities.js'; import { parseFederatedUsername } from '../../utils/identity'; import { Username } from '../ui/Username'; +const statusLabel: Record = { online: 'Online', idle: 'Idle', dnd: 'Do Not Disturb', offline: 'Offline' }; + type Tab = 'online' | 'all' | 'pending' | 'add' | 'activity'; interface FriendsPageProps { @@ -288,7 +290,7 @@ export function FriendsPage({ mobile }: FriendsPageProps) { Friends ) : ( -
+
@@ -894,17 +896,17 @@ function FriendItem({ friend, onRemove, onDm }: { friend: TaggedFriend, onRemove
{friendDisplayName} - @{friend.username} + @{friend.username}
- {friend.status} + {statusLabel[friend.status] ?? friend.status} {instanceLabel && ( via {instanceLabel} )}
-
+