diff --git a/CHANGELOG.md b/CHANGELOG.md index b46806e1..2e74ad30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,4 +24,5 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Reset chat and reload history after data source change ([#194](https://github.com/opensearch-project/dashboards-assistant/pull/194)) - Add experimental feature to support text to visualization ([#218](https://github.com/opensearch-project/dashboards-assistant/pull/218)) - Be compatible with ML configuration index mapping change ([#239](https://github.com/opensearch-project/dashboards-assistant/pull/239)) -- Support context aware alert analysis by reusing incontext insight component([#215](https://github.com/opensearch-project/dashboards-assistant/pull/215)) \ No newline at end of file +- Support context aware alert analysis by reusing incontext insight component([#215](https://github.com/opensearch-project/dashboards-assistant/pull/215)) +Use smaller and compressed variants of buttons and form components ([#250](https://github.com/opensearch-project/dashboards-assistant/pull/250)) \ No newline at end of file diff --git a/public/components/chat_experimental_badge.tsx b/public/components/chat_experimental_badge.tsx index 82e8871f..398420a4 100644 --- a/public/components/chat_experimental_badge.tsx +++ b/public/components/chat_experimental_badge.tsx @@ -6,7 +6,7 @@ import React, { useState } from 'react'; import { EuiPopover, - EuiButtonIcon, + EuiSmallButtonIcon, EuiTitle, EuiHorizontalRule, EuiText, @@ -32,7 +32,7 @@ export const ChatExperimentalBadge = ({ onClick }: ChatExperimentalBadgeProps) = { Please enter a new name for your conversation.

- - - + - + - Go - + ); @@ -318,7 +318,7 @@ export const IncontextInsight = ({ children, httpSetup }: IncontextInsightProps)
- { @@ -28,9 +28,9 @@ export const InviteMessage: React.FC = () => { } actions={ - + Request invite - + } /> ); diff --git a/public/components/notebook/notebook_name_modal.tsx b/public/components/notebook/notebook_name_modal.tsx index 6977af73..6a62c122 100644 --- a/public/components/notebook/notebook_name_modal.tsx +++ b/public/components/notebook/notebook_name_modal.tsx @@ -4,15 +4,15 @@ */ import { - EuiButton, - EuiButtonEmpty, + EuiSmallButton, + EuiSmallButtonEmpty, EuiLink, - EuiFormRow, + EuiCompressedFormRow, EuiModal, EuiModalBody, EuiModalFooter, EuiModalHeader, - EuiFieldText, + EuiCompressedFieldText, EuiModalHeaderTitle, } from '@elastic/eui'; import React, { useState, useCallback } from 'react'; @@ -71,20 +71,20 @@ export const NotebookNameModal = ({ onClose, saveChat }: NotebookNameModalProps) - - + setName(e.target.value)} aria-label="Notebook name input" /> - + - + Cancel - - + Confirm name - + diff --git a/public/tabs/chat/chat_page_content.tsx b/public/tabs/chat/chat_page_content.tsx index 89f518cc..253a52da 100644 --- a/public/tabs/chat/chat_page_content.tsx +++ b/public/tabs/chat/chat_page_content.tsx @@ -4,7 +4,7 @@ */ import { - EuiButton, + EuiSmallButton, EuiEmptyPrompt, EuiFlexGroup, EuiFlexItem, @@ -69,14 +69,14 @@ export const ChatPageContent: React.FC = React.memo((props body={props.messagesLoadingError.message} titleSize="l" actions={ - Refresh - + } /> diff --git a/public/tabs/chat/messages/message_bubble.tsx b/public/tabs/chat/messages/message_bubble.tsx index 3ffaca74..25a67f8f 100644 --- a/public/tabs/chat/messages/message_bubble.tsx +++ b/public/tabs/chat/messages/message_bubble.tsx @@ -5,7 +5,7 @@ import { EuiAvatar, - EuiButtonIcon, + EuiSmallButtonIcon, EuiCopy, EuiFlexGroup, EuiFlexItem, @@ -184,7 +184,7 @@ export const MessageBubble: React.FC = React.memo((props) => {(copy) => ( - = React.memo((props) => )} {props.showRegenerate && props.interaction?.interaction_id ? ( - props.onRegenerate?.(props.interaction?.interaction_id || '')} title="regenerate message" @@ -211,7 +211,7 @@ export const MessageBubble: React.FC = React.memo((props) => <> {feedbackResult !== false ? ( - = React.memo((props) => ) : null} {feedbackResult !== true ? ( - = React.memo((props) => )} {props.message.interactionId ? ( - { diff --git a/public/tabs/history/chat_history_list.tsx b/public/tabs/history/chat_history_list.tsx index 40b52d2a..db1e4477 100644 --- a/public/tabs/history/chat_history_list.tsx +++ b/public/tabs/history/chat_history_list.tsx @@ -5,7 +5,7 @@ import React, { useCallback } from 'react'; import { - EuiButtonIcon, + EuiSmallButtonIcon, EuiFlexGroup, EuiFlexItem, EuiHorizontalRule, @@ -75,7 +75,7 @@ export const ChatHistoryListItem = ({ - - = React.memo((props {flyoutFullScreen ? ( - -