Skip to content

Commit bf6fec9

Browse files
committed
feat(ai-chat): redesign install + setup screens to match login layout
The CLI-not-installed and Claude-needs-setup screens now share the .ai-placeholder layout with the login/placeholder screens — left- aligned header, intro video, body copy, full-width CTA, footer help link — for one consistent visual language across the four 'AI gated' surfaces. Per designer spec, the primary CTAs on these setup-on-dark screens flip from blue to a white pill (kept blue on the login/placeholder to keep the desktop-app upsell action distinct). Selector chains .btn.btn-primary.ai-placeholder-cta-on-dark to beat the dark-mode .dark .btn.btn-primary !important rule that would otherwise force blue. Adds a .ai-placeholder-cta-secondary outlined style for the 'Add Custom Provider' option on the setup screen, plus a centered 'Need Help? Learn More' footer link. Strings: drops the inline learn-more anchors in CLI_INSTALL_MSG / CLAUDE_LOGIN_MSG (footer link replaces them), updates INTRO_CONFIGURE_DESC to match the new subtitle copy, adds SETUP_NEED_HELP and SETUP_LEARN_MORE.
1 parent d04be28 commit bf6fec9

2 files changed

Lines changed: 70 additions & 3 deletions

File tree

src/nls/root/strings.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,15 +2160,17 @@ define({
21602160
"AI_CHAT_SEND_TITLE": "Send message",
21612161
"AI_CHAT_STOP_TITLE": "Stop generation (Esc)",
21622162
"AI_CHAT_CLI_NOT_FOUND": "Claude Code Not Installed",
2163-
"AI_CHAT_CLI_INSTALL_MSG": "Claude Code CLI must be installed on your system to use AI features in {APP_NAME}. <a class='ai-learn-more-link' href='#'>Learn more</a>",
2163+
"AI_CHAT_CLI_INSTALL_MSG": "Claude Code CLI must be installed on your system to use AI features in {APP_NAME}.",
21642164
"AI_CHAT_CLI_INSTALL_BTN": "Install Claude Code",
21652165
"AI_CHAT_CLI_INSTALLING": "Installing…",
21662166
"AI_CHAT_CLI_INSTALLING_MSG": "Installing Claude Code, please wait. This may take a while...",
21672167
"AI_CHAT_CLI_RESTART_NOTE": "Restart {APP_NAME} after installation completes.",
21682168
"AI_CHAT_CLAUDE_LOGIN_TITLE": "Setup Claude Code",
2169-
"AI_CHAT_CLAUDE_LOGIN_MSG": "Claude Code is installed but needs to be configured. <a class='ai-learn-more-link' href='#'>Learn more</a>",
2169+
"AI_CHAT_CLAUDE_LOGIN_MSG": "Claude Code is installed but it needs configuration.",
21702170
"AI_CHAT_CLAUDE_LOGIN_BTN": "Setup Claude Code",
21712171
"AI_CHAT_ADD_PROVIDER_BTN": "Add Custom Provider",
2172+
"AI_CHAT_SETUP_NEED_HELP": "Need Help?",
2173+
"AI_CHAT_SETUP_LEARN_MORE": "Learn More",
21722174
"AI_CHAT_RETRY": "Retry",
21732175
"AI_CHAT_DESKTOP_ONLY": "AI features require the {APP_NAME} desktop app. Download it to get started.",
21742176
"AI_CHAT_DOWNLOAD_BTN": "Download Desktop App",
@@ -2185,7 +2187,7 @@ define({
21852187
"AI_CHAT_LOGIN_BTN": "Sign In",
21862188
"AI_CHAT_INTRO_GUEST_TITLE": "Design layouts, fix bugs, and build faster with AI",
21872189
"AI_CHAT_INTRO_CONFIGURE_TITLE": "Getting started with Claude Code",
2188-
"AI_CHAT_INTRO_CONFIGURE_DESC": "See this short video on how to set up AI",
2190+
"AI_CHAT_INTRO_CONFIGURE_DESC": "Watch this short video to set up AI in {APP_NAME}",
21892191
"AI_CHAT_UPSELL_TITLE": "Phoenix Pro + AI",
21902192
"AI_CHAT_UPSELL_MESSAGE": "AI features are available with Phoenix Pro.",
21912193
"AI_CHAT_UPSELL_BTN": "Get Phoenix Pro",

src/styles/Extn-AIChatPanel.less

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2990,6 +2990,71 @@
29902990
margin: 4px 0 0;
29912991
}
29922992

2993+
/* Setup variant of the primary CTA: white pill on the dark panel, used
2994+
on the "Install Claude Code" / "Setup Claude Code" screens. The
2995+
placeholder/login CTA stays blue — only these setup-on-dark surfaces
2996+
flip to white per the designer spec. The selector chains both .btn
2997+
and .btn-primary classes (specificity 0,6,0) to beat the
2998+
`.dark .ai-chat-panel .ai-placeholder .btn.btn-primary` rule that
2999+
would otherwise force blue in the default dark theme. */
3000+
.ai-chat-panel .ai-placeholder .btn.btn-primary.ai-placeholder-cta.ai-placeholder-cta-on-dark {
3001+
background-color: #ffffff !important;
3002+
background-image: none !important;
3003+
color: #1a1a1a !important;
3004+
border: 1px solid rgba(0, 0, 0, 0.08) !important;
3005+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
3006+
3007+
&:hover {
3008+
background-color: #f4f4f4 !important;
3009+
}
3010+
3011+
&:active {
3012+
background-color: #e8e8e8 !important;
3013+
}
3014+
}
3015+
3016+
/* Outlined / muted secondary CTA — sits directly under the white
3017+
primary on the setup screen for the "Add Custom Provider" alternative. */
3018+
.ai-chat-panel .ai-placeholder .ai-placeholder-cta-secondary {
3019+
width: 100%;
3020+
padding: 12px 18px;
3021+
font-size: 13.5px;
3022+
font-weight: 500;
3023+
line-height: 1.3;
3024+
border-radius: 8px;
3025+
margin: 8px 0 0;
3026+
background: transparent;
3027+
border: 1px solid rgba(255, 255, 255, 0.12);
3028+
color: @project-panel-text-1;
3029+
cursor: pointer;
3030+
transition: background-color 0.15s ease, border-color 0.15s ease;
3031+
3032+
&:hover {
3033+
background-color: rgba(255, 255, 255, 0.04);
3034+
border-color: rgba(255, 255, 255, 0.2);
3035+
}
3036+
}
3037+
3038+
/* Centered "Need Help? Learn More" footer below the setup CTAs. */
3039+
.ai-chat-panel .ai-placeholder-help {
3040+
margin-top: 14px;
3041+
text-align: center;
3042+
font-size: 12.5px;
3043+
color: @project-panel-text-2;
3044+
opacity: 0.75;
3045+
}
3046+
3047+
.ai-chat-panel .ai-placeholder-help .ai-learn-more-link {
3048+
color: @bc-primary-btn-bg;
3049+
text-decoration: none;
3050+
margin-left: 4px;
3051+
cursor: pointer;
3052+
3053+
&:hover {
3054+
text-decoration: underline;
3055+
}
3056+
}
3057+
29933058
/* Re-apply Phoenix's standard `.btn .btn-primary` look inside the
29943059
.ai-unavailable intro states. The blanket reset below (`.ai-chat-panel
29953060
.btn-primary`) blanks bootstrap's button styling so chat-area buttons

0 commit comments

Comments
 (0)