From 11d2b696519a012a6fca00cc0f4b699938874ff4 Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Sat, 29 Aug 2026 00:41:57 +0300 Subject: [PATCH] fix(ui): complete context tab menu icons --- packages/ui/src/components/icon/sprite.ts | 11 +++++------ packages/ui/src/components/layout/ContextPanel.tsx | 3 +++ packages/ui/src/components/ui/MemoryDebugPanel.tsx | 14 +++++++++++++- packages/vscode/CHANGELOG.md | 1 - 4 files changed, 21 insertions(+), 8 deletions(-) diff --git a/packages/ui/src/components/icon/sprite.ts b/packages/ui/src/components/icon/sprite.ts index f02f026d..faf2d60e 100644 --- a/packages/ui/src/components/icon/sprite.ts +++ b/packages/ui/src/components/icon/sprite.ts @@ -2,8 +2,6 @@ // Do not edit manually. Run the script to update. export const iconSpriteData = { - "linear": ``, - "cloudflare": ``, "add": ``, "add-circle": ``, "ai-agent": ``, @@ -33,7 +31,6 @@ export const iconSpriteData = { "book-marked": ``, "book-open": ``, "booklet": ``, - "braces": ``, "brain": ``, "brain-4": ``, "brain-ai-3": ``, @@ -61,13 +58,13 @@ export const iconSpriteData = { "close-circle": ``, "cloud": ``, "cloud-off": ``, + "cloudflare": ``, "code": ``, "code-ai": ``, "code-box": ``, "code-sslash": ``, "collapse-vertical": ``, "command": ``, - "command-code": ``, "compass-3": ``, "computer": ``, "contract-up-down": ``, @@ -87,6 +84,9 @@ export const iconSpriteData = { "emotion-happy": ``, "equalizer-2": ``, "error-warning": ``, + "expand-horizontal": ``, + "expand-left": ``, + "expand-right": ``, "expand-up-down": ``, "external-link": ``, "eye": ``, @@ -153,6 +153,7 @@ export const iconSpriteData = { "layout-right": ``, "leaf": ``, "lightbulb": ``, + "linear": ``, "link-unlink-m": ``, "list-check-2": ``, "list-check-3": ``, @@ -187,7 +188,6 @@ export const iconSpriteData = { "picture-in-picture-2": ``, "pie-chart": ``, "play": ``, - "play-list-add": ``, "plug": ``, "plug-2": ``, "pulse": ``, @@ -232,7 +232,6 @@ export const iconSpriteData = { "target": ``, "target-fill": ``, "task": ``, - "telegram-fill": ``, "terminal": ``, "terminal-box": ``, "terminal-window": ``, diff --git a/packages/ui/src/components/layout/ContextPanel.tsx b/packages/ui/src/components/layout/ContextPanel.tsx index d4075aee..508c7896 100644 --- a/packages/ui/src/components/layout/ContextPanel.tsx +++ b/packages/ui/src/components/layout/ContextPanel.tsx @@ -1002,12 +1002,15 @@ export const ContextPanel: React.FC = () => { + {t('contextPanel.tab.menu.closeOthers')} + {t('contextPanel.tab.menu.closeToLeft')} + {t('contextPanel.tab.menu.closeToRight')} diff --git a/packages/ui/src/components/ui/MemoryDebugPanel.tsx b/packages/ui/src/components/ui/MemoryDebugPanel.tsx index 81227de3..c61b34ea 100644 --- a/packages/ui/src/components/ui/MemoryDebugPanel.tsx +++ b/packages/ui/src/components/ui/MemoryDebugPanel.tsx @@ -13,6 +13,7 @@ import { Button } from '@/components/ui/button'; import { Tooltip, TooltipTrigger, TooltipContent } from '@/components/ui/tooltip'; import { ScrollableOverlay } from '@/components/ui/ScrollableOverlay'; import { Icon } from "@/components/icon/Icon"; +import type { IconName } from '@/components/icon/icons'; import { useI18n } from '@/lib/i18n'; interface DebugPanelProps { @@ -21,6 +22,17 @@ interface DebugPanelProps { type DebugTab = 'memory' | 'streaming' | 'requests'; +function getDebugTabIcon(tab: DebugTab): IconName { + switch (tab) { + case 'memory': + return 'database-2'; + case 'streaming': + return 'bar-chart-box'; + case 'requests': + return 'pulse'; + } +} + const formatDuration = (durationMs: number): string => { if (durationMs < 1000) { return `${Math.round(durationMs)}ms`; @@ -302,7 +314,7 @@ const DebugPanel: React.FC = ({ onClose }) => {

{t('memoryDebugPanel.title')}

diff --git a/packages/vscode/CHANGELOG.md b/packages/vscode/CHANGELOG.md index 4bbf2000..17e48784 100644 --- a/packages/vscode/CHANGELOG.md +++ b/packages/vscode/CHANGELOG.md @@ -16,7 +16,6 @@ - Updating OpenCode no longer fails with a bare "Bad Request": the extension names the release to install and shows OpenCode's own reason when an update is refused (thanks to @mdatsev and @yulia-ivashko). - "Add Project" now adds the chosen folder to the workspace instead of failing (thanks to @bashrusakh), and the extension starts in the current workspace folder instead of one restored from storage (thanks to @makeittech). - Multi-Run groups can now contain more than five models (thanks to @tomzx). -- Right-click an editor, chat, or browser tab in the context panel to close it, close others, close left/right, or close all (thanks to @adavila0703). - Sidebar: pending permission and question badges are no longer covered by the hover actions (thanks to @makeittech); worktree branch search hides non-matching branches (thanks to @bashrusakh). - Settings: number fields and selects no longer clip at large font sizes (thanks to @makeittech), and Windows skill paths are classified correctly, so disabled and duplicate skills are hidden as intended (thanks to @Ttungx). - Windows: closing VS Code now stops the managed OpenCode process instead of leaving it running (thanks to @a0000001).