Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
fix(studio): refine themes, dashboard and localized UI hints (#5138)
yufengb5b495c95064
diff --git a/web-studio/src/components/ui/dialog.tsx b/web-studio/src/components/ui/dialog.tsxindex 85847e2dd..f631f5ef3 100644--- a/web-studio/src/components/ui/dialog.tsx+++ b/web-studio/src/components/ui/dialog.tsx@@ -1,3 +1,4 @@+import { useTranslation } from 'react-i18next'"use client"import * as React from "react"@@ -47,6 +48,7 @@ function DialogContent({}: DialogPrimitive.Popup.Props & {showCloseButton?: boolean}) {+ const { t } = useTranslation('common')return (<DialogPortal><DialogOverlay />@@ -72,7 +74,7 @@ function DialogContent({><XIcon/>- <span className="sr-only">Close</span>+ <span className="sr-only">{t('ui.close')}</span></DialogPrimitive.Close>)}</DialogPrimitive.Popup>diff --git a/web-studio/src/components/ui/pagination.tsx b/web-studio/src/components/ui/pagination.tsxindex 1dbfc9996..2586b9e67 100644--- a/web-studio/src/components/ui/pagination.tsx+++ b/web-studio/src/components/ui/pagination.tsx@@ -1,3 +1,4 @@+import { useTranslation } from 'react-i18next'import * as React from "react"import { cn } from "#/lib/utils"@@ -5,10 +6,11 @@ import { Button } from "#/components/ui/button"import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react"function Pagination({ className, ...props }: React.ComponentProps<"nav">) {+ const { t } = useTranslation('common')return (<navrole="navigation"- aria-label="pagination"+ aria-label={t('ui.pagination')}data-slot="pagination"className={cn("mx-auto flex w-full justify-center", className)}{...props}@@ -64,35 +66,37 @@ function PaginationLink({function PaginationPrevious({className,- text = "Previous",+ text,...props}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {+ const { t } = useTranslation('common')return (<PaginationLink- aria-label="Go to previous page"+ aria-label={t('ui.previousPage')}size="default"className={cn("pl-2!", className)}{...props}><ChevronLeftIcon data-icon="inline-start" />- <span className="hidden sm:block">{text}</span>+ <span className="hidden sm:block">{text ?? t('ui.previous')}</span></PaginationLink>)}function PaginationNext({className,- text = "Next",+ text,...props}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {+ const { t } = useTranslation('common')return (<PaginationLink- aria-label="Go to next page"+ aria-label={t('ui.nextPage')}size="default"className={cn("pr-2!", className)}{...props}>- <span className="hidden sm:block">{text}</span>+ <span className="hidden sm:block">{text ?? t('ui.next')}</span><ChevronRightIcon data-icon="inline-end" /></PaginationLink>)@@ -102,6 +106,7 @@ function PaginationEllipsis({className,...props}: React.ComponentProps<"span">) {+ const { t } = useTranslation('common')return (<spanaria-hidden@@ -114,7 +119,7 @@ function PaginationEllipsis({><MoreHorizontalIcon/>- <span className="sr-only">More pages</span>+ <span className="sr-only">{t('ui.morePages')}</span></span>)}diff --git a/web-studio/src/components/ui/sheet.tsx b/web-studio/src/components/ui/sheet.tsxindex 82956a31a..5dd6d8e63 100644--- a/web-studio/src/components/ui/sheet.tsx+++ b/web-studio/src/components/ui/sheet.tsx@@ -1,3 +1,4 @@+import { useTranslation } from 'react-i18next'"use client"import * as React from "react"@@ -46,6 +47,7 @@ function SheetContent({side?: "top" | "right" | "bottom" | "left"showCloseButton?: boolean}) {+ const { t } = useTranslation('common')return (<SheetPortal><SheetOverlay />@@ -72,7 +74,7 @@ function SheetContent({><XIcon/>- <span className="sr-only">Close</span>+ <span className="sr-only">{t('ui.close')}</span></SheetPrimitive.Close>)}</SheetPrimitive.Popup>diff --git a/web-studio/src/components/ui/sidebar.tsx b/web-studio/src/components/ui/sidebar.tsxindex 0a6434ee1..703e7f803 100644--- a/web-studio/src/components/ui/sidebar.tsx+++ b/web-studio/src/components/ui/sidebar.tsx@@ -1,3 +1,4 @@+import { useTranslation } from 'react-i18next'import * as React from "react"import { mergeProps } from "@base-ui/react/merge-props"import { useRender } from "@base-ui/react/use-render"@@ -184,6 +185,7 @@ function Sidebar({variant?: "sidebar" | "floating" | "inset"collapsible?: "offcanvas" | "icon" | "none"}) {+ const { t } = useTranslation('common')const { isMobile, state, openMobile, setOpenMobile } = useSidebar()if (collapsible === "none") {@@ -218,8 +220,8 @@ function Sidebar({side={side}><SheetHeader className="sr-only">- <SheetTitle>Sidebar</SheetTitle>- <SheetDescription>Displays the mobile sidebar.</SheetDescription>+ <SheetTitle>{t('ui.sidebar')}</SheetTitle>+ <SheetDescription>{t('ui.mobileSidebar')}</SheetDescription></SheetHeader><div className="flex h-full w-full flex-col">{children}</div></SheetContent>@@ -278,6 +280,7 @@ function SidebarTrigger({onClick,...props}: React.ComponentProps<typeof Button>) {+ const { t } = useTranslation('common')const { toggleSidebar } = useSidebar()return (@@ -294,22 +297,23 @@ function SidebarTrigger({{...props}><PanelLeftIcon />- <span className="sr-only">Toggle Sidebar</span>+ <span className="sr-only">{t('ui.toggleSidebar')}</span></Button>)}function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {+ const { t } = useTranslation('common')const { toggleSidebar } = useSidebar()return (<buttondata-sidebar="rail"data-slot="sidebar-rail"- aria-label="Toggle Sidebar"+ aria-label={t('ui.toggleSidebar')}tabIndex={-1}onClick={toggleSidebar}- title="Toggle Sidebar"+ title={t('ui.toggleSidebar')}className={cn("absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:inset-s-1/2 after:w-0.5 hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",diff --git a/web-studio/src/components/ui/spinner.tsx b/web-studio/src/components/ui/spinner.tsxindex f15f66f77..cbd77d9f3 100644--- a/web-studio/src/components/ui/spinner.tsx+++ b/web-studio/src/components/ui/spinner.tsx@@ -1,9 +1,11 @@+import { useTranslation } from 'react-i18next'import { cn } from "#/lib/utils"import { Loader2Icon } from "lucide-react"function Spinner({ className, ...props }: React.ComponentProps<"svg">) {+ const { t } = useTranslation('common')return (- <Loader2Icon role="status" aria-label="Loading" className={cn("size-4 animate-spin", className)} {...props} />+ <Loader2Icon role="status" aria-label={t('ui.loading')} className={cn("size-4 animate-spin", className)} {...props} />)}diff --git a/web-studio/src/i18n/locales/en/resources.ts b/web-studio/src/i18n/locales/en/resources.tsindex 0fdef586c..541405d01 100644--- a/web-studio/src/i18n/locales/en/resources.ts+++ b/web-studio/src/i18n/locales/en/resources.ts@@ -419,6 +419,12 @@ const resources = {},},filePreview: {+ directoryLevels: {+ abstractLabel: 'Abstract',+ overviewLabel: 'Overview',+ abstractDescription: 'Short semantic abstract',+ overviewDescription: 'Directory overview',+ },cancel: 'Cancel',edit: 'Edit',emptyFile: '(empty file)',diff --git a/web-studio/src/i18n/locales/en/workspace.ts b/web-studio/src/i18n/locales/en/workspace.tsindex 611a40693..e0d08f808 100644--- a/web-studio/src/i18n/locales/en/workspace.ts+++ b/web-studio/src/i18n/locales/en/workspace.ts@@ -388,8 +388,32 @@ const workspace = {},},tasksPage: {+ labels: {+ missingResource: 'Missing resource ID for task',+ requeueFailed: 'Re-queue failed',+ requeueSubmitted: 'Re-queue request submitted successfully!',+ successRate: 'Success Rate',+ avgDuration: 'Avg Duration',+ avgProcessingTime: 'Avg Processing Time',+ totalTasks: 'Total Tasks',+ activePending: 'Active/Pending',+ runningPending: 'Running / Pending Workloads',+ taskQueueStatus: 'Task Queue Status',+ processQueueStatus: 'Process Queue Status',+ queuePipeline: 'Queue Pipeline',+ duration: 'Duration',+ taskSummary: 'Total {{total}} ({{failed}} failed)',+ taskCount: 'Tasks: {{count}}',+ completedTasks: 'Completed: {{count}}',+ serialFlow: 'Sequential process flow',+ parallelBatch: 'Parallel process batch',+ serialBatch: 'Sequential process batch',+ latestPerResource: 'Latest per Resource',+ individualTasks: 'Individual Tasks',+ },retry: {- noPendingMessages: 'No new task created: this session has no pending messages',+ noPendingMessages:+ 'No new task created: this session has no pending messages',commitSkipped: 'No new task created: this session commit was skipped',},title: 'Task Center',@@ -661,6 +685,19 @@ const workspace = {unset: 'No account selected',},common: {+ ui: {+ close: 'Close',+ loading: 'Loading',+ pagination: 'Pagination',+ previous: 'Previous',+ next: 'Next',+ previousPage: 'Go to previous page',+ nextPage: 'Go to next page',+ morePages: 'More pages',+ sidebar: 'Sidebar',+ mobileSidebar: 'Mobile navigation sidebar',+ toggleSidebar: 'Toggle Sidebar',+ },action: {cancel: 'Cancel',saveConnection: 'Save Connection',diff --git a/web-studio/src/i18n/locales/zh-CN/resources.ts b/web-studio/src/i18n/locales/zh-CN/resources.tsindex 401b9a7af..60a3cf3ec 100644--- a/web-studio/src/i18n/locales/zh-CN/resources.ts+++ b/web-studio/src/i18n/locales/zh-CN/resources.ts@@ -399,6 +399,12 @@ const resources = {},},filePreview: {+ directoryLevels: {+ abstractLabel: '摘要',+ overviewLabel: '概览',+ abstractDescription: '简短的语义摘要',+ overviewDescription: '目录内容概览',+ },cancel: '取消',edit: '编辑',emptyFile: '(空文件)',diff --git a/web-studio/src/i18n/locales/zh-CN/workspace.ts b/web-studio/src/i18n/locales/zh-CN/workspace.tsindex 24db0e1ce..f46f8b4d8 100644--- a/web-studio/src/i18n/locales/zh-CN/workspace.ts+++ b/web-studio/src/i18n/locales/zh-CN/workspace.ts@@ -377,6 +377,29 @@ const workspace = {},},tasksPage: {+ labels: {+ missingResource: '任务缺少关联资源 ID,无法重新入队',+ requeueFailed: '重新入队失败',+ requeueSubmitted: '重新入队请求已发送,后端正在处理新任务!',+ successRate: '任务成功率',+ avgDuration: '平均处理耗时',+ avgProcessingTime: '全流程平均处理时长',+ totalTasks: '任务总数',+ activePending: '并发与排队',+ runningPending: '进行中 / 等待中任务',+ taskQueueStatus: '任务队列状态',+ processQueueStatus: '工序队列状态',+ queuePipeline: '工序队列流转',+ duration: '耗时',+ taskSummary: '共 {{total}} 条任务({{failed}} 异常)',+ taskCount: '{{count}} 条',+ completedTasks: '已完成 {{count}} 条',+ serialFlow: '串行工序流转',+ parallelBatch: '并发执行工序批次',+ serialBatch: '串行工序批次',+ latestPerResource: '按资源收敛(最新)',+ individualTasks: '逐条任务',+ },retry: {noPendingMessages: '未创建新任务:该会话没有待提交消息',commitSkipped: '未创建新任务:本次会话提交已跳过',@@ -632,6 +655,19 @@ const workspace = {unset: '未选择账号',},common: {+ ui: {+ close: '关闭',+ loading: '加载中',+ pagination: '分页',+ previous: '上一页',+ next: '下一页',+ previousPage: '前往上一页',+ nextPage: '前往下一页',+ morePages: '更多页',+ sidebar: '侧栏',+ mobileSidebar: '移动端导航侧栏',+ toggleSidebar: '展开或收起侧栏',+ },action: {cancel: '取消',saveConnection: '保存连接',diff --git a/web-studio/src/routes/home/-components/context-commits-heatmap.tsx b/web-studio/src/routes/home/-components/context-commits-heatmap.tsxindex f44f14965..7bad4383c 100644--- a/web-studio/src/routes/home/-components/context-commits-heatmap.tsx+++ b/web-studio/src/routes/home/-components/context-commits-heatmap.tsx@@ -1,3 +1,4 @@+import { useTranslation } from 'react-i18next'import { useEffect, useLayoutEffect, useRef, useState } from 'react'import { createPortal } from 'react-dom'import HeatMap from '@uiw/react-heat-map'@@ -5,8 +6,6 @@ import HeatMap from '@uiw/react-heat-map'import {HEATMAP_COLOR_STOPS,HEATMAP_EMPTY_COLOR,- HEATMAP_MONTH_LABELS,- HEATMAP_WEEK_LABELS,} from '../-constants/dashboard'import type {CommitHeatmapStats,@@ -32,6 +31,20 @@ export function ContextCommitsHeatmap({stats: CommitHeatmapStatst: HomeT}) {+ const { i18n } = useTranslation('home')+ const locale = i18n.resolvedLanguage ?? i18n.language+ const monthLabels = Array.from({ length: 12 }, (_, month) =>+ new Intl.DateTimeFormat(locale, { month: 'short' }).format(+ new Date(2026, month, 1),+ ),+ )+ const weekLabels = Array.from({ length: 7 }, (_, day) =>+ day % 2 === 1+ ? new Intl.DateTimeFormat(locale, { weekday: 'short' }).format(+ new Date(2026, 0, 4 + day),+ )+ : '',+ )const [tooltip, setTooltip] = useState<CommitTooltip | null>(null)const heatmapScrollRef = useRef<HTMLDivElement>(null)@@ -61,11 +74,11 @@ export function ContextCommitsHeatmap({<div className="min-w-0"><div ref={heatmapScrollRef} className="overflow-x-auto"><HeatMap- className="[--heatmap-empty:oklch(0.92_0_0)] text-muted-foreground dark:[--heatmap-empty:oklch(0.31_0_0)] [&_.w-heatmap-month]:fill-current [&_.w-heatmap-week]:fill-current"+ className="[--rhm-text-color:var(--muted-foreground)]"endDate={endDate}height={128}legendCellSize={0}- monthLabels={HEATMAP_MONTH_LABELS}+ monthLabels={monthLabels}panelColors={panelColors}rectProps={{ rx: 2 }}rectRender={(props, item) => {@@ -104,7 +117,7 @@ export function ContextCommitsHeatmap({space={3}startDate={startDate}value={items}- weekLabels={HEATMAP_WEEK_LABELS}+ weekLabels={weekLabels}width={820}/></div>@@ -240,24 +253,20 @@ function CommitTooltipView({{t('contextCommits.tooltip.total')}</div></div>- <div className="rounded-md bg-[oklch(0.68_0.12_232_/_0.14)] px-2 py-1 text-sm font-semibold tabular-nums text-[oklch(0.45_0.13_242)] dark:bg-[oklch(0.68_0.14_232_/_0.18)] dark:text-[oklch(0.76_0.14_232)]">+ <div className="py-1 text-lg font-semibold tabular-nums text-popover-foreground">{details.total}</div></div><div className="mt-3 space-y-2 border-t border-border/70 pt-3">- {rows.map((row, index) => (+ {rows.map((row) => (<divkey={row.label}className="grid grid-cols-[auto_1fr_auto] items-center gap-2"><span- className="size-1.5 rounded-full"+ className="size-1.5 rounded-full bg-muted-foreground"style={{- backgroundColor:- HEATMAP_COLOR_STOPS[- Math.min(index, HEATMAP_COLOR_STOPS.length - 1)- ],opacity: row.value > 0 ? 1 : 0.35,}}/>diff --git a/web-studio/src/routes/home/-components/metric-panels.tsx b/web-studio/src/routes/home/-components/metric-panels.tsxindex 5566fbbb6..b83ad0b26 100644--- a/web-studio/src/routes/home/-components/metric-panels.tsx+++ b/web-studio/src/routes/home/-components/metric-panels.tsx@@ -1,10 +1,9 @@import { useEffect, useRef } from 'react'-import type { ComponentType, CSSProperties, ReactNode } from 'react'+import type { ComponentType, ReactNode } from 'react'import { Coins, Database, Search } from 'lucide-react'import { Skeleton } from '#/components/ui/skeleton'-import { HOME_ACCENT_COLORS } from '../-constants/dashboard'import type {ContextCounts,HomeT,@@ -36,7 +35,7 @@ function MetricPanel({}: {children?: ReactNodedescription: string- icon: ComponentType<{ className?: string; style?: CSSProperties }>+ icon: ComponentType<{ className?: string }>isError?: booleanisLoading?: booleantitle: string@@ -95,19 +94,13 @@ function MetricPanel({<div><div className="flex items-start justify-between gap-3"><div className="min-w-0">- <h2 className="truncate text-sm font-semibold tracking-normal text-[oklch(0.42_0.04_232)] dark:text-[oklch(0.8_0.03_232)]">+ <h2 className="truncate text-sm font-semibold tracking-normal text-muted-foreground">{title}</h2><p className="sr-only">{description}</p></div>- <span- className="flex size-7 shrink-0 items-center justify-center rounded-full"- style={{ backgroundColor: HOME_ACCENT_COLORS.iconSoft }}- >- <Icon- className="size-3.5"- style={{ color: HOME_ACCENT_COLORS.icon }}- />+ <span className="flex size-7 shrink-0 items-center justify-center text-muted-foreground">+ <Icon className="size-4" /></span></div>@@ -123,7 +116,7 @@ function MetricPanel({</div>{children ? (- <div className="mt-4 grid grid-cols-[repeat(auto-fit,minmax(140px,1fr))] gap-2">+ <div className="mt-4 grid grid-cols-[repeat(auto-fit,minmax(140px,1fr))] gap-x-5 gap-y-1">{children}</div>) : null}diff --git a/web-studio/src/routes/home/-components/panel.tsx b/web-studio/src/routes/home/-components/panel.tsxindex 12840c547..29e66d4a4 100644--- a/web-studio/src/routes/home/-components/panel.tsx+++ b/web-studio/src/routes/home/-components/panel.tsx@@ -12,7 +12,7 @@ export function Panel({return (<sectionclassName={cn(- 'animate-home-panel-in rounded-2xl border border-border/70 bg-muted/80 p-6 shadow-sm transition-[background-color,border-color,box-shadow,transform] duration-200 ease-out hover:-translate-y-0.5 hover:border-border hover:bg-muted hover:shadow-md dark:border-white/10 dark:bg-white/[0.12] dark:hover:border-white/15 dark:hover:bg-white/[0.16]',+ 'animate-home-panel-in rounded-2xl border border-border/70 bg-card p-6 dark:border-[#363638] dark:bg-[#262628]',className,)}>@@ -47,9 +47,9 @@ export function SectionHeading({export function DetailRow({ label, value }: { label: string; value: string }) {return (- <div className="flex min-h-8 flex-wrap items-center gap-x-2 rounded-lg border border-[oklch(0.68_0.12_232/0.1)] bg-background/55 px-2.5 py-1.5 text-xs shadow-xs dark:border-white/10 dark:bg-white/[0.05]">+ <div className="flex min-h-8 flex-wrap items-center gap-x-2 py-1.5 text-xs"><span className="min-w-0 grow text-muted-foreground">{label}</span>- <span className="ml-auto font-medium tabular-nums text-[oklch(0.46_0.13_242)] dark:text-[oklch(0.74_0.12_232)]">+ <span className="ml-auto font-medium tabular-nums text-foreground">{value}</span></div>diff --git a/web-studio/src/routes/home/-components/token-trend-chart.tsx b/web-studio/src/routes/home/-components/token-trend-chart.tsxindex f91550afb..89e22c1fe 100644--- a/web-studio/src/routes/home/-components/token-trend-chart.tsx+++ b/web-studio/src/routes/home/-components/token-trend-chart.tsx@@ -48,12 +48,12 @@ export function TokenTrendChart({<stopoffset="5%"stopColor={TOKEN_COLORS.input}- stopOpacity={0.52}+ stopOpacity={0.12}/><stopoffset="95%"stopColor={TOKEN_COLORS.input}- stopOpacity={0.14}+ stopOpacity={0.02}/></linearGradient><linearGradient@@ -66,12 +66,12 @@ export function TokenTrendChart({<stopoffset="5%"stopColor={TOKEN_COLORS.output}- stopOpacity={0.46}+ stopOpacity={0.12}/><stopoffset="95%"stopColor={TOKEN_COLORS.output}- stopOpacity={0.11}+ stopOpacity={0.02}/></linearGradient><linearGradient@@ -84,18 +84,18 @@ export function TokenTrendChart({<stopoffset="5%"stopColor={TOKEN_COLORS.embedding}- stopOpacity={0.36}+ stopOpacity={0.12}/><stopoffset="95%"stopColor={TOKEN_COLORS.embedding}- stopOpacity={0.08}+ stopOpacity={0.02}/></linearGradient></defs><CartesianGridstroke="currentColor"- strokeOpacity={0.08}+ strokeOpacity={0.05}vertical={false}/><XAxisdiff --git a/web-studio/src/routes/home/-components/token-trend-panel.tsx b/web-studio/src/routes/home/-components/token-trend-panel.tsxindex fbeaa1b32..00f55d897 100644--- a/web-studio/src/routes/home/-components/token-trend-panel.tsx+++ b/web-studio/src/routes/home/-components/token-trend-panel.tsx@@ -40,7 +40,7 @@ export function TokenTrendPanel({<Panel><SectionHeadingaction={- <span className="rounded-full border border-[oklch(0.68_0.12_232/0.2)] bg-background/70 px-3 py-1 text-xs tabular-nums text-muted-foreground shadow-xs dark:bg-white/[0.06]">+ <span className="pt-1 text-xs tabular-nums text-muted-foreground">{rangeLabel}</span>}diff --git a/web-studio/src/routes/home/-constants/dashboard.ts b/web-studio/src/routes/home/-constants/dashboard.tsindex 6dcf86880..a1a61453f 100644--- a/web-studio/src/routes/home/-constants/dashboard.ts+++ b/web-studio/src/routes/home/-constants/dashboard.ts@@ -2,35 +2,15 @@ export const TOKEN_SERIES_DAYS = 14export const COMMIT_SERIES_DAYS = 365export const TOKEN_COLORS = {- embedding: 'oklch(0.5 0.11 252)',- input: 'oklch(0.57 0.13 232)',- output: 'oklch(0.62 0.12 188)',+ embedding: 'var(--home-token-embedding)',+ input: 'var(--home-token-input)',+ output: 'var(--home-token-output)',}-export const HOME_ACCENT_COLORS = {- icon: 'oklch(0.68 0.14 232)',- iconSoft: 'oklch(0.68 0.14 232 / 0.14)',-}--export const HEATMAP_MONTH_LABELS = [- 'Jan',- 'Feb',- 'Mar',- 'Apr',- 'May',- 'Jun',- 'Jul',- 'Aug',- 'Sep',- 'Oct',- 'Nov',- 'Dec',-]-export const HEATMAP_WEEK_LABELS = ['', 'Mon', '', 'Wed', '', 'Fri', '']export const HEATMAP_COLOR_STOPS = [- 'oklch(0.82 0.07 232)',- 'oklch(0.7 0.1 232)',- 'oklch(0.58 0.13 238)',- 'oklch(0.46 0.13 245)',+ 'var(--heatmap-level-1)',+ 'var(--heatmap-level-2)',+ 'var(--heatmap-level-3)',+ 'var(--heatmap-level-4)',] as const-export const HEATMAP_EMPTY_COLOR = 'oklch(0.92 0 0)'+export const HEATMAP_EMPTY_COLOR = 'var(--heatmap-empty)'diff --git a/web-studio/src/routes/resources/-components/file-preview.tsx b/web-studio/src/routes/resources/-components/file-preview.tsxindex 0e12ddf18..b3be422e9 100644--- a/web-studio/src/routes/resources/-components/file-preview.tsx+++ b/web-studio/src/routes/resources/-components/file-preview.tsx@@ -135,15 +135,15 @@ const DIRECTORY_LEVEL_META: Array<{}> = [{id: 'abstract',- label: 'Abstract',+ label: 'filePreview.directoryLevels.abstractLabel',name: 'L0',- title: 'Short semantic abstract',+ title: 'filePreview.directoryLevels.abstractDescription',},{id: 'overview',- label: 'Overview',+ label: 'filePreview.directoryLevels.overviewLabel',name: 'L1',- title: 'Directory overview',+ title: 'filePreview.directoryLevels.overviewDescription',},]@@ -1746,7 +1746,7 @@ export function FilePreview({? 'border-border bg-muted text-foreground': 'border-border bg-background text-muted-foreground hover:border-foreground/30 hover:text-foreground'}`}- title={level.title}+ title={t(level.title)}onClick={() =>setActiveDirectoryLevels((current) => {const next = new Set(current)@@ -1762,7 +1762,7 @@ export function FilePreview({<span className="font-mono text-[10px] font-semibold uppercase tracking-wide text-primary">{level.name}</span>- <span className="font-medium">{level.label}</span>+ <span className="font-medium">{t(level.label)}</span></button>)})}@@ -1791,9 +1791,9 @@ export function FilePreview({<span className="font-mono font-semibold uppercase tracking-wide text-primary">{level.name}</span>- <span className="font-medium">{level.label}</span>+ <span className="font-medium">{t(level.label)}</span><span className="text-muted-foreground">- {level.title}+ {t(level.title)}</span></header>{level.document ? (diff --git a/web-studio/src/routes/tasks/route.tsx b/web-studio/src/routes/tasks/route.tsxindex 1723d8be4..d96d33bef 100644--- a/web-studio/src/routes/tasks/route.tsx+++ b/web-studio/src/routes/tasks/route.tsx@@ -85,7 +85,7 @@ const TASK_STATUS_OPTIONS: Exclude<TaskStatusFilter, 'all'>[] = [function TasksRoute() {const navigate = useNavigate()- const { i18n, t } = useTranslation('tasksPage')+ const { t } = useTranslation('tasksPage')const { identityScopeKey } = useAppConnection()const queryClient = useQueryClient()const [page, setPage] = React.useState(1)@@ -107,7 +107,10 @@ function TasksRoute() {if (!dedupByResource) return rawTasksconst map = new Map<string, TaskRecord>()for (const t of rawTasks) {- const key = t.resource_id && t.task_type !== 'compile' ? `res:${t.resource_id}` : `task:${t.task_id}`+ const key =+ t.resource_id && t.task_type !== 'compile'+ ? `res:${t.resource_id}`+ : `task:${t.task_id}`if (!map.has(key)) {map.set(key, t)}@@ -126,11 +129,7 @@ function TasksRoute() {return { res: { ok: true }, task }}if (!task.resource_id) {- throw new Error(- i18n.language.startsWith('zh')- ? '任务缺少关联资源 ID,无法重新入队'- : 'Missing resource ID for task',- )+ throw new Error(t('labels.missingResource'))}// ── 1. task_type 精确匹配优先(不受 URI 前缀干扰)──────────────────────@@ -151,11 +150,7 @@ function TasksRoute() {const json = resp.dataif (json.status === 'error' || json.error) {throw new Error(- json.error?.message ||- json.message ||- (i18n.language.startsWith('zh')- ? '重新入队失败'- : 'Re-queue failed'),+ json.error?.message || json.message || t('labels.requeueFailed'),)}return { res: json, task }@@ -181,11 +176,7 @@ function TasksRoute() {const json = resp.dataif (json.status === 'error' || json.error) {throw new Error(- json.error?.message ||- json.message ||- (i18n.language.startsWith('zh')- ? '重新入队失败'- : 'Re-queue failed'),+ json.error?.message || json.message || t('labels.requeueFailed'),)}return { res: json, task }@@ -198,11 +189,7 @@ function TasksRoute() {toast.info(localizeSkippedCommit(result.skippedReason, t))return}- toast.success(- i18n.language.startsWith('zh')- ? '重新入队请求已发送,后端正在处理新任务!'- : 'Re-queue request submitted successfully!',- )+ toast.success(t('labels.requeueSubmitted'))await queryClient.invalidateQueries({ queryKey: ['tasks'] })},})@@ -232,7 +219,10 @@ function TasksRoute() {if (status === 'pending') return 0// Extract real queue metrics from task.result- const resObj = (task.result && typeof task.result === 'object') ? (task.result as Record<string, any>) : {}+ const resObj =+ task.result && typeof task.result === 'object'+ ? (task.result as Record<string, any>)+ : {}const qStatus = resObj.queue_statusconst embeddingProcessed = qStatus?.Embedding?.processedconst semanticProcessed = qStatus?.Semantic?.processed@@ -241,14 +231,14 @@ function TasksRoute() {const totalEmbedding = 20const embedRatio = Math.min(1, embeddingProcessed / totalEmbedding)// Step 1 (20%) + Step 2 (30%) + Step 3 (50% * embedRatio)- return Math.round(20 + 30 + (50 * embedRatio))+ return Math.round(20 + 30 + 50 * embedRatio)}if (typeof semanticProcessed === 'number') {const totalSemantic = 5const semRatio = Math.min(1, semanticProcessed / totalSemantic)// Step 1 (20%) + Step 2 (30% * semRatio)- return Math.round(20 + (30 * semRatio))+ return Math.round(20 + 30 * semRatio)}const stage = task.stage?.toLowerCase()@@ -260,7 +250,8 @@ function TasksRoute() {const getTaskTotalSteps = (taskType?: string): number => {if (taskType === 'session_commit') return 1- if (taskType === 'admin_reindex' || taskType === 'snapshot_restore_reindex') return 2+ if (taskType === 'admin_reindex' || taskType === 'snapshot_restore_reindex')+ return 2if (taskType === 'connector_import') return 4return 3}@@ -269,7 +260,8 @@ function TasksRoute() {const taskId = task.task_idconst status = normalizeTaskStatus(task.status)const pct = getTaskProgressPct(task)- const isRetrying = retryMutation.isPending && retryMutation.variables.task_id === taskId+ const isRetrying =+ retryMutation.isPending && retryMutation.variables.task_id === taskIdconst Icon =status === 'completed'? CheckCircle2Icon@@ -299,9 +291,7 @@ function TasksRoute() {/><span>{t(`status.${status}`)}</span>{status === 'running' && (- <span className="font-mono font-semibold ml-0.5">- {pct}%- </span>+ <span className="font-mono font-semibold ml-0.5">{pct}%</span>)}{status === 'failed' && (<button@@ -348,13 +338,20 @@ function TasksRoute() {return (<React.Fragment key={i}>{i > 0 && (- <span title="串行工序流转" className="inline-flex shrink-0">+ <span+ title={t('labels.serialFlow')}+ className="inline-flex shrink-0"+ ><ChevronRightIcon className="size-3 text-muted-foreground/40" /></span>)}<spanclassName="inline-flex items-center gap-1.5 rounded-md px-2 py-0.5 text-[11px] font-medium leading-none shrink-0 border border-border/60 bg-secondary/80 text-foreground shadow-2xs transition-all"- title={grp.type === 'parallel' ? '并发执行工序批次' : '串行工序批次'}+ title={t(+ grp.type === 'parallel'+ ? 'labels.parallelBatch'+ : 'labels.serialBatch',+ )}>{stepsInGroup.map((st: StepItem, j: number) => {const isDone = st.state === 'completed'@@ -367,10 +364,18 @@ function TasksRoute() {key={j}className="inline-flex items-center gap-1 shrink-0 transition-colors text-foreground/90 font-medium">- {isDone && <CheckIcon className="size-3 text-foreground/75 shrink-0" />}- {isRun && <LoaderCircleIcon className="size-3 text-foreground/75 animate-spin shrink-0" />}- {isPend && <CircleDashedIcon className="size-3 text-foreground/75 shrink-0" />}- {isFail && <XIcon className="size-3 text-foreground/75 shrink-0" />}+ {isDone && (+ <CheckIcon className="size-3 text-foreground/75 shrink-0" />+ )}+ {isRun && (+ <LoaderCircleIcon className="size-3 text-foreground/75 animate-spin shrink-0" />+ )}+ {isPend && (+ <CircleDashedIcon className="size-3 text-foreground/75 shrink-0" />+ )}+ {isFail && (+ <XIcon className="size-3 text-foreground/75 shrink-0" />+ )}<span>{st.name}</span></span>)@@ -533,7 +538,9 @@ function TasksRoute() {const baseTypeRows = Object.entries(typeCounts).map(([typeKey, count]) => {- const matchingTasks = allTasks.filter((taskItem) => taskItem.task_type === typeKey)+ const matchingTasks = allTasks.filter(+ (taskItem) => taskItem.task_type === typeKey,+ )const processing = matchingTasks.filter((taskItem) => normalizeTaskStatus(taskItem.status) === 'running',).length@@ -561,7 +568,10 @@ function TasksRoute() {...baseTypeRows,{name: 'TOTAL',- processing: baseTypeRows.reduce((sum, item) => sum + item.processing, 0),+ processing: baseTypeRows.reduce(+ (sum, item) => sum + item.processing,+ 0,+ ),pending: baseTypeRows.reduce((sum, item) => sum + item.pending, 0),completed: baseTypeRows.reduce((sum, item) => sum + item.completed, 0),errors: baseTypeRows.reduce((sum, item) => sum + item.errors, 0),@@ -614,9 +624,7 @@ function TasksRoute() {<div className="grid grid-cols-2 gap-3 md:grid-cols-4"><Card className="flex flex-col gap-1 p-3 shadow-none transition-colors hover:border-primary/40"><div className="flex items-center justify-between text-xs text-muted-foreground">- <span className="font-medium">- {i18n.language.startsWith('zh') ? '任务成功率' : 'Success Rate'}- </span>+ <span className="font-medium">{t('labels.successRate')}</span></div><div className="flex items-baseline gap-1"><span className="font-mono text-xl font-bold tabular-nums text-foreground">@@ -624,17 +632,16 @@ function TasksRoute() {</span></div><p className="text-[11px] text-muted-foreground truncate">- {i18n.language.startsWith('zh')- ? `共 ${kpiData.total} 条任务 (${kpiData.failed} 异常)`- : `Total ${kpiData.total} (${kpiData.failed} Failed)`}+ {t('labels.taskSummary', {+ total: kpiData.total,+ failed: kpiData.failed,+ })}</p></Card><Card className="flex flex-col gap-1 p-3 shadow-none transition-colors hover:border-primary/40"><div className="flex items-center justify-between text-xs text-muted-foreground">- <span className="font-medium">- {i18n.language.startsWith('zh') ? '平均处理耗时' : 'Avg Duration'}- </span>+ <span className="font-medium">{t('labels.avgDuration')}</span></div><div className="flex items-baseline gap-1"><span className="font-mono text-xl font-bold tabular-nums text-foreground">@@ -644,35 +651,27 @@ function TasksRoute() {</span></div><p className="text-[11px] text-muted-foreground truncate">- {i18n.language.startsWith('zh')- ? '全流程平均处理时长'- : 'Avg Processing Time'}+ {t('labels.avgProcessingTime')}</p></Card><Card className="flex flex-col gap-1 p-3 shadow-none transition-colors hover:border-primary/40"><div className="flex items-center justify-between text-xs text-muted-foreground">- <span className="font-medium">- {i18n.language.startsWith('zh') ? '任务总数' : 'Total Tasks'}- </span>+ <span className="font-medium">{t('labels.totalTasks')}</span></div><div className="flex items-baseline gap-1"><span className="font-mono text-xl font-bold tabular-nums text-foreground">- {kpiData.total} 条+ {t('labels.taskCount', { count: kpiData.total })}</span></div><p className="text-[11px] text-muted-foreground truncate">- {i18n.language.startsWith('zh')- ? `已完成 ${kpiData.completed} 条`- : `Completed ${kpiData.completed} Tasks`}+ {t('labels.completedTasks', { count: kpiData.completed })}</p></Card><Card className="flex flex-col gap-1 p-3 shadow-none transition-colors hover:border-primary/40"><div className="flex items-center justify-between text-xs text-muted-foreground">- <span className="font-medium">- {i18n.language.startsWith('zh') ? '并发与排队' : 'Active/Pending'}- </span>+ <span className="font-medium">{t('labels.activePending')}</span></div><div className="flex items-baseline gap-1"><span className="font-mono text-xl font-bold tabular-nums text-foreground">@@ -680,9 +679,7 @@ function TasksRoute() {</span></div><p className="text-[11px] text-muted-foreground truncate">- {i18n.language.startsWith('zh')- ? '进行中 / 等待中任务'- : 'Running / Pending Workloads'}+ {t('labels.runningPending')}</p></Card></div>@@ -692,7 +689,7 @@ function TasksRoute() {{/* 左侧 (50% 宽度 - 优先看上层任务): 任务队列状态 (Task Queues) */}<div><QueueStatusCard- title={i18n.language.startsWith('zh') ? '任务队列状态' : 'Task Queue Status'}+ title={t('labels.taskQueueStatus')}customRows={kpiData.typeRows}isHealthy={kpiData.failed === 0}/>@@ -701,7 +698,7 @@ function TasksRoute() {{/* 右侧 (50% 宽度 - 拆分出的下层工序): 工序队列状态 (Process Queues) */}<div><QueueStatusCard- title={i18n.language.startsWith('zh') ? '工序队列状态' : 'Process Queue Status'}+ title={t('labels.processQueueStatus')}customRows={queueRows}isHealthy={kpiData.failed === 0}/>@@ -789,13 +786,11 @@ function TasksRoute() {onClick={() => setDedupByResource((prev) => !prev)}><LayersIcon className="size-3.5 text-muted-foreground" />- {i18n.language.startsWith('zh')- ? dedupByResource- ? '按资源收敛 (最新)'- : '逐条任务'- : dedupByResource- ? 'Latest per Resource'- : 'Individual Tasks'}+ {t(+ dedupByResource+ ? 'labels.latestPerResource'+ : 'labels.individualTasks',+ )}</Button></div>@@ -845,9 +840,9 @@ function TasksRoute() {<TableHead>{t('table.task')}</TableHead><TableHead>{t('table.type')}</TableHead><TableHead>{t('table.resource')}</TableHead>- <TableHead>{i18n.language.startsWith('zh') ? '工序队列流转' : 'Queue Pipeline'}</TableHead>+ <TableHead>{t('labels.queuePipeline')}</TableHead><TableHead>{t('table.status')}</TableHead>- <TableHead>{i18n.language.startsWith('zh') ? '耗时' : 'Duration'}</TableHead>+ <TableHead>{t('labels.duration')}</TableHead><TableHead className="text-right">{t('table.createdAt')}</TableHead>@@ -870,7 +865,10 @@ function TasksRoute() {onClick={() => {if (taskId) {if (task.task_type === 'compile') {- void navigate({ to: '/compile/tasks/$taskId', params: { taskId } })+ void navigate({+ to: '/compile/tasks/$taskId',+ params: { taskId },+ })} else setSelectedTaskId(taskId)}}}@@ -881,7 +879,10 @@ function TasksRoute() {) {event.preventDefault()if (task.task_type === 'compile') {- void navigate({ to: '/compile/tasks/$taskId', params: { taskId } })+ void navigate({+ to: '/compile/tasks/$taskId',+ params: { taskId },+ })} else setSelectedTaskId(taskId)}}}diff --git a/web-studio/src/routes/users/-components/memory-policy-picker.tsx b/web-studio/src/routes/users/-components/memory-policy-picker.tsxindex 0f9a2c14c..3cd07ed14 100644--- a/web-studio/src/routes/users/-components/memory-policy-picker.tsx+++ b/web-studio/src/routes/users/-components/memory-policy-picker.tsx@@ -161,56 +161,64 @@ export function MemoryPolicySummary({{t('memoryPolicy.change')}</Button></div>- <div className="grid gap-3 bg-muted/30 p-4 text-sm text-muted-foreground">- <div className="flex flex-wrap gap-4">- {value.self?.enabled !== false &&- (value.memory_types ?? defaultMemoryTypes).some((type) =>- personalMemoryTypes.includes(type),- ) && (- <span className="flex items-center gap-2">- <CheckIcon className="size-4" />- {t('memoryPolicy.userMemory')}- </span>- )}- {value.self?.enabled !== false &&- (value.memory_types ?? defaultMemoryTypes).includes(- 'experiences',- ) && (- <span className="flex items-center gap-2">- <CheckIcon className="size-4" />- {t('memoryPolicy.agentMemory')}- </span>- )}- </div>- <p>{t(`memoryPolicy.${preset}.description`)}</p>- <p>{t(`memoryPolicy.${preset}.examples`)}</p>- {preset === 'custom' && (- <div className="grid gap-2">- {memoryScopeKeys.map((key) => (- <p key={key}>- {t(`memoryPolicy.custom.${key}`)}:{' '}- {t(- value[key]?.enabled === false- ? 'memoryPolicy.disabled'- : 'memoryPolicy.enabled',- )}- </p>- ))}- <p className="break-words">- {value.memory_types === undefined- ? t('memoryPolicy.custom.all')- : value.memory_types.length- ? value.memory_types.join(', ')- : t('memoryPolicy.custom.empty')}- </p>- </div>- )}- </div>+ <MemoryPolicyDetails value={value} /></div></section>)}+export function MemoryPolicyDetails({ value }: { value: UserMemoryPolicy }) {+ const { t } = useTranslation('settings')+ const preset = identifyMemoryPreset(value)+ return (+ <div className="grid gap-3 bg-muted/30 p-4 text-sm text-muted-foreground">+ <div className="flex flex-wrap gap-4">+ {value.self?.enabled !== false &&+ (value.memory_types ?? defaultMemoryTypes).some((type) =>+ personalMemoryTypes.includes(type),+ ) && (+ <span className="flex items-center gap-2">+ <CheckIcon className="size-4" />+ {t('memoryPolicy.userMemory')}+ </span>+ )}+ {value.self?.enabled !== false &&+ (value.memory_types ?? defaultMemoryTypes).includes(+ 'experiences',+ ) && (+ <span className="flex items-center gap-2">+ <CheckIcon className="size-4" />+ {t('memoryPolicy.agentMemory')}+ </span>+ )}+ </div>+ <p>{t(`memoryPolicy.${preset}.description`)}</p>+ <p>{t(`memoryPolicy.${preset}.examples`)}</p>+ {preset === 'custom' && (+ <div className="grid gap-2">+ {memoryScopeKeys.map((key) => (+ <p key={key}>+ {t(`memoryPolicy.custom.${key}`)}:{' '}+ {t(+ value[key]?.enabled === false+ ? 'memoryPolicy.disabled'+ : 'memoryPolicy.enabled',+ )}+ </p>+ ))}+ <p className="break-words">+ {value.memory_types === undefined+ ? t('memoryPolicy.custom.all')+ : value.memory_types.length+ ? value.memory_types.join(', ')+ : t('memoryPolicy.custom.empty')}+ </p>+ </div>+ )}+ </div>+ )+}+/* eslint-disable i18next/no-literal-string -- Directory names and ID placeholders are literal storage paths. */export function MemoryDirectoryPreview({value,diff --git a/web-studio/src/routes/users/-components/user-memory-policy-cell.test.tsx b/web-studio/src/routes/users/-components/user-memory-policy-cell.test.tsxindex 9725ae512..e4f045f89 100644--- a/web-studio/src/routes/users/-components/user-memory-policy-cell.test.tsx+++ b/web-studio/src/routes/users/-components/user-memory-policy-cell.test.tsx@@ -9,6 +9,7 @@ import {} from '@testing-library/react'import { QueryClient, QueryClientProvider } from '@tanstack/react-query'import type { ReactNode } from 'react'+import type * as MemoryPolicyPickerModule from './memory-policy-picker'import { UserMemoryPolicyCell } from './user-memory-policy-cell'import type { UserMemoryPolicy } from '#/lib/user-memory-policy'@@ -41,7 +42,8 @@ vi.mock('#/components/ui/dialog', () => {DialogDescription: Container,}})-vi.mock('./memory-policy-picker', () => ({+vi.mock('./memory-policy-picker', async (importOriginal) => ({+ ...(await importOriginal<typeof MemoryPolicyPickerModule>()),MemoryPolicyPicker: ({value,onSelect,diff --git a/web-studio/src/routes/users/-components/user-memory-policy-cell.tsx b/web-studio/src/routes/users/-components/user-memory-policy-cell.tsxindex 1252a8ebc..63b32ce27 100644--- a/web-studio/src/routes/users/-components/user-memory-policy-cell.tsx+++ b/web-studio/src/routes/users/-components/user-memory-policy-cell.tsx@@ -20,7 +20,7 @@ import { fetchUserMemorySettings, updateUserMemorySettings } from '#/lib/admin'import type { AdminConnection, AdminUser } from '#/lib/admin'import { identifyMemoryPreset } from '#/lib/user-memory-policy'import type { UserMemoryPolicy } from '#/lib/user-memory-policy'-import { MemoryPolicyPicker } from './memory-policy-picker'+import { MemoryPolicyDetails, MemoryPolicyPicker } from './memory-policy-picker'import { getErrorMessage } from '../-lib/error'export function UserMemoryPolicyCell({@@ -100,7 +100,12 @@ export function UserMemoryPolicyCell({</span><PencilIcon className="size-3.5 text-primary" /></TooltipTrigger>- <TooltipContent>{t('memoryPolicy.edit')}</TooltipContent>+ <TooltipContent className="block w-96 max-w-[calc(100vw-2rem)] overflow-hidden rounded-xl border bg-popover p-0 text-sm text-popover-foreground shadow-lg [&>[aria-hidden=true]]:bg-popover">+ <p className="border-b px-4 py-3 font-semibold">+ {t(`memoryPolicy.${preset}.name`)}+ </p>+ <MemoryPolicyDetails value={query.data.memory_policy} />+ </TooltipContent></Tooltip><Dialogopen={open}diff --git a/web-studio/src/styles.css b/web-studio/src/styles.cssindex 5c8cfa296..7977c9d70 100644--- a/web-studio/src/styles.css+++ b/web-studio/src/styles.css@@ -12,38 +12,46 @@@plugin "@tailwindcss/typography";:root {- --background: oklch(1 0 0);- --foreground: oklch(0.148 0.004 228.8);- --card: oklch(1 0 0);- --card-foreground: oklch(0.148 0.004 228.8);- --popover: oklch(1 0 0);- --popover-foreground: oklch(0.148 0.004 228.8);- --primary: oklch(0.5 0.134 242.749);- --primary-foreground: oklch(0.977 0.013 236.62);- --secondary: oklch(0.967 0.001 286.375);- --secondary-foreground: oklch(0.21 0.006 285.885);- --muted: oklch(0.963 0.002 197.1);- --muted-foreground: oklch(0.56 0.021 213.5);- --accent: oklch(0.963 0.002 197.1);- --accent-foreground: oklch(0.218 0.008 223.9);+ --background: #ffffff;+ --foreground: #242426;+ --card: #ffffff;+ --card-foreground: #242426;+ --popover: #ffffff;+ --popover-foreground: #242426;+ --primary: #242426;+ --primary-foreground: #fafafa;+ --secondary: #f0f0f1;+ --secondary-foreground: #242426;+ --muted: #f4f4f5;+ --muted-foreground: #6b6b70;+ --accent: #f0f0f1;+ --accent-foreground: #242426;--destructive: oklch(0.577 0.245 27.325);- --border: oklch(0.925 0.005 214.3);- --input: oklch(0.925 0.005 214.3);- --ring: oklch(0.723 0.014 214.4);+ --border: #e4e4e7;+ --input: #dedee0;+ --ring: #929296;+ --heatmap-empty: #ebedf0;+ --heatmap-level-1: #9be9a8;+ --heatmap-level-2: #40c463;+ --heatmap-level-3: #30a14e;+ --heatmap-level-4: #216e39;+ --home-token-input: #4679ae;+ --home-token-output: #328574;+ --home-token-embedding: #8264ad;--chart-1: oklch(0.8 0.1 210);--chart-2: oklch(0.7 0.12 225);--chart-3: oklch(0.6 0.13 243);--chart-4: oklch(0.5 0.12 260);--chart-5: oklch(0.42 0.1 280);--radius: 0.625rem;- --sidebar: oklch(0.987 0.002 197.1);- --sidebar-foreground: oklch(0.148 0.004 228.8);- --sidebar-primary: oklch(0.55 0.14 243);- --sidebar-primary-foreground: oklch(0.977 0.013 236.62);- --sidebar-accent: oklch(0.963 0.002 197.1);- --sidebar-accent-foreground: oklch(0.218 0.008 223.9);- --sidebar-border: oklch(0.925 0.005 214.3);- --sidebar-ring: oklch(0.723 0.014 214.4);+ --sidebar: #f7f7f8;+ --sidebar-foreground: #242426;+ --sidebar-primary: #242426;+ --sidebar-primary-foreground: #fafafa;+ --sidebar-accent: #ebebed;+ --sidebar-accent-foreground: #242426;+ --sidebar-border: #e4e4e7;+ --sidebar-ring: #929296;--success: oklch(0.6 0.12 180);--success-foreground: oklch(0.98 0.01 180);--warning: oklch(0.7 0.14 75);@@ -96,7 +104,7 @@}.dark {- --background: #2b2b2d;+ --background: #1e1e20;--foreground: #eeeeef;--card: #2f2f31;--card-foreground: #eeeeef;@@ -114,16 +122,24 @@--border: #3e3e40;--input: #505053;--ring: #929296;+ --heatmap-empty: #303033;+ --heatmap-level-1: #0e4429;+ --heatmap-level-2: #006d32;+ --heatmap-level-3: #26a641;+ --heatmap-level-4: #39d353;+ --home-token-input: #7da7d6;+ --home-token-output: #69b3a2;+ --home-token-embedding: #af98d1;--chart-1: oklch(0.65 0.12 210);--chart-2: oklch(0.6 0.13 225);--chart-3: oklch(0.55 0.14 243);--chart-4: oklch(0.5 0.13 260);--chart-5: oklch(0.45 0.11 280);- --sidebar: #1e1e20;+ --sidebar: #2b2b2d;--sidebar-foreground: #dedee0;--sidebar-primary: #f4f4f5;--sidebar-primary-foreground: #242426;- --sidebar-accent: #2b2b2d;+ --sidebar-accent: #1e1e20;--sidebar-accent-foreground: #f4f4f5;--sidebar-border: #333335;--sidebar-ring: #929296;