raj thakur commited on
Commit
ff39bb9
Β·
1 Parent(s): 8391b8a

BI vanigation menu

Browse files
__pycache__/sales_data_processor.cpython-310.pyc CHANGED
Binary files a/__pycache__/sales_data_processor.cpython-310.pyc and b/__pycache__/sales_data_processor.cpython-310.pyc differ
 
main.py CHANGED
@@ -118,8 +118,8 @@ st.sidebar.markdown("""
118
  st.sidebar.markdown("<h2 style='text-align: center;'>πŸš€ Sales Management</h2>", unsafe_allow_html=True)
119
 
120
  page = st.sidebar.radio("Navigation", [
121
- "πŸ“Š Dashboard", "πŸ“Š System Dashboard", "πŸ‘₯ Customers", "πŸ’° Sales", "πŸ’³ Payments",
122
- "🎯 Demos", "🀝 Distributors", "πŸ” File Viewer", "πŸ“€ Data Import", "πŸ“ˆ Reports"
123
  ], index=0)
124
 
125
  # app.py (add this)
@@ -152,15 +152,7 @@ def show_basic_dashboard(db, analytics):
152
  st.warning("Database or analytics not available")
153
  # Page routing with error handling
154
  try:
155
- if page == "πŸ“Š Dashboard":
156
- try:
157
- from pages.dashboard import create_dashboard
158
- create_dashboard(db, analytics)
159
- except ImportError:
160
- st.error("Dashboard page not available. Creating basic dashboard...")
161
- show_basic_dashboard(db, analytics)
162
-
163
- elif page == "πŸ“Š System Dashboard":
164
  try:
165
  from pages.system_dashboard import create_dashboard
166
  create_dashboard(db, analytics)
@@ -210,6 +202,13 @@ try:
210
  show_data_import_page(db, data_processor)
211
  except ImportError:
212
  st.error("Data Import page not available")
 
 
 
 
 
 
 
213
 
214
  elif page == "πŸ“ˆ Reports":
215
  try:
 
118
  st.sidebar.markdown("<h2 style='text-align: center;'>πŸš€ Sales Management</h2>", unsafe_allow_html=True)
119
 
120
  page = st.sidebar.radio("Navigation", [
121
+ "πŸ“Š System Dashboard", "πŸ‘₯ Customers", "πŸ’° Sales", "πŸ’³ Payments",
122
+ "🎯 Demos", "🀝 Distributors", "πŸ” File Viewer", "πŸ“€ Data Import", "πŸ“Š Power BI Dashboard", "πŸ“ˆ Reports"
123
  ], index=0)
124
 
125
  # app.py (add this)
 
152
  st.warning("Database or analytics not available")
153
  # Page routing with error handling
154
  try:
155
+ if page == "πŸ“Š System Dashboard":
 
 
 
 
 
 
 
 
156
  try:
157
  from pages.system_dashboard import create_dashboard
158
  create_dashboard(db, analytics)
 
202
  show_data_import_page(db, data_processor)
203
  except ImportError:
204
  st.error("Data Import page not available")
205
+ elif page == "πŸ“Š Power BI Dashboard":
206
+ try:
207
+ from pages.dashboard import create_dashboard
208
+ create_dashboard(db, analytics)
209
+ except ImportError:
210
+ st.error("Dashboard page not available. Creating basic dashboard...")
211
+ show_basic_dashboard(db, analytics)
212
 
213
  elif page == "πŸ“ˆ Reports":
214
  try:
pages/__pycache__/dashboard.cpython-310.pyc CHANGED
Binary files a/pages/__pycache__/dashboard.cpython-310.pyc and b/pages/__pycache__/dashboard.cpython-310.pyc differ
 
pages/__pycache__/system_dashboard.cpython-310.pyc ADDED
Binary file (4.07 kB). View file
 
{.streamlit β†’ streamlit}/config.toml RENAMED
File without changes
{.streamlit β†’ streamlit}/secrets.toml RENAMED
File without changes
utils/__pycache__/styling.cpython-310.pyc CHANGED
Binary files a/utils/__pycache__/styling.cpython-310.pyc and b/utils/__pycache__/styling.cpython-310.pyc differ