feat: the table map (platform-v2 step 6.8, D-31)
- floor_plans / floor_items (0035), tables' plan_id + width/height/rotation/shape; /api/floor-plans (set-up, catalog.tables.manage, floor_plans.changed) and /api/floor-plans/live (each table's state, guests, waiters, time; zone rule) - @xenia/floorplan: the drawing (Floor, Item, TableShape, FloorView) and its geometry (grid snap in whole cells, outlines, chairs), tested - manager: Management -> Tables -> Floor plans (editor: drag, grid, irregular floor, walls/bar/labels/areas, background picture), Tables page List / Map - counter POS: Tables List / Map; waiter: Map mode, the list stays the default - tests: test_floor_plans.py, floor + geometry unit tests, manager/waiter/terminal e2e Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -224,6 +224,11 @@ CODES: dict[str, tuple[int, str]] = {
|
||||
"print_job.not_found": (404, "That print job isn't there any more."),
|
||||
"print_job.not_pending": (400, "Only tickets still waiting to print can be cancelled."),
|
||||
"table.not_found": (404, "Table not found."),
|
||||
"floor_plan.not_found": (404, "Floor plan not found."),
|
||||
"floor_plan.bad_outline": (422, "The floor's shape needs 3 to 100 corners, all inside the plan."),
|
||||
"floor_plan.bad_zone": (422, "That zone no longer exists."),
|
||||
"floor_plan.bad_background": (422, "The background must be a picture from the media library."),
|
||||
"floor_plan.bad_layout": (422, "The layout has a table twice or a place that is not a number."),
|
||||
"table.busy": (400, "That table already has an open order."),
|
||||
"table.has_order": (400, "A table with an open order can't be deleted or turned off."),
|
||||
"table.name_too_long": (400, "The table names would be too long ({name}: at most {max} characters). Shorten the prefix or make fewer."),
|
||||
|
||||
Reference in New Issue
Block a user