diff --git a/docs/api/waiter-floor-workflows.md b/docs/api/waiter-floor-workflows.md index d7ed7da..3f3bd7e 100644 --- a/docs/api/waiter-floor-workflows.md +++ b/docs/api/waiter-floor-workflows.md @@ -26,5 +26,6 @@ This BFF exposes execution-facing waiter workflows over REST while delegating or ## Notes - The update route currently reuses the operations order submission contract so waiter-floor can expose update semantics without introducing a new cross-repo dependency. -- Both order mutations project into the shared restaurant lifecycle owned by `operations-service`, which means kitchen and POS can observe the same order/check state after downstream stages are wired. +- Both order mutations project into the shared restaurant lifecycle owned by `operations-service`, which means kitchen and POS can observe the same order/check state through the same runtime path. +- Assignment and recent-activity reads are already lifecycle-backed through `operations-service`, so this BFF does not need a separate summary-projection fallback for the Stage 49 propagation wave. - Correlation IDs are preserved through Thalos session checks and operations-service calls. diff --git a/tests/Waiter.Floor.Bff.Application.UnitTests/OperationsWaiterServiceClientTests.cs b/tests/Waiter.Floor.Bff.Application.UnitTests/OperationsWaiterServiceClientTests.cs index cd82cd0..6aa1dec 100644 --- a/tests/Waiter.Floor.Bff.Application.UnitTests/OperationsWaiterServiceClientTests.cs +++ b/tests/Waiter.Floor.Bff.Application.UnitTests/OperationsWaiterServiceClientTests.cs @@ -15,7 +15,7 @@ public sealed class OperationsWaiterServiceClientTests { "contextId": "demo-context", "locationId": "restaurant-demo", - "summary": "2 active waiter assignments are currently visible.", + "summary": "2 tables currently require floor attention.", "assignments": [ { "waiterId": "service-pool", "tableId": "T-12", "status": "Preparing", "activeOrders": 2 } ], @@ -42,7 +42,7 @@ public sealed class OperationsWaiterServiceClientTests { "contextId": "demo-context", "locationId": "restaurant-demo", - "summary": "2 active waiter assignments are currently visible.", + "summary": "2 tables currently require floor attention.", "assignments": [], "recentActivity": [ "Order ORD-1003 was served at table T-21 and is ready for payment capture." @@ -55,6 +55,7 @@ public sealed class OperationsWaiterServiceClientTests Assert.Equal("demo-context", response.ContextId); Assert.Single(response.RecentActivity); + Assert.Contains("floor attention", response.Summary); } [Fact]