feat(dashboard): replace home with approved minimal design
CI / ruff · pytest (pull_request) Successful in 2m1s
CI / ruff · pytest (pull_request) Successful in 2m1s
Refs #73
This commit is contained in:
+5
-4
@@ -92,6 +92,7 @@ def main() -> None:
|
||||
|
||||
st.set_page_config(page_title="Кабинет врача · MedITron", page_icon="🩺", layout="wide")
|
||||
st.html(theme.CSS)
|
||||
st.logo(str(ROOT / "dashboard" / "assets" / "logo.svg"), size="large")
|
||||
|
||||
specs = discover_pages()
|
||||
nav: dict[str, list[st.Page]] = {}
|
||||
@@ -103,14 +104,14 @@ def main() -> None:
|
||||
current = st.navigation(nav, position="sidebar", expanded=True)
|
||||
|
||||
with st.sidebar:
|
||||
short, _ = state.doctor_names()
|
||||
st.html(
|
||||
'<div style="padding:4px 2px 10px"><div class="mt-kicker">MedITron · сопровождение</div>'
|
||||
f'<div style="font-weight:650;font-size:1rem;margin-top:2px">{short}</div>'
|
||||
'<div class="mt-meta">психиатр · кабинет МПК</div></div>'
|
||||
'<div class="mt-sidebar-note"><strong>Рядом между визитами</strong>'
|
||||
"Наблюдение за состоянием пациента и поддержка назначенного лечения.</div>"
|
||||
)
|
||||
st.caption("Прототип на синтетических данных")
|
||||
|
||||
short, _ = state.doctor_names()
|
||||
st.html(ui.workspace_header(short, current.title))
|
||||
live_alerts.flush_pending_toasts()
|
||||
# Full-app rerun on a new alert only on doctor pages: demo-console pages may be mid-scenario.
|
||||
live_alerts.render(rerun_app_on_new=section_of.get(current.url_path) == DOCTOR_SECTION)
|
||||
|
||||
Reference in New Issue
Block a user