From b574f1ebf5779b992c0eb623a87e9dfc0517eb93 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Tue, 10 Jun 2025 13:21:12 +0600 Subject: [PATCH] wip --- .../AIChatHistory/ListChatHistory.tsx | 80 ++++++++++--------- .../AIChatHistory/ListChatHistorySkeleton.tsx | 26 +++--- 2 files changed, 55 insertions(+), 51 deletions(-) diff --git a/src/components/AIChatHistory/ListChatHistory.tsx b/src/components/AIChatHistory/ListChatHistory.tsx index 39de0587d..b2d661076 100644 --- a/src/components/AIChatHistory/ListChatHistory.tsx +++ b/src/components/AIChatHistory/ListChatHistory.tsx @@ -101,7 +101,7 @@ export function ListChatHistory(props: ListChatHistoryProps) { return (
@@ -110,31 +110,33 @@ export function ListChatHistory(props: ListChatHistoryProps) { {!isLoading && !isError && ( <> -
-

Chat History

+
+
+

Chat History

+ +
+ + +
- - - - -
+
{Object.entries(groupedChatHistory ?? {}).map(([key, value]) => { if (value.histories.length === 0) { return null; @@ -162,27 +164,27 @@ export function ListChatHistory(props: ListChatHistoryProps) {
); })} -
- {hasNextPage && ( -
- -
- )} + {hasNextPage && ( +
+ +
+ )} +
)}
diff --git a/src/components/AIChatHistory/ListChatHistorySkeleton.tsx b/src/components/AIChatHistory/ListChatHistorySkeleton.tsx index de3108825..219ddff47 100644 --- a/src/components/AIChatHistory/ListChatHistorySkeleton.tsx +++ b/src/components/AIChatHistory/ListChatHistorySkeleton.tsx @@ -1,26 +1,28 @@ export function ListChatHistorySkeleton() { return ( <> -
-
+
+
+
-
-
+
+
-
- -
-
-
+ +
+
+
+
+
-
+
{['Today', 'Last 7 Days', 'Older'].map((group) => (
-
-
    +
    +
      {[1, 2, 3].map((i) => (