fix(settings): address automated review feedback

This commit is contained in:
Jinjing
2026-07-30 01:26:00 -07:00
parent 020581b7ac
commit 658dcd96ef
6 changed files with 5 additions and 28 deletions
@@ -22,9 +22,11 @@ describe('CloudVmSetupGuide', () => {
expect(container.textContent).toContain('Create a Cloud VM')
expect(container.textContent).toContain('Create a workspace')
act(() => {
container.querySelector('button')?.dispatchEvent(new MouseEvent('click', { bubbles: true }))
})
const button = container.querySelector('button')
if (!button) {
throw new Error('Cloud VM setup button was not rendered')
}
act(() => button.dispatchEvent(new MouseEvent('click', { bubbles: true })))
expect(useAppStore.getState().settingsNavigationTarget).toEqual({
pane: 'experimental',
-5
View File
@@ -9459,12 +9459,10 @@
"cloudVmTitle": "Cloud VM runtimes",
"cloudVmRefresh": "Refresh Cloud VM runtimes",
"cloudVmLoading": "Checking Cloud VM runtimes…",
"cloudVmEmpty": "No Cloud VM runtimes need cleanup.",
"cloudVmEmptyWithSetup": "No Cloud VM runtimes yet. Create one from a workspace using an environment recipe."
},
"ephemeralVms": {
"search": {
"title": "Per-Workspace Environments",
"description": "Learn how repo-owned recipes give each workspace its own on-demand, disposable environment.",
"cloudVmTitle": "Cloud VM"
}
@@ -9472,7 +9470,6 @@
"EphemeralVmsPane": {
"loadError": "Could not load recipes.",
"copyError": "Could not copy the prompt.",
"skillTitle": "Per-Workspace Environments skill",
"skillDescription": "Sets up, builds, authenticates, and validates repo-owned environment recipes.",
"whatTitle": "What the skill does, with you",
"whatScaffold": "Writes the recipe & scripts for your provider — connected over an Orca server or SSH.",
@@ -9483,7 +9480,6 @@
"copied": "Copied",
"recipes": "Recipes",
"recipesHelp": "Recipes from orca.yaml and enabled plugins show up here, ready to launch a workspace on.",
"refresh": "Refresh ephemeral VM recipes",
"checking": "Checking recipes...",
"none": "No recipes found yet.",
"cloudVmSkillTitle": "Cloud VM setup skill",
@@ -9491,7 +9487,6 @@
},
"ephemeralVmsExperimentalSetting": {
"description": "Shows setup controls and workspace run targets for repo-owned, on-demand environments.",
"toggleLabel": "Toggle per-workspace environments",
"cloudVmToggleLabel": "Toggle Cloud VM"
},
"SourceControlActionRepoOverrideNote": {
-5
View File
@@ -9430,12 +9430,10 @@
"cloudVmTitle": "Runtimes de VM en la nube",
"cloudVmRefresh": "Actualizar runtimes de VM en la nube",
"cloudVmLoading": "Comprobando runtimes de VM en la nube…",
"cloudVmEmpty": "Ningún runtime de VM en la nube necesita limpieza.",
"cloudVmEmptyWithSetup": "Aún no hay runtimes de VM en la nube. Crea uno desde un espacio de trabajo mediante una receta de entorno."
},
"ephemeralVms": {
"search": {
"title": "Entornos por espacio de trabajo",
"description": "Aprende cómo las recetas del repositorio dan a cada espacio de trabajo su propio entorno desechable bajo demanda.",
"cloudVmTitle": "VM en la nube"
}
@@ -9443,7 +9441,6 @@
"EphemeralVmsPane": {
"loadError": "No se pudieron cargar las recetas.",
"copyError": "No se pudo copiar el prompt.",
"skillTitle": "Skill de entornos por espacio de trabajo",
"skillDescription": "Configura, construye, autentica y valida recetas de entornos del repositorio.",
"whatTitle": "Lo que la skill hace contigo",
"whatScaffold": "Escribe la receta y los scripts para tu proveedor, conectados mediante un servidor Orca o SSH.",
@@ -9454,7 +9451,6 @@
"copied": "Copiado",
"recipes": "Recetas",
"recipesHelp": "Las recetas de orca.yaml y de los plugins activados aparecen aquí, listas para iniciar un espacio de trabajo.",
"refresh": "Actualizar recetas de VMs efímeras",
"checking": "Comprobando recetas…",
"none": "Aún no se han encontrado recetas.",
"cloudVmSkillTitle": "Skill de configuración de VM en la nube",
@@ -9462,7 +9458,6 @@
},
"ephemeralVmsExperimentalSetting": {
"description": "Muestra controles de configuración y destinos de ejecución de espacios de trabajo para entornos bajo demanda del repositorio.",
"toggleLabel": "Activar o desactivar entornos por espacio de trabajo",
"cloudVmToggleLabel": "Activar o desactivar VM en la nube"
},
"SourceControlActionRepoOverrideNote": {
-5
View File
@@ -9430,12 +9430,10 @@
"cloudVmTitle": "クラウド VM ランタイム",
"cloudVmRefresh": "クラウド VM ランタイムを更新",
"cloudVmLoading": "クラウド VM ランタイムを確認中…",
"cloudVmEmpty": "クリーンアップが必要なクラウド VM ランタイムはありません。",
"cloudVmEmptyWithSetup": "クラウド VM ランタイムはまだありません。環境レシピを使用してワークスペースから作成してください。"
},
"ephemeralVms": {
"search": {
"title": "ワークスペースごとの環境",
"description": "repo 所有のレシピが各ワークスペースに独自のオンデマンドの使い捨て環境を与える方法を学びましょう。",
"cloudVmTitle": "クラウド VM"
}
@@ -9443,7 +9441,6 @@
"EphemeralVmsPane": {
"loadError": "レシピを読み込めませんでした。",
"copyError": "プロンプトをコピーできませんでした。",
"skillTitle": "ワークスペースごとの環境スキル",
"skillDescription": "repo が所有する環境レシピをセットアップ、構築、認証、および検証します。",
"whatTitle": "スキルが何をするのか、あなたと一緒に",
"whatScaffold": "Orca サーバーまたは SSH 経由で接続されているプロバイダーのレシピとスクリプトを作成します。",
@@ -9454,7 +9451,6 @@
"copied": "コピーされました",
"recipes": "レシピ",
"recipesHelp": "orca.yaml と有効なプラグインのレシピがここに表示され、ワークスペースを起動できます。",
"refresh": "一時的な VM レシピを更新する",
"checking": "レシピを確認中...",
"none": "レシピはまだ見つかりません。",
"cloudVmSkillTitle": "クラウド VM セットアップスキル",
@@ -9462,7 +9458,6 @@
},
"ephemeralVmsExperimentalSetting": {
"description": "repo が所有するオンデマンド環境のセットアップ コントロールとワークスペース実行ターゲットを示します。",
"toggleLabel": "ワークスペースごとの環境を切り替える",
"cloudVmToggleLabel": "クラウド VM を切り替える"
},
"SourceControlActionRepoOverrideNote": {
-5
View File
@@ -9430,12 +9430,10 @@
"cloudVmTitle": "클라우드 VM 런타임",
"cloudVmRefresh": "클라우드 VM 런타임 새로 고침",
"cloudVmLoading": "클라우드 VM 런타임 확인 중…",
"cloudVmEmpty": "정리가 필요한 클라우드 VM 런타임이 없습니다.",
"cloudVmEmptyWithSetup": "아직 클라우드 VM 런타임이 없습니다. 환경 레시피를 사용해 워크스페이스에서 생성하세요."
},
"ephemeralVms": {
"search": {
"title": "워크스페이스별 환경",
"description": "repo 소유 레시피가 각 워크스페이스에 고유한 주문형 일회용 환경을 제공하는 방법을 알아보세요.",
"cloudVmTitle": "클라우드 VM"
}
@@ -9443,7 +9441,6 @@
"EphemeralVmsPane": {
"loadError": "레시피를 로드할 수 없습니다.",
"copyError": "프롬프트를 복사할 수 없습니다.",
"skillTitle": "워크스페이스별 환경 기술",
"skillDescription": "repo 소유 환경 레시피를 설정, 빌드, 인증 및 검증합니다.",
"whatTitle": "당신과 함께 기술이 하는 일",
"whatScaffold": "Orca 서버 또는 SSH를 통해 연결된 공급자를 위한 레시피 및 스크립트를 작성합니다.",
@@ -9454,7 +9451,6 @@
"copied": "복사됨",
"recipes": "조리법",
"recipesHelp": "orca.yaml과 활성화된 플러그인의 레시피가 여기에 표시되어 워크스페이스를 시작할 수 있습니다.",
"refresh": "임시 VM 레시피 새로 고침",
"checking": "레시피 확인 중...",
"none": "아직 레시피를 찾을 수 없습니다.",
"cloudVmSkillTitle": "클라우드 VM 설정 스킬",
@@ -9462,7 +9458,6 @@
},
"ephemeralVmsExperimentalSetting": {
"description": "repo 소유 온디맨드 환경에 대한 설정 제어 및 워크스페이스 실행 대상을 표시합니다.",
"toggleLabel": "워크스페이스별 환경 전환",
"cloudVmToggleLabel": "클라우드 VM 전환"
},
"SourceControlActionRepoOverrideNote": {
-5
View File
@@ -9430,12 +9430,10 @@
"cloudVmTitle": "云虚拟机运行时",
"cloudVmRefresh": "刷新云虚拟机运行时",
"cloudVmLoading": "正在检查云虚拟机运行时…",
"cloudVmEmpty": "没有需要清理的云虚拟机运行时。",
"cloudVmEmptyWithSetup": "还没有云虚拟机运行时。请在创建工作区时使用环境模板来创建。"
},
"ephemeralVms": {
"search": {
"title": "工作区专属环境",
"description": "了解仓库自带的环境模板如何为每个工作区提供按需创建、可丢弃的独立环境。",
"cloudVmTitle": "云虚拟机"
}
@@ -9443,7 +9441,6 @@
"EphemeralVmsPane": {
"loadError": "无法加载环境模板。",
"copyError": "无法复制提示词。",
"skillTitle": "工作区专属环境技能",
"skillDescription": "设置、构建、认证并验证仓库自带的环境模板。",
"whatTitle": "此技能会与你一起完成",
"whatScaffold": "为你的提供商编写环境模板和脚本,可通过 Orca 服务器或 SSH 连接。",
@@ -9454,7 +9451,6 @@
"copied": "已复制",
"recipes": "环境模板",
"recipesHelp": "orca.yaml 和已启用插件中的配方会显示在这里,可用于启动工作区。",
"refresh": "刷新临时 VM 环境模板",
"checking": "正在检查环境模板...",
"none": "还没有找到环境模板。",
"cloudVmSkillTitle": "云虚拟机设置技能",
@@ -9462,7 +9458,6 @@
},
"ephemeralVmsExperimentalSetting": {
"description": "显示仓库自带按需环境的设置控件和工作区运行目标。",
"toggleLabel": "切换工作区专属环境",
"cloudVmToggleLabel": "切换云虚拟机"
},
"SourceControlActionRepoOverrideNote": {