feat: refine web analytics and history views

This commit is contained in:
Wyndham ARR
2026-08-02 12:56:22 +08:00
parent a891c0ae7a
commit 7e7470821b
37 changed files with 2088 additions and 361 deletions

View File

@@ -168,6 +168,7 @@ def build_dashboard(
source_monthly_sha256: str,
channel_names: Iterable[str],
facts: Iterable[AggregatedRoomFact],
min_arrival_date: Optional[str] = None,
) -> Dict[str, Any]:
validate_month_key(month_key)
names = tuple(channel_names)
@@ -213,6 +214,7 @@ def build_dashboard(
"version": DASHBOARD_VERSION,
"month_key": month_key,
"updated_at": updated_at,
"min_arrival_date": min_arrival_date,
"max_arrival_date": max_arrival_date,
"source_monthly_sha256": source_monthly_sha256,
"overall": {