feat(orders): implement order ingestion pipeline, review ratings schema, and [Family] exclusion

This commit is contained in:
2026-07-26 18:52:34 +10:00
parent d06088fe34
commit bbb90238e4
13 changed files with 667 additions and 3 deletions
+3 -1
View File
@@ -267,7 +267,9 @@ export default function AnalyticsPage() {
const daily: Record<number, number> = {};
(monthTxData?.data ?? [])
.filter((tx) => tx.transaction_type === "debit" && !["transfers", "investment"].includes(tx.effective_category))
.filter((tx) => tx.transaction_type === "debit" &&
!["transfers", "investment"].includes(tx.effective_category) &&
!tx.tags?.some((t: any) => (typeof t === "string" ? t : t.name) === "family"))
.forEach((tx) => {
const day = new Date(tx.transaction_date).getDate();
daily[day] = (daily[day] || 0) + Number(tx.amount_aud ?? tx.amount);