Forum: typing notices, smileys to emoji while typing, no emoji tray
"Holdfény gépel…" shows in threads and private conversations: the page says over the live connection (every few seconds while typing) that its member types, and the forum service passes it to those who may see that place, never back to the typer. The emoji tray is gone (phones have their emoji keyboard); character smileys turn into emoji as they are typed, from a longer list shared with the server (which also converts titles now; <3 is a red heart). Emoji show in colour: the forum's font stack names the systems' colour emoji fonts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -12,6 +12,7 @@ import { Composer } from "./Composer";
|
||||
import { PostBody } from "./PostBody";
|
||||
import type { LiveNotice } from "./ForumNav";
|
||||
import { ReportButton } from "./ReportButton";
|
||||
import { TypingLine, useTypingSender, useTypingWatch } from "./typing";
|
||||
|
||||
/** How often the open thread looks for new replies (while the page is in front). */
|
||||
const POLL_MS = 30_000;
|
||||
@@ -329,6 +330,8 @@ export function ThreadView({ initial }: { initial: ThreadPage }) {
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
// Where the visitor stopped reading when they opened the page.
|
||||
const [readUpTo] = useState(initial.access?.last_read_post_id ?? null);
|
||||
const typingNow = useTypingWatch("thread", initial.thread.id);
|
||||
const imTyping = useTypingSender("thread", initial.thread.id);
|
||||
const composer = useRef<HTMLDivElement>(null);
|
||||
const { viewer, thread, access } = page;
|
||||
const member = viewer.member !== null;
|
||||
@@ -594,6 +597,8 @@ export function ThreadView({ initial }: { initial: ThreadPage }) {
|
||||
</p>
|
||||
)}
|
||||
|
||||
<TypingLine text={typingNow} />
|
||||
|
||||
<div className="ftv-compose" id="valasz" ref={composer}>
|
||||
{thread.deleted ? null : !viewer.logged_in ? (
|
||||
<p className="ftv-gate">
|
||||
@@ -630,6 +635,7 @@ export function ThreadView({ initial }: { initial: ThreadPage }) {
|
||||
</p>
|
||||
)}
|
||||
<Composer
|
||||
onTyping={imTyping}
|
||||
id="valasz-szoveg"
|
||||
label="Válaszod"
|
||||
placeholder={thread.topic.listening ? "Írd le, ami benned van…" : "Írd meg a válaszod…"}
|
||||
|
||||
Reference in New Issue
Block a user