Skip to content

Commit

Permalink
from code review, only show Initializing if there are no trace events
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson committed Sep 25, 2024
1 parent 3fafca4 commit 61767a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ export const SynapseChat: React.FunctionComponent<SynapseChatProps> = ({
placement="bottom"
title={
<div style={{ textAlign: 'center' }}>
<Typography>Initializing...</Typography>
{allTraceEvents.length == 0 && (
<Typography>Initializing...</Typography>
)}
{allTraceEvents.map((event, index) => {
return (
<Typography key={`${index}-${event.message}`}>
Expand Down
3 changes: 2 additions & 1 deletion packages/synapse-react-client/src/mocks/chat/mockChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ export const mockTraceEventsResponse3: TraceEventsResponse = {
page: [
{
timestamp: 1695567800, // Example timestamp (in seconds)
message: 'Combining search results and entity metadata',
message:
'<thinking>The metadata shows that the entity with ID syn9602623 is a Synapse project named "SearchIntegrationTest.Projecte475c6e8-414a-4842-b876-bf8232ce05d0". Its description contains the search term "e7b33c3a-2392-4ce7-a357-efa4612e4a41". The metadata ...',
},
],
}
Expand Down

0 comments on commit 61767a4

Please sign in to comment.