refactor(reporting-layout): streamline sidebar and content layout

- Replaced the existing sidebar implementation with a new ReportingSider component that accepts collapse state and toggle function as props.
- Simplified the ReportingCollapsedButton component for better readability and functionality.
- Updated layout styles to enhance responsiveness and maintain consistent margins.
- Removed unused CSS styles related to the sidebar for cleaner code.
This commit is contained in:
chamikaJ
2025-07-28 14:54:54 +05:30
parent 2c860b0cc8
commit dd511b236f
17 changed files with 447 additions and 7 deletions

View File

@@ -27,6 +27,7 @@ const SIDEBAR_MAX_WIDTH = 400;
// Lazy load heavy components
const TaskDrawer = React.lazy(() => import('@/components/task-drawer/task-drawer'));
const SurveyPromptModal = React.lazy(() => import('@/components/survey/SurveyPromptModal').then(m => ({ default: m.SurveyPromptModal })));
const HomePage = memo(() => {
const dispatch = useAppDispatch();
@@ -142,6 +143,11 @@ const HomePage = memo(() => {
document.body,
'project-drawer'
)}
{/* Survey Modal - only shown to users who haven't completed it */}
<Suspense fallback={null}>
<SurveyPromptModal />
</Suspense>
</div>
);
});