Screens
Every panly-app screen and the API calls it makes, traced from the app source at
elmermj/panly-app @ pre-staging-test (72aaffd). Nothing here is inferred from names: each call lists the lines that make it.
| Screen | App routes | Access (permission keys) | Calls |
|---|---|---|---|
| Bootstrap (app start) | / | any | 3 |
| Sign in and join | /sign-in /join | guest | 5 |
| Forgot password (staff) | /forgot-password | guest | 1 |
| Staff setup link | /staff-setup | guest (token in the link) | 2 |
| Staff password reset link | /staff-reset | guest (token in the link) | 2 |
| Onboarding (new-owner setup) | /onboarding | settings.manage | 8 |
| Premium (owner paywall) | /premium | owner, signed in (outside the shell) | 4 |
| Business paused (staff) | /business-paused | signed-in staff (outside the shell) | none |
| App shell (every signed-in page) | all shell pages | any signed-in person | 14 |
| More (phone) | /more | any page key in the More list | none |
| Dashboard | /dashboard | reports.sales, reports.cashflow | 6 |
| Orders (POS) | /orders /orders/new /orders/new/cart /orders/id/:orderId /orders/id/:orderId/cart | orders.create (new order), orders.view | 13 |
| Split bill | /orders/id/:orderId/split | orders.complete | 4 |
| All orders | /orders/all /orders/all/:orderId | orders.view | 4 |
| Order receipt | /orders/all/:orderId/receipt | orders.view | 2 |
| Order queue (kitchen) | /order-queue | orders.queue | 3 |
| No access | /no-access | any signed-in person | none |
| Order items | /order-items | items.manage | none |
| Items (menu catalogue) | /items | items.manage | 3 |
| Item editor | /items/new /items/:id | items.manage | 19 |
| Recipes | /recipes | items.view | 1 |
| Recipe editor | /recipes/new /recipes/:id | items.manage (new), items.view (open) | 6 |
| Stock | /stock | stock.view | 3 |
| Shopping list | /stock/shopping-list | shopping.manage | 5 |
| Stock in | /stock/in | stock.manage | 5 |
| Write-off | /stock/write-off | stock.manage | 3 |
| Stock count | /stock/count | stock.manage | 2 |
| Stock count result | /stock/count/result | stock.manage | none |
| Expenses | /expenses /expenses/new /expenses/:id/edit /expenses/:id/history | expenses.view | 11 |
| Reports | /reports | reports.sales, reports.cashflow | 4 |
| Payroll | /payroll | payroll.manage | 15 |
| Payroll settings | /payroll/settings | payroll.manage | 2 |
| Users | /users | staff.manage | 7 |
| Roles | /roles | roles.manage | 7 |
| Settings | /settings | settings.manage, items.manage, stock.manage, expenses.manage | 5 |
| Business profile | /settings/business | settings.manage, items.manage, stock.manage, expenses.manage | 2 |
| Language | /settings/language | settings.manage, items.manage, stock.manage, expenses.manage | 1 |
| Change password | /settings/password | any signed-in person | 1 |
| Notifications | /notifications | any signed-in person | 3 |
| Charges | /settings/charges | settings.manage | 2 |
| Charge editor | /settings/charges/new /settings/charges/:id | settings.manage | 3 |
| Plan and storage | /settings/plan | settings.manage | 4 |
| Add-ons | /settings/plan/add-ons | settings.manage | 4 |
Live endpoints no screen calls (42)
Served by the API and documented, but not used by any screen at 72aaffd (health and features the app has not built yet).
- GET
/healthz - GET
/readyz - DELETE
/v1/account/deletion - GET
/v1/account/deletion - POST
/v1/account/deletion - POST
/v1/account/export - GET
/v1/account/export/{id} - GET
/v1/employees/{employeeId} - GET
/v1/expense-lines/{lineId} - PATCH
/v1/expense-lines/{lineId} - POST
/v1/expense-lines/{lineId}/correct - GET
/v1/expense-lines/{lineId}/history - GET
/v1/expense-lines/{lineId}/recosts - POST
/v1/expense-lines/{lineId}/void - POST
/v1/expenses/{expenseId}/ingredient-lines - GET
/v1/finance/amendments - DELETE
/v1/ingredients/{ingredientId}/image - POST
/v1/ingredients/{ingredientId}/image/confirm - POST
/v1/ingredients/{ingredientId}/image/upload-url - GET
/v1/invitations - POST
/v1/invitations - DELETE
/v1/invitations/{invitationId} - GET
/v1/menu-items/{menuItemId} - GET
/v1/menu-items/{menuItemId}/charges - PUT
/v1/menu-items/{menuItemId}/charges - DELETE
/v1/menus/{menuId} - GET
/v1/menus/{menuId} - PATCH
/v1/menus/{menuId} - POST
/v1/orders/quote - POST
/v1/orders/{orderId}/quote - GET
/v1/reports/daily/{day}/entries - GET
/v1/shopping-list - DELETE
/v1/shopping-list/items - POST
/v1/shopping-list/items - DELETE
/v1/shopping-list/items/{itemId} - PATCH
/v1/shopping-list/items/{itemId} - GET
/v1/staff/{staffId} - GET
/v1/stock-audits - GET
/v1/stock-audits/{auditId} - PATCH
/v1/waste/{movementId} - GET
/v1/waste/{movementId}/history - POST
/v1/waste/{movementId}/void
Traced by hand from the app source at app_commit: screen -> controller -> use case -> repository/datasource. Update this file when the app changes. Access is by permission key since PAN-88: the Access column lists the keys that open a page (any one of them is enough), taken from the app's route table; the keys held by each role come from GET /v1/roles. PAN-61 fields the app uses: status=restock (Shopping list), par_quantity and last_supplier. The PAN-65 shift API (locked_reason, DELETE /v1/shifts/{shiftId}, PATCH started_at) is used by Payroll. PAN-70/72/76/80/83: payroll settings, DELETE of a draft run, add and edit employees and the pay run preview are used by Payroll and Payroll settings. PAN-74: the optional cancel note on POST /v1/orders/{orderId}/cancel is used. PAN-73: recipe_cost is shown only in the desktop Items pane. PAN-78/79/80: onboarding (GET and PATCH /v1/merchants/me/onboarding, apply, complete), GET /v1/plans and POST and DELETE /v1/merchants/me/plan-selection are used by Onboarding and Plan and storage. PAN-85/87: POST /v1/stock-check and the Ready and Served ticks are used by Orders and the Order queue. PAN-89: GET and POST /v1/roles, PATCH and DELETE /v1/roles/{roleId} and GET /v1/permissions are used by Roles. PAN-93: PATCH /v1/me (language). PAN-107/112/120/121: staff logins (GET, POST, PATCH, DELETE /v1/staff, reset, id-availability) and the employee sign-in, setup, reset, forgot and change password endpoints; business codes. PAN-114/116/117/119/123: GET /v1/billing, GET /v1/config, checkout and confirm, and the add-ons endpoints. PAN-129: charges. PAN-126: expense amend and history. PAN-135: split bill. PAN-141: split by amount. PAN-128: 409 category_exists on a new category. PAN-137: stale expense cursor reloads page one. PAN-136: refined restyle across every page (FIXLIST items 1–51: Reports Sales and Items tabs, phone nav drawer, stock more menu); the app no longer offers a Free plan or invite links. Not used by the app at this commit: every invitations endpoint, GET and PATCH /v1/members/{membershipId}, GET /v1/staff/{staffId}, GET /v1/employees/{employeeId}, the ingredient image endpoints, GET /v1/menu-items/{menuItemId}, reading, renaming or deleting a menu category, POST /v1/expenses/{expenseId}/ingredient-lines and the stock-audits endpoints. PAN-142: payments_by_method on GET /v1/reports/sales (Reports), the close method on POST /v1/orders/{orderId}/close (Orders) and recipe_cost on the Recipes list. PAN-142/145/146 (app #97): the Reports Payments by method card shows the API's fifth payments_by_method entry other as Method not recorded when present; KPI tiles wrap; 390px P1 fixes. PAN-148 (app #98): the Notifications page (81u) uses GET /v1/notifications (cursor pages), GET /v1/notifications/unread-count (the badge in the shell, More and Settings) and POST /v1/notifications/read with ids or all. PAN-149/150 (app #99): read rows carry no dot; one back arrow on the phone Notifications page; the phone header and nav survive a language change. PAN-151 (app #100): GET /v1/notifications/unread-count is also called at sign-in and each time More opens; More shows a calm row (no subtitle, no dot) until the count arrives; read rows stay under Earlier after Mark all read on phone; one back arrow on every phone sub-page. PAN-155 (app #101): the Reports daily financials table reads GET /v1/reports/cashflow rows as Sales, Refunds and Net sales (only when refunds exist), Cost of sales, Gross profit with gross margin, waste_cost as its own Waste column, Operating expenses and Net profit with net margin; every header has a tooltip; phone widths show one card per period.