Skip to content

Chapter 15 — Mobile Planner

15.1 — What it is, and what it does

⚙ Not a pipeline step: the Mobile Planner is a phone app that sits on top of the plan the pipeline has already produced. It shows the supply orders the approval step routed to you and lets you decide on them with a swipe — and approve them for real. Open https://app.mirabelle.es/ on a phone — it opens by itself — or go straight to /m/.

Your decisions are real

Accepting an order puts it in your cart, which is kept on the server. Approve all is the final approval: each order is approved by you, exactly as when you approve it in the Supply Approval grid on the desktop — the same statuses, the same decision log, the same audit trail. Canceling an order rejects it. Nothing is sent to your ERP by the app itself: the orders are handed to the executor the Auto-Approval engine is configured with (by default it only marks the order executed).

The one-sentence model: the app shows you, a hundred at a time, the supply orders that need a human decision soon, with the numbers you need to decide (quantity, value, dates, stock, service level) — and you answer with a swipe: right to accept, left to cancel — after correcting the quantity or the order date if you want to. When the cart holds what you want, Approve all.

flowchart LR
    A[List: orders to review] --> B[Order page: numbers, charts, stock]
    A -- edit quantity or order date in place --> A
    B -- swipe right or Accept --> C[Your cart, on the server]
    B -- swipe left or Cancel --> D[Canceled - can be put back]
    B -- double-tap the card or back arrow --> A
    C -- Approve all, confirmed --> E[Approved]
    C -- trash --> A
    D -- Put back --> A

15.2 — Getting started

Step What to do
1. Open it On an iPhone or an Android phone open https://app.mirabelle.es/ — you land on the planner by yourself, from any page of Mirabelle. The general website has a Get the app button under its headline that takes you straight to it, and a QR code (the Open the Mirabelle app card of the demo sheet, §15.9) does the same from the phone's own camera. (Tablets and computers keep the standard site; the planner also runs there at /m/.)
2. Sign in Your usual e-mail and password. If you belong to several tenants you choose the tenant after the password. The phone stays signed in (§15.2.1): you do not sign in again every morning.
3. Put it on your home screen The app offers it itself: on the sign-in screen and in the menu → App, tap Install (Chrome or Edge on Android, and desktop Chrome) and confirm — that is the whole install. iPhone (Safari): the app shows the exact steps instead — Share → Add to Home Screen — because iOS does not allow a website to install an app for you.
The planner's sign-in screen
The sign-in screen. The home-screen app keeps its own sign-in on an iPhone: sign in once inside it.

Back to the standard site

Menu → Open the desktop site shows the standard Mirabelle for the rest of that browser tab.

15.2.1 — Staying signed in

A normal Mirabelle session lasts 8 hours. On the phone that would mean signing in every morning, so the app asks to stay signed in when you sign in: the server then also gives the phone a second, long-lived credential — kept in the browser, never readable by the page, and sent only with requests to the sign-in endpoints (/api/auth/…), never with a request for data. When the 8-hour session has run out, the app renews it by itself (you see nothing: the list you were looking at is still there, and the action you just took goes through).

  • 30 days of use, 90 days at most. Every renewal pushes the end 30 days further out; 90 days after you signed in, the app asks for your password again, however often you used it.
  • Every renewal replaces the credential. The old one stops working at once. If an old one is ever used again — which means a copy of it exists somewhere — the whole sign-in is ended: the phone shows the sign-in screen and the event is written to the audit log (refresh_reuse). Two renewals that happen in the same instant (two browser tabs) are not mistaken for a theft: the second just uses the cookies the first one set.
  • It follows the account, not the phone. Disabling a user, deleting a user, or changing the password ends the stay-signed-in sign-in at its next renewal — an administrator never has to hunt for a phone. Role and segment changes apply at the next renewal too.
  • Sign out ends it. Sign out in the menu revokes the session and the stay-signed-in credential: the next app start asks for a password.
  • Only for people who sign in with a tenant account. A superadmin always signs in again, and the desktop app never asks for it (nothing changes there).
  • If the renewal cannot be tried because the phone is offline or the server is starting, the app says exactly that — it does not show the sign-in screen, because your sign-in is probably still good.

15.3 — Which orders you see, and how to find one

The list is not "every order of the plan". An order is on your list when all three are true:

  1. It needs a human decision — the approval step did not already decide it by a rule, and it is not assigned to another planner.
  2. It is due soon — its release falls inside the review window, 3 days by default (set on the approval scenario). Plan dates are weekly, so from Friday on the window also reaches the orders released next Monday.
  3. It is in your segments — an administrator assigns segments to each user. You see those; from the menu you pick one of them or All my segments. Administrators are not restricted.
