Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: roll out ai icebreakers #9660

Merged
merged 3 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ enum OrganizationFeatureFlagsEnum {
singleColumnStandups
publicTeams
kudos
aiIcebreakers
aiTemplate
relatedDiscussions
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ type OrganizationFeatureFlags {
singleColumnStandups: Boolean!
publicTeams: Boolean!
kudos: Boolean!
aiIcebreakers: Boolean!
aiTemplate: Boolean!
relatedDiscussions: Boolean!
}
Original file line number Diff line number Diff line change
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
Loading