Skip to content

Commit 2ec3dfc

Browse files
committed
ux changes
1 parent 01341d1 commit 2ec3dfc

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

chat-client/src/client/texts/paidTier.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,27 @@ import { ChatItem, ChatItemButton, ChatItemFormItem, ChatItemType, TextBasedForm
33
export const plansAndPricingTitle = 'Plans & Pricing'
44

55
export const upgradeQButton: ChatItemButton = {
6+
id: 'paidtier-upgrade-q',
67
flash: 'once',
7-
fillState: 'hover',
8+
fillState: 'always',
89
position: 'inside',
9-
id: 'paidtier-upgrade-q',
10+
icon: 'external',
1011
// https://github.com/aws/mynah-ui/blob/main/src/components/icon/icons/q.svg
1112
// https://github.com/aws/mynah-ui/blob/main/src/components/icon/icons/rocket.svg
1213
// icon: MynahIcons.Q,
1314
description: 'Upgrade to Amazon Q Pro',
1415
text: 'Upgrade Q',
16+
status: 'primary',
17+
disabled: false,
18+
}
19+
20+
export const learnMoreButton: ChatItemButton = {
21+
id: 'paidtier-upgrade-q-learnmore',
22+
fillState: 'hover',
23+
// position: 'inside',
24+
icon: 'external',
25+
description: 'Learn about Amazon Q Pro',
26+
text: 'Learn more',
1527
status: 'info',
1628
disabled: false,
1729
}
@@ -46,7 +58,7 @@ export const freeTierLimitSticky: Partial<ChatItem> = {
4658
messageId: 'freetier-limit-banner',
4759
title: 'FREE TIER LIMIT REACHED',
4860
body: "You've reached your invocation limit for this month. Upgrade to Amazon Q Pro. [Learn More...](https://aws.amazon.com/q/pricing/)",
49-
buttons: [upgradeQButton],
61+
buttons: [upgradeQButton, learnMoreButton],
5062
canBeDismissed: false,
5163
}
5264

@@ -81,7 +93,7 @@ export const upgradeSuccessSticky: Partial<ChatItem> = {
8193
export const paidTierInfoCard: ChatItem = {
8294
type: ChatItemType.ANSWER,
8395
title: 'UPGRADE TO AMAZON Q PRO',
84-
buttons: [upgradeQButton],
96+
buttons: [upgradeQButton, learnMoreButton],
8597
header: {
8698
icon: 'q',
8799
iconStatus: 'primary',

0 commit comments

Comments
 (0)