Skip to content

Commit

Permalink
Merge pull request #404 from rebeccaalpert/lightspeed
Browse files Browse the repository at this point in the history
chore(docs): Remove references to Lightspeed
  • Loading branch information
nicolethoen authored Jan 10, 2025
2 parents 1bc43c2 + 9f394dc commit ef74c6b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const ChatbotFooterExample: React.FunctionComponent = () => {
return (
<ChatbotFooter>
<MessageBar onSendMessage={handleSend} hasMicrophoneButton hasAttachButton />
<ChatbotFootnote label="Lightspeed uses AI. Check for mistakes." />
<ChatbotFootnote label="ChatBot uses AI. Check for mistakes." />
</ChatbotFooter>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { ChatbotFootnote } from '@patternfly/chatbot/dist/dynamic/ChatbotFooter'

export const FootnoteDemo: React.FunctionComponent = () => (
<ChatbotFootnote
label="Lightspeed uses AI. Check for mistakes."
label="ChatBot uses AI. Check for mistakes."
popover={{
title: 'Verify accuracy',
description: `While Lightspeed strives for accuracy, there's always a possibility of errors. It's a good practice to verify critical information from reliable sources, especially if it's crucial for decision-making or actions.`,
description: `While ChatBot strives for accuracy, there's always a possibility of errors. It's a good practice to verify critical information from reliable sources, especially if it's crucial for decision-making or actions.`,
bannerImage: {
src: 'https://cdn.dribbble.com/userupload/10651749/file/original-8a07b8e39d9e8bf002358c66fce1223e.gif',
alt: 'Example image for footnote popover'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ import userAvatar from '../Messages/user_avatar.svg';
import patternflyAvatar from '../Messages/patternfly_avatar.jpg';

const footnoteProps = {
label: 'Lightspeed uses AI. Check for mistakes.',
label: 'ChatBot uses AI. Check for mistakes.',
popover: {
title: 'Verify accuracy',
description: `While Lightspeed strives for accuracy, there's always a possibility of errors. It's a good practice to verify critical information from reliable sources, especially if it's crucial for decision-making or actions.`,
description: `While ChatBot strives for accuracy, there's always a possibility of errors. It's a good practice to verify critical information from reliable sources, especially if it's crucial for decision-making or actions.`,
bannerImage: {
src: 'https://cdn.dribbble.com/userupload/10651749/file/original-8a07b8e39d9e8bf002358c66fce1223e.gif',
alt: 'Example image for footnote popover'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export const BasicDemo: React.FunctionComponent = () => {
</div>
)}
<MessageBar onSendMessage={handleSend} hasAttachButton handleAttach={handleAttach} />
<ChatbotFootnote label="Lightspeed uses AI. Check for mistakes." />
<ChatbotFootnote label="ChatBot uses AI. Check for mistakes." />
</ChatbotFooter>
</FileDropZone>
</Chatbot>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export const AttachmentMenuDemo: React.FunctionComponent = () => {
onAttachMenuToggleClick: onToggleClick
}}
/>
<ChatbotFootnote label="Lightspeed uses AI. Check for mistakes." />
<ChatbotFootnote label="ChatBot uses AI. Check for mistakes." />
</ChatbotFooter>
</>
</FileDropZone>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ import userAvatar from '../Messages/user_avatar.svg';
import patternflyAvatar from '../Messages/patternfly_avatar.jpg';

const footnoteProps = {
label: 'Lightspeed uses AI. Check for mistakes.',
label: 'ChatBot uses AI. Check for mistakes.',
popover: {
title: 'Verify accuracy',
description: `While Lightspeed strives for accuracy, there's always a possibility of errors. It's a good practice to verify critical information from reliable sources, especially if it's crucial for decision-making or actions.`,
description: `While ChatBot strives for accuracy, there's always a possibility of errors. It's a good practice to verify critical information from reliable sources, especially if it's crucial for decision-making or actions.`,
bannerImage: {
src: 'https://cdn.dribbble.com/userupload/10651749/file/original-8a07b8e39d9e8bf002358c66fce1223e.gif',
alt: 'Example image for footnote popover'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('ChatbotConversationHistoryNav', () => {
const initialConversations: Conversation[] = [
{
id: '1',
text: 'Lightspeed documentation'
text: 'ChatBot documentation'
}
];

Expand All @@ -25,7 +25,7 @@ describe('ChatbotConversationHistoryNav', () => {
conversations={initialConversations}
/>
);
expect(screen.queryByText('Lightspeed documentation')).toBeInTheDocument();
expect(screen.queryByText('ChatBot documentation')).toBeInTheDocument();
});

it('should display the conversations for grouped conversations', () => {
Expand Down Expand Up @@ -120,7 +120,7 @@ describe('ChatbotConversationHistoryNav', () => {
});

waitFor(() => {
expect(screen.queryByText('Lightspeed documentation')).not.toBeInTheDocument();
expect(screen.queryByText('ChatBot documentation')).not.toBeInTheDocument();
});
});
});

0 comments on commit ef74c6b

Please sign in to comment.