Skip to content

Commit a2a31cd

Browse files
committed
#RI-4520 - remove highlighting from bulk upload
1 parent ded43a6 commit a2a31cd

File tree

3 files changed

+13
-36
lines changed

3 files changed

+13
-36
lines changed

redisinsight/ui/src/constants/featuresHighlighting.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,5 @@ interface BuildHighlightingFeature {
1010
}
1111

1212
export const BUILD_FEATURES: Record<string, BuildHighlightingFeature> = {
13-
bulkUpload: {
14-
type: 'tooltip',
15-
title: (<span><i>New:</i> Bulk Upload</span>),
16-
content: 'Upload your data in bulk from a file.',
17-
}
13+
1814
} as const

redisinsight/ui/src/pages/browser/components/keys-header/KeysHeader.tsx

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,12 @@ import { isRedisearchAvailable } from 'uiSrc/utils'
2424

2525
import { OnboardingStepName, OnboardingSteps } from 'uiSrc/constants/onboarding'
2626
import {
27-
appFeatureHighlightingSelector,
2827
incrementOnboardStepAction,
2928
removeFeatureFromHighlighting
3029
} from 'uiSrc/slices/app/features'
3130
import { OnboardingTour } from 'uiSrc/components'
3231
import { ONBOARDING_FEATURES } from 'uiSrc/components/onboarding-features'
3332
import { setBulkActionType } from 'uiSrc/slices/browser/bulkActions'
34-
import { BUILD_FEATURES } from 'uiSrc/constants/featuresHighlighting'
35-
import HighlightedFeature from 'uiSrc/components/hightlighted-feature/HighlightedFeature'
36-
import { getHighlightingFeatures } from 'uiSrc/utils/highlighting'
3733
import AutoRefresh from '../auto-refresh'
3834
import FilterKeyType from '../filter-key-type'
3935
import RediSearchIndexesList from '../redisearch-key-list'
@@ -84,8 +80,6 @@ const KeysHeader = (props: Props) => {
8480
const { id: instanceId, modules } = useSelector(connectedInstanceSelector)
8581
const { viewType, searchMode, isFiltered } = useSelector(keysSelector)
8682
const { selectedIndex } = useSelector(redisearchSelector)
87-
const { features } = useSelector(appFeatureHighlightingSelector)
88-
const { bulkUpload: bulkUploadHighlighting } = getHighlightingFeatures(features)
8983

9084
const rootDivRef: Ref<HTMLDivElement> = useRef(null)
9185

@@ -311,27 +305,18 @@ const KeysHeader = (props: Props) => {
311305
)
312306

313307
const BulkActionsBtn = (
314-
<HighlightedFeature
315-
isHighlight={bulkUploadHighlighting}
316-
title={BUILD_FEATURES?.bulkUpload?.title}
317-
content={BUILD_FEATURES?.bulkUpload?.content}
318-
type={BUILD_FEATURES?.bulkUpload?.type}
319-
wrapperClassName={styles.bulkActionsHighlighting}
320-
hideFirstChild
321-
>
322-
<EuiToolTip content="Bulk Actions" position="top">
323-
<EuiButton
324-
fill
325-
size="s"
326-
color="secondary"
327-
onClick={openBulkActions}
328-
className={styles.bulkActions}
329-
data-testid="btn-bulk-actions"
330-
>
331-
<EuiIcon type={BulkActionsIcon} />
332-
</EuiButton>
333-
</EuiToolTip>
334-
</HighlightedFeature>
308+
<EuiToolTip content="Bulk Actions" position="top">
309+
<EuiButton
310+
fill
311+
size="s"
312+
color="secondary"
313+
onClick={openBulkActions}
314+
className={styles.bulkActions}
315+
data-testid="btn-bulk-actions"
316+
>
317+
<EuiIcon type={BulkActionsIcon} />
318+
</EuiButton>
319+
</EuiToolTip>
335320
)
336321

337322
const ViewSwitch = (width: number) => (

redisinsight/ui/src/pages/browser/components/keys-header/styles.module.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929
padding: 0 !important;
3030
}
3131
}
32-
33-
.bulkActionsHighlighting {
34-
display: inline-block;
35-
}
3632
}
3733

3834
.top,

0 commit comments

Comments
 (0)