Compensation, endowmnet tweaks. Added About.

This commit is contained in:
emfurst 2026-03-31 08:03:58 -04:00
commit 13fb4b8418
13 changed files with 914 additions and 17 deletions

View file

@ -4,7 +4,9 @@ import dash
from dash import dcc, html, Input, Output
from admin_analytics.db.connection import get_connection
from admin_analytics.dashboard.pages import overview, compensation, staffing, headcount
from admin_analytics.dashboard.pages import (
overview, compensation, staffing, headcount, endowment, philanthropy, about,
)
def create_app() -> dash.Dash:
@ -25,7 +27,10 @@ def create_app() -> dash.Dash:
dcc.Tab(label="Executive Compensation", value="compensation"),
dcc.Tab(label="Admin Cost Overview", value="overview"),
dcc.Tab(label="Staffing & Enrollment", value="staffing"),
dcc.Tab(label="Endowment", value="endowment"),
dcc.Tab(label="Philanthropy", value="philanthropy"),
dcc.Tab(label="Current Headcount", value="headcount"),
dcc.Tab(label="About", value="about"),
],
style={"marginBottom": "20px"},
),
@ -42,8 +47,14 @@ def create_app() -> dash.Dash:
return compensation.layout(conn)
elif tab == "staffing":
return staffing.layout(conn)
elif tab == "endowment":
return endowment.layout(conn)
elif tab == "philanthropy":
return philanthropy.layout(conn)
elif tab == "headcount":
return headcount.layout(conn)
elif tab == "about":
return about.layout()
return html.Div("Unknown tab")
compensation.register_callbacks(app, conn)