Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Zewed committed Oct 22, 2024
1 parent 74bd717 commit 0e8e981
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 22 deletions.
2 changes: 1 addition & 1 deletion frontend/app/knowledge/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import KnowledgeManagementSystem from "@/lib/components/KnowledgeManagementSystem/KnowledgeManagementSystem";
import PageHeader from "@/lib/components/PageHeader/PageHeader";
import { PageHeader } from "@/lib/components/PageHeader/PageHeader";

import styles from "./page.module.scss";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useEffect, useState } from "react";
import { useAssistants } from "@/lib/api/assistants/useAssistants";
import { FileInput } from "@/lib/components/ui/FileInput/FileInput";
import { Icon } from "@/lib/components/ui/Icon/Icon";
import QuivrButton from "@/lib/components/ui/QuivrButton/QuivrButton";
import { QuivrButton } from "@/lib/components/ui/QuivrButton/QuivrButton";

import AssistantCard from "./AssistantCard/AssistantCard";
import styles from "./AssistantTab.module.scss";
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/quality-assistant/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useState } from "react";

import PageHeader from "@/lib/components/PageHeader/PageHeader";
import { PageHeader } from "@/lib/components/PageHeader/PageHeader";
import { Tabs } from "@/lib/components/ui/Tabs/Tabs";
import { Tab } from "@/lib/types/Tab";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ const KnowledgeItem = ({
if (!knowledge.url) {
return knowledge.source !== "local" ? (
<Image
src={
providerIconUrls[knowledge.source as keyof typeof providerIconUrls]
}
src={providerIconUrls[knowledge.source]}
width="16"
height="16"
alt="integration_icon"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import React, { useEffect, useState } from "react";

import { KMSElement } from "@/lib/api/sync/types";
import KnowledgeManagementSystem from "@/lib/components/KnowledgeManagementSystem/KnowledgeManagementSystem";
import { Checkbox } from "@/lib/components/ui/Checkbox/Checkbox";
import { Icon } from "@/lib/components/ui/Icon/Icon";
import { QuivrButton } from "@/lib/components/ui/QuivrButton/QuivrButton";
import { SwitchButton } from "@/lib/components/ui/SwitchButton/SwitchButton";
import { TextInput } from "@/lib/components/ui/TextInput/TextInput";
import { updateSelectedItems } from "@/lib/helpers/table";
import { useDevice } from "@/lib/hooks/useDevice";

import { useKnowledgeItem } from "./KnowledgeItem/hooks/useKnowledgeItem";
// eslint-disable-next-line import/order
import KnowledgeManagementSystem from "@/lib/components/KnowledgeManagementSystem/KnowledgeManagementSystem";
import SwitchButton from "@/lib/components/ui/SwitchButton/SwitchButton";
import KnowledgeItem from "./KnowledgeItem/KnowledgeItem";
import { useKnowledgeItem } from "./KnowledgeItem/hooks/useKnowledgeItem";
import styles from "./KnowledgeTable.module.scss";

interface KnowledgeTableProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useSync } from "@/lib/api/sync/useSync";
import { ConnectionIcon } from "@/lib/components/ui/ConnectionIcon/ConnectionIcon";
import { Icon } from "@/lib/components/ui/Icon/Icon";
import { Modal } from "@/lib/components/ui/Modal/Modal";
import QuivrButton from "@/lib/components/ui/QuivrButton/QuivrButton";
import { QuivrButton } from "@/lib/components/ui/QuivrButton/QuivrButton";

import styles from "./ConnectionLine.module.scss";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { KMSElement, Sync } from "@/lib/api/sync/types";
import { useSync } from "@/lib/api/sync/useSync";
import { useKnowledgeContext } from "@/lib/components/KnowledgeManagementSystem/KnowledgeProvider/hooks/useKnowledgeContext";
import { LoaderIcon } from "@/lib/components/ui/LoaderIcon/LoaderIcon";
import { QuivrButton } from "@/lib/components/ui/QuivrButton/QuivrButton";

import ProviderAccount from "./ProviderAccount/ProviderAccount";
import styles from "./ProviderCurrentFolder.module.scss";

import QuivrButton from "@/lib/components/ui/QuivrButton/QuivrButton";
import AddToBrainsModal from "../../shared/CurrentFolderExplorerLine/ConnectedBrains/AddToBrainsModal/AddToBrainsModal";
import CurrentFolderExplorerLine from "../../shared/CurrentFolderExplorerLine/CurrentFolderExplorerLine";
import FolderExplorerHeader from "../../shared/FolderExplorerHeader/FolderExplorerHeader";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useState } from "react";
import { useKnowledgeApi } from "@/lib/api/knowledge/useKnowledgeApi";
import { useKnowledgeContext } from "@/lib/components/KnowledgeManagementSystem/KnowledgeProvider/hooks/useKnowledgeContext";
import { Modal } from "@/lib/components/ui/Modal/Modal";
import QuivrButton from "@/lib/components/ui/QuivrButton/QuivrButton";
import { QuivrButton } from "@/lib/components/ui/QuivrButton/QuivrButton";
import { TextInput } from "@/lib/components/ui/TextInput/TextInput";

import styles from "./AddFolderModal.module.scss";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useKnowledgeContext } from "@/lib/components/KnowledgeManagementSystem/
import { Checkbox } from "@/lib/components/ui/Checkbox/Checkbox";
import { FileInput } from "@/lib/components/ui/FileInput/FileInput";
import { Modal } from "@/lib/components/ui/Modal/Modal";
import QuivrButton from "@/lib/components/ui/QuivrButton/QuivrButton";
import { QuivrButton } from "@/lib/components/ui/QuivrButton/QuivrButton";
import { Tabs } from "@/lib/components/ui/Tabs/Tabs";
import { TextInput } from "@/lib/components/ui/TextInput/TextInput";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useEffect, useState } from "react";
import { useKnowledgeApi } from "@/lib/api/knowledge/useKnowledgeApi";
import { KMSElement } from "@/lib/api/sync/types";
import { LoaderIcon } from "@/lib/components/ui/LoaderIcon/LoaderIcon";
import QuivrButton from "@/lib/components/ui/QuivrButton/QuivrButton";
import { QuivrButton } from "@/lib/components/ui/QuivrButton/QuivrButton";
import { handleDragOver, handleDrop } from "@/lib/helpers/kms";

import AddFolderModal from "./AddFolderModal/AddFolderModal";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { KMSElement } from "@/lib/api/sync/types";
import { useKnowledgeContext } from "@/lib/components/KnowledgeManagementSystem/KnowledgeProvider/hooks/useKnowledgeContext";
import { Checkbox } from "@/lib/components/ui/Checkbox/Checkbox";
import { Modal } from "@/lib/components/ui/Modal/Modal";
import QuivrButton from "@/lib/components/ui/QuivrButton/QuivrButton";
import { QuivrButton } from "@/lib/components/ui/QuivrButton/QuivrButton";
import { useBrainContext } from "@/lib/context/BrainProvider/hooks/useBrainContext";
import { Brain } from "@/lib/context/BrainProvider/types";

Expand Down
6 changes: 0 additions & 6 deletions frontend/lib/types/Modal.ts

This file was deleted.

0 comments on commit 0e8e981

Please sign in to comment.