Skip to content

Commit

Permalink
Extension: fix some imports
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph committed Oct 30, 2024
1 parent b70da80 commit d48cb27
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion front/extension/app/src/components/auth/ProtectedRoute.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { StoredUser } from "@app/extension/app/src/lib/storage";
import {
Button,
ExternalLinkIcon,
Expand All @@ -8,6 +7,7 @@ import {
} from "@dust-tt/sparkle";
import type { LightWorkspaceType } from "@dust-tt/types";
import { useAuth } from "@extension/components/auth/AuthProvider";
import type { StoredUser } from "@extension/lib/storage";
import type { ReactNode } from "react";
import { useEffect } from "react";
import { useNavigate } from "react-router-dom";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { makeDocumentCitation } from "@app/components/actions/retrieval/utils";
import { makeWebsearchResultsCitation } from "@app/components/actions/websearch/utils";
import type { MarkdownCitation } from "@app/components/assistant/markdown/MarkdownCitation";
import { RenderMessageMarkdown } from "@app/components/assistant/markdown/RenderMessageMarkdown";
import { useSubmitFunction } from "@app/lib/client/utils";
import type {
ConversationMessageEmojiSelectorProps,
ConversationMessageSizeType,
Expand Down Expand Up @@ -38,6 +37,7 @@ import {
isWebsearchActionType,
removeNulls,
} from "@dust-tt/types";
import { useSubmitFunction } from "@extension/components/utils/useSubmitFunction";
import { useEventSource } from "@extension/hooks/useEventSource";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { usePublicConversation } from "@app/extension/app/src/components/conversation/usePublicConversation";
import { useSendNotification } from "@dust-tt/sparkle";
import type {
AgentMessageWithRankType,
Expand All @@ -9,6 +8,7 @@ import type {
} from "@dust-tt/types";
import { ConversationViewer } from "@extension/components/conversation/ConversationViewer";
import { ReachedLimitPopup } from "@extension/components/conversation/ReachedLimitPopup";
import { usePublicConversation } from "@extension/components/conversation/usePublicConversation";
import { AssistantInputBar } from "@extension/components/input_bar/InputBar";
import { InputBarContext } from "@extension/components/input_bar/InputBarContext";
import { useSubmitFunction } from "@extension/components/utils/useSubmitFunction";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { MessageWithContentFragmentsType } from "@app/components/assistant/conversation/ConversationViewer";
import { classNames } from "@app/lib/utils";
import type {
AgentMessageType,
ContentFragmentType,
Expand All @@ -10,6 +9,7 @@ import { isContentFragmentType, isUserMessageType } from "@dust-tt/types";
import MessageGroup from "@extension/components/conversation/MessageGroup";
import { usePublicConversation } from "@extension/components/conversation/usePublicConversation";
import type { StoredUser } from "@extension/lib/storage";
import { classNames } from "@extension/lib/utils";
import { useMemo } from "react";

interface ConversationViewerProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { MessageWithContentFragmentsType } from "@app/components/assistant/conversation/ConversationViewer";
import type { StoredUser } from "@app/extension/app/src/lib/storage";
import { Citation, ZoomableImageCitationWrapper } from "@dust-tt/sparkle";
import type { CitationType } from "@dust-tt/sparkle/dist/esm/components/Citation";
import type {
Expand All @@ -9,6 +8,7 @@ import type {
import { isSupportedImageContentType } from "@dust-tt/types";
import { AgentMessage } from "@extension/components/conversation/AgentMessage";
import { UserMessage } from "@extension/components/conversation/UserMessage";
import type { StoredUser } from "@extension/lib/storage";
import React from "react";

interface MessageItemProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fetcher, useSWRWithDefaults } from "@app/extension/app/src/lib/swr";
import type { ConversationWithoutContentType } from "@dust-tt/types";
import { fetcher, useSWRWithDefaults } from "@extension/lib/swr";
import { useMemo } from "react";
import type { Fetcher } from "swr";

Expand Down
2 changes: 1 addition & 1 deletion front/extension/app/src/hooks/useEventSource.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getAccessToken } from "@app/extension/app/src/lib/storage";
import { getAccessToken } from "@extension/lib/storage";
import { useCallback, useEffect, useRef, useState } from "react";
const RECONNECT_DELAY = 5000; // 5 seconds.
import { EventSourcePolyfill } from "event-source-polyfill";
Expand Down
4 changes: 2 additions & 2 deletions front/extension/app/src/pages/ConversationPage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ProtectedRouteChildrenProps } from "@app/extension/app/src/components/auth/ProtectedRoute";
import { ConversationContainer } from "@app/extension/app/src/components/conversation/ConversationContainer";
import { BarHeader, ChevronLeftIcon, Page } from "@dust-tt/sparkle";
import type { ProtectedRouteChildrenProps } from "@extension/components/auth/ProtectedRoute";
import { ConversationContainer } from "@extension/components/conversation/ConversationContainer";
import { Link, useNavigate, useParams } from "react-router-dom";

export const ConversationPage = ({
Expand Down
4 changes: 2 additions & 2 deletions front/extension/app/src/pages/ConversationsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import type { ProtectedRouteChildrenProps } from "@app/extension/app/src/components/auth/ProtectedRoute";
import { useConversations } from "@app/extension/app/src/components/conversation/useConversations";
import {
BarHeader,
ChevronLeftIcon,
Expand All @@ -9,6 +7,8 @@ import {
Page,
} from "@dust-tt/sparkle";
import type { ConversationWithoutContentType } from "@dust-tt/types";
import type { ProtectedRouteChildrenProps } from "@extension/components/auth/ProtectedRoute";
import { useConversations } from "@extension/components/conversation/useConversations";
import moment from "moment";
import { Link, useNavigate } from "react-router-dom";

Expand Down
2 changes: 1 addition & 1 deletion front/extension/app/src/pages/LoginPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useAuth } from "@app/extension/app/src/components/auth/AuthProvider";
import {
Button,
LoginIcon,
Expand All @@ -7,6 +6,7 @@ import {
NewDropdownMenuItem,
NewDropdownMenuTrigger,
} from "@dust-tt/sparkle";
import { useAuth } from "@extension/components/auth/AuthProvider";
import { useEffect } from "react";
import { useNavigate } from "react-router-dom";

Expand Down
4 changes: 2 additions & 2 deletions front/extension/app/src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ProtectedRouteChildrenProps } from "@app/extension/app/src/components/auth/ProtectedRoute";
import { ConversationContainer } from "@app/extension/app/src/components/conversation/ConversationContainer";
import { Button, HistoryIcon, Page } from "@dust-tt/sparkle";
import type { ProtectedRouteChildrenProps } from "@extension/components/auth/ProtectedRoute";
import { ConversationContainer } from "@extension/components/conversation/ConversationContainer";
import { useNavigate } from "react-router-dom";

export const MainPage = ({ user, workspace }: ProtectedRouteChildrenProps) => {
Expand Down

0 comments on commit d48cb27

Please sign in to comment.