The list of orders to review A list row edited in place
The header shows the pipeline, a progress bar and the cart. Three tabs hold what is left to review, what you approved and what you canceled. Under the tabs: the search box, Sort & filter, and a line that says how many orders there are and how they are sorted. A row after editing the quantity and the order date in place: the edited boxes turn amber and the row remembers what the plan had.
  • The tabs. To review holds the orders still waiting for you and the ones sitting in your cart (marked In cart); Approved and Canceled hold what you decided. Each tab has its own count.
  • Progress — "25% reviewed · 2 of 8": an order in your cart, approved or canceled counts as reviewed. The bar is split into approved (green), in the cart (blue), canceled (red) and still to review (grey).
  • The note about the window — on the To review tab, when the review window holds orders that are not on your list, the app says why: "12 orders are due in the next 3 days: 5 to review, 6 decided by a rule, 1 waiting for the approval step.". An amber note means the plan was recomputed and the approval step has not looked at some orders yet; they appear once it has run.
  • The grey line under an order says why you see it — the approval rule that sent it to you (for example a value cap).

A long list is loaded a hundred at a time

The list is an infinite list: the first hundred orders open at once and the next hundred are loaded before you reach the end — you just keep scrolling. The line under the search box tells you where you are: "100 of 350 orders · by release date"; once everything is loaded it says "350 orders · by release date". A Show more button at the end of the loaded rows loads the next page by hand.

  • If a page cannot be loaded, the rows you have stay on screen and a message with Retry appears under them; the app does not keep hammering the server.
  • If a refresh fails, the list says "… The list below may be out of date" with a Retry.
  • After a decision the list is re-read as far as you have scrolled — it does not jump back to the top.
  • The position on the order page ("96 / 350") counts against the whole list (with your filters), not only the rows loaded so far, and the next page is fetched in the background while you are on one of the last orders loaded.

Search, sort and filter

The Sort and filter sheet Choosing a site A filtered list
Sort & filter: how the list is ordered, and which site or item it is narrowed to. The site picker lists the sites of your queue with the number of orders each holds, and a search box. The item picker works the same way. The filter is a chip under the search box — tap it to remove it. The line below says the list is filtered.
  • Search looks at the item (name or number), the site, the source site, the order type and the order number, and asks the server when you stop typing. Every word you type must match.
  • Sort by — Release date (soonest first, the default), Value (largest first; orders without a cost come last), Item (A to Z), Site (A to Z) or Quantity (largest first). The server sorts the whole list, so the order is the same however many pages are loaded.
  • Show only — one site (the receiving site) and/or one item. The two pickers narrow each other: after choosing a site, the item picker lists only the items that have an order to that site. A picker shows the 200 busiest entries when there are more, and says so; search inside the picker reaches the others.
  • The tab counts follow the filters; the progress bar and the note about the window always count the whole window.
  • A search or a filter that leaves nothing says "No order matches the site, item or search you chose" with a Clear filters button.
  • Your choices are remembered — sort, site and item, separately for each tenant, on this phone. You can also set them in the menu (§15.8): the same controls. The search text itself is not remembered.

Scan the item's barcode or QR code

You are holding the part — let the phone find its orders. Double-tap the list screen (anywhere that is not a row or a button) or tap the scan icon in the top bar, and point the camera at the product's barcode — or at a QR code that carries the item's code (a label, a bin tag, a card).

What the scan finds What you see
Orders for the item in your review queue The list filters to the item: every row of it, on every site. The chip under the search box names the item — tap it to clear.
Nothing to review for it An information card for the item: what it is, every site where it is present with the stock held there (good and bad) and the unit cost, and — when the plan has orders for it that are simply not due for you — the whole-plan count, so the card never makes the item look unplanned when it is merely out of your window.
  • The scan is your new question: it replaces the site filter and the search text, and it never changes your sort.
  • A code two items carry (an old label, a shared number) asks you which one you are holding — never a silent first match.
  • A code no item carries is said honestly: "No item with barcode …". That means the barcode is missing from the item master data — an administrator loads it (§15.9).
  • You can also type the code: the scanner sheet has a …or type the code box. It works when the camera is refused or unavailable, and it is the way to try the feature on a desktop.
  • Which codes the camera reads. Where the browser ships its own scanner (Android Chrome) the app uses it and reads every format it knows. Where it does not (iOS Safari and the home-screen app today), the app's built-in decoder reads QR codes and the product codes EAN-13, UPC-A and EAN-8 — the numbers printed on virtually every retail product; a 12-digit UPC and the same 13-digit EAN are one product. A QR code is read as text and looked up like a barcode number: a tag whose QR carries the item's code opens the same item as the item's EAN label. A read is committed only after the camera has seen the same code twice — one blurred frame is never enough.
  • Holding the phone. About a hand's length — 15 to 25 cm — from a card-sized QR code, flat, in decent light; tilt the card slightly if the paper shows a reflection. The app looks at the whole picture and, separately, at the middle of the camera's full-resolution picture, so a small code at arm's length reads as well as a large one up close.
  • The QR reader is a small separate download (about 46 KB), fetched when the scanner opens on a phone that needs it — it is not part of the app's first load. If it cannot be fetched (no connection at that moment) the scanner says QR codes cannot be read right now and the product barcodes keep scanning; closing and reopening the scanner tries again, and if it still fails, close the app and reopen it while online.

