From 484a54081a2d64d44efd3379f6ade6b8ef6bb5ea Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Mon, 12 Oct 2026 23:28:50 -0700 Subject: [PATCH] feat(feature-tips): make Enable Now the full-width action beside a plain Leave Off (#28199) Drop the 'New agent tabs still open in the terminal' line and the taller frame it needed. --- .../feature-tips/FeatureTipActions.tsx | 3 ++- .../feature-tips/FeatureTipDialogFrame.tsx | 9 +------ .../NativeChatUpgradeTipDialog.test.tsx | 23 ++++++++-------- .../NativeChatUpgradeTipDialog.tsx | 26 ++++++++----------- src/renderer/src/i18n/locales/en.json | 3 +-- src/renderer/src/i18n/locales/es.json | 1 - src/renderer/src/i18n/locales/fr.json | 1 - src/renderer/src/i18n/locales/ja.json | 1 - src/renderer/src/i18n/locales/ko.json | 1 - src/renderer/src/i18n/locales/zh.json | 1 - 10 files changed, 26 insertions(+), 43 deletions(-) diff --git a/src/renderer/src/components/feature-tips/FeatureTipActions.tsx b/src/renderer/src/components/feature-tips/FeatureTipActions.tsx index 358e6a17e9c..a406ce163b8 100644 --- a/src/renderer/src/components/feature-tips/FeatureTipActions.tsx +++ b/src/renderer/src/components/feature-tips/FeatureTipActions.tsx @@ -29,6 +29,7 @@ export function FeatureTipActions({ onPrimaryAction: () => void onSkip: () => void showSkip?: boolean + /** Fills the footer row, or what a sibling button leaves of it. */ fullWidth?: boolean primaryButtonRef?: Ref /** Overrides the tip's CTA for tips whose button changes with their state. */ @@ -43,7 +44,7 @@ export function FeatureTipActions({ ) : null} + // Why: plain text, flush with the copy, so Enable Now reads as the only button. + ) : null} onOpenChange(false)} showSkip={false} - fullWidth={!offerChatMode} + fullWidth primaryButtonRef={primaryButtonRef} label={ offerChatMode diff --git a/src/renderer/src/i18n/locales/en.json b/src/renderer/src/i18n/locales/en.json index 491fec25791..237209950e7 100644 --- a/src/renderer/src/i18n/locales/en.json +++ b/src/renderer/src/i18n/locales/en.json @@ -19232,8 +19232,7 @@ "nativeChatUpgrade": { "eyebrow": "New", "title": "Native chat got an upgrade", - "chatModeNote": "New agent tabs still open in the terminal, as before.", - "okay": "Okay", + "leaveOff": "Leave Off", "enableNow": "Enable Now", "enableError": "Could not enable chat mode.", "intro": "New chats with supported agents now open in the upgraded chat view. To move between chat and CLI, open {{panel}} in the right sidebar:", diff --git a/src/renderer/src/i18n/locales/es.json b/src/renderer/src/i18n/locales/es.json index f24ff253a18..cccb35dfedb 100644 --- a/src/renderer/src/i18n/locales/es.json +++ b/src/renderer/src/i18n/locales/es.json @@ -19073,7 +19073,6 @@ "nativeChatUpgrade": { "eyebrow": "Nuevo", "title": "El chat nativo mejora", - "chatModeNote": "Las pestañas de agente nuevas siguen abriéndose en la terminal, como antes.", "intro": "Los chats nuevos de agentes compatibles usan la vista de chat mejorada. Para alternar entre chat y CLI, abre {{panel}} (barra lateral derecha):", "resumeInNativeChat": "{{action}} abre una conversación de CLI compatible en el chat nativo.", "resumeInCli": "{{action}} copia un chat de Claude/Codex a una CLI nueva sin tocar el original.", diff --git a/src/renderer/src/i18n/locales/fr.json b/src/renderer/src/i18n/locales/fr.json index f8a85623146..a93adf7b8e8 100644 --- a/src/renderer/src/i18n/locales/fr.json +++ b/src/renderer/src/i18n/locales/fr.json @@ -19050,7 +19050,6 @@ "nativeChatUpgrade": { "eyebrow": "Nouveau", "title": "Le chat natif évolue", - "chatModeNote": "Les nouveaux onglets d'agent s'ouvrent toujours dans le terminal, comme avant.", "intro": "Les nouveaux chats des agents compatibles utilisent la vue améliorée. Pour alterner entre chat et CLI, ouvrez {{panel}} (barre latérale droite) :", "resumeInNativeChat": "{{action}} ouvre une conversation CLI compatible dans le chat natif.", "resumeInCli": "{{action}} copie un chat Claude/Codex dans une CLI neuve ; l'original reste intact.", diff --git a/src/renderer/src/i18n/locales/ja.json b/src/renderer/src/i18n/locales/ja.json index 0dcb1829493..1a18afb58ee 100644 --- a/src/renderer/src/i18n/locales/ja.json +++ b/src/renderer/src/i18n/locales/ja.json @@ -19101,7 +19101,6 @@ "nativeChatUpgrade": { "eyebrow": "新機能", "title": "ネイティブチャットを刷新", - "chatModeNote": "新しい Agent タブは、これまでどおりターミナルで開きます。", "intro": "対応 Agent の新しいチャットはアップグレード版のチャットビューで開きます。チャットと CLI の切り替えは右サイドバーの{{panel}}から:", "resumeInNativeChat": "{{action}}: 対応する CLI の会話をネイティブチャットで開きます。", "resumeInCli": "{{action}}: Claude/Codex のチャットを新しい CLI セッションに複製します。元のチャットは残ります。", diff --git a/src/renderer/src/i18n/locales/ko.json b/src/renderer/src/i18n/locales/ko.json index 52ca48fe690..f65ed2dbef1 100644 --- a/src/renderer/src/i18n/locales/ko.json +++ b/src/renderer/src/i18n/locales/ko.json @@ -19131,7 +19131,6 @@ "nativeChatUpgrade": { "eyebrow": "새 기능", "title": "기본 채팅이 업그레이드되었습니다", - "chatModeNote": "새 Agent 탭은 이전처럼 터미널에서 열립니다.", "intro": "이제 지원되는 Agent의 새 채팅은 업그레이드된 채팅 보기에서 열립니다. 채팅과 CLI 사이를 오가려면 오른쪽 사이드바에서 {{panel}}을 여세요:", "resumeInNativeChat": "{{action}}: 지원되는 CLI 대화를 기본 채팅에서 엽니다.", "resumeInCli": "{{action}}: Claude 또는 Codex 채팅을 새 CLI 세션으로 복사합니다. 원래 채팅은 그대로 유지됩니다.", diff --git a/src/renderer/src/i18n/locales/zh.json b/src/renderer/src/i18n/locales/zh.json index 46bd58fb335..e87a95e6582 100644 --- a/src/renderer/src/i18n/locales/zh.json +++ b/src/renderer/src/i18n/locales/zh.json @@ -19115,7 +19115,6 @@ "nativeChatUpgrade": { "eyebrow": "新功能", "title": "本机聊天已升级", - "chatModeNote": "新的智能体标签页仍像以前一样在终端中打开。", "intro": "受支持智能体的新聊天现在会在升级后的聊天视图中打开。要在聊天和 CLI 之间切换,请打开右侧边栏中的{{panel}}:", "resumeInNativeChat": "{{action}}:在本机聊天中打开受支持的 CLI 对话。", "resumeInCli": "{{action}}:将 Claude 或 Codex 聊天复制到新的 CLI 会话中。原始聊天保持不变。",