@@ -33,19 +33,6 @@ const filter = (list, toFilter) => {
3333 } ) ;
3434} ;
3535
36- // Normalize file paths to use forward slashes for cross-platform compatibility
37- const normalizeFilePaths = ( items ) => {
38- return items . map ( ( item ) => {
39- if ( item . file_path ) {
40- return {
41- ...item ,
42- file_path : item . file_path . replace ( / \\ / g, "/" ) ,
43- } ;
44- }
45- return item ;
46- } ) ;
47- } ;
48-
4936const emptyMessage = "No issues detected in these files!" ;
5037
5138export class GuidedInspectorPage extends Page {
@@ -137,16 +124,13 @@ export class GuidedInspectorPage extends Page {
137124 const options = { } ; // NOTE: Currently options are handled on the Python end until exposed to the user
138125 const title = "Inspecting your file" ;
139126
140- console . log ( "Stubs:" , stubs ) ;
141127 const fileArr = Object . entries ( stubs )
142128 . map ( ( [ subject , v ] ) =>
143129 Object . entries ( v ) . map ( ( [ session , info ] ) => {
144130 return { subject, session, info } ;
145131 } )
146132 )
147133 . flat ( ) ;
148- console . log ( "File array:" , fileArr ) ;
149-
150134 return html `
151135 ${ until (
152136 ( async ( ) => {
@@ -218,15 +202,11 @@ export class GuidedInspectorPage extends Page {
218202 if ( ! inspector ) await this . save ( ) ;
219203
220204 const messages = this . report . messages ;
221- console . log ( "Messages:" , messages ) ;
222- const items = normalizeFilePaths ( truncateFilePaths ( messages , path ) ) ;
223- console . log ( "Inspector items:" , items ) ;
224- console . log ( "File array:" , fileArr ) ;
205+ const items = truncateFilePaths ( messages , path ) ;
225206
226207 const _instances = fileArr . map ( ( { subject, session, info } ) => {
227208 const file_path = [ `sub-${ subject } ` , `sub-${ subject } _ses-${ session } ` ] ;
228209 const filtered = removeFilePaths ( filter ( items , { file_path } ) ) ;
229- console . log ( "Filtered items for subject:" , subject , "session:" , session , filtered ) ;
230210
231211 const display = ( ) => new InspectorList ( { items : filtered , emptyMessage } ) ;
232212 display . status = this . getStatus ( filtered ) ;
0 commit comments