Skip to content

Commit be21043

Browse files
committed
Merge branch 'dev'
2 parents 2ca3bab + 06346b1 commit be21043

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

apps/www/src/components/bookmarks/graph/chat-bot/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useCallback, useEffect, useRef, useState } from "react";
44

55
import Icon from "@/components/common/icon";
66
import { useGetAllChatSessions } from "@/lib/tanstack/query/chat";
7-
import { ChatSessionListDTO } from "@/models/chat";
7+
import { ChatSessionDTO } from "@/models/chat";
88
import { cn, Spinner } from "@repo/ui";
99

1010
import Chat from "./chat";
@@ -176,7 +176,7 @@ export default function ChatBot() {
176176
<Spinner small />
177177
</div>
178178
) : (
179-
chatSessions?.result?.map((session: ChatSessionListDTO) => (
179+
chatSessions?.result?.sessions.map((session: ChatSessionDTO) => (
180180
<li key={session.sessionId}>
181181
<button
182182
className={cn(

apps/www/src/components/history/history-list/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function HistoryList({ q, page }: HistoryListProps) {
7474
if (!data?.result?.content?.length) {
7575
return (
7676
<div className="flex flex-1 items-center justify-center rounded-lg bg-white">
77-
<p className="text-white">결과가 없습니다.</p>
77+
<p className="text-black">결과가 없습니다.</p>
7878
</div>
7979
);
8080
}

apps/www/src/models/chat.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export interface ChatSessionListDTO {
1+
export interface ChatSessionDTO {
22
sessionId: string;
33
title: string;
44
sessionType: string;
@@ -7,6 +7,11 @@ export interface ChatSessionListDTO {
77
active: boolean;
88
}
99

10+
export interface ChatSessionListDTO {
11+
sessions: ChatSessionDTO[];
12+
total: number;
13+
}
14+
1015
export interface ChatMessageDTO {
1116
sessionId: string;
1217
messages: {

apps/www/src/service/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const getChatMessages = async (
1313
export const getAllChatSessions = async (props: {
1414
limit: number;
1515
offset: number;
16-
}): Promise<BaseResponseDTO<ChatSessionListDTO[]>> => {
16+
}): Promise<BaseResponseDTO<ChatSessionListDTO>> => {
1717
const params = getParams(props);
1818
return api.get(`/chat/sessions?${params}`);
1919
};

0 commit comments

Comments
 (0)