diff --git a/surfsense_web/app/globals.css b/surfsense_web/app/globals.css index 48ba10cac..3cdb34bff 100644 --- a/surfsense_web/app/globals.css +++ b/surfsense_web/app/globals.css @@ -20,6 +20,7 @@ --card-foreground: oklch(0.145 0 0); --popover: oklch(0.99 0 0); --popover-foreground: oklch(0.145 0 0); + --popover-border: oklch(0.92 0 0); --primary: oklch(0.205 0 0); --primary-foreground: oklch(0.985 0 0); --secondary: oklch(0.97 0 0); @@ -64,6 +65,7 @@ --card-foreground: oklch(0.985 0 0); --popover: oklch(0.32 0 0); --popover-foreground: oklch(0.985 0 0); + --popover-border: oklch(0.4 0 0); --primary: oklch(0.985 0 0); --primary-foreground: oklch(0.205 0 0); --secondary: oklch(0.269 0 0); @@ -107,6 +109,7 @@ --color-card-foreground: var(--card-foreground); --color-popover: var(--popover); --color-popover-foreground: var(--popover-foreground); + --color-popover-border: var(--popover-border); --color-primary: var(--primary); --color-primary-foreground: var(--primary-foreground); --color-secondary: var(--secondary); diff --git a/surfsense_web/components/agent-action-log/action-log-sheet.tsx b/surfsense_web/components/agent-action-log/action-log-sheet.tsx index 7d27b4019..fdb0bb7a9 100644 --- a/surfsense_web/components/agent-action-log/action-log-sheet.tsx +++ b/surfsense_web/components/agent-action-log/action-log-sheet.tsx @@ -8,7 +8,6 @@ import { actionLogSheetAtom } from "@/atoms/agent/action-log-sheet.atom"; import { agentFlagsAtom } from "@/atoms/agent/agent-flags-query.atom"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; -import { Separator } from "@/components/ui/separator"; import { Sheet, SheetContent, @@ -22,15 +21,11 @@ import { ActionLogItem } from "./action-log-item"; function EmptyState() { return ( -
-
- -
-
-

No actions logged yet

-

- Once the agent calls a tool in this thread, it will show up here. From the log you can - inspect arguments and revert reversible actions. +

+
+

No actions logged yet

+

+ A complete audit trail of every tool the agent uses in this thread will appear here

@@ -39,15 +34,15 @@ function EmptyState() { function DisabledState() { return ( -
-
- +
+
+
-
-

Action log is disabled

-

- This deployment hasn't enabled the agent action log. An admin can flip - +

+

Action log is disabled

+

+ This deployment hasn't enabled the agent action log. An admin can enable{" "} + SURFSENSE_ENABLE_ACTION_LOG . @@ -75,7 +70,6 @@ export function ActionLogSheet() { const { data: flags } = useAtomValue(agentFlagsAtom); const actionLogEnabled = !!flags?.enable_action_log && !flags?.disable_new_agent_stack; - const revertEnabled = !!flags?.enable_revert_route && !flags?.disable_new_agent_stack; const threadId = state.threadId; @@ -94,39 +88,32 @@ export function ActionLogSheet() { setState((s) => ({ ...s, open }))}> - -

-
- - Agent actions - {data?.total !== undefined && data.total > 0 && ( - - {data.total} - - )} -
- + +
+ Agent actions + {data?.total !== undefined && data.total > 0 && ( + + {data.total} + + )}
- + Audit trail of every tool call the agent made in this thread. - {revertEnabled - ? " Reversible actions can be undone in place." - : " Reverts are read-only on this deployment."}
- +
{!actionLogEnabled ? ( diff --git a/surfsense_web/components/assistant-ui/assistant-message.tsx b/surfsense_web/components/assistant-ui/assistant-message.tsx index 3f4e972fc..59801e897 100644 --- a/surfsense_web/components/assistant-ui/assistant-message.tsx +++ b/surfsense_web/components/assistant-ui/assistant-message.tsx @@ -320,7 +320,7 @@ const MessageInfoDropdown: FC = () => { )} {hasUsage && ( <> - + {models.length > 0 ? ( models.map(([model, counts]) => { const { name, icon } = resolveModel(model); diff --git a/surfsense_web/components/assistant-ui/connector-popup/components/connector-card.tsx b/surfsense_web/components/assistant-ui/connector-popup/components/connector-card.tsx index 04b61ea54..dadfe32ab 100644 --- a/surfsense_web/components/assistant-ui/connector-popup/components/connector-card.tsx +++ b/surfsense_web/components/assistant-ui/connector-popup/components/connector-card.tsx @@ -145,7 +145,7 @@ export const ConnectorCard: FC = ({ size="sm" variant={isConnected ? "secondary" : "default"} className={cn( - "relative h-8 text-[11px] px-3 rounded-lg shrink-0 font-medium items-center justify-center", + "relative h-8 text-[11px] px-3 shrink-0 font-medium items-center justify-center", isConnected && "bg-white text-slate-700 hover:bg-accent hover:text-accent-foreground border-0 shadow-xs dark:bg-secondary dark:text-secondary-foreground", !isConnected && "shadow-xs" diff --git a/surfsense_web/components/assistant-ui/connector-popup/components/connector-dialog-header.tsx b/surfsense_web/components/assistant-ui/connector-popup/components/connector-dialog-header.tsx index e6e107ae8..4fa261dba 100644 --- a/surfsense_web/components/assistant-ui/connector-popup/components/connector-dialog-header.tsx +++ b/surfsense_web/components/assistant-ui/connector-popup/components/connector-dialog-header.tsx @@ -37,7 +37,7 @@ export const ConnectorDialogHeader: FC = ({ -
+
= ({
- + = ({
{/* Fixed Footer - Action buttons */} -
+
{/* Fixed Footer - Action buttons */} -
+
{isLive ? (
) : ( - + ) ) : (
{/* Fixed Footer - Action buttons */} -
+
- + @@ -495,7 +495,7 @@ export function SidebarUserProfile({ ))} - +

v{APP_VERSION}

@@ -512,7 +512,7 @@ export function SidebarUserProfile({ )} - + {isLoggingOut ? : } diff --git a/surfsense_web/components/new-chat/chat-share-button.tsx b/surfsense_web/components/new-chat/chat-share-button.tsx index ce0c5dbcc..6e231707e 100644 --- a/surfsense_web/components/new-chat/chat-share-button.tsx +++ b/surfsense_web/components/new-chat/chat-share-button.tsx @@ -231,7 +231,7 @@ export function ChatShareButton({ thread, onVisibilityChange, className }: ChatS {canCreatePublicLink && ( <> {/* Divider */} -
+
{/* Public Link Option */} )} - {isSelected && } + {isSelected && ( +
+ +
+ )}
); @@ -1150,7 +1154,7 @@ export function ModelSelector({ return (
{/* Tab header */} -
+
{( [ @@ -1303,7 +1307,7 @@ export function ModelSelector({ )} {globalItems.length > 0 && userItems.length > 0 && ( -
+
)} {userItems.length > 0 && ( <> diff --git a/surfsense_web/components/new-chat/prompt-picker.tsx b/surfsense_web/components/new-chat/prompt-picker.tsx index cd149ef2d..3f18890c7 100644 --- a/surfsense_web/components/new-chat/prompt-picker.tsx +++ b/surfsense_web/components/new-chat/prompt-picker.tsx @@ -171,7 +171,7 @@ export const PromptPicker = forwardRef(funct ))} -
+