raj thakur commited on
Commit Β·
ff39bb9
1
Parent(s): 8391b8a
BI vanigation menu
Browse files- __pycache__/sales_data_processor.cpython-310.pyc +0 -0
- main.py +10 -11
- pages/__pycache__/dashboard.cpython-310.pyc +0 -0
- pages/__pycache__/system_dashboard.cpython-310.pyc +0 -0
- {.streamlit β streamlit}/config.toml +0 -0
- {.streamlit β streamlit}/secrets.toml +0 -0
- utils/__pycache__/styling.cpython-310.pyc +0 -0
__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 |
-
"π
|
| 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
|
|
|