Skip to content

Commit 7f73f76

Browse files
committed
#RI-6036 - remove ai message new feature popup
1 parent 3a7a6bb commit 7f73f76

File tree

5 files changed

+1
-163
lines changed

5 files changed

+1
-163
lines changed

redisinsight/ui/src/components/hightlighted-feature/components/ai-chatbot-message/AiChatbotMessage.spec.tsx

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

redisinsight/ui/src/components/hightlighted-feature/components/ai-chatbot-message/AiChatbotMessage.tsx

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

redisinsight/ui/src/components/hightlighted-feature/components/ai-chatbot-message/index.ts

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

redisinsight/ui/src/components/hightlighted-feature/components/ai-chatbot-message/styles.module.scss

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

redisinsight/ui/src/pages/home/HomePage.tsx

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import DatabasePanel from 'uiSrc/pages/home/components/database-panel'
1313
import { clusterSelector, resetDataRedisCluster, resetInstancesRedisCluster, } from 'uiSrc/slices/instances/cluster'
1414
import { Nullable, setTitle } from 'uiSrc/utils'
1515
import { HomePageTemplate } from 'uiSrc/templates'
16-
import { BrowserStorageItem, FeatureFlags } from 'uiSrc/constants'
16+
import { BrowserStorageItem } from 'uiSrc/constants'
1717
import { resetKeys } from 'uiSrc/slices/browser/keys'
1818
import { resetCliHelperSettings, resetCliSettingsAction } from 'uiSrc/slices/cli/cli-settings'
1919
import { resetRedisearchKeysData } from 'uiSrc/slices/browser/redisearch'
@@ -34,11 +34,6 @@ import { sendEventTelemetry, sendPageViewTelemetry, TelemetryEvent, TelemetryPag
3434
import { appRedirectionSelector, setUrlHandlingInitialState } from 'uiSrc/slices/app/url-handling'
3535
import { UrlHandlingActions } from 'uiSrc/slices/interfaces/urlHandling'
3636
import { AddDbType } from 'uiSrc/pages/home/constants'
37-
import HighlightedFeature from 'uiSrc/components/hightlighted-feature/HighlightedFeature'
38-
import { BUILD_FEATURES } from 'uiSrc/constants/featuresHighlighting'
39-
import AiChatbotMessage from 'uiSrc/components/hightlighted-feature/components/ai-chatbot-message'
40-
import { appFeatureFlagsFeaturesSelector, appFeatureHighlightingSelector } from 'uiSrc/slices/app/features'
41-
import { getHighlightingFeatures, isAnyFeatureEnabled } from 'uiSrc/utils/features'
4237

4338
import DatabasesList from './components/database-list-component'
4439
import DatabaseListHeader from './components/database-list-header'
@@ -55,15 +50,6 @@ enum RightPanelName {
5550
const HomePage = () => {
5651
const [width, setWidth] = useState(0)
5752
const [openRightPanel, setOpenRightPanel] = useState<Nullable<RightPanelName>>(null)
58-
59-
const { features } = useSelector(appFeatureHighlightingSelector)
60-
const { aiChatbot: aiChatbotHighlighting } = getHighlightingFeatures(features)
61-
const {
62-
[FeatureFlags.databaseChat]: databaseChatFeature,
63-
[FeatureFlags.documentationChat]: documentationChatFeature,
64-
} = useSelector(appFeatureFlagsFeaturesSelector)
65-
const isAnyChatAvailable = isAnyFeatureEnabled([databaseChatFeature, documentationChatFeature])
66-
6753
const initialDbTypeRef = useRef<AddDbType>(AddDbType.manual)
6854

6955
const dispatch = useDispatch()
@@ -234,14 +220,7 @@ const HomePage = () => {
234220

235221
return (
236222
<HomePageTemplate>
237-
<HighlightedFeature
238-
isHighlight={isAnyChatAvailable && aiChatbotHighlighting}
239-
{...(BUILD_FEATURES.aiChatbot || {})}
240-
>
241-
<AiChatbotMessage />
242-
</HighlightedFeature>
243223
<div className={styles.pageWrapper}>
244-
245224
<EuiPage className={styles.page}>
246225
<EuiPageBody component="div">
247226
<DatabaseListHeader

0 commit comments

Comments
 (0)