diff --git a/docs/core-checklist-status.md b/docs/core-checklist-status.md index 1b31e68..e374f6c 100644 --- a/docs/core-checklist-status.md +++ b/docs/core-checklist-status.md @@ -31,7 +31,7 @@ Legend: 22. Text Formatting - `PARTIAL` (bold/italic/underline/spoiler/mono/links + strikethrough + quote/code block; toolbar still evolving) 23. Groups - `PARTIAL` (create/add/remove/invite link; join-by-invite and invite permissions covered by integration tests; members API now returns profile fields (`username/name/avatar_url`) and web Chat Info consumes them to avoid extra per-member profile requests; advanced moderation still partial) 24. Roles - `DONE` (owner/admin/member) -25. Admin Rights - `PARTIAL` (delete/pin/edit info + explicit ban APIs for groups/channels including ban list endpoint; web Chat Info now shows searchable `Banned users` with right-click `Unban` action for owner/admin, plus member search and invite-link copy/regenerate actions; integration tests cover channel member read-only, channel admin full-delete, channel message delete-for-all permissions, group profile edit permissions, owner-only role management rules, and admin-visible/member-forbidden ban-list access; remaining UX moderation tools limited) +25. Admin Rights - `PARTIAL` (delete/pin/edit info + explicit ban APIs for groups/channels including ban list endpoint; web Chat Info now shows searchable `Banned users` with right-click `Unban` action for owner/admin, member search, avatars in moderation lists, and invite-link copy/regenerate actions; integration tests cover channel member read-only, channel admin full-delete, channel message delete-for-all permissions, group profile edit permissions, owner-only role management rules, and admin-visible/member-forbidden ban-list access; remaining UX moderation tools limited) 26. Channels - `PARTIAL` (create/post/edit/delete/subscribe/unsubscribe; integration tests now also cover invite-link permissions (member forbidden, admin allowed); UX edge-cases still polishing) 27. Channel Types - `DONE` (public/private) 28. Notifications - `PARTIAL` (browser notifications + mute/settings; chat mute is propagated in chat list payload, honored by web realtime notifications with mention override, and mute toggle now syncs instantly in chat store; backend now emits `chat_updated` after notification mute/unmute for cross-tab consistency; no mobile push infra) diff --git a/web/src/components/ChatInfoPanel.tsx b/web/src/components/ChatInfoPanel.tsx index 4c47d6e..fcd2ca5 100644 --- a/web/src/components/ChatInfoPanel.tsx +++ b/web/src/components/ChatInfoPanel.tsx @@ -578,13 +578,24 @@ export function ChatInfoPanel({ chatId, open, onClose }: Props) { }} type="button" > -

- {user?.name || `user #${member.user_id}`} - {member.role === "owner" ? 👑 owner : null} - {member.role === "admin" ? 👑 admin : null} -

-

@{user?.username || "unknown"}

- {canOpenMemberMenu ?

Right click for actions

: null} +
+ {user?.avatar_url ? ( + avatar + ) : ( +
+ {initialsFromName(user?.name || user?.username || `user ${member.user_id}`)} +
+ )} +
+

+ {user?.name || `user #${member.user_id}`} + {member.role === "owner" ? 👑 owner : null} + {member.role === "admin" ? 👑 admin : null} +

+

@{user?.username || "unknown"}

+ {canOpenMemberMenu ?

Right click for actions

: null} +
+
); })} @@ -680,10 +691,19 @@ export function ChatInfoPanel({ chatId, open, onClose }: Props) { }} type="button" > -
-

{user?.name || `user #${ban.user_id}`}

-

@{user?.username || "unknown"}

-

Right click for actions

+
+ {user?.avatar_url ? ( + avatar + ) : ( +
+ {initialsFromName(user?.name || user?.username || `user ${ban.user_id}`)} +
+ )} +
+

{user?.name || `user #${ban.user_id}`}

+

@{user?.username || "unknown"}

+

Right click for actions

+
Banned