Skip to content

Commit 31a4185

Browse files
committed
feat(ai): strings and styles for compact start screen and chat input hint
- Compact start-screen layout: the Surprise Me card gives way to a footer demo link once the user is no longer new to the AI panel. - Ring and "Type here to get started" hint for the chat input, sharing the pulse and hint styles with the header's mode switcher (ai-pulse, ai-panel-hint, plus an -above variant that points down). - Remove the caption style under the CLI separator.
1 parent 8a28b56 commit 31a4185

2 files changed

Lines changed: 71 additions & 4 deletions

File tree

‎src/nls/root/strings.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2633,10 +2633,13 @@ define({
26332633
"AI_CHAT_MODE_CLI": "Claude Code CLI",
26342634
"AI_CHAT_MODE_CODEX_CLI": "Codex CLI",
26352635
"AI_CHAT_MODE_SWITCH_HINT": "Switch back anytime from here",
2636+
"AI_CHAT_START_TYPE_HINT": "Type here to get started",
26362637
"AI_CHAT_START_GREETING": "Hi {0},",
26372638
"AI_CHAT_START_TITLE": "What are we building today?",
26382639
"AI_CHAT_START_SURPRISE_TITLE": "Surprise Me",
26392640
"AI_CHAT_START_SURPRISE_DESC": "Show me what you can do",
2641+
"AI_CHAT_START_DEMO_LINK": "Want a demo? {0}.",
2642+
"AI_CHAT_START_DEMO_LINK_LABEL": "Surprise me",
26402643
"AI_CHAT_START_WORK_WITH": "Work with",
26412644
"AI_CHAT_START_CHAT_DESC": "Built-in chat with visual edits",
26422645
"AI_CHAT_START_CLI_SEPARATOR": "CLI · connects with {APP_NAME}",

‎src/styles/Extn-AIChatPanel.less‎

Lines changed: 68 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,27 @@
767767
}
768768
}
769769

770+
/* Compact layout, for people who are not new here: the modes lead and
771+
the Surprise Me demo is a footer link instead of a hero card. */
772+
.ai-start-footer.ai-start-demo {
773+
display: none;
774+
margin-top: 8px;
775+
}
776+
777+
&.ai-start-compact {
778+
.ai-start-surprise {
779+
display: none;
780+
}
781+
782+
.ai-start-footer.ai-start-demo {
783+
display: flex;
784+
}
785+
786+
.ai-start-section {
787+
margin-top: 4px;
788+
}
789+
}
790+
770791
/* Dimmed while its label is in flight to the header. */
771792
.ai-start-row-leaving {
772793
opacity: 0.25;
@@ -928,16 +949,42 @@
928949
}
929950

930951
.ai-chat-header .ai-chat-title-group {
931-
&.ai-title-pulse {
952+
&.ai-pulse {
932953
animation: ai-title-pulse 600ms ease-out 1;
933954
}
934955

935-
&.ai-title-pulse-double {
956+
&.ai-pulse-double {
936957
animation: ai-title-pulse 700ms ease-out 2;
937958
}
938959
}
939960

940-
.ai-mode-switch-hint {
961+
/* The same ring around the chat input, for the built-in chat. Shadow only:
962+
the input keeps its own background, and the ring is narrower because the
963+
panel edge is close by. */
964+
@keyframes ai-input-pulse {
965+
0% {
966+
box-shadow: 0 0 0 0 fade(@ai-start-accent, 65%);
967+
border-color: fade(@ai-start-accent, 70%);
968+
}
969+
100% {
970+
box-shadow: 0 0 0 7px fade(@ai-start-accent, 0%);
971+
border-color: fade(@ai-start-accent, 70%);
972+
}
973+
}
974+
975+
.ai-chat-input-area .ai-chat-input-wrap {
976+
&.ai-pulse {
977+
animation: ai-input-pulse 600ms ease-out 1;
978+
}
979+
980+
&.ai-pulse-double {
981+
animation: ai-input-pulse 700ms ease-out 2;
982+
}
983+
}
984+
985+
/* A pointer to part of the panel. Top level: appended to <body>. Sits under
986+
its anchor pointing up, or over it pointing down (-above). */
987+
.ai-panel-hint {
941988
position: fixed;
942989
z-index: 1999;
943990
transform: translateX(-50%);
@@ -954,7 +1001,7 @@
9541001
opacity: 0;
9551002
transition: opacity 0.2s ease, margin-top 0.2s ease;
9561003

957-
&.ai-mode-switch-hint-in {
1004+
&.ai-panel-hint-in {
9581005
opacity: 1;
9591006
margin-top: 0;
9601007
}
@@ -969,6 +1016,23 @@
9691016
border-top: 0;
9701017
border-bottom-color: #2f6fed;
9711018
}
1019+
1020+
&.ai-panel-hint-above {
1021+
transform: translate(-50%, -100%);
1022+
margin-top: -6px;
1023+
1024+
&.ai-panel-hint-in {
1025+
margin-top: 0;
1026+
}
1027+
1028+
&::before {
1029+
top: auto;
1030+
bottom: -5px;
1031+
border: 5px solid transparent;
1032+
border-bottom: 0;
1033+
border-top-color: #2f6fed;
1034+
}
1035+
}
9721036
}
9731037

9741038
/* ── Message list ───────────────────────────────────────────────────── */

0 commit comments

Comments
 (0)