diff --git a/surfsense_backend/app/services/chat_comments_service.py b/surfsense_backend/app/services/chat_comments_service.py index fa26bf6d5..6f81c0158 100644 --- a/surfsense_backend/app/services/chat_comments_service.py +++ b/surfsense_backend/app/services/chat_comments_service.py @@ -315,6 +315,8 @@ async def create_comment( thread_title=thread.title or "Untitled thread", author_id=str(user.id), author_name=author_name, + author_avatar_url=user.avatar_url, + author_email=user.email, content_preview=content_preview[:200], search_space_id=search_space_id, ) @@ -426,6 +428,8 @@ async def create_reply( thread_title=thread.title or "Untitled thread", author_id=str(user.id), author_name=author_name, + author_avatar_url=user.avatar_url, + author_email=user.email, content_preview=content_preview[:200], search_space_id=search_space_id, ) @@ -565,6 +569,8 @@ async def update_comment( thread_title=thread.title or "Untitled thread", author_id=str(user.id), author_name=author_name, + author_avatar_url=user.avatar_url, + author_email=user.email, content_preview=content_preview[:200], search_space_id=search_space_id, ) diff --git a/surfsense_backend/app/services/notification_service.py b/surfsense_backend/app/services/notification_service.py index 97e0f9457..5f7f568f6 100644 --- a/surfsense_backend/app/services/notification_service.py +++ b/surfsense_backend/app/services/notification_service.py @@ -634,6 +634,8 @@ class MentionNotificationHandler(BaseNotificationHandler): thread_title: str, author_id: str, author_name: str, + author_avatar_url: str | None, + author_email: str, content_preview: str, search_space_id: int, ) -> Notification: @@ -650,6 +652,8 @@ class MentionNotificationHandler(BaseNotificationHandler): thread_title: Title of the chat thread author_id: ID of the comment author author_name: Display name of the comment author + author_avatar_url: Avatar URL of the comment author + author_email: Email of the comment author (for fallback initials) content_preview: First ~100 chars of the comment search_space_id: Search space ID @@ -667,6 +671,8 @@ class MentionNotificationHandler(BaseNotificationHandler): "thread_title": thread_title, "author_id": author_id, "author_name": author_name, + "author_avatar_url": author_avatar_url, + "author_email": author_email, "content_preview": content_preview[:200], } diff --git a/surfsense_web/app/dashboard/[search_space_id]/client-layout.tsx b/surfsense_web/app/dashboard/[search_space_id]/client-layout.tsx index 7b1bb61b0..bbafa9703 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/client-layout.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/client-layout.tsx @@ -16,7 +16,6 @@ import { import { activeSearchSpaceIdAtom } from "@/atoms/search-spaces/search-space-query.atoms"; import { DocumentUploadDialogProvider } from "@/components/assistant-ui/document-upload-popup"; import { DashboardBreadcrumb } from "@/components/dashboard-breadcrumb"; -import { LanguageSwitcher } from "@/components/LanguageSwitcher"; import { LayoutDataProvider } from "@/components/layout"; import { OnboardingTour } from "@/components/onboarding-tour"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; @@ -197,11 +196,7 @@ export function DashboardClientLayout({ return ( - } - languageSwitcher={} - > + }> {children} diff --git a/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx index 43c33ba5a..f23851f47 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx @@ -1060,13 +1060,7 @@ export default function NewChatPage() {
- } + header={} />
diff --git a/surfsense_web/app/dashboard/[search_space_id]/team/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/team/page.tsx index f00982555..6701342de 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/team/page.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/team/page.tsx @@ -778,8 +778,7 @@ function RolesTab({ role.name === "Owner" && "text-amber-600", role.name === "Editor" && "text-blue-600", role.name === "Viewer" && "text-gray-600", - !["Owner", "Editor", "Viewer"].includes(role.name) && - "text-primary" + !["Owner", "Editor", "Viewer"].includes(role.name) && "text-primary" )} /> @@ -1488,7 +1487,8 @@ function CreateRoleDialog({

- Use presets to quickly apply Editor (create/read/update) or Viewer (read-only) permissions + Use presets to quickly apply Editor (create/read/update) or Viewer (read-only) + permissions

@@ -1500,9 +1500,7 @@ function CreateRoleDialog({ return (
-