Ask Mirabelle — questions about the plan

You do not have to hunt for a number in the list: you can ask for it. The speech-bubble icon in the top bar opens Ask Mirabelle, a conversation with the same planning assistant as the desktop chat, limited to the production plan you are reviewing. Type a question in plain words — How many supply exceptions are there by type?, Which supply orders arrive next week? — or tap one of the four suggestions on the empty screen (Exceptions by type, Arrivals next week, Orders by type, Forecast errors).

The question is about… The answer comes back as
a single result (a total, a rate) key figures — one tile per value
a ranking or a comparison a bar list — the first ten rows of the answer, in the order they come, with the rest counted
a series over time a small line with its first and last date and its low and high
a list of items or orders a table — eight rows first, Show all for the rest
Ask Mirabelle: the empty conversation with its suggestions Ask Mirabelle: an answer drawn as bars
The empty conversation: four suggestions, a reminder that Mirabelle can be wrong, and the question box. The plus starts a new conversation, the cross closes the screen. An answer: a sentence, the first ten values as bars (the rest counted), Show as table, and the pipeline it came from with the time it took.

Every answer starts with a sentence. Figures, bars and the line can always be shown as a table (and back), so the exact values are one tap away.

Tap an item or a site to see its orders. When an answer is about items or sites — Which items have the highest demand?, Which sites have the most shortages?, Which supply orders arrive next week? — every row that names one has an arrow (a bar is a button, a table row is tappable). A tap closes the assistant and narrows the order list to what you tapped: the item, the site, or both when the row names both (the filter chips under the search box show it, and a message says Showing orders for Chain Lube at Central Warehouse Brussels). It is the same filter as in Sort & filter: remove it with the chip or Clear filters. A tap replaces any item or site filter and the search text that was there, keeps your sort and segment, and shows the To review tab.

  • There are no links into the rest of the application. The phone app has no other screens (no forecasts, no allocations, no series pages), so an answer never links to one: a tap only refines the list of orders you are reviewing.
  • A row with no arrow names no item or site (a count by order type, for example), or the item or site is not one the master data knows. Nothing is guessed: a name two items share is not turned into a link.
  • The list can be empty after a tap. The list shows the orders that need your decision in the review window. An item can be in the answer (it has demand, or a planned order next month) and have no order to review now; then the list says so, and the chip tells you what it is filtered to.

  • It is a conversation. A follow-up such as and for next week? is understood in the light of what you asked before. The plus icon starts a new conversation: the old one is forgotten, on the phone and on the server.

  • The conversation stays on this phone, in this browser tab only. A reload keeps it; closing the tab or signing out erases it. It is kept separately for every person and every pipeline.
  • One question at a time. While Mirabelle thinks, a line under the conversation counts the seconds and the send arrow becomes Stop — stopping ends the question at once. A planning question can take a minute or two; after two and a half minutes the app gives up and says so. If you close the screen while it thinks the question is not dropped: a dot on the icon tells you that the answer has arrived.
  • Limits. 500 characters a question and 20 questions a minute. From 400 characters a counter appears; over the limit the app tells you before sending.
  • Production only. Ask about the production plan. A question that would reach a pipeline that is not a production one — it names one (compare with pipeline 7, when 7 is a what-if) or asks about all pipelines — is declined with a sentence that says so; those stay on the desktop.
  • Not offered when your access is limited to segments. Mirabelle's answers cannot yet be kept inside your segments, so the icon is not shown to you at all. Administrators and planners without a segment limit see it.
  • It only reads. Asking never accepts, cancels or edits an order. Decisions are made on the order page and in the cart, as before.
  • "No rows came back" is not proof that nothing matches. An answer with no rows carries a grey caution under it. A question can be understood the wrong way (a date, a status) and then return nothing although the data holds what you asked for — ask it another way, or check on the desktop, before you rely on an empty answer.
  • Some questions do not work. When the assistant cannot answer a question, the conversation shows one red message and nothing under it — no figures, no table: Mirabelle could not answer that question. Try asking it another way, or ask something simpler. If it keeps happening, tell an administrator. The same sentence appears whatever the reason — a query the assistant could not write, a query the database refused, a model it could not reach — and the app does not say which and shows no technical detail. Rephrase the question more simply (one measure, one grouping); the same question can also come back differently from one time to the next. If it keeps failing, an administrator can find the reason in the API server's log.
  • It can be wrong. The answers are written by a language model from the plan's data: check a number before you act on it. The empty screen says so.

15.4 — The list: four numbers per order, edited in place

Every row shows the same four numbers. Two of them are boxes you can type in:

