Skip to content
Closed
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
1 change: 0 additions & 1 deletion src/app/dashboard/[teamSlug]/agents/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export default async function AgentsPage({ params }: AgentsPageProps) {
},
team: {
id: teamId.data,
slug: teamSlug,
},
})

Expand Down
1 change: 0 additions & 1 deletion src/app/dashboard/[teamSlug]/byoc/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default async function ByocPage({ params }: ByocPageProps) {
},
team: {
id: teamId.data,
slug: teamSlug,
},
})

Expand Down
1 change: 0 additions & 1 deletion src/app/dashboard/[teamSlug]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default async function DashboardLayout({
? {
id: team.id,
name: team.name,
slug: teamSlug,
}
: undefined

Expand Down
5 changes: 1 addition & 4 deletions src/app/dashboard/[teamSlug]/usage/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ export default async function UsagePage({
id: authContext.user.id,
email: authContext.user.email ?? undefined,
},
team:
teamId.ok && teamId.data
? { id: teamId.data, slug: teamSlug }
: undefined,
team: teamId.ok && teamId.data ? { id: teamId.data } : undefined,
})

const result = await getUsage({ teamSlug })
Expand Down
1 change: 0 additions & 1 deletion src/core/modules/feature-flags/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export type FeatureFlagContext = {
}
team?: {
id: string
slug?: string
name?: string
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export function createOpenFeatureEvaluationContext(
targetingKey: context.team.id,
...definedStringAttributes({
name: context.team.name,
slug: context.team.slug,
}),
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export async function isNewSandboxListEnabled(teamSlug: string) {
id: authContext.user.id,
email: authContext.user.email ?? undefined,
},
team: teamId ? { id: teamId, slug: teamSlug } : undefined,
team: teamId ? { id: teamId } : undefined,
})
}
2 changes: 0 additions & 2 deletions tests/unit/feature-flags.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const context = {
},
team: {
id: 'team-id',
slug: 'team-slug',
name: 'Team Name',
},
} satisfies FeatureFlagContext
Expand Down Expand Up @@ -192,7 +191,6 @@ describe('createOpenFeatureEvaluationContext', () => {
team: {
targetingKey: 'team-id',
name: 'Team Name',
slug: 'team-slug',
},
})
})
Expand Down
Loading