|
|
import streamlit as st |
|
|
from services.api import fetch_data |
|
|
|
|
|
def render_home(): |
|
|
st.title("π Welcome to the HR Analytics Home Page") |
|
|
st.write(""" |
|
|
This dashboard provides insights into employee satisfaction, performance metrics, |
|
|
training effectiveness, diversity & inclusion, and much more. |
|
|
""") |
|
|
|
|
|
|
|
|
home_data = fetch_data("/home") |
|
|
|
|
|
if isinstance(home_data, dict): |
|
|
st.subheader("π Available API Endpoints") |
|
|
st.json(home_data.get("endpoints", {})) |
|
|
|
|
|
st.markdown("### π How to Use") |
|
|
st.write(""" |
|
|
- Navigate to the **Analytics Dashboard** from the sidebar. |
|
|
- Select an analysis type to fetch insights. |
|
|
- Visualize results with interactive charts. |
|
|
""") |
|
|
|