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: Projects new-chat button, Projects home in the sidebar menu, even menu padding (#14456)

Michael Hana83d791e958f
diff --git a/studio/frontend/scripts/check-bundle-budget.ts b/studio/frontend/scripts/check-bundle-budget.ts
index daa3280fa7a..341c64b1211 100644
--- a/studio/frontend/scripts/check-bundle-budget.ts
+++ b/studio/frontend/scripts/check-bundle-budget.ts
@@ -316,8 +316,12 @@ export const BUDGET = {
// Chat safety for diagrams, redirect links and approval cards adds 617 B raw / 238 B transfer (6,862,624 ->
// 6,863,241 B raw, 2,066,394 -> 2,066,632 B transfer against 731cb16c2, one machine and build, the diagram
// source check itself loaded with the first diagram). Raised to that build plus the same margin.
- transferBytes: 2_066_821,
- rawBytes: 6_863_401,
+ // The sidebar Projects menu's Projects home item and its strings add 240 B raw / no transfer (6,862,692 ->
+ // 6,862,932 B raw, 2,066,441 -> 2,066,440 B transfer against 2aeeceb07e, one machine and build, 96 chunks).
+ // Merged with main at 2552ee3895 the build measures 6,863,532 B raw / 2,066,692 B transfer (Node 26, 97 chunks).
+ // Raised to that build plus the same 160 B raw / 189 B transfer margin.
+ transferBytes: 2_066_881,
+ rawBytes: 6_863_692,
};
// The chunk count is reported but not budgeted. Splitting a page out of the entry raises it while lowering the
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsx
index 6e2e0c1a620..db7b6ca4831 100644
--- a/studio/frontend/src/components/app-sidebar.tsx
+++ b/studio/frontend/src/components/app-sidebar.tsx
@@ -4427,6 +4427,16 @@ export function AppSidebar() {
onChange: setChatSort,
options: CHAT_SORT_OPTIONS,
})}
+ <DropdownMenuSeparator />
+ <DropdownMenuItem
+ onSelect={() => {
+ navigateFromRow({ to: "/projects" });
+ closeMobileIfOpen();
+ }}
+ >
+ <HugeiconsIcon icon={Folder01Icon} strokeWidth={1.75} className="size-icon" />
+ <span>{t("shell.organize.projectsHome")}</span>
+ </DropdownMenuItem>
</>
);
} else if (options.kind === "recents") {
@@ -6499,7 +6509,7 @@ export function AppSidebar() {
side="bottom"
align="end"
sideOffset={0}
- className="app-user-menu menu-soft-surface menu-flat-destructive ring-0 w-44 py-2 font-heading rounded-full border-0"
+ className="app-user-menu menu-soft-surface menu-flat-destructive ring-0 w-44 font-heading rounded-full border-0"
trigger={(triggerRef) => (
<button
ref={triggerRef}
diff --git a/studio/frontend/src/features/chat/projects-page.tsx b/studio/frontend/src/features/chat/projects-page.tsx
index 592e1e3ac23..c0fb8f8727e 100644
--- a/studio/frontend/src/features/chat/projects-page.tsx
+++ b/studio/frontend/src/features/chat/projects-page.tsx
@@ -68,6 +68,7 @@ import {
Edit03Icon,
Folder02Icon,
FolderAddIcon,
+ PencilEdit02Icon,
PinIcon,
PinOffIcon,
Search01Icon,
@@ -692,6 +693,7 @@ export function ProjectsPage() {
<span className="flex-1">Name</span>
<span className="shrink-0 sm:w-40">Updated</span>
<span className="size-7 shrink-0" />
+ <span className="size-7 shrink-0" />
<span className="w-8 shrink-0" />
</div>
{Array.from({ length: 6 }).map((_, index) => (
@@ -753,6 +755,7 @@ export function ProjectsPage() {
/>
</button>
<span className="size-7 shrink-0" />
+ <span className="size-7 shrink-0" />
<span className="w-8 shrink-0" />
</div>
<div ref={listRef} data-tour="projects-list">
@@ -837,6 +840,19 @@ export function ProjectsPage() {
className="size-4"
/>
</button>
+ {/* 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"
+ onClick={(e) => {
+ e.stopPropagation();
+ newChatInProject(project.id);
+ }}
+ className="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 dark:hover:bg-[rgb(255_255_255_/_calc(0.1*var(--contrast-wash-gain,1)))]"
+ >
+ <HugeiconsIcon icon={PencilEdit02Icon} strokeWidth={1.75} className="size-4" />
+ </button>
<div className="relative flex w-8 shrink-0 items-center justify-end">
{/* On show beside the pin, so the row's actions read the same at rest. */}
<DropdownMenu>
@@ -856,7 +872,7 @@ export function ProjectsPage() {
sideOffset={0}
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()}
- className="app-user-menu menu-soft-surface menu-flat-destructive ring-0 w-52 py-2 font-heading rounded-[14px] border-0"
+ className="app-user-menu menu-soft-surface menu-flat-destructive ring-0 w-52 font-heading rounded-[14px] border-0"
>
<ProjectMenuItems
project={project}
@@ -935,6 +951,8 @@ export function ProjectsPage() {
className="size-4"
/>
</button>
+ {/* Stands in for the project row's New chat, keeping pin and menu in line. */}
+ <span className="size-7 shrink-0" />
<div className="relative flex w-8 shrink-0 items-center justify-end">
<DropdownMenu>
<DropdownMenuTrigger asChild>
@@ -953,7 +971,7 @@ export function ProjectsPage() {
sideOffset={0}
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()}
- className="app-user-menu menu-soft-surface menu-flat-destructive ring-0 w-52 py-2 font-heading rounded-[14px] border-0"
+ className="app-user-menu menu-soft-surface menu-flat-destructive ring-0 w-52 font-heading rounded-[14px] border-0"
>
<DropdownMenuItem
onSelect={() => {
diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.ts
index 295e459388d..ccbba1235af 100644
--- a/studio/frontend/src/i18n/locales/ar.ts
+++ b/studio/frontend/src/i18n/locales/ar.ts
@@ -844,6 +844,7 @@ export const ar = {
byProject: "حسب المشروع",
inOneList: "في قائمة واحدة",
sortChatsBy: "ترتيب المحادثات حسب",
+ projectsHome: "صفحة المشاريع",
lastUpdated: "آخر تحديث",
manualOrder: "ترتيب يدوي",
switchedToManual: "الترتيب يدوي الآن: اسحب الصفوف لإعادة ترتيبها",
diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.ts
index ab4d598672a..521346962dd 100644
--- a/studio/frontend/src/i18n/locales/de.ts
+++ b/studio/frontend/src/i18n/locales/de.ts
@@ -848,6 +848,7 @@ export const de = {
byProject: "Nach Projekt",
inOneList: "In einer Liste",
sortChatsBy: "Chats sortieren nach",
+ projectsHome: "Projektübersicht",
lastUpdated: "Zuletzt aktualisiert",
manualOrder: "Manuelle Reihenfolge",
switchedToManual: "Manuell sortiert: Zeilen zum Umordnen ziehen",
diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.ts
index f3f87c7dd0e..7304da525e1 100644
--- a/studio/frontend/src/i18n/locales/en.ts
+++ b/studio/frontend/src/i18n/locales/en.ts
@@ -902,6 +902,7 @@ export const en = {
byProject: "By project",
inOneList: "In one list",
sortChatsBy: "Sort chats by",
+ projectsHome: "Projects home",
lastUpdated: "Last updated",
manualOrder: "Manual order",
switchedToManual: "Sorted manually: drag rows to reorder",
diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.ts
index a5b9539752c..9749abf43e6 100644
--- a/studio/frontend/src/i18n/locales/es.ts
+++ b/studio/frontend/src/i18n/locales/es.ts
@@ -847,6 +847,7 @@ export const es = {
byProject: "Por proyecto",
inOneList: "En una sola lista",
sortChatsBy: "Ordenar chats por",
+ projectsHome: "Inicio de proyectos",
lastUpdated: "Última actualización",
manualOrder: "Orden manual",
switchedToManual: "Orden manual: arrastra las filas para reordenarlas",
diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.ts
index 558e5634491..2f6a94e0d37 100644
--- a/studio/frontend/src/i18n/locales/fr.ts
+++ b/studio/frontend/src/i18n/locales/fr.ts
@@ -848,6 +848,7 @@ export const fr = {
byProject: "Par projet",
inOneList: "Dans une seule liste",
sortChatsBy: "Trier les discussions par",
+ projectsHome: "Accueil des projets",
lastUpdated: "Dernière mise à jour",
manualOrder: "Ordre manuel",
switchedToManual: "Tri manuel : faites glisser les lignes pour les réorganiser",
diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.ts
index ef194fec498..3d94d2e196d 100644
--- a/studio/frontend/src/i18n/locales/he.ts
+++ b/studio/frontend/src/i18n/locales/he.ts
@@ -925,6 +925,7 @@ export const he = {
byProject: "לפי פרויקט",
inOneList: "ברשימה אחת",
sortChatsBy: "מיין צ'אטים לפי",
+ projectsHome: "דף הפרויקטים",
lastUpdated: "עודכן לאחרונה",
manualOrder: "סדר ידני",
switchedToManual: "מיון ידני: גרור שורות כדי לשנות סדר",
diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.ts
index 02cca91317e..f630e6435cd 100644
--- a/studio/frontend/src/i18n/locales/hi.ts
+++ b/studio/frontend/src/i18n/locales/hi.ts
@@ -848,6 +848,7 @@ export const hi = {
byProject: "प्रोजेक्ट के अनुसार",
inOneList: "एक ही सूची में",
sortChatsBy: "चैट क्रमबद्ध करें",
+ projectsHome: "प्रोजेक्ट होम",
lastUpdated: "अंतिम अपडेट",
manualOrder: "मैन्युअल क्रम",
switchedToManual: "अब मैन्युअल क्रम: पंक्तियाँ खींचकर क्रम बदलें",
diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.ts
index 97f33606562..7f50470f3b5 100644
--- a/studio/frontend/src/i18n/locales/it.ts
+++ b/studio/frontend/src/i18n/locales/it.ts
@@ -751,6 +751,7 @@ export const it = {
byProject: "Per progetto",
inOneList: "In un solo elenco",
sortChatsBy: "Ordina le chat per",
+ projectsHome: "Home dei progetti",
lastUpdated: "Ultimo aggiornamento",
manualOrder: "Ordine manuale",
switchedToManual: "Ordinamento manuale: trascina le righe per riordinarle",
diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.ts
index 277b74a8a96..65a674351c1 100644
--- a/studio/frontend/src/i18n/locales/ja.ts
+++ b/studio/frontend/src/i18n/locales/ja.ts
@@ -846,6 +846,7 @@ export const ja = {
byProject: "プロジェクト別",
inOneList: "1つのリストで",
sortChatsBy: "チャットの並び順",
+ projectsHome: "プロジェクトのホーム",
lastUpdated: "最終更新",
manualOrder: "手動で並べ替え",
switchedToManual: "手動の並び順に切り替えました。行をドラッグして並べ替えます",
diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.ts
index 26eed611a56..5137a967ffa 100644
--- a/studio/frontend/src/i18n/locales/ko.ts
+++ b/studio/frontend/src/i18n/locales/ko.ts
@@ -844,6 +844,7 @@ export const ko = {
byProject: "프로젝트별",
inOneList: "하나의 목록으로",
sortChatsBy: "채팅 정렬 기준",
+ projectsHome: "프로젝트 홈",
lastUpdated: "최근 업데이트",
manualOrder: "수동 정렬",
switchedToManual: "수동 정렬로 전환됨: 행을 끌어 순서를 바꾸세요",
diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.ts
index c2c5321c723..4a480b0ce07 100644
--- a/studio/frontend/src/i18n/locales/pt-br.ts
+++ b/studio/frontend/src/i18n/locales/pt-br.ts
@@ -847,6 +847,7 @@ export const ptBR = {
byProject: "Por projeto",
inOneList: "Em uma lista",
sortChatsBy: "Ordenar conversas por",
+ projectsHome: "Início dos projetos",
lastUpdated: "Última atualização",
manualOrder: "Ordem manual",
switchedToManual: "Ordem manual: arraste as linhas para reordenar",
diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.ts
index cb786956859..58c46f9bbe3 100644
--- a/studio/frontend/src/i18n/locales/ru.ts
+++ b/studio/frontend/src/i18n/locales/ru.ts
@@ -847,6 +847,7 @@ export const ru = {
byProject: "По проектам",
inOneList: "Одним списком",
sortChatsBy: "Сортировать чаты по",
+ projectsHome: "Главная проектов",
lastUpdated: "Последнему обновлению",
manualOrder: "Вручную",
switchedToManual: "Ручной порядок: перетащите строки, чтобы изменить порядок",
diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.ts
index 05f8b3d235a..c4f90980ae0 100644
--- a/studio/frontend/src/i18n/locales/sv.ts
+++ b/studio/frontend/src/i18n/locales/sv.ts
@@ -944,6 +944,7 @@ export const sv = {
byProject: "Efter projekt",
inOneList: "I en lista",
sortChatsBy: "Sortera chattar efter",
+ projectsHome: "Projektöversikt",
lastUpdated: "Senast uppdaterad",
manualOrder: "Manuell ordning",
switchedToManual: "Manuell sortering: dra rader för att ändra ordning",
diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.ts
index 37281e733d9..74fdb07e573 100644
--- a/studio/frontend/src/i18n/locales/zh-CN.ts
+++ b/studio/frontend/src/i18n/locales/zh-CN.ts
@@ -842,6 +842,7 @@ export const zhCN = {
byProject: "按项目",
inOneList: "合并为一个列表",
sortChatsBy: "对话排序方式",
+ projectsHome: "项目主页",
lastUpdated: "最近更新",
manualOrder: "手动排序",
switchedToManual: "已改为手动排序,拖动行即可重新排序",