Number What it is Editable
Qty the order quantity yes
Value quantity × unit cost (the part's cost at the receiving site, otherwise the item's cost). n/a when no cost is known — it is never shown as zero. follows the quantity
Order date the day the order is released yes
Available the day the stock arrives = the order date + the order's lead time follows the order date

The availability is not typed: the supplier's lead time does not change because you move the order, so an order placed a week later is available a week later.

What you can type

Box Rule The message when it is not met
Quantity a plain number above zero; a decimal point or a decimal comma is fine (12.5, 12,5). 1,000 is refused: it could mean one thousand or one, and a wrong guess would make the order a thousand times too big. Enter a plain number above zero, for example 12 or 12.5.
Order date not before the planning date (a past release cannot be planned) The order date cannot be before the planning date (…).
Order date early enough for the stock to arrive inside the plan (52 weeks) Too late: the stock would arrive after the end of the plan (last order date …).
  • An edited box turns amber and a small note says what the plan had (plan 691). Type the plan's own value back and the edit disappears.
  • Editing is not deciding. The order stays To review until you accept or cancel it. The edits of an order you have not accepted yet are kept on the phone; once the order is in your cart they are saved on the server a moment after you stop typing.
  • Tap anywhere on a row to open the order — the name, the route, the figures, the empty edge. The only places that do not open it are the number boxes (and their labels) and the buttons: those are for typing and pressing.
  • Identical orders are separate orders. Two orders of the same lane with the same dates and the same quantity look exactly alike on the list (a plan with weekly orders is full of them). Each has its own edits, its own decision and its own turn when you walk through the list: changing the quantity of one never changes the other, and deciding one never skips the other.

15.5 — The order page

The order page The projection chart of the order page
The card at the top: the order type and status, the item, the route (site ← source), the same four numbers and why you see it. Below the card: stock and service, the 52-week on-hand projection, the demand the plan is built on, and the orders around this one. A compact bar keeps the swipe actions in reach while you scroll.
  • Stock & service — good and bad stock on hand at the site, the safety stock (the MEIO buffer), the service target and what the plan delivers, the MEIO expected fill rate, and the segments the part belongs to.
  • On-hand projection — tap the chart to read one week. The green dashed line is when this order arrives, the orange dashed line is the safety stock, the grey bands are weeks with a shortage.
  • Demand basis — the weekly demand the plan is built on, with 4-, 13- and 52-week totals. A part with no demand basis says so instead of drawing an empty chart.
  • Orders — planned and firm (ERP) orders coming in and going out. THIS marks the order you are on. A planned order shows the week it arrives; a firm ERP order shows its exact day.
  • The top bar has the back arrow, your position ("2 / 8"), a small progress bar and the cart.

15.6 — Deciding

To … Gesture Or press
Accept — the order goes to your cart and the next one opens swipe right Accept (Keep in cart when it is already there)
Cancel — the order is rejected and the next one opens swipe left Cancel
Go back to the list double-tap the card the back arrow
A swipe to the right in progress A quantity that is not a number
Halfway through a swipe to the right: the card follows your finger and ACCEPT shows underneath. Let go before the end and the card snaps back. A box with a problem says so under itself and Accept is switched off. Cancel is always possible.
  • Swipe from anywhere on the card, the number boxes included: a tap puts the cursor in a box, a drag moves the card. About a fifth of the card's width is enough, or a quick flick.
  • The first few millimetres at each side of the screen belong to your phone's own back gesture — start a little further in.
  • Double-tap the card — the item name, the chips, any empty part — to go back to the list, exactly like the back arrow. Two quick taps in the same spot: within about four tenths of a second and a few millimetres of each other. A single tap does nothing. A tap on a number box or a button never counts, so double-tapping while you type never takes you away, and a swipe or a scroll between the two taps cancels the pair. The small bar that sticks to the top while you scroll the page works the same way, and so does an order you cannot decide.
  • Dragging up or down scrolls the page — also when your finger starts on the card. Only a sideways swipe accepts or cancels; a slanted stroke is read by the direction it takes once it has gone a short way, and it never accepts or cancels the wrong way. Scrolling never decides anything.
  • An order you cannot decide — already decided by a rule, assigned to another planner, or waiting for the approval step — says why in a note above the buttons, and both buttons are switched off.
  • The buttons are optional. Every gesture has its button, so if you decide with swipes you can hide the Accept / Cancel bar at the bottom of the order page: on the desktop, Settings → Appearance → Planner phone app — Accept / Cancel buttons on the order page. It is your own preference (each planner chooses for themselves) and it applies the next time you open the app. The swipes, the double-tap and the back arrow are always available either way.
  • Undo. After every decision a message appears for a few seconds with Undo. It puts everything back exactly as it was, your edits included — and an order you canceled out of your cart goes back into the cart.
  • A canceled order can be put back. Open the Canceled tab: every order you canceled from the phone has a Put back button. The order returns to review exactly as it was before — as if the cancel never happened. Only the planner who canceled it (or an administrator) can put it back, and only while it is still canceled: an order canceled on the desktop, or somebody else's cancel, cannot be put back from here ("This order cannot be put back from here.").
  • A change limit protects the server from a runaway phone — 120 changes a minute and 10 approvals a minute per person: far beyond what a person reading each order can do, so you will not meet it. If it is ever reached the app says "Too many changes in a short time. Nothing was changed - wait 43 seconds and try again."; nothing was written, and the list is not reloaded (that would only use up more of the allowance).
  • If the write does not go through, the app tells you in words, and what it says depends on what could have happened: "The plan was recomputed - this order is no longer the same" (you go back to the list), "This order was already approved", "The server hit an error - your last change may not have been saved. Check the list", "No connection - your last change may not have been saved. Check the list when you are back online". Pressing Accept twice quickly sends one request, not two.

