@@ -33,7 +33,7 @@ import PanelRight from "../components/Panels/PanelRight";
3333import PanelRightToolbar from "../components/Panels/PanelRightToolbar" ;
3434import BatchHistoryPanel from "../components/batchHistoryPanel" ;
3535import ConfirmationDialog from "../commonComponents/ConfirmationDialog/confirmationDialogue" ;
36- import { determineFileStatus , filesLogsBuilder , renderErrorSection , useStyles , renderFileError , filesErrorCounter , completedFiles , hasFiles , fileErrorCounter , BatchSummary , fileWarningCounter } from "../api/utils" ;
36+ import { determineFileStatus , filesLogsBuilder , renderErrorSection , useStyles , renderFileError , filesErrorCounter , completedFiles , hasFiles , fileErrorCounter , BatchSummary } from "../api/utils" ;
3737export const History = bundleIcon ( HistoryFilled , HistoryRegular ) ;
3838import { format } from "sql-formatter" ;
3939
@@ -73,7 +73,6 @@ const BatchStoryPage = () => {
7373 const [ selectedFileId , setSelectedFileId ] = useState < string > ( "" ) ;
7474 const [ expandedSections , setExpandedSections ] = useState ( [ "errors" ] ) ;
7575 const [ batchSummary , setBatchSummary ] = useState < BatchSummary | null > ( null ) ;
76- const [ selectedFileContent , setSelectedFileContent ] = useState < string > ( "" ) ;
7776 const [ selectedFileTranslatedContent , setSelectedFileTranslatedContent ] = useState < string > ( "" ) ;
7877
7978
@@ -209,40 +208,6 @@ const BatchStoryPage = () => {
209208 fetchFileContent ( ) ;
210209 } , [ selectedFileId ] ) ;
211210
212-
213- const renderWarningContent = ( ) => {
214- if ( ! expandedSections . includes ( "warnings" ) ) return null ;
215-
216- if ( ! batchSummary ) return null ;
217-
218- // Group warnings by file
219- const warningFiles = files . filter ( file => file . warningCount && file . warningCount > 0 && file . id !== "summary" ) ;
220-
221- if ( warningFiles . length === 0 ) {
222- return (
223- < div className = { styles . errorItem } >
224- < Text > No warnings found.</ Text >
225- </ div >
226- ) ;
227- }
228-
229- return (
230- < div >
231- { warningFiles . map ( ( file , fileIndex ) => (
232- < div key = { fileIndex } className = { styles . errorItem } >
233- < div className = { styles . errorTitle } >
234- < Text weight = "semibold" > { file . name } ({ file . warningCount } )</ Text >
235- < Text className = { styles . errorSource } > source</ Text >
236- </ div >
237- < div className = { styles . errorDetails } >
238- < Text > Warning in file processing. See file for details.</ Text >
239- </ div >
240- </ div >
241- ) ) }
242- </ div >
243- ) ;
244- } ;
245-
246211 const renderContent = ( ) => {
247212 // Define header content based on selected file
248213 const renderHeader = ( ) => {
0 commit comments