mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-25 19:15:18 +02:00
refactor: replace Activity icons with Workflow icons across various components for consistency
This commit is contained in:
parent
3846056bc7
commit
56239548c8
6 changed files with 14 additions and 19 deletions
|
|
@ -17,7 +17,6 @@ import {
|
||||||
} from "@tanstack/react-table";
|
} from "@tanstack/react-table";
|
||||||
import { useAtomValue } from "jotai";
|
import { useAtomValue } from "jotai";
|
||||||
import {
|
import {
|
||||||
Activity,
|
|
||||||
AlertCircle,
|
AlertCircle,
|
||||||
AlertTriangle,
|
AlertTriangle,
|
||||||
Bug,
|
Bug,
|
||||||
|
|
@ -38,6 +37,7 @@ import {
|
||||||
RefreshCw,
|
RefreshCw,
|
||||||
Terminal,
|
Terminal,
|
||||||
Trash,
|
Trash,
|
||||||
|
Workflow,
|
||||||
X,
|
X,
|
||||||
Zap,
|
Zap,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
|
|
@ -133,7 +133,6 @@ const logStatusConfig = {
|
||||||
function MessageDetails({
|
function MessageDetails({
|
||||||
message,
|
message,
|
||||||
taskName,
|
taskName,
|
||||||
metadata,
|
|
||||||
createdAt,
|
createdAt,
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
|
|
@ -623,7 +622,7 @@ function LogsSummaryDashboard({
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
|
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
|
||||||
<CardTitle className="text-sm font-medium">{t("total_logs")}</CardTitle>
|
<CardTitle className="text-sm font-medium">{t("total_logs")}</CardTitle>
|
||||||
<Activity className="h-4 w-4 text-muted-foreground" />
|
<Workflow className="h-4 w-4 text-muted-foreground" />
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<div className="text-2xl font-bold">{summary.total_logs}</div>
|
<div className="text-2xl font-bold">{summary.total_logs}</div>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useAtomValue, useSetAtom } from "jotai";
|
import { useAtomValue, useSetAtom } from "jotai";
|
||||||
import { Activity } from "lucide-react";
|
import { Workflow } from "lucide-react";
|
||||||
import { useCallback } from "react";
|
import { useCallback } from "react";
|
||||||
import { openActionLogSheetAtom } from "@/atoms/agent/action-log-sheet.atom";
|
import { openActionLogSheetAtom } from "@/atoms/agent/action-log-sheet.atom";
|
||||||
import { agentFlagsAtom } from "@/atoms/agent/agent-flags-query.atom";
|
import { agentFlagsAtom } from "@/atoms/agent/agent-flags-query.atom";
|
||||||
|
|
@ -41,7 +41,7 @@ export function ActionLogButton({ threadId }: ActionLogButtonProps) {
|
||||||
aria-label="Open agent action log"
|
aria-label="Open agent action log"
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
>
|
>
|
||||||
<Activity className="size-4" />
|
<Workflow className="size-4 text-muted-foreground" />
|
||||||
</Button>
|
</Button>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent>Agent actions</TooltipContent>
|
<TooltipContent>Agent actions</TooltipContent>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import { useQueryClient } from "@tanstack/react-query";
|
import { useQueryClient } from "@tanstack/react-query";
|
||||||
import { useAtom, useAtomValue } from "jotai";
|
import { useAtom, useAtomValue } from "jotai";
|
||||||
import { Activity, RefreshCcw } from "lucide-react";
|
import { RefreshCcw, Workflow, } from "lucide-react";
|
||||||
import { useCallback } from "react";
|
import { useCallback } from "react";
|
||||||
import { actionLogSheetAtom } from "@/atoms/agent/action-log-sheet.atom";
|
import { actionLogSheetAtom } from "@/atoms/agent/action-log-sheet.atom";
|
||||||
import { agentFlagsAtom } from "@/atoms/agent/agent-flags-query.atom";
|
import { agentFlagsAtom } from "@/atoms/agent/agent-flags-query.atom";
|
||||||
|
|
@ -36,7 +36,7 @@ function DisabledState() {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-1 flex-col items-center justify-center gap-4 px-6 pb-12 text-center">
|
<div className="flex flex-1 flex-col items-center justify-center gap-4 px-6 pb-12 text-center">
|
||||||
<div className="flex size-12 items-center justify-center rounded-full border border-popover-border bg-muted/40">
|
<div className="flex size-12 items-center justify-center rounded-full border border-popover-border bg-muted/40">
|
||||||
<Activity className="size-5 text-muted-foreground" strokeWidth={1.75} />
|
<Workflow className="size-5 text-muted-foreground" strokeWidth={1.75} />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex max-w-[280px] flex-col gap-1.5">
|
<div className="flex max-w-[280px] flex-col gap-1.5">
|
||||||
<p className="text-sm font-semibold tracking-tight">Action log is disabled</p>
|
<p className="text-sm font-semibold tracking-tight">Action log is disabled</p>
|
||||||
|
|
|
||||||
|
|
@ -1356,7 +1356,7 @@ export function ModelSelector({
|
||||||
role="combobox"
|
role="combobox"
|
||||||
aria-expanded={open}
|
aria-expanded={open}
|
||||||
className={cn(
|
className={cn(
|
||||||
"h-8 gap-2 px-3 text-sm bg-muted hover:bg-accent hover:text-accent-foreground border-0 select-none",
|
"h-8 gap-2 px-3 text-sm bg-muted shadow-xs hover:bg-accent hover:text-accent-foreground border-0 select-none",
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
import { useAtom } from "jotai";
|
import { useAtom } from "jotai";
|
||||||
import {
|
import {
|
||||||
Activity,
|
|
||||||
Brain,
|
Brain,
|
||||||
CircleUser,
|
CircleUser,
|
||||||
Globe,
|
Globe,
|
||||||
|
|
@ -12,6 +11,7 @@ import {
|
||||||
ReceiptText,
|
ReceiptText,
|
||||||
ShieldCheck,
|
ShieldCheck,
|
||||||
Sparkles,
|
Sparkles,
|
||||||
|
Workflow,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import dynamic from "next/dynamic";
|
import dynamic from "next/dynamic";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
|
|
@ -127,7 +127,7 @@ export function UserSettingsDialog() {
|
||||||
{
|
{
|
||||||
value: "agent-status",
|
value: "agent-status",
|
||||||
label: "Agent Status",
|
label: "Agent Status",
|
||||||
icon: <Activity className="h-4 w-4" />,
|
icon: <Workflow className="h-4 w-4" />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "purchases",
|
value: "purchases",
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ import {
|
||||||
Dot,
|
Dot,
|
||||||
File as FileIcon,
|
File as FileIcon,
|
||||||
FolderOpen,
|
FolderOpen,
|
||||||
Upload,
|
|
||||||
X,
|
X,
|
||||||
Zap,
|
Zap,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
|
|
@ -537,7 +536,9 @@ export function DocumentUploadTab({
|
||||||
<div className="sm:hidden">
|
<div className="sm:hidden">
|
||||||
{hasContent ? (
|
{hasContent ? (
|
||||||
isElectron ? (
|
isElectron ? (
|
||||||
<div className="w-full">{renderBrowseButton({ compact: true, fullWidth: true })}</div>
|
<div className="flex w-full justify-center">
|
||||||
|
{renderBrowseButton({ compact: true })}
|
||||||
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
@ -552,7 +553,6 @@ export function DocumentUploadTab({
|
||||||
<div className="flex w-full flex-col items-center gap-4 bg-transparent px-4 py-12 select-none">
|
<div className="flex w-full flex-col items-center gap-4 bg-transparent px-4 py-12 select-none">
|
||||||
{isElectron ? (
|
{isElectron ? (
|
||||||
<div className="flex w-full flex-col items-center gap-4">
|
<div className="flex w-full flex-col items-center gap-4">
|
||||||
<Upload className="h-10 w-10 text-muted-foreground" />
|
|
||||||
<div className="text-center space-y-1.5">
|
<div className="text-center space-y-1.5">
|
||||||
<p className="text-base font-medium">{t("select_files_or_folder")}</p>
|
<p className="text-base font-medium">{t("select_files_or_folder")}</p>
|
||||||
<p className="text-sm text-muted-foreground">{t("file_size_limit")}</p>
|
<p className="text-sm text-muted-foreground">{t("file_size_limit")}</p>
|
||||||
|
|
@ -565,7 +565,6 @@ export function DocumentUploadTab({
|
||||||
className="h-auto w-full flex-col gap-4 whitespace-normal bg-transparent p-0 text-foreground hover:bg-transparent hover:text-foreground"
|
className="h-auto w-full flex-col gap-4 whitespace-normal bg-transparent p-0 text-foreground hover:bg-transparent hover:text-foreground"
|
||||||
onClick={() => fileInputRef.current?.click()}
|
onClick={() => fileInputRef.current?.click()}
|
||||||
>
|
>
|
||||||
<Upload className="h-10 w-10 text-muted-foreground" />
|
|
||||||
<div className="text-center space-y-1.5">
|
<div className="text-center space-y-1.5">
|
||||||
<p className="text-base font-medium">{t("tap_select_files_or_folder")}</p>
|
<p className="text-base font-medium">{t("tap_select_files_or_folder")}</p>
|
||||||
<p className="text-sm text-muted-foreground">{t("file_size_limit")}</p>
|
<p className="text-sm text-muted-foreground">{t("file_size_limit")}</p>
|
||||||
|
|
@ -573,11 +572,11 @@ export function DocumentUploadTab({
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
<fieldset
|
<fieldset
|
||||||
className="w-full mt-1 border-none p-0 m-0"
|
className="mt-1 flex w-full justify-center border-none p-0 m-0"
|
||||||
onClick={(e) => e.stopPropagation()}
|
onClick={(e) => e.stopPropagation()}
|
||||||
onKeyDown={(e) => e.stopPropagation()}
|
onKeyDown={(e) => e.stopPropagation()}
|
||||||
>
|
>
|
||||||
{renderBrowseButton({ fullWidth: true })}
|
{renderBrowseButton()}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
@ -590,7 +589,6 @@ export function DocumentUploadTab({
|
||||||
>
|
>
|
||||||
{hasContent ? (
|
{hasContent ? (
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<Upload className="h-4 w-4 text-muted-foreground shrink-0" />
|
|
||||||
<span className="text-xs text-muted-foreground flex-1 truncate">
|
<span className="text-xs text-muted-foreground flex-1 truncate">
|
||||||
{isDragActive ? t("drop_files") : t("drag_drop_more")}
|
{isDragActive ? t("drop_files") : t("drag_drop_more")}
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -600,12 +598,10 @@ export function DocumentUploadTab({
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
{isDragActive && (
|
{isDragActive && (
|
||||||
<div className="absolute inset-0 flex flex-col items-center justify-center gap-2">
|
<div className="absolute inset-0 flex flex-col items-center justify-center gap-2">
|
||||||
<Upload className="h-8 w-8 text-primary" />
|
|
||||||
<p className="text-sm font-medium text-primary">{t("drop_files")}</p>
|
<p className="text-sm font-medium text-primary">{t("drop_files")}</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className={`flex flex-col items-center gap-2 ${isDragActive ? "invisible" : ""}`}>
|
<div className={`flex flex-col items-center gap-2 ${isDragActive ? "invisible" : ""}`}>
|
||||||
<Upload className="h-8 w-8 text-muted-foreground" />
|
|
||||||
<p className="text-sm font-medium">{t("drag_drop")}</p>
|
<p className="text-sm font-medium">{t("drag_drop")}</p>
|
||||||
<p className="text-xs text-muted-foreground">{t("file_size_limit")}</p>
|
<p className="text-xs text-muted-foreground">{t("file_size_limit")}</p>
|
||||||
<div className="mt-1">{renderBrowseButton()}</div>
|
<div className="mt-1">{renderBrowseButton()}</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue