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:
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 && (
|
{selectedThread && (
|
||||||
<ChatThreadPanel
|
<ChatThreadPanel
|
||||||
thread={selectedThread}
|
|
||||||
rootMessage={messagesInSpace.find((m) => m.id === selectedThread.rootMessageId) ?? null}
|
rootMessage={messagesInSpace.find((m) => m.id === selectedThread.rootMessageId) ?? null}
|
||||||
messages={threadMessages}
|
messages={threadMessages}
|
||||||
attachments={snapshot.chatAttachments}
|
attachments={snapshot.chatAttachments}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { Button, Icon, IconButton } from "../../shared/ui";
|
|||||||
import type {
|
import type {
|
||||||
ChatAttachmentRecord,
|
ChatAttachmentRecord,
|
||||||
ChatMessageRecord,
|
ChatMessageRecord,
|
||||||
ChatThreadRecord,
|
|
||||||
FileObjectRecord,
|
FileObjectRecord,
|
||||||
} from "../../../../shared/domain";
|
} from "../../../../shared/domain";
|
||||||
import { formatTime } from "../types";
|
import { formatTime } from "../types";
|
||||||
@@ -11,7 +10,6 @@ import { ChatMessageRow } from "./ChatMessageRow";
|
|||||||
import { senderName, type MessageContext } from "./chat-helpers";
|
import { senderName, type MessageContext } from "./chat-helpers";
|
||||||
|
|
||||||
export function ChatThreadPanel({
|
export function ChatThreadPanel({
|
||||||
thread,
|
|
||||||
rootMessage,
|
rootMessage,
|
||||||
messages,
|
messages,
|
||||||
attachments,
|
attachments,
|
||||||
@@ -20,7 +18,6 @@ export function ChatThreadPanel({
|
|||||||
onClose,
|
onClose,
|
||||||
onSubmit,
|
onSubmit,
|
||||||
}: {
|
}: {
|
||||||
thread: ChatThreadRecord;
|
|
||||||
rootMessage: ChatMessageRecord | null;
|
rootMessage: ChatMessageRecord | null;
|
||||||
messages: ChatMessageRecord[];
|
messages: ChatMessageRecord[];
|
||||||
attachments: ChatAttachmentRecord[];
|
attachments: ChatAttachmentRecord[];
|
||||||
@@ -78,11 +75,6 @@ export function ChatThreadPanel({
|
|||||||
compact
|
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>
|
</div>
|
||||||
<form onSubmit={onSubmit} style={{ padding: 12, flexShrink: 0 }}>
|
<form onSubmit={onSubmit} style={{ padding: 12, flexShrink: 0 }}>
|
||||||
<div style={{ border: "1px solid var(--border-strong)", borderRadius: 10, background: "var(--panel)", padding: "8px 10px" }}>
|
<div style={{ border: "1px solid var(--border-strong)", borderRadius: 10, background: "var(--panel)", padding: "8px 10px" }}>
|
||||||
|
|||||||
Reference in new issue
Block a user