|
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
User asked for a manual date range on the Dashboard chart instead of the hard-coded 12-month window. Backend (/networth/history): - Read LIVE from wf_sync's daily_account_valuation JOIN accounts so the chart spans the broker's full daily series. The account_snapshot cache is only the latest snapshot — never had >2 daily points for charting. Falls back to the cache when wf_sync isn't wired (tests). - Accept `from=YYYY-MM-DD` and `to=YYYY-MM-DD` query params. When `from` is set, the window is [from, to or today] (inclusive). Otherwise the legacy `days` look-back still applies. 422 when from > to. Frontend: - New HistoryRangePicker component: preset buttons (1m / 3m / 6m / 1y / 3y / All) plus two date inputs for an explicit custom range. - Dashboard wires the picker to the chart via react-query keyed on the selected range, so the chart re-fetches on change. Tests: - Renamed `respects_days_filter` → `respects_from_to_filter` and added inverted-window rejection. Old test asserted "days=1 returns 1 point" which only worked when 'today' was within the seed window — the new windowing is correct and explicit. 271 → 272 tests passing. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_actualbudget.py | ||
| test_api_cashflow.py | ||
| test_api_life_events_goals.py | ||
| test_api_networth.py | ||
| test_api_networth_refresh.py | ||
| test_api_progress.py | ||
| test_api_scenarios.py | ||
| test_api_simulate.py | ||
| test_api_spending.py | ||
| test_api_spending_profile.py | ||
| test_api_year_stats.py | ||
| test_cli.py | ||
| test_col.py | ||
| test_db_schema.py | ||
| test_e2e.py | ||
| test_flex_spending.py | ||
| test_goals_eval.py | ||
| test_income_streams.py | ||
| test_ingest_wealthfolio_pg.py | ||
| test_life_events.py | ||
| test_reporters_pg.py | ||
| test_returns.py | ||
| test_returns_wealthfolio.py | ||
| test_scenarios.py | ||
| test_simulator.py | ||
| test_simulator_col_integration.py | ||
| test_simulator_events.py | ||
| test_simulator_fixed_rates.py | ||
| test_simulator_flex.py | ||
| test_spending_plan.py | ||
| test_strategies.py | ||
| test_tax_base.py | ||
| test_tax_other_regimes.py | ||
| test_tax_uk.py | ||