@@ -18,6 +18,7 @@ import { frontLink } from '../../../components/common/navigation/frontLink.js';
1818import { formatPercentage } from '../../../utilities/formatting/formatPercentage.js' ;
1919import { h } from '/js/src/index.js' ;
2020import { formatRunsList } from '../../Runs/format/formatRunsList.js' ;
21+ import { formatLhcFillsTimeLoss } from '../format/formatLhcFillsTimeLoss.js' ;
2122
2223/**
2324 * List of active columns for a lhc fills table
@@ -31,19 +32,19 @@ export const lhcFillsActiveColumns = {
3132 format : ( fillNumber ) => frontLink ( fillNumber , 'lhc-fill-details' , { fillNumber : fillNumber } ) ,
3233 } ,
3334 stableBeamsStart : {
34- name : 'Stable beams start ' ,
35+ name : 'SB START ' ,
3536 visible : true ,
3637 size : 'w-8' ,
37- format : ( timestamp ) => formatTimestamp ( timestamp ) ,
38+ format : ( timestamp ) => formatTimestamp ( timestamp , false ) ,
3839 } ,
3940 stableBeamsEnd : {
40- name : 'Stable beams end ' ,
41+ name : 'SB END ' ,
4142 visible : true ,
4243 size : 'w-8' ,
43- format : ( timestamp ) => formatTimestamp ( timestamp ) ,
44+ format : ( timestamp ) => formatTimestamp ( timestamp , false ) ,
4445 } ,
4546 stableBeamsDuration : {
46- name : 'Beams Duration' ,
47+ name : 'SB Duration' ,
4748 visible : true ,
4849 size : 'w-8' ,
4950 format : ( time , { stableBeamsStart, stableBeamsEnd } ) => {
@@ -74,13 +75,13 @@ export const lhcFillsActiveColumns = {
7475 name : 'Before 1st run' ,
7576 visible : true ,
7677 size : 'w-8' ,
77- format : ( duration , lhcFill ) => duration ? ` ${ formatDuration ( duration ) } ( ${ formatPercentage ( lhcFill . efficiencyLossAtStart ) } )` : '-' ,
78+ format : ( duration , lhcFill ) => formatLhcFillsTimeLoss ( duration , lhcFill . efficiencyLossAtStart , false ) ,
7879 } ,
7980 timeLossAtEnd : {
8081 name : 'After last run' ,
8182 visible : true ,
8283 size : 'w-8' ,
83- format : ( duration , lhcFill ) => duration ? ` ${ formatDuration ( duration ) } ( ${ formatPercentage ( lhcFill . efficiencyLossAtEnd ) } )` : '-' ,
84+ format : ( duration , lhcFill ) => formatLhcFillsTimeLoss ( duration , lhcFill . efficiencyLossAtEnd , false ) ,
8485 } ,
8586 meanRunDuration : {
8687 name : 'Mean run duration' ,
@@ -99,6 +100,7 @@ export const lhcFillsActiveColumns = {
99100 visible : true ,
100101 size : 'w-10' ,
101102 format : ( value ) => value ? value : '-' ,
103+ balloon : true ,
102104 } ,
103105 runs : {
104106 name : 'Runs' ,
0 commit comments