- {searchQuery ? "No filters found" : "No saved filters"}
-
handleFilterSelect(filter)}
- className={cn(
- "flex items-center gap-3 px-3 py-2 w-full rounded-lg hover:bg-accent hover:text-accent-foreground cursor-pointer group transition-colors",
- selectedFilter?.id === filter.id &&
- "active bg-accent text-accent-foreground"
- )}
+
+
+
+
+
+ Knowledge Filters
+
+
+
+ {/* Create flow moved to panel create mode */}
- {/* Create flow moved to panel create mode */}
- >
+
);
}
diff --git a/frontend/components/navigation-layout.tsx b/frontend/components/navigation-layout.tsx
index a2fdbe8f..2722c81f 100644
--- a/frontend/components/navigation-layout.tsx
+++ b/frontend/components/navigation-layout.tsx
@@ -1,7 +1,10 @@
"use client";
import { usePathname } from "next/navigation";
-import { useGetConversationsQuery, type ChatConversation } from "@/app/api/queries/useGetConversationsQuery";
+import {
+ useGetConversationsQuery,
+ type ChatConversation,
+} from "@/app/api/queries/useGetConversationsQuery";
import { KnowledgeFilterDropdown } from "@/components/knowledge-filter-dropdown";
import { ModeToggle } from "@/components/mode-toggle";
import { Navigation } from "@/components/navigation";
diff --git a/frontend/components/navigation.tsx b/frontend/components/navigation.tsx
index c193b9f6..423172f5 100644
--- a/frontend/components/navigation.tsx
+++ b/frontend/components/navigation.tsx
@@ -5,7 +5,6 @@ import {
FileText,
Library,
MessageSquare,
- MoreHorizontal,
Plus,
Settings2,
Trash2,
@@ -111,7 +110,7 @@ export function Navigation({
) {
// Filter out the deleted conversation and find the next one
const remainingConversations = conversations.filter(
- (conv) => conv.response_id !== conversationToDelete.response_id,
+ conv => conv.response_id !== conversationToDelete.response_id
);
if (remainingConversations.length > 0) {
@@ -132,7 +131,7 @@ export function Navigation({
setDeleteModalOpen(false);
setConversationToDelete(null);
},
- onError: (error) => {
+ onError: error => {
toast.error(`Failed to delete conversation: ${error.message}`);
},
});
@@ -164,7 +163,7 @@ export function Navigation({
window.dispatchEvent(
new CustomEvent("fileUploadStart", {
detail: { filename: file.name },
- }),
+ })
);
try {
@@ -188,7 +187,7 @@ export function Navigation({
filename: file.name,
error: "Failed to process document",
},
- }),
+ })
);
// Trigger loading end event
@@ -208,7 +207,7 @@ export function Navigation({
window.dispatchEvent(
new CustomEvent("fileUploaded", {
detail: { file, result },
- }),
+ })
);
// Trigger loading end event
@@ -222,7 +221,7 @@ export function Navigation({
window.dispatchEvent(
new CustomEvent("fileUploadError", {
detail: { filename: file.name, error: "Failed to process document" },
- }),
+ })
);
}
};
@@ -244,7 +243,7 @@ export function Navigation({
const handleDeleteConversation = (
conversation: ChatConversation,
- event?: React.MouseEvent,
+ event?: React.MouseEvent
) => {
if (event) {
event.preventDefault();
@@ -256,7 +255,7 @@ export function Navigation({
const handleContextMenuAction = (
action: string,
- conversation: ChatConversation,
+ conversation: ChatConversation
) => {
switch (action) {
case "delete":
@@ -332,33 +331,33 @@ export function Navigation({
return (
-
+
- {routes.map((route) => (
+ {routes.map(route => (
{route.label}
{route.label === "Settings" && (
-
+
)}
))}
@@ -374,11 +373,11 @@ export function Navigation({
{/* Chat Page Specific Sections */}
{isOnChatPage && (
-
+
{/* Conversations Section */}
-
-
-
+
+
+
Conversations
-
+
{/* Conversations List - grows naturally, doesn't fill all space */}
{loadingNewConversation || isConversationsLoading ? (
-
+
Loading...
) : (
@@ -406,7 +405,7 @@ export function Navigation({
{placeholderConversation && (