Skip to content

Commit

Permalink
Merge branch 'issue-356'. Fixes enricoros#356
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros authored and jimjonesbabyfreshout committed Feb 19, 2024
1 parent d7385e2 commit 507649e
Show file tree
Hide file tree
Showing 27 changed files with 1,013 additions and 528 deletions.
4 changes: 2 additions & 2 deletions pages/link/chat/[chatLinkId].tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

import { AppChatLink } from '../../../src/apps/link/AppChatLink';
import { AppLinkChat } from '../../../src/apps/link/AppLinkChat';

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

return withLayout({ type: 'optima', suspendAutoModelsSetup: true }, <AppChatLink linkId={chatLinkId || ''} />);
return withLayout({ type: 'optima', suspendAutoModelsSetup: true }, <AppLinkChat chatLinkId={chatLinkId || null} />);
}
5 changes: 5 additions & 0 deletions src/apps/chat/components/applayout/ChatNavigationItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import { DConversationId, useChatStore } from '~/common/state/store-chats';
import { InlineTextarea } from '~/common/components/InlineTextarea';


// set to true to display the conversation IDs
// const DEBUG_CONVERSATION_IDS = false;


const FadeInButton = styled(IconButton)({
opacity: 0.5,
transition: 'opacity 0.2s',
Expand Down Expand Up @@ -136,6 +140,7 @@ function ChatNavigationItem(props: {
flex: 1,
}}
>
{/*{DEBUG_CONVERSATION_IDS && `${conversationId} - `}*/}
{title.trim() ? title : 'Chat'}{assistantTyping && '...'}
</Typography>
) : (
Expand Down
2 changes: 1 addition & 1 deletion src/apps/chat/components/message/ChatMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import { parseBlocks } from './blocks';
// How long is the user collapsed message
const USER_COLLAPSED_LINES: number = 8;

// Enable the automatic menu on text selection
// Enable the menu on text selection
const ENABLE_SELECTION_RIGHT_CLICK_MENU: boolean = true;

// Enable the hover button to copy the whole message. The Copy button is also available in Blocks, or in the Avatar Menu.
Expand Down
108 changes: 0 additions & 108 deletions src/apps/link/AppChatLink.tsx

This file was deleted.

82 changes: 0 additions & 82 deletions src/apps/link/AppChatLinkDrawerContent.tsx

This file was deleted.

Loading

0 comments on commit 507649e

Please sign in to comment.