Skip to content

Commit 8dbb338

Browse files
authored
Merge pull request #4654 from kobotoolbox/tone-down-over-limit-messages
Tone down over-limit messaging for now
2 parents 70f0349 + 7f5153c commit 8dbb338

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

jsapp/js/components/usageLimits/overLimitBanner.component.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ const OverLimitBanner = (props: OverLimitBannerProps) => {
2222
return (
2323
<div
2424
className={cx(styles.limitBannerContainer, {
25-
[styles.warningBanner]: props.warning,
25+
[styles.warningBanner]: /* props.warning */ true, // red is too scary for now
2626
})}
2727
>
2828
<Icon
29-
name={props.warning ? 'alert' : 'warning'}
29+
name={props.warning || true ? 'alert' : 'warning'} // less scary icon for now
3030
size='m'
31-
color={props.warning ? 'amber' : 'red'}
31+
color={props.warning || true ? 'amber' : 'red'} // less scary color for now
3232
/>
3333
<div className={styles.bannerContent}>
3434
{props.warning
@@ -71,8 +71,11 @@ const OverLimitBanner = (props: OverLimitBannerProps) => {
7171
<>
7272
<a href={`#${ACCOUNT_ROUTES.PLAN}`} className={styles.bannerLink}>
7373
{t('upgrade your plan')}
74-
</a>{' '}
75-
{t('to continue collecting data')}
74+
</a>{' as soon as possible or ' /* tone down the language for now */}
75+
<a href="https://www.kobotoolbox.org/contact/" target="_blank" className={styles.bannerLink}>
76+
{'contact us'}
77+
</a>
78+
{' to speak with our team'}
7679
{!props.usagePage && (
7780
<>
7881
{'. '}
@@ -103,7 +106,8 @@ const OverLimitBanner = (props: OverLimitBannerProps) => {
103106
{(!props.warning || props.usagePage) && (
104107
<Button
105108
type={'frame'}
106-
color={'dark-red'}
109+
/* color={'dark-red'} Perhaps should change permanently? */
110+
color={'dark-blue'}
107111
endIcon='arrow-right'
108112
size='s'
109113
label={t('Upgrade now')}

jsapp/js/components/usageLimits/overLimitModal.component.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,17 @@ function OverLimitModal(props: OverLimitModalProps) {
6767
<a href={`#${ACCOUNT_ROUTES.PLAN}`} className={styles.link}>
6868
{t('upgrade your plan')}
6969
</a>{' '}
70-
{t('as soon as possible. You can')}{' '}
70+
{'as soon as possible or ' /* tone down the language for now */}
71+
<a href="https://www.kobotoolbox.org/contact/" target="_blank" className={styles.link}>
72+
{'contact us'}
73+
</a>
74+
{' to speak with our team. You can '}
7175
<a href={`#${ACCOUNT_ROUTES.USAGE}`} className={styles.link}>
7276
{t('review your usage in account settings')}
7377
</a>
7478
{'.'}
7579
</div>
80+
{/* remove consequences for now; too scary
7681
<p className={cx(limitBannerContainer, styles.consequences)}>
7782
<Icon
7883
name='warning'
@@ -86,6 +91,7 @@ function OverLimitModal(props: OverLimitModalProps) {
8691
)}
8792
</span>
8893
</p>
94+
*/}
8995
</div>
9096
</KoboModalContent>
9197

0 commit comments

Comments
 (0)