@@ -53,21 +53,20 @@ <h1>OME Project Dashboard</h1>
5353 }
5454
5555 function createStatusIcon ( status ) {
56- if ( ! status ) return null ;
57- const normalized = String ( status ) . toUpperCase ( ) ;
56+ const normalized = status ? String ( status ) . toUpperCase ( ) : 'NO_TESTS' ;
5857 const map = {
59- SUCCESS : { text : '✓' , className : 'status-success' } ,
60- FAILURE : { text : '✗' , className : 'status-failure' } ,
61- ERROR : { text : '✗' , className : 'status-failure' } ,
62- PENDING : { text : '•' , className : 'status-pending' } ,
58+ SUCCESS : { text : '✓' , className : 'status-success' , title : 'Checks: ok' } ,
59+ FAILURE : { text : '✗' , className : 'status-failure' , title : 'Checks: failed' } ,
60+ ERROR : { text : '✗' , className : 'status-failure' , title : 'Checks: failed' } ,
61+ PENDING : { text : '•' , className : 'status-pending' , title : 'Checks: in progress' } ,
62+ NO_TESTS : { text : '−' , className : 'status-absent' , title : 'Checks: none' } ,
6363 } ;
6464 const match = map [ normalized ] ;
6565 if ( ! match ) return null ;
6666 const span = document . createElement ( 'span' ) ;
6767 span . className = 'status-icon ' + match . className ;
6868 span . textContent = match . text ;
69- span . title = 'Checks: ' + normalized . toLowerCase ( ) ;
70- return span ;
69+ span . title = match . title || 'Checks: ' + normalized . toLowerCase ( ) ; return span ;
7170 }
7271
7372 function normalizeSortValue ( rawValue ) {
@@ -416,4 +415,4 @@ <h1>OME Project Dashboard</h1>
416415 </ script >
417416</ body >
418417
419- </ html >
418+ </ html >
0 commit comments