Minor Query History Fix (#2594)

This commit is contained in:
Yuhong Sun
2024-09-29 10:54:08 -07:00
committed by GitHub
parent ff8db71cb5
commit 5679f0af61

View File

@@ -45,7 +45,9 @@ function MessageDisplay({ message }: { message: MessageSnapshot }) {
<div className="mt-2">
<Bold className="font-bold text-xs">Feedback</Bold>
{message.feedback_text && <Text>{message.feedback_text}</Text>}
<FeedbackBadge feedback={message.feedback_type} />
<div className="mt-1">
<FeedbackBadge feedback={message.feedback_type} />
</div>
</div>
)}
<Divider />
@@ -84,7 +86,8 @@ export default function QueryPage({ params }: { params: { id: string } }) {
<Title>Chat Session Details</Title>
<Text className="flex flex-wrap whitespace-normal mt-1 text-xs">
{chatSessionSnapshot.user_email || "-"},{" "}
{chatSessionSnapshot.user_email &&
`${chatSessionSnapshot.user_email}, `}
{timestampToReadableDate(chatSessionSnapshot.time_created)},{" "}
{chatSessionSnapshot.flow_type}
</Text>