Remove unused thread status hint from thread panel

The empty-thread "No replies yet." / "Thread {state}" line was status
text — disallowed by the no-status rule — and the design uses the
textarea placeholder "Reply in thread…" for the same affordance. Drop
the line and the now-unused thread prop.
This commit is contained in:
ZacharyZhang-NY committed 2026-05-21 21:12:39 -04:00
1 parent ea3f1cbb94
commit 060fddf852
2 files changed
-9

No files matched your search

@@ -174,7 +174,6 @@ export function ChatPage({ snapshot, actions }: PageProps) {
{selectedThread && (
<ChatThreadPanel
thread={selectedThread}
rootMessage={messagesInSpace.find((m) => m.id === selectedThread.rootMessageId) ?? null}
messages={threadMessages}
attachments={snapshot.chatAttachments}
@@ -3,7 +3,6 @@ import { Button, Icon, IconButton } from "../../shared/ui";
import type {
ChatAttachmentRecord,
ChatMessageRecord,
ChatThreadRecord,
FileObjectRecord,
} from "../../../../shared/domain";
import { formatTime } from "../types";
@@ -11,7 +10,6 @@ import { ChatMessageRow } from "./ChatMessageRow";
import { senderName, type MessageContext } from "./chat-helpers";
export function ChatThreadPanel({
thread,
rootMessage,
messages,
attachments,
@@ -20,7 +18,6 @@ export function ChatThreadPanel({
onClose,
onSubmit,
}: {
thread: ChatThreadRecord;
rootMessage: ChatMessageRecord | null;
messages: ChatMessageRecord[];
attachments: ChatAttachmentRecord[];
@@ -78,11 +75,6 @@ export function ChatThreadPanel({
compact
/>
))}
{messages.length === 0 && (
<div style={{ marginTop: 14, fontSize: 11, color: "var(--text-3)", textAlign: "center" }}>
{thread.state === "open" ? "No replies yet." : `Thread ${thread.state}`}
</div>
)}
</div>
<form onSubmit={onSubmit} style={{ padding: 12, flexShrink: 0 }}>
<div style={{ border: "1px solid var(--border-strong)", borderRadius: 10, background: "var(--panel)", padding: "8px 10px" }}>