All files / src App.tsx

100% Statements 33/33
100% Branches 1/1
100% Functions 1/1
100% Lines 33/33

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 361x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x      
/**
 * @file App.tsx
 * @description
 * Root application component. Delegates routing to `AppRouter` and includes the
 * global Footer. Flex layout ensures footer stays at bottom on all pages.
 *
 * @layout
 * - Container: flex column, full viewport height
 * - AppRouter (routes): flex-grow to fill available space
 * - Footer: visible on all pages (login, dashboard, logout, etc.)
 */
 
import { Box } from '@mui/material';
import AppRouter from './routes/AppRouter';
import { AppFooter } from './app/footer';
import { SettingsProvider } from './context/settings/SettingsContext';
import { HelpProvider } from './context/help/HelpContext';
import HelpPanel from './components/help/HelpPanel';
 
 
export default function App() {
  return (
    <HelpProvider>
      <SettingsProvider>
        <Box sx={{ display: 'flex', flexDirection: 'column', minHeight: '100dvh' }}>
            <AppRouter />
          <AppFooter />
          <HelpPanel />
        </Box>
      </SettingsProvider>
    </HelpProvider>
  );
}