Skip to content

Commit

Permalink
chore: remove hackolade COMPASS-7974 (#5860)
Browse files Browse the repository at this point in the history
* disable hackolade

* remove hackolade completely
  • Loading branch information
mabaasit authored Jun 5, 2024
1 parent fcb0d9b commit cf56288
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 107 deletions.
13 changes: 0 additions & 13 deletions packages/compass-preferences-model/src/preferences-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export type UserConfigurablePreferences = PermanentFeatureFlags &
enableAggregationBuilderRunPipeline: boolean;
enableAggregationBuilderExtraOptions: boolean;
enableGenAISampleDocumentPassing: boolean;
enableHackoladeBanner: boolean;
enablePerformanceAdvisorBanner: boolean;
maximumNumberOfActiveConnections?: number;
};
Expand Down Expand Up @@ -720,18 +719,6 @@ export const storedUserPreferencesProps: Required<{
type: 'boolean',
},

enableHackoladeBanner: {
ui: true,
cli: true,
global: true,
description: {
short:
'Show Hackolade banner to users for data modeling and schema design',
},
validator: z.boolean().default(true),
type: 'boolean',
},

enablePerformanceAdvisorBanner: {
ui: true,
cli: true,
Expand Down
4 changes: 1 addition & 3 deletions packages/compass-schema/src/components/compass-schema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import {
Badge,
Icon,
} from '@mongodb-js/compass-components';
import { HackoladePromoBanner } from './promo-banner';
import type { configureActions } from '../actions';
import { usePreference } from 'compass-preferences-model/provider';
import { useConnectionInfo } from '@mongodb-js/compass-connections/provider';
Expand Down Expand Up @@ -65,6 +64,7 @@ const contentStyles = css({
display: 'flex',
flexDirection: 'column',
gap: spacing[3],
height: '100%',
});

const insightsBadgeStyles = css({
Expand Down Expand Up @@ -386,7 +386,6 @@ const Schema: React.FunctionComponent<{

const outdated = useIsLastAppliedQueryOutdated('schema');

const enableHackoladeBanner = usePreference('enableHackoladeBanner');
const enablePerformanceAdvisorBanner = usePreference(
'enablePerformanceAdvisorBanner'
);
Expand All @@ -408,7 +407,6 @@ const Schema: React.FunctionComponent<{
>
<div className={contentStyles}>
{enablePerformanceAdvisorBanner && <PerformanceAdvisorBanner />}
{enableHackoladeBanner && <HackoladePromoBanner />}
{analysisState === ANALYSIS_STATE_INITIAL && (
<InitialScreen onApplyClicked={onApplyClicked} />
)}
Expand Down
90 changes: 0 additions & 90 deletions packages/compass-schema/src/components/promo-banner.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/compass-web/src/entrypoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ const CompassWeb = ({
enableImportExport: false,
enableGenAIFeatures: false,
enableNewMultipleConnectionSystem: false,
enableHackoladeBanner: false,
enablePerformanceAdvisorBanner: true,
cloudFeatureRolloutAccess: {
GEN_AI_COMPASS: false,
Expand Down

0 comments on commit cf56288

Please sign in to comment.