Skip to content

Commit 9c322bb

Browse files
committed
chore: 1
1 parent 636a48d commit 9c322bb

File tree

1 file changed

+38
-17
lines changed

1 file changed

+38
-17
lines changed

packages/paste-website/src/components/assistant/AssistantCanvas.tsx

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useIsMutating, useQuery } from "@tanstack/react-query";
2+
import { AIChatLog } from "@twilio-paste/ai-chat-log";
23
import { Box } from "@twilio-paste/box";
3-
import { ChatBookend, ChatBookendItem, ChatLog } from "@twilio-paste/chat-log";
4+
import { Text } from "@twilio-paste/text";
45
import * as React from "react";
56
import { useShallow } from "zustand/react/shallow";
67

@@ -62,29 +63,49 @@ export const AssistantCanvas: React.FC<AssistantCanvasProps> = ({ selectedThread
6263
<Box ref={scrollerRef} tabIndex={0} overflowY="auto">
6364
<Box maxWidth="1000px" marginX="auto">
6465
{activeRun != null && <AssistantMessagePoller />}
65-
<ChatLog ref={loggerRef}>
66-
<ChatBookend>
67-
<ChatBookendItem>
68-
Welcome to the Paste Design System Assistant! We&apos;re excited to have you here.
69-
</ChatBookendItem>
70-
</ChatBookend>
71-
<ChatBookend>
72-
<ChatBookendItem>
73-
Keep in mind that this is an experimental tool and so the information provided{" "}
74-
<strong>may not be entirely accurate</strong>.
75-
</ChatBookendItem>
76-
<ChatBookendItem>
77-
Your conversations are not used to train OpenAI&apos;s models, but are stored by OpenAI.
78-
</ChatBookendItem>
79-
</ChatBookend>
66+
<AIChatLog ref={loggerRef}>
67+
<Text
68+
as="div"
69+
color="colorTextWeak"
70+
fontSize="fontSize20"
71+
lineHeight="lineHeight20"
72+
fontWeight="fontWeightMedium"
73+
textAlign="center"
74+
>
75+
Welcome to the Paste Design System Assistant! We&apos;re excited to have you here.
76+
</Text>
77+
<Text
78+
as="div"
79+
color="colorTextWeak"
80+
fontSize="fontSize20"
81+
lineHeight="lineHeight20"
82+
fontWeight="fontWeightMedium"
83+
textAlign="center"
84+
>
85+
Keep in mind that this is an experimental tool and so the information provided{" "}
86+
<Text as="div" fontWeight="fontWeightBold">
87+
may not be entirely accurate
88+
</Text>
89+
.
90+
</Text>
91+
<Text
92+
as="div"
93+
color="colorTextWeak"
94+
fontSize="fontSize20"
95+
lineHeight="lineHeight20"
96+
fontWeight="fontWeightMedium"
97+
textAlign="center"
98+
>
99+
Your conversations are not used to train OpenAI&apos;s models, but are stored by OpenAI.
100+
</Text>
80101
{messages?.map((threadMessage): React.ReactNode => {
81102
if (threadMessage.role === "assistant") {
82103
return <AssistantMessage key={threadMessage.id} threadMessage={threadMessage} />;
83104
}
84105
return <UserMessage key={threadMessage.id} threadMessage={threadMessage} />;
85106
})}
86107
{(isCreatingAResponse || activeRun != null) && <LoadingMessage maxWidth={logWidth} />}
87-
</ChatLog>
108+
</AIChatLog>
88109
</Box>
89110
</Box>
90111
);

0 commit comments

Comments
 (0)