Skip to content

Commit bca70e2

Browse files
arvinxxclaude
andauthored
♻️ refactor: refactor Conversation to ChatList (#10330)
* update * update * update * update * 🐛 fix(test): update test mocks to use ChatList instead of Conversation - Update AssistantMessageExtra test mocks from @/features/Conversation/components/Extras/* to @/features/ChatList/components/Extras/* - Update ComfyUIForm test mock from @/features/Conversation/Error/style to @/features/ChatList/Error/style Fixes module resolution errors after Conversation -> ChatList refactor 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1ed9424 commit bca70e2

File tree

184 files changed

+55
-54
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+55
-54
lines changed

src/app/[variants]/(main)/chat/components/conversation/features/ChatInput/Desktop/ClassicChat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next';
66
import { Flexbox } from 'react-layout-kit';
77

88
import { type ActionKeys, ChatInputProvider, DesktopChatInput } from '@/features/ChatInput';
9-
import WideScreenContainer from '@/features/Conversation/components/WideScreenContainer';
9+
import WideScreenContainer from '@/features/ChatList/components/WideScreenContainer';
1010
import { useChatStore } from '@/store/chat';
1111
import { aiChatSelectors } from '@/store/chat/selectors';
1212

src/app/[variants]/(main)/chat/components/conversation/features/ChatInput/Desktop/GroupChat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Flexbox } from 'react-layout-kit';
99

1010
import { DEFAULT_AVATAR } from '@/const/meta';
1111
import { type ActionKeys, ChatInputProvider, DesktopChatInput } from '@/features/ChatInput';
12-
import WideScreenContainer from '@/features/Conversation/components/WideScreenContainer';
12+
import WideScreenContainer from '@/features/ChatList/components/WideScreenContainer';
1313
import { useChatStore } from '@/store/chat';
1414
import { aiChatSelectors } from '@/store/chat/selectors';
1515
import { useSessionStore } from '@/store/session';

src/app/[variants]/(main)/chat/components/conversation/features/ChatList/ChatItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createStyles } from 'antd-style';
22
import React, { memo } from 'react';
33

4-
import { ChatItem } from '@/features/Conversation';
4+
import { ChatItem } from '@/features/ChatList';
55
import { useAgentStore } from '@/store/agent';
66
import { agentChatConfigSelectors } from '@/store/agent/selectors';
77
import { useChatStore } from '@/store/chat';

src/app/[variants]/(main)/chat/components/conversation/features/ChatList/Content.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import React, { memo, useCallback } from 'react';
44

5-
import { SkeletonList, VirtualizedList } from '@/features/Conversation';
6-
import WideScreenContainer from '@/features/Conversation/components/WideScreenContainer';
5+
import { SkeletonList, VirtualizedList } from '@/features/ChatList';
6+
import WideScreenContainer from '@/features/ChatList/components/WideScreenContainer';
77
import { useFetchMessages } from '@/hooks/useFetchMessages';
88
import { useChatStore } from '@/store/chat';
99
import { displayMessageSelectors } from '@/store/chat/selectors';

src/app/[variants]/(main)/chat/components/conversation/features/ChatList/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Suspense, lazy } from 'react';
22
import { Flexbox } from 'react-layout-kit';
33

4-
import { SkeletonList } from '@/features/Conversation';
4+
import { SkeletonList } from '@/features/ChatList';
55

66
const Content = lazy(() => import('./Content'));
77

src/app/[variants]/(main)/chat/components/conversation/features/ChatMinimap/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
getVirtuaGlobalRef,
1717
subscribeVirtuaActiveIndex,
1818
subscribeVirtuaGlobalRef,
19-
} from '@/features/Conversation/components/VirtualizedList/VirtuosoContext';
19+
} from '@/features/ChatList/components/VirtualizedList/VirtuosoContext';
2020
import { useChatStore } from '@/store/chat';
2121
import { displayMessageSelectors } from '@/store/chat/selectors';
2222

src/components/InvalidAPIKey/APIKeyForm/Bedrock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ModelProvider } from 'model-bank';
66
import { memo, useState } from 'react';
77
import { useTranslation } from 'react-i18next';
88

9-
import { FormAction } from '@/features/Conversation/Error/style';
9+
import { FormAction } from '@/features/ChatList/Error/style';
1010
import { aiProviderSelectors, useAiInfraStore } from '@/store/aiInfra';
1111

1212
const BedrockForm = memo<{ description: string }>(({ description }) => {

src/components/InvalidAPIKey/APIKeyForm/ComfyUIForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Center, Flexbox } from 'react-layout-kit';
1010

1111
import { FormInput, FormPassword } from '@/components/FormInput';
1212
import KeyValueEditor from '@/components/KeyValueEditor';
13-
import { FormAction } from '@/features/Conversation/Error/style';
13+
import { FormAction } from '@/features/ChatList/Error/style';
1414
import { useAiInfraStore } from '@/store/aiInfra';
1515
import { ComfyUIKeyVault } from '@/types/user/settings';
1616

src/components/InvalidAPIKey/APIKeyForm/ProviderApiKeyForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ReactNode, memo, useContext, useState } from 'react';
44
import { useTranslation } from 'react-i18next';
55

66
import { FormInput, FormPassword } from '@/components/FormInput';
7-
import { FormAction } from '@/features/Conversation/Error/style';
7+
import { FormAction } from '@/features/ChatList/Error/style';
88
import { useProviderName } from '@/hooks/useProviderName';
99
import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';
1010
import { GlobalLLMProviderKey } from '@/types/user/settings';

src/components/InvalidAPIKey/APIKeyForm/__tests__/ComfyUIForm.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ vi.mock('react-layout-kit', () => ({
9797
)),
9898
}));
9999

100-
vi.mock('@/features/Conversation/Error/style', () => ({
100+
vi.mock('@/features/ChatList/Error/style', () => ({
101101
FormAction: vi.fn(({ children, title, description, avatar, ...props }) => (
102102
<div data-testid="form-action" {...props}>
103103
<div data-testid="avatar">{avatar}</div>

0 commit comments

Comments
 (0)