Skip to content

Commit 1c92249

Browse files
authored
fix: updating sticky card css #1586
1 parent 7365c99 commit 1c92249

File tree

1 file changed

+8
-28
lines changed

1 file changed

+8
-28
lines changed

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

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChatItem, ChatItemButton, ChatItemFormItem, ChatItemType, TextBasedFormItem } from '@aws/mynah-ui'
1+
import { ChatItem, ChatItemButton, ChatItemType, TextBasedFormItem } from '@aws/mynah-ui'
22

33
export const plansAndPricingTitle = 'Plans & Pricing'
44
export const paidTierLearnMoreUrl = 'https://aws.amazon.com/q/pricing/'
@@ -41,29 +41,8 @@ export const continueUpgradeQButton: ChatItemButton = {
4141
disabled: false,
4242
}
4343

44-
export const freeTierLimitCard: ChatItem = {
45-
type: ChatItemType.ANSWER,
46-
// Note: starts with a non-breaking space to workaround https://github.com/aws/mynah-ui/issues/349
47-
title: '  Monthly request limit reached',
48-
messageId: 'freetier-limit',
49-
status: 'warning',
50-
buttons: [],
51-
icon: 'warning',
52-
// iconStatus: 'success',
53-
header: {
54-
icon: 'warning',
55-
iconStatus: 'warning',
56-
body: `Upgrade to ${qProName}`,
57-
},
58-
canBeDismissed: false,
59-
fullWidth: true,
60-
body: `To increase your limit, subscribe to ${qProName}. During the upgrade, you'll be asked to link your Builder ID to the AWS account that will be billed the monthly subscription fee. Learn more about [pricing >](${paidTierLearnMoreUrl})`,
61-
}
62-
6344
export const freeTierLimitDirective: ChatItem = {
6445
type: ChatItemType.DIRECTIVE,
65-
// title: '...',
66-
// header: { },
6746
messageId: 'freetier-limit-directive',
6847
fullWidth: true,
6948
contentHorizontalAlignment: 'center',
@@ -74,18 +53,19 @@ export const freeTierLimitDirective: ChatItem = {
7453
/** "Banner" (sticky card) shown above the chat prompt. */
7554
export const freeTierLimitSticky: Partial<ChatItem> = {
7655
messageId: 'freetier-limit-banner',
77-
title: freeTierLimitCard.title,
78-
body: freeTierLimitCard.body,
56+
body: `To increase your limit, subscribe to ${qProName}. During the upgrade, you'll be asked to link your Builder ID to the AWS account that will be billed the monthly subscription fee. Learn more about [pricing &gt;](${paidTierLearnMoreUrl})`,
7957
buttons: [upgradeQButton],
58+
header: {
59+
icon: 'warning',
60+
iconStatus: 'warning',
61+
body: '### Monthly request limit reached',
62+
},
8063
canBeDismissed: false,
81-
icon: 'warning',
82-
// iconStatus: 'warning',
8364
}
8465

8566
export const upgradePendingSticky: Partial<ChatItem> = {
8667
messageId: 'upgrade-pending-banner',
87-
// Note: starts with a non-breaking space to workaround https://github.com/aws/mynah-ui/issues/349
88-
body: '  Waiting for subscription status...',
68+
body: 'Waiting for subscription status...',
8969
status: 'info',
9070
buttons: [],
9171
canBeDismissed: true,

0 commit comments

Comments
 (0)