Skip to content

Allow planned orders to be added to another route group - #320

Merged
OziinG merged 1 commit into
mainfrom
fix/kfood-duplicate-add
Oct 2, 2026
Merged

OziinG merged 1 commit into
mainfrom
fix/kfood-duplicate-add

Conversation

@OziinG

@OziinG OziinG commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Add existing orders rejected #2324 as already assigned even when its existing plan belonged to another group. Candidate loading and the submission action now follow the server's duplicate-planning contract: foreign-group planned orders remain selectable, including Date Pending orders, while current-group child membership stays blocked.

Cancelled, completed, failed, skipped and missing-coordinate orders retain their existing restrictions. The existing server API remains authoritative for execution conflicts and revision checks.

Validation:

  • 937 tests passed (909 root app tests and 28 order-filter tests), including new behavioral action regressions.
  • Production build, typecheck, public URL guard and lint on every changed file passed.
  • Synthetic browser: a foreign planned Date Pending order is selectable and enables Add 1; same-group and missing-coordinate orders remain disabled. The fixture uses the actual candidate helper.
  • Independent review found no actionable issue. Full app lint still reports the unchanged existing process/no-undef error at app.drivers-vehicles.jsx:651.

Server dependency EVNSolution/clever-route-server#480 is deployed at 8974e310c6d432595ea10df83e729bd6890a3240 with healthy runtime and public health check. Deploy this app manually to kfood only after exact-main CI, then verify #2324 in the authenticated Add existing orders UI without submitting a production addition.

Change control: EVNSolution/clever-change-control#309

Release verified: merged as 27749e3; exact-main CI 37044340258 and kfood deploy 37044459741 succeeded. Runtime image and release pointer match. After refresh, order #2324 appears Available, can be checked, and enables Add 1 in Sat 10/03 orders. The production addition was not submitted.

Constraint: Saved plans may share real orders; each group's child routes still partition membership.
Rejected: Allow in the list only | the submission action must apply the same candidate policy.
Tested: 937 tests, build, typecheck, changed-file lint, public URL guard and synthetic browser selection.
Not-tested: Full lint remains blocked by unchanged app.drivers-vehicles.jsx process/no-undef baseline.
Scope-risk: narrow
@OziinG
OziinG merged commit 27749e3 into main Oct 2, 2026
2 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