feat: implement axios client with interceptors, dashboard caching, and core application modules

This commit is contained in:
2026-06-22 15:27:19 +05:30
parent 514a656fa8
commit 39c4e1b390
11 changed files with 29 additions and 27 deletions

View File

@@ -34,6 +34,7 @@ export const Dashboard: React.FC = () => {
batchAudited: 0,
batchPending: 0,
batchAnomaliesFound: 0,
firstPendingIndex: -1,
}
);
// Only show loading spinner if there's no cached result for these filters
@@ -106,7 +107,6 @@ export const Dashboard: React.FC = () => {
fetchStats();
}, [currentFilterKey]); // eslint-disable-line react-hooks/exhaustive-deps
const progressPercent = stats.batchTotal > 0 ? Math.round((stats.batchAudited / stats.batchTotal) * 100) : 0;
return (
<Box sx={{ width: '100%', maxWidth: '100vw', display: 'flex', flexDirection: 'column' }}>