From 1b093321bcd3fd0504ef4ba9e1b86dbbe1e4eb81 Mon Sep 17 00:00:00 2001 From: hamzamerzic <10846014+hamzamerzic@users.noreply.github.com> Date: Mon, 27 Jul 2026 23:20:06 +0000 Subject: [PATCH 1/2] Use OpenAI SDK icons for app controls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Möbius Agent --- mobius.json | 3 ++- ui/Icons.jsx | 34 +++++++++++++++++++++++++--------- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/mobius.json b/mobius.json index 43bcdf2..dd9c7d2 100644 --- a/mobius.json +++ b/mobius.json @@ -25,7 +25,8 @@ "react", "react-dom", "marked", - "dompurify" + "dompurify", + "@openai/apps-sdk-ui/components/Icon" ], "esm_deps": [] }, diff --git a/ui/Icons.jsx b/ui/Icons.jsx index e85f5b7..5787b55 100644 --- a/ui/Icons.jsx +++ b/ui/Icons.jsx @@ -1,18 +1,33 @@ -import React from 'react' +import { + ArrowRotateCw, + ArrowUp, + Chat, + ChevronDown, + ChevronRight, + SettingsCog, + Trash, +} from '@openai/apps-sdk-ui/components/Icon' + +const SDK_ICONS = { + send: ArrowUp, + feedback: Chat, + trash: Trash, + settings: SettingsCog, + refresh: ArrowRotateCw, + chevron: ChevronDown, + right: ChevronRight, +} const PATHS = { - send: <>, merge: <>, - feedback: <>, - trash: <>, - settings: <>, github: , - refresh: <>, - chevron: , - right: , } -export function Icon({ name, size = 18 }) { +export function Icon({ name, size = 18, ...props }) { + const SdkIcon = SDK_ICONS[name] + if (SdkIcon) { + return