+
Response
{' '}
@@ -736,9 +760,9 @@ function ToolCalls({ toolCalls }: { toolCalls: ToolCallsType[] }) {
textToCopy={JSON.stringify(toolCall.result, null, 2)}
/>
-
+
{JSON.stringify(toolCall.result, null, 2)}
@@ -766,7 +790,7 @@ function Thought({
const [isThoughtOpen, setIsThoughtOpen] = useState(true);
return (
-
+
{isThoughtOpen && (
-
+
-
+
+
{language}
@@ -859,14 +883,14 @@ function Thought({
},
thead({ children }) {
return (
-
+
{children}
);
},
tr({ children }) {
return (
-
+
{children}
);
diff --git a/frontend/src/conversation/ConversationMessages.tsx b/frontend/src/conversation/ConversationMessages.tsx
index 52162658..da36516a 100644
--- a/frontend/src/conversation/ConversationMessages.tsx
+++ b/frontend/src/conversation/ConversationMessages.tsx
@@ -38,7 +38,7 @@ export default function ConversationMessages({
const { t } = useTranslation();
const conversationRef = useRef(null);
- const [atLast,setAtLast] = useState(true);
+ const [atLast, setAtLast] = useState(true);
const [eventInterrupt, setEventInterrupt] = useState(false);
const handleUserInterruption = () => {
@@ -47,7 +47,6 @@ export default function ConversationMessages({
}
};
-
const scrollIntoView = () => {
if (!conversationRef?.current || eventInterrupt) return;
@@ -60,7 +59,8 @@ export default function ConversationMessages({
top: conversationRef.current.scrollHeight,
});
} else {
- conversationRef.current.scrollTop = conversationRef.current.scrollHeight;
+ conversationRef.current.scrollTop =
+ conversationRef.current.scrollHeight;
}
});
};
@@ -92,7 +92,8 @@ export default function ConversationMessages({
const prepResponseView = (query: Query, index: number) => {
let responseView;
if (query.thought || query.response) {
- const isCurrentlyStreaming = status === 'loading' && index === queries.length - 1;
+ const isCurrentlyStreaming =
+ status === 'loading' && index === queries.length - 1;
responseView = (
{
handleQuestion({
@@ -150,7 +151,7 @@ export default function ConversationMessages({
ref={conversationRef}
onWheel={handleUserInterruption}
onTouchMove={handleUserInterruption}
- className="flex justify-center w-full overflow-y-auto h-full sm:pt-12 will-change-scroll"
+ className="flex h-full w-full justify-center overflow-y-auto will-change-scroll sm:pt-12"
>
{queries.length > 0 && !atLast && (
)}
-
+
{queries.length > 0 ? (
queries.map((query, index) => (
diff --git a/frontend/src/conversation/ConversationTile.tsx b/frontend/src/conversation/ConversationTile.tsx
index da98f1b0..5a272da3 100644
--- a/frontend/src/conversation/ConversationTile.tsx
+++ b/frontend/src/conversation/ConversationTile.tsx
@@ -192,7 +192,7 @@ export default function ConversationTile({
conversationId !== conversation.id &&
selectConversation(conversation.id);
}}
- className={`my-auto mx-4 mt-4 flex h-9 cursor-pointer items-center justify-between pl-4 gap-4 rounded-3xl hover:bg-bright-gray dark:hover:bg-dark-charcoal ${
+ className={`mx-4 my-auto mt-4 flex h-9 cursor-pointer items-center justify-between gap-4 rounded-3xl pl-4 hover:bg-bright-gray dark:hover:bg-dark-charcoal ${
conversationId === conversation.id || isOpen || isHovered || isEdit
? 'bg-bright-gray dark:bg-dark-charcoal'
: ''
diff --git a/frontend/src/conversation/SharedConversation.tsx b/frontend/src/conversation/SharedConversation.tsx
index be822805..ba146762 100644
--- a/frontend/src/conversation/SharedConversation.tsx
+++ b/frontend/src/conversation/SharedConversation.tsx
@@ -132,8 +132,8 @@ export const SharedConversation = () => {
content="Shared conversations with DocsGPT"
/>
-
-
+
+
{title}
@@ -153,7 +153,7 @@ export const SharedConversation = () => {
queries={queries}
status={status}
/>
-
+
{apiKey ? (
{
) : (
navigate('/')}
- className="w-fit rounded-full bg-purple-30 py-3 px-5 text-white shadow-xl transition-colors duration-200 hover:bg-violets-are-blue mb-14 sm:mb-0"
+ className="mb-14 w-fit rounded-full bg-purple-30 px-5 py-3 text-white shadow-xl transition-colors duration-200 hover:bg-violets-are-blue sm:mb-0"
>
{t('sharedConv.button')}
)}
-
+
{t('sharedConv.meta')}
diff --git a/frontend/src/conversation/conversationHandlers.ts b/frontend/src/conversation/conversationHandlers.ts
index 2fcb2e28..398f74db 100644
--- a/frontend/src/conversation/conversationHandlers.ts
+++ b/frontend/src/conversation/conversationHandlers.ts
@@ -15,7 +15,7 @@ export function handleFetchAnswer(
token_limit: number,
agentId?: string,
attachments?: string[],
- save_conversation: boolean = true,
+ save_conversation = true,
): Promise<
| {
result: any;
@@ -103,7 +103,7 @@ export function handleFetchAnswerSteaming(
indx?: number,
agentId?: string,
attachments?: string[],
- save_conversation: boolean = true,
+ save_conversation = true,
): Promise
{
history = history.map((item) => {
return {
diff --git a/frontend/src/conversation/conversationModels.ts b/frontend/src/conversation/conversationModels.ts
index 1808d84a..734e1992 100644
--- a/frontend/src/conversation/conversationModels.ts
+++ b/frontend/src/conversation/conversationModels.ts
@@ -9,7 +9,6 @@ export interface Message {
type: MESSAGE_TYPE;
}
-
export interface Attachment {
id?: string;
fileName: string;
diff --git a/frontend/src/index.css b/frontend/src/index.css
index 07760385..4c1bb30f 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -50,11 +50,11 @@ body.dark {
@layer components {
.table-default {
- @apply block w-full table-auto justify-center rounded-xl border border-silver dark:border-silver/40 text-center dark:text-bright-gray overflow-auto;
+ @apply block w-full table-auto justify-center overflow-auto rounded-xl border border-silver text-center dark:border-silver/40 dark:text-bright-gray;
}
.table-default th {
- @apply p-4 font-normal text-gray-400 text-nowrap;
+ @apply text-nowrap p-4 font-normal text-gray-400;
}
.table-default th {
@@ -66,7 +66,7 @@ body.dark {
}
.table-default td {
- @apply border-t w-full border-silver dark:border-silver/40 px-4 py-2;
+ @apply w-full border-t border-silver px-4 py-2 dark:border-silver/40;
}
.table-default td:last-child {
diff --git a/frontend/src/modals/AddActionModal.tsx b/frontend/src/modals/AddActionModal.tsx
index 5db46558..3cb35849 100644
--- a/frontend/src/modals/AddActionModal.tsx
+++ b/frontend/src/modals/AddActionModal.tsx
@@ -43,11 +43,11 @@ export default function AddActionModal({
className="sm:w-[512px]"
>
-
+
New Action
-
-
+
+
Action Name
diff --git a/frontend/src/modals/AddToolModal.tsx b/frontend/src/modals/AddToolModal.tsx
index 9885edab..a12950a2 100644
--- a/frontend/src/modals/AddToolModal.tsx
+++ b/frontend/src/modals/AddToolModal.tsx
@@ -100,26 +100,26 @@ export default function AddToolModal({
{modalState === 'ACTIVE' && (
setModalState('INACTIVE')}
- className="max-w-[950px] w-[90vw] md:w-[85vw] lg:w-[75vw] h-[85vh]"
+ className="h-[85vh] w-[90vw] max-w-[950px] md:w-[85vw] lg:w-[75vw]"
>
-
+
-
+
{t('settings.tools.selectToolSetup')}
{loading ? (
-
+
) : (
-
+
{availableTools.map((tool, index) => (
{
setSelectedTool(tool);
handleAddTool(tool);
@@ -132,7 +132,7 @@ export default function AddToolModal({
}}
>
-
+
{tool.displayName}
-
+
{tool.description}
diff --git a/frontend/src/modals/ChunkModal.tsx b/frontend/src/modals/ChunkModal.tsx
index 4ef169d7..ab51fdee 100644
--- a/frontend/src/modals/ChunkModal.tsx
+++ b/frontend/src/modals/ChunkModal.tsx
@@ -35,12 +35,12 @@ export default function ChunkModal({
-
+
{
setModalState('INACTIVE');
}}
@@ -48,11 +48,11 @@ export default function ChunkModal({