improve dashboard nav scroll and reservation details

This commit is contained in:
Your Name committed 2026-06-19 20:24:59 +08:00
1 parent 0f1baac92f
commit 4891f3b019
5 files changed
+53 -11

No files matched your search

+2
View File
@@ -15,6 +15,7 @@ class DashboardData:
cfg: dict[str, Any]
run_log: list[str]
action_log: list[str]
reservations_state: dict[str, Any]
reservations: list[dict[str, Any]]
high_value_rooms: list[dict[str, Any]]
mapping_rows: list[dict[str, Any]]
@@ -176,6 +177,7 @@ def load_dashboard_data() -> DashboardData:
cfg=cfg if isinstance(cfg, dict) else {},
run_log=_tail(path_config.get_log_file_path(), 240) or _tail(path_config.get_simple_log_path(), 240),
action_log=_tail(path_config.get_actions_log_path(), 240),
reservations_state=reservations_raw if isinstance(reservations_raw, dict) else {},
reservations=_normalize_rows(reservations_raw, ("reservations", "items", "queue")),
high_value_rooms=_normalize_rows(high_raw, ("rooms", "items", "records")),
mapping_rows=_mapping_rows(),