diff --git a/packages/compass-assistant/src/compass-assistant-provider.spec.tsx b/packages/compass-assistant/src/compass-assistant-provider.spec.tsx index bee716f208f..84113ec99b3 100644 --- a/packages/compass-assistant/src/compass-assistant-provider.spec.tsx +++ b/packages/compass-assistant/src/compass-assistant-provider.spec.tsx @@ -183,24 +183,6 @@ describe('useAssistantActions', function () { }, }); - expect(Object.keys(result.current)).to.have.length.greaterThan(0); - expect(result.current.interpretExplainPlan).to.be.a('function'); - expect(result.current.interpretConnectionError).to.be.a('function'); - expect(result.current.tellMoreAboutInsight).to.be.undefined; - }); - - it('returns actions when both AI features and assistant flag AND enablePerformanceInsightsEntrypoints are enabled', function () { - const { result } = renderHook(() => useAssistantActions(), { - wrapper: createWrapper(createMockChat({ messages: [] })), - preferences: { - enableAIAssistant: true, - enablePerformanceInsightsEntrypoints: true, - enableGenAIFeatures: true, - enableGenAIFeaturesAtlasOrg: true, - cloudFeatureRolloutAccess: { GEN_AI_COMPASS: true }, - }, - }); - expect(Object.keys(result.current)).to.have.length.greaterThan(0); expect(result.current.interpretExplainPlan).to.be.a('function'); expect(result.current.interpretConnectionError).to.be.a('function'); diff --git a/packages/compass-assistant/src/compass-assistant-provider.tsx b/packages/compass-assistant/src/compass-assistant-provider.tsx index b8d75aec37b..f37ff61884c 100644 --- a/packages/compass-assistant/src/compass-assistant-provider.tsx +++ b/packages/compass-assistant/src/compass-assistant-provider.tsx @@ -131,9 +131,6 @@ export function useAssistantActions(): AssistantActionsType { const actions = useContext(AssistantActionsContext); const isAIFeatureEnabled = useIsAIFeatureEnabled(); const isAssistantFlagEnabled = usePreference('enableAIAssistant'); - const isPerformanceInsightEntrypointsEnabled = usePreference( - 'enablePerformanceInsightsEntrypoints' - ); if (!isAIFeatureEnabled || !isAssistantFlagEnabled) { return { @@ -150,9 +147,7 @@ export function useAssistantActions(): AssistantActionsType { return { interpretExplainPlan, interpretConnectionError, - tellMoreAboutInsight: isPerformanceInsightEntrypointsEnabled - ? tellMoreAboutInsight - : undefined, + tellMoreAboutInsight, getIsAssistantEnabled: () => true, }; } diff --git a/packages/compass-preferences-model/src/feature-flags.ts b/packages/compass-preferences-model/src/feature-flags.ts index 2037f43ca91..070f8dfbcf2 100644 --- a/packages/compass-preferences-model/src/feature-flags.ts +++ b/packages/compass-preferences-model/src/feature-flags.ts @@ -193,18 +193,6 @@ export const FEATURE_FLAG_DEFINITIONS = [ }, }, - /* - * Feature flag for AI Assistant's performance insight entrypoints. - */ - { - name: 'enablePerformanceInsightsEntrypoints', - stage: 'development', - atlasCloudFeatureFlagName: null, - description: { - short: 'Enable the performance insights AI Assistant entrypoints', - }, - }, - /* * Feature flag for AI Assistant's tool calling feature. */