Skip to content

Commit cf56288

Browse files
authored
chore: remove hackolade COMPASS-7974 (#5860)
* disable hackolade * remove hackolade completely
1 parent fcb0d9b commit cf56288

File tree

4 files changed

+1
-107
lines changed

4 files changed

+1
-107
lines changed

packages/compass-preferences-model/src/preferences-schema.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export type UserConfigurablePreferences = PermanentFeatureFlags &
5555
enableAggregationBuilderRunPipeline: boolean;
5656
enableAggregationBuilderExtraOptions: boolean;
5757
enableGenAISampleDocumentPassing: boolean;
58-
enableHackoladeBanner: boolean;
5958
enablePerformanceAdvisorBanner: boolean;
6059
maximumNumberOfActiveConnections?: number;
6160
};
@@ -720,18 +719,6 @@ export const storedUserPreferencesProps: Required<{
720719
type: 'boolean',
721720
},
722721

723-
enableHackoladeBanner: {
724-
ui: true,
725-
cli: true,
726-
global: true,
727-
description: {
728-
short:
729-
'Show Hackolade banner to users for data modeling and schema design',
730-
},
731-
validator: z.boolean().default(true),
732-
type: 'boolean',
733-
},
734-
735722
enablePerformanceAdvisorBanner: {
736723
ui: true,
737724
cli: true,

packages/compass-schema/src/components/compass-schema.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import {
2929
Badge,
3030
Icon,
3131
} from '@mongodb-js/compass-components';
32-
import { HackoladePromoBanner } from './promo-banner';
3332
import type { configureActions } from '../actions';
3433
import { usePreference } from 'compass-preferences-model/provider';
3534
import { useConnectionInfo } from '@mongodb-js/compass-connections/provider';
@@ -65,6 +64,7 @@ const contentStyles = css({
6564
display: 'flex',
6665
flexDirection: 'column',
6766
gap: spacing[3],
67+
height: '100%',
6868
});
6969

7070
const insightsBadgeStyles = css({
@@ -386,7 +386,6 @@ const Schema: React.FunctionComponent<{
386386

387387
const outdated = useIsLastAppliedQueryOutdated('schema');
388388

389-
const enableHackoladeBanner = usePreference('enableHackoladeBanner');
390389
const enablePerformanceAdvisorBanner = usePreference(
391390
'enablePerformanceAdvisorBanner'
392391
);
@@ -408,7 +407,6 @@ const Schema: React.FunctionComponent<{
408407
>
409408
<div className={contentStyles}>
410409
{enablePerformanceAdvisorBanner && <PerformanceAdvisorBanner />}
411-
{enableHackoladeBanner && <HackoladePromoBanner />}
412410
{analysisState === ANALYSIS_STATE_INITIAL && (
413411
<InitialScreen onApplyClicked={onApplyClicked} />
414412
)}

packages/compass-schema/src/components/promo-banner.tsx

Lines changed: 0 additions & 90 deletions
This file was deleted.

packages/compass-web/src/entrypoint.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ const CompassWeb = ({
269269
enableImportExport: false,
270270
enableGenAIFeatures: false,
271271
enableNewMultipleConnectionSystem: false,
272-
enableHackoladeBanner: false,
273272
enablePerformanceAdvisorBanner: true,
274273
cloudFeatureRolloutAccess: {
275274
GEN_AI_COMPASS: false,

0 commit comments

Comments
 (0)