From 32812b5f66b642caa19f1ef8193639690a1c9499 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Tue, 9 Jun 2026 12:09:49 +0530 Subject: [PATCH] feat(ui): enhance chat example prompts and improve layout - Added a new backend URL import to the route file for better configuration. - Updated the Composer component to use a relative positioning class for improved layout. - Refactored the ChatExamplePrompts component to enhance the display of active categories and prompts, including a close button for better user interaction. --- surfsense_web/app/api/zero/query/route.ts | 1 + .../components/assistant-ui/thread.tsx | 6 ++- .../new-chat/chat-example-prompts.tsx | 50 ++++++++++++------- 3 files changed, 36 insertions(+), 21 deletions(-) diff --git a/surfsense_web/app/api/zero/query/route.ts b/surfsense_web/app/api/zero/query/route.ts index 6cbe3a5e9..bff86c25e 100644 --- a/surfsense_web/app/api/zero/query/route.ts +++ b/surfsense_web/app/api/zero/query/route.ts @@ -1,6 +1,7 @@ import { mustGetQuery } from "@rocicorp/zero"; import { handleQueryRequest } from "@rocicorp/zero/server"; import { NextResponse } from "next/server"; +import { BACKEND_URL } from "@/lib/env-config"; import type { Context } from "@/types/zero"; import { queries } from "@/zero/queries"; import { schema } from "@/zero/schema"; diff --git a/surfsense_web/components/assistant-ui/thread.tsx b/surfsense_web/components/assistant-ui/thread.tsx index 89e830ace..5796109f0 100644 --- a/surfsense_web/components/assistant-ui/thread.tsx +++ b/surfsense_web/components/assistant-ui/thread.tsx @@ -898,7 +898,7 @@ const Composer: FC = () => { > ) : null} -