Restructure app layout for sidebar and theme integration #31
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Modify the main app.py to integrate the sidebar component, theme infrastructure, and active page detection. This is the central integration point for the navigation and theme system.
Files to Modify
portfolio_app/app.pyportfolio_app/components/__init__.pyChanges Required
1. app.py Modifications
Remove forceColorScheme
Add MantineProvider ID
Add Required Components to Layout
Register Callbacks
2. components/init.py Updates
Add sidebar to exports:
3. Active Page Detection Callback
Add callback to update sidebar active state based on URL:
Integration Checklist
forceColorScheme="light"defaultColorScheme="dark"id="mantine-provider"dcc.Storefor theme statedcc.Locationfor URL trackingcreate_sidebar()page_containerwithpage-content-wrapperclassAcceptance Criteria
Part of Sprint 7 (#27)
Depends On