From 52fc4ec5d80877c048f7ca91ed2d5ad9f551ce2f Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Tue, 21 Nov 2023 16:40:42 -0800 Subject: [PATCH] Improve Restart messaging --- src/apps/chat/components/message/ChatMessage.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/apps/chat/components/message/ChatMessage.tsx b/src/apps/chat/components/message/ChatMessage.tsx index 37e37112e..be07ff2af 100644 --- a/src/apps/chat/components/message/ChatMessage.tsx +++ b/src/apps/chat/components/message/ChatMessage.tsx @@ -3,7 +3,7 @@ import TimeAgo from 'react-timeago'; import { shallow } from 'zustand/shallow'; import { cleanupEfficiency, Diff as TextDiff, makeDiff } from '@sanity/diff-match-patch'; -import { Avatar, Badge, Box, Button, CircularProgress, IconButton, ListDivider, ListItem, ListItemDecorator, MenuItem, Stack, Switch, Tooltip, Typography } from '@mui/joy'; +import { Avatar, Box, Button, CircularProgress, IconButton, ListDivider, ListItem, ListItemDecorator, MenuItem, Stack, Switch, Tooltip, Typography } from '@mui/joy'; import { SxProps } from '@mui/joy/styles/types'; import AccountTreeIcon from '@mui/icons-material/AccountTree'; import ClearIcon from '@mui/icons-material/Clear'; @@ -11,7 +11,6 @@ import ContentCopyIcon from '@mui/icons-material/ContentCopy'; import DifferenceIcon from '@mui/icons-material/Difference'; import EditIcon from '@mui/icons-material/Edit'; import Face6Icon from '@mui/icons-material/Face6'; -import FastForwardIcon from '@mui/icons-material/FastForward'; import ForkRightIcon from '@mui/icons-material/ForkRight'; import FormatPaintIcon from '@mui/icons-material/FormatPaint'; import MoreVertIcon from '@mui/icons-material/MoreVert'; @@ -20,6 +19,7 @@ import RecordVoiceOverIcon from '@mui/icons-material/RecordVoiceOver'; import ReplayIcon from '@mui/icons-material/Replay'; import SettingsSuggestIcon from '@mui/icons-material/SettingsSuggest'; import SmartToyOutlinedIcon from '@mui/icons-material/SmartToyOutlined'; +import TelegramIcon from '@mui/icons-material/Telegram'; import { CloseableMenu } from '~/common/components/CloseableMenu'; import { DMessage } from '~/common/state/store-chats'; @@ -579,9 +579,9 @@ export function ChatMessage(props: { {!!props.onConversationRestartFrom && ( - {fromAssistant ? : } + {fromAssistant ? : } {!fromAssistant - ? <>Respond from here + ? <>Restart from here : !props.isBottom ? <>Retry from here : @@ -594,7 +594,7 @@ export function ChatMessage(props: { {!!props.onConversationBranch && ( - + Branch {!props.isBottom && from here}