feat: deliver schema 15 monthly settlement lifecycle
This commit is contained in:
+5
-1
@@ -1,5 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
import sqlite3
|
||||
from datetime import datetime
|
||||
from html import escape
|
||||
@@ -38,6 +39,7 @@ JARCA_COLORS = {
|
||||
}
|
||||
|
||||
JARCA_PLOTLY_TEMPLATE = "jarca_clean"
|
||||
logger = logging.getLogger(__name__)
|
||||
pio.templates[JARCA_PLOTLY_TEMPLATE] = pio.templates["plotly_white"].update(
|
||||
{
|
||||
"layout": {
|
||||
@@ -362,7 +364,8 @@ def validate_dashboard_page(page: str | None, pages: list[str]) -> str:
|
||||
|
||||
|
||||
def _sync_dashboard_page_query() -> None:
|
||||
st.query_params["page"] = st.session_state["dashboard_page"]
|
||||
page = st.session_state["dashboard_page"]
|
||||
st.query_params["page"] = {"월정산": "monthly_settlement"}.get(page, page)
|
||||
|
||||
|
||||
def render_sidebar_nav(pages: list[str], current_page: str) -> str:
|
||||
@@ -391,6 +394,7 @@ def render_dashboard_body(page: str, renderer) -> None:
|
||||
renderer()
|
||||
loading.empty()
|
||||
except Exception:
|
||||
logger.exception("Dashboard page render failed: page=%s", page)
|
||||
body.empty()
|
||||
with body.container():
|
||||
st.error("페이지를 불러오지 못했습니다. 다시 시도해 주세요.")
|
||||
|
||||
Reference in New Issue
Block a user