@@ -379,8 +379,8 @@ const FlatRuns: React.FC<Props> = ({ projectId, workspaceId, searchId }) => {
379379 columnDefKey ,
380380 currentColumn . displayName || currentColumn . column ,
381381 settings . columnWidths [ columnDefKey ] ??
382- defaultColumnWidths [ columnDefKey as RunColumn ] ??
383- MIN_COLUMN_WIDTH ,
382+ defaultColumnWidths [ columnDefKey as RunColumn ] ??
383+ MIN_COLUMN_WIDTH ,
384384 dataPath ,
385385 {
386386 max : heatmap . max ,
@@ -392,8 +392,8 @@ const FlatRuns: React.FC<Props> = ({ projectId, workspaceId, searchId }) => {
392392 columnDefKey ,
393393 currentColumn . displayName || currentColumn . column ,
394394 settings . columnWidths [ columnDefKey ] ??
395- defaultColumnWidths [ columnDefKey as RunColumn ] ??
396- MIN_COLUMN_WIDTH ,
395+ defaultColumnWidths [ columnDefKey as RunColumn ] ??
396+ MIN_COLUMN_WIDTH ,
397397 dataPath ,
398398 undefined ,
399399 ) ;
@@ -405,8 +405,8 @@ const FlatRuns: React.FC<Props> = ({ projectId, workspaceId, searchId }) => {
405405 columnDefKey ,
406406 currentColumn . displayName || currentColumn . column ,
407407 settings . columnWidths [ columnDefKey ] ??
408- defaultColumnWidths [ columnDefKey as RunColumn ] ??
409- MIN_COLUMN_WIDTH ,
408+ defaultColumnWidths [ columnDefKey as RunColumn ] ??
409+ MIN_COLUMN_WIDTH ,
410410 dataPath ,
411411 ) ;
412412 break ;
@@ -415,8 +415,8 @@ const FlatRuns: React.FC<Props> = ({ projectId, workspaceId, searchId }) => {
415415 columnDefKey ,
416416 currentColumn . displayName || currentColumn . column ,
417417 settings . columnWidths [ columnDefKey ] ??
418- defaultColumnWidths [ columnDefKey as RunColumn ] ??
419- MIN_COLUMN_WIDTH ,
418+ defaultColumnWidths [ columnDefKey as RunColumn ] ??
419+ MIN_COLUMN_WIDTH ,
420420 dataPath ,
421421 ) ;
422422 break ;
@@ -427,8 +427,8 @@ const FlatRuns: React.FC<Props> = ({ projectId, workspaceId, searchId }) => {
427427 columnDefKey ,
428428 currentColumn . displayName || currentColumn . column ,
429429 settings . columnWidths [ columnDefKey ] ??
430- defaultColumnWidths [ columnDefKey as RunColumn ] ??
431- MIN_COLUMN_WIDTH ,
430+ defaultColumnWidths [ columnDefKey as RunColumn ] ??
431+ MIN_COLUMN_WIDTH ,
432432 dataPath ,
433433 ) ;
434434 }
@@ -441,9 +441,9 @@ const FlatRuns: React.FC<Props> = ({ projectId, workspaceId, searchId }) => {
441441 settings . columnWidths [ currentColumn . column ] ,
442442 heatmap && settings . heatmapOn && ! settings . heatmapSkipped . includes ( currentColumn . column )
443443 ? {
444- max : heatmap . max ,
445- min : heatmap . min ,
446- }
444+ max : heatmap . max ,
445+ min : heatmap . min ,
446+ }
447447 : undefined ,
448448 ) ;
449449 }
@@ -817,32 +817,32 @@ const FlatRuns: React.FC<Props> = ({ projectId, workspaceId, searchId }) => {
817817 ? null
818818 : ! isPinned
819819 ? {
820- icon : < Icon decorative name = "pin" /> ,
821- key : 'pin' ,
822- label : 'Pin column' ,
823- onClick : ( ) => {
824- const newColumnsOrder = columnsIfLoaded . filter ( ( c ) => c !== columnId ) ;
825- newColumnsOrder . splice ( settings . pinnedColumnsCount , 0 , columnId ) ;
826- handleColumnsOrderChange (
827- newColumnsOrder ,
828- Math . min ( settings . pinnedColumnsCount + 1 , columnsIfLoaded . length ) ,
829- ) ;
830- } ,
831- }
820+ icon : < Icon decorative name = "pin" /> ,
821+ key : 'pin' ,
822+ label : 'Pin column' ,
823+ onClick : ( ) => {
824+ const newColumnsOrder = columnsIfLoaded . filter ( ( c ) => c !== columnId ) ;
825+ newColumnsOrder . splice ( settings . pinnedColumnsCount , 0 , columnId ) ;
826+ handleColumnsOrderChange (
827+ newColumnsOrder ,
828+ Math . min ( settings . pinnedColumnsCount + 1 , columnsIfLoaded . length ) ,
829+ ) ;
830+ } ,
831+ }
832832 : {
833- disabled : settings . pinnedColumnsCount <= 1 ,
834- icon : < Icon decorative name = "pin" /> ,
835- key : 'unpin' ,
836- label : 'Unpin column' ,
837- onClick : ( ) => {
838- const newColumnsOrder = columnsIfLoaded . filter ( ( c ) => c !== columnId ) ;
839- newColumnsOrder . splice ( settings . pinnedColumnsCount - 1 , 0 , columnId ) ;
840- handleColumnsOrderChange (
841- newColumnsOrder ,
842- Math . max ( settings . pinnedColumnsCount - 1 , 0 ) ,
843- ) ;
833+ disabled : settings . pinnedColumnsCount <= 1 ,
834+ icon : < Icon decorative name = "pin" /> ,
835+ key : 'unpin' ,
836+ label : 'Unpin column' ,
837+ onClick : ( ) => {
838+ const newColumnsOrder = columnsIfLoaded . filter ( ( c ) => c !== columnId ) ;
839+ newColumnsOrder . splice ( settings . pinnedColumnsCount - 1 , 0 , columnId ) ;
840+ handleColumnsOrderChange (
841+ newColumnsOrder ,
842+ Math . max ( settings . pinnedColumnsCount - 1 , 0 ) ,
843+ ) ;
844+ } ,
844845 } ,
845- } ,
846846 {
847847 icon : < Icon decorative name = "eye-close" /> ,
848848 key : 'hide' ,
@@ -871,9 +871,9 @@ const FlatRuns: React.FC<Props> = ({ projectId, workspaceId, searchId }) => {
871871 sortCount === 0
872872 ? [ ]
873873 : [
874- { type : 'divider' as const } ,
875- ...sortMenuItemsForColumn ( column , sorts , handleSortChange ) ,
876- ] ;
874+ { type : 'divider' as const } ,
875+ ...sortMenuItemsForColumn ( column , sorts , handleSortChange ) ,
876+ ] ;
877877 items . push ( ...sortMenuItems ) ;
878878 }
879879
0 commit comments