Repository navigation
fix(tables): filter orders by floorplan table - #1301
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@greptileai review this at apex |
[Medium impact] The change reaches the floorplan-to-orders workflow and its table filter. The navigation and filtering changes appear sound, but the new test comment must meet the repository’s two-line limit before merging. Findings
|
|
@greptileai review this at apex |
8bdfc52 to
0786e7a
Compare
|
@greptileai review this at apex |
…leanup in floorplan spec
0786e7a to
d96bd22
Compare
|
@greptileai review this at apex |
|
@greptileai review this at apex |
|
@greptileai review this at apex |
Fixes #1292
Intent
Update
FloorplanEditor.tsx,tables/page.tsx, andorders/page.tsxso clicking "View order" on an occupied floorplan table navigates to/orders?table=<tableId>andorders/page.tsxsyncs?table=fromuseSearchParams()intofilters.table(Issue #1292). Follow Ponytail / YAGNI, validate through/no-mistakes, trigger@greptileai review this at apexon the PR, and resolve any review findings.What Changed
TabletoFloorplanEditor'sonViewOrdercallback and updateTablesPageto navigate to/orders?table=<tableId>when clicking "View order" on an occupied floorplan table.OrdersTableQuerySyncinside aSuspenseboundary inOrdersPageto sync the?table=query parameter intofilters.table, and load/tableson demand when a table filter is active before table options are loaded.tests/orders-search.test.tsandfrontend/e2e/floorplan-view-order-live.spec.tsfor floorplan "View order" navigation and?table=query filter synchronization.Risk Assessment
✅ Low: The change is small, well-bounded to floorplan View Order navigation and OrdersPage ?table= query parameter synchronization, preserves authorization gates, and is covered by unit and E2E tests.
Testing
Ran the focused unit and integration suite (
npm run test:orders-search), built the backend and static frontend (npm run build && npm run build:frontend), and drove all five floorplanView orderand/orders?table=synchronization scenarios live against an isolatedtests/e2e-server.cjsinstance using Playwright Chromium (frontend/e2e/floorplan-view-order-live.spec.ts), capturing six reviewer-visible PNG screenshots in the evidence directory with all checks passing.Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
npm run test:orders-searchnpm run build && npm run build:frontendcd frontend && E2E_BASE_URL=http://127.0.0.1:43001 E2E_KDS_BASE_URL=http://127.0.0.1:43002 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:43003 npx playwright test --config=playwright.config.ts --project=chromium e2e/floorplan-view-order-live.spec.tsPlaywright live Chromium capture against isolated tests/e2e-server.cjs on ports 43011-43013 producing 01..06 PNG screenshots in ~/.no-mistakes/evidence/01M5JTB9BJ5242B4RS4RE65ABX✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.