File tree Expand file tree Collapse file tree 5 files changed +32
-2
lines changed Expand file tree Collapse file tree 5 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export function StorageGroupsControls({
8787 hasClear
8888 placeholder = { '-' }
8989 label = { i18n ( 'controls_group-by-placeholder' ) }
90- width = { 200 }
90+ width = { 240 }
9191 defaultValue = {
9292 storageGroupsGroupByParam ? [ storageGroupsGroupByParam ] : undefined
9393 }
@@ -165,7 +165,7 @@ export function StorageNodesControls({
165165 hasClear
166166 placeholder = { '-' }
167167 label = { i18n ( 'controls_group-by-placeholder' ) }
168- width = { 200 }
168+ width = { 240 }
169169 defaultValue = { storageNodesGroupByParam ? [ storageNodesGroupByParam ] : undefined }
170170 onUpdate = { handleGroupBySelectUpdate }
171171 options = { STORAGE_NODES_GROUP_BY_OPTIONS }
Original file line number Diff line number Diff line change @@ -18,13 +18,16 @@ export const STORAGE_GROUPS_COLUMNS_IDS = {
1818 Used : 'Used' ,
1919 Limit : 'Limit' ,
2020 Usage : 'Usage' ,
21+ DiskSpaceUsage : 'DiskSpaceUsage' ,
2122 DiskSpace : 'DiskSpace' ,
2223 Read : 'Read' ,
2324 Write : 'Write' ,
25+ Latency : 'Latency' ,
2426 VDisks : 'VDisks' ,
2527 VDisksPDisks : 'VDisksPDisks' ,
2628 MissingDisks : 'MissingDisks' ,
2729 Degraded : 'Degraded' ,
30+ State : 'State' ,
2831} as const ;
2932
3033type StorageGroupsColumnId = ValueOf < typeof STORAGE_GROUPS_COLUMNS_IDS > ;
@@ -71,6 +74,9 @@ export const STORAGE_GROUPS_COLUMNS_TITLES = {
7174 get Usage ( ) {
7275 return i18n ( 'usage' ) ;
7376 } ,
77+ get DiskSpaceUsage ( ) {
78+ return i18n ( 'disk-space-usage' ) ;
79+ } ,
7480 get DiskSpace ( ) {
7581 return i18n ( 'space' ) ;
7682 } ,
@@ -80,6 +86,9 @@ export const STORAGE_GROUPS_COLUMNS_TITLES = {
8086 get Write ( ) {
8187 return i18n ( 'write' ) ;
8288 } ,
89+ get Latency ( ) {
90+ return i18n ( 'latency' ) ;
91+ } ,
8392 get VDisks ( ) {
8493 return i18n ( 'vdisks' ) ;
8594 } ,
@@ -92,6 +101,9 @@ export const STORAGE_GROUPS_COLUMNS_TITLES = {
92101 get MissingDisks ( ) {
93102 return i18n ( 'missing-disks' ) ;
94103 } ,
104+ get State ( ) {
105+ return i18n ( 'state' ) ;
106+ } ,
95107} as const satisfies Record < StorageGroupsColumnId , string > ;
96108
97109const STORAGE_GROUPS_GROUP_BY_PARAMS = [
@@ -100,7 +112,10 @@ const STORAGE_GROUPS_GROUP_BY_PARAMS = [
100112 'Encryption' ,
101113 'Erasure' ,
102114 'Usage' ,
115+ 'DiskSpaceUsage' ,
116+ 'State' ,
103117 'MissingDisks' ,
118+ 'Latency' ,
104119] as const satisfies GroupsGroupByField [ ] ;
105120
106121export const STORAGE_GROUPS_GROUP_BY_OPTIONS : SelectOption [ ] = STORAGE_GROUPS_GROUP_BY_PARAMS . map (
Original file line number Diff line number Diff line change 55 "erasure" : " Erasure" ,
66 "degraded" : " Degraded" ,
77 "missing-disks" : " Missing Disks" ,
8+ "state" : " State" ,
89 "usage" : " Usage" ,
10+ "disk-space-usage" : " Disk space usage" ,
911 "group-id" : " Group ID" ,
1012 "used" : " Used" ,
1113 "limit" : " Limit" ,
1214 "space" : " Space" ,
1315 "read" : " Read" ,
1416 "write" : " Write" ,
17+ "latency" : " Latency" ,
1518 "vdisks" : " VDisks" ,
1619 "vdisks-pdisks" : " VDisks with PDisks"
1720}
Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ export const STORAGE_NODES_COLUMNS_IDS = {
1414 Host : 'Host' ,
1515 DC : 'DC' ,
1616 Rack : 'Rack' ,
17+ Version : 'Version' ,
1718 Uptime : 'Uptime' ,
1819 PDisks : 'PDisks' ,
1920 Missing : 'Missing' ,
21+ DiskSpaceUsage : 'DiskSpaceUsage' ,
2022} as const ;
2123
2224type StorageNodesColumnId = ValueOf < typeof STORAGE_NODES_COLUMNS_IDS > ;
@@ -46,6 +48,9 @@ export const STORAGE_NODES_COLUMNS_TITLES = {
4648 get Rack ( ) {
4749 return i18n ( 'rack' ) ;
4850 } ,
51+ get Version ( ) {
52+ return i18n ( 'version' ) ;
53+ } ,
4954 get Uptime ( ) {
5055 return i18n ( 'uptime' ) ;
5156 } ,
@@ -55,14 +60,19 @@ export const STORAGE_NODES_COLUMNS_TITLES = {
5560 get Missing ( ) {
5661 return i18n ( 'missing' ) ;
5762 } ,
63+ get DiskSpaceUsage ( ) {
64+ return i18n ( 'disk-space-usage' ) ;
65+ } ,
5866} as const satisfies Record < StorageNodesColumnId , string > ;
5967
6068const STORAGE_NODES_GROUP_BY_PARAMS = [
6169 'Host' ,
6270 'DC' ,
6371 'Rack' ,
72+ 'Version' ,
6473 'Uptime' ,
6574 'Missing' ,
75+ 'DiskSpaceUsage' ,
6676] as const satisfies NodesGroupByField [ ] ;
6777
6878export const STORAGE_NODES_GROUP_BY_OPTIONS : SelectOption [ ] = STORAGE_NODES_GROUP_BY_PARAMS . map (
Original file line number Diff line number Diff line change 33 "host" : " Host" ,
44 "dc" : " DC" ,
55 "rack" : " Rack" ,
6+ "version" : " Version" ,
67 "uptime" : " Uptime" ,
78 "missing" : " Missing" ,
9+ "disk-space-usage" : " Disk space usage" ,
810 "pdisks" : " PDisks"
911}
You can’t perform that action at this time.
0 commit comments