Skip to content

Commit ac00b94

Browse files
authored
fix(amazonq): improve welcome screen and enable tips (#2035)
1 parent ac8dbe7 commit ac00b94

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

chat-client/src/client/tabs/tabFactory.ts

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,16 @@ export class TabFactory {
7474
...(this.agenticMode && pairProgrammingCardActive ? [programmerModeCard] : []),
7575
{
7676
type: ChatItemType.ANSWER,
77-
body: `<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 0 20px 0;">
78-
<div style="font-family: monospace; font-size: 16px; line-height: 1.2; margin-bottom: 8px;">
79-
<pre>• • •
80-
• •
81-
• • •
82-
• • •
83-
• • •</pre>
84-
</div>
85-
86-
<div style="text-align: center;">
77+
body: `<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 200px 0 20px 0;">
8778
88-
# Amazon Q
89-
**Coding Assistant Reimagined**
79+
<div style="font-size: 24px; margin-bottom: 12px;"><strong>Amazon Q</strong></div>
80+
<div style="background: rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 8px; margin: 4px 0; text-align: center;">
81+
<div style="font-size: 14px; margin-bottom: 4px;"><strong>Did you know?</strong></div>
82+
<div>${this.getRandomTip()}</div>
83+
</div>
9084
91-
💡 Select code and ask me to explain it, or type \`/\` for quick commands
85+
Select code & ask me to explain, debug or optimize it, or type \`/\` for quick actions
9286
93-
</div>
9487
</div>`,
9588
canBeVoted: false,
9689
},
@@ -188,6 +181,18 @@ export class TabFactory {
188181
return undefined
189182
}
190183

184+
private getRandomTip(): string {
185+
const hints = [
186+
'You can now see logs with 1-Click!',
187+
'MCP is available in Amazon Q!',
188+
'Pinned context is always included in future chat messages',
189+
'Create and add Saved Prompts using the @ context menu',
190+
]
191+
192+
const randomIndex = Math.floor(Math.random() * hints.length)
193+
return hints[randomIndex]
194+
}
195+
191196
private getTabBarButtons(): TabBarMainAction[] | undefined {
192197
const tabBarButtons = [...(this.defaultTabData.tabBarButtons ?? [])]
193198

0 commit comments

Comments
 (0)