| """ |
| Supply Roster Optimization Tool - Streamlit App |
| Simplified version with configuration and optimization results |
| """ |
|
|
| import streamlit as st |
| import sys |
| import os |
|
|
| |
| sys.path.append(os.path.join(os.path.dirname(__file__), 'src')) |
|
|
| |
| st.set_page_config( |
| page_title="Supply Roster Optimization Tool", |
| page_icon="π¦", |
| layout="wide", |
| initial_sidebar_state="expanded" |
| ) |
|
|
| |
| st.sidebar.title("π¦ Supply Roster Tool") |
| st.sidebar.markdown("---") |
|
|
| |
| page = st.sidebar.selectbox( |
| "Navigate to:", |
| ["βοΈ Configuration", "π Optimization Results"], |
| index=0 |
| ) |
|
|
| |
| if page == "βοΈ Configuration": |
| |
| from config_page import render_config_page |
| |
| st.title("π¦ Supply Roster Optimization Tool") |
| st.markdown("---") |
| |
| render_config_page() |
|
|
| elif page == "π Optimization Results": |
| |
| from optimization_page import render_optimization_page |
| |
| render_optimization_page() |
|
|