Skip to content

Find orders across delivery dates and show Start/End timing in route tables - #318

Merged
OziinG merged 1 commit into
mainfrom
codex/kfood-route-usability
Oct 2, 2026
Merged

OziinG merged 1 commit into
mainfrom
codex/kfood-route-usability

Conversation

@OziinG

@OziinG OziinG commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Add Order searches all synchronized orders by number regardless of the selected delivery-date filter, including Date Pending. Orders that cannot be added remain visible with a reason and cannot enter individual or bulk selection; the action re-fetches eligible candidates before sending the request.

Standalone and child route tables now show Start first and End last in Stops and Tracking. Endpoint rows share the existing ETA presentation: a recorded actual time appears beneath a struck-through planned time; otherwise only the planned time or a dash appears. They do not affect stop counts, selection, or reordering, and no aggregate endpoints are added to All routes. End planning includes coherent drive, service, waiting and return timing. Actual times use recorded evidence, and saved depot labels are never silently replaced by a different current location.

Depends on server EVNSolution/clever-route-server#478 for cross-date additions and execution-evidence scoping. Release the server first.

Validation

  • Exact-head GitHub CI passed.

  • App suite: 928/928 passed; focused endpoint/search suite: 59/59 passed.

  • Changed-file ESLint, typecheck and production build passed.

  • Prisma migration replay, token-authority SDK contract and public URL checks passed.

  • Real RouteDetail component in a synthetic local browser fixture: Date Pending/cross-date search, disabled candidate reasons, eligible-only select all, numeric endpoint times in Stops/Tracking, child rows, and no aggregate Start/End rows confirmed. Maps and production transports are stubbed.

  • Independent review: no remaining findings.

  • Full lint has one pre-existing error in unchanged app.drivers-vehicles.jsx:651 (process / no-undef); the baseline contains the same line.

  • No production deployment or order mutation performed. Toll roads remain research-only in the server PR.

Date-independent search includes Date Pending while keeping blocked orders
visible and unselectable. Start and End share the existing numeric ETA
presentation and preserve actual-time and saved-location evidence.

Constraint: Stored order dates and route dates must not change during manual additions.
Rejected: Visible Planned and Unconfirmed labels | Use planned strike-through with actual time beneath, matching stop rows.
Confidence: high
Scope-risk: moderate
Tested: 928 app tests; scoped lint; typecheck; production build; synthetic browser checks for search, selection, endpoints, child and aggregate views.
Not-tested: Production writes; full lint retains existing app.drivers-vehicles.jsx process no-undef at line 651.
@OziinG
OziinG marked this pull request as ready for review October 2, 2026 15:42
@OziinG
OziinG merged commit 34e5b9f 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