Skip to content

Feature/kitchen live operations#30

Merged
ModernityRejecter merged 2 commits into
mainfrom
feature/kitchen-live-operations
May 29, 2026
Merged

Feature/kitchen live operations#30
ModernityRejecter merged 2 commits into
mainfrom
feature/kitchen-live-operations

Conversation

@ModernityRejecter
Copy link
Copy Markdown
Owner

No description provided.

ModernityRejecter and others added 2 commits May 29, 2026 15:26
Order dates were taken from created_at, which is stamped when the DRAFT
cart is first created -- often long before the order is actually placed.
A cart created weeks ago but checked out today showed the weeks-old date.

- Add orders.placed_at (Flyway V14), stamped at checkout; backfill
  existing non-draft orders from created_at
- Expose placedAt on OrderResponse; kitchen board, My Orders and the
  table "last order time" now use placed time (falling back to created_at)
- Sort the DISTINCT fetch-queries in Java instead of SQL: ordering by
  COALESCE(placed_at, created_at) is rejected by Postgres under
  SELECT DISTINCT, which 500'd My Orders and the kitchen board

Customers also could not see the floor plan: GET /api/v1/walls was
WAITER/MANAGER-only, so customers got 403 and tables.js required both
the tables AND walls fetch to succeed, blanking the whole plan.

- Permit authenticated GET /api/v1/walls (read-only), mirroring
  GET /api/v1/tables/map
- Render tables and walls independently so one failing fetch no longer
  blanks the floor plan

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

🤖 Hi @ModernityRejecter, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

@ModernityRejecter ModernityRejecter merged commit ec5ea0a into main May 29, 2026
5 of 6 checks 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.

1 participant