forecasting/backend/api
jtricerolph 2a7ee1d6b8 Expand AI insight: fix broken competitor query, add continuity, 30-day horizon, holidays
- Fix gather_competitor_data() tier filter: it queried tier IN ('primary','secondary'),
  values that never exist (real values are 'own'/'competitor'/'market'), so the
  cheapest-competitor comparison has always silently returned nothing.
- Feed the previous insight back into the prompt so the model can note what's
  changed/resolved instead of repeating itself.
- Extend forecast horizon from 14 to 30 days; add a per-day revenue table
  alongside the existing occupancy table.
- Annotate the occupancy table with UK (England) bank holidays.
- Add a same-channel market-movement section (B.com vs B.com, rack vs rack)
  diffing rates against the last insight's snapshot, threshold £3.
- Add a parsed headline field + insight history list on the Dashboard,
  collapsed to headline/age and expandable to full content.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-24 18:03:31 +00:00
..
__init__.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
accuracy.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
ai_insights.py Expand AI insight: fix broken competitor query, add continuity, 30-day horizon, holidays 2026-07-24 18:03:31 +00:00
backtest.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
backup.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
budget.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
config.py Expand AI insight: fix broken competitor query, add continuity, 30-day horizon, holidays 2026-07-24 18:03:31 +00:00
crossref.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
evolution.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
explain.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
export.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
forecast.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
historical.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
public.py Add dow_align param to /forecast/revenue and /forecast/rooms 2026-07-21 18:28:55 +00:00
reconciliation.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
reports.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
resos.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
resos_sync.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
special_dates.py Forecasting app: hybrid port to HNF stack 2026-07-04 18:49:34 +00:00
sync.py Add weather sync job, API endpoints and settings UI 2026-07-13 21:10:03 +00:00
sync_bookings.py Fix sync not updating arrival/departure dates on re-sync 2026-07-21 17:23:09 +00:00