15.7 — The cart and the final approval

The cart Approve all asks once more The outcome of Approve all
The cart: the accepted orders with their four numbers — still editable — and the total. Approve all asks once more, with the count and the value: an approval cannot be undone from here. The outcome says how many orders went through and lists each one that did not, with the reason.
  • The cart holds the orders you accepted, each with the same four numbers as the list (quantity and order date can still be changed here), an edited tag when you changed something, and the total value ("+2 not valued" when some orders have no cost).
  • Your cart is on the server, not on the phone: it is the same on every device you sign in on, it survives signing out and in again, and nobody else can approve what is in it. Another planner who tries to accept an order that is in your cart is told whose cart it is in.
  • Approve all asks a second question with the count and the total value, in your currency (for example Approve 2 orders ($36.9K)? An approval cannot be undone from here.). Only Yes, approve sends it; Back changes nothing.
  • The approval is done order by order, and each order is checked again at that moment:
    • the plan must still hold the same order ("The plan was recomputed - this order is no longer the same" if not);
    • it must still be waiting for a decision from you (somebody else may have approved it on the desktop — then it counts as approved and is not logged a second time);
    • it must still be inside your segments and assigned to you;
    • your edits are validated again, and written into the plan.
  • An order that cannot be approved stays in the cart with its reason in red; the others are approved. The outcome lists them: "1 of 3 orders approved, 2 not approved." A line the server refused because the order changed is dismissed with its own button; a line that failed for another reason stays in the cart and can be tried again.
  • If the request itself fails (no connection, a server error) the app says that the approval may or may not have gone through and reloads the cart: an approved order is no longer in it, so the cart shows what is left.
  • What you typed a moment ago is what is approved: a quantity typed just before Approve all is saved first.
  • The trash icon takes an order out of the cart: it returns to review with your edits kept — it is not canceled.
  • An approved order shows on the Approved tab. It is recorded in the decision log as approved — or modified when you changed the quantity or the order date — with your e-mail, like an approval made on the desktop.
  • If the plan is recomputed while you are working, your decisions follow the orders that did not change; an order that did change comes back to review (or goes stale in the cart), because what you decided on no longer exists.
  • A cart kept on the phone by the earlier preview of the app never reached the server. It is cleared once, with a message: "The cart of the earlier preview was cleared - accept your orders again."

15.8 — The menu

The menu: pipeline and segments The menu: theme, desktop site and sign out
Who is signed in, the tenant, the pipeline and the segment you are reviewing (with how many orders each holds), then Sort by and Show only — the same controls as Sort & filter on the list. Only production pipelines are ever offered. Theme (automatic, light or dark — the browser bar follows it), the way to the standard site, and Sign out.
  • Sort by and Show only (site, item) are the list preferences of §15.3. A change applies at once and is remembered.
  • Under Theme, the menu also states whether your Accept / Cancel buttons are shown or hidden, and where to change them (Settings → Appearance → Planner phone app on the desktop — see §15.6): the phone itself cannot change them, and the note always shows the current state.
  • Sign out is confirmed by the server: if the server cannot be reached you are still signed in, and the app says so. Your cart is on the server and is not touched; the edits you typed but did not save are removed from the phone.

