Skip to content

Retail: a Manager button on the order screen - #433

Merged
No0ne558 merged 1 commit into
mainfrom
claude/retail-manager-button
Oct 29, 2026
Merged

No0ne558 merged 1 commit into
mainfrom
claude/retail-manager-button

Conversation

@No0ne558

Copy link
Copy Markdown
Contributor

Fixes #432.

Problem

In retail, the order screen has only Log Out where restaurants have Tables, and logging back in starts on the menu. A manager had no way to reach the Manager menu, so they couldn't switch the store back to restaurant.

Change

  • Order screen (seed/pages/order-template.json, phone variant): new flow-manager button in Send's spot, since retail has no Send. It opens the manager page, with showWhen: {service: retail, login: manager}, so cashiers don't see it.
  • Stores already set up (layout/layout.cpp):
    • order-template#flow-manager joins newStarterButtons(), so stores from before button tracking get it too.
    • placeNewButton no longer counts a button shown only for another way of serving as in the way. Without this, a store that edited its order page would get "no room", because the hidden Send occupies the spot.
  • Docs: manual (How you serve → Retail) and modern/README.md.

Tests

  • test_truck.cpp: in retail, a cashier doesn't see Manager; a manager sees it and it opens the manager page. Restaurant and truck screens don't show it.
  • test_layout.cpp: a store that edited its order page gets flow-manager at Send's spot and keeps its own edit.
  • [starter], [truck] and [layout] pass: 48 test cases. The full suite was still running when this PR was opened.

Generated by Claude Code

In retail, the order screen had only Log Out where restaurants have
Tables, and logging back in starts on the menu, so a manager had no way
to the Manager menu (or to switch the store back to restaurant).

A manager now gets Manager where restaurants have Send (retail has no
Send); a cashier doesn't see it. Stores that edited their order page get
the button too: a new starter button may share a spot with one shown
only for another way of serving.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015JJaarEt6reBcV4yp7BjZA
@No0ne558
No0ne558 merged commit 88ee1a4 into main Oct 29, 2026
1 check passed
@No0ne558
No0ne558 deleted the claude/retail-manager-button branch October 29, 2026 03:07
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.

Issue when selecting retail

2 participants