Skip to content

Commit bab6311

Browse files
committed
feat(settings-sidebar): remove team gate from email polling, keep only mailer max gate
1 parent 1fd4bdf commit bab6311

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

apps/sim/app/workspace/[workspaceId]/settings/navigation.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,8 @@ export const allNavigationItems: NavigationItem[] = [
146146
label: 'Email Polling',
147147
icon: Mail,
148148
section: 'system',
149-
requiresTeam: true,
150149
requiresHosted: true,
151150
selfHostedOverride: isCredentialSetsEnabled,
152-
showWhenLocked: true,
153151
},
154152
{ id: 'recently-deleted', label: 'Recently Deleted', icon: TrashOutline, section: 'system' },
155153
{

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-sidebar/settings-sidebar.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@ export function SettingsSidebar({
103103
return true
104104
}
105105

106-
if (item.requiresTeam && !isOrgAdminOrOwner) {
107-
return false
108-
}
109-
if (item.requiresTeam && !hasTeamPlan && !item.showWhenLocked) {
106+
if (item.requiresTeam && (!hasTeamPlan || !isOrgAdminOrOwner)) {
110107
return false
111108
}
112109

@@ -260,9 +257,7 @@ export function SettingsSidebar({
260257
{sectionItems.map((item) => {
261258
const Icon = item.icon
262259
const active = activeSection === item.id
263-
const isLocked =
264-
(item.requiresMax && !subscriptionAccess.hasUsableMaxAccess) ||
265-
(item.requiresTeam && !hasTeamPlan && item.showWhenLocked)
260+
const isLocked = item.requiresMax && !subscriptionAccess.hasUsableMaxAccess
266261
const itemClassName = cn(
267262
'group mx-[2px] flex h-[30px] items-center gap-[8px] rounded-[8px] px-[8px] text-[14px] hover:bg-[var(--surface-active)]',
268263
active && 'bg-[var(--surface-active)]'
@@ -275,7 +270,7 @@ export function SettingsSidebar({
275270
</span>
276271
{isLocked && (
277272
<span className='ml-auto shrink-0 rounded-[3px] bg-[var(--surface-5)] px-[4px] py-[1px] font-medium text-[9px] text-[var(--text-icon)] uppercase tracking-wide'>
278-
{item.requiresMax ? 'Max' : 'Team'}
273+
Max
279274
</span>
280275
)}
281276
</>

0 commit comments

Comments
 (0)