Skip to content

Explain locked route actions instead of failing silently - #166

Merged
OziinG merged 1 commit into
mainfrom
codex/customer-notification-next
Aug 6, 2026
Merged

Explain locked route actions instead of failing silently#166
OziinG merged 1 commit into
mainfrom
codex/customer-notification-next

Conversation

@OziinG

@OziinG OziinG commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What changed

  • keep completed and active routes immutable while making Add order and Reverse stops explain why they cannot run
  • replace the non-opening empty-order App Bridge modal with the route detail page's existing dialog pattern
  • make Ready-route reversal update the draft order immediately with the existing timeline animation

Root cause

The reported route was Completed. Both controls were natively disabled, so clicks produced no feedback and looked broken. The empty-candidate branch also depended on a modal invocation that was not reliable in this route surface.

Validation

  • npm test — 483 passed
  • npm run build
  • npm run typecheck
  • npm run check:public-urls
  • authenticated K-food page inspection confirmed the reported route is Completed and Add order is disabled in the deployed build

Constraint: Completed and active routes remain immutable for stop membership changes.
Rejected: Allowing completed routes to add or reorder stops | would weaken route execution safeguards.
Confidence: high
Scope-risk: narrow
Directive: Keep completed-route actions explanatory unless the route lifecycle policy is explicitly changed.
Tested: npm test; npm run build; npm run typecheck; npm run check:public-urls
Not-tested: Authenticated Ready-route browser interaction before deployment
@OziinG
OziinG marked this pull request as ready for review August 6, 2026 04:13
@OziinG
OziinG merged commit 272f68e into main Aug 6, 2026
1 check 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