Skip to content

Commit

Permalink
(DOCSP-32759) [UI] Use text instead of a banner for "validate answers" (
Browse files Browse the repository at this point in the history
  • Loading branch information
nlarew authored Aug 31, 2023
1 parent 1be4087 commit 302b3c7
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions chat-ui/src/Chatbot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ const styles = {
chatbot_input_menu: css`
z-index: 1;
`,
verify_information: css`
text-align: center;
`,
};

const MAX_INPUT_CHARACTERS = 300;
Expand Down Expand Up @@ -504,8 +507,6 @@ function ChatbotModal({
<ErrorBanner message={conversation.error} />
) : null}

<VerifyInformationBanner />

{!conversation.error ? (
<InputBar
ref={inputBarRef}
Expand Down Expand Up @@ -534,6 +535,11 @@ function ChatbotModal({

{inputTextError ? <ErrorText>{inputTextError}</ErrorText> : null}

<Body className={styles.verify_information}>
This is an experimental generative AI chatbot. All information
should be verified prior to use.
</Body>

<ConversationIdInfo conversation={conversation} />
</div>
</div>
Expand Down Expand Up @@ -577,15 +583,6 @@ function ErrorBanner({
);
}

function VerifyInformationBanner() {
return (
<Banner variant="warning">
This is an experimental generative AI chatbot. All information should be
verified prior to use.
</Banner>
);
}

function ConversationIdInfo({ conversation }: { conversation: Conversation }) {
return import.meta.env.VITE_QA === "true" ? (
<div className={styles.conversation_id_info}>
Expand Down

0 comments on commit 302b3c7

Please sign in to comment.