Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: one set of sort and filter icons, shorter chat cards, toolbar tooltips (#15958)

Michael Han4ff89b11ae67
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsx
index be2f7c4cc63..058badd7859 100644
--- a/studio/frontend/src/components/app-sidebar.tsx
+++ b/studio/frontend/src/components/app-sidebar.tsx
@@ -124,9 +124,6 @@ import {
Delete02Icon,
Download01Icon,
Edit03Icon,
- FolderExportIcon,
- Folder01Icon,
- Folder02Icon,
FlimSlateIcon,
HelpCircleIcon,
Image01Icon,
@@ -151,11 +148,11 @@ import {
ZapIcon,
PanelLeftIcon,
LeftToRightListBulletIcon,
- ArrowUpDownIcon,
LayerIcon,
ApiIcon,
Clock01Icon,
} from "@hugeicons/core-free-icons";
+import { Folder02Icon, FolderExportIcon } from "@/lib/folder-icons";
import { Copy01Icon } from "@/lib/copy-icon";
import {
AiSpeechIcon,
@@ -171,7 +168,9 @@ import {
} from "@/components/ui/tooltip";
import { Tooltip as TooltipPrimitive } from "radix-ui";
import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { ArrowRightIcon, GitBranchIcon } from "lucide-react";
+import { SortIcon } from "@/lib/sort-icon";
import { ForkIcon } from "@/lib/fork-icon";
import {
Link,
@@ -592,7 +591,7 @@ const ORGANIZE_OPTIONS: Array<{
key: TranslationKey;
icon: typeof ZapIcon;
}> = [
- { value: "project", key: "shell.organize.byProject", icon: Folder01Icon },
+ { value: "project", key: "shell.organize.byProject", icon: ProjectIcon },
{ value: "list", key: "shell.organize.inOneList", icon: LeftToRightListBulletIcon },
];
@@ -3326,7 +3325,7 @@ export function AppSidebar() {
const navRows: Record<SidebarNavItemId, NavRowDef> = {
projects: {
- icon: Folder01Icon,
+ icon: ProjectIcon,
label: t("shell.navigation.projects"),
active: pathname === "/projects" || pathname.startsWith("/projects/"),
onClick: () => {
@@ -4398,7 +4397,7 @@ export function AppSidebar() {
return (
<DropdownMenuSub>
<DropdownMenuSubTrigger>
- <HugeiconsIcon icon={ArrowUpDownIcon} strokeWidth={1.75} className="size-icon" />
+ <HugeiconsIcon icon={SortIcon} strokeWidth={1.75} className="size-icon" />
<span className="min-w-0 flex-1 truncate">{config.label}</span>
</DropdownMenuSubTrigger>
<DropdownMenuSubContent {...sidebarSubmenuOffsets} className="unsloth-plus-menu sidebar-row-menu sidebar-menu w-44">
@@ -4481,7 +4480,7 @@ export function AppSidebar() {
closeMobileIfOpen();
}}
>
- <HugeiconsIcon icon={Folder01Icon} strokeWidth={1.75} className="size-icon" />
+ <HugeiconsIcon icon={ProjectIcon} strokeWidth={1.75} className="size-icon" />
<span>{t("shell.organize.projectsHome")}</span>
</DropdownMenuItem>
</>
@@ -5290,7 +5289,7 @@ export function AppSidebar() {
key={project.id}
onSelect={() => void moveChatToProjectFromMenu(item, project.id)}
>
- <HugeiconsIcon icon={Folder01Icon} strokeWidth={1.75} className="size-icon" />
+ <HugeiconsIcon icon={ProjectIcon} strokeWidth={1.75} className="size-icon" />
<span className="truncate">{project.name}</span>
</P.Item>
))}
@@ -5670,7 +5669,7 @@ export function AppSidebar() {
return (
<>
<P.Item onSelect={() => openProject(project.id)}>
- <HugeiconsIcon icon={Folder01Icon} strokeWidth={1.75} className="size-icon" />
+ <HugeiconsIcon icon={ProjectIcon} strokeWidth={1.75} className="size-icon" />
<span>Project home</span>
</P.Item>
<P.Item onSelect={() => toggleProjectPin(project.id)}>
@@ -5791,7 +5790,7 @@ export function AppSidebar() {
className="sidebar-nav-btn h-[calc(33px*var(--ui-space-scale,1))] rounded-full gap-[calc(8.5px*var(--ui-space-scale,1))] pl-3 pr-2.5 font-medium group-hover/recent-item:pr-16 group-has-[.sidebar-row-action[data-state=open]]/recent-item:pr-16 [@media(pointer:coarse)]:pr-16"
>
<HugeiconsIcon
- icon={expanded ? Folder02Icon : Folder01Icon}
+ icon={expanded ? Folder02Icon : ProjectIcon}
strokeWidth={1.75}
className="size-icon! shrink-0"
/>
@@ -7101,6 +7100,7 @@ export function AppSidebar() {
</Button>
<Button
type="button"
+ variant="dark"
onClick={() => void commitRename()}
disabled={!renameDirty}
>
diff --git a/studio/frontend/src/components/assistant-ui/link-menu-content.tsx b/studio/frontend/src/components/assistant-ui/link-menu-content.tsx
index 00a5bb0dca3..6a6007dcd65 100644
--- a/studio/frontend/src/components/assistant-ui/link-menu-content.tsx
+++ b/studio/frontend/src/components/assistant-ui/link-menu-content.tsx
@@ -32,11 +32,11 @@ import {
BubbleChatAddIcon,
Download01Icon,
File01Icon,
- FolderOpenIcon,
InternetIcon,
Link01Icon,
LinkSquare02Icon,
} from "@hugeicons/core-free-icons";
+import { FolderOpenIcon } from "@/lib/folder-icons";
import { Copy01Icon } from "@/lib/copy-icon";
import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";
import { useNavigate } from "@tanstack/react-router";
diff --git a/studio/frontend/src/components/assistant-ui/sandbox-files-view.tsx b/studio/frontend/src/components/assistant-ui/sandbox-files-view.tsx
index 67a2603bcee..89ac8e87c41 100644
--- a/studio/frontend/src/components/assistant-ui/sandbox-files-view.tsx
+++ b/studio/frontend/src/components/assistant-ui/sandbox-files-view.tsx
@@ -4,8 +4,8 @@
import {
Download01Icon,
FileEmpty02Icon,
- FolderOpenIcon,
} from "@hugeicons/core-free-icons";
+import { FolderOpenIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useCallback, useState } from "react";
import { toast } from "sonner";
diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsx
index fbdab254043..2dd637977e4 100644
--- a/studio/frontend/src/components/assistant-ui/thread.tsx
+++ b/studio/frontend/src/components/assistant-ui/thread.tsx
@@ -432,9 +432,6 @@ import {
Delete02Icon,
Download01Icon,
Edit03Icon,
- FolderAttachmentIcon,
- Folder01Icon,
- FolderAddIcon,
Image03Icon,
McpServerIcon,
Refresh01Icon,
@@ -449,9 +446,11 @@ import {
PlusSignIcon,
Cancel01Icon,
} from "@hugeicons/core-free-icons";
+import { FolderAddIcon, FolderAttachmentIcon } from "@/lib/folder-icons";
import { Copy01Icon } from "@/lib/copy-icon";
import { StopIcon } from "@/lib/media-control-icons";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { RefreshGlyph } from "@/lib/refresh-icon";
import { useNavigate } from "@tanstack/react-router";
import {
@@ -7085,7 +7084,7 @@ const ComposerToolsMenu: FC<{
projects: (
<DropdownMenuSub>
<DropdownMenuSubTrigger>
- <HugeiconsIcon icon={Folder01Icon} strokeWidth={2} />
+ <HugeiconsIcon icon={ProjectIcon} strokeWidth={2} />
Projects
</DropdownMenuSubTrigger>
<DropdownMenuSubContent className="unsloth-plus-menu w-[calc(232px*var(--ui-space-scale,1))]">
@@ -7100,7 +7099,7 @@ const ComposerToolsMenu: FC<{
key={project.id}
onSelect={() => openProject(project.id)}
>
- <HugeiconsIcon icon={Folder01Icon} strokeWidth={2} />
+ <HugeiconsIcon icon={ProjectIcon} strokeWidth={2} />
<span className="truncate">{project.name}</span>
</DropdownMenuItem>
))
diff --git a/studio/frontend/src/components/command-palette.tsx b/studio/frontend/src/components/command-palette.tsx
index e024911a964..c31d035521b 100644
--- a/studio/frontend/src/components/command-palette.tsx
+++ b/studio/frontend/src/components/command-palette.tsx
@@ -34,7 +34,6 @@ import {
ChefHatIcon,
DashboardCircleIcon,
FlimSlateIcon,
- Folder01Icon,
Image01Icon,
LibrariesIcon,
Message01Icon,
@@ -50,6 +49,7 @@ import {
} from "@hugeicons/core-free-icons";
import { AiSpeechIcon } from "@/lib/hugeicons-derived";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { useNavigate, useRouterState } from "@tanstack/react-router";
import { Command as CommandPrimitive } from "cmdk";
import { type ComponentProps, useEffect, useState } from "react";
@@ -93,7 +93,7 @@ const WORKSPACES: {
},
{
id: "switchToProjects",
- icon: Folder01Icon,
+ icon: ProjectIcon,
labelKey: "shell.navigation.projects",
},
{
diff --git a/studio/frontend/src/components/media-viewer.tsx b/studio/frontend/src/components/media-viewer.tsx
index e69dfe9002d..4bc22f8a542 100644
--- a/studio/frontend/src/components/media-viewer.tsx
+++ b/studio/frontend/src/components/media-viewer.tsx
@@ -8,10 +8,10 @@ import {
Cancel01Icon,
Delete02Icon,
Download01Icon,
- Folder01Icon,
ImageIcon,
MoreHorizontalIcon,
} from "@hugeicons/core-free-icons";
+import { Folder01Icon } from "@/lib/folder-icons";
import { Copy01Icon } from "@/lib/copy-icon";
import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";
import { type KeyboardEventHandler, type ReactNode, useRef, useState } from "react";
diff --git a/studio/frontend/src/components/project-submenu.tsx b/studio/frontend/src/components/project-submenu.tsx
index d99938cf992..0ff69ebd938 100644
--- a/studio/frontend/src/components/project-submenu.tsx
+++ b/studio/frontend/src/components/project-submenu.tsx
@@ -1,8 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-import { Folder01Icon, FolderAddIcon, FolderExportIcon } from "@hugeicons/core-free-icons";
+import { FolderAddIcon, FolderExportIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { useCallback, useState } from "react";
import {
@@ -83,7 +84,7 @@ export function useProjectSubmenu({
key={project.id}
onClick={() => void addToProject(project.id, project.name)}
>
- <HugeiconsIcon icon={Folder01Icon} strokeWidth={1.75} className="size-icon" />
+ <HugeiconsIcon icon={ProjectIcon} strokeWidth={1.75} className="size-icon" />
<span className="truncate">{project.name}</span>
</DropdownMenuItem>
))
diff --git a/studio/frontend/src/components/resource-picker/picker-shell.tsx b/studio/frontend/src/components/resource-picker/picker-shell.tsx
index db887177851..b129ecfbe98 100644
--- a/studio/frontend/src/components/resource-picker/picker-shell.tsx
+++ b/studio/frontend/src/components/resource-picker/picker-shell.tsx
@@ -13,9 +13,9 @@ import { useT } from "@/i18n";
import { useHubSource } from "@/lib/hf-endpoint";
import { cn } from "@/lib/utils";
import {
- FolderSearchIcon,
Search01Icon,
} from "@hugeicons/core-free-icons";
+import { FolderSearchIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import {
type KeyboardEvent,
diff --git a/studio/frontend/src/features/audio/pages/tts-workspace.tsx b/studio/frontend/src/features/audio/pages/tts-workspace.tsx
index b7c3583a491..6910d6c1f80 100644
--- a/studio/frontend/src/features/audio/pages/tts-workspace.tsx
+++ b/studio/frontend/src/features/audio/pages/tts-workspace.tsx
@@ -433,9 +433,11 @@ export function TtsFooter({
{secondaryAction}
<Button
className={cn(
- "relative z-10 text-ui-13 disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100",
+ "relative z-10 disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100",
// Same Stop as Images: outline, neutral hover. Destructive is for deleting, not for stopping.
- generationPresentation && "hover:bg-muted dark:hover:bg-muted",
+ generationPresentation
+ ? "text-ui-13 hover:bg-muted dark:hover:bg-muted"
+ : "h-11 px-8 text-ui-14 bg-control-accent text-control-accent-foreground hover:bg-control-accent/85",
)}
onClick={
generationPresentation?.canStop
@@ -451,7 +453,7 @@ export function TtsFooter({
(musicNeedsDescription && !audioInstructions.trim()) ||
blocker !== null
}
- variant={generationPresentation ? "outline" : "dark"}
+ variant={generationPresentation ? "outline" : "primary"}
aria-describedby={blocker ? "audio-generate-blocker" : undefined}
aria-keyshortcuts="Control+Enter Meta+Enter"
title={
diff --git a/studio/frontend/src/features/browser/bookmarks.tsx b/studio/frontend/src/features/browser/bookmarks.tsx
index e52b98691bd..8cefe0da96a 100644
--- a/studio/frontend/src/features/browser/bookmarks.tsx
+++ b/studio/frontend/src/features/browser/bookmarks.tsx
@@ -27,9 +27,9 @@ import {
ArrowRightDoubleIcon,
Delete02Icon,
Edit03Icon,
- Folder01Icon,
StarIcon,
} from "@hugeicons/core-free-icons";
+import { Folder01Icon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { type ReactNode, type RefObject, useEffect, useId, useMemo, useRef, useState } from "react";
import { hostOf } from "./address";
diff --git a/studio/frontend/src/features/browser/browser-panel.tsx b/studio/frontend/src/features/browser/browser-panel.tsx
index f681f6e9d97..789332245bb 100644
--- a/studio/frontend/src/features/browser/browser-panel.tsx
+++ b/studio/frontend/src/features/browser/browser-panel.tsx
@@ -75,7 +75,6 @@ import {
Cancel01Icon,
Clock01Icon,
ComputerTerminal01Icon,
- Folder01Icon,
Link01Icon,
Download01Icon,
InternetIcon,
@@ -91,6 +90,7 @@ import {
ViewIcon,
VolumeMute02Icon,
} from "@hugeicons/core-free-icons";
+import { Folder01Icon } from "@/lib/folder-icons";
import { Copy01Icon } from "@/lib/copy-icon";
import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";
import {
diff --git a/studio/frontend/src/features/browser/downloads-button.tsx b/studio/frontend/src/features/browser/downloads-button.tsx
index 21f57dcd202..b29df5c00b9 100644
--- a/studio/frontend/src/features/browser/downloads-button.tsx
+++ b/studio/frontend/src/features/browser/downloads-button.tsx
@@ -20,10 +20,10 @@ import {
CheckmarkCircle02Icon,
Delete02Icon,
Download01Icon,
- Folder01Icon,
MoreHorizontalIcon,
ArrowUpRight01Icon,
} from "@hugeicons/core-free-icons";
+import { Folder01Icon } from "@/lib/folder-icons";
import { Copy01Icon } from "@/lib/copy-icon";
import { HugeiconsIcon } from "@hugeicons/react";
import { useEffect, useRef, useState } from "react";
diff --git a/studio/frontend/src/features/browser/internal-pages.tsx b/studio/frontend/src/features/browser/internal-pages.tsx
index 4df0a1090c5..1d7ef9f4ac8 100644
--- a/studio/frontend/src/features/browser/internal-pages.tsx
+++ b/studio/frontend/src/features/browser/internal-pages.tsx
@@ -26,12 +26,12 @@ import {
Delete02Icon,
Edit03Icon,
FilterMailIcon,
- Folder01Icon,
InternetIcon,
LinkSquare02Icon,
MoreHorizontalIcon,
Search01Icon,
} from "@hugeicons/core-free-icons";
+import { Folder01Icon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { type ReactNode, useCallback, useEffect, useMemo, useRef, useState } from "react";
import type { DateRange } from "react-day-picker";
diff --git a/studio/frontend/src/features/chat/chat-page.tsx b/studio/frontend/src/features/chat/chat-page.tsx
index a5d816110cc..4421c909259 100644
--- a/studio/frontend/src/features/chat/chat-page.tsx
+++ b/studio/frontend/src/features/chat/chat-page.tsx
@@ -118,10 +118,6 @@ import {
Delete02Icon,
Download01Icon,
Edit03Icon,
- FolderAttachmentIcon,
- Folder01Icon,
- Folder02Icon,
- FolderExportIcon,
LayoutAlignRightIcon,
MoreHorizontalIcon,
MoreVerticalIcon,
@@ -130,8 +126,10 @@ import {
PencilEdit02Icon,
Telescope02Icon,
} from "@hugeicons/core-free-icons";
+import { Folder02Icon, FolderAttachmentIcon, FolderExportIcon } from "@/lib/folder-icons";
import { useAui } from "@assistant-ui/react";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { useNavigate } from "@tanstack/react-router";
import {
SaveTemporaryChatMenu,
@@ -2431,7 +2429,7 @@ function ProjectLanding({
}
>
<HugeiconsIcon
- icon={Folder01Icon}
+ icon={ProjectIcon}
strokeWidth={1.75}
className="size-icon"
/>
diff --git a/studio/frontend/src/features/chat/components/chat-header-menu.tsx b/studio/frontend/src/features/chat/components/chat-header-menu.tsx
index cda19673a23..b0551af0e44 100644
--- a/studio/frontend/src/features/chat/components/chat-header-menu.tsx
+++ b/studio/frontend/src/features/chat/components/chat-header-menu.tsx
@@ -35,8 +35,6 @@ import {
Delete02Icon,
Download01Icon,
Edit03Icon,
- Folder02Icon,
- FolderExportIcon,
LayerIcon,
MoreHorizontalIcon,
PinIcon,
@@ -46,8 +44,10 @@ import {
ViewIcon,
ViewOffSlashIcon,
} from "@hugeicons/core-free-icons";
+import { FolderExportIcon } from "@/lib/folder-icons";
import { Copy01Icon } from "@/lib/copy-icon";
import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { ForkIcon } from "@/lib/fork-icon";
import { type ReactNode, useSyncExternalStore } from "react";
import { useChatRuntimeStore } from "../stores/chat-runtime-store";
@@ -321,7 +321,7 @@ function ChatMenuItems({ menu }: { menu: ActiveChatMenu }) {
{menu.projects.map((entry) => (
<Item
key={entry.id}
- icon={Folder02Icon}
+ icon={ProjectIcon}
onSelect={() => menu.moveToProject(entry.id)}
>
{entry.name}
diff --git a/studio/frontend/src/features/chat/components/chat-search-dialog.tsx b/studio/frontend/src/features/chat/components/chat-search-dialog.tsx
index f4d6db8c629..dfb47feec02 100644
--- a/studio/frontend/src/features/chat/components/chat-search-dialog.tsx
+++ b/studio/frontend/src/features/chat/components/chat-search-dialog.tsx
@@ -24,13 +24,13 @@ import {
Cancel01Icon,
DashboardCircleIcon,
FlimSlateIcon,
- Folder01Icon,
Image01Icon,
PencilEdit02Icon,
Search01Icon,
BubbleChatTemporaryIcon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { useNavigate } from "@tanstack/react-router";
import { Command as CommandPrimitive } from "cmdk";
import { Columns2Icon, GitBranchIcon, type LucideIcon } from "lucide-react";
@@ -287,7 +287,7 @@ export function ChatSearchDialog() {
title: project.name,
time: activityAt(project),
haystack: project.name.toLowerCase(),
- icon: Folder01Icon,
+ icon: ProjectIcon,
open: () =>
navigate({ to: "/chat", search: { project: project.id } }),
}))
diff --git a/studio/frontend/src/features/chat/components/edit-project-dialog.tsx b/studio/frontend/src/features/chat/components/edit-project-dialog.tsx
index ec49c6e9ad2..bae8481bc6b 100644
--- a/studio/frontend/src/features/chat/components/edit-project-dialog.tsx
+++ b/studio/frontend/src/features/chat/components/edit-project-dialog.tsx
@@ -18,8 +18,8 @@ import { WorkingFolderPicker } from "./working-folder-picker";
import { LinkedFoldersManager } from "@/features/rag";
import { isModEnter } from "@/features/settings/lib/keyboard-shortcuts";
import { toast } from "@/lib/toast";
-import { Folder02Icon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { setChatProjectWorkingFolder } from "../api/chat-api";
import {
@@ -180,7 +180,7 @@ export function EditProjectDialog({
<div className="flex items-stretch overflow-hidden rounded-full border border-border bg-background transition-colors focus-within:border-ring has-[input:disabled]:opacity-50 dark:border-transparent dark:bg-[rgb(255_255_255_/_calc(0.06*var(--contrast-wash-gain,1)))]">
<span className="flex shrink-0 items-center pl-5 text-muted-foreground">
<HugeiconsIcon
- icon={Folder02Icon}
+ icon={ProjectIcon}
strokeWidth={1.75}
className="size-5"
/>
diff --git a/studio/frontend/src/features/chat/components/new-project-dialog.tsx b/studio/frontend/src/features/chat/components/new-project-dialog.tsx
index 4d258aea31b..c28223f91b7 100644
--- a/studio/frontend/src/features/chat/components/new-project-dialog.tsx
+++ b/studio/frontend/src/features/chat/components/new-project-dialog.tsx
@@ -25,8 +25,8 @@ import {
uploadStagedSources,
} from "@/features/rag/components/project-source-dropzone";
import { toast } from "@/lib/toast";
-import { Folder02Icon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import {
getChatProject,
@@ -217,7 +217,7 @@ export function NewProjectDialog({
<div className="flex items-stretch overflow-hidden rounded-full border border-border bg-background transition-colors focus-within:border-ring has-[input:disabled]:opacity-50 dark:border-transparent dark:bg-[rgb(255_255_255_/_calc(0.06*var(--contrast-wash-gain,1)))]">
<span className="flex shrink-0 items-center pl-5 text-muted-foreground">
<HugeiconsIcon
- icon={Folder02Icon}
+ icon={ProjectIcon}
strokeWidth={1.75}
className="size-5"
/>
diff --git a/studio/frontend/src/features/chat/components/open-chat-folder-item.tsx b/studio/frontend/src/features/chat/components/open-chat-folder-item.tsx
index 472726fc46a..3c2571eddfd 100644
--- a/studio/frontend/src/features/chat/components/open-chat-folder-item.tsx
+++ b/studio/frontend/src/features/chat/components/open-chat-folder-item.tsx
@@ -13,7 +13,8 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";
-import { FolderOpenIcon, Upload01Icon } from "@hugeicons/core-free-icons";
+import { Upload01Icon } from "@hugeicons/core-free-icons";
+import { FolderOpenIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useT } from "@/i18n";
import { isTauri } from "@/lib/api-base";
diff --git a/studio/frontend/src/features/chat/components/project-menu-items.tsx b/studio/frontend/src/features/chat/components/project-menu-items.tsx
index badaee1332d..2736fd8d38e 100644
--- a/studio/frontend/src/features/chat/components/project-menu-items.tsx
+++ b/studio/frontend/src/features/chat/components/project-menu-items.tsx
@@ -19,7 +19,6 @@ import {
Cancel01Icon,
Delete02Icon,
Download01Icon,
- FolderExportIcon,
LayerIcon,
PencilEdit02Icon,
PinIcon,
@@ -28,6 +27,7 @@ import {
Settings02Icon,
Upload01Icon,
} from "@hugeicons/core-free-icons";
+import { FolderExportIcon } from "@/lib/folder-icons";
import { type IconSvgElement, HugeiconsIcon } from "@hugeicons/react";
import type { ReactNode } from "react";
import { useFileProjectInSection } from "../hooks/use-file-project-in-section";
diff --git a/studio/frontend/src/features/chat/components/project-switcher.tsx b/studio/frontend/src/features/chat/components/project-switcher.tsx
index b35ae3fbb68..09163f80805 100644
--- a/studio/frontend/src/features/chat/components/project-switcher.tsx
+++ b/studio/frontend/src/features/chat/components/project-switcher.tsx
@@ -8,10 +8,10 @@ import {
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
-import { Folder01Icon } from "@hugeicons/core-free-icons";
import { Tick02Icon } from "@/lib/tick-icon";
import { ChevronDownStandardIcon } from "@/lib/chevron-icons";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { type ReactElement, useMemo, useState } from "react";
import { sortProjectsByActivity } from "../hooks/use-chat-projects";
import { useChatActive } from "../runtime-provider";
@@ -71,7 +71,7 @@ export function ProjectSwitcher({
className="-mx-1 flex h-[calc(34px*var(--ui-space-scale,1))] shrink-0 items-center gap-2 rounded-[10px] pl-3 pr-2.5 transition-colors hover:bg-nav-surface-hover data-[state=open]:bg-nav-surface-hover focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
>
<HugeiconsIcon
- icon={Folder01Icon}
+ icon={ProjectIcon}
strokeWidth={1.75}
className="size-icon shrink-0 text-foreground/70"
/>
@@ -118,7 +118,7 @@ export function ProjectSwitcher({
>
<span className="flex min-w-0 items-center gap-2">
<HugeiconsIcon
- icon={Folder01Icon}
+ icon={ProjectIcon}
strokeWidth={1.75}
className="size-icon shrink-0 text-foreground/70"
/>
diff --git a/studio/frontend/src/features/chat/components/section-name-dialog.tsx b/studio/frontend/src/features/chat/components/section-name-dialog.tsx
index b623b28c68c..e14a2b3c4ae 100644
--- a/studio/frontend/src/features/chat/components/section-name-dialog.tsx
+++ b/studio/frontend/src/features/chat/components/section-name-dialog.tsx
@@ -113,7 +113,7 @@ function SectionNameForm({
<Button type="button" variant="ghost" onClick={onCancel}>
{t("common.cancel")}
</Button>
- <Button variant="secondary" type="button" onClick={submit} disabled={!clean || unchanged}>
+ <Button variant="dark" type="button" onClick={submit} disabled={!clean || unchanged}>
<HugeiconsIcon icon={PlusSignIcon} data-icon="inline-start" />
{mode === "create" ? t("shell.sections.create") : t("common.save")}
</Button>
diff --git a/studio/frontend/src/features/chat/permission-mode-select.tsx b/studio/frontend/src/features/chat/permission-mode-select.tsx
index 3132dd2ec82..b343f50879b 100644
--- a/studio/frontend/src/features/chat/permission-mode-select.tsx
+++ b/studio/frontend/src/features/chat/permission-mode-select.tsx
@@ -36,9 +36,9 @@ import { MenuTickIcon } from "@/lib/tick-icon";
import { cn } from "@/lib/utils";
import {
ComputerTerminal01Icon,
- Folder01Icon,
InternetIcon,
} from "@hugeicons/core-free-icons";
+import { Folder01Icon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import {
type SandboxCapability,
diff --git a/studio/frontend/src/features/chat/projects-page.tsx b/studio/frontend/src/features/chat/projects-page.tsx
index 231729ee818..3aafa3a568e 100644
--- a/studio/frontend/src/features/chat/projects-page.tsx
+++ b/studio/frontend/src/features/chat/projects-page.tsx
@@ -58,7 +58,7 @@ import {
type ProjectRecord,
} from "@/features/chat";
import { useSettingsDialogStore } from "@/features/settings";
-import { useT } from "@/i18n";
+import { formatRelativeTime, useLocale, useT, type Locale, type TranslationKey } from "@/i18n";
import { GuidedTour, useGuidedTourController } from "@/features/tour";
import { buildProjectsTourSteps } from "./tour";
import { EditProjectDialog } from "./components/edit-project-dialog";
@@ -68,7 +68,6 @@ import {
Delete02Icon,
Download01Icon,
Edit03Icon,
- Folder02Icon,
PencilEdit02Icon,
PinIcon,
PinOffIcon,
@@ -79,9 +78,10 @@ import {
ViewOffSlashIcon,
MoreHorizontalIcon,
} from "@hugeicons/core-free-icons";
+import { Folder02Icon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { ArrowDownIcon } from "lucide-react";
-import { MessageCircleIcon } from "@/lib/hugeicons-derived";
import { useNavigate } from "@tanstack/react-router";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import {
@@ -120,7 +120,11 @@ const PROJECT_CHATS_STREAM_REFRESH_DEBOUNCE_MS = 2000;
const PROJECTS_INITIAL_FALLBACK = 8;
const PROJECTS_ROW_HEIGHT = 68;
-function formatUpdated(ts: number): string {
+function formatUpdated(
+ ts: number,
+ t: (key: TranslationKey) => string,
+ locale: Locale,
+): string {
if (!Number.isFinite(ts)) return "";
const now = new Date();
const then = new Date(ts);
@@ -135,18 +139,32 @@ function formatUpdated(ts: number): string {
then.getDate(),
).getTime();
const dayDiff = Math.round((startOfToday - startOfThen) / 86_400_000);
- if (dayDiff <= 0) return "Today";
- if (dayDiff === 1) return "Yesterday";
- if (dayDiff < 7) return `${dayDiff} days ago`;
- return then.toLocaleDateString(undefined, {
+ if (dayDiff <= 0) return t("projectsPage.today");
+ if (dayDiff === 1) return t("projectsPage.yesterday");
+ if (dayDiff < 7) return formatRelativeTime(locale, -dayDiff, "day");
+ return then.toLocaleDateString(locale, {
month: "short",
day: "numeric",
year: then.getFullYear() === now.getFullYear() ? undefined : "numeric",
});
}
-export function ProjectsPage() {
+export function ProjectsPage({
+ embedded = false,
+ ordered,
+ searching = false,
+ orderedDesc,
+ onToggleOrder,
+}: {
+ embedded?: boolean;
+ /** The Library's filtered, sorted projects; its toolbar owns search and sort. */
+ ordered?: ProjectRecord[];
+ searching?: boolean;
+ orderedDesc?: boolean;
+ onToggleOrder?: () => void;
+} = {}) {
const t = useT();
+ const locale = useLocale();
const signalReady = useAppShellReadySignal();
const navigate = useNavigate();
const { projects, hasLoaded } = useChatProjects();
@@ -279,7 +297,9 @@ export function ProjectsPage() {
try {
await runChatImport(source, {
projectId,
- name: projectId ? (projects.find((p) => p.id === projectId)?.name ?? "project") : undefined,
+ name: projectId
+ ? (projects.find((p) => p.id === projectId)?.name ?? t("projectsPage.projectFallback"))
+ : undefined,
});
} finally {
setImporting(false);
@@ -298,7 +318,7 @@ export function ProjectsPage() {
setImportTargetId(null);
setImportFile(nativeImportSource(selected));
} catch (error) {
- toast.error("Import failed.", {
+ toast.error(t("projectsPage.importFailed"), {
description: error instanceof Error ? error.message : String(error),
});
}
@@ -325,12 +345,13 @@ export function ProjectsPage() {
);
return filtered;
}, [projects, query, sortDir]);
- const isSearching = query.trim() !== "";
+ const listedProjects = ordered ?? sortedProjects;
+ const isSearching = ordered ? searching : query.trim() !== "";
const visibleCount = baseFit + extraCount;
const visibleProjects = isSearching
- ? sortedProjects
- : sortedProjects.slice(0, visibleCount);
- const hasMore = !isSearching && sortedProjects.length > visibleCount;
+ ? listedProjects
+ : listedProjects.slice(0, visibleCount);
+ const hasMore = !isSearching && listedProjects.length > visibleCount;
const tourSteps = useMemo(
() => buildProjectsTourSteps({ hasProjects: visibleProjects.length > 0 }),
@@ -432,7 +453,7 @@ export function ProjectsPage() {
? listed.filter((t) => t.projectId && projectIds.has(t.projectId))
: listed;
const ids = [...new Set(threads.map((t) => t.id))];
- if (ids.length === 0) { toast.info("No conversations to export."); return; }
+ if (ids.length === 0) { toast.info(t("projectsPage.nothingToExport")); return; }
const ts = new Date().toISOString().slice(0, 10);
const basename = `${scope === "all" ? "all-chats" : "all-projects"}-${ts}`;
if (merged) {
@@ -442,7 +463,7 @@ export function ProjectsPage() {
}
} catch (error) {
if (!isDownloadCancelled(error)) {
- toast.error("Export failed.");
+ toast.error(t("projectsPage.exportFailed"));
}
}
}
@@ -456,7 +477,7 @@ export function ProjectsPage() {
await renameChatItem(target, name);
notifyChatHistoryUpdated();
} catch (err) {
- toast.error("Failed to rename chat", {
+ toast.error(t("projectsPage.renameChatFailed"), {
description: err instanceof Error ? err.message : undefined,
});
}
@@ -470,7 +491,7 @@ export function ProjectsPage() {
try {
await archiveChatItem(chat, activeThreadId(), () => {});
} catch (err) {
- toast.error("Failed to archive chat", {
+ toast.error(t("projectsPage.archiveChatFailed"), {
description: err instanceof Error ? err.message : undefined,
});
}
@@ -482,7 +503,7 @@ export function ProjectsPage() {
// Pins are stored apart from chats, so remove the id explicitly.
unpinChat(chat.id);
} catch (err) {
- toast.error("Failed to delete chat", {
+ toast.error(t("projectsPage.deleteChatFailed"), {
description: err instanceof Error ? err.message : undefined,
});
}
@@ -518,7 +539,7 @@ export function ProjectsPage() {
}
} catch (error) {
if (!isDownloadCancelled(error)) {
- toast.error("Export failed.");
+ toast.error(t("projectsPage.exportFailed"));
}
}
}
@@ -536,15 +557,26 @@ export function ProjectsPage() {
const runtime = useChatRuntimeStore.getState();
if (runtime.activeProjectId === target.id) runtime.setActiveProjectId(null);
} catch (err) {
- toast.error("Failed to delete project", {
+ toast.error(t("projectsPage.deleteProjectFailed"), {
description: err instanceof Error ? err.message : undefined,
});
}
}
+ // Split around {name} so the name can be emphasised.
+ const deleteChatText = t("projectsPage.deleteChatDescription").split("{name}");
+ const deleteProjectText = t("projectsPage.deleteProjectDescription").split("{name}");
+ const importText = t("projectsPage.importDestination").split("{name}");
+
+ const Shell = embedded ? "div" : "main";
return (
- <main className="mx-auto w-full max-w-5xl 4xl:max-w-6xl px-6 pb-10 pt-8 max-sm:px-4 font-heading sm:px-10">
- <GuidedTour {...tour.tourProps} />
+ <Shell
+ className={cn(
+ "font-heading",
+ !embedded && "mx-auto w-full max-w-5xl 4xl:max-w-6xl px-6 pb-10 pt-8 max-sm:px-4 sm:px-10",
+ )}
+ >
+ {!embedded && <GuidedTour {...tour.tourProps} />}
<input
ref={globalImportRef}
type="file"
@@ -559,10 +591,11 @@ export function ProjectsPage() {
e.target.value = "";
}}
/>
+ {!embedded && (
<div className="flex flex-wrap items-center justify-between gap-4">
- <h1 className="text-ui-30 font-semibold leading-[1.04] tracking-[-0.028em] text-foreground sm:text-ui-34">
- Projects
- </h1>
+ <h1 className="text-ui-30 font-semibold leading-[1.04] tracking-[-0.028em] text-foreground sm:text-ui-34">
+ {t("projectsPage.title")}
+ </h1>
<div className="flex w-full min-w-0 items-center justify-end gap-3 sm:w-auto sm:flex-1">
<div className="relative min-w-0 flex-1 sm:max-w-md">
<span className="pointer-events-none absolute left-3.5 top-1/2 -translate-y-1/2 text-muted-foreground">
@@ -577,9 +610,9 @@ export function ProjectsPage() {
setQuery("");
}
}}
- placeholder="Search projects"
+ placeholder={t("projectsPage.search")}
className="h-control w-full rounded-full border-none bg-muted pl-10 pr-4 shadow-none dark:bg-card"
- aria-label="Search projects"
+ aria-label={t("projectsPage.search")}
/>
</div>
<DropdownMenu>
@@ -588,7 +621,7 @@ export function ProjectsPage() {
variant="outline"
size="icon"
data-tour="projects-io"
- title="Import / Export projects"
+ title={t("projectsPage.importExport")}
className="size-control rounded-full border-none bg-muted shadow-none dark:bg-card"
>
<HugeiconsIcon icon={Download01Icon} strokeWidth={1.75} className="size-icon" />
@@ -597,15 +630,15 @@ export function ProjectsPage() {
<DropdownMenuContent align="end" className="w-56">
<DropdownMenuItem onSelect={() => void selectGlobalImportFile()}>
<HugeiconsIcon icon={Upload01Icon} strokeWidth={1.75} className="size-icon" />
- Import chats…
+ {t("projectsPage.importChatsAction")}
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuSub>
- <DropdownMenuSubTrigger>Export All Projects</DropdownMenuSubTrigger>
+ <DropdownMenuSubTrigger>{t("projectsPage.exportAllProjects")}</DropdownMenuSubTrigger>
<DropdownMenuSubContent className="w-52">
<DropdownMenuGroup>
<DropdownMenuLabel className="pb-1 pt-2 text-ui-11 font-medium">
- Combined
+ {t("projectsPage.combined")}
</DropdownMenuLabel>
{COMBINED_EXPORT_FORMATS_LIST.map(({ fmt, label }) => (
<DropdownMenuItem key={`ap-m-${fmt}`} onSelect={() => void handleBulkProjectExport("projects", fmt, true)}>
@@ -616,7 +649,7 @@ export function ProjectsPage() {
<DropdownMenuSeparator />
<DropdownMenuGroup>
<DropdownMenuLabel className="pb-1 pt-2 text-ui-11 font-medium">
- Per chat
+ {t("projectsPage.perChat")}
</DropdownMenuLabel>
{EXPORT_FORMATS_LIST.map(({ fmt, label }) => (
<DropdownMenuItem key={`ap-s-${fmt}`} onSelect={() => void handleBulkProjectExport("projects", fmt, false)}>
@@ -627,11 +660,11 @@ export function ProjectsPage() {
</DropdownMenuSubContent>
</DropdownMenuSub>
<DropdownMenuSub>
- <DropdownMenuSubTrigger>Export Projects + Recents</DropdownMenuSubTrigger>
+ <DropdownMenuSubTrigger>{t("projectsPage.exportProjectsAndRecents")}</DropdownMenuSubTrigger>
<DropdownMenuSubContent className="w-52">
<DropdownMenuGroup>
<DropdownMenuLabel className="pb-1 pt-2 text-ui-11 font-medium">
- Combined
+ {t("projectsPage.combined")}
</DropdownMenuLabel>
{COMBINED_EXPORT_FORMATS_LIST.map(({ fmt, label }) => (
<DropdownMenuItem key={`all-m-${fmt}`} onSelect={() => void handleBulkProjectExport("all", fmt, true)}>
@@ -642,7 +675,7 @@ export function ProjectsPage() {
<DropdownMenuSeparator />
<DropdownMenuGroup>
<DropdownMenuLabel className="pb-1 pt-2 text-ui-11 font-medium">
- Per chat
+ {t("projectsPage.perChat")}
</DropdownMenuLabel>
{EXPORT_FORMATS_LIST.map(({ fmt, label }) => (
<DropdownMenuItem key={`all-s-${fmt}`} onSelect={() => void handleBulkProjectExport("all", fmt, false)}>
@@ -656,16 +689,17 @@ export function ProjectsPage() {
</DropdownMenu>
<Button variant="dark" data-tour="projects-new" onClick={() => setCreating(true)}>
<HugeiconsIcon icon={PlusSignIcon} data-icon="inline-start" />
- New project
+ {t("projectsPage.newProject")}
</Button>
</div>
</div>
+ )}
{!hasLoaded ? (
<div className="mt-16">
<div className="mb-1 flex items-center gap-3 px-5 pb-1 text-ui-13 font-medium text-muted-foreground">
- <span className="flex-1">Name</span>
- <span className="shrink-0 sm:w-40">Updated</span>
+ <span className="flex-1">{t("projectsPage.name")}</span>
+ <span className="shrink-0 sm:w-40">{t("projectsPage.updated")}</span>
<span className="size-7 shrink-0" />
<span className="size-7 shrink-0" />
<span className="w-8 shrink-0" />
@@ -688,44 +722,45 @@ export function ProjectsPage() {
{projects.length === 0 ? (
<>
<p className="max-w-sm text-sm">
- A project keeps related chats together, with shared instructions and sources
- every chat in it can use.
+ {t("projectsPage.emptyDescription")}
</p>
<Button
variant="outline"
className="mt-2 border-none bg-background shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] dark:bg-card dark:shadow-none"
onClick={() => setCreating(true)}
>
- <HugeiconsIcon icon={Folder02Icon} strokeWidth={1.75} className="size-icon" />
- Create your first project
+ <HugeiconsIcon icon={ProjectIcon} strokeWidth={1.75} className="size-icon" />
+ {t("projectsPage.createFirst")}
</Button>
</>
) : (
<>
- <p className="text-sm">No projects match your search.</p>
+ <p className="text-sm">{t("projectsPage.noMatches")}</p>
<Button variant="ghost" size="sm" onClick={() => setQuery("")}>
- Clear search
+ {t("projectsPage.clearSearch")}
</Button>
</>
)}
</div>
) : (
<>
- <div className="mt-16">
+ <div className={embedded ? "mt-6" : "mt-16"}>
<div className="mb-1 flex items-center gap-3 px-5 pb-1 text-ui-13 font-medium text-muted-foreground">
- <span className="flex-1">Name</span>
+ <span className="flex-1">{t("projectsPage.name")}</span>
<button
type="button"
- onClick={() => setSortDir((dir) => (dir === "desc" ? "asc" : "desc"))}
- title={sortDir === "desc" ? "Newest first" : "Oldest first"}
+ onClick={() =>
+ onToggleOrder ? onToggleOrder() : setSortDir((dir) => (dir === "desc" ? "asc" : "desc"))
+ }
+ title={t((orderedDesc ?? sortDir === "desc") ? "projectsPage.newestFirst" : "projectsPage.oldestFirst")}
className="flex shrink-0 cursor-pointer items-center gap-1 text-left transition-colors hover:text-foreground sm:w-40"
>
- Updated
+ {t("projectsPage.updated")}
<ArrowDownIcon
strokeWidth={1.75}
className={cn(
"size-3.5 transition-transform",
- sortDir === "asc" && "rotate-180",
+ !(orderedDesc ?? sortDir === "desc") && "rotate-180",
)}
/>
</button>
@@ -754,7 +789,7 @@ export function ProjectsPage() {
>
<span className="mr-1 flex size-9 shrink-0 items-center justify-center rounded-md bg-muted text-foreground/70 transition-colors group-hover/project-row:bg-primary/10 group-hover/project-row:text-primary">
<HugeiconsIcon
- icon={Folder02Icon}
+ icon={chatsOpen ? Folder02Icon : ProjectIcon}
strokeWidth={1.75}
className="size-5"
/>
@@ -765,7 +800,7 @@ export function ProjectsPage() {
</button>
<button
type="button"
- aria-label={chatsOpen ? "Hide chats" : "Show chats"}
+ aria-label={t(chatsOpen ? "projectsPage.hideChats" : "projectsPage.showChats")}
aria-expanded={chatsOpen}
onClick={(e) => {
e.stopPropagation();
@@ -793,11 +828,11 @@ export function ProjectsPage() {
/>
</span>
<span className="hidden w-40 shrink-0 text-sm text-muted-foreground sm:block">
- {formatUpdated(projectActivityAt(project))}
+ {formatUpdated(projectActivityAt(project), t, locale)}
</span>
<button
type="button"
- aria-label={pinned ? "Unpin project" : "Pin project"}
+ aria-label={t(pinned ? "projectsPage.unpinProject" : "projectsPage.pinProject")}
onClick={(e) => {
e.stopPropagation();
togglePinProject(project.id);
@@ -813,8 +848,8 @@ export function ProjectsPage() {
{/* As ChatGPT's project rows: a new chat is one click, beside the menu that also has it. */}
<button
type="button"
- aria-label="New chat in project"
- title="New chat in project"
+ aria-label={t("projectsPage.newChatInProject")}
+ title={t("projectsPage.newChatInProject")}
onClick={(e) => {
e.stopPropagation();
newChatInProject(project.id);
@@ -829,7 +864,7 @@ export function ProjectsPage() {
<button
type="button"
onClick={(e) => e.stopPropagation()}
- aria-label="Project options"
+ aria-label={t("projectsPage.projectOptions")}
className="absolute right-0 flex size-7 shrink-0 items-center justify-center rounded-full text-muted-foreground transition hover:bg-[rgb(0_0_0_/_calc(0.05*var(--contrast-wash-gain,1)))] hover:text-foreground data-[state=open]:bg-[rgb(0_0_0_/_calc(0.05*var(--contrast-wash-gain,1)))] dark:hover:bg-[rgb(255_255_255_/_calc(0.1*var(--contrast-wash-gain,1)))] dark:data-[state=open]:bg-[rgb(255_255_255_/_calc(0.1*var(--contrast-wash-gain,1)))]"
>
<HugeiconsIcon icon={MoreHorizontalIcon} strokeWidth={1.75} className="size-icon" />
@@ -855,19 +890,19 @@ export function ProjectsPage() {
</div>
</div>
{chatsOpen && (
- <div className="mb-2 flex flex-col gap-0.5 pl-[calc(76px*var(--ui-space-scale,1))]">
+ <div className="mb-2 flex flex-col gap-0.5 pl-[calc(52px*var(--ui-space-scale,1))]">
{chats === undefined || chats === "loading" ? (
- <Skeleton className="h-6 w-48 rounded-full" />
+ <Skeleton className="ml-5 h-6 w-48 rounded-full" />
) : chats === "error" ? (
<button
type="button"
onClick={() => loadProjectChats(project.id)}
- className="cursor-pointer self-start py-1 text-left text-sm text-muted-foreground underline-offset-2 hover:text-foreground hover:underline"
+ className="cursor-pointer self-start py-1 pl-5 text-left text-sm text-muted-foreground underline-offset-2 hover:text-foreground hover:underline"
>
- Could not load chats. Retry
+ {t("projectsPage.loadChatsFailed")}
</button>
) : chats.length === 0 ? (
- <p className="py-1 text-sm text-muted-foreground">No chats</p>
+ <p className="py-1 pl-5 text-sm text-muted-foreground">{t("projectsPage.noChats")}</p>
) : (
<>
{chats.map((chat) => {
@@ -879,23 +914,18 @@ export function ProjectsPage() {
return (
<div
key={chat.id}
- className="group/chat-row flex items-center gap-3 rounded-full py-1.5 pl-2 pr-5 text-left text-sm text-muted-foreground transition-colors hover:bg-muted/70 hover:text-foreground dark:hover:bg-[rgb(255_255_255_/_calc(0.055*var(--contrast-wash-gain,1)))]"
+ className="group/chat-row flex items-center gap-3 rounded-full py-1.5 pl-5 pr-5 text-left text-sm text-muted-foreground transition-colors hover:bg-muted/70 hover:text-foreground dark:hover:bg-[rgb(255_255_255_/_calc(0.055*var(--contrast-wash-gain,1)))]"
>
<button
type="button"
onClick={() => openChat(chat, project.id)}
className="flex min-w-0 flex-1 cursor-pointer items-center gap-3 rounded-full text-left focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
>
- <HugeiconsIcon
- icon={MessageCircleIcon}
- strokeWidth={1.75}
- className="size-4 shrink-0"
- />
<span className="min-w-0 truncate">{chat.title}</span>
{chatUnread ? (
<span
role="img"
- aria-label="Unread"
+ aria-label={t("projectsPage.unread")}
className="size-2 shrink-0 rounded-full bg-primary"
/>
) : null}
@@ -903,12 +933,12 @@ export function ProjectsPage() {
{/* Same widths as a project row, so the columns line up under it, and
gone with it below sm, where a nested row has no room for both. */}
<span className="hidden w-40 shrink-0 sm:block">
- {formatUpdated(chat.updatedAt)}
+ {formatUpdated(chat.updatedAt, t, locale)}
</span>
</button>
<button
type="button"
- aria-label={chatPinned ? "Unpin chat" : "Pin chat"}
+ aria-label={t(chatPinned ? "projectsPage.unpinChat" : "projectsPage.pinChat")}
onClick={(e) => {
e.stopPropagation();
togglePinChat(chat.id);
@@ -932,7 +962,7 @@ export function ProjectsPage() {
<button
type="button"
onClick={(e) => e.stopPropagation()}
- aria-label="Chat options"
+ aria-label={t("projectsPage.chatOptions")}
className="absolute right-0 flex size-7 shrink-0 items-center justify-center rounded-full text-muted-foreground opacity-0 transition hover:bg-[rgb(0_0_0_/_calc(0.05*var(--contrast-wash-gain,1)))] hover:text-foreground focus-visible:opacity-100 group-hover/chat-row:opacity-100 pointer-coarse:opacity-100 data-[state=open]:bg-[rgb(0_0_0_/_calc(0.05*var(--contrast-wash-gain,1)))] data-[state=open]:opacity-100 dark:hover:bg-[rgb(255_255_255_/_calc(0.1*var(--contrast-wash-gain,1)))] dark:data-[state=open]:bg-[rgb(255_255_255_/_calc(0.1*var(--contrast-wash-gain,1)))]"
>
<HugeiconsIcon icon={MoreHorizontalIcon} strokeWidth={1.75} className="size-icon" />
@@ -953,7 +983,7 @@ export function ProjectsPage() {
}}
>
<HugeiconsIcon icon={Edit03Icon} strokeWidth={1.75} className="size-icon" />
- <span>Rename</span>
+ <span>{t("common.rename")}</span>
</DropdownMenuItem>
<DropdownMenuItem
onSelect={() =>
@@ -975,7 +1005,7 @@ export function ProjectsPage() {
<DropdownMenuSub>
<DropdownMenuSubTrigger>
<HugeiconsIcon icon={Download01Icon} strokeWidth={1.75} className="size-icon mr-1" />
- <span>Export</span>
+ <span>{t("common.export")}</span>
</DropdownMenuSubTrigger>
<DropdownMenuSubContent className="w-52">
{chatExportOptions().map(({ label, format }) => (
@@ -997,7 +1027,7 @@ export function ProjectsPage() {
.openDialog("data")
}
>
- Export all chats…
+ {t("projectsPage.exportAllChats")}
</DropdownMenuItem>
</DropdownMenuSubContent>
</DropdownMenuSub>
@@ -1005,7 +1035,7 @@ export function ProjectsPage() {
<DropdownMenuSeparator />
<DropdownMenuItem onSelect={() => void archiveChat(chat)}>
<HugeiconsIcon icon={Archive03Icon} strokeWidth={1.75} className="size-icon" />
- <span>Archive</span>
+ <span>{t("projectsPage.archive")}</span>
</DropdownMenuItem>
<DropdownMenuItem
variant="destructive"
@@ -1016,7 +1046,7 @@ export function ProjectsPage() {
}
>
<HugeiconsIcon icon={Delete02Icon} strokeWidth={1.75} className="size-icon" />
- <span>Delete</span>
+ <span>{t("common.delete")}</span>
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
@@ -1030,7 +1060,7 @@ export function ProjectsPage() {
onClick={() => loadProjectChats(project.id, true)}
className="cursor-pointer self-start py-1 text-left text-sm text-muted-foreground underline-offset-2 hover:text-foreground hover:underline"
>
- Could not refresh chats. Retry
+ {t("projectsPage.refreshChatsFailed")}
</button>
)}
</>
@@ -1076,7 +1106,7 @@ export function ProjectsPage() {
>
<DialogContent className="corner-squircle dialog-soft-surface sm:max-w-md">
<DialogHeader>
- <DialogTitle>Rename chat</DialogTitle>
+ <DialogTitle>{t("projectsPage.renameChat")}</DialogTitle>
</DialogHeader>
<Input
value={chatNameDraft}
@@ -1089,23 +1119,24 @@ export function ProjectsPage() {
}}
autoFocus
maxLength={200}
- placeholder="Chat name"
- aria-label="Chat name"
+ placeholder={t("projectsPage.chatName")}
+ aria-label={t("projectsPage.chatName")}
className="focus-visible:border-input focus-visible:ring-0"
/>
<DialogFooter className="flex-wrap gap-2 sm:justify-end">
<Button type="button" variant="ghost" onClick={() => setRenamingChat(null)}>
- Cancel
+ {t("common.cancel")}
</Button>
<Button
type="button"
+ variant="dark"
onClick={() => void commitChatRename()}
disabled={
!chatNameDraft.trim() ||
chatNameDraft.trim() === renamingChat?.title
}
>
- Save
+ {t("common.save")}
</Button>
</DialogFooter>
</DialogContent>
@@ -1119,11 +1150,12 @@ export function ProjectsPage() {
>
<DialogContent className="menu-flat-destructive corner-squircle dialog-soft-surface sm:max-w-md">
<DialogHeader>
- <DialogTitle>Delete chat</DialogTitle>
+ <DialogTitle>{t("projectsPage.deleteChat")}</DialogTitle>
</DialogHeader>
<p className="text-sm text-muted-foreground">
- Are you sure you want to delete <em>{deletingChat?.title}</em>? Its messages
- will be permanently deleted.
+ {deleteChatText[0]}
+ <em>{deletingChat?.title}</em>
+ {deleteChatText[1]}
</p>
<DeleteChatFilesSwitch
id="projects-delete-chat-files"
@@ -1132,14 +1164,14 @@ export function ProjectsPage() {
/>
<DialogFooter className="flex-wrap gap-2 sm:justify-end">
<Button type="button" variant="ghost" onClick={() => setDeletingChat(null)}>
- Cancel
+ {t("common.cancel")}
</Button>
<Button
type="button"
variant="destructive"
onClick={() => void commitChatDelete()}
>
- {deleteFilesOnDelete ? "Delete all" : "Delete"}
+ {deleteFilesOnDelete ? t("projectsPage.deleteAll") : t("common.delete")}
</Button>
</DialogFooter>
</DialogContent>
@@ -1148,35 +1180,35 @@ export function ProjectsPage() {
<Dialog open={importFile !== null} onOpenChange={(open) => { if (!open) setImportFile(null); }}>
<DialogContent className="corner-squircle dialog-soft-surface sm:max-w-md">
<DialogHeader>
- <DialogTitle>Import chats</DialogTitle>
+ <DialogTitle>{t("projectsPage.importChats")}</DialogTitle>
</DialogHeader>
<p className="text-sm text-muted-foreground">
- Choose where to import{" "}
+ {importText[0]}
<span
data-reload-snapshot-sensitive
className="font-medium text-foreground"
>
{importFile?.name}
</span>
- :
+ {importText[1]}
</p>
<Select
value={importTargetId ?? "__recents__"}
onValueChange={(v) => setImportTargetId(v === "__recents__" ? null : v)}
>
<SelectTrigger>
- <SelectValue placeholder="Select destination" />
+ <SelectValue placeholder={t("projectsPage.selectDestination")} />
</SelectTrigger>
<SelectContent>
- <SelectItem value="__recents__">Recents</SelectItem>
+ <SelectItem value="__recents__">{t("projectsPage.recents")}</SelectItem>
{projects.map((p) => (
<SelectItem key={p.id} value={p.id}>{p.name}</SelectItem>
))}
</SelectContent>
</Select>
<DialogFooter className="flex-wrap gap-2 sm:justify-end">
- <Button type="button" variant="ghost" onClick={() => setImportFile(null)}>Cancel</Button>
- <Button type="button" onClick={() => void commitImport()}>Import</Button>
+ <Button type="button" variant="ghost" onClick={() => setImportFile(null)}>{t("common.cancel")}</Button>
+ <Button type="button" onClick={() => void commitImport()}>{t("projectsPage.import")}</Button>
</DialogFooter>
</DialogContent>
</Dialog>
@@ -1189,11 +1221,12 @@ export function ProjectsPage() {
>
<DialogContent className="menu-flat-destructive corner-squircle dialog-soft-surface sm:max-w-md">
<DialogHeader>
- <DialogTitle>Delete project</DialogTitle>
+ <DialogTitle>{t("projectsPage.deleteProject")}</DialogTitle>
</DialogHeader>
<p className="text-sm text-muted-foreground">
- Are you sure you want to delete <em>{deleting?.name}</em>? Its chats will
- be permanently deleted.
+ {deleteProjectText[0]}
+ <em>{deleting?.name}</em>
+ {deleteProjectText[1]}
</p>
<DeleteChatFilesSwitch
id="projects-delete-project-files"
@@ -1201,19 +1234,19 @@ export function ProjectsPage() {
onCheckedChange={setDeleteFilesOnDelete}
description={
deleting?.rootPath ??
- "The project workspace folder will be removed from disk."
+ t("projectsPage.deleteProjectFiles")
}
/>
<DialogFooter className="flex-wrap gap-2 sm:justify-end">
<Button type="button" variant="ghost" onClick={() => setDeleting(null)}>
- Cancel
+ {t("common.cancel")}
</Button>
<Button type="button" variant="destructive" onClick={() => void commitDelete()}>
- {deleteFilesOnDelete ? "Delete all" : "Delete"}
+ {deleteFilesOnDelete ? t("projectsPage.deleteAll") : t("common.delete")}
</Button>
</DialogFooter>
</DialogContent>
</Dialog>
- </main>
+ </Shell>
);
}
diff --git a/studio/frontend/src/features/chat/shared-composer.tsx b/studio/frontend/src/features/chat/shared-composer.tsx
index d3a9d2d627f..542bffe8420 100644
--- a/studio/frontend/src/features/chat/shared-composer.tsx
+++ b/studio/frontend/src/features/chat/shared-composer.tsx
@@ -118,8 +118,6 @@ import {
Bookmark02Icon,
CodeIcon,
Download01Icon,
- Folder01Icon,
- FolderAddIcon,
Image03Icon,
McpServerIcon,
Scroll01Icon,
@@ -128,10 +126,12 @@ import {
SlidersHorizontalIcon,
Cancel01Icon,
} from "@hugeicons/core-free-icons";
+import { FolderAddIcon } from "@/lib/folder-icons";
import { StopIcon } from "@/lib/media-control-icons";
import { useNavigate } from "@tanstack/react-router";
import { useChatActive } from "./runtime-provider";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { toast } from "@/lib/toast";
import {
PromptStorageDialog,
@@ -2614,7 +2614,7 @@ export function SharedComposer({
projects: (
<DropdownMenuSub>
<DropdownMenuSubTrigger>
- <HugeiconsIcon icon={Folder01Icon} strokeWidth={2} />
+ <HugeiconsIcon icon={ProjectIcon} strokeWidth={2} />
Projects
</DropdownMenuSubTrigger>
<DropdownMenuSubContent className="unsloth-plus-menu w-[calc(232px*var(--ui-space-scale,1))]">
@@ -2629,7 +2629,7 @@ export function SharedComposer({
key={project.id}
onSelect={() => openProject(project.id)}
>
- <HugeiconsIcon icon={Folder01Icon} strokeWidth={2} />
+ <HugeiconsIcon icon={ProjectIcon} strokeWidth={2} />
<span className="truncate">{project.name}</span>
</DropdownMenuItem>
))
diff --git a/studio/frontend/src/features/export/components/export-run-panel.tsx b/studio/frontend/src/features/export/components/export-run-panel.tsx
index 4a6faea9ad9..6ba9cc25a64 100644
--- a/studio/frontend/src/features/export/components/export-run-panel.tsx
+++ b/studio/frontend/src/features/export/components/export-run-panel.tsx
@@ -22,9 +22,9 @@ import {
AlertCircleIcon,
CancelCircleIcon,
CheckmarkCircle02Icon,
- FolderSearchIcon,
Key01Icon,
} from "@hugeicons/core-free-icons";
+import { FolderSearchIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useEffect, useRef, useState } from "react";
import { useShallow } from "zustand/react/shallow";
diff --git a/studio/frontend/src/features/export/export-page.tsx b/studio/frontend/src/features/export/export-page.tsx
index d88776d9ad3..3580518d4dc 100644
--- a/studio/frontend/src/features/export/export-page.tsx
+++ b/studio/frontend/src/features/export/export-page.tsx
@@ -57,12 +57,12 @@ import { ChevronDownStandardIcon } from "@/lib/chevron-icons";
import { cn } from "@/lib/utils";
import {
AlertCircleIcon,
- FolderSearchIcon,
InformationCircleIcon,
Key01Icon,
PackageIcon,
Search01Icon,
} from "@hugeicons/core-free-icons";
+import { FolderSearchIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useSearch } from "@tanstack/react-router";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
diff --git a/studio/frontend/src/features/hub/catalog/download-location-picker.tsx b/studio/frontend/src/features/hub/catalog/download-location-picker.tsx
index 5c35adc9df5..0a329ca3471 100644
--- a/studio/frontend/src/features/hub/catalog/download-location-picker.tsx
+++ b/studio/frontend/src/features/hub/catalog/download-location-picker.tsx
@@ -16,7 +16,7 @@ import { FolderBrowser } from "@/features/model-picker";
import { pickHuggingFaceCacheDir } from "@/features/native-intents";
import { isTauri } from "@/lib/api-base";
import { toast } from "@/lib/toast";
-import { Folder02Icon } from "@hugeicons/core-free-icons";
+import { Folder02Icon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useState } from "react";
import { setDownloadDir, useDownloadDir } from "../download-manager";
diff --git a/studio/frontend/src/features/hub/catalog/gguf-download-card.tsx b/studio/frontend/src/features/hub/catalog/gguf-download-card.tsx
index 74be66f1e4f..01066d700e7 100644
--- a/studio/frontend/src/features/hub/catalog/gguf-download-card.tsx
+++ b/studio/frontend/src/features/hub/catalog/gguf-download-card.tsx
@@ -45,13 +45,13 @@ import {
Refresh01Icon,
Delete02Icon,
Download01Icon,
- Folder01Icon,
HelpCircleIcon,
InformationCircleIcon,
MoreVerticalIcon,
PinIcon,
PinOffIcon,
} from "@hugeicons/core-free-icons";
+import { Folder01Icon } from "@/lib/folder-icons";
import { Copy01Icon } from "@/lib/copy-icon";
import { HugeiconsIcon } from "@hugeicons/react";
import {
diff --git a/studio/frontend/src/features/hub/catalog/local-on-device-card.tsx b/studio/frontend/src/features/hub/catalog/local-on-device-card.tsx
index 56c2a287625..6c4b23e1254 100644
--- a/studio/frontend/src/features/hub/catalog/local-on-device-card.tsx
+++ b/studio/frontend/src/features/hub/catalog/local-on-device-card.tsx
@@ -21,10 +21,10 @@ import { ChevronDownStandardIcon } from "@/lib/chevron-icons";
import { cn } from "@/lib/utils";
import {
Alert02Icon,
- Folder01Icon,
LayerIcon,
LinkSquare02Icon,
} from "@hugeicons/core-free-icons";
+import { Folder01Icon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useCallback, useMemo, useState } from "react";
import {
diff --git a/studio/frontend/src/features/hub/catalog/models-toolbar.tsx b/studio/frontend/src/features/hub/catalog/models-toolbar.tsx
index 29a998978f9..3e4c8dea3e1 100644
--- a/studio/frontend/src/features/hub/catalog/models-toolbar.tsx
+++ b/studio/frontend/src/features/hub/catalog/models-toolbar.tsx
@@ -14,15 +14,15 @@ import type { HfSortKey } from "@/features/hub/hooks/use-hub-model-search";
import { useHubSource } from "@/lib/hf-endpoint";
import { cn } from "@/lib/utils";
import {
- ArrowUpDownIcon,
Cancel01Icon,
Delete02Icon,
- FolderSearchIcon,
Search01Icon,
SlidersHorizontalIcon,
SparklesIcon,
} from "@hugeicons/core-free-icons";
+import { FolderSearchIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
+import { SortIcon } from "@/lib/sort-icon";
import { memo, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
import type { HubCapabilityFilter } from "../lib/model-capabilities";
import type {
@@ -532,7 +532,7 @@ export const ModelsToolbar = memo(function ModelsToolbar({
triggerContent={
<span className="flex items-center gap-1">
<HugeiconsIcon
- icon={ArrowUpDownIcon}
+ icon={SortIcon}
strokeWidth={1.75}
className="size-3.5 shrink-0"
/>
@@ -559,7 +559,7 @@ export const ModelsToolbar = memo(function ModelsToolbar({
triggerContent={
<span className="flex items-center gap-1">
<HugeiconsIcon
- icon={ArrowUpDownIcon}
+ icon={SortIcon}
strokeWidth={1.75}
className="size-3.5 shrink-0"
/>
diff --git a/studio/frontend/src/features/hub/catalog/on-device-folders-dialog.tsx b/studio/frontend/src/features/hub/catalog/on-device-folders-dialog.tsx
index e6822ec4f73..18df318dc13 100644
--- a/studio/frontend/src/features/hub/catalog/on-device-folders-dialog.tsx
+++ b/studio/frontend/src/features/hub/catalog/on-device-folders-dialog.tsx
@@ -48,14 +48,11 @@ import { cn } from "@/lib/utils";
import {
Delete02Icon,
Download01Icon,
- FolderAddIcon,
- FolderExportIcon,
- FolderOpenIcon,
- FolderSearchIcon,
InformationCircleIcon,
PlusSignIcon,
Refresh01Icon,
} from "@hugeicons/core-free-icons";
+import { FolderAddIcon, FolderExportIcon, FolderOpenIcon, FolderSearchIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useCallback, useEffect, useMemo, useState } from "react";
import { setDownloadDir, useDownloadDir } from "../download-manager";
diff --git a/studio/frontend/src/features/images/images-page.tsx b/studio/frontend/src/features/images/images-page.tsx
index 61373225851..eb0cd3e7eec 100644
--- a/studio/frontend/src/features/images/images-page.tsx
+++ b/studio/frontend/src/features/images/images-page.tsx
@@ -25,7 +25,6 @@ import {
Delete02Icon,
Download01Icon,
Edit03Icon,
- FolderAddIcon,
Image03Icon,
ImageAdd02Icon,
ImageCropIcon,
@@ -35,6 +34,7 @@ import {
SparklesIcon,
UndoIcon,
} from "@hugeicons/core-free-icons";
+import { FolderAddIcon } from "@/lib/folder-icons";
import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";
import { History as HistoryIcon, Shuffle } from "lucide-react";
import { MessageCircleIcon, TestTubeOutlineIcon } from "@/lib/hugeicons-derived";
@@ -6935,8 +6935,8 @@ export function ImagesPage({
</Button>
) : (
<>
- <Button variant="dark"
- className="relative z-10 text-ui-13 disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100"
+ <Button variant="primary"
+ className="relative z-10 h-11 px-8 text-ui-14 bg-control-accent text-control-accent-foreground hover:bg-control-accent/85 disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100"
onClick={handleGenerateWithRecall}
disabled={busy !== null || !imagePresets.hydrated || (!status?.loaded && !rememberedModel && !external)}
>
diff --git a/studio/frontend/src/features/images/train/diffusion-train-panel.tsx b/studio/frontend/src/features/images/train/diffusion-train-panel.tsx
index a7b1f4cd098..f48cc557e36 100644
--- a/studio/frontend/src/features/images/train/diffusion-train-panel.tsx
+++ b/studio/frontend/src/features/images/train/diffusion-train-panel.tsx
@@ -12,11 +12,11 @@ import {
} from "react";
import {
- FolderAddIcon,
PlusSignIcon,
Settings02Icon,
Upload01Icon,
} from "@hugeicons/core-free-icons";
+import { FolderAddIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useNavigate } from "@tanstack/react-router";
import { TestTubeOutlineIcon } from "@/lib/hugeicons-derived";
diff --git a/studio/frontend/src/features/library/chats/chats-items.tsx b/studio/frontend/src/features/library/chats/chats-items.tsx
index dab3baf36bd..f8ba3e6740d 100644
--- a/studio/frontend/src/features/library/chats/chats-items.tsx
+++ b/studio/frontend/src/features/library/chats/chats-items.tsx
@@ -44,9 +44,6 @@ import {
Delete02Icon,
Download01Icon,
Edit03Icon,
- FolderAddIcon,
- Folder02Icon,
- FolderExportIcon,
LayerIcon,
MoreHorizontalIcon,
PencilEdit02Icon,
@@ -59,7 +56,9 @@ import {
ViewIcon,
ViewOffSlashIcon,
} from "@hugeicons/core-free-icons";
+import { FolderAddIcon, FolderExportIcon } from "@/lib/folder-icons";
import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { ForkIcon } from "@/lib/fork-icon";
import {
ArrowDownIcon,
@@ -76,16 +75,18 @@ import {
import { FILE_LIST_COLUMNS } from "../components/library-list";
import { useLibrarySettingsStore } from "../settings-store";
import { SortRadio } from "../components/library-toolbar";
-import { CARD_MIN_HEIGHT, CARD_SHADOW, OVERLAY_CONTROL, RAISED_SURFACE } from "../surface";
+import { CARD_SHADOW, OVERLAY_CONTROL, RAISED_SURFACE } from "../surface";
const CARD = cn(
RAISED_SURFACE,
CARD_SHADOW,
// min-h-0 min-w-0: content must not size the card, or one long card grows its whole tab.
- "group/chat relative flex min-h-0 min-w-0 cursor-pointer flex-col gap-2.5 self-stretch rounded-2xl px-5 py-5 transition hover:bg-neutral-100 hover:shadow-none dark:hover:bg-accent/60",
+ "group/chat relative flex min-h-0 min-w-0 cursor-pointer flex-col gap-2.5 self-stretch rounded-xl px-5 pt-5 pb-4.5 transition hover:bg-neutral-100 hover:shadow-none dark:hover:bg-accent/60",
);
-export const CHAT_CARD_ROW_MIN = CARD_MIN_HEIGHT;
+// Fits the fullest card; rows grow past it, never to a square.
+export const CHAT_CARD_ROW_MIN =
+ "calc(var(--spacing) * 20 + 2.75 * var(--text-ui-12p5) + 3 * var(--text-ui-11p5))";
import {
type ChatContents,
type ChatSort,
@@ -280,7 +281,7 @@ export function MoveSubmenu({
{projectTargets.map((entry) => (
<MenuItem
key={entry.id}
- icon={Folder02Icon}
+ icon={ProjectIcon}
label={entry.name}
onSelect={() => onMove({ kind: "project", id: entry.id })}
/>
@@ -561,29 +562,29 @@ function ChatMenu({
const TILE =
"flex size-9 shrink-0 items-center justify-center rounded-md bg-muted text-foreground/70 transition-colors group-hover/chat:bg-primary/10 group-hover/chat:text-primary";
const TILE_ICON = "size-5";
+const CARD_ICON =
+ "size-4.5 shrink-0 text-foreground/70 transition-colors group-hover/chat:text-primary";
function ChatTile({
chat,
className,
+ bare = false,
}: {
chat: SidebarItem;
className?: string;
+ bare?: boolean;
}) {
- return (
- <div className={cn(TILE, className)}>
- {chat.type === "compare" ? (
- <Columns2Icon strokeWidth={1.75} className={TILE_ICON} />
- ) : chat.isFork ? (
- <GitBranchIcon strokeWidth={1.75} className={TILE_ICON} />
- ) : (
- <HugeiconsIcon
- icon={MessageCircleIcon}
- strokeWidth={1.75}
- className={TILE_ICON}
- />
- )}
- </div>
- );
+ const iconClass = bare ? CARD_ICON : TILE_ICON;
+ const icon =
+ chat.type === "compare" ? (
+ <Columns2Icon strokeWidth={1.75} className={iconClass} />
+ ) : chat.isFork ? (
+ <GitBranchIcon strokeWidth={1.75} className={iconClass} />
+ ) : (
+ <HugeiconsIcon icon={MessageCircleIcon} strokeWidth={1.75} className={iconClass} />
+ );
+ if (bare) return icon;
+ return <div className={cn(TILE, className)}>{icon}</div>;
}
function Badge({ children }: { children: ReactNode }) {
@@ -672,7 +673,7 @@ function ChatLocation({
className={cn(CHIP, "max-w-full")}
>
<HugeiconsIcon
- icon={projectId ? Folder02Icon : LayerIcon}
+ icon={projectId ? ProjectIcon : LayerIcon}
strokeWidth={1.75}
className="size-3.5 shrink-0"
/>
@@ -692,7 +693,7 @@ function ChatLocation({
className={cn(CHIP, "shrink")}
>
<HugeiconsIcon
- icon={Folder02Icon}
+ icon={ProjectIcon}
strokeWidth={1.75}
className="size-3.5 shrink-0"
/>
@@ -849,7 +850,7 @@ export function DateHeader({
const Arrow = active && !desc ? ArrowUpIcon : ArrowDownIcon;
const label = t(DATE_LABELS[field]);
return (
- <span className={cn(DATE_COLUMN, "items-center gap-1 @xl:flex")}>
+ <span className={cn(DATE_COLUMN, "group/datecol items-center gap-1 @xl:flex")}>
{fields.length > 1 ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
@@ -864,7 +865,7 @@ export function DateHeader({
<HugeiconsIcon
icon={ChevronDownStandardIcon}
strokeWidth={2}
- className="size-3 opacity-0 transition-opacity group-hover/date:opacity-100 group-focus-visible/date:opacity-100 group-data-[state=open]/date:opacity-100"
+ className="size-3 opacity-0 transition-opacity group-hover/datecol:opacity-100 group-focus-visible/date:opacity-100 group-data-[state=open]/date:opacity-100"
/>
</button>
</DropdownMenuTrigger>
@@ -1183,7 +1184,7 @@ export function ChatCard({
className={cn(CARD, selected && "ring-2 ring-foreground")}
>
<div className={cn("flex items-center gap-2", !showTile && TILELESS_ROW)}>
- {showTile && <ChatTile chat={chat} />}
+ {showTile && <ChatTile chat={chat} bare />}
<ChatBadges chat={chat} marksOnly={showTile} />
</div>
<ChatMenu chat={chat} archived={archived} variant="card" />
@@ -1195,7 +1196,7 @@ export function ChatCard({
if (selecting) actions.toggleSelected(chat.id, event.shiftKey);
else actions.open(chat);
}}
- className={cn(CARD_TITLE, !showTile && TILELESS_TITLE)}
+ className={CARD_TITLE}
>
{/* Buttons ignore line-clamp, so clamp an inner span. */}
<span className="line-clamp-2">{chatTitle(chat, t)}</span>
@@ -1218,18 +1219,17 @@ function CardFooter({ meta, date, className }: { meta?: ReactNode; date: string;
)}
>
{meta && <span className="w-full min-w-0 truncate">{meta}</span>}
- <span className="truncate">{date}</span>
+ <span className="truncate text-ui-10p5">{date}</span>
</div>
);
}
-// Without a tile, the empty marks row collapses and the title clears the corner menu.
+// The hover menu overlays the full-width title.
const TILELESS_ROW = "empty:hidden pe-8";
-const TILELESS_TITLE = "pe-6";
-const TILELESS_ROW_NAME = "min-h-13";
+const TILELESS_ROW_NAME = "min-h-10";
const CARD_TITLE =
- "block w-full rounded-md text-left font-medium text-ui-13 leading-snug text-foreground outline-none [overflow-wrap:anywhere] focus-visible:ring-2 focus-visible:ring-ring";
+ "block w-full rounded-md text-left font-medium text-ui-12p5 leading-snug text-foreground outline-none [overflow-wrap:anywhere] focus-visible:ring-2 focus-visible:ring-ring";
export function GroupHeading({
children,
@@ -1242,16 +1242,17 @@ export function GroupHeading({
}) {
const t = useT();
return (
- <h3 className="mb-1 mt-7 flex items-baseline gap-2 pl-4 font-sans text-ui-13 first:mt-3">
- <span className="font-medium text-foreground">{children}</span>
- <span className="text-ui-12 text-muted-foreground">
+ <h3 className="mb-2 mt-3 flex items-baseline gap-2 border-b border-border pb-2 pl-4 font-sans text-ui-12">
+ <span className="font-medium text-muted-foreground">{children}</span>
+ <span className="text-ui-11 text-muted-foreground/70">
{countLabel ?? chatCount(count, t)}
</span>
</h3>
);
}
-function CollectionTile({ icon }: { icon: IconSvgElement }) {
+function CollectionTile({ icon, bare = false }: { icon: IconSvgElement; bare?: boolean }) {
+ if (bare) return <HugeiconsIcon icon={icon} strokeWidth={1.75} className={CARD_ICON} />;
return (
<span className={TILE}>
<HugeiconsIcon icon={icon} strokeWidth={1.75} className={TILE_ICON} />
@@ -1420,7 +1421,7 @@ export function ProjectCard({
className={CARD}
>
<div className={cn("flex items-center gap-2", !showTile && TILELESS_ROW)}>
- {showTile && <CollectionTile icon={Folder02Icon} />}
+ {showTile && <CollectionTile icon={ProjectIcon} bare />}
{actions.favoriteProjects.has(project.id) && <FavoriteMark />}
{pinned && <PinMark />}
</div>
@@ -1431,7 +1432,7 @@ export function ProjectCard({
event.stopPropagation();
actions.viewProject(project.id);
}}
- className={cn(CARD_TITLE, !showTile && TILELESS_TITLE)}
+ className={CARD_TITLE}
>
<span className="line-clamp-2">{project.name}</span>
</button>
@@ -1472,7 +1473,7 @@ export function ProjectRow({
)}
>
<div className={cn("flex min-w-0 flex-1 items-center gap-4 py-2", !showTile && TILELESS_ROW_NAME)}>
- {showTile && <CollectionTile icon={Folder02Icon} />}
+ {showTile && <CollectionTile icon={ProjectIcon} />}
<div className="flex min-w-0 flex-col">
<span className="flex min-w-0 items-center gap-2">
<button
@@ -1542,26 +1543,6 @@ export function ProjectRow({
);
}
-export function ProjectListHeader({ date }: { date: DateColumn }) {
- const t = useT();
- const { dateField } = useChatsActions();
- return (
- <div
- className={cn(
- "flex items-center gap-4 pb-2 text-ui-12p5 text-muted-foreground",
- ROW_INSET,
- )}
- >
- <span className="min-w-0 flex-1">{t("library.list.name")}</span>
- <span className={CONTENTS_COLUMN}>
- {t("library.chats.list.contents")}
- </span>
- <DateHeader {...date} field={dateField} />
- <span className="w-8 shrink-0" />
- </div>
- );
-}
-
function SectionMenu({
section,
variant,
@@ -1669,7 +1650,7 @@ export function SectionCard({
className={CARD}
>
<div className={cn("flex items-center gap-2", !showTile && TILELESS_ROW)}>
- {showTile && <CollectionTile icon={LayerIcon} />}
+ {showTile && <CollectionTile icon={LayerIcon} bare />}
{actions.favoriteSections.has(section.id) && <FavoriteMark />}
</div>
<SectionMenu section={section} variant="card" />
@@ -1679,7 +1660,7 @@ export function SectionCard({
event.stopPropagation();
actions.viewSection(section.id);
}}
- className={cn(CARD_TITLE, !showTile && TILELESS_TITLE)}
+ className={CARD_TITLE}
>
<span className="line-clamp-2">{section.name}</span>
</button>
@@ -1861,7 +1842,7 @@ export function FavoriteProjectTile({
title={project.name}
icon={
<HugeiconsIcon
- icon={Folder02Icon}
+ icon={ProjectIcon}
strokeWidth={1.5}
className={FILE_CARD_ICON_CLASS}
/>
diff --git a/studio/frontend/src/features/library/chats/chats-library.tsx b/studio/frontend/src/features/library/chats/chats-library.tsx
index 19055fb8ceb..598d507cef4 100644
--- a/studio/frontend/src/features/library/chats/chats-library.tsx
+++ b/studio/frontend/src/features/library/chats/chats-library.tsx
@@ -63,8 +63,6 @@ import {
ArchiveRestoreIcon,
Cancel01Icon,
Delete02Icon,
- Folder02Icon,
- FolderAddIcon,
LayerIcon,
MoreHorizontalIcon,
PencilEdit02Icon,
@@ -74,6 +72,7 @@ import {
CheckmarkCircle02Icon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { useNavigate } from "@tanstack/react-router";
import {
type ReactNode,
@@ -110,7 +109,6 @@ import {
GroupHeading,
MoveSubmenu,
ProjectCard,
- ProjectListHeader,
ProjectRow,
SectionCard,
SectionListHeader,
@@ -118,6 +116,7 @@ import {
SectionRow,
} from "./chats-items";
import { ChatsToolbar, type SortChoice, SortMenu } from "./chats-toolbar";
+import { ProjectsPage } from "@/features/chat/projects-page";
import {
type ChatFilters,
type ChatGroup,
@@ -192,7 +191,7 @@ const SECTION_LABELS: Record<ChatsSection, TranslationKey> = {
const SECTION_ICONS: Partial<Record<ChatsSection, IconSvgElement>> = {
chats: MessageCircleIcon,
- projects: Folder02Icon,
+ projects: ProjectIcon,
sections: LayerIcon,
archived: Archive03Icon,
};
@@ -835,12 +834,6 @@ export function ChatsLibrary({
DATE_FIELDS,
prefs.dateField,
);
- const projectDateColumn = dateColumn(
- prefs.projectSort,
- (projectSort) => prefs.set({ projectSort }),
- DATE_FIELDS,
- prefs.dateField,
- );
const sectionDateColumn = dateColumn(
prefs.sectionSort,
(sectionSort) => prefs.set({ sectionSort }),
@@ -1114,7 +1107,7 @@ export function ChatsLibrary({
)
) : (
groups.map((group) => (
- <section key={group.key} aria-label={groupBy === "none" ? undefined : groupLabel(group)}>
+ <section key={group.key} aria-label={groupBy === "none" ? undefined : groupLabel(group)} className="not-first:mt-6">
{groupBy !== "none" && (
<GroupHeading count={groupTotals.get(group.key) ?? group.items.length}>
{groupLabel(group)}
@@ -1244,63 +1237,6 @@ export function ChatsLibrary({
);
}
- function renderProjects() {
- if (!projectsLoaded || !loaded) return null;
- if (visibleProjects.length === 0) {
- return query.trim() ? (
- <EmptyState
- icon={Folder02Icon}
- title={t("library.empty.noMatchesTitle")}
- description={t("library.empty.noMatchesDescription")}
- />
- ) : (
- <EmptyState
- icon={Folder02Icon}
- title={t("library.chats.empty.projectsTitle")}
- description={t("library.chats.empty.projectsDescription")}
- action={
- <Button variant="muted" className="rounded-full" onClick={() => setCreatingProject(true)}>
- {t("library.chats.toolbar.newProject")}
- </Button>
- }
- />
- );
- }
- return <div className="mt-6">{projectListing()}</div>;
- }
-
- function projectListing() {
- if (view === "list") {
- return (
- <div className="@container">
- <ProjectListHeader date={projectDateColumn} />
- <div className={cn("mt-1 flex flex-col", LIST_ROW_GAP)}>
- {visibleProjects.map((project) => (
- <ProjectRow key={project.id} project={project} stats={stats.get(project.id)} showTile={false} />
- ))}
- </div>
- </div>
- );
- }
- return (
- <CardGrid minRowHeight={CHAT_CARD_ROW_MIN}>
- {!embedded && (
- <button
- type="button"
- onClick={() => setCreatingProject(true)}
- className="flex min-h-0 flex-col self-stretch items-center justify-center gap-2 rounded-2xl border border-dashed border-border text-ui-14 text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground"
- >
- <HugeiconsIcon icon={FolderAddIcon} strokeWidth={1.5} className="size-6" />
- {t("library.chats.toolbar.newProject")}
- </button>
- )}
- {visibleProjects.map((project) => (
- <ProjectCard key={project.id} project={project} stats={stats.get(project.id)} showTile={false} />
- ))}
- </CardGrid>
- );
- }
-
const sectionPills = (
<nav aria-label={t("library.chats.sections.ariaLabel")} className="flex flex-wrap items-center gap-x-8 gap-y-2 pl-3.5">
{CHATS_SECTIONS.map((entry) => {
@@ -1522,6 +1458,7 @@ export function ChatsLibrary({
openSectionId ? newProjectInSection(openSectionId) : setCreatingProject(true)
}
onNewSection={() => setMovingIntoNew({ kind: "section", chats: [] })}
+ showView={section !== "projects"}
/>
}
tabs={tabs ?? null}
@@ -1534,7 +1471,22 @@ export function ChatsLibrary({
{section === "all"
? renderAll()
: section === "projects"
- ? renderProjects()
+ ? (
+ <ProjectsPage
+ embedded
+ ordered={visibleProjects}
+ searching={query.trim() !== ""}
+ orderedDesc={prefs.projectSort.key !== "updated" || prefs.projectSort.desc}
+ onToggleOrder={() =>
+ prefs.set({
+ projectSort: {
+ key: "updated",
+ desc: prefs.projectSort.key === "updated" ? !prefs.projectSort.desc : false,
+ },
+ })
+ }
+ />
+ )
: section === "sections"
? renderSections()
: renderChats()}
diff --git a/studio/frontend/src/features/library/chats/chats-toolbar.tsx b/studio/frontend/src/features/library/chats/chats-toolbar.tsx
index 8ff274bca45..6dde55ed269 100644
--- a/studio/frontend/src/features/library/chats/chats-toolbar.tsx
+++ b/studio/frontend/src/features/library/chats/chats-toolbar.tsx
@@ -15,17 +15,18 @@ import { StarPointedIcon } from "@/lib/hugeicons-derived";
import { cn } from "@/lib/utils";
import {
FilterMailIcon,
- Folder02Icon,
- FolderAddIcon,
LayerIcon,
PencilEdit02Icon,
PinIcon,
Search01Icon,
} from "@hugeicons/core-free-icons";
+import { FolderAddIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
-import { ArrowDownUpIcon, Columns2Icon, GitBranchIcon } from "lucide-react";
+import { ProjectIcon } from "@/lib/project-icon";
+import { Columns2Icon, GitBranchIcon } from "lucide-react";
+import { SortIcon } from "@/lib/sort-icon";
import type { ReactNode } from "react";
-import { ROUND_BUTTON, SortRadio, VIEW_OPTIONS } from "../components/library-toolbar";
+import { ROUND_BUTTON, SortRadio, ToolbarTip, VIEW_OPTIONS } from "../components/library-toolbar";
import type { LibraryView } from "../settings-store";
import {
type ChatFilters,
@@ -128,16 +129,18 @@ function FilterMenu({
const t = useT();
return (
<DropdownMenu>
- <DropdownMenuTrigger asChild>
- <button
- type="button"
- aria-label={t("library.toolbar.filter")}
- data-active={chatFiltersActive(filters)}
- className={ROUND_BUTTON}
- >
- <HugeiconsIcon icon={FilterMailIcon} strokeWidth={1.75} className="size-5" />
- </button>
- </DropdownMenuTrigger>
+ <ToolbarTip label={t("library.toolbar.filter")}>
+ <DropdownMenuTrigger asChild>
+ <button
+ type="button"
+ aria-label={t("library.toolbar.filter")}
+ data-active={chatFiltersActive(filters)}
+ className={ROUND_BUTTON}
+ >
+ <HugeiconsIcon icon={FilterMailIcon} strokeWidth={1.75} className="size-5" />
+ </button>
+ </DropdownMenuTrigger>
+ </ToolbarTip>
<DropdownMenuContent
align="end"
sideOffset={4}
@@ -167,7 +170,7 @@ function FilterMenu({
{facets.projects.map((project) => (
<CheckItem
key={project.id}
- icon={<HugeiconsIcon icon={Folder02Icon} strokeWidth={1.75} className={ICON} />}
+ icon={<HugeiconsIcon icon={ProjectIcon} strokeWidth={1.75} className={ICON} />}
label={project.name}
checked={filters.projects.has(project.id)}
onToggle={() =>
@@ -259,15 +262,17 @@ export function SortMenu<K extends string>({
const current = options.find((option) => option.value === value);
return (
<DropdownMenu>
- <DropdownMenuTrigger asChild>
- <button
- type="button"
- className="flex h-9 shrink-0 items-center gap-1.5 rounded-full px-3 text-ui-14 text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring data-open:bg-muted data-open:text-foreground dark:text-foreground/70"
- >
- <ArrowDownUpIcon strokeWidth={1.75} className="size-[calc(16px*var(--ui-space-scale,1))]" />
- {current ? t(current.label) : t("library.toolbar.sort")}
- </button>
- </DropdownMenuTrigger>
+ <ToolbarTip label={t("library.toolbar.sort")}>
+ <DropdownMenuTrigger asChild>
+ <button
+ type="button"
+ className="flex h-9 shrink-0 items-center gap-1.5 rounded-full px-3 text-ui-14 text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring data-open:bg-muted data-open:text-foreground dark:text-foreground/70"
+ >
+ <HugeiconsIcon icon={SortIcon} strokeWidth={1.75} className="size-[calc(16px*var(--ui-space-scale,1))]" />
+ {current ? t(current.label) : t("library.toolbar.sort")}
+ </button>
+ </DropdownMenuTrigger>
+ </ToolbarTip>
<DropdownMenuContent align="start" sideOffset={4} className="library-actions-menu w-max min-w-44">
<DropdownMenuLabel className={MENU_LABEL}>{t("library.toolbar.sort")}</DropdownMenuLabel>
{options.map((option) => (
@@ -373,6 +378,7 @@ export function ChatsToolbar({
onNewChat,
onNewProject,
onNewSection,
+ showView = true,
}: {
filters?: ChatFilters;
onFiltersChange: (next: ChatFilters) => void;
@@ -386,24 +392,26 @@ export function ChatsToolbar({
onNewChat: () => void;
onNewProject: () => void;
onNewSection: () => void;
+ showView?: boolean;
}) {
const t = useT();
return (
<div className="flex min-w-0 items-center gap-2">
{filters && <FilterMenu filters={filters} onChange={onFiltersChange} facets={facets} />}
{sort}
- {VIEW_OPTIONS.map(({ value, label, icon }) => (
- <button
- key={value}
- type="button"
- aria-label={t(label)}
- data-active={view === value}
- aria-pressed={view === value}
- onClick={() => onViewChange(value)}
- className={ROUND_BUTTON}
- >
- <HugeiconsIcon icon={icon} strokeWidth={1.75} className="size-5" />
- </button>
+ {showView && VIEW_OPTIONS.map(({ value, label, tip, icon }) => (
+ <ToolbarTip key={value} label={t(tip)}>
+ <button
+ type="button"
+ aria-label={t(label)}
+ data-active={view === value}
+ aria-pressed={view === value}
+ onClick={() => onViewChange(value)}
+ className={ROUND_BUTTON}
+ >
+ <HugeiconsIcon icon={icon} strokeWidth={1.75} className="size-5" />
+ </button>
+ </ToolbarTip>
))}
<label className="relative ml-2 flex h-9 w-[clamp(10rem,calc(100cqw-30rem),min(15rem,24vw))] min-w-40 items-center rounded-full border border-border px-4 focus-within:border-ring dark:border-transparent dark:bg-card dark:focus-within:border-ring">
<HugeiconsIcon
diff --git a/studio/frontend/src/features/library/components/library-actions.tsx b/studio/frontend/src/features/library/components/library-actions.tsx
index 3997fa49bee..8e84b106a7a 100644
--- a/studio/frontend/src/features/library/components/library-actions.tsx
+++ b/studio/frontend/src/features/library/components/library-actions.tsx
@@ -18,11 +18,9 @@ import {
Delete02Icon,
Download01Icon,
Edit03Icon,
- Folder01Icon,
- FolderAddIcon,
- FolderExportIcon,
MoreHorizontalIcon,
} from "@hugeicons/core-free-icons";
+import { Folder01Icon, FolderAddIcon, FolderClosedIcon, FolderExportIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { MessageCircleIcon, StarPointedIcon } from "@/lib/hugeicons-derived";
import { useMemo, useState } from "react";
@@ -180,7 +178,7 @@ export function LibraryActionsMenu({
onSelect={() => actions.moveTo(target, folder.id)}
style={{ paddingLeft: `${12 + depth * 14}px` }}
>
- <HugeiconsIcon icon={Folder01Icon} strokeWidth={1.75} className={ICON} />
+ <HugeiconsIcon icon={FolderClosedIcon} strokeWidth={1.75} className={ICON} />
<span className="truncate">{folder.name}</span>
</DropdownMenuItem>
))}
diff --git a/studio/frontend/src/features/library/components/library-cards.tsx b/studio/frontend/src/features/library/components/library-cards.tsx
index 324971636f0..ae8a29e5edf 100644
--- a/studio/frontend/src/features/library/components/library-cards.tsx
+++ b/studio/frontend/src/features/library/components/library-cards.tsx
@@ -4,7 +4,7 @@
import { Checkbox } from "@/components/ui/checkbox";
import { useLocale, useT } from "@/i18n";
import { cn } from "@/lib/utils";
-import { Folder01Icon } from "@hugeicons/core-free-icons";
+import { FolderClosedIcon } from "@/lib/folder-icons";
import { PauseIcon } from "@/lib/media-control-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { type ReactNode, type RefObject, useContext, useRef, useState } from "react";
@@ -304,7 +304,8 @@ function FolderCard({
className="flex aspect-square items-center justify-center"
style={{ minHeight: CARD_MIN_HEIGHT }}
>
- <HugeiconsIcon icon={Folder01Icon} strokeWidth={1.5} className={CARD_ICON_CLASS} />
+ {/* 4.4's folder draws smaller: 30px matches 4.1's at 28px. */}
+ <HugeiconsIcon icon={FolderClosedIcon} strokeWidth={1.5} className="size-7.5" />
</div>
</CardFrame>
<button
@@ -365,22 +366,18 @@ export function CardGrid({
}) {
const container = useRef<HTMLDivElement>(null);
const columns = useCardColumns(container);
- const grid = (
+ return (
<div
ref={container}
className={cn("grid gap-x-5", CARD_ROW_GAP)}
style={{
gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`,
- gridAutoRows: minRowHeight
- ? `max(${minRowHeight}, calc((100cqw - ${columns - 1} * var(--spacing) * 5) / ${columns}))`
- : undefined,
+ gridAutoRows: minRowHeight ? `minmax(${minRowHeight}, auto)` : undefined,
}}
>
{children}
</div>
);
- // cqw resolves against an ancestor container, never the grid itself.
- return minRowHeight ? <div className="@container">{grid}</div> : grid;
}
export function FolderGrid({
diff --git a/studio/frontend/src/features/library/components/library-dialogs.tsx b/studio/frontend/src/features/library/components/library-dialogs.tsx
index 56e62dbd897..97433f00c4b 100644
--- a/studio/frontend/src/features/library/components/library-dialogs.tsx
+++ b/studio/frontend/src/features/library/components/library-dialogs.tsx
@@ -103,7 +103,7 @@ function NameForm({
<Button type="button" variant="ghost" onClick={onClose}>
{t("common.cancel")}
</Button>
- <Button type="submit" disabled={!trimmed || busy}>
+ <Button type="submit" variant="dark" disabled={!trimmed || busy}>
{submitLabel}
</Button>
</DialogFooter>
diff --git a/studio/frontend/src/features/library/components/library-list.tsx b/studio/frontend/src/features/library/components/library-list.tsx
index a2951ddb054..d6b32342404 100644
--- a/studio/frontend/src/features/library/components/library-list.tsx
+++ b/studio/frontend/src/features/library/components/library-list.tsx
@@ -4,7 +4,7 @@
import { Checkbox } from "@/components/ui/checkbox";
import { type TranslationKey, useLocale, useT } from "@/i18n";
import { cn } from "@/lib/utils";
-import { Folder01Icon } from "@hugeicons/core-free-icons";
+import { FolderClosedIcon } from "@/lib/folder-icons";
import { StarPointedIcon } from "@/lib/hugeicons-derived";
import { HugeiconsIcon } from "@hugeicons/react";
import type { ReactNode } from "react";
@@ -258,7 +258,7 @@ export function LibraryList({
onOpen={() => actions.openFolder(folder.id)}
tile={
<div className="flex size-9 shrink-0 items-center justify-center rounded-md border border-border/60">
- <HugeiconsIcon icon={Folder01Icon} strokeWidth={1.5} className="size-5" />
+ <HugeiconsIcon icon={FolderClosedIcon} strokeWidth={1.5} className="size-5" />
</div>
}
name={
diff --git a/studio/frontend/src/features/library/components/library-toolbar.tsx b/studio/frontend/src/features/library/components/library-toolbar.tsx
index 9eebe2a97a2..a2786443189 100644
--- a/studio/frontend/src/features/library/components/library-toolbar.tsx
+++ b/studio/frontend/src/features/library/components/library-toolbar.tsx
@@ -9,12 +9,12 @@ import {
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
+import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
import {
AiEditingIcon,
FileEmpty02Icon,
FilterMailIcon,
FlimSlateIcon,
- Folder01Icon,
GridViewIcon,
ImageIcon,
LeftToRightListBulletIcon,
@@ -25,12 +25,14 @@ import {
Settings02Icon,
Upload01Icon,
} from "@hugeicons/core-free-icons";
+import { FolderClosedIcon } from "@/lib/folder-icons";
import { type TranslationKey, useT } from "@/i18n";
import { ChevronDownStandardIcon } from "@/lib/chevron-icons";
import { AiSpeechIcon, SheetIcon, TestTubeOutlineIcon } from "@/lib/hugeicons-derived";
import { cn } from "@/lib/utils";
import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";
-import { ArrowDownUpIcon } from "lucide-react";
+import { SortIcon } from "@/lib/sort-icon";
+import type { ReactNode } from "react";
import type { LibrarySource } from "../api";
import type { LibraryAudioWorkflow } from "../audio-items";
import type { LibraryTypeFilter } from "../file-kind";
@@ -42,6 +44,15 @@ const ICON = "size-icon";
export const ROUND_BUTTON =
"flex size-9 shrink-0 items-center justify-center rounded-full text-foreground outline-none transition-colors hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring data-[active=true]:bg-white data-[active=true]:shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] dark:data-[active=true]:bg-card dark:data-[active=true]:shadow-none data-open:bg-muted";
+export function ToolbarTip({ label, children }: { label: string; children: ReactNode }) {
+ return (
+ <Tooltip>
+ <TooltipTrigger asChild={true}>{children}</TooltipTrigger>
+ <TooltipContent>{label}</TooltipContent>
+ </Tooltip>
+ );
+}
+
interface MenuOption<T extends string> {
value: T;
label: TranslationKey;
@@ -64,9 +75,9 @@ const TYPE_OPTIONS: MenuOption<LibraryTypeFilter>[] = [
];
export const VIEW_OPTIONS = [
- { value: "grid", label: "library.toolbar.gridView", icon: GridViewIcon },
- { value: "list", label: "library.toolbar.listView", icon: LeftToRightListBulletIcon },
-] satisfies MenuOption<LibraryView>[];
+ { value: "grid", label: "library.toolbar.gridView", tip: "library.toolbar.grid", icon: GridViewIcon },
+ { value: "list", label: "library.toolbar.listView", tip: "library.toolbar.list", icon: LeftToRightListBulletIcon },
+] satisfies (MenuOption<LibraryView> & { tip: TranslationKey })[];
export type LibrarySortChoice = "default" | LibrarySortKey;
@@ -131,16 +142,18 @@ function FilterMenu({
return (
<DropdownMenu>
- <DropdownMenuTrigger asChild>
- <button
- type="button"
- aria-label={t("library.toolbar.filter")}
- data-active={filtersActive(filters)}
- className={ROUND_BUTTON}
- >
- <HugeiconsIcon icon={FilterMailIcon} strokeWidth={1.75} className="size-5" />
- </button>
- </DropdownMenuTrigger>
+ <ToolbarTip label={t("library.toolbar.filter")}>
+ <DropdownMenuTrigger asChild>
+ <button
+ type="button"
+ aria-label={t("library.toolbar.filter")}
+ data-active={filtersActive(filters)}
+ className={ROUND_BUTTON}
+ >
+ <HugeiconsIcon icon={FilterMailIcon} strokeWidth={1.75} className="size-5" />
+ </button>
+ </DropdownMenuTrigger>
+ </ToolbarTip>
<DropdownMenuContent align="end" sideOffset={4} className="library-menu w-max min-w-36">
{showTypes && (
<>
@@ -237,15 +250,17 @@ function SortMenu({
const current = options.find((option) => option.value === value);
return (
<DropdownMenu>
- <DropdownMenuTrigger asChild>
- <button
- type="button"
- className="flex h-9 shrink-0 items-center gap-1.5 rounded-full px-3 text-ui-14 text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring data-open:bg-muted data-open:text-foreground dark:text-foreground/70"
- >
- <ArrowDownUpIcon strokeWidth={1.75} className="size-[calc(16px*var(--ui-space-scale,1))]" />
- {value === "default" || !current ? t("library.toolbar.sort") : t(current.label)}
- </button>
- </DropdownMenuTrigger>
+ <ToolbarTip label={t("library.toolbar.sort")}>
+ <DropdownMenuTrigger asChild>
+ <button
+ type="button"
+ className="flex h-9 shrink-0 items-center gap-1.5 rounded-full px-3 text-ui-14 text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring data-open:bg-muted data-open:text-foreground dark:text-foreground/70"
+ >
+ <HugeiconsIcon icon={SortIcon} strokeWidth={1.75} className="size-[calc(16px*var(--ui-space-scale,1))]" />
+ {value === "default" || !current ? t("library.toolbar.sort") : t(current.label)}
+ </button>
+ </DropdownMenuTrigger>
+ </ToolbarTip>
<DropdownMenuContent align="start" sideOffset={4} className="library-menu w-max min-w-36">
{options.map(({ value: option, label }) => (
<SortRadio
@@ -290,7 +305,7 @@ const NEW_OPTIONS: MenuOption<NewAction>[] = [
{ value: "video", label: "library.create.video", icon: FlimSlateIcon },
{ value: "audio", label: "library.create.audio", icon: AiSpeechIcon },
{ value: "model", label: "library.create.model", icon: TestTubeOutlineIcon },
- { value: "folder", label: "library.create.folder", icon: Folder01Icon },
+ { value: "folder", label: "library.create.folder", icon: FolderClosedIcon },
];
function NewMenu({ onSelect }: { onSelect: (action: NewAction) => void }) {
@@ -362,18 +377,19 @@ export function LibraryToolbar({
/>
)}
{sort && <SortMenu {...sort} />}
- {VIEW_OPTIONS.map(({ value, label, icon }) => (
- <button
- key={value}
- type="button"
- aria-label={t(label)}
- data-active={view === value}
- aria-pressed={view === value}
- onClick={() => onViewChange(value)}
- className={ROUND_BUTTON}
- >
- <HugeiconsIcon icon={icon} strokeWidth={1.75} className="size-5" />
- </button>
+ {VIEW_OPTIONS.map(({ value, label, tip, icon }) => (
+ <ToolbarTip key={value} label={t(tip)}>
+ <button
+ type="button"
+ aria-label={t(label)}
+ data-active={view === value}
+ aria-pressed={view === value}
+ onClick={() => onViewChange(value)}
+ className={ROUND_BUTTON}
+ >
+ <HugeiconsIcon icon={icon} strokeWidth={1.75} className="size-5" />
+ </button>
+ </ToolbarTip>
))}
<label className="relative ml-2 flex h-9 w-[clamp(10rem,calc(100cqw-30rem),min(15rem,24vw))] min-w-40 items-center rounded-full border border-border px-4 focus-within:border-ring dark:border-transparent dark:bg-card dark:focus-within:border-ring">
<HugeiconsIcon
@@ -390,14 +406,16 @@ export function LibraryToolbar({
/>
</label>
<NewMenu onSelect={onNew} />
- <button
- type="button"
- aria-label={t("library.toolbar.settings")}
- onClick={onSettings}
- className={cn(ROUND_BUTTON, "text-muted-foreground hover:text-foreground dark:text-foreground")}
- >
- <HugeiconsIcon icon={Settings02Icon} strokeWidth={1.75} className="size-5" />
- </button>
+ <ToolbarTip label={t("library.toolbar.settings")}>
+ <button
+ type="button"
+ aria-label={t("library.toolbar.settings")}
+ onClick={onSettings}
+ className={cn(ROUND_BUTTON, "text-muted-foreground hover:text-foreground dark:text-foreground")}
+ >
+ <HugeiconsIcon icon={Settings02Icon} strokeWidth={1.75} className="size-5" />
+ </button>
+ </ToolbarTip>
</div>
);
}
diff --git a/studio/frontend/src/features/library/library-page.tsx b/studio/frontend/src/features/library/library-page.tsx
index a415604bf92..acb3c944096 100644
--- a/studio/frontend/src/features/library/library-page.tsx
+++ b/studio/frontend/src/features/library/library-page.tsx
@@ -28,13 +28,12 @@ import {
FlimSlateIcon,
Delete02Icon,
Download01Icon,
- Folder01Icon,
- FolderExportIcon,
ImageIcon,
MoreHorizontalIcon,
PencilEdit02Icon,
Upload01Icon,
} from "@hugeicons/core-free-icons";
+import { Folder01Icon, FolderClosedIcon, FolderExportIcon } from "@/lib/folder-icons";
import { ChevronRightStandardIcon } from "@/lib/chevron-icons";
import { AiSpeechIcon, MessageCircleIcon, StarPointedIcon, TestTubeOutlineIcon } from "@/lib/hugeicons-derived";
import { HugeiconsIcon } from "@hugeicons/react";
@@ -107,7 +106,7 @@ type EmptyCopy = [icon: typeof Folder01Icon, title: TranslationKey, description:
const EMPTY_COPY: Record<LibraryTab, EmptyCopy> = {
suggested: [Upload01Icon, "library.empty.suggestedTitle", "library.empty.suggestedDescription"],
favorites: [StarPointedIcon, "library.empty.favoritesTitle", "library.empty.favoritesDescription"],
- folders: [Folder01Icon, "library.empty.foldersTitle", "library.empty.foldersDescription"],
+ folders: [FolderClosedIcon, "library.empty.foldersTitle", "library.empty.foldersDescription"],
images: [ImageIcon, "library.empty.imagesTitle", "library.empty.imagesDescription"],
videos: [FlimSlateIcon, "library.empty.videosTitle", "library.empty.videosDescription"],
audio: [AiSpeechIcon, "library.empty.audioTitle", "library.empty.audioDescription"],
@@ -1160,7 +1159,7 @@ function LibraryView({ search }: { search: LibrarySearch }) {
</DropdownMenuItem>
{bulkDestinations().map((folder) => (
<DropdownMenuItem key={folder.id} onSelect={() => bulkMove(folder.id)}>
- <HugeiconsIcon icon={Folder01Icon} strokeWidth={1.75} className="size-icon" />
+ <HugeiconsIcon icon={FolderClosedIcon} strokeWidth={1.75} className="size-icon" />
<span className="truncate">{folder.name}</span>
</DropdownMenuItem>
))}
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/folder-browser.tsx b/studio/frontend/src/features/model-picker/components/model-selector/folder-browser.tsx
index cab62cf937e..303e30a7435 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/folder-browser.tsx
+++ b/studio/frontend/src/features/model-picker/components/model-selector/folder-browser.tsx
@@ -19,7 +19,7 @@ import { type BrowseFoldersResponse, browseFolders } from "@/features/chat";
import { useT } from "@/i18n";
import { ChevronUpStandardIcon } from "@/lib/chevron-icons";
import { cn } from "@/lib/utils";
-import { Folder02Icon } from "@hugeicons/core-free-icons";
+import { Folder02Icon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/model-row-menu.tsx b/studio/frontend/src/features/model-picker/components/model-selector/model-row-menu.tsx
index be3188aafbd..488c120b508 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/model-row-menu.tsx
+++ b/studio/frontend/src/features/model-picker/components/model-selector/model-row-menu.tsx
@@ -25,11 +25,11 @@ import { cn } from "@/lib/utils";
import { RefreshGlyph } from "@/lib/refresh-icon";
import {
Delete02Icon,
- Folder01Icon,
MoreVerticalIcon,
PinIcon,
PinOffIcon,
} from "@hugeicons/core-free-icons";
+import { Folder01Icon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import {
type ReactNode,
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
index 666b4ab36fc..47c2eac0e3d 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
+++ b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
@@ -132,12 +132,10 @@ import { cn, formatCompact } from "@/lib/utils";
import type { VramFitStatus } from "@/lib/vram";
import { checkVramFit, estimateLoadingVram } from "@/lib/vram";
import {
- ArrowUpDownIcon,
Cancel01Icon,
DashboardCircleIcon,
Flag01Icon,
FlimSlateIcon,
- Folder02Icon,
HelpCircleIcon,
ImageIcon,
InformationCircleIcon,
@@ -148,10 +146,12 @@ import {
Settings02Icon,
ViewIcon,
} from "@hugeicons/core-free-icons";
+import { Folder02Icon } from "@/lib/folder-icons";
import { Copy01Icon } from "@/lib/copy-icon";
import { useT } from "@/i18n";
import { AiSpeechIcon } from "@/lib/hugeicons-derived";
import { HugeiconsIcon } from "@hugeicons/react";
+import { SortIcon } from "@/lib/sort-icon";
import { useNavigate } from "@tanstack/react-router";
import {
type Dispatch,
@@ -5993,7 +5993,7 @@ export function HubModelPicker({
const sortTriggerContent = (label: ReactNode) => (
<span className="flex items-center gap-1">
<HugeiconsIcon
- icon={ArrowUpDownIcon}
+ icon={SortIcon}
strokeWidth={1.75}
className="size-3.5 shrink-0 text-foreground"
/>
diff --git a/studio/frontend/src/features/rag/components/document-status-chip.tsx b/studio/frontend/src/features/rag/components/document-status-chip.tsx
index 89b80e61115..4c755f3bd15 100644
--- a/studio/frontend/src/features/rag/components/document-status-chip.tsx
+++ b/studio/frontend/src/features/rag/components/document-status-chip.tsx
@@ -4,7 +4,8 @@
import { Badge } from "@/components/assistant-ui/badge";
import { Spinner } from "@/components/ui/spinner";
import { cn } from "@/lib/utils";
-import { FileEmpty02Icon, Folder02Icon, Cancel01Icon } from "@hugeicons/core-free-icons";
+import { FileEmpty02Icon, Cancel01Icon } from "@hugeicons/core-free-icons";
+import { Folder02Icon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import type { ReactElement, ReactNode } from "react";
import type { DocumentStatus } from "../types/rag";
diff --git a/studio/frontend/src/features/rag/components/linked-folders-manager.tsx b/studio/frontend/src/features/rag/components/linked-folders-manager.tsx
index 03b8f9a67e2..12f7db22586 100644
--- a/studio/frontend/src/features/rag/components/linked-folders-manager.tsx
+++ b/studio/frontend/src/features/rag/components/linked-folders-manager.tsx
@@ -25,7 +25,8 @@ import { cn } from "@/lib/utils";
import { isTauri } from "@/lib/api-base";
import { SOURCE_FOLDER_DESCRIPTION, sourceFolderUnavailableMessage } from "./source-folder-copy";
import { RefreshGlyph } from "@/lib/refresh-icon";
-import { FolderAddIcon, FolderSyncIcon, MoreHorizontalIcon } from "@hugeicons/core-free-icons";
+import { MoreHorizontalIcon } from "@hugeicons/core-free-icons";
+import { FolderAddIcon, FolderSyncIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useState } from "react";
import type {
diff --git a/studio/frontend/src/features/rag/components/project-folder-picker.tsx b/studio/frontend/src/features/rag/components/project-folder-picker.tsx
index c363edf5bd0..0c5700e9393 100644
--- a/studio/frontend/src/features/rag/components/project-folder-picker.tsx
+++ b/studio/frontend/src/features/rag/components/project-folder-picker.tsx
@@ -12,9 +12,8 @@ import { toast } from "@/lib/toast";
import { cn } from "@/lib/utils";
import {
Cancel01Icon,
- FolderAddIcon,
- FolderSyncIcon,
} from "@hugeicons/core-free-icons";
+import { FolderAddIcon, FolderSyncIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import {
type Dispatch,
diff --git a/studio/frontend/src/features/rag/components/project-sources-panel.tsx b/studio/frontend/src/features/rag/components/project-sources-panel.tsx
index bd2dcbb8d45..d2e8b1359fe 100644
--- a/studio/frontend/src/features/rag/components/project-sources-panel.tsx
+++ b/studio/frontend/src/features/rag/components/project-sources-panel.tsx
@@ -8,7 +8,8 @@ import { isTauri } from "@/lib/api-base";
import { MAX_FOLDER_FILES, openFolderPicker } from "@/lib/dropped-folders";
import { toast } from "@/lib/toast";
import { cn } from "@/lib/utils";
-import { FolderAddIcon, PlusSignIcon } from "@hugeicons/core-free-icons";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { FolderAddIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useCallback, useMemo, useRef } from "react";
import {
diff --git a/studio/frontend/src/features/rag/components/thread-documents-bar.tsx b/studio/frontend/src/features/rag/components/thread-documents-bar.tsx
index 02e77f93175..21827498083 100644
--- a/studio/frontend/src/features/rag/components/thread-documents-bar.tsx
+++ b/studio/frontend/src/features/rag/components/thread-documents-bar.tsx
@@ -16,11 +16,10 @@ import {
import { HugeiconsIcon } from "@hugeicons/react";
import {
AttachmentIcon,
- Folder02Icon,
- FolderAttachmentIcon,
PlusSignIcon,
Cancel01Icon,
} from "@hugeicons/core-free-icons";
+import { Folder02Icon, FolderAttachmentIcon } from "@/lib/folder-icons";
import { FileSearchIcon } from "@/lib/hugeicons-derived";
import {
AttachmentKindIcon,
diff --git a/studio/frontend/src/features/scheduled-tasks/task-dialog.tsx b/studio/frontend/src/features/scheduled-tasks/task-dialog.tsx
index 0fbdda00d48..7534ed456e3 100644
--- a/studio/frontend/src/features/scheduled-tasks/task-dialog.tsx
+++ b/studio/frontend/src/features/scheduled-tasks/task-dialog.tsx
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
-import { Folder01Icon, InformationCircleIcon } from "@hugeicons/core-free-icons";
+import { InformationCircleIcon } from "@hugeicons/core-free-icons";
+import { Folder01Icon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { type ReactNode, useId, useMemo, useRef, useState } from "react";
import { Button } from "@/components/ui/button";
diff --git a/studio/frontend/src/features/settings/components/appearance-custom-controls.tsx b/studio/frontend/src/features/settings/components/appearance-custom-controls.tsx
index 97aa2de19dd..94fea7a8243 100644
--- a/studio/frontend/src/features/settings/components/appearance-custom-controls.tsx
+++ b/studio/frontend/src/features/settings/components/appearance-custom-controls.tsx
@@ -32,9 +32,9 @@ import { toast } from "@/lib/toast";
import { cn } from "@/lib/utils";
import {
Cancel01Icon,
- Folder01Icon,
Upload01Icon,
} from "@hugeicons/core-free-icons";
+import { Folder01Icon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { motion, useReducedMotionConfig } from "motion/react";
import {
diff --git a/studio/frontend/src/features/settings/components/data-library-controls.tsx b/studio/frontend/src/features/settings/components/data-library-controls.tsx
index d8b366dd93b..b273c77acb0 100644
--- a/studio/frontend/src/features/settings/components/data-library-controls.tsx
+++ b/studio/frontend/src/features/settings/components/data-library-controls.tsx
@@ -5,11 +5,11 @@ import { useMemo, useState, type ReactNode } from "react";
import { useLocale, useT, type TranslationKey } from "@/i18n";
import { useLibraryProjectLabels } from "./use-library-project-labels";
import {
- FilterHorizontalIcon,
- Folder01Icon,
+ FilterMailIcon,
Search01Icon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import {
@@ -106,7 +106,7 @@ export function LibraryToolbar({
className="h-10 gap-2 rounded-full"
aria-label={t("settings.data.library.filterSort")}
>
- <HugeiconsIcon icon={FilterHorizontalIcon} className="size-4 shrink-0" />
+ <HugeiconsIcon icon={FilterMailIcon} className="size-4 shrink-0" />
{projects
? t(TYPE_LABELS[filters.type])
: filters.sort === "default"
@@ -167,7 +167,7 @@ export function LibraryToolbar({
className="h-10 max-w-full gap-2 rounded-full"
aria-label={t("settings.data.library.filterProject")}
>
- <HugeiconsIcon icon={Folder01Icon} className="size-4 shrink-0" />
+ <HugeiconsIcon icon={ProjectIcon} className="size-4 shrink-0" />
<span className="max-w-40 truncate">{projectLabel}</span>
<HugeiconsIcon
icon={ChevronDownStandardIcon}
@@ -277,7 +277,7 @@ export function ChatLibraryGroups<T extends LibraryItem>({
<section key={group.id} className="space-y-2">
<div className="flex items-center gap-2 px-1 text-sm">
<HugeiconsIcon
- icon={Folder01Icon}
+ icon={ProjectIcon}
className="size-4 shrink-0 text-muted-foreground"
/>
<h3
diff --git a/studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx b/studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx
index 008de53951a..15a437cfbc1 100644
--- a/studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx
+++ b/studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx
@@ -7,7 +7,6 @@ import {
Download01Icon,
DragDropVerticalIcon,
FlimSlateIcon,
- Folder01Icon,
Image01Icon,
LibrariesIcon,
MoreHorizontalIcon,
@@ -16,6 +15,7 @@ import {
Clock01Icon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { Reorder, useDragControls } from "motion/react";
import { Switch } from "@/components/ui/switch";
import { AiSpeechIcon, TestTubeOutlineIcon } from "@/lib/hugeicons-derived";
@@ -35,7 +35,7 @@ const ITEM_META: Record<
SidebarNavItemPref["id"],
{ icon: IconSvgElement; labelKey: TranslationKey }
> = {
- projects: { icon: Folder01Icon, labelKey: "shell.navigation.projects" },
+ projects: { icon: ProjectIcon, labelKey: "shell.navigation.projects" },
library: { icon: LibrariesIcon, labelKey: "shell.navigation.library" },
hub: { icon: DashboardCircleIcon, labelKey: "shell.navigation.hub" },
images: { icon: Image01Icon, labelKey: "shell.navigation.images" },
diff --git a/studio/frontend/src/features/settings/tabs/chat-tab.tsx b/studio/frontend/src/features/settings/tabs/chat-tab.tsx
index 7c631049bc8..1bd7e8ef5fc 100644
--- a/studio/frontend/src/features/settings/tabs/chat-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/chat-tab.tsx
@@ -33,7 +33,6 @@ import { cn } from "@/lib/utils";
import {
Bookmark02Icon,
Download01Icon,
- Folder01Icon,
LibrariesIcon,
McpServerIcon,
Scroll01Icon,
@@ -41,6 +40,7 @@ import {
} from "@hugeicons/core-free-icons";
import { FileSearchIcon } from "@/lib/hugeicons-derived";
import { HugeiconsIcon } from "@hugeicons/react";
+import { ProjectIcon } from "@/lib/project-icon";
import { CursorInWindowIcon } from "@/lib/browser-use-icon";
import { useNavigate } from "@tanstack/react-router";
import { Columns2Icon } from "lucide-react";
@@ -166,7 +166,7 @@ const PLUS_MENU_SETTINGS: {
labelKey: "shell.navigation.projects",
icon: (
<HugeiconsIcon
- icon={Folder01Icon}
+ icon={ProjectIcon}
strokeWidth={2}
className={PLUS_MENU_ICON_CLASS}
/>
diff --git a/studio/frontend/src/features/settings/tabs/debugging-tab.tsx b/studio/frontend/src/features/settings/tabs/debugging-tab.tsx
index 6c1886a888d..ef9f9347247 100644
--- a/studio/frontend/src/features/settings/tabs/debugging-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/debugging-tab.tsx
@@ -32,13 +32,13 @@ import { cn } from "@/lib/utils";
import {
Alert02Icon,
Download01Icon,
- FolderOpenIcon,
InformationCircleIcon,
Refresh01Icon,
Search01Icon,
Shield01Icon,
TextWrapIcon,
} from "@hugeicons/core-free-icons";
+import { FolderOpenIcon } from "@/lib/folder-icons";
import { Copy01Icon } from "@/lib/copy-icon";
import { HugeiconsIcon } from "@hugeicons/react";
import { ArrowDownIcon } from "lucide-react";
diff --git a/studio/frontend/src/features/studio/sections/progress-section.tsx b/studio/frontend/src/features/studio/sections/progress-section.tsx
index 5e12ec8b7ea..505627450f5 100644
--- a/studio/frontend/src/features/studio/sections/progress-section.tsx
+++ b/studio/frontend/src/features/studio/sections/progress-section.tsx
@@ -44,13 +44,13 @@ import {
Alert02Icon,
ChartAverageIcon,
DashboardSpeed01Icon,
- FolderExportIcon,
Notebook01Icon,
RamMemoryIcon,
TaskDone01Icon,
TemperatureIcon,
ZapIcon,
} from "@hugeicons/core-free-icons";
+import { FolderExportIcon } from "@/lib/folder-icons";
import { StopIcon } from "@/lib/media-control-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { Link, useNavigate } from "@tanstack/react-router";
diff --git a/studio/frontend/src/features/train-model-picker/components/train-model-picker-lists.tsx b/studio/frontend/src/features/train-model-picker/components/train-model-picker-lists.tsx
index bd384b12eaf..49995575928 100644
--- a/studio/frontend/src/features/train-model-picker/components/train-model-picker-lists.tsx
+++ b/studio/frontend/src/features/train-model-picker/components/train-model-picker-lists.tsx
@@ -19,7 +19,7 @@ import {
import { useT } from "@/i18n";
import { cn } from "@/lib/utils";
import type { VramFitStatus } from "@/lib/vram";
-import { FolderSearchIcon } from "@hugeicons/core-free-icons";
+import { FolderSearchIcon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import type { Ref } from "react";
import type { TrainModelDeviceItem } from "./train-model-picker-view-model";
diff --git a/studio/frontend/src/features/video/video-page.tsx b/studio/frontend/src/features/video/video-page.tsx
index 9cc7e63040e..4dbc4528840 100644
--- a/studio/frontend/src/features/video/video-page.tsx
+++ b/studio/frontend/src/features/video/video-page.tsx
@@ -4482,8 +4482,8 @@ function VideoGenerator({
) : (
<>
<Button
- variant="dark"
- className="relative z-10 text-ui-13 disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100"
+ variant="primary"
+ className="relative z-10 h-11 px-8 text-ui-14 bg-control-accent text-control-accent-foreground hover:bg-control-accent/85 disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100"
onClick={handleGenerate}
disabled={busy !== null || !status?.loaded}
>
diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.ts
index 87b1af9558a..1c20dae1cbf 100644
--- a/studio/frontend/src/i18n/locales/ar.ts
+++ b/studio/frontend/src/i18n/locales/ar.ts
@@ -4542,8 +4542,6 @@ export const ar = {
empty: {
chatsTitle: "لا توجد محادثات بعد",
chatsDescription: "تظهر محادثاتك هنا، منفصلة عن ملفاتك.",
- projectsTitle: "لا توجد مشاريع بعد",
- projectsDescription: "تجمع المشاريع المحادثات المرتبطة وتشارك التعليمات بينها.",
archivedTitle: "لا يوجد شيء مؤرشف",
archivedDescription: "تظهر هنا المحادثات التي تؤرشفها.",
sectionsTitle: "لا توجد أقسام بعد",
@@ -4673,6 +4671,8 @@ export const ar = {
pdfs: "ملفات PDF",
gridView: "عرض الشبكة",
listView: "عرض القائمة",
+ grid: "شبكة",
+ list: "قائمة",
settings: "إعدادات المكتبة",
sort: "الترتيب",
sortDefault: "الترتيب الافتراضي",
@@ -4970,4 +4970,61 @@ export const ar = {
reconnecting: "جارٍ إعادة الاتصال...",
},
},
+ projectsPage: {
+ title: "المشاريع",
+ search: "البحث في المشاريع",
+ importExport: "استيراد / تصدير المشاريع",
+ importChatsAction: "استيراد المحادثات…",
+ exportAllProjects: "تصدير كل المشاريع",
+ exportProjectsAndRecents: "تصدير المشاريع + الأحدث",
+ combined: "مجمّع",
+ perChat: "لكل محادثة",
+ newProject: "مشروع جديد",
+ name: "الاسم",
+ updated: "آخر تحديث",
+ newestFirst: "الأحدث أولاً",
+ oldestFirst: "الأقدم أولاً",
+ today: "اليوم",
+ yesterday: "أمس",
+ emptyDescription: "يجمع المشروع المحادثات ذات الصلة معًا، مع تعليمات ومصادر مشتركة يمكن لكل محادثة فيه استخدامها.",
+ createFirst: "أنشئ مشروعك الأول",
+ noMatches: "لا توجد مشاريع تطابق بحثك.",
+ clearSearch: "مسح البحث",
+ showChats: "إظهار المحادثات",
+ hideChats: "إخفاء المحادثات",
+ pinProject: "تثبيت المشروع",
+ unpinProject: "إلغاء تثبيت المشروع",
+ newChatInProject: "محادثة جديدة في المشروع",
+ projectOptions: "خيارات المشروع",
+ loadChatsFailed: "تعذّر تحميل المحادثات. إعادة المحاولة",
+ refreshChatsFailed: "تعذّر تحديث المحادثات. إعادة المحاولة",
+ noChats: "لا توجد محادثات",
+ unread: "غير مقروءة",
+ pinChat: "تثبيت المحادثة",
+ unpinChat: "إلغاء تثبيت المحادثة",
+ chatOptions: "خيارات المحادثة",
+ exportAllChats: "تصدير كل المحادثات…",
+ archive: "أرشفة",
+ renameChat: "إعادة تسمية المحادثة",
+ chatName: "اسم المحادثة",
+ deleteChat: "حذف المحادثة",
+ deleteChatDescription: "هل تريد بالتأكيد حذف {name}؟ ستُحذف رسائلها نهائيًا.",
+ importChats: "استيراد المحادثات",
+ importDestination: "اختر مكان استيراد {name}:",
+ selectDestination: "اختر الوجهة",
+ recents: "الأحدث",
+ import: "استيراد",
+ deleteProject: "حذف المشروع",
+ deleteProjectDescription: "هل تريد بالتأكيد حذف {name}؟ ستُحذف محادثاته نهائيًا.",
+ deleteProjectFiles: "ستتم إزالة مجلد عمل المشروع من القرص.",
+ deleteAll: "حذف الكل",
+ projectFallback: "مشروع",
+ importFailed: "فشل الاستيراد.",
+ nothingToExport: "لا توجد محادثات للتصدير.",
+ exportFailed: "فشل التصدير.",
+ renameChatFailed: "تعذّرت إعادة تسمية المحادثة",
+ archiveChatFailed: "تعذّرت أرشفة المحادثة",
+ deleteChatFailed: "تعذّر حذف المحادثة",
+ deleteProjectFailed: "تعذّر حذف المشروع",
+ },
} satisfies DeepPartialMessageTree<typeof en>;
diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.ts
index c9750ef028d..0a24c7df3e6 100644
--- a/studio/frontend/src/i18n/locales/de.ts
+++ b/studio/frontend/src/i18n/locales/de.ts
@@ -4617,8 +4617,6 @@ export const de = {
empty: {
chatsTitle: "Noch keine Chats",
chatsDescription: "Deine Unterhaltungen erscheinen hier, getrennt von deinen Dateien.",
- projectsTitle: "Noch keine Projekte",
- projectsDescription: "Projekte bündeln zusammengehörige Chats mit gemeinsamen Anweisungen.",
archivedTitle: "Nichts archiviert",
archivedDescription: "Chats, die du archivierst, erscheinen hier.",
sectionsTitle: "Noch keine Abschnitte",
@@ -4748,6 +4746,8 @@ export const de = {
pdfs: "PDFs",
gridView: "Rasteransicht",
listView: "Listenansicht",
+ grid: "Raster",
+ list: "Liste",
settings: "Bibliothekseinstellungen",
sort: "Sortieren",
sortDefault: "Standardreihenfolge",
@@ -5045,4 +5045,61 @@ export const de = {
reconnecting: "Verbindung wird wiederhergestellt...",
},
},
+ projectsPage: {
+ title: "Projekte",
+ search: "Projekte durchsuchen",
+ importExport: "Projekte importieren / exportieren",
+ importChatsAction: "Chats importieren…",
+ exportAllProjects: "Alle Projekte exportieren",
+ exportProjectsAndRecents: "Projekte + Neueste exportieren",
+ combined: "Zusammengefasst",
+ perChat: "Pro Chat",
+ newProject: "Neues Projekt",
+ name: "Name",
+ updated: "Aktualisiert",
+ newestFirst: "Neueste zuerst",
+ oldestFirst: "Älteste zuerst",
+ today: "Heute",
+ yesterday: "Gestern",
+ emptyDescription: "Ein Projekt hält zusammengehörige Chats beisammen, mit gemeinsamen Anweisungen und Quellen, die jeder Chat darin nutzen kann.",
+ createFirst: "Erstes Projekt erstellen",
+ noMatches: "Keine Projekte entsprechen deiner Suche.",
+ clearSearch: "Suche löschen",
+ showChats: "Chats anzeigen",
+ hideChats: "Chats ausblenden",
+ pinProject: "Projekt anheften",
+ unpinProject: "Projekt lösen",
+ newChatInProject: "Neuer Chat im Projekt",
+ projectOptions: "Projektoptionen",
+ loadChatsFailed: "Chats konnten nicht geladen werden. Erneut versuchen",
+ refreshChatsFailed: "Chats konnten nicht aktualisiert werden. Erneut versuchen",
+ noChats: "Keine Chats",
+ unread: "Ungelesen",
+ pinChat: "Chat anheften",
+ unpinChat: "Chat lösen",
+ chatOptions: "Chat-Optionen",
+ exportAllChats: "Alle Chats exportieren…",
+ archive: "Archivieren",
+ renameChat: "Chat umbenennen",
+ chatName: "Chatname",
+ deleteChat: "Chat löschen",
+ deleteChatDescription: "Möchtest du {name} wirklich löschen? Die Nachrichten werden dauerhaft gelöscht.",
+ importChats: "Chats importieren",
+ importDestination: "Wähle aus, wohin {name} importiert werden soll:",
+ selectDestination: "Ziel auswählen",
+ recents: "Neueste",
+ import: "Importieren",
+ deleteProject: "Projekt löschen",
+ deleteProjectDescription: "Möchtest du {name} wirklich löschen? Die Chats werden dauerhaft gelöscht.",
+ deleteProjectFiles: "Der Arbeitsordner des Projekts wird von der Festplatte entfernt.",
+ deleteAll: "Alles löschen",
+ projectFallback: "Projekt",
+ importFailed: "Import fehlgeschlagen.",
+ nothingToExport: "Keine Unterhaltungen zum Exportieren.",
+ exportFailed: "Export fehlgeschlagen.",
+ renameChatFailed: "Chat konnte nicht umbenannt werden",
+ archiveChatFailed: "Chat konnte nicht archiviert werden",
+ deleteChatFailed: "Chat konnte nicht gelöscht werden",
+ deleteProjectFailed: "Projekt konnte nicht gelöscht werden",
+ },
} satisfies DeepPartialMessageTree<typeof en>;
diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.ts
index 5ceb29ae380..43225e70423 100644
--- a/studio/frontend/src/i18n/locales/en.ts
+++ b/studio/frontend/src/i18n/locales/en.ts
@@ -4621,8 +4621,6 @@ export const en = {
empty: {
chatsTitle: "No chats yet",
chatsDescription: "Your conversations show up here, kept apart from your files.",
- projectsTitle: "No projects yet",
- projectsDescription: "Projects group related chats and share instructions between them.",
archivedTitle: "Nothing archived",
archivedDescription: "Chats you archive show up here.",
sectionsTitle: "No sections yet",
@@ -4752,6 +4750,8 @@ export const en = {
pdfs: "PDFs",
gridView: "Grid view",
listView: "List view",
+ grid: "Grid",
+ list: "List",
settings: "Library settings",
sort: "Sort",
sortDefault: "Default order",
@@ -5065,4 +5065,61 @@ export const en = {
reconnecting: "Reconnecting...",
},
},
+ projectsPage: {
+ title: "Projects",
+ search: "Search projects",
+ importExport: "Import / Export projects",
+ importChatsAction: "Import chats…",
+ exportAllProjects: "Export All Projects",
+ exportProjectsAndRecents: "Export Projects + Recents",
+ combined: "Combined",
+ perChat: "Per chat",
+ newProject: "New project",
+ name: "Name",
+ updated: "Updated",
+ newestFirst: "Newest first",
+ oldestFirst: "Oldest first",
+ today: "Today",
+ yesterday: "Yesterday",
+ emptyDescription: "A project keeps related chats together, with shared instructions and sources every chat in it can use.",
+ createFirst: "Create your first project",
+ noMatches: "No projects match your search.",
+ clearSearch: "Clear search",
+ showChats: "Show chats",
+ hideChats: "Hide chats",
+ pinProject: "Pin project",
+ unpinProject: "Unpin project",
+ newChatInProject: "New chat in project",
+ projectOptions: "Project options",
+ loadChatsFailed: "Could not load chats. Retry",
+ refreshChatsFailed: "Could not refresh chats. Retry",
+ noChats: "No chats",
+ unread: "Unread",
+ pinChat: "Pin chat",
+ unpinChat: "Unpin chat",
+ chatOptions: "Chat options",
+ exportAllChats: "Export all chats…",
+ archive: "Archive",
+ renameChat: "Rename chat",
+ chatName: "Chat name",
+ deleteChat: "Delete chat",
+ deleteChatDescription: "Are you sure you want to delete {name}? Its messages will be permanently deleted.",
+ importChats: "Import chats",
+ importDestination: "Choose where to import {name}:",
+ selectDestination: "Select destination",
+ recents: "Recents",
+ import: "Import",
+ deleteProject: "Delete project",
+ deleteProjectDescription: "Are you sure you want to delete {name}? Its chats will be permanently deleted.",
+ deleteProjectFiles: "The project workspace folder will be removed from disk.",
+ deleteAll: "Delete all",
+ projectFallback: "project",
+ importFailed: "Import failed.",
+ nothingToExport: "No conversations to export.",
+ exportFailed: "Export failed.",
+ renameChatFailed: "Failed to rename chat",
+ archiveChatFailed: "Failed to archive chat",
+ deleteChatFailed: "Failed to delete chat",
+ deleteProjectFailed: "Failed to delete project",
+ },
} as const;
diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.ts
index 3c5703b5634..1854c217a95 100644
--- a/studio/frontend/src/i18n/locales/es.ts
+++ b/studio/frontend/src/i18n/locales/es.ts
@@ -4616,8 +4616,6 @@ export const es = {
empty: {
chatsTitle: "Aún no hay chats",
chatsDescription: "Tus conversaciones aparecen aquí, separadas de tus archivos.",
- projectsTitle: "Aún no hay proyectos",
- projectsDescription: "Los proyectos agrupan chats relacionados y comparten instrucciones entre ellos.",
archivedTitle: "Nada archivado",
archivedDescription: "Los chats que archives aparecen aquí.",
sectionsTitle: "Aún no hay secciones",
@@ -4747,6 +4745,8 @@ export const es = {
pdfs: "PDF",
gridView: "Vista de cuadrícula",
listView: "Vista de lista",
+ grid: "Cuadrícula",
+ list: "Lista",
settings: "Ajustes de la Biblioteca",
sort: "Ordenar",
sortDefault: "Orden predeterminado",
@@ -5044,4 +5044,61 @@ export const es = {
reconnecting: "Reconectando...",
},
},
+ projectsPage: {
+ title: "Proyectos",
+ search: "Buscar proyectos",
+ importExport: "Importar / exportar proyectos",
+ importChatsAction: "Importar chats…",
+ exportAllProjects: "Exportar todos los proyectos",
+ exportProjectsAndRecents: "Exportar proyectos + recientes",
+ combined: "Combinado",
+ perChat: "Por chat",
+ newProject: "Nuevo proyecto",
+ name: "Nombre",
+ updated: "Actualizado",
+ newestFirst: "Más recientes primero",
+ oldestFirst: "Más antiguos primero",
+ today: "Hoy",
+ yesterday: "Ayer",
+ emptyDescription: "Un proyecto reúne chats relacionados, con instrucciones y fuentes compartidas que puede usar cada chat que contiene.",
+ createFirst: "Crea tu primer proyecto",
+ noMatches: "Ningún proyecto coincide con tu búsqueda.",
+ clearSearch: "Borrar búsqueda",
+ showChats: "Mostrar chats",
+ hideChats: "Ocultar chats",
+ pinProject: "Fijar proyecto",
+ unpinProject: "Desfijar proyecto",
+ newChatInProject: "Nuevo chat en el proyecto",
+ projectOptions: "Opciones del proyecto",
+ loadChatsFailed: "No se pudieron cargar los chats. Reintentar",
+ refreshChatsFailed: "No se pudieron actualizar los chats. Reintentar",
+ noChats: "No hay chats",
+ unread: "No leído",
+ pinChat: "Fijar chat",
+ unpinChat: "Desfijar chat",
+ chatOptions: "Opciones del chat",
+ exportAllChats: "Exportar todos los chats…",
+ archive: "Archivar",
+ renameChat: "Renombrar chat",
+ chatName: "Nombre del chat",
+ deleteChat: "Eliminar chat",
+ deleteChatDescription: "¿Seguro que quieres eliminar {name}? Sus mensajes se eliminarán de forma permanente.",
+ importChats: "Importar chats",
+ importDestination: "Elige dónde importar {name}:",
+ selectDestination: "Seleccionar destino",
+ recents: "Recientes",
+ import: "Importar",
+ deleteProject: "Eliminar proyecto",
+ deleteProjectDescription: "¿Seguro que quieres eliminar {name}? Sus chats se eliminarán de forma permanente.",
+ deleteProjectFiles: "La carpeta de trabajo del proyecto se eliminará del disco.",
+ deleteAll: "Eliminar todo",
+ projectFallback: "proyecto",
+ importFailed: "Error al importar.",
+ nothingToExport: "No hay conversaciones para exportar.",
+ exportFailed: "Error al exportar.",
+ renameChatFailed: "No se pudo renombrar el chat",
+ archiveChatFailed: "No se pudo archivar el chat",
+ deleteChatFailed: "No se pudo eliminar el chat",
+ deleteProjectFailed: "No se pudo eliminar el proyecto",
+ },
} satisfies DeepPartialMessageTree<typeof en>;
diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.ts
index e514d0b83d1..dc56abe58ac 100644
--- a/studio/frontend/src/i18n/locales/fr.ts
+++ b/studio/frontend/src/i18n/locales/fr.ts
@@ -4627,8 +4627,6 @@ export const fr = {
empty: {
chatsTitle: "Aucune discussion pour l’instant",
chatsDescription: "Vos conversations apparaissent ici, séparées de vos fichiers.",
- projectsTitle: "Aucun projet pour l’instant",
- projectsDescription: "Les projets regroupent des discussions liées et partagent des instructions entre elles.",
archivedTitle: "Rien d’archivé",
archivedDescription: "Les discussions que vous archivez apparaissent ici.",
sectionsTitle: "Aucune section pour l’instant",
@@ -4758,6 +4756,8 @@ export const fr = {
pdfs: "PDF",
gridView: "Vue en grille",
listView: "Vue en liste",
+ grid: "Grille",
+ list: "Liste",
settings: "Paramètres de la Bibliothèque",
sort: "Trier",
sortDefault: "Ordre par défaut",
@@ -5055,4 +5055,61 @@ export const fr = {
reconnecting: "Reconnexion...",
},
},
+ projectsPage: {
+ title: "Projets",
+ search: "Rechercher des projets",
+ importExport: "Importer / exporter des projets",
+ importChatsAction: "Importer des chats…",
+ exportAllProjects: "Exporter tous les projets",
+ exportProjectsAndRecents: "Exporter projets + récents",
+ combined: "Combiné",
+ perChat: "Par chat",
+ newProject: "Nouveau projet",
+ name: "Nom",
+ updated: "Mis à jour",
+ newestFirst: "Plus récents d'abord",
+ oldestFirst: "Plus anciens d'abord",
+ today: "Aujourd'hui",
+ yesterday: "Hier",
+ emptyDescription: "Un projet regroupe des chats liés, avec des instructions et des sources partagées que chaque chat du projet peut utiliser.",
+ createFirst: "Créer votre premier projet",
+ noMatches: "Aucun projet ne correspond à votre recherche.",
+ clearSearch: "Effacer la recherche",
+ showChats: "Afficher les chats",
+ hideChats: "Masquer les chats",
+ pinProject: "Épingler le projet",
+ unpinProject: "Désépingler le projet",
+ newChatInProject: "Nouveau chat dans le projet",
+ projectOptions: "Options du projet",
+ loadChatsFailed: "Impossible de charger les chats. Réessayer",
+ refreshChatsFailed: "Impossible d'actualiser les chats. Réessayer",
+ noChats: "Aucun chat",
+ unread: "Non lu",
+ pinChat: "Épingler le chat",
+ unpinChat: "Désépingler le chat",
+ chatOptions: "Options du chat",
+ exportAllChats: "Exporter tous les chats…",
+ archive: "Archiver",
+ renameChat: "Renommer le chat",
+ chatName: "Nom du chat",
+ deleteChat: "Supprimer le chat",
+ deleteChatDescription: "Voulez-vous vraiment supprimer {name} ? Ses messages seront définitivement supprimés.",
+ importChats: "Importer des chats",
+ importDestination: "Choisissez où importer {name} :",
+ selectDestination: "Choisir la destination",
+ recents: "Récents",
+ import: "Importer",
+ deleteProject: "Supprimer le projet",
+ deleteProjectDescription: "Voulez-vous vraiment supprimer {name} ? Ses chats seront définitivement supprimés.",
+ deleteProjectFiles: "Le dossier de travail du projet sera supprimé du disque.",
+ deleteAll: "Tout supprimer",
+ projectFallback: "projet",
+ importFailed: "Échec de l'importation.",
+ nothingToExport: "Aucune conversation à exporter.",
+ exportFailed: "Échec de l'exportation.",
+ renameChatFailed: "Impossible de renommer le chat",
+ archiveChatFailed: "Impossible d'archiver le chat",
+ deleteChatFailed: "Impossible de supprimer le chat",
+ deleteProjectFailed: "Impossible de supprimer le projet",
+ },
} satisfies DeepPartialMessageTree<typeof en>;
diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.ts
index 4e4cb25ae20..d96c0013808 100644
--- a/studio/frontend/src/i18n/locales/he.ts
+++ b/studio/frontend/src/i18n/locales/he.ts
@@ -4671,9 +4671,6 @@ export const he = {
empty: {
chatsTitle: "אין עדיין צ'אטים",
chatsDescription: "השיחות שלך יופיעו כאן, בנפרד מהקבצים שלך.",
- projectsTitle: "אין עדיין פרויקטים",
- projectsDescription:
- "פרויקטים מקבצים צ'אטים קשורים ומשתפים ביניהם הוראות.",
archivedTitle: "אין פריטים בארכיון",
archivedDescription: "צ'אטים שתעביר לארכיון יופיעו כאן.",
sectionsTitle: "אין עדיין מדורים",
@@ -4810,6 +4807,8 @@ export const he = {
pdfs: "קובצי PDF",
gridView: "תצוגת רשת",
listView: "תצוגת רשימה",
+ grid: "רשת",
+ list: "רשימה",
settings: "הגדרות הספרייה",
sort: "מיון",
sortDefault: "סדר ברירת מחדל",
@@ -5117,4 +5116,61 @@ export const he = {
reconnecting: "מתחבר מחדש...",
},
},
+ projectsPage: {
+ title: "פרויקטים",
+ search: "חיפוש פרויקטים",
+ importExport: "ייבוא / ייצוא פרויקטים",
+ importChatsAction: "ייבוא צ'אטים…",
+ exportAllProjects: "ייצוא כל הפרויקטים",
+ exportProjectsAndRecents: "ייצוא פרויקטים + אחרונים",
+ combined: "מאוחד",
+ perChat: "לפי צ'אט",
+ newProject: "פרויקט חדש",
+ name: "שם",
+ updated: "עודכן",
+ newestFirst: "החדשים קודם",
+ oldestFirst: "הישנים קודם",
+ today: "היום",
+ yesterday: "אתמול",
+ emptyDescription: "פרויקט מאגד צ'אטים קשורים, עם הוראות ומקורות משותפים שכל צ'אט בו יכול להשתמש בהם.",
+ createFirst: "יצירת הפרויקט הראשון",
+ noMatches: "אין פרויקטים שתואמים לחיפוש.",
+ clearSearch: "ניקוי החיפוש",
+ showChats: "הצגת צ'אטים",
+ hideChats: "הסתרת צ'אטים",
+ pinProject: "הצמדת פרויקט",
+ unpinProject: "ביטול הצמדת פרויקט",
+ newChatInProject: "צ'אט חדש בפרויקט",
+ projectOptions: "אפשרויות פרויקט",
+ loadChatsFailed: "לא ניתן לטעון את הצ'אטים. ניסיון חוזר",
+ refreshChatsFailed: "לא ניתן לרענן את הצ'אטים. ניסיון חוזר",
+ noChats: "אין צ'אטים",
+ unread: "לא נקרא",
+ pinChat: "הצמדת צ'אט",
+ unpinChat: "ביטול הצמדת צ'אט",
+ chatOptions: "אפשרויות צ'אט",
+ exportAllChats: "ייצוא כל הצ'אטים…",
+ archive: "העברה לארכיון",
+ renameChat: "שינוי שם הצ'אט",
+ chatName: "שם הצ'אט",
+ deleteChat: "מחיקת צ'אט",
+ deleteChatDescription: "למחוק את {name}? ההודעות שלו יימחקו לצמיתות.",
+ importChats: "ייבוא צ'אטים",
+ importDestination: "בחרו לאן לייבא את {name}:",
+ selectDestination: "בחירת יעד",
+ recents: "אחרונים",
+ import: "ייבוא",
+ deleteProject: "מחיקת פרויקט",
+ deleteProjectDescription: "למחוק את {name}? הצ'אטים שלו יימחקו לצמיתות.",
+ deleteProjectFiles: "תיקיית העבודה של הפרויקט תוסר מהדיסק.",
+ deleteAll: "מחיקת הכול",
+ projectFallback: "פרויקט",
+ importFailed: "הייבוא נכשל.",
+ nothingToExport: "אין שיחות לייצוא.",
+ exportFailed: "הייצוא נכשל.",
+ renameChatFailed: "לא ניתן לשנות את שם הצ'אט",
+ archiveChatFailed: "לא ניתן להעביר את הצ'אט לארכיון",
+ deleteChatFailed: "לא ניתן למחוק את הצ'אט",
+ deleteProjectFailed: "לא ניתן למחוק את הפרויקט",
+ },
} satisfies DeepPartialMessageTree<typeof en>;
diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.ts
index 14adf11c324..ec7a08d5c07 100644
--- a/studio/frontend/src/i18n/locales/hi.ts
+++ b/studio/frontend/src/i18n/locales/hi.ts
@@ -4553,8 +4553,6 @@ export const hi = {
empty: {
chatsTitle: "अभी तक कोई चैट नहीं",
chatsDescription: "आपकी बातचीत यहाँ दिखती है, आपकी फ़ाइलों से अलग।",
- projectsTitle: "अभी तक कोई प्रोजेक्ट नहीं",
- projectsDescription: "प्रोजेक्ट संबंधित चैट को एक साथ रखते हैं और उनके बीच निर्देश साझा करते हैं।",
archivedTitle: "कुछ भी आर्काइव नहीं",
archivedDescription: "आप जो चैट आर्काइव करते हैं, वे यहाँ दिखती हैं।",
sectionsTitle: "अभी कोई सेक्शन नहीं",
@@ -4684,6 +4682,8 @@ export const hi = {
pdfs: "PDF",
gridView: "ग्रिड व्यू",
listView: "सूची व्यू",
+ grid: "ग्रिड",
+ list: "सूची",
settings: "लाइब्रेरी सेटिंग्स",
sort: "क्रमबद्ध करें",
sortDefault: "डिफ़ॉल्ट क्रम",
@@ -4981,4 +4981,61 @@ export const hi = {
reconnecting: "फिर से कनेक्ट हो रहा है...",
},
},
+ projectsPage: {
+ title: "प्रोजेक्ट",
+ search: "प्रोजेक्ट खोजें",
+ importExport: "प्रोजेक्ट इंपोर्ट / एक्सपोर्ट करें",
+ importChatsAction: "चैट इंपोर्ट करें…",
+ exportAllProjects: "सभी प्रोजेक्ट एक्सपोर्ट करें",
+ exportProjectsAndRecents: "प्रोजेक्ट + हाल के एक्सपोर्ट करें",
+ combined: "संयुक्त",
+ perChat: "प्रति चैट",
+ newProject: "नया प्रोजेक्ट",
+ name: "नाम",
+ updated: "अपडेट किया गया",
+ newestFirst: "नए पहले",
+ oldestFirst: "पुराने पहले",
+ today: "आज",
+ yesterday: "कल",
+ emptyDescription: "एक प्रोजेक्ट संबंधित चैट को साथ रखता है, साझा निर्देशों और स्रोतों के साथ जिन्हें उसकी हर चैट इस्तेमाल कर सकती है।",
+ createFirst: "अपना पहला प्रोजेक्ट बनाएँ",
+ noMatches: "आपकी खोज से कोई प्रोजेक्ट मेल नहीं खाता।",
+ clearSearch: "खोज साफ़ करें",
+ showChats: "चैट दिखाएँ",
+ hideChats: "चैट छिपाएँ",
+ pinProject: "प्रोजेक्ट पिन करें",
+ unpinProject: "प्रोजेक्ट अनपिन करें",
+ newChatInProject: "प्रोजेक्ट में नई चैट",
+ projectOptions: "प्रोजेक्ट विकल्प",
+ loadChatsFailed: "चैट लोड नहीं हो सकीं। फिर से कोशिश करें",
+ refreshChatsFailed: "चैट रीफ़्रेश नहीं हो सकीं। फिर से कोशिश करें",
+ noChats: "कोई चैट नहीं",
+ unread: "अपठित",
+ pinChat: "चैट पिन करें",
+ unpinChat: "चैट अनपिन करें",
+ chatOptions: "चैट विकल्प",
+ exportAllChats: "सभी चैट एक्सपोर्ट करें…",
+ archive: "संग्रहित करें",
+ renameChat: "चैट का नाम बदलें",
+ chatName: "चैट का नाम",
+ deleteChat: "चैट हटाएँ",
+ deleteChatDescription: "क्या आप वाकई {name} को हटाना चाहते हैं? इसके संदेश स्थायी रूप से हट जाएँगे।",
+ importChats: "चैट इंपोर्ट करें",
+ importDestination: "चुनें कि {name} को कहाँ इंपोर्ट करना है:",
+ selectDestination: "गंतव्य चुनें",
+ recents: "हाल के",
+ import: "इंपोर्ट करें",
+ deleteProject: "प्रोजेक्ट हटाएँ",
+ deleteProjectDescription: "क्या आप वाकई {name} को हटाना चाहते हैं? इसकी चैट स्थायी रूप से हट जाएँगी।",
+ deleteProjectFiles: "प्रोजेक्ट का वर्कस्पेस फ़ोल्डर डिस्क से हटा दिया जाएगा।",
+ deleteAll: "सब हटाएँ",
+ projectFallback: "प्रोजेक्ट",
+ importFailed: "इंपोर्ट विफल रहा।",
+ nothingToExport: "एक्सपोर्ट करने के लिए कोई बातचीत नहीं।",
+ exportFailed: "एक्सपोर्ट विफल रहा।",
+ renameChatFailed: "चैट का नाम नहीं बदला जा सका",
+ archiveChatFailed: "चैट संग्रहित नहीं हो सकी",
+ deleteChatFailed: "चैट हटाई नहीं जा सकी",
+ deleteProjectFailed: "प्रोजेक्ट हटाया नहीं जा सका",
+ },
} satisfies DeepPartialMessageTree<typeof en>;
diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.ts
index 2fe6c84be10..8a3edb633e4 100644
--- a/studio/frontend/src/i18n/locales/it.ts
+++ b/studio/frontend/src/i18n/locales/it.ts
@@ -4618,8 +4618,6 @@ export const it = {
empty: {
chatsTitle: "Ancora nessuna chat",
chatsDescription: "Le tue conversazioni compaiono qui, separate dai tuoi file.",
- projectsTitle: "Ancora nessun progetto",
- projectsDescription: "I progetti raggruppano chat correlate e condividono le istruzioni tra loro.",
archivedTitle: "Nessun elemento archiviato",
archivedDescription: "Le chat che archivi compaiono qui.",
sectionsTitle: "Ancora nessuna sezione",
@@ -4749,6 +4747,8 @@ export const it = {
pdfs: "PDF",
gridView: "Vista a griglia",
listView: "Vista a elenco",
+ grid: "Griglia",
+ list: "Elenco",
settings: "Impostazioni della Libreria",
sort: "Ordina",
sortDefault: "Ordine predefinito",
@@ -5046,4 +5046,61 @@ export const it = {
reconnecting: "Riconnessione...",
},
},
+ projectsPage: {
+ title: "Progetti",
+ search: "Cerca progetti",
+ importExport: "Importa / esporta progetti",
+ importChatsAction: "Importa chat…",
+ exportAllProjects: "Esporta tutti i progetti",
+ exportProjectsAndRecents: "Esporta progetti + recenti",
+ combined: "Combinato",
+ perChat: "Per chat",
+ newProject: "Nuovo progetto",
+ name: "Nome",
+ updated: "Aggiornato",
+ newestFirst: "Più recenti prima",
+ oldestFirst: "Meno recenti prima",
+ today: "Oggi",
+ yesterday: "Ieri",
+ emptyDescription: "Un progetto tiene insieme chat correlate, con istruzioni e fonti condivise che ogni chat al suo interno può usare.",
+ createFirst: "Crea il tuo primo progetto",
+ noMatches: "Nessun progetto corrisponde alla ricerca.",
+ clearSearch: "Cancella ricerca",
+ showChats: "Mostra chat",
+ hideChats: "Nascondi chat",
+ pinProject: "Fissa progetto",
+ unpinProject: "Sblocca progetto",
+ newChatInProject: "Nuova chat nel progetto",
+ projectOptions: "Opzioni progetto",
+ loadChatsFailed: "Impossibile caricare le chat. Riprova",
+ refreshChatsFailed: "Impossibile aggiornare le chat. Riprova",
+ noChats: "Nessuna chat",
+ unread: "Non letto",
+ pinChat: "Fissa chat",
+ unpinChat: "Sblocca chat",
+ chatOptions: "Opzioni chat",
+ exportAllChats: "Esporta tutte le chat…",
+ archive: "Archivia",
+ renameChat: "Rinomina chat",
+ chatName: "Nome chat",
+ deleteChat: "Elimina chat",
+ deleteChatDescription: "Vuoi davvero eliminare {name}? I suoi messaggi verranno eliminati definitivamente.",
+ importChats: "Importa chat",
+ importDestination: "Scegli dove importare {name}:",
+ selectDestination: "Seleziona destinazione",
+ recents: "Recenti",
+ import: "Importa",
+ deleteProject: "Elimina progetto",
+ deleteProjectDescription: "Vuoi davvero eliminare {name}? Le sue chat verranno eliminate definitivamente.",
+ deleteProjectFiles: "La cartella di lavoro del progetto verrà rimossa dal disco.",
+ deleteAll: "Elimina tutto",
+ projectFallback: "progetto",
+ importFailed: "Importazione non riuscita.",
+ nothingToExport: "Nessuna conversazione da esportare.",
+ exportFailed: "Esportazione non riuscita.",
+ renameChatFailed: "Impossibile rinominare la chat",
+ archiveChatFailed: "Impossibile archiviare la chat",
+ deleteChatFailed: "Impossibile eliminare la chat",
+ deleteProjectFailed: "Impossibile eliminare il progetto",
+ },
} as const;
diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.ts
index 7aa3786a3a7..e9670d32896 100644
--- a/studio/frontend/src/i18n/locales/ja.ts
+++ b/studio/frontend/src/i18n/locales/ja.ts
@@ -4492,8 +4492,6 @@ export const ja = {
empty: {
chatsTitle: "まだチャットはありません",
chatsDescription: "会話はファイルとは別にここに表示されます。",
- projectsTitle: "まだプロジェクトはありません",
- projectsDescription: "プロジェクトは関連するチャットをまとめ、指示を共有します。",
archivedTitle: "アーカイブはありません",
archivedDescription: "アーカイブしたチャットがここに表示されます。",
sectionsTitle: "セクションはまだありません",
@@ -4623,6 +4621,8 @@ export const ja = {
pdfs: "PDF",
gridView: "グリッド表示",
listView: "リスト表示",
+ grid: "グリッド",
+ list: "リスト",
settings: "ライブラリの設定",
sort: "並べ替え",
sortDefault: "デフォルトの順序",
@@ -4920,4 +4920,61 @@ export const ja = {
reconnecting: "再接続中...",
},
},
+ projectsPage: {
+ title: "プロジェクト",
+ search: "プロジェクトを検索",
+ importExport: "プロジェクトのインポート / エクスポート",
+ importChatsAction: "チャットをインポート…",
+ exportAllProjects: "すべてのプロジェクトをエクスポート",
+ exportProjectsAndRecents: "プロジェクト + 最近の項目をエクスポート",
+ combined: "まとめて",
+ perChat: "チャットごと",
+ newProject: "新しいプロジェクト",
+ name: "名前",
+ updated: "更新",
+ newestFirst: "新しい順",
+ oldestFirst: "古い順",
+ today: "今日",
+ yesterday: "昨日",
+ emptyDescription: "プロジェクトは関連するチャットをまとめ、その中のすべてのチャットで使える共通の指示とソースを持ちます。",
+ createFirst: "最初のプロジェクトを作成",
+ noMatches: "検索に一致するプロジェクトはありません。",
+ clearSearch: "検索をクリア",
+ showChats: "チャットを表示",
+ hideChats: "チャットを非表示",
+ pinProject: "プロジェクトをピン留め",
+ unpinProject: "プロジェクトのピン留めを解除",
+ newChatInProject: "プロジェクトで新しいチャット",
+ projectOptions: "プロジェクトのオプション",
+ loadChatsFailed: "チャットを読み込めませんでした。再試行",
+ refreshChatsFailed: "チャットを更新できませんでした。再試行",
+ noChats: "チャットはありません",
+ unread: "未読",
+ pinChat: "チャットをピン留め",
+ unpinChat: "チャットのピン留めを解除",
+ chatOptions: "チャットのオプション",
+ exportAllChats: "すべてのチャットをエクスポート…",
+ archive: "アーカイブ",
+ renameChat: "チャット名を変更",
+ chatName: "チャット名",
+ deleteChat: "チャットを削除",
+ deleteChatDescription: "{name} を削除してもよろしいですか?メッセージは完全に削除されます。",
+ importChats: "チャットをインポート",
+ importDestination: "{name} のインポート先を選択してください:",
+ selectDestination: "インポート先を選択",
+ recents: "最近の項目",
+ import: "インポート",
+ deleteProject: "プロジェクトを削除",
+ deleteProjectDescription: "{name} を削除してもよろしいですか?チャットは完全に削除されます。",
+ deleteProjectFiles: "プロジェクトの作業フォルダーはディスクから削除されます。",
+ deleteAll: "すべて削除",
+ projectFallback: "プロジェクト",
+ importFailed: "インポートに失敗しました。",
+ nothingToExport: "エクスポートする会話がありません。",
+ exportFailed: "エクスポートに失敗しました。",
+ renameChatFailed: "チャット名を変更できませんでした",
+ archiveChatFailed: "チャットをアーカイブできませんでした",
+ deleteChatFailed: "チャットを削除できませんでした",
+ deleteProjectFailed: "プロジェクトを削除できませんでした",
+ },
} satisfies DeepPartialMessageTree<typeof en>;
diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.ts
index 81f6537308d..dd0bee6f4f2 100644
--- a/studio/frontend/src/i18n/locales/ko.ts
+++ b/studio/frontend/src/i18n/locales/ko.ts
@@ -4532,8 +4532,6 @@ export const ko = {
empty: {
chatsTitle: "아직 채팅이 없습니다",
chatsDescription: "대화는 파일과 분리되어 여기에 표시됩니다.",
- projectsTitle: "아직 프로젝트가 없습니다",
- projectsDescription: "프로젝트는 관련 채팅을 묶고 지침을 공유합니다.",
archivedTitle: "보관된 항목 없음",
archivedDescription: "보관한 채팅이 여기에 표시됩니다.",
sectionsTitle: "아직 섹션이 없습니다",
@@ -4663,6 +4661,8 @@ export const ko = {
pdfs: "PDF",
gridView: "그리드 보기",
listView: "목록 보기",
+ grid: "그리드",
+ list: "목록",
settings: "라이브러리 설정",
sort: "정렬",
sortDefault: "기본 순서",
@@ -4960,4 +4960,61 @@ export const ko = {
reconnecting: "다시 연결하는 중...",
},
},
+ projectsPage: {
+ title: "프로젝트",
+ search: "프로젝트 검색",
+ importExport: "프로젝트 가져오기 / 내보내기",
+ importChatsAction: "채팅 가져오기…",
+ exportAllProjects: "모든 프로젝트 내보내기",
+ exportProjectsAndRecents: "프로젝트 + 최근 항목 내보내기",
+ combined: "통합",
+ perChat: "채팅별",
+ newProject: "새 프로젝트",
+ name: "이름",
+ updated: "업데이트",
+ newestFirst: "최신순",
+ oldestFirst: "오래된순",
+ today: "오늘",
+ yesterday: "어제",
+ emptyDescription: "프로젝트는 관련 채팅을 한곳에 모으고, 그 안의 모든 채팅이 쓸 수 있는 공유 지침과 소스를 제공합니다.",
+ createFirst: "첫 프로젝트 만들기",
+ noMatches: "검색과 일치하는 프로젝트가 없습니다.",
+ clearSearch: "검색 지우기",
+ showChats: "채팅 표시",
+ hideChats: "채팅 숨기기",
+ pinProject: "프로젝트 고정",
+ unpinProject: "프로젝트 고정 해제",
+ newChatInProject: "프로젝트에서 새 채팅",
+ projectOptions: "프로젝트 옵션",
+ loadChatsFailed: "채팅을 불러오지 못했습니다. 다시 시도",
+ refreshChatsFailed: "채팅을 새로 고치지 못했습니다. 다시 시도",
+ noChats: "채팅 없음",
+ unread: "읽지 않음",
+ pinChat: "채팅 고정",
+ unpinChat: "채팅 고정 해제",
+ chatOptions: "채팅 옵션",
+ exportAllChats: "모든 채팅 내보내기…",
+ archive: "보관",
+ renameChat: "채팅 이름 바꾸기",
+ chatName: "채팅 이름",
+ deleteChat: "채팅 삭제",
+ deleteChatDescription: "{name}을(를) 삭제하시겠습니까? 메시지가 영구적으로 삭제됩니다.",
+ importChats: "채팅 가져오기",
+ importDestination: "{name}을(를) 가져올 위치를 선택하세요:",
+ selectDestination: "대상 선택",
+ recents: "최근 항목",
+ import: "가져오기",
+ deleteProject: "프로젝트 삭제",
+ deleteProjectDescription: "{name}을(를) 삭제하시겠습니까? 채팅이 영구적으로 삭제됩니다.",
+ deleteProjectFiles: "프로젝트 작업 폴더가 디스크에서 제거됩니다.",
+ deleteAll: "모두 삭제",
+ projectFallback: "프로젝트",
+ importFailed: "가져오기에 실패했습니다.",
+ nothingToExport: "내보낼 대화가 없습니다.",
+ exportFailed: "내보내기에 실패했습니다.",
+ renameChatFailed: "채팅 이름을 바꾸지 못했습니다",
+ archiveChatFailed: "채팅을 보관하지 못했습니다",
+ deleteChatFailed: "채팅을 삭제하지 못했습니다",
+ deleteProjectFailed: "프로젝트를 삭제하지 못했습니다",
+ },
} satisfies DeepPartialMessageTree<typeof en>;
diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.ts
index 13f02a21d45..28368917285 100644
--- a/studio/frontend/src/i18n/locales/pt-br.ts
+++ b/studio/frontend/src/i18n/locales/pt-br.ts
@@ -4577,8 +4577,6 @@ export const ptBR = {
empty: {
chatsTitle: "Nenhum chat ainda",
chatsDescription: "Suas conversas aparecem aqui, separadas dos seus arquivos.",
- projectsTitle: "Nenhum projeto ainda",
- projectsDescription: "Projetos agrupam chats relacionados e compartilham instruções entre eles.",
archivedTitle: "Nada arquivado",
archivedDescription: "Os chats que você arquivar aparecem aqui.",
sectionsTitle: "Nenhuma seção ainda",
@@ -4708,6 +4706,8 @@ export const ptBR = {
pdfs: "PDFs",
gridView: "Visualização em grade",
listView: "Visualização em lista",
+ grid: "Grade",
+ list: "Lista",
settings: "Configurações da Biblioteca",
sort: "Ordenar",
sortDefault: "Ordem padrão",
@@ -5005,4 +5005,61 @@ export const ptBR = {
reconnecting: "Reconectando...",
},
},
+ projectsPage: {
+ title: "Projetos",
+ search: "Pesquisar projetos",
+ importExport: "Importar / exportar projetos",
+ importChatsAction: "Importar chats…",
+ exportAllProjects: "Exportar todos os projetos",
+ exportProjectsAndRecents: "Exportar projetos + recentes",
+ combined: "Combinado",
+ perChat: "Por chat",
+ newProject: "Novo projeto",
+ name: "Nome",
+ updated: "Atualizado",
+ newestFirst: "Mais recentes primeiro",
+ oldestFirst: "Mais antigos primeiro",
+ today: "Hoje",
+ yesterday: "Ontem",
+ emptyDescription: "Um projeto mantém chats relacionados juntos, com instruções e fontes compartilhadas que todo chat nele pode usar.",
+ createFirst: "Criar seu primeiro projeto",
+ noMatches: "Nenhum projeto corresponde à sua pesquisa.",
+ clearSearch: "Limpar pesquisa",
+ showChats: "Mostrar chats",
+ hideChats: "Ocultar chats",
+ pinProject: "Fixar projeto",
+ unpinProject: "Desafixar projeto",
+ newChatInProject: "Novo chat no projeto",
+ projectOptions: "Opções do projeto",
+ loadChatsFailed: "Não foi possível carregar os chats. Tentar novamente",
+ refreshChatsFailed: "Não foi possível atualizar os chats. Tentar novamente",
+ noChats: "Nenhum chat",
+ unread: "Não lido",
+ pinChat: "Fixar chat",
+ unpinChat: "Desafixar chat",
+ chatOptions: "Opções do chat",
+ exportAllChats: "Exportar todos os chats…",
+ archive: "Arquivar",
+ renameChat: "Renomear chat",
+ chatName: "Nome do chat",
+ deleteChat: "Excluir chat",
+ deleteChatDescription: "Tem certeza de que deseja excluir {name}? As mensagens serão excluídas permanentemente.",
+ importChats: "Importar chats",
+ importDestination: "Escolha onde importar {name}:",
+ selectDestination: "Selecionar destino",
+ recents: "Recentes",
+ import: "Importar",
+ deleteProject: "Excluir projeto",
+ deleteProjectDescription: "Tem certeza de que deseja excluir {name}? Os chats serão excluídos permanentemente.",
+ deleteProjectFiles: "A pasta de trabalho do projeto será removida do disco.",
+ deleteAll: "Excluir tudo",
+ projectFallback: "projeto",
+ importFailed: "Falha na importação.",
+ nothingToExport: "Nenhuma conversa para exportar.",
+ exportFailed: "Falha na exportação.",
+ renameChatFailed: "Falha ao renomear o chat",
+ archiveChatFailed: "Falha ao arquivar o chat",
+ deleteChatFailed: "Falha ao excluir o chat",
+ deleteProjectFailed: "Falha ao excluir o projeto",
+ },
} satisfies DeepPartialMessageTree<typeof en>;
diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.ts
index 0bbb566e17b..ca09c5bd842 100644
--- a/studio/frontend/src/i18n/locales/ru.ts
+++ b/studio/frontend/src/i18n/locales/ru.ts
@@ -4574,8 +4574,6 @@ export const ru = {
empty: {
chatsTitle: "Чатов пока нет",
chatsDescription: "Здесь появляются ваши разговоры, отдельно от файлов.",
- projectsTitle: "Проектов пока нет",
- projectsDescription: "Проекты объединяют связанные чаты с общими инструкциями.",
archivedTitle: "Архив пуст",
archivedDescription: "Здесь появляются чаты, которые вы архивируете.",
sectionsTitle: "Разделов пока нет",
@@ -4705,6 +4703,8 @@ export const ru = {
pdfs: "PDF",
gridView: "Сетка",
listView: "Список",
+ grid: "Сетка",
+ list: "Список",
settings: "Настройки библиотеки",
sort: "Сортировка",
sortDefault: "Порядок по умолчанию",
@@ -5002,4 +5002,61 @@ export const ru = {
reconnecting: "Повторное подключение…",
},
},
+ projectsPage: {
+ title: "Проекты",
+ search: "Поиск проектов",
+ importExport: "Импорт / экспорт проектов",
+ importChatsAction: "Импортировать чаты…",
+ exportAllProjects: "Экспортировать все проекты",
+ exportProjectsAndRecents: "Экспортировать проекты + недавние",
+ combined: "Объединённо",
+ perChat: "По чатам",
+ newProject: "Новый проект",
+ name: "Название",
+ updated: "Обновлено",
+ newestFirst: "Сначала новые",
+ oldestFirst: "Сначала старые",
+ today: "Сегодня",
+ yesterday: "Вчера",
+ emptyDescription: "Проект объединяет связанные чаты с общими инструкциями и источниками, которые может использовать каждый чат в нём.",
+ createFirst: "Создать первый проект",
+ noMatches: "Нет проектов, соответствующих поиску.",
+ clearSearch: "Очистить поиск",
+ showChats: "Показать чаты",
+ hideChats: "Скрыть чаты",
+ pinProject: "Закрепить проект",
+ unpinProject: "Открепить проект",
+ newChatInProject: "Новый чат в проекте",
+ projectOptions: "Параметры проекта",
+ loadChatsFailed: "Не удалось загрузить чаты. Повторить",
+ refreshChatsFailed: "Не удалось обновить чаты. Повторить",
+ noChats: "Нет чатов",
+ unread: "Непрочитано",
+ pinChat: "Закрепить чат",
+ unpinChat: "Открепить чат",
+ chatOptions: "Параметры чата",
+ exportAllChats: "Экспортировать все чаты…",
+ archive: "Архивировать",
+ renameChat: "Переименовать чат",
+ chatName: "Название чата",
+ deleteChat: "Удалить чат",
+ deleteChatDescription: "Удалить {name}? Его сообщения будут удалены безвозвратно.",
+ importChats: "Импорт чатов",
+ importDestination: "Выберите, куда импортировать {name}:",
+ selectDestination: "Выберите место",
+ recents: "Недавние",
+ import: "Импортировать",
+ deleteProject: "Удалить проект",
+ deleteProjectDescription: "Удалить {name}? Его чаты будут удалены безвозвратно.",
+ deleteProjectFiles: "Рабочая папка проекта будет удалена с диска.",
+ deleteAll: "Удалить всё",
+ projectFallback: "проект",
+ importFailed: "Не удалось импортировать.",
+ nothingToExport: "Нет разговоров для экспорта.",
+ exportFailed: "Не удалось экспортировать.",
+ renameChatFailed: "Не удалось переименовать чат",
+ archiveChatFailed: "Не удалось архивировать чат",
+ deleteChatFailed: "Не удалось удалить чат",
+ deleteProjectFailed: "Не удалось удалить проект",
+ },
} satisfies DeepPartialMessageTree<typeof en>;
diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.ts
index 9d7bcc02944..650f7686380 100644
--- a/studio/frontend/src/i18n/locales/sv.ts
+++ b/studio/frontend/src/i18n/locales/sv.ts
@@ -4809,9 +4809,6 @@ export const sv = {
chatsTitle: "Inga chattar än",
chatsDescription:
"Dina konversationer visas här, åtskilda från dina filer.",
- projectsTitle: "Inga projekt än",
- projectsDescription:
- "Projekt grupperar relaterade chattar och delar instruktioner mellan dem.",
archivedTitle: "Inget arkiverat",
archivedDescription: "Chattar som du arkiverar visas här.",
sectionsTitle: "Inga avsnitt än",
@@ -4954,6 +4951,8 @@ export const sv = {
pdfs: "PDF-filer",
gridView: "Rutnätsvy",
listView: "Listvy",
+ grid: "Rutnät",
+ list: "Lista",
settings: "Biblioteksinställningar",
sort: "Sortera",
sortDefault: "Standardordning",
@@ -5265,4 +5264,61 @@ export const sv = {
reconnecting: "Återansluter …",
},
},
+ projectsPage: {
+ title: "Projekt",
+ search: "Sök projekt",
+ importExport: "Importera / exportera projekt",
+ importChatsAction: "Importera chattar…",
+ exportAllProjects: "Exportera alla projekt",
+ exportProjectsAndRecents: "Exportera projekt + senaste",
+ combined: "Samlat",
+ perChat: "Per chatt",
+ newProject: "Nytt projekt",
+ name: "Namn",
+ updated: "Uppdaterad",
+ newestFirst: "Nyaste först",
+ oldestFirst: "Äldsta först",
+ today: "Idag",
+ yesterday: "Igår",
+ emptyDescription: "Ett projekt håller ihop relaterade chattar, med gemensamma instruktioner och källor som varje chatt i det kan använda.",
+ createFirst: "Skapa ditt första projekt",
+ noMatches: "Inga projekt matchar din sökning.",
+ clearSearch: "Rensa sökning",
+ showChats: "Visa chattar",
+ hideChats: "Dölj chattar",
+ pinProject: "Fäst projekt",
+ unpinProject: "Lossa projekt",
+ newChatInProject: "Ny chatt i projektet",
+ projectOptions: "Projektalternativ",
+ loadChatsFailed: "Det gick inte att läsa in chattarna. Försök igen",
+ refreshChatsFailed: "Det gick inte att uppdatera chattarna. Försök igen",
+ noChats: "Inga chattar",
+ unread: "Oläst",
+ pinChat: "Fäst chatt",
+ unpinChat: "Lossa chatt",
+ chatOptions: "Chattalternativ",
+ exportAllChats: "Exportera alla chattar…",
+ archive: "Arkivera",
+ renameChat: "Byt namn på chatt",
+ chatName: "Chattnamn",
+ deleteChat: "Ta bort chatt",
+ deleteChatDescription: "Vill du verkligen ta bort {name}? Dess meddelanden tas bort permanent.",
+ importChats: "Importera chattar",
+ importDestination: "Välj var {name} ska importeras:",
+ selectDestination: "Välj mål",
+ recents: "Senaste",
+ import: "Importera",
+ deleteProject: "Ta bort projekt",
+ deleteProjectDescription: "Vill du verkligen ta bort {name}? Dess chattar tas bort permanent.",
+ deleteProjectFiles: "Projektets arbetsmapp tas bort från disken.",
+ deleteAll: "Ta bort allt",
+ projectFallback: "projekt",
+ importFailed: "Importen misslyckades.",
+ nothingToExport: "Inga konversationer att exportera.",
+ exportFailed: "Exporten misslyckades.",
+ renameChatFailed: "Det gick inte att byta namn på chatten",
+ archiveChatFailed: "Det gick inte att arkivera chatten",
+ deleteChatFailed: "Det gick inte att ta bort chatten",
+ deleteProjectFailed: "Det gick inte att ta bort projektet",
+ },
} as const;
diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.ts
index 1ac780f7ae4..8c1d955590e 100644
--- a/studio/frontend/src/i18n/locales/zh-CN.ts
+++ b/studio/frontend/src/i18n/locales/zh-CN.ts
@@ -4443,8 +4443,6 @@ export const zhCN = {
empty: {
chatsTitle: "还没有聊天",
chatsDescription: "你的对话会显示在这里,与文件分开存放。",
- projectsTitle: "还没有项目",
- projectsDescription: "项目将相关聊天归为一组,并共享指令。",
archivedTitle: "没有已归档内容",
archivedDescription: "你归档的聊天会显示在这里。",
sectionsTitle: "还没有分区",
@@ -4574,6 +4572,8 @@ export const zhCN = {
pdfs: "PDF",
gridView: "网格视图",
listView: "列表视图",
+ grid: "网格",
+ list: "列表",
settings: "资料库设置",
sort: "排序",
sortDefault: "默认顺序",
@@ -4871,4 +4871,61 @@ export const zhCN = {
reconnecting: "正在重新连接...",
},
},
+ projectsPage: {
+ title: "项目",
+ search: "搜索项目",
+ importExport: "导入 / 导出项目",
+ importChatsAction: "导入聊天…",
+ exportAllProjects: "导出所有项目",
+ exportProjectsAndRecents: "导出项目 + 最近",
+ combined: "合并",
+ perChat: "按聊天",
+ newProject: "新建项目",
+ name: "名称",
+ updated: "更新时间",
+ newestFirst: "最新优先",
+ oldestFirst: "最早优先",
+ today: "今天",
+ yesterday: "昨天",
+ emptyDescription: "项目将相关聊天放在一起,并提供其中每个聊天都能使用的共享指令和来源。",
+ createFirst: "创建你的第一个项目",
+ noMatches: "没有与搜索匹配的项目。",
+ clearSearch: "清除搜索",
+ showChats: "显示聊天",
+ hideChats: "隐藏聊天",
+ pinProject: "置顶项目",
+ unpinProject: "取消置顶项目",
+ newChatInProject: "在项目中新建聊天",
+ projectOptions: "项目选项",
+ loadChatsFailed: "无法加载聊天。重试",
+ refreshChatsFailed: "无法刷新聊天。重试",
+ noChats: "没有聊天",
+ unread: "未读",
+ pinChat: "置顶聊天",
+ unpinChat: "取消置顶聊天",
+ chatOptions: "聊天选项",
+ exportAllChats: "导出所有聊天…",
+ archive: "归档",
+ renameChat: "重命名聊天",
+ chatName: "聊天名称",
+ deleteChat: "删除聊天",
+ deleteChatDescription: "确定要删除 {name} 吗?其消息将被永久删除。",
+ importChats: "导入聊天",
+ importDestination: "选择 {name} 的导入位置:",
+ selectDestination: "选择目标",
+ recents: "最近",
+ import: "导入",
+ deleteProject: "删除项目",
+ deleteProjectDescription: "确定要删除 {name} 吗?其聊天将被永久删除。",
+ deleteProjectFiles: "项目工作文件夹将从磁盘中删除。",
+ deleteAll: "全部删除",
+ projectFallback: "项目",
+ importFailed: "导入失败。",
+ nothingToExport: "没有可导出的对话。",
+ exportFailed: "导出失败。",
+ renameChatFailed: "无法重命名聊天",
+ archiveChatFailed: "无法归档聊天",
+ deleteChatFailed: "无法删除聊天",
+ deleteProjectFailed: "无法删除项目",
+ },
} satisfies DeepPartialMessageTree<typeof en>;
diff --git a/studio/frontend/src/lib/folder-icons.ts b/studio/frontend/src/lib/folder-icons.ts
new file mode 100644
index 00000000000..435766b1308
--- /dev/null
+++ b/studio/frontend/src/lib/folder-icons.ts
@@ -0,0 +1,195 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+import { FolderOpenIcon as InstalledFolderOpenIcon } from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
+
+// Hugeicons 4.4 folder glyphs (MIT); the installed 4.1 has older ones. Import folders from here only.
+// 4.4 redrew Folder02 closed, so this one is 4.4's tab over 4.1's open flap.
+export const Folder02Icon: IconSvgElement = [
+ [
+ "path",
+ {
+ d: "M2 19V8.99183C2 6.65409 2 5.48521 2.61604 4.67881C2.7778 4.46706 2.96706 4.2778 3.17881 4.11604C3.98521 3.5 5.15409 3.5 7.49183 3.5C8.16633 3.5 8.50358 3.5 8.81392 3.60442C8.8976 3.63257 8.97932 3.66623 9.05854 3.70518C9.35239 3.84965 9.59179 4.08719 10.0706 4.56227L10.8483 5.33389C11.4254 5.9066 11.714 6.19295 12.08 6.3437C12.446 6.49446 12.8525 6.49446 13.6656 6.49446H16C17.4001 6.49446 18.1002 6.49446 18.635 6.76694C19.1054 7.00663 19.4878 7.38908 19.7275 7.85948C20 8.39426 20 9.09433 20 10.4945V11",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "0",
+ },
+ ],
+ [
+ "path",
+ {
+ d: "M3.15802 15.5144L3.45643 14.7717C4.19029 12.9449 4.55723 12.0316 5.3224 11.5158C6.08757 11 7.07557 11 9.05157 11H17.1119C19.8004 11 21.1446 11 21.7422 11.8787C22.3397 12.7575 21.8405 14.0002 20.842 16.4856L20.5436 17.2283C19.8097 19.0551 19.4428 19.9684 18.6776 20.4842C17.9124 21 16.9244 21 14.9484 21H6.88812C4.19961 21 2.85535 21 2.25782 20.1213C1.66029 19.2425 2.15953 17.9998 3.15802 15.5144Z",
+ stroke: "currentColor",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "1",
+ },
+ ],
+];
+export const FolderOpenIcon: IconSvgElement = InstalledFolderOpenIcon;
+
+export const Folder01Icon: IconSvgElement = [
+ [
+ "path",
+ {
+ d: "M13.6656 6.49446H16C18.8284 6.49446 20.2426 6.49446 21.1213 7.37314C22 8.25182 22 9.66603 22 12.4945V14.5C22 17.3284 22 18.7426 21.1213 19.6213C20.2426 20.5 18.8284 20.5 16 20.5H8C5.17157 20.5 3.75736 20.5 2.87868 19.6213C2 18.7426 2 17.3284 2 14.5V8.99183C2 6.65409 2 5.48521 2.61604 4.67881C2.7778 4.46706 2.96706 4.2778 3.17881 4.11604C3.98521 3.5 5.15409 3.5 7.49183 3.5C8.16633 3.5 8.50358 3.5 8.81392 3.60442C8.8976 3.63257 8.97932 3.66623 9.05854 3.70518C9.35239 3.84965 9.59179 4.08719 10.0706 4.56227L10.8483 5.33389C11.4254 5.9066 11.714 6.19295 12.08 6.3437C12.446 6.49446 12.8525 6.49446 13.6656 6.49446Z",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "0",
+ },
+ ],
+];
+
+export const FolderAddIcon: IconSvgElement = [
+ [
+ "path",
+ {
+ d: "M13 20H8C5.17157 20 3.75736 20 2.87868 19.1213C2 18.2426 2 16.8284 2 14V8.49183C2 6.15409 2 4.98521 2.61604 4.17881C2.7778 3.96706 2.96706 3.7778 3.17881 3.61604C3.98521 3 5.15409 3 7.49183 3C8.16633 3 8.50358 3 8.81392 3.10442C8.8976 3.13257 8.97932 3.16623 9.05854 3.20518C9.35239 3.34965 9.59179 3.58719 10.0706 4.06227L10.8483 4.83389C11.4254 5.4066 11.714 5.69295 12.08 5.8437C12.446 5.99446 12.8525 5.99446 13.6656 5.99446H16C18.8284 5.99446 20.2426 5.99446 21.1213 6.87314C22 7.75182 22 9.16603 22 11.9945V12.5",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "0",
+ },
+ ],
+ [
+ "path",
+ {
+ d: "M19 15V21M22 18H16",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "1",
+ },
+ ],
+];
+
+export const FolderAttachmentIcon: IconSvgElement = [
+ [
+ "path",
+ {
+ d: "M13 20H8C5.17157 20 3.75736 20 2.87868 19.1213C2 18.2426 2 16.8284 2 14V8.49183C2 6.15409 2 4.98521 2.61604 4.17881C2.7778 3.96706 2.96706 3.7778 3.17881 3.61604C3.98521 3 5.15409 3 7.49183 3C8.16633 3 8.50358 3 8.81392 3.10442C8.8976 3.13257 8.97932 3.16623 9.05854 3.20518C9.35239 3.34965 9.59179 3.58719 10.0706 4.06227L10.8483 4.83389C11.4254 5.4066 11.714 5.69295 12.08 5.8437C12.446 5.99446 12.8525 5.99446 13.6656 5.99446H16C18.8284 5.99446 20.2426 5.99446 21.1213 6.87314C22 7.75182 22 9.16603 22 11.9945",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "0",
+ },
+ ],
+ [
+ "path",
+ {
+ d: "M22 15.4615V17.9231C22 19.6224 20.6569 21 19 21C17.3431 21 16 19.6224 16 17.9231V14.5385C16 13.6888 16.6716 13 17.5 13C18.3284 13 19 13.6888 19 14.5385V17.9231",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "1",
+ },
+ ],
+];
+
+export const FolderClosedIcon: IconSvgElement = [
+ [
+ "path",
+ {
+ d: "M13.6656 6.49446H16C18.8284 6.49446 20.2426 6.49446 21.1213 7.37314C22 8.25182 22 9.66603 22 12.4945V14.5C22 17.3284 22 18.7426 21.1213 19.6213C20.2426 20.5 18.8284 20.5 16 20.5H8C5.17157 20.5 3.75736 20.5 2.87868 19.6213C2 18.7426 2 17.3284 2 14.5V8.99183C2 6.65409 2 5.48521 2.61604 4.67881C2.7778 4.46706 2.96706 4.2778 3.17881 4.11604C3.98521 3.5 5.15409 3.5 7.49183 3.5C8.16633 3.5 8.50358 3.5 8.81392 3.60442C8.8976 3.63257 8.97932 3.66623 9.05854 3.70518C9.35239 3.84965 9.59179 4.08719 10.0706 4.56227L10.8483 5.33389C11.4254 5.9066 11.714 6.19295 12.08 6.3437C12.446 6.49446 12.8525 6.49446 13.6656 6.49446Z",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "0",
+ },
+ ],
+ [
+ "path",
+ {
+ d: "M7 10.5H17C18.8692 10.5 19.8038 10.5 20.5 10.9019C20.9561 11.1652 21.3348 11.5439 21.5981 12C22 12.6962 22 13.6308 22 15.5C22 17.3692 22 18.3038 21.5981 19C21.3348 19.4561 20.9561 19.8348 20.5 20.0981C19.8038 20.5 18.8692 20.5 17 20.5H7C5.13077 20.5 4.19615 20.5 3.5 20.0981C3.04394 19.8348 2.66523 19.4561 2.40192 19C2 18.3038 2 17.3692 2 15.5C2 13.6308 2 12.6962 2.40192 12C2.66523 11.5439 3.04394 11.1652 3.5 10.9019C4.19615 10.5 5.13077 10.5 7 10.5Z",
+ stroke: "currentColor",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "1",
+ },
+ ],
+];
+
+export const FolderExportIcon: IconSvgElement = [
+ [
+ "path",
+ {
+ d: "M12 20.5H8C5.17157 20.5 3.75736 20.5 2.87868 19.6213C2 18.7426 2 17.3284 2 14.5V8.99183C2 6.65409 2 5.48521 2.61604 4.67881C2.7778 4.46706 2.96706 4.2778 3.17881 4.11604C3.98521 3.5 5.15409 3.5 7.49183 3.5C8.16633 3.5 8.50358 3.5 8.81392 3.60442C8.8976 3.63257 8.97932 3.66623 9.05854 3.70518C9.35239 3.84965 9.59179 4.08719 10.0706 4.56227L10.8483 5.33389C11.4254 5.9066 11.714 6.19295 12.08 6.3437C12.446 6.49446 12.8525 6.49446 13.6656 6.49446H16C18.8284 6.49446 20.2426 6.49446 21.1213 7.37314C21.9472 8.19905 21.9968 9.49811 21.9998 12",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "0",
+ },
+ ],
+ [
+ "path",
+ {
+ d: "M21 17.5L15 17.5M19 14.5C19 14.5 22 16.7095 22 17.5C22 18.2906 19 20.5 19 20.5",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "1",
+ },
+ ],
+];
+
+export const FolderSearchIcon: IconSvgElement = [
+ [
+ "path",
+ {
+ d: "M12 20H8C5.17157 20 3.75736 20 2.87868 19.1213C2 18.2426 2 16.8284 2 14V8.49183C2 6.15409 2 4.98521 2.61604 4.17881C2.7778 3.96706 2.96706 3.7778 3.17881 3.61604C3.98521 3 5.15409 3 7.49183 3C8.16633 3 8.50358 3 8.81392 3.10442C8.8976 3.13257 8.97932 3.16623 9.05854 3.20518C9.35239 3.34965 9.59179 3.58719 10.0706 4.06227L10.8483 4.83389C11.4254 5.4066 11.714 5.69295 12.08 5.8437C12.446 5.99446 12.8525 5.99446 13.6656 5.99446H16C18.8284 5.99446 20.2426 5.99446 21.1213 6.87314C22 7.75182 22 9.16603 22 11.9945",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "0",
+ },
+ ],
+ [
+ "path",
+ {
+ d: "M20.5 19.5L22 21M21 17C21 18.6569 19.6569 20 18 20C16.3431 20 15 18.6569 15 17C15 15.3431 16.3431 14 18 14C19.6569 14 21 15.3431 21 17Z",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "1",
+ },
+ ],
+];
+
+export const FolderSyncIcon: IconSvgElement = [
+ [
+ "path",
+ {
+ d: "M12.08 20H8C5.17157 20 3.75736 20 2.87868 19.1213C2 18.2426 2 16.8284 2 14V8.49183C2 6.15409 2 4.98521 2.61604 4.17881C2.7778 3.96706 2.96706 3.7778 3.17881 3.61604C3.98521 3 5.15409 3 7.49183 3C8.16633 3 8.50358 3 8.81392 3.10442C8.8976 3.13257 8.97932 3.16623 9.05854 3.20518C9.35239 3.34965 9.59179 3.58719 10.0706 4.06227L10.8483 4.83389C11.4254 5.4066 11.714 5.69295 12.08 5.8437C12.446 5.99446 12.8525 5.99446 13.6656 5.99446H16.0172C18.8456 5.99446 20.2598 5.99446 21.1385 6.87314C21.7805 7.5152 21.9534 8.44321 22 10",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "0",
+ },
+ ],
+ [
+ "path",
+ {
+ d: "M18.5 20C20.433 20 22 18.433 22 16.5C22 15.9632 21.8792 15.4546 21.6632 15M18.5 13C16.567 13 15 14.567 15 16.5C15 17.0368 15.1208 17.5454 15.3368 18M18.5 12V14L19.5 13L18.5 12ZM18.5 19V21L17.5 20L18.5 19Z",
+ stroke: "currentColor",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ strokeWidth: "1.5",
+ key: "1",
+ },
+ ],
+];
diff --git a/studio/frontend/src/lib/hugeicons-derived.ts b/studio/frontend/src/lib/hugeicons-derived.ts
index 9fc4177e8b1..50f63443a03 100644
--- a/studio/frontend/src/lib/hugeicons-derived.ts
+++ b/studio/frontend/src/lib/hugeicons-derived.ts
@@ -32,30 +32,6 @@ export const SheetIcon: IconSvgElement = [
],
];
-// From @hugeicons/core-free-icons 4.3.5; the installed 4.1 predates it.
-export const FolderPlusIcon: IconSvgElement = [
- [
- "path",
- {
- d: "M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C22 9.08996 22 10.1433 22 12.25C22 15.7612 22 17.5167 21.1573 18.7779C20.7926 19.3238 20.3238 19.7926 19.7779 20.1573C18.5167 21 16.7612 21 13.25 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7",
- stroke: "currentColor",
- strokeLinecap: "round",
- strokeWidth: "1.5",
- key: "0",
- },
- ],
- [
- "path",
- {
- d: "M12.0028 11V17M15.0078 13.995L9.00781 13.995",
- stroke: "currentColor",
- strokeLinecap: "round",
- strokeLinejoin: "round",
- strokeWidth: "1.5",
- key: "1",
- },
- ],
-];
// HugeIcons "images" from @hugeicons/core-free-icons 4.3.5; the installed 4.1 predates it.
export const ImagesIcon: IconSvgElement = [
diff --git a/studio/frontend/src/lib/project-icon.ts b/studio/frontend/src/lib/project-icon.ts
new file mode 100644
index 00000000000..0ac650a8fdd
--- /dev/null
+++ b/studio/frontend/src/lib/project-icon.ts
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+import { Folder01Icon } from "./folder-icons";
+
+export const ProjectIcon = Folder01Icon;
diff --git a/studio/frontend/src/lib/sort-icon.ts b/studio/frontend/src/lib/sort-icon.ts
new file mode 100644
index 00000000000..808a7e69146
--- /dev/null
+++ b/studio/frontend/src/lib/sort-icon.ts
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+import type { IconSvgElement } from "@hugeicons/react";
+
+const path = (d: string, key: string) =>
+ ["path", { d, stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", key }] as const;
+
+// Mono Icons sort (MIT) as strokes so strokeWidth applies; 1.2x to match its neighbours' ink.
+export const SortIcon = [
+ path("M6 20.4V3.6M1.2 8.4L6 3.6L10.8 8.4", "0"),
+ path("M18 3.6V20.4M13.2 15.6L18 20.4L22.8 15.6", "1"),
+] as unknown as IconSvgElement;
diff --git a/studio/frontend/tests/account-permissions.test.ts b/studio/frontend/tests/account-permissions.test.ts
index 01a4ecfe1ba..62ba6ca1d01 100644
--- a/studio/frontend/tests/account-permissions.test.ts
+++ b/studio/frontend/tests/account-permissions.test.ts
@@ -136,6 +136,7 @@ function permissionUi(
"@/lib/sparkles-icon": { SparklesGlyph: "SparklesGlyph" },
"@/lib/shield-alert-icon": { ShieldAlertGlyph: "ShieldAlertGlyph" },
"@hugeicons/core-free-icons": {},
+ "@/lib/folder-icons": {},
"@/lib/tick-icon": {},
"@/lib/open-link": { openExternalLink: (url: string) => links.push(url) },
"@/lib/utils": { cn: () => "" },
diff --git a/studio/frontend/tests/account-settings-ui.test.ts b/studio/frontend/tests/account-settings-ui.test.ts
index 0ee9e6675d5..ffe6f1b426b 100644
--- a/studio/frontend/tests/account-settings-ui.test.ts
+++ b/studio/frontend/tests/account-settings-ui.test.ts
@@ -110,6 +110,7 @@ function tab(
useOwnPasswordPending: () => [options.ownerPasswordPending ?? false, () => {}],
},
"@hugeicons/core-free-icons": {},
+ "@/lib/folder-icons": {},
"@hugeicons/react": { HugeiconsIcon: "Icon" },
"@/lib/tick-icon": {},
"@/lib/copy-icon": { Copy01Icon: {} },
diff --git a/studio/frontend/tests/cache-folder-breakdown.test.ts b/studio/frontend/tests/cache-folder-breakdown.test.ts
index 44586ac45aa..e275e2ca530 100644
--- a/studio/frontend/tests/cache-folder-breakdown.test.ts
+++ b/studio/frontend/tests/cache-folder-breakdown.test.ts
@@ -80,6 +80,7 @@ test("only verified model-copy rows expose Clear and retain individual locations
"@/i18n": { useT: () => (key: string) => key },
"@/lib/toast": {},
"@hugeicons/core-free-icons": {},
+ "@/lib/folder-icons": {},
"@hugeicons/react": {},
"../api/caches": { loadCacheBreakdown: async () => copies },
"./hf-cache-model-clear": { HfCacheModelClear: "HfCacheModelClear" },
@@ -172,6 +173,7 @@ test("HF folders are requested only on expansion and stale walks cannot replace
"@/i18n": { useT: () => (key: string) => key },
"@/lib/toast": {},
"@hugeicons/core-free-icons": {},
+ "@/lib/folder-icons": {},
"@hugeicons/react": {},
"../api/caches": {
loadCacheBreakdown: () =>
diff --git a/studio/frontend/tests/cache-rows-model-folder.test.ts b/studio/frontend/tests/cache-rows-model-folder.test.ts
index ae347169091..55ab51e65e6 100644
--- a/studio/frontend/tests/cache-rows-model-folder.test.ts
+++ b/studio/frontend/tests/cache-rows-model-folder.test.ts
@@ -41,6 +41,7 @@ function loadRows(): Rows {
"@/i18n": { useT: () => (key: string) => key },
"@/lib/toast": { toast: {} },
"@hugeicons/core-free-icons": { Delete02Icon: {} },
+ "@/lib/folder-icons": { Delete02Icon: {} },
"@hugeicons/react": { HugeiconsIcon: noop },
"../api/caches": {
bulkPurgeKeys: () => [],
@@ -187,6 +188,7 @@ function driveRows(options: {
},
},
"@hugeicons/core-free-icons": { Delete02Icon: {} },
+ "@/lib/folder-icons": { Delete02Icon: {} },
"@hugeicons/react": { HugeiconsIcon: "HugeiconsIcon" },
"../api/caches": {
bulkPurgeKeys: () => ["uv"],
diff --git a/studio/frontend/tests/debug-log-export.test.ts b/studio/frontend/tests/debug-log-export.test.ts
index 3b46df385b1..11323f65919 100644
--- a/studio/frontend/tests/debug-log-export.test.ts
+++ b/studio/frontend/tests/debug-log-export.test.ts
@@ -196,6 +196,7 @@ function makeWorld(options: {
cn: (...parts: unknown[]) => parts.filter(Boolean).join(" "),
},
"@hugeicons/core-free-icons": new Proxy({}, { get: () => ({}) }),
+ "@/lib/folder-icons": new Proxy({}, { get: () => ({}) }),
"@hugeicons/react": { HugeiconsIcon: () => null },
"@/lib/tick-icon": { Tick02Icon: {} },
"@/lib/copy-icon": { Copy01Icon: {} },
diff --git a/studio/frontend/tests/dialog-toast-outside.test.ts b/studio/frontend/tests/dialog-toast-outside.test.ts
index 39bc53eeb18..4993e3c7307 100644
--- a/studio/frontend/tests/dialog-toast-outside.test.ts
+++ b/studio/frontend/tests/dialog-toast-outside.test.ts
@@ -64,6 +64,7 @@ test("an interaction on a toast does not dismiss the dialog under it", () => {
},
"@/lib/utils": { cn: (...classes: unknown[]) => classes.join(" ") },
"@hugeicons/core-free-icons": { Cancel01Icon: {} },
+ "@/lib/folder-icons": { Cancel01Icon: {} },
"@hugeicons/react": { HugeiconsIcon: "HugeiconsIcon" },
});
@@ -110,6 +111,7 @@ test("an interaction on a toast does not dismiss the sheet under it", () => {
},
"@/lib/utils": { cn: (...classes: unknown[]) => classes.join(" ") },
"@hugeicons/core-free-icons": { Cancel01Icon: {} },
+ "@/lib/folder-icons": { Cancel01Icon: {} },
"@hugeicons/react": { HugeiconsIcon: "HugeiconsIcon" },
});
diff --git a/studio/frontend/tests/export-hub-repo-required.test.ts b/studio/frontend/tests/export-hub-repo-required.test.ts
index fe552075af3..d17ea61e167 100644
--- a/studio/frontend/tests/export-hub-repo-required.test.ts
+++ b/studio/frontend/tests/export-hub-repo-required.test.ts
@@ -64,6 +64,7 @@ const { ExportRunPanel } = loadWithStubs<typeof ExportRunPanelModule>(
},
"@/features/model-picker": { FolderBrowser: none },
"@hugeicons/core-free-icons": {},
+ "@/lib/folder-icons": {},
"@/lib/chevron-icons": {},
"@hugeicons/react": { HugeiconsIcon: none },
"lucide-react": { ChevronRightIcon: none },
diff --git a/studio/frontend/tests/general-settings-token-sync.test.ts b/studio/frontend/tests/general-settings-token-sync.test.ts
index 9a6a3ba2408..589107f15ff 100644
--- a/studio/frontend/tests/general-settings-token-sync.test.ts
+++ b/studio/frontend/tests/general-settings-token-sync.test.ts
@@ -159,6 +159,7 @@ function generalTab(initialToken: string) {
"@/lib/tick-icon": { Tick02Icon: {} },
"@hugeicons/react": { HugeiconsIcon: "HugeiconsIcon" },
"@hugeicons/core-free-icons": new Proxy({}, { get: () => ({}) }),
+ "@/lib/folder-icons": new Proxy({}, { get: () => ({}) }),
"../api/helper-precache": {
loadHelperPrecacheSettings: never,
updateHelperPrecacheSettings: never,
diff --git a/studio/frontend/tests/knowledge-base-composer-refresh.test.ts b/studio/frontend/tests/knowledge-base-composer-refresh.test.ts
index 0e1c10e81b3..34b54ae5bc0 100644
--- a/studio/frontend/tests/knowledge-base-composer-refresh.test.ts
+++ b/studio/frontend/tests/knowledge-base-composer-refresh.test.ts
@@ -73,6 +73,7 @@ function harness() {
"@/lib/file-icon": {},
"@hugeicons/react": {},
"@hugeicons/core-free-icons": {},
+ "@/lib/folder-icons": {},
"@/lib/hugeicons-derived": {},
"@/lib/chevron-icons": {},
"@/components/ui/dropdown-menu": {},
diff --git a/studio/frontend/tests/knowledge-base-dialog-focus.test.ts b/studio/frontend/tests/knowledge-base-dialog-focus.test.ts
index 41a92952eea..e789dceb522 100644
--- a/studio/frontend/tests/knowledge-base-dialog-focus.test.ts
+++ b/studio/frontend/tests/knowledge-base-dialog-focus.test.ts
@@ -116,6 +116,7 @@ function harness(rows: Array<typeof KB> = [KB]) {
react,
"react/jsx-runtime": stubJsxRuntime(),
"@hugeicons/core-free-icons": {},
+ "@/lib/folder-icons": {},
"@/lib/chevron-icons": {},
"@hugeicons/react": {},
"lucide-react": {},
diff --git a/studio/frontend/tests/library-chats.test.ts b/studio/frontend/tests/library-chats.test.ts
index bad2a85b589..2345bf2e3b1 100644
--- a/studio/frontend/tests/library-chats.test.ts
+++ b/studio/frontend/tests/library-chats.test.ts
@@ -411,12 +411,12 @@ test("sections have created and last modified dates, and Last modified is the de
assert.doesNotMatch(readSrc("features/library/chats/chats-items.tsx"), /field="updated"/);
});
-test("chat, project and section cards are square like folder and file cards, dated bottom left", () => {
+test("chat, project and section cards are as tall as their content, dated bottom left", () => {
const items = readSrc("features/library/chats/chats-items.tsx");
const card = items.slice(items.indexOf("const CARD = cn("), items.indexOf("const ICON ="));
assert.doesNotMatch(card, /aspect-\[/);
assert.match(card, /min-h-0 min-w-0/);
- assert.match(items, /export const CHAT_CARD_ROW_MIN = CARD_MIN_HEIGHT;/);
+ assert.match(items, /export const CHAT_CARD_ROW_MIN =\s*"calc\(var\(--spacing\) \* 20 \+ 2\.75 \* var\(--text-ui-12p5\) \+ 3 \* var\(--text-ui-11p5\)\)"/);
assert.match(
readSrc("features/library/surface.ts"),
/CARD_MIN_HEIGHT =\s*"calc\(var\(--spacing\) \* 26 \+ 2\.75 \* var\(--text-ui-13\) \+ 3 \* var\(--text-ui-11p5\)\)"/,
@@ -426,8 +426,8 @@ test("chat, project and section cards are square like folder and file cards, dat
3,
);
const grid = readSrc("features/library/components/library-cards.tsx");
- assert.match(grid, /max\(\$\{minRowHeight\}, calc\(\(100cqw - \$\{columns - 1\} \* var\(--spacing\) \* 5\) \/ \$\{columns\}\)\)/);
- assert.match(grid, /<div className="@container">\{grid\}<\/div>/);
+ assert.match(grid, /gridAutoRows: minRowHeight \? `minmax\(\$\{minRowHeight\}, auto\)` : undefined/);
+ assert.doesNotMatch(grid, /100cqw/);
const library = readSrc("features/library/chats/chats-library.tsx");
assert.doesNotMatch(library, /<CardGrid(?! minRowHeight=\{CHAT_CARD_ROW_MIN\})/);
assert.doesNotMatch(library, /aspect-\[8\/7\]/);
@@ -443,16 +443,17 @@ test("chat, project and section tiles share one box and hover tint", () => {
assert.equal(items.split("group-hover/chat:bg-primary/10").length - 1, 1, "one tile style");
assert.match(items, /<div className=\{cn\(TILE, className\)\}>/);
assert.match(items, /<span className=\{TILE\}>/);
+ assert.match(items, /const CARD_ICON =\s*"[^"]*group-hover\/chat:text-primary"/);
assert.doesNotMatch(items, /group-hover\/chat:opacity-0/);
});
test("grid cards share a two-line title and a footer of contents over date", () => {
const items = readSrc("features/library/chats/chats-items.tsx");
assert.match(items, /const CARD_TITLE =\s*"[^"]*\[overflow-wrap:anywhere\]/);
- assert.match(items, /const CARD_TITLE =\s*"[^"]*font-medium text-ui-13 /);
+ assert.match(items, /const CARD_TITLE =\s*"[^"]*font-medium text-ui-12p5 /);
const footer = items.slice(items.indexOf("function CardFooter("), items.indexOf("const CARD_TITLE"));
assert.match(footer, /flex-col items-start/);
- assert.match(footer, /\{meta && <span className="w-full min-w-0 truncate">\{meta\}<\/span>\}\s*<span className="truncate">\{date\}<\/span>/);
+ assert.match(footer, /\{meta && <span className="w-full min-w-0 truncate">\{meta\}<\/span>\}\s*<span className="truncate text-ui-10p5">\{date\}<\/span>/);
assert.doesNotMatch(footer, /·/);
const cardOf = (start: string, end: string) =>
items.slice(items.indexOf(start), items.indexOf(end));
@@ -462,11 +463,12 @@ test("grid cards share a two-line title and a footer of contents over date", ()
cardOf("export function SectionCard(", "export function SectionRow("),
];
for (const card of cards) {
- assert.match(card, /className=\{cn\(CARD_TITLE, !showTile && TILELESS_TITLE\)\}/);
+ assert.match(card, /className=\{CARD_TITLE\}/);
assert.match(card, /<span className="line-clamp-2">/);
assert.match(card, /<CardFooter/);
assert.match(card, /showTile = true,/);
assert.match(card, /className=\{cn\("flex items-center gap-2", !showTile && TILELESS_ROW\)\}/);
+ assert.match(card, /\{showTile && <(ChatTile chat=\{chat\}|CollectionTile icon=\{\w+\}) bare \/>\}/);
}
assert.doesNotMatch(cards[0], /modelLabel|model &&/);
assert.match(cards[0], /<ChatBadges chat=\{chat\} marksOnly=\{showTile\} \/>/);
@@ -478,7 +480,7 @@ test("cards drop the kind tile everywhere but All, which mixes chats, projects a
const library = readSrc("features/library/chats/chats-library.tsx");
assert.match(library, /<ChatCard[^>]*showTile=\{shownEntries !== null\}/s);
assert.match(library, /<ChatRow[^>]*showTile=\{shownEntries !== null\}/s);
- assert.equal(library.split("showTile={false}").length - 1, 6);
+ assert.equal(library.split("showTile={false}").length - 1, 4);
const favorites = library.slice(library.indexOf("function favoriteEntries("));
assert.doesNotMatch(favorites.slice(0, favorites.indexOf("cards:")), /showTile/);
const items = readSrc("features/library/chats/chats-items.tsx");
@@ -556,13 +558,13 @@ test("the library header row casts a light shadow once stuck", () => {
assert.match(header, /setStuck\(gap > /);
});
-test("a favorite project tile uses the open project folder, not the file folder", () => {
+test("a favorite project tile uses the closed project folder, not the file folder", () => {
const items = readSrc("features/library/chats/chats-items.tsx");
const tile = items.slice(
items.indexOf("export function FavoriteProjectTile("),
items.indexOf("}", items.indexOf("menu={<ProjectMenu", items.indexOf("export function FavoriteProjectTile("))),
);
- assert.match(tile, /icon=\{Folder02Icon\}/);
+ assert.match(tile, /icon=\{ProjectIcon\}/);
assert.doesNotMatch(tile, /Folder01Icon/);
});
@@ -658,7 +660,7 @@ test("a section's menu reads New chat, New project and Edit", () => {
test("a chat card's location has its project or section icon; menus leave out View chats", () => {
const items = readSrc("features/library/chats/chats-items.tsx");
const plain = items.slice(items.indexOf(" if (plain) {"), items.indexOf('<span className="flex min-w-0 items-center gap-3">'));
- assert.match(plain, /icon=\{projectId \? Folder02Icon : LayerIcon\}/);
+ assert.match(plain, /icon=\{projectId \? ProjectIcon : LayerIcon\}/);
assert.match(plain, /<span className="truncate">\{projectId \? projectName : section\?\.name\}<\/span>/);
for (const file of [
"features/library/chats/chats-items.tsx",
@@ -671,11 +673,11 @@ test("a chat card's location has its project or section icon; menus leave out Vi
assert.doesNotMatch(readSrc("i18n/locales/en.ts"), /viewChats/);
});
-test("the Chats library draws every project with the open project folder", () => {
+test("the Chats library draws every project with the closed project folder", () => {
for (const file of ["chats-library.tsx", "chats-toolbar.tsx", "chats-items.tsx"]) {
assert.doesNotMatch(readSrc(`features/library/chats/${file}`), /Folder01Icon/, file);
}
- assert.match(readSrc("features/library/chats/chats-library.tsx"), /projects: Folder02Icon,/);
+ assert.match(readSrc("features/library/chats/chats-library.tsx"), /projects: ProjectIcon,/);
});
test("a chat's menu has no Open chat, and its folder sits under Export", () => {
diff --git a/studio/frontend/tests/login-account-modes.test.ts b/studio/frontend/tests/login-account-modes.test.ts
index 2f19fbf3cb6..8d293aa108f 100644
--- a/studio/frontend/tests/login-account-modes.test.ts
+++ b/studio/frontend/tests/login-account-modes.test.ts
@@ -150,6 +150,7 @@ function mountForm(
},
},
"@hugeicons/core-free-icons": { ViewIcon: "ViewIcon", ViewOffSlashIcon: "ViewOffSlashIcon" },
+ "@/lib/folder-icons": { ViewIcon: "ViewIcon", ViewOffSlashIcon: "ViewOffSlashIcon" },
"@hugeicons/react": { HugeiconsIcon: "HugeiconsIcon" },
"../api": {
refreshSession: async () => true,
diff --git a/studio/frontend/tests/project-source-chip-open.test.ts b/studio/frontend/tests/project-source-chip-open.test.ts
index ca4cb7255d6..33859b71071 100644
--- a/studio/frontend/tests/project-source-chip-open.test.ts
+++ b/studio/frontend/tests/project-source-chip-open.test.ts
@@ -26,6 +26,7 @@ const chip = loadWithStubs<typeof ChipModule>(
"@/components/ui/spinner": { Spinner: Nothing },
"@/lib/utils": { cn: (...parts: unknown[]) => parts.filter(Boolean).join(" ") },
"@hugeicons/core-free-icons": {},
+ "@/lib/folder-icons": {},
"@hugeicons/react": { HugeiconsIcon: Nothing },
"lucide-react": { XIcon: Nothing },
},
diff --git a/studio/frontend/tests/project-sources-model-without-tools.test.ts b/studio/frontend/tests/project-sources-model-without-tools.test.ts
index b455460aa8a..6a3ed5a1dc0 100644
--- a/studio/frontend/tests/project-sources-model-without-tools.test.ts
+++ b/studio/frontend/tests/project-sources-model-without-tools.test.ts
@@ -67,6 +67,7 @@ const { ThreadDocumentsBar } = loadWithStubs<typeof BarModule>(
"react/jsx-runtime": jsxRuntime,
"@hugeicons/react": { HugeiconsIcon: Nothing },
"@hugeicons/core-free-icons": {},
+ "@/lib/folder-icons": {},
"@/lib/hugeicons-derived": {},
"lucide-react": new Proxy({}, { get: () => Nothing }),
"@/lib/tick-icon": {},
diff --git a/studio/frontend/tests/projects-activity-and-polling.test.ts b/studio/frontend/tests/projects-activity-and-polling.test.ts
index d24b0b89a2f..864e41a0ab5 100644
--- a/studio/frontend/tests/projects-activity-and-polling.test.ts
+++ b/studio/frontend/tests/projects-activity-and-polling.test.ts
@@ -19,7 +19,7 @@ test("project recency is chat activity, everywhere a recent list is drawn", () =
/return Math\.max\(project\.lastActivityAt \?\? 0, project\.updatedAt\);/,
);
assert.match(PAGE, /projectActivityAt\(b\) - projectActivityAt\(a\)/);
- assert.match(PAGE, /formatUpdated\(projectActivityAt\(project\)\)/);
+ assert.match(PAGE, /formatUpdated\(projectActivityAt\(project\), t, locale\)/);
assert.ok(!PAGE.includes("b.updatedAt - a.updatedAt : "), "the page still sorts by edit time");
assert.match(THREAD, /sortProjectsByActivity\(projects\)\.slice\(0, 3\)/);
});
diff --git a/studio/frontend/tests/projects-page-rows.test.ts b/studio/frontend/tests/projects-page-rows.test.ts
index 29721fb376c..c59d26e7703 100644
--- a/studio/frontend/tests/projects-page-rows.test.ts
+++ b/studio/frontend/tests/projects-page-rows.test.ts
@@ -9,15 +9,15 @@ import { formatWorkedFor } from "../src/lib/format-worked-for.ts";
const PAGE = await readSrcAsync("features/chat/projects-page.tsx");
test("a project row opens its chats in place", () => {
- assert.match(PAGE, /aria-label=\{chatsOpen \? "Hide chats" : "Show chats"\}/);
+ assert.match(PAGE, /aria-label=\{t\(chatsOpen \? "projectsPage\.hideChats" : "projectsPage\.showChats"\)\}/);
assert.match(PAGE, /aria-expanded=\{chatsOpen\}/);
assert.match(PAGE, /if \(!opening\) return;\n\s*const cached = projectChats\[projectId\];\n\s*const loaded = cached !== undefined && cached !== "error";\n\s*if \(loaded && !staleProjectIds\.has\(projectId\)\) return;\n[^\n]*\n\s*loadProjectChats\(projectId, loaded\);/);
// A failed reload keeps loaded rows only if non-empty: an empty folder may have just gained a chat.
assert.match(PAGE, /const rows = prev\[projectId\];\n\s*if \(silent && Array\.isArray\(rows\) && rows\.length > 0\) \{\n\s*setStale\(projectId, true\);\n\s*return prev;\n\s*\}\n\s*return \{ \.\.\.prev, \[projectId\]: "error" \};/);
assert.match(PAGE, /setStale\(projectId, false\);\n\s*setProjectChats/);
assert.match(PAGE, /\{staleProjectIds\.has\(project\.id\) && \(/);
- assert.match(PAGE, /Could not refresh chats\. Retry/);
- assert.match(PAGE, /Could not load chats\. Retry/);
+ assert.match(PAGE, /\{t\("projectsPage\.refreshChatsFailed"\)\}/);
+ assert.match(PAGE, /\{t\("projectsPage\.loadChatsFailed"\)\}/);
assert.ok(!PAGE.includes("[projectId]: [] }"), "a failed load is still cached as an empty list");
assert.match(
PAGE,
@@ -31,7 +31,7 @@ test("a project row opens its chats in place", () => {
assert.match(PAGE, /for \(const \[id, seq\] of loadSeqRef\.current\) \{\n\s*if \(!open\.has\(id\)\) loadSeqRef\.current\.set\(id, seq \+ 1\);/);
assert.match(PAGE, /if \(loadSeqRef\.current\.get\(projectId\) !== seq\) return;\n\s*setStale\(projectId, false\);\n\s*setProjectChats/);
assert.match(PAGE, /groupThreads\(threads\)\.sort\(\n\s*\(a, b\) => b\.updatedAt - a\.updatedAt,/);
- assert.match(PAGE, /No chats<\/p>/);
+ assert.match(PAGE, /\{t\("projectsPage\.noChats"\)\}<\/p>/);
assert.match(PAGE, /onClick=\{\(\) => openChat\(chat, project\.id\)\}/);
assert.match(PAGE, /search: \{ compare: item\.id, project: projectId \}/);
assert.match(
@@ -72,7 +72,7 @@ test("the row menu edits a project rather than only renaming it", () => {
});
test("pinning a project takes one click, and says which way it goes", () => {
- assert.match(PAGE, /aria-label=\{pinned \? "Unpin project" : "Pin project"\}/);
+ assert.match(PAGE, /aria-label=\{t\(pinned \? "projectsPage\.unpinProject" : "projectsPage\.pinProject"\)\}/);
assert.match(PAGE, /togglePinProject\(project\.id\);/);
assert.ok(
!PAGE.includes('{pinned ? "Unpin" : "Pin"}'),
@@ -107,13 +107,13 @@ test("the pin and the menu are on show, the disclosure follows the cursor", () =
test("the Updated column names the list's order and turns it around", () => {
assert.ok(!PAGE.includes(">Modified<"), "the old column name is still rendered");
- assert.match(PAGE, /\n\s*Updated\n(?:\s*\{\/\*[^\n]*\*\/\}\n)?\s*<ArrowDownIcon/);
+ assert.match(PAGE, /\n\s*\{t\("projectsPage\.updated"\)\}\n\s*<ArrowDownIcon/);
assert.match(PAGE, /import \{ ArrowDownIcon \} from "lucide-react";/);
assert.match(
PAGE,
- /onClick=\{\(\) => setSortDir\(\(dir\) => \(dir === "desc" \? "asc" : "desc"\)\)\}/,
+ /onToggleOrder \? onToggleOrder\(\) : setSortDir\(\(dir\) => \(dir === "desc" \? "asc" : "desc"\)\)/,
);
- assert.match(PAGE, /sortDir === "asc" && "rotate-180",/);
+ assert.match(PAGE, /!\(orderedDesc \?\? sortDir === "desc"\) && "rotate-180",/);
assert.match(
PAGE,
/sortDir === "asc"\n\s*\? projectActivityAt\(a\) - projectActivityAt\(b\)\n\s*: projectActivityAt\(b\) - projectActivityAt\(a\),/,
@@ -160,7 +160,7 @@ test("a chat row carries its own actions, revealed by hovering it", async () =>
"the pin and the menu are not both tied to the row's hover",
);
assert.match(row, /chatPinned \? "opacity-100" : "opacity-0",/);
- assert.match(row, /aria-label="Chat options"/);
+ assert.match(row, /aria-label=\{t\("projectsPage\.chatOptions"\)\}/);
// role="button" makes nested pin and menu presentational for screen readers.
assert.ok(!row.includes('role="button"'), "the row is a button again");
assert.ok(!row.includes("tabIndex={0}"), "the row is focusable again");
@@ -171,14 +171,14 @@ test("a chat row carries its own actions, revealed by hovering it", async () =>
);
assert.match(
row,
- /<span className="hidden w-40 shrink-0 sm:block">\n\s*\{formatUpdated\(chat\.updatedAt\)\}/,
+ /<span className="hidden w-40 shrink-0 sm:block">\n\s*\{formatUpdated\(chat\.updatedAt, t, locale\)\}/,
);
assert.ok(
PAGE.includes('className="hidden w-40 shrink-0 text-sm text-muted-foreground sm:block"'),
"a project row still draws its date below sm",
);
for (const kept of [
- '<span className="shrink-0 sm:w-40">Updated</span>',
+ '<span className="shrink-0 sm:w-40">{t("projectsPage.updated")}</span>',
'className="flex shrink-0 cursor-pointer items-center gap-1 text-left transition-colors hover:text-foreground sm:w-40"',
]) {
assert.ok(PAGE.includes(kept), `the sort control does not survive below sm: ${kept}`);
@@ -203,11 +203,11 @@ test("the chat menu writes through the shared chat helpers", () => {
PAGE,
/confirmDeleteChats\n\s*\? openChatDelete\(chat\)\n\s*: void deleteChat\(chat, alwaysDeleteChatFiles\)/,
);
- assert.match(PAGE, /<DialogTitle>Delete chat<\/DialogTitle>/);
- assert.match(PAGE, /<DialogTitle>Rename chat<\/DialogTitle>/);
+ assert.match(PAGE, /<DialogTitle>\{t\("projectsPage\.deleteChat"\)\}<\/DialogTitle>/);
+ assert.match(PAGE, /<DialogTitle>\{t\("projectsPage\.renameChat"\)\}<\/DialogTitle>/);
assert.match(PAGE, /chatExportOptions\(\)\.map\(\(\{ label, format \}\) => \(/);
assert.match(PAGE, /void handleChatExport\(chat, format\);/);
- assert.match(PAGE, /Export all chats…/);
+ assert.match(PAGE, /\{t\("projectsPage\.exportAllChats"\)\}/);
});
test("the chat menu carries the sidebar's items, without the move", () => {
@@ -217,11 +217,11 @@ test("the chat menu carries the sidebar's items, without the move", () => {
PAGE.indexOf("</DropdownMenuContent>", start),
);
for (const label of [
- "<span>Rename</span>",
- "<span>Archive</span>",
- "<span>Delete</span>",
- "<span>Export</span>",
- "Export all chats…",
+ '<span>{t("common.rename")}</span>',
+ '<span>{t("projectsPage.archive")}</span>',
+ '<span>{t("common.delete")}</span>',
+ '<span>{t("common.export")}</span>',
+ '{t("projectsPage.exportAllChats")}',
]) {
assert.ok(menu.includes(label), `${label} is missing from the chat menu`);
}
@@ -257,9 +257,12 @@ test("both confirmations offer the files, and neither carries the last one's ans
assert.match(PAGE, /id="projects-delete-chat-files"/);
assert.match(
PAGE,
- /id="projects-delete-project-files"[\s\S]{0,200}?deleting\?\.rootPath \?\?\n\s*"The project workspace folder will be removed from disk\."/,
+ /id="projects-delete-project-files"[\s\S]{0,200}?deleting\?\.rootPath \?\?\n\s*t\("projectsPage\.deleteProjectFiles"\)/,
+ );
+ assert.equal(
+ (PAGE.match(/deleteFilesOnDelete \? t\("projectsPage\.deleteAll"\) : t\("common\.delete"\)/g) ?? []).length,
+ 2,
);
- assert.equal((PAGE.match(/deleteFilesOnDelete \? "Delete all" : "Delete"/g) ?? []).length, 2);
});
// role="button" makes children presentational, hiding the pin and menu controls.
@@ -280,6 +283,22 @@ test("a row is a container, and each of its controls is its own button", () => {
);
assert.match(
PAGE,
- /className="group\/chat-row flex items-center gap-3 rounded-full py-1\.5 pl-2 pr-5 text-left text-sm/,
+ /className="group\/chat-row flex items-center gap-3 rounded-full py-1\.5 pl-5 pr-5 text-left text-sm/,
);
});
+
+// The Library embeds this page, so English left here shows inside a translated Library.
+test("the page renders no untranslated text", async () => {
+ const { en } = await import("../src/i18n/locales/en.ts");
+ const keys = [...PAGE.matchAll(/t\("(projectsPage\.[A-Za-z]+)"/g)].map((m) => m[1]);
+ assert.ok(keys.length > 40, "the page no longer reads its strings from projectsPage");
+ for (const key of keys) {
+ const leaf = key.split(".")[1] as keyof typeof en.projectsPage;
+ assert.equal(typeof en.projectsPage[leaf], "string", `${key} has no English message`);
+ }
+ assert.equal(PAGE.match(/>\n?\s*[A-Z][a-z]+(?: [a-z]+)*[.…]?\n?\s*</), null);
+ assert.equal(PAGE.match(/(?:aria-label|title|placeholder)="[A-Z][^"]*"/), null);
+ assert.equal(PAGE.match(/toast\.(?:error|info)\("/), null);
+ assert.match(PAGE, /return then\.toLocaleDateString\(locale, \{/);
+ assert.match(PAGE, /formatRelativeTime\(locale, -dayDiff, "day"\)/);
+});
diff --git a/studio/frontend/tests/rag-thread-initialization.test.ts b/studio/frontend/tests/rag-thread-initialization.test.ts
index bccb277f77d..f6219c061ab 100644
--- a/studio/frontend/tests/rag-thread-initialization.test.ts
+++ b/studio/frontend/tests/rag-thread-initialization.test.ts
@@ -152,6 +152,7 @@ function harness(
"react/jsx-runtime": stubJsxRuntime(),
"@hugeicons/react": {},
"@hugeicons/core-free-icons": {},
+ "@/lib/folder-icons": {},
"@/lib/hugeicons-derived": {},
"lucide-react": {},
"@/lib/tick-icon": {},
diff --git a/studio/frontend/tests/sidebar-custom-sections.test.ts b/studio/frontend/tests/sidebar-custom-sections.test.ts
index 54036e946db..0adfad7f7f7 100644
--- a/studio/frontend/tests/sidebar-custom-sections.test.ts
+++ b/studio/frontend/tests/sidebar-custom-sections.test.ts
@@ -555,7 +555,7 @@ test("each list header's menu carries only what that list is about, as in ChatGP
assert.match(menu, /<NonModalDropdownMenu\n\s*side="bottom"\n\s*align="start"/);
assert.doesNotMatch(menu, /className="unsloth-plus-menu w-/);
assert.match(menu, /icon=\{PanelLeftIcon\}/);
- assert.match(APP_SIDEBAR, /value: "project", key: "shell\.organize\.byProject", icon: Folder01Icon/);
+ assert.match(APP_SIDEBAR, /value: "project", key: "shell\.organize\.byProject", icon: ProjectIcon/);
assert.match(APP_SIDEBAR, /value: "list", key: "shell\.organize\.inOneList", icon: LeftToRightListBulletIcon/);
assert.doesNotMatch(projects, /setSectionHidden|mode: "create"/);
assert.match(recents, /\{organizeSubmenu\}[\s\S]*shell\.organize\.sortChatsBy/);
diff --git a/studio/frontend/tests/sidebar-row-menu-and-pinned-folders.test.ts b/studio/frontend/tests/sidebar-row-menu-and-pinned-folders.test.ts
index b5e35b355a5..3dd75132529 100644
--- a/studio/frontend/tests/sidebar-row-menu-and-pinned-folders.test.ts
+++ b/studio/frontend/tests/sidebar-row-menu-and-pinned-folders.test.ts
@@ -56,7 +56,7 @@ test("the quick-action beside an open menu is revealed with it", () => {
// The row toggles its chats, so the folder says which way it is.
test("a folder row's icon follows its disclosure", () => {
- assert.match(APP_SIDEBAR, /icon=\{expanded \? Folder02Icon : Folder01Icon\}/);
+ assert.match(APP_SIDEBAR, /icon=\{expanded \? Folder02Icon : ProjectIcon\}/);
});
test("an empty open folder says it is empty", () => {
diff --git a/studio/frontend/tests/tool-code-cell-bidi.test.ts b/studio/frontend/tests/tool-code-cell-bidi.test.ts
index 96e0416f8f3..396b85c64d0 100644
--- a/studio/frontend/tests/tool-code-cell-bidi.test.ts
+++ b/studio/frontend/tests/tool-code-cell-bidi.test.ts
@@ -40,6 +40,7 @@ const { ToolCodeCell } = loadWithStubs<typeof ToolCodeCellModule>(
"@/lib/copy-icon": { Copy01Icon: {} },
"@/lib/toast": { toast: { error() {} } },
"@hugeicons/core-free-icons": { Copy01Icon: {}, Download01Icon: {} },
+ "@/lib/folder-icons": { Copy01Icon: {}, Download01Icon: {} },
"@hugeicons/react": { HugeiconsIcon: () => null },
"./icon-action-button": {
IconActionButton: ({ label, onClick }: { label: string; onClick: () => void }) => {