Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
bar: keep the pinned pages one click from the window's top bar
wayne4604fcc6cd99
diff --git a/src/components/FrameBarPinnedPages.test.ts b/src/components/FrameBarPinnedPages.test.tsnew file mode 100644index 0000000000..efbf40bd5c--- /dev/null+++ b/src/components/FrameBarPinnedPages.test.ts@@ -0,0 +1,138 @@+// @vitest-environment happy-dom+import { act, createElement } from "react";+import { createRoot, type Root } from "react-dom/client";+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";++const fixture = vi.hoisted(() => ({+ windowChrome: "mac-inset" as "mac-inset" | "win-caption" | "native",+ dispatch: vi.fn(),+ activeView: null as string | null,+ webPanelId: null as string | null,+}));+vi.mock("@/lib/chrome-rail", () => ({ useChromeRail: () => ({ available: true, hidden: false }), setChromeRailHidden: () => {}, sayFrameDrawn: () => {} }));+vi.mock("@/lib/updater", () => ({ useUpdaterState: () => null }));+vi.mock("@/lib/place-look", () => ({ usePlaceLook: () => null }));+vi.mock("@/state/store", () => ({+ useStore: () => ({ state: { config: {}, notifications: [], notificationsOpen: false, activeView: fixture.activeView, webPanelId: fixture.webPanelId }, dispatch: fixture.dispatch }),+}));+vi.mock("./DesktopCapabilities", async (importOriginal) => ({+ ...await importOriginal<typeof import("./DesktopCapabilities")>(),+ useDesktopCapabilities: () => ({ capabilities: { windowChrome: fixture.windowChrome, windowFrame: undefined }, ready: true }),+}));++import { setLocale } from "@/lib/i18n";+import type { WebPanel } from "@/lib/web-panels";+import { setWebPanels } from "@/lib/web-panel-preferences";+import { pagesFitInBar } from "./FrameBarPinnedPages";+import { WindowFrameBar } from "./WindowFrameBar";++(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;++const PANELS: WebPanel[] = [+ { id: "panel-1", name: "ToolHub", url: "http://127.0.0.1:8998/" },+ { id: "panel-2", name: "Global map", page: { botId: "b", threadId: "t", messageId: "m" } },+];++let host: HTMLDivElement, root: Root | null = null, restoreLayout: (() => void) | null = null;++function rect(width: number, left = 0): DOMRect {+ return { width, height: 28, left, top: 0, right: left + width, bottom: 28, x: left, y: 0, toJSON: () => ({}) } as DOMRect;+}++/** happy-dom has no layout: give the bar, its place name, the pages wrapper and the hidden row the sizes a window+ * would, so the component's own fit rule runs on real numbers. */+function layout(barWidth: number, placeWidth: number, pagesLeft: number, needed: number) {+ const original = Element.prototype.getBoundingClientRect;+ Element.prototype.getBoundingClientRect = function (this: Element) {+ const el = this as HTMLElement;+ if (el.hasAttribute?.("data-window-frame-bar")) return rect(barWidth);+ if (el.hasAttribute?.("data-window-place")) return rect(placeWidth, (barWidth - placeWidth) / 2);+ if (el.hasAttribute?.("data-frame-bar-pages-measure")) return rect(needed);+ if (el.hasAttribute?.("data-frame-bar-pages")) return rect(22, pagesLeft);+ return original.call(this);+ };+ restoreLayout = () => { Element.prototype.getBoundingClientRect = original; };+}++beforeEach(() => {+ setLocale("en");+ host = document.createElement("div");+ document.body.append(host);+ fixture.dispatch.mockClear();+ fixture.activeView = null;+ fixture.webPanelId = null;+ setWebPanels([]);+ Object.assign(window, { ogb: { workspaces: { state: async () => ({ local: true, name: "This computer" }), onChanged: () => () => {}, menu: async () => {} } } });+});++afterEach(async () => {+ await act(async () => root?.unmount());+ root = null;+ host.remove();+ restoreLayout?.();+ restoreLayout = null;+ setWebPanels([]);+ delete (window as { ogb?: unknown }).ogb;+});++async function mount(element: ReturnType<typeof createElement>) {+ root = createRoot(host);+ await act(async () => root!.render(element));+ await act(async () => { await Promise.resolve(); });+}++const byText = (text: string) => [...document.querySelectorAll<HTMLElement>("button")].find((button) => button.textContent?.trim() === text);++describe("pinned pages in the window's top bar", () => {+ it("draws nothing until a page is pinned, so the bar is the official one", async () => {+ await mount(createElement(WindowFrameBar));+ expect(host.querySelector("[data-frame-bar-pages]")).toBeNull();+ expect([...host.querySelectorAll("button")].map((button) => button.getAttribute("aria-label"))).toEqual(["Hide your computers", "Settings"]);+ });++ it("fits every name in the bar's free half and opens the page its name belongs to", async () => {+ setWebPanels(PANELS);+ layout(1400, 200, 104, 300);+ await mount(createElement(WindowFrameBar));+ const named = [...host.querySelectorAll<HTMLElement>("[data-frame-bar-page]")];+ expect(named.map((button) => button.getAttribute("aria-label"))).toEqual(["ToolHub", "Global map"]);+ expect(host.querySelector("[data-frame-bar-pages] [aria-haspopup]"), "no button while every name fits").toBeNull();+ await act(async () => named[1].click());+ expect(fixture.dispatch).toHaveBeenCalledWith({ type: "showWebPanel", id: "panel-2" });+ });++ it("folds into one button when the names would push the place name off the bar's middle", async () => {+ setWebPanels(PANELS);+ layout(700, 200, 104, 300);+ await mount(createElement(WindowFrameBar));+ expect(host.querySelector("[data-frame-bar-page]")).toBeNull();+ const trigger = host.querySelector<HTMLButtonElement>("[data-frame-bar-pages] [aria-haspopup]")!;+ expect(trigger.getAttribute("aria-label")).toBe("Custom pages");+ await act(async () => trigger.click());+ await act(async () => { await Promise.resolve(); });+ const toolHub = byText("ToolHub");+ expect(toolHub, "the menu lists the pages by name").toBeTruthy();+ await act(async () => toolHub!.click());+ expect(fixture.dispatch).toHaveBeenCalledWith({ type: "showWebPanel", id: "panel-1" });+ });++ it("names the open page", async () => {+ setWebPanels(PANELS);+ fixture.activeView = "web-panel";+ fixture.webPanelId = "panel-1";+ layout(1400, 200, 104, 300);+ await mount(createElement(WindowFrameBar));+ expect(host.querySelector("[data-frame-bar-page='panel-1']")!.className).toContain("text-accent");+ expect(host.querySelector("[data-frame-bar-page='panel-2']")!.className).not.toContain("text-accent");+ });+});++describe("the bar's fit rule", () => {+ it("keeps names only while the bar's free half holds them all, with room before the place name", () => {+ expect(pagesFitInBar(1400, 200, 104, 300)).toBe(true);+ expect(pagesFitInBar(1400, 200, 104, 600)).toBe(false);+ expect(pagesFitInBar(700, 200, 104, 300)).toBe(false);+ expect(pagesFitInBar(0, 0, 0, 300), "no layout yet reads as no room").toBe(false);+ expect(pagesFitInBar(1400, 200, 104, 0), "nothing measured yet reads as no room").toBe(false);+ });+});diff --git a/src/components/FrameBarPinnedPages.tsx b/src/components/FrameBarPinnedPages.tsxnew file mode 100644index 0000000000..76a0586cb7--- /dev/null+++ b/src/components/FrameBarPinnedPages.tsx@@ -0,0 +1,112 @@+import { AppWindow, Globe } from "lucide-react";+import { useLayoutEffect, useRef, useState, type ReactNode, type RefObject } from "react";++import { cn } from "@/lib/cn";+import { t } from "@/lib/i18n";+import { useWebPanels } from "@/lib/web-panel-preferences";+import { useStore } from "@/state/store";+import type { WebPanel } from "@/lib/web-panels";+import { SidebarPopoverMenu, type SidebarMenuItem } from "./SidebarPopoverMenu";++/** The frame bar's own button recipe, as WindowFrameBar draws its buttons (kept here so this file does not import+ * the bar it is rendered by). */+const BAR_BUTTON = "flex size-[22px] shrink-0 items-center justify-center rounded-md text-ink-secondary transition-colors hover:bg-ink/[0.07] hover:text-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-focus";++/** A page named in the bar: the same height as a bar button, room to read the name, and the accent while it is open. */+const PAGE_CHIP = "flex h-[22px] max-w-[12rem] shrink-0 items-center gap-1 rounded-md px-1.5 text-[12px] text-ink-secondary transition-colors hover:bg-ink/[0.07] hover:text-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-focus";++/** Whether every pinned page's name fits in the bar's left half, which is what stays free beside the place name.+ * `pagesLeft` is where the names start inside the bar, `pagesWidth` what they need; both are measured, not guessed. */+export function pagesFitInBar(barWidth: number, placeWidth: number, pagesLeft: number, pagesWidth: number): boolean {+ if (!(barWidth > 0) || !(pagesWidth > 0)) return false;+ const side = Math.max(0, (barWidth - placeWidth) / 2);+ // 8 px keeps a name from touching the place name at the bar's middle.+ return pagesWidth <= side - pagesLeft - 8;+}++function PageIcon({ panel, size }: { panel: WebPanel; size: number }) {+ return panel.page ? <AppWindow size={size} aria-hidden="true" /> : <Globe size={size} aria-hidden="true" />;+}++/** The pinned pages, one click from the window's top bar: named in a row while the bar has room for every name, and+ * one button listing them (the same order the settings keep) once it does not. Nothing is drawn before a page is+ * pinned, so the bar reads as the official one until the person keeps a page. */+export function FrameBarPinnedPages() {+ const panels = useWebPanels();+ const { state, dispatch } = useStore();+ const wrapRef = useRef<HTMLDivElement>(null);+ const measureRef = useRef<HTMLDivElement>(null);+ const [roomy, setRoomy] = useState(false);++ useLayoutEffect(() => {+ if (!panels.length) return;+ const wrap = wrapRef.current, measure = measureRef.current;+ if (!wrap || !measure) return;+ const decide = () => {+ const bar = wrap.closest("[data-window-frame-bar]") as HTMLElement | null;+ if (!bar) return setRoomy(false);+ const barBox = bar.getBoundingClientRect();+ const place = bar.querySelector<HTMLElement>("[data-window-place]");+ const placeWidth = place?.getBoundingClientRect().width ?? 0;+ const left = wrap.getBoundingClientRect().left - barBox.left;+ const needed = measure.getBoundingClientRect().width;+ setRoomy(pagesFitInBar(barBox.width, placeWidth, left, needed));+ };+ decide();+ if (typeof ResizeObserver === "undefined") return;+ const observer = new ResizeObserver(decide);+ const bar = wrap.closest("[data-window-frame-bar]");+ if (bar) observer.observe(bar);+ const place = bar?.querySelector("[data-window-place]");+ if (place) observer.observe(place);+ observer.observe(measure);+ return () => observer.disconnect();+ }, [panels]);++ if (!panels.length) return null;+ const activeId = state.activeView === "web-panel" ? state.webPanelId : undefined;+ const open = (id: string) => dispatch({ type: "showWebPanel", id });+ const items: SidebarMenuItem[] = panels.map((panel) => ({+ key: panel.id,+ label: panel.name,+ icon: <PageIcon panel={panel} size={16} />,+ active: panel.id === activeId,+ onSelect: () => open(panel.id),+ }));++ return (+ <div ref={wrapRef} data-frame-bar-pages className="relative flex min-w-0 items-center gap-0.5">+ {roomy ? panels.map((panel) => (+ <button+ key={panel.id}+ type="button"+ data-frame-bar-page={panel.id}+ aria-label={panel.name}+ title={panel.name}+ onClick={() => open(panel.id)}+ className={cn(PAGE_CHIP, panel.id === activeId && "text-accent")}+ >+ <PageIcon panel={panel} size={14} />+ <span className="min-w-0 truncate">{panel.name}</span>+ </button>+ )) : (+ <SidebarPopoverMenu+ items={items}+ ariaLabel={t("webPanels.bar.label")}+ triggerTitle={t("webPanels.bar.label")}+ triggerClassName={BAR_BUTTON}+ renderTrigger={() => <Globe size={15} strokeWidth={1.75} aria-hidden="true" />}+ />+ )}+ <MeasureRow refEl={measureRef} panels={panels} />+ </div>+ );+}++/** The names at their natural width, invisible and out of the bar's layout: what the bar would need to show them. */+function MeasureRow({ refEl, panels }: { refEl: RefObject<HTMLDivElement | null>; panels: WebPanel[] }): ReactNode {+ // No text is read from it, so it is hidden from assistive tech and from the mouse.+ return <div ref={refEl} aria-hidden="true" data-frame-bar-pages-measure className="pointer-events-none invisible absolute left-0 top-0 flex items-center gap-0.5 whitespace-nowrap">+ {panels.map((panel) => <span key={panel.id} className={PAGE_CHIP}><PageIcon panel={panel} size={14} /><span>{panel.name}</span></span>)}+ </div>;+}diff --git a/src/components/WindowFrameBar.tsx b/src/components/WindowFrameBar.tsxindex 9d81005312..413c9ebeb5 100644--- a/src/components/WindowFrameBar.tsx+++ b/src/components/WindowFrameBar.tsx@@ -7,6 +7,7 @@ import { t } from "@/lib/i18n";import { useStore } from "@/state/store";import { ChromeRailToggle } from "./ChromeRailToggle";import { captionChrome, useDesktopCapabilities, windowFrameable, windowFramed } from "./DesktopCapabilities";+import { FrameBarPinnedPages } from "./FrameBarPinnedPages";import { NotificationBell } from "./NotificationsPanel";import { UpdateIndicator } from "./UpdateIndicator";import { WindowPlaceTitle } from "./WindowPlaceTitle";@@ -37,6 +38,7 @@ export function WindowFrameBar({ notifications = false }: { notifications?: bool{/* macOS: the traffic lights span 12-72px of the window, so the first button starts at 80px. */}<div data-frame-bar-start className={cn("flex items-center gap-0.5", mac ? "pl-20" : "pl-[calc(var(--rail-beside,0px)+8px)]")}><ChromeRailToggle bar={FRAME_BAR_BUTTON} />+ <FrameBarPinnedPages /></div><WindowPlaceTitle /><div data-frame-bar-end className={cn("flex items-center justify-end gap-0.5", mac ? "pr-2" : "pr-[140px]")}>diff --git a/src/locales/de.json b/src/locales/de.jsonindex ac19605b35..eee21d847d 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -3748,6 +3748,7 @@"settings.threadDisplay.short": "Zeigt Thread-Listen in der Seitenleiste. Ausblenden behält deinen Verlauf.","settings.pinnedCircles.short": "Zeigt angeheftete Bots als große Avatare oben in der Seitenleiste.","settings.toolCalls.short": "Zeigt jedes Tool, das ein Bot im Chat ausführt. Fehler erscheinen immer.",+ "webPanels.bar.label": "Eigene Seiten","webPanels.settings.short": "Halte ein paar Webseiten, etwa ein lokales Dashboard, einen Klick entfernt in der Seitenleiste.","webPanels.settings.addPage": "Seite hinzufügen","webPanels.settings.empty": "Noch keine angehefteten Seiten.",diff --git a/src/locales/en.json b/src/locales/en.jsonindex be28cba792..0fce5941a3 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -7064,6 +7064,7 @@"sidebar.nav.triggers": "Triggers","sidebar.nav.apps": "Apps","sidebar.nav.files": "Files",+ "webPanels.bar.label": "Custom pages","webPanels.settings.title": "Pinned panels","webPanels.settings.subtitle": "Keep a few web pages, like a local dashboard, one click away in the sidebar (Advanced mode).","webPanels.settings.name": "Name",diff --git a/src/locales/es.json b/src/locales/es.jsonindex cd6ba6f9cf..cd06bb3acf 100644--- a/src/locales/es.json+++ b/src/locales/es.json@@ -6322,6 +6322,7 @@"settings.threadDisplay.short": "Muestra las listas de hilos en la barra lateral. Ocultarlas conserva tu historial.","settings.pinnedCircles.short": "Muestra los bots fijados como avatares grandes arriba en la barra lateral.","settings.toolCalls.short": "Muestra cada herramienta que usa un bot en el chat. Los errores siempre se ven.",+ "webPanels.bar.label": "Páginas personalizadas","webPanels.settings.short": "Ten algunas páginas web, como un panel local, a un clic en la barra lateral.","webPanels.settings.addPage": "Añadir página","webPanels.settings.empty": "Aún no hay páginas fijadas.",diff --git a/src/locales/fr.json b/src/locales/fr.jsonindex c0bb68e932..3287c97b9f 100644--- a/src/locales/fr.json+++ b/src/locales/fr.json@@ -3562,6 +3562,7 @@"settings.threadDisplay.short": "Affiche les listes de fils dans la barre latérale. Les masquer garde ton historique.","settings.pinnedCircles.short": "Affiche les bots épinglés en grands avatars en haut de la barre latérale.","settings.toolCalls.short": "Affiche chaque outil qu'un bot utilise dans le chat. Les erreurs s'affichent toujours.",+ "webPanels.bar.label": "Pages personnalisées","webPanels.settings.short": "Garde quelques pages web, comme un tableau de bord local, à un clic dans la barre latérale.","webPanels.settings.addPage": "Ajouter une page","webPanels.settings.empty": "Aucune page épinglée pour l'instant.",diff --git a/src/locales/hi.json b/src/locales/hi.jsonindex 5f066adb9e..b50268fc26 100644--- a/src/locales/hi.json+++ b/src/locales/hi.json@@ -3415,6 +3415,7 @@"settings.threadDisplay.short": "साइडबार में थ्रेड सूचियाँ दिखाता है। छिपाने से आपका इतिहास बना रहता है।","settings.pinnedCircles.short": "पिन किए बॉट को साइडबार में ऊपर बड़े अवतार के रूप में दिखाता है।","settings.toolCalls.short": "चैट में बॉट का चलाया हर टूल दिखाता है। गड़बड़ियाँ हमेशा दिखती हैं।",+ "webPanels.bar.label": "कस्टम पेज","webPanels.settings.short": "कुछ वेब पेज, जैसे लोकल डैशबोर्ड, साइडबार में एक क्लिक की दूरी पर रखें।","webPanels.settings.addPage": "पेज जोड़ें","webPanels.settings.empty": "अभी कोई पिन किया पेज नहीं।",diff --git a/src/locales/it.json b/src/locales/it.jsonindex a9a6ba5f02..ba8d3abbdd 100644--- a/src/locales/it.json+++ b/src/locales/it.json@@ -6945,6 +6945,7 @@"settings.threadDisplay.short": "Mostra gli elenchi dei thread nella barra laterale. Nasconderli mantiene la cronologia.","settings.pinnedCircles.short": "Mostra i bot fissati come avatar grandi in cima alla barra laterale.","settings.toolCalls.short": "Mostra ogni strumento che un bot usa nella chat. Gli errori si vedono sempre.",+ "webPanels.bar.label": "Pagine personalizzate","webPanels.settings.short": "Tieni alcune pagine web, come una dashboard locale, a un clic nella barra laterale.","webPanels.settings.addPage": "Aggiungi pagina","webPanels.settings.empty": "Ancora nessuna pagina fissata.",diff --git a/src/locales/ja.json b/src/locales/ja.jsonindex b344c966e0..ae6de86e58 100644--- a/src/locales/ja.json+++ b/src/locales/ja.json@@ -6379,6 +6379,7 @@"sidebar.nav.triggers": "トリガー","sidebar.nav.apps": "アプリ","sidebar.nav.files": "ファイル",+ "webPanels.bar.label": "カスタムページ","webPanels.settings.title": "固定したパネル","webPanels.settings.subtitle": "ローカルのダッシュボードなどの Web ページをいくつか、サイドバーからワンクリックで開けるようにします(詳細モード)。","webPanels.settings.name": "名前",diff --git a/src/locales/ko.json b/src/locales/ko.jsonindex 56b9f5c9dd..aff87cfec2 100644--- a/src/locales/ko.json+++ b/src/locales/ko.json@@ -6136,6 +6136,7 @@"sidebar.nav.triggers": "트리거","sidebar.nav.apps": "앱","sidebar.nav.files": "파일",+ "webPanels.bar.label": "사용자 지정 페이지","webPanels.settings.title": "고정 패널","webPanels.settings.subtitle": "로컬 대시보드 같은 웹 페이지 몇 개를 사이드바에서 클릭 한 번으로 열 수 있게 둬요(고급 모드).","webPanels.settings.name": "이름",diff --git a/src/locales/pl.json b/src/locales/pl.jsonindex 21d4385303..2caf1586ec 100644--- a/src/locales/pl.json+++ b/src/locales/pl.json@@ -7082,6 +7082,7 @@"settings.threadDisplay.short": "Pokazuje listy wątków na pasku bocznym. Ukrycie zachowuje historię.","settings.pinnedCircles.short": "Pokazuje przypięte boty jako duże awatary u góry paska bocznego.","settings.toolCalls.short": "Pokazuje każde narzędzie, którego bot używa w czacie. Błędy widać zawsze.",+ "webPanels.bar.label": "Własne strony","webPanels.settings.short": "Trzymaj kilka stron, np. lokalny pulpit, jedno kliknięcie od paska bocznego.","webPanels.settings.addPage": "Dodaj stronę","webPanels.settings.empty": "Brak przypiętych stron.",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex ef9af45ee0..4dea56c01a 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -6723,6 +6723,7 @@"sidebar.nav.triggers": "Gatilhos","sidebar.nav.apps": "Apps","sidebar.nav.files": "Arquivos",+ "webPanels.bar.label": "Páginas personalizadas","webPanels.settings.title": "Painéis fixados","webPanels.settings.subtitle": "Deixe algumas páginas da internet, como um painel local, a um clique na barra lateral (Modo avançado).","webPanels.settings.name": "Nome",diff --git a/src/locales/ru.json b/src/locales/ru.jsonindex 0f6d6a5b44..24e333573a 100644--- a/src/locales/ru.json+++ b/src/locales/ru.json@@ -7142,6 +7142,7 @@"settings.threadDisplay.short": "Показывает списки ветвей на боковой панели. Скрытие сохраняет историю.","settings.pinnedCircles.short": "Показывает закреплённых ботов крупными аватарами вверху боковой панели.","settings.toolCalls.short": "Показывает в чате каждый инструмент бота. Ошибки видны всегда.",+ "webPanels.bar.label": "Свои страницы","webPanels.settings.short": "Держите несколько веб-страниц, например локальную панель, в одном клике на боковой панели.","webPanels.settings.addPage": "Добавить страницу","webPanels.settings.empty": "Пока нет закреплённых страниц.",diff --git a/src/locales/tr.json b/src/locales/tr.jsonindex aa61ac5ec2..8c2aaf41a7 100644--- a/src/locales/tr.json+++ b/src/locales/tr.json@@ -5823,6 +5823,7 @@"settings.threadDisplay.short": "Kenar çubuğunda konu listelerini gösterir. Gizlemek geçmişini korur.","settings.pinnedCircles.short": "Sabitlenmiş botları kenar çubuğunun üstünde büyük avatarlar olarak gösterir.","settings.toolCalls.short": "Botun sohbette çalıştırdığı her aracı gösterir. Hatalar her zaman görünür.",+ "webPanels.bar.label": "Özel sayfalar","webPanels.settings.short": "Yerel bir pano gibi birkaç web sayfasını kenar çubuğunda bir tık uzakta tut.","webPanels.settings.addPage": "Sayfa ekle","webPanels.settings.empty": "Henüz sabitlenmiş sayfa yok.",diff --git a/src/locales/uk.json b/src/locales/uk.jsonindex e576a1865a..c04bf46225 100644--- a/src/locales/uk.json+++ b/src/locales/uk.json@@ -3851,6 +3851,7 @@"settings.threadDisplay.short": "Показує списки гілок на бічній панелі. Приховування зберігає історію.","settings.pinnedCircles.short": "Показує закріплених ботів великими аватарами вгорі бічної панелі.","settings.toolCalls.short": "Показує в чаті кожен інструмент бота. Помилки видно завжди.",+ "webPanels.bar.label": "Власні сторінки","webPanels.settings.short": "Тримайте кілька вебсторінок, як-от локальну панель, за один клік на бічній панелі.","webPanels.settings.addPage": "Додати сторінку","webPanels.settings.empty": "Поки немає закріплених сторінок.",diff --git a/src/locales/vi.json b/src/locales/vi.jsonindex 621b3efe05..56250723f3 100644--- a/src/locales/vi.json+++ b/src/locales/vi.json@@ -5823,6 +5823,7 @@"settings.threadDisplay.short": "Hiện danh sách luồng ở thanh bên. Ẩn đi vẫn giữ lịch sử.","settings.pinnedCircles.short": "Hiện bot đã ghim thành ảnh đại diện lớn ở đầu thanh bên.","settings.toolCalls.short": "Hiện mỗi công cụ bot chạy trong cuộc trò chuyện. Lỗi luôn hiện.",+ "webPanels.bar.label": "Trang tùy chỉnh","webPanels.settings.short": "Giữ vài trang web, như bảng điều khiển cục bộ, cách một cú nhấp ở thanh bên.","webPanels.settings.addPage": "Thêm trang","webPanels.settings.empty": "Chưa có trang nào được ghim.",diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex 120ccb6c56..0366ba7daa 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -6599,6 +6599,7 @@"sidebar.nav.triggers": "觸發條件","sidebar.nav.apps": "應用程式","sidebar.nav.files": "檔案",+ "webPanels.bar.label": "自訂頁面","webPanels.settings.title": "已釘選的面板","webPanels.settings.subtitle": "將幾個網頁(例如本機儀表板)放在側邊欄,一鍵即可開啟(進階模式)。","webPanels.settings.name": "名稱",diff --git a/src/locales/zh.json b/src/locales/zh.jsonindex bb629010ce..d03161e469 100644--- a/src/locales/zh.json+++ b/src/locales/zh.json@@ -6569,6 +6569,7 @@"sidebar.nav.triggers": "触发条件","sidebar.nav.apps": "应用","sidebar.nav.files": "文件",+ "webPanels.bar.label": "自定义页面","webPanels.settings.title": "固定的面板","webPanels.settings.subtitle": "把几个网页(例如本地仪表盘)固定在侧栏,一键打开(高级模式)。","webPanels.settings.name": "名称",