Skip to content

Commit

Permalink
feat: roll out ai icebreakers (#9660)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickoferrall committed Apr 23, 2024
1 parent 240e78d commit 898e1fd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
Expand Up @@ -87,7 +87,7 @@ const NewCheckInQuestion = (props: Props) => {
team {
organization {
featureFlags {
aiIcebreakers
noAISummary
}
}
}
Expand Down Expand Up @@ -227,7 +227,7 @@ const NewCheckInQuestion = (props: Props) => {
}
})
}
const shouldShowAiIcebreakers = featureFlags?.aiIcebreakers && isFacilitating
const hideAiIcebreaker = featureFlags.noAISummary || !isFacilitating

return (
<>
Expand Down Expand Up @@ -269,8 +269,8 @@ const NewCheckInQuestion = (props: Props) => {
</div>
)}
</QuestionBlock>
{shouldShowAiIcebreakers && (
<div className='flex flex-col gap-4 rounded-lg bg-slate-100 p-3'>
{!hideAiIcebreaker && (
<div className='flex flex-col gap-4 rounded-lg bg-slate-100 p-6'>
<div className='flex flex-col items-center justify-center gap-2'>
<div className='inline-flex gap-2'>
<div className='font-semibold'>Modify current icebreaker with AI</div>
Expand Down Expand Up @@ -298,7 +298,7 @@ const NewCheckInQuestion = (props: Props) => {
disabled={isModifyingCheckInQuestion}
onClick={() => modifyCheckInQuestion('FUNNY')}
>
More funny
Funnier
</Button>
<Button
variant='outline'
Expand Down
Expand Up @@ -13,7 +13,6 @@ enum OrganizationFeatureFlagsEnum {
singleColumnStandups
publicTeams
kudos
aiIcebreakers
aiTemplate
relatedDiscussions
}
Expand Down
Expand Up @@ -188,7 +188,6 @@ type OrganizationFeatureFlags {
singleColumnStandups: Boolean!
publicTeams: Boolean!
kudos: Boolean!
aiIcebreakers: Boolean!
aiTemplate: Boolean!
relatedDiscussions: Boolean!
}
Expand Up @@ -12,7 +12,6 @@ const OrganizationFeatureFlags: OrganizationFeatureFlagsResolvers = {
publicTeams: ({publicTeams}) => !!publicTeams,
singleColumnStandups: ({singleColumnStandups}) => !!singleColumnStandups,
kudos: ({kudos}) => !!kudos,
aiIcebreakers: ({aiIcebreakers}) => !!aiIcebreakers,
aiTemplate: ({aiTemplate}) => !!aiTemplate,
relatedDiscussions: ({relatedDiscussions}) => !!relatedDiscussions
}
Expand Down

0 comments on commit 898e1fd

Please sign in to comment.