Skip to content

Commit ae7a1ae

Browse files
committed
Update tooltip text
1 parent 0adf7dd commit ae7a1ae

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Diff for: packages/client/components/RetroGroupPhase.tsx

+7-6
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,14 @@ const RetroGroupPhase = (props: Props) => {
9898
MenuPosition.UPPER_CENTER
9999
)
100100
const showSuggestGroups = !resetReflectionGroups // resetReflectionGroups only exists after clicking suggest groups and is removed after clicking reset
101-
const tooltipSuggestGroupsText = `${
102-
!teamOverLimit
103-
? `Click to group cards by common topics. Don't worry, you'll be able to undo this! This is a premium feature that we'll share with you during your first few retros.`
104-
: 'Upgrade to a paid plan to use this feature.'
105-
}`
101+
const tooltipSuggestGroupsText = `Click to group cards by common topics. Don't worry, you'll be able to undo this! This is a premium feature that we'll share with you during your first few retros.`
106102
const tooltipResetText = `Reset your groups to the way they were before you clicked Suggest Groups`
107-
const tooltipText = showSuggestGroups ? tooltipSuggestGroupsText : tooltipResetText
103+
const teamOverLimitText = `You have reached the limit. Please upgrade to a paid plan to continue using this feature.`
104+
const tooltipText = showSuggestGroups
105+
? teamOverLimit
106+
? teamOverLimitText
107+
: tooltipSuggestGroupsText
108+
: tooltipResetText
108109

109110
const handleAutoGroupClick = () => {
110111
AutogroupMutation(atmosphere, {meetingId}, {onError, onCompleted})

Diff for: packages/client/types/constEnums.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ export const enum Threshold {
402402
MAX_POKER_SCALE_VALUES = 30,
403403
POKER_SCALE_VALUE_MAX_LENGTH = 3,
404404
MAX_POKER_DIMENSION_NAME = 50,
405-
MAX_QUAL_AI_MEETINGS = 0,
405+
MAX_QUAL_AI_MEETINGS = 3,
406406
MAX_REACTJIS = 12,
407407
MAX_STARTER_TIER_TEAMS = 2,
408408
MAX_POKER_STORIES = 50,

0 commit comments

Comments
 (0)