Repository navigation
fix: Dine-in order flow + ID type mismatch + status mismatch - #30
Merged
Merged
Conversation
Non-destructive migration converts existing integer IDs to tbl-{id} format.
Closes #27 part 2
Aligns frontend with backend schema (TEXT PRIMARY KEY). Closes #27 part 3
Aligns with cart store and backend schema. Closes #27 part 4
Aligns frontend types with backend schema and valid statuses. Closes #27 part 5
When a table is selected, show action buttons at bottom of modal. Updates types to use string IDs and cleaning status. Wires up handlers in POS page. Closes #27 part 6
Co-Authored-By: Claude <[email protected]>
The v12 migration converted table IDs from integers to 'tbl-{n}' strings,
but existing orders still referenced the old integer format. This caused
active orders to not show for occupied tables after the migration.
Adds v13 migration to update orders.table_id to match the new format.
The old INSERT didn't provide an id column, so SQLite stored NULL.
The previous migration only handled integer ids, missing NULL ids.
v13 now generates 'tbl-{rowid}' for tables with NULL ids.
We added migrations v12 (fix_table_integer_ids) and v13 (fix_null_table_ids), so the test expectation needs to match.
Regression test for Issue #27: verifies POST /tables generates tbl-{uuid} format IDs, and migration handles NULL/integer IDs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #27
Summary
Fixes three related issues preventing dine-in orders from working correctly:
Changes
Backend
Frontend
Testing
Testing Evidence