diff --git a/packages/web/public/locales/translation/en.yaml b/packages/web/public/locales/translation/en.yaml index 9ca77c541..4ba73ccec 100644 --- a/packages/web/public/locales/translation/en.yaml +++ b/packages/web/public/locales/translation/en.yaml @@ -40,6 +40,7 @@ agent_builder: description_placeholder: Describe what your agent does... description_too_long: Description must be 500 characters or less edit_agent: Edit Agent + editor: Editor enable_code_execution: Enabling code execution enter_agent_name: Enter the agent name enter_system_prompt: Enter a system prompt that defines the agent behavior @@ -78,6 +79,7 @@ agent_builder: no_mcp_servers_match_filter: No MCP servers match your current filter. no_mcp_servers_selected: No MCP servers selected. Your agent will have basic functionality only. no_public_agents_available: No public agents available + preview: Preview public: Public Agents public_sharing_description: >- Make this agent available on public agent directories and be discovered and diff --git a/packages/web/public/locales/translation/ja.yaml b/packages/web/public/locales/translation/ja.yaml index ecb8e83bf..c83f0dc73 100644 --- a/packages/web/public/locales/translation/ja.yaml +++ b/packages/web/public/locales/translation/ja.yaml @@ -41,6 +41,7 @@ agent_builder: description_placeholder: エージェントの機能を説明してください... description_too_long: 説明は500文字以下である必要があります edit_agent: エージェントを編集 + editor: エディター enable_code_execution: コード実行を有効にする enter_agent_name: エージェント名を入力 enter_system_prompt: エージェントの動作を定義するシステムプロンプトを入力 @@ -76,6 +77,7 @@ agent_builder: no_mcp_servers_match_filter: 現在のフィルターに一致するMCPサーバーがありません。 no_mcp_servers_selected: MCPサーバーが選択されていません。エージェントは基本機能のみ利用できます。 no_public_agents_available: 利用可能な公開エージェントがありません + preview: プレビュー public: 公開エージェント public_sharing_description: >- このエージェントを公開し、他のユーザーが発見して利用できるようにします。エージェントはすべてのユーザーに表示されますが、オリジナルを変更することはできません。 diff --git a/packages/web/src/pages/agentBuilder/AgentBuilderEditPage.tsx b/packages/web/src/pages/agentBuilder/AgentBuilderEditPage.tsx index f56aa2281..7a2df3718 100644 --- a/packages/web/src/pages/agentBuilder/AgentBuilderEditPage.tsx +++ b/packages/web/src/pages/agentBuilder/AgentBuilderEditPage.tsx @@ -8,7 +8,12 @@ import AgentForm, { import AgentTester from '../../components/agentBuilder/AgentTester'; import { useAgentBuilder } from '../../hooks/agentBuilder/useAgentBuilder'; import useAgentBuilderList from '../../hooks/agentBuilder/useAgentBuilderList'; -import { PiRobot as RobotIcon, PiArrowLeft as BackIcon } from 'react-icons/pi'; +import { + PiRobot as RobotIcon, + PiArrowLeft as BackIcon, + PiPencilSimple, + PiEye, +} from 'react-icons/pi'; const AgentBuilderEditPage: React.FC = () => { const { t } = useTranslation(); @@ -26,6 +31,9 @@ const AgentBuilderEditPage: React.FC = () => { null ); + // View toggle state for responsive layout + const [activeView, setActiveView] = useState<'editor' | 'preview'>('editor'); + const handleSave = useCallback( async (formData: AgentFormData) => { if (agentId && isEditMode) { @@ -118,24 +126,55 @@ const AgentBuilderEditPage: React.FC = () => { } return ( -