handoff fixes
This commit is contained in:
parent
89ddebdb60
commit
8d5e9712a6
20 changed files with 1056 additions and 141 deletions
|
|
@ -83,10 +83,26 @@ export default function HandoffConversation({ handoffId, onBack }) {
|
|||
{conversation.messages.map((message) => (
|
||||
<article key={message.id} className={`handoff-message handoff-message-${message.role}`}>
|
||||
<header>
|
||||
<strong>{message.role === "human" ? "HUMAN OWNER" : "AGENT"}</strong>
|
||||
<strong>
|
||||
{message.role === "human"
|
||||
? "HUMAN OWNER"
|
||||
: message.role === "customer"
|
||||
? "CUSTOMER"
|
||||
: "AGENT"}
|
||||
</strong>
|
||||
<time>{formatTime(message.event_at)}</time>
|
||||
</header>
|
||||
<HandoffMessageBody message={message} />
|
||||
{message.role === "human" && message.relay_status === "SENT" && (
|
||||
<p className="handoff-relay-status handoff-relay-status-sent">
|
||||
✓ Sent to customer
|
||||
</p>
|
||||
)}
|
||||
{message.role === "human" && message.relay_status === "FAILED" && (
|
||||
<p className="handoff-relay-status handoff-relay-status-failed">
|
||||
⚠ Could not send to customer
|
||||
</p>
|
||||
)}
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue