mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
refactor(site): move AgentChatPageView to correct directory (#23770)
This commit is contained in:
@@ -37,13 +37,13 @@ import {
|
||||
import { isMobileViewport } from "#/utils/mobile";
|
||||
import { pageTitle } from "#/utils/page";
|
||||
import { rewriteLocalhostURL } from "#/utils/portForward";
|
||||
import type { AgentsOutletContext } from "./AgentsPage";
|
||||
import type { ChatMessageInputRef } from "./components/AgentChatInput";
|
||||
import {
|
||||
AgentChatPageLoadingView,
|
||||
AgentChatPageNotFoundView,
|
||||
AgentChatPageView,
|
||||
} from "./components/AgentChatPageView";
|
||||
} from "./AgentChatPageView";
|
||||
import type { AgentsOutletContext } from "./AgentsPage";
|
||||
import type { ChatMessageInputRef } from "./components/AgentChatInput";
|
||||
import {
|
||||
getParentChatID,
|
||||
getWorkspaceAgent,
|
||||
|
||||
+3
-3
@@ -10,14 +10,14 @@ import {
|
||||
withAuthProvider,
|
||||
withDashboardProvider,
|
||||
} from "#/testHelpers/storybook";
|
||||
import type { ChatDetailError } from "../utils/usageLimitMessage";
|
||||
import {
|
||||
AgentChatPageLoadingView,
|
||||
AgentChatPageNotFoundView,
|
||||
AgentChatPageView,
|
||||
} from "./AgentChatPageView";
|
||||
import { createChatStore } from "./ChatConversation/chatStore";
|
||||
import type { ModelSelectorOption } from "./ChatElements";
|
||||
import { createChatStore } from "./components/ChatConversation/chatStore";
|
||||
import type { ModelSelectorOption } from "./components/ChatElements";
|
||||
import type { ChatDetailError } from "./utils/usageLimitMessage";
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Shared constants & helpers
|
||||
+14
-11
@@ -13,20 +13,23 @@ import type { ChatDiffStatus, ChatMessagePart } from "#/api/typesGenerated";
|
||||
import { Button } from "#/components/Button/Button";
|
||||
import { cn } from "#/utils/cn";
|
||||
import { pageTitle } from "#/utils/page";
|
||||
import type { ChatDetailError } from "../utils/usageLimitMessage";
|
||||
import { AgentChatInput, type ChatMessageInputRef } from "./AgentChatInput";
|
||||
import {
|
||||
AgentChatInput,
|
||||
type ChatMessageInputRef,
|
||||
} from "./components/AgentChatInput";
|
||||
import {
|
||||
ChatConversationSkeleton,
|
||||
RightPanelSkeleton,
|
||||
} from "./AgentsSkeletons";
|
||||
import type { useChatStore } from "./ChatConversation/chatStore";
|
||||
import type { ModelSelectorOption } from "./ChatElements";
|
||||
import { DesktopPanelContext } from "./ChatElements/tools/DesktopPanelContext";
|
||||
import { ChatPageInput, ChatPageTimeline } from "./ChatPageContent";
|
||||
import { ChatTopBar } from "./ChatTopBar";
|
||||
import { GitPanel } from "./GitPanel/GitPanel";
|
||||
import { RightPanel } from "./RightPanel/RightPanel";
|
||||
import { SidebarTabView } from "./Sidebar/SidebarTabView";
|
||||
} from "./components/AgentsSkeletons";
|
||||
import type { useChatStore } from "./components/ChatConversation/chatStore";
|
||||
import type { ModelSelectorOption } from "./components/ChatElements";
|
||||
import { DesktopPanelContext } from "./components/ChatElements/tools/DesktopPanelContext";
|
||||
import { ChatPageInput, ChatPageTimeline } from "./components/ChatPageContent";
|
||||
import { ChatTopBar } from "./components/ChatTopBar";
|
||||
import { GitPanel } from "./components/GitPanel/GitPanel";
|
||||
import { RightPanel } from "./components/RightPanel/RightPanel";
|
||||
import { SidebarTabView } from "./components/Sidebar/SidebarTabView";
|
||||
import type { ChatDetailError } from "./utils/usageLimitMessage";
|
||||
|
||||
type ChatStoreHandle = ReturnType<typeof useChatStore>["store"];
|
||||
|
||||
Reference in New Issue
Block a user