| | import streamlit as st |
| |
|
| | |
| | st.set_page_config( |
| | page_title="Supply Roster Tool", |
| | page_icon="π ", |
| | layout="wide", |
| | initial_sidebar_state="expanded" |
| | ) |
| |
|
| | |
| | if 'data_path' not in st.session_state: |
| | st.session_state.data_path = "data/my_roster_data" |
| | if 'target_date' not in st.session_state: |
| | st.session_state.target_date = "" |
| |
|
| | |
| | st.title("π Supply Roster Optimization Tool") |
| | st.markdown("---") |
| |
|
| | |
| |
|
| |
|
| | col1, col2 = st.columns([1, 1]) |
| |
|
| | with col1: |
| | st.markdown(""" |
| | ## π Welcome to Supply Roster Tool |
| | |
| | """) |
| |
|
| | with col2: |
| | st.image("images/POC_page/POC_SupplyRoster_image.png", |
| | caption="Supply Roster Tool Overview", |
| | use_container_width=True) |
| |
|
| | |
| | with st.sidebar: |
| | st.markdown("## π Global Settings") |
| | st.markdown("The setting will be shared across all pages") |
| | |
| | |
| | new_data_path = st.text_input( |
| | "π Data Path", |
| | value=st.session_state.data_path, |
| | help="The data path will be shared across all pages" |
| | ) |
| | |
| | if new_data_path != st.session_state.data_path: |
| | st.session_state.data_path = new_data_path |
| | st.success("β
Data path updated!") |
| | |
| | st.markdown(f"**Current data path:** `{st.session_state.data_path}`") |
| | |
| | |
| | st.markdown("## π§ Quick Navigation") |
| | if st.button("π― Go to Optimization", use_container_width=True): |
| | st.switch_page("pages/optimize_viz.py") |
| | |
| | if st.button("π Go to Dataset Overview", use_container_width=True): |
| | st.switch_page("pages/metadata.py") |
| |
|
| | |
| | st.markdown("---") |
| |
|
| |
|
| | |
| | st.markdown("---") |
| | st.markdown(""" |
| | <div style='text-align: center; color: gray;'> |
| | <small>Supply Roster Optimization Tool | Built with Streamlit</small> |
| | </div> |
| | """, unsafe_allow_html=True) |