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

@@ -4,6 +4,9 @@
Read model:
- Dashboard responses now expose the earliest and latest ARRIVAL coverage dates from the same current daily-version
snapshot, so the UI can show actual data coverage instead of inferring a full calendar month.
- available months and source pins: `finance.current_daily_versions`;
- channels/order/counts: `finance.daily_channel_metrics` for those current versions;
- aggregates and detail: `finance.v_active_daily_facts` (`current + retained` only);