File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed
src/components/ResourceBrowser Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,8 @@ export const NODE_LIST_HEADERS_TO_KEY_MAP: Record<(typeof NODE_LIST_HEADERS)[num
325
325
unschedulable : 'unschedulable' ,
326
326
} as const
327
327
328
+ export const NODE_LIST_HEADER_KEYS_TO_SEARCH = Object . values ( NODE_LIST_HEADERS_TO_KEY_MAP )
329
+
328
330
export const NODE_SEARCH_KEYS_TO_OBJECT_KEYS : Record <
329
331
NODE_SEARCH_KEYS ,
330
332
( typeof NODE_LIST_HEADERS_TO_KEY_MAP ) [ keyof typeof NODE_LIST_HEADERS_TO_KEY_MAP ]
Original file line number Diff line number Diff line change 68
68
display : grid ;
69
69
grid-template-columns : 1fr auto 1px 180px ;
70
70
column-gap : 8px ;
71
+
72
+ .grouped-filter-select-picker {
73
+ width : 350px ;
74
+ > .dc__mxw-250 {
75
+ max-width : 350px ;
76
+ }
77
+ }
71
78
}
72
79
73
80
.resource-filter-options-container {
87
94
.cluster-terminal-hidden {
88
95
visibility : hidden ;
89
96
height : 0 ;
97
+
90
98
.terminal-action-strip {
91
99
display : none ;
92
100
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ import {
44
44
updateManifestResourceHelmApps ,
45
45
} from '@Components/v2/appDetails/k8Resource/nodeDetail/nodeDetail.api'
46
46
47
- import { NODE_LIST_HEADERS_TO_KEY_MAP } from '../Constants'
47
+ import { NODE_LIST_HEADER_KEYS_TO_SEARCH , NODE_LIST_HEADERS_TO_KEY_MAP } from '../Constants'
48
48
import { getResourceData } from '../ResourceBrowser.service'
49
49
import { K8SResourceListType } from '../Types'
50
50
import K8sResourceListTableCellComponent from './K8sResourceListTableCellComponent'
@@ -233,6 +233,7 @@ export const K8SResourceList = ({
233
233
Object . entries ( row . data ) . some (
234
234
( [ key , value ] ) =>
235
235
key !== 'id' &&
236
+ ( ! isNodeListing || NODE_LIST_HEADER_KEYS_TO_SEARCH . includes ( key ) ) &&
236
237
value !== null &&
237
238
value !== undefined &&
238
239
String ( value ) . toLowerCase ( ) . includes ( filterData . searchKey . toLowerCase ( ) ) ,
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ const NodeListSearchFilter = ({
190
190
placeholder : 'Search Nodes' ,
191
191
onKeyUp : handleSearchInputKeyUp ,
192
192
} }
193
+ containerClassName = "w-250"
193
194
/>
194
195
195
196
< GroupedFilterSelectPicker < NODE_SEARCH_KEYS | typeof NODE_K8S_VERSION_FILTER_KEY >
You can’t perform that action at this time.
0 commit comments