Skip to content

v1.0.0-rc6#6

Merged
BiancoGabry merged 12 commits into
mainfrom
development
May 8, 2026
Merged

v1.0.0-rc6#6
BiancoGabry merged 12 commits into
mainfrom
development

Conversation

@BiancoGabry
Copy link
Copy Markdown
Collaborator

This pull request introduces significant enhancements to the manager page and API routes to support a new "Stations mode" for order management. The changes allow orders to be tracked and updated at the individual station level, including real-time updates via SSE (Server-Sent Events), and add new API endpoints for station-based order updates and fetching stations. There are also configuration improvements to support these new features.

Stations mode and order management enhancements:

  • Refactored the Manager page (app/manager/page.tsx) to support "Stations mode", including:

    • New state and logic for managing orders per station (stationConfirmed, stationCompleted, stationPickedUp), and toggling between normal and stations mode based on display config.
    • SSE event handling for per-station order status updates (order-station-status-update) and order cancellation, ensuring UI stays in sync in real time.
    • Handlers for updating order status at the station level and updating state accordingly.
    • Fetching stations and display config on mount to initialize station-related state. [1] [2] [3] [4] [5]
  • Added new API route to update order status for a specific station:

  • Added new API route to fetch stations:

    • app/api/stations/route.ts: Implements a GET endpoint to fetch the list of stations from the backend, requiring authentication.

Configuration improvements:

  • Updated the display config PATCH handler to support toggling stationsEnabled and fullscreenAlertEnabled flags, enabling or disabling station mode and fullscreen alerts via API.
  • Changed the default AUTH_URL port in .env.template to 3033 to match the development environment.

@BiancoGabry BiancoGabry merged commit 0b1672c into main May 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants