Description
The admin orders page fetches orders exactly ONCE on mount and never polls for updates. The auto-refresh interval code is commented out in OrdersGrid.jsx with a note: UNCOMMENT Auto-refresh every 30 seconds.
Impact
- Restaurant admins must manually refresh the page to see new incoming orders
- In a real-time ordering system, this creates a poor experience
Files Involved
- RestroHub-FrontEnd/src/components/admin/orders/orderComponents/OrdersGrid.jsx
Description
The admin orders page fetches orders exactly ONCE on mount and never polls for updates. The auto-refresh interval code is commented out in OrdersGrid.jsx with a note: UNCOMMENT Auto-refresh every 30 seconds.
Impact
Files Involved