Skip to content

Commit

Permalink
feat: release recurring retros
Browse files Browse the repository at this point in the history
Remove the feature flag and make it available to everyone.
  • Loading branch information
Dschoordsch committed Apr 11, 2024
1 parent 92a1dbd commit 46a800a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ const ActivityDetailsSidebar = (props: Props) => {
orgId
organization {
name
featureFlags {
recurringRetros
}
}
retroSettings: meetingSettings(meetingType: retrospective) {
...NewMeetingSettingsToggleCheckIn_settings
Expand Down Expand Up @@ -122,9 +119,9 @@ const ActivityDetailsSidebar = (props: Props) => {
selectedTemplate.scope === 'PUBLIC'
? teams
: selectedTemplate.scope === 'ORGANIZATION'
? teams.filter((team) => team.orgId === selectedTemplate.orgId)
: // it is a team-scoped template, templateTeam must exist
[templateTeam!]
? teams.filter((team) => team.orgId === selectedTemplate.orgId)
: // it is a team-scoped template, templateTeam must exist
[templateTeam!]

const availableTeamsRef = useRef(availableTeams)

Expand Down Expand Up @@ -246,15 +243,13 @@ const ActivityDetailsSidebar = (props: Props) => {
type === 'retrospective'
? 'Retro'
: type === 'teamPrompt'
? 'Standup'
: type === 'poker'
? 'Poker'
: type === 'action'
? 'Check-in'
: 'Meeting'
const withRecurrence =
type === 'teamPrompt' ||
(selectedTeam.organization.featureFlags.recurringRetros && type === 'retrospective')
? 'Standup'
: type === 'poker'
? 'Poker'
: type === 'action'
? 'Check-in'
: 'Meeting'
const withRecurrence = type === 'teamPrompt' || type === 'retrospective'

return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ enum OrganizationFeatureFlagsEnum {
kudos
aiIcebreakers
aiTemplate
recurringRetros
relatedDiscussions
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,5 @@ type OrganizationFeatureFlags {
kudos: Boolean!
aiIcebreakers: Boolean!
aiTemplate: Boolean!
recurringRetros: Boolean!
relatedDiscussions: Boolean!
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const OrganizationFeatureFlags: OrganizationFeatureFlagsResolvers = {
kudos: ({kudos}) => !!kudos,
aiIcebreakers: ({aiIcebreakers}) => !!aiIcebreakers,
aiTemplate: ({aiTemplate}) => !!aiTemplate,
recurringRetros: ({recurringRetros}) => !!recurringRetros,
relatedDiscussions: ({relatedDiscussions}) => !!relatedDiscussions
}

Expand Down

0 comments on commit 46a800a

Please sign in to comment.