15.9 — For administrators: who sees what, and what an approval does

  1. The pipeline needs an Auto-Approval scenario (Pipelines → Auto-Approval). It decides which orders are routed to planners, and its review window (3 days by default) sets how far ahead they look. See the Auto-Approval Engine.
  2. Assign segments to every planner in User Management (see Platform & Admin). A planner with no segment sees an empty list and is told to ask an administrator. Administrators are never restricted.
  3. Run the approval step after each supply run. Until it has run, the new orders are listed as waiting for the approval step and nobody is asked to decide on them. The step values every order with the cost waterfall (the part's cost at the receiving site, then the item's unit cost, then its cost) and does not invent a value: an order with no known cost is counted as unvalued and reported in the step's log, instead of being valued at zero.
  4. The pipeline must be a production pipeline — its Prod toggle on in the Pipelines screen. The phone reviews production plans only: a pipeline that is not production is never offered in the menu, and a link or a remembered choice that names one is refused with a clear message. Labs, what-ifs and replay pipelines stay on the desktop.
  5. What an approval writes. A phone approval is a planner decision like any other: the recommendation becomes planner decided (then executed by the status-flag executor), a row is added to the approval decision log (approve, or modify when the planner changed the quantity or the order date; reject for a cancel) and the audit trail records the cart lines (mobile_cart) and the decisions (recommendation). The planner's edits are written into the plan row the recommendation describes. The Supply Approval grid on the desktop shows the same statuses.
  6. The cart ledger is the table interact_approval_cart of the tenant: one row per accept or cancel, with its state (in cart, checked out, removed, stale, canceled, restored) and a snapshot of the order as the planner saw it. It is created at startup by the API; a tenant where it is missing answers the phone with a clear 503 that names the remedy instead of showing an empty cart.
  7. Stay signed in and the limits (new in M4). The stay-signed-in credential lives in the browser cookie mirabelle_refresh (HttpOnly, Path=/api/auth), is rotated at every use, and is revoked per sign-in through the same table as a logout (sys_revoked_tokens: the token's own id when it is used, the sign-in's id when it is replayed or signed out). Nothing new has to be configured; AUTH_COOKIE_SECURE=1 (already required for the session cookie on the HTTPS front door) applies to it too. The change limit is per user and per API process (WRITE_LIMIT = 120, CHECKOUT_LIMIT = 10, a 60-second window in api/mobile_router.py); a refused request is logged as a warning naming the user.
  8. The scanner reads the item master data. A scanned barcode is resolved through the item's barcode column (master.item.barcode): load it with the rest of the item master data through the import staging (import.item.barcode — the ETL trims it; empty means no barcode) or fix one by hand in Settings → Master Data → Item. A barcode several items carry lists all of them and the planner picks; a tenant that wants them unique can enforce that in its own extract. A planner with assigned segments sees only the sites inside them on the information card (hidden sites counts the rest); administrators see all of them. The migration is applied at the API's startup (files/DDL/migrations/add_item_barcode.sql). The same code can be printed as a QR code: the scanner reads the QR's text exactly like a barcode number, so a tag, a bin label or a card carrying the item's code in a QR opens the item. files/scripts/make_demo_cards.py --db <tenant> prints such cards for a demo: an A4 sheet of business-card-sized cards (85 × 55 mm, ten per page), each with the QR and the item's name under it, for the items that carry a barcode and have at least ten routes or ten stock rows (the real catalogue; --ids picks others) — plus a first card, Open the Mirabelle app, whose QR opens the planner. It only reads the item master data (nothing is written) and needs the QR encoder (pip install segno) and the project's Playwright for the PDF; print docs/reports/demo_cards_<tenant>.pdf at 100 % (actual size, not fit to page) and cut along the lines.
  9. After a restart. The phone app needs the API restarted after an update (the new endpoints are not there before); a phone that asks for one gets "The server does not support this yet - the API must be restarted".
  10. The assistant ("Ask Mirabelle"). The phone's assistant is the desktop chat's engine behind the phone's own rules: production pipelines only (the pipeline, and every pipeline a question names, must be marked Prod); planners limited to segments are refused (the engine scopes its queries by pipeline and scenario, not by segment, so until it can the segment boundary must have no side door); the phone never shows the generated query or any technical detail of the engine — what is sent back is the answer, a chart hint and at most 50 rows, and answers are brief. When the assistant runs but cannot produce an answer, the phone shows one fixed sentence — Mirabelle could not answer that question. Try asking it another way, or ask something simpler. If it keeps happening, tell an administrator. — whatever the reason (a model that cannot be reached, a query the database refused, a question that needs a scenario the pipeline is not linked to); a crash of the server itself is a different message (Mirabelle hit an error while answering…). The reason, in the engine's own words (which can include part of the query and the database's error message), is written to the API server's log only, as one warning line — mobile chat: a question failed (user …, account …, pipeline …, N attempt(s)) followed by the reason — and never the question. To investigate a planner's report, read the log around the time they asked: the line names the user and the account (by id), the pipeline and the number of attempts. The conversation memory is kept in the API process, per signed-in user (a restart forgets it; the first question of an empty conversation on the phone is sent as fresh, which tells the server to start from nothing). It uses the model chosen in Settings → AI, the same one as the desktop chat; when no model is reachable the phone shows the same fixed sentence as for any failed question (the reason is in the API log), or Ask Mirabelle is not available on this server right now when the assistant could not be started at all. The limits are per user and per API process: 20 questions a minute, one in flight at a time (a second is refused with Mirabelle is still answering your previous question) and 500 characters. Every question that is carried out — also one that ends in an error message — writes one audit row (entity mirabelle_chat, channel mobile, outcome failed when the question could not be answered) with the model, the token usage, the row count and the duration — never the question, the SQL or the answer; a question that is refused, over a limit, stopped before it finishes or ended by a server error writes none. A question the phone stops (Stop, a closed connection) stops the engine at its next checkpoint.

15.10 — When something does not look right

What you see What it means What to do
The plan was recomputed and this order is no longer the same. The supply plan was recomputed after you loaded the list. Back to the list — it shows the current orders.
No connection. Check your network and try again. / Cannot open the planner No network, or the server is starting up. Try again.
Your session expired - please sign in again. The stay-signed-in sign-in ended: 90 days passed, you signed out, the password was changed, or the account was disabled — or this sign-in was used somewhere else. Sign in; your cart is on the server.
This sign-in was used somewhere else, so it was ended. (in the audit log: refresh_reuse) An old stay-signed-in credential was presented again, which means a copy of it exists. Sign in again; if you did not expect it, change your password.
Too many changes in a short time. Nothing was changed - wait N seconds … More than 120 changes (or 10 approvals) in a minute. Wait the number of seconds it names, then repeat the last action.
N order(s) … are waiting for the approval step The plan was recomputed and the approval step has not run on it yet. Ask an administrator to run the approval step.
No segments are assigned to you. Ask an admin to assign segments in User Management. You have no segment, so nothing can be shown. Ask an administrator.
This pipeline has no approval scenario, so nothing is routed to planners for review. The pipeline does not use the approval flow. Ask an administrator, or choose another pipeline in the menu.
That segment is no longer available - showing all your segments. An administrator changed your segments. Nothing — the list reloaded.
Pipeline … is not a production pipeline (status = 'non_prod'). The pipeline's Prod toggle is off — the phone reviews production plans only. Pick a production pipeline in the menu, or ask an administrator to turn the toggle on in the Pipelines screen.
No production pipeline is set up for review. The tenant has no pipeline marked Prod with an approval scenario. Ask an administrator to turn the Prod toggle on and link an approval scenario.
The plan is from <date> - the pipeline has not run on the current planning week. You are looking at an older plan. Check with whoever runs the pipeline.
No order matches the site, item or search you chose. Your filters leave nothing. Clear filters.
… The list below may be out of date. (with Retry) A refresh failed; the rows on screen are from before. Retry.
A message with Retry under the last rows The next page could not be loaded. Retry; the rows you have are fine.
This order has not been evaluated against the current plan yet. The approval step has not looked at this order. Ask an administrator to run the approval step.
This order was already approved. / … canceled. / … decided automatically. Somebody (or a rule) decided it first. Nothing — the list reloaded.
This order is already in the cart of … Another planner accepted it. Leave it to them, or ask them to remove it.
The server hit an error - your last change may not have been saved. Check the list. The server failed while writing. Look at the list: what it shows is the truth.
No connection - your last change may not have been saved. The phone lost the network while writing. Check the list when you are back online.
The server is starting up or unavailable. Nothing was changed - try again in a moment. The server answered unavailable before writing anything. Try again.
The server does not support this yet - the API must be restarted (ask an admin). The app is newer than the API that answers it. Ask an administrator to restart the API.
… the approval may or may not have gone through. The cart shows what is left … The final approval got no answer. Open the cart: the orders still in it were not approved; the others were.
Could not sign out: … The server could not be reached, so you are still signed in. Try again when the connection is back.
The swipe does not do anything You started at the very edge of the screen, did not go far enough, or a box holds a problem. Start a little further in, drag about a fifth of the card, fix the box — or press the buttons.
The double-tap does not go back The two taps were too far apart in time or in place, one of them was on a number box or a button, or a swipe or a scroll came in between. Tap twice quickly on the item name — or press the back arrow.
The double-tap does not open the scanner You double-tapped on a row (that opens the order), on a button, a box or a tab, or you were on the order page. Double-tap between the rows, on the scan icon in the top bar, or type the code.
No item with barcode … No item in the master data carries this barcode. Ask an administrator to load the item's barcode (§15.9).
The camera did not start (refused / unavailable) The browser was not given camera permission, or has none to give. Allow the camera in the browser's settings, or type the code in the …or type the code box.
The camera will not read my barcode It is a format the built-in decoder does not cover (Code 128, DataMatrix…) on a phone without a native scanner (iOS today). Type the code, or scan an EAN-13/UPC product barcode or a QR code.
QR codes cannot be read right now… The QR reader (a small separate download) could not be fetched — usually no connection at that moment. Product barcodes still scan. Close the scanner and open it again; if it persists, close the app and reopen it while online. Typing the code always works.
A QR card does not read Too far or too close, a reflection or a shadow on the symbol, or very dim light. Hold the card flat about 15–25 cm away, tilt it to lose the reflection, add light — or type the code.
A tap on a row does nothing You tapped a number box, its label or a button — those are for typing and pressing. Tap anywhere else on the row.
No production pipeline (with You are signed in to <tenant>) Either that tenant really has no production pipeline with an approval scenario - or you signed in to a different tenant than you meant: the tenant list is alphabetical, so a similar name is easy to pick. The screen and the menu name the tenant you are in. Tap Sign out and choose another tenant and pick the right one. If the tenant is right, an administrator marks a pipeline Prod and links an approval scenario to it.
Too many questions in a short time. Wait N seconds and try again. More than 20 questions in a minute. Wait the number of seconds it names.
Mirabelle is still answering your previous question. Wait for it, or stop it, then ask again. One question at a time. Wait for the answer, or press Stop.
On the phone Mirabelle answers about the production plan only… The question names a pipeline that is not a production pipeline. Ask about the production plan, or use the desktop.
Ask Mirabelle is not available while your access is limited to segments… The server refused an assistant question because your access is limited to segments. Use the desktop, or ask an administrator.
Ask Mirabelle is not available on this server right now. The assistant could not be started on the server. Ask an administrator.
Mirabelle took too long to answer. Ask something more specific, or try again in a moment. No answer within two and a half minutes. Ask a narrower question (one item, one site, one week).
Mirabelle could not answer that question. Try asking it another way… The assistant could not produce an answer — for example a query it could not write or that the database refused, or a model it could not reach. The app does not show which; the reason is in the API server's log. Ask it in simpler words, or try again; if it keeps happening, tell an administrator, who can read the reason in the log.
No rows came back. That can mean nothing matches… The query ran and returned nothing; it may have been understood differently. Ask it another way before you rely on it.
Mirabelle hit an error while answering… The server failed while working on the question. Try again; if it keeps happening, tell an administrator.
No connection - your question may not have reached Mirabelle… The phone lost the network. Check the network and ask again.
A phone still opens the standard site The browser kept an old copy of the page. Close the tab and open the address again, or go to /m/.

15.T — Try it: step-by-step walkthrough

  1. On your phone open https://app.mirabelle.es/ and sign in. Check the menu shows the pipeline and segment you expect.
  2. On the list, look at the line under the search box: it says how many orders you have and how they are sorted. Tap Sort & filter, choose Value: the largest orders come first. Choose a site: a chip appears and the list shrinks; tap the chip to remove it.
  3. Change the Qty of the first order to half its value. The Value drops at once and the box shows plan … with the original quantity. Set the Order date a week later: Available moves by exactly a week.
  4. Type a date before today's planning date: the message names the planning date. Put a valid date back.
  5. Tap anywhere on the row (not on a box) to open the order. Your edits are there. Drag on the card itself: the page scrolls. Scroll to the projection and tap the chart.
  6. Swipe the card right — a fifth of its width is enough. The order goes to the cart and the next one opens. Press Undo before the message disappears: the order is back, edits included.
  7. Type abc in Qty: Accept switches off — but swipe left and the order is canceled. Open the Canceled tab and press Put back: it is in review again.
  8. Open the cart (top right): change a quantity and watch the total follow. Press Approve all: the app asks once more. Press Back: nothing happened. Press Approve all and Yes, approve: the outcome says how many orders were approved, and the Approved tab holds them.
  9. On the desktop open Supply Approval: the same orders are there, approved by you.
  10. Double-tap the item name: you are back at the list. Open another order and double-tap the Qty box instead: you stay, and the box has the cursor.
  11. Scan: double-tap the list (not on a row) and point the camera at the barcode — or the QR card — of a part that has orders to review — the list filters to that item, with a chip to clear. Scan a part with nothing to review (or type the numbers in the …or type the code box): its information card opens — every site where it is present, with the stock and the cost.
  12. Sign out from the menu and sign in again: your cart is still there — it is on the server.
  13. Stay signed in (on a computer, in the browser's developer tools → Application → Cookies for the app's address): delete only the cookie mirabelle_token (the 8-hour session) and tap the refresh arrow. The list is still there and no sign-in screen appeared — the app renewed the session by itself. Look at the cookies again: mirabelle_token is back, and mirabelle_refresh has a new value. Now delete both cookies and tap refresh: the sign-in screen appears, saying the session expired.
  14. Ask Mirabelle. Tap the speech-bubble icon in the top bar, then Orders by type: Thinking… N s counts the seconds and the answer arrives as a sentence with the figures drawn (bars, a line or key figures) or shown as a table — how depends on the question and the answer. Under a drawing, Show as table gives the exact values; a table of more than eight rows shows the first eight and a Show all … button. Ask a follow-up, then press the plus icon: the conversation is empty again. Ask something and press Stop: the log says Stopped. Close the screen while a question is being answered: a dot appears on the icon when the answer is there. Sign out and sign in again: the assistant is empty — nothing of the earlier conversation stayed on the phone.