1. **Fix "Sin Plan" (No Production Planned)**:
- Updated BASE_REFERENCE_DATE from Nov 25 to Nov 27 to match current date
- Production batches were being filtered out because they were dated for Nov 25
- The get_todays_batches() method filters for batches scheduled TODAY
2. **Fix "Ver razonamiento" Button Not Opening Modal**:
- Changed handleOpenReasoning() to always emit 'reasoning:show' event
- Previous logic tried to navigate to PO/batch detail pages instead
- Now keeps user on dashboard and shows reasoning modal inline
- Passes all metadata (action_id, po_id, batch_id, reasoning) in event
This ensures production progress shows correctly and users can view
AI reasoning without leaving the dashboard.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Update BASE_REFERENCE_DATE from January 15, 2025 to November 25, 2025
to ensure demo data appears recent and relevant.
This fixes the "11 meses" (11 months) display issue in GlanceableHealthHero
where lastOrchestrationRun was showing an 11-month-old timestamp.
The BASE_REFERENCE_DATE is used by all demo seeding scripts to calculate
relative dates. With the updated reference date, the most recent
orchestration runs will show as "hace 2 días" or similar instead of
"hace 11 meses".
Impact:
- All demo seed data timestamps will be relative to Nov 25, 2025
- Dashboard will show "Last run: 2 days ago" instead of "11 months ago"
- Expiration dates, delivery dates, and other temporal data remain
properly offset from the new reference
Fixes: Issue #6 - "11 meses" data bug
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>