Skip to content

Commit fb4a62b

Browse files
committed
Merge branch 'issue-356'. Fixes #356
2 parents 6195c89 + 5da3a88 commit fb4a62b

27 files changed

+1013
-528
lines changed

pages/link/chat/[chatLinkId].tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22

3-
import { AppChatLink } from '../../../src/apps/link/AppChatLink';
3+
import { AppLinkChat } from '../../../src/apps/link/AppLinkChat';
44

55
import { useRouterQuery } from '~/common/app.routes';
66
import { withLayout } from '~/common/layout/withLayout';
@@ -11,5 +11,5 @@ export default function ChatLinkPage() {
1111
// external state
1212
const { chatLinkId } = useRouterQuery<{ chatLinkId: string | undefined }>();
1313

14-
return withLayout({ type: 'optima', suspendAutoModelsSetup: true }, <AppChatLink linkId={chatLinkId || ''} />);
14+
return withLayout({ type: 'optima', suspendAutoModelsSetup: true }, <AppLinkChat chatLinkId={chatLinkId || null} />);
1515
}

src/apps/chat/components/applayout/ChatNavigationItem.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ import { DConversationId, useChatStore } from '~/common/state/store-chats';
1515
import { InlineTextarea } from '~/common/components/InlineTextarea';
1616

1717

18+
// set to true to display the conversation IDs
19+
// const DEBUG_CONVERSATION_IDS = false;
20+
21+
1822
const FadeInButton = styled(IconButton)({
1923
opacity: 0.5,
2024
transition: 'opacity 0.2s',
@@ -136,6 +140,7 @@ function ChatNavigationItem(props: {
136140
flex: 1,
137141
}}
138142
>
143+
{/*{DEBUG_CONVERSATION_IDS && `${conversationId} - `}*/}
139144
{title.trim() ? title : 'Chat'}{assistantTyping && '...'}
140145
</Typography>
141146
) : (

src/apps/chat/components/message/ChatMessage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import { parseBlocks } from './blocks';
4848
// How long is the user collapsed message
4949
const USER_COLLAPSED_LINES: number = 8;
5050

51-
// Enable the automatic menu on text selection
51+
// Enable the menu on text selection
5252
const ENABLE_SELECTION_RIGHT_CLICK_MENU: boolean = true;
5353

5454
// Enable the hover button to copy the whole message. The Copy button is also available in Blocks, or in the Avatar Menu.

src/apps/link/AppChatLink.tsx

-108
This file was deleted.

src/apps/link/AppChatLinkDrawerContent.tsx

-82
This file was deleted.

0 commit comments

Comments
 (0)