Files
bakery-ia/shared
Urtzi Alfaro b545d05d23 fix(dashboard): Fix production plans and reasoning modal issues
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>
2025-11-27 11:02:59 +01:00
..
2025-11-13 16:01:08 +01:00
2025-10-31 11:54:19 +01:00
2025-11-21 16:15:09 +01:00
2025-11-05 13:34:56 +01:00
2025-10-30 21:08:07 +01:00
2025-11-14 07:23:56 +01:00
2025-11-02 20:24:44 +01:00
2025-11-05 13:34:56 +01:00
2025-10-27 16:33:26 +01:00
2025-11-21 16:15:09 +01:00
2025-10-29 06:58:05 +01:00
2025-10-31 11:54:19 +01:00
2025-11-19 22:12:51 +01:00
2025-10-24 13:05:04 +02:00
2025-10-21 19:50:07 +02:00