improv: ui
This commit is contained in:
parent
53da290d3e
commit
08e1b59f3e
4 changed files with 17 additions and 17 deletions
|
|
@ -6,22 +6,22 @@ import {
|
|||
waitFor,
|
||||
} from "@testing-library/react";
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { IdeMessengerContext } from "../../../context/IdeMessenger";
|
||||
import { MockIdeMessenger } from "../../../context/MockIdeMessenger";
|
||||
import * as util from "../../../util";
|
||||
import * as localStorage from "../../../util/localStorage";
|
||||
import { IdeMessengerContext } from "../../context/IdeMessenger";
|
||||
import { MockIdeMessenger } from "../../context/MockIdeMessenger";
|
||||
import * as util from "../../util";
|
||||
import * as localStorage from "../../util/localStorage";
|
||||
import { CliInstallBanner } from "./CliInstallBanner";
|
||||
|
||||
vi.mock("../../../util", async () => {
|
||||
const actual = await vi.importActual("../../../util");
|
||||
vi.mock("../../util", async () => {
|
||||
const actual = await vi.importActual("../../util");
|
||||
return {
|
||||
...actual,
|
||||
getPlatform: vi.fn(),
|
||||
};
|
||||
});
|
||||
|
||||
vi.mock("../../../util/localStorage", async () => {
|
||||
const actual = await vi.importActual("../../../util/localStorage");
|
||||
vi.mock("../../util/localStorage", async () => {
|
||||
const actual = await vi.importActual("../../util/localStorage");
|
||||
return {
|
||||
...actual,
|
||||
getLocalStorage: vi.fn(),
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
import { CommandLineIcon, XMarkIcon } from "@heroicons/react/24/outline";
|
||||
import { useContext, useEffect, useState } from "react";
|
||||
import { CloseButton } from "../../../components";
|
||||
import { CopyButton } from "../../../components/StyledMarkdownPreview/StepContainerPreToolbar/CopyButton";
|
||||
import { RunInTerminalButton } from "../../../components/StyledMarkdownPreview/StepContainerPreToolbar/RunInTerminalButton";
|
||||
import { Card } from "../../../components/ui";
|
||||
import { IdeMessengerContext } from "../../../context/IdeMessenger";
|
||||
import { getPlatform } from "../../../util";
|
||||
import { getLocalStorage, setLocalStorage } from "../../../util/localStorage";
|
||||
import { CloseButton } from ".";
|
||||
import { CopyButton } from "./StyledMarkdownPreview/StepContainerPreToolbar/CopyButton";
|
||||
import { RunInTerminalButton } from "./StyledMarkdownPreview/StepContainerPreToolbar/RunInTerminalButton";
|
||||
import { Card } from "./ui";
|
||||
import { IdeMessengerContext } from "../context/IdeMessenger";
|
||||
import { getPlatform } from "../util";
|
||||
import { getLocalStorage, setLocalStorage } from "../util/localStorage";
|
||||
|
||||
interface CliInstallBannerProps {
|
||||
/** Current message count - banner shows only if >= messageThreshold */
|
||||
|
|
@ -8,7 +8,7 @@ import { TabGroup } from "../../components/ui/TabGroup";
|
|||
import { useAuth } from "../../context/Auth";
|
||||
import { useNavigationListener } from "../../hooks/useNavigationListener";
|
||||
import { bottomTabSections, getAllTabs, topTabSections } from "./configTabs";
|
||||
import { CliInstallBanner } from "./components/CliInstallBanner";
|
||||
import { CliInstallBanner } from "../../components/CliInstallBanner";
|
||||
import { AccountDropdown } from "./features/account/AccountDropdown";
|
||||
|
||||
function ConfigPage() {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ import { ToolCallDiv } from "./ToolCallDiv";
|
|||
import { FatalErrorIndicator } from "../../components/config/FatalErrorNotice";
|
||||
import InlineErrorMessage from "../../components/mainInput/InlineErrorMessage";
|
||||
import { cancelStream } from "../../redux/thunks/cancelStream";
|
||||
import { CliInstallBanner } from "../config/components/CliInstallBanner";
|
||||
import { CliInstallBanner } from "../../components/CliInstallBanner";
|
||||
import { EmptyChatBody } from "./EmptyChatBody";
|
||||
import { ExploreDialogWatcher } from "./ExploreDialogWatcher";
|
||||
import { useAutoScroll } from "./useAutoScroll";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue