- urlGuard: honestHttpUrl answers an http(s) URL only when its written
host is the host the browser opens: no percent-escape, userinfo or
backslash in the authority, no ideographic, fullwidth or halfwidth dot,
fullwidth letter, invisible character or trailing dot in the host, and
exactly two slashes after the scheme; IDN hosts in Unicode pass
- safeUrl allows an http(s) target only through honestHttpUrl, so
renderChatText leaves a deceptive URL as text, bare or labelled
- linkify and messageUrls parse through it, so no card shows a host the
text does not
- tests: urlGuard.test.ts and linkEmbeds cases; the SPA's copied tests
are unchanged
- realtime.ts: the page's one Centrifuge client, setRealtimeAuth, onUserEvent for user:{me} events the chat does not handle
- chatEvents, chatFormat, chatText, chatUnread, format, media, tabs ported; copy passed in localized
- useChat over useState: channels with join and leave, DMs, member list, unread and mention counts, read marks, typing, presence, polling fallback
- ChatPanel, ChatHeader, ChatMessage, ChatDmList, ChatMemberPicker, ChatMentionPopup, ChatAvatar, ChatIcon, ChatNotices
- EN and PL strings