Android handheld (N86) — screens, roles, entry points, coverage
Status: 2026-09-30 — written from the Android verify-sweep (QA, emulator N86_like 360×640 dp) and the fixes merged on the integration line
terminalesint-0930(19546c67; fix batches 3–5 through88ce4689). It describes the screens as they behave after those fixes. User-facing wording lives in the Manual del Comercio (docs/manuals/es/manual-comercio/, chapters 03, 04, 05, 07, 08, 09, 11, 12). Role vocabulary: Cajero · Supervisor · Dueño (never «gerente»). Companions: mobile-user-stories.md · mvp-gap-inventory-n86.md ·terminales/app/src/main/java/com/axios/terminales/navigation/HomeDrawerDestinations.kt(drawer per role, source of truth) ·navigation/Routes.kt.
How to read the coverage column
Section titled “How to read the coverage column”- Maestro = a
.maestro/*.yamlflow interminales. Update (fix batches 3–5,88ce4689): the sweep ported the listed flows to the current shell and added theflow-handheld-*family; they run through.maestro/run-handheld.shagainst a dedicated QA merchant, enter the way an operator does (email + password → pairing code → «Crea tu PIN» → M02 PIN → Inicio) and assert consequences. «Live» below marks such a flow; see the status table interminales/.maestro/README.md(«Flow status (2026-09-30 sweep)»). Still blocked:flow-vas,flow-vas-direct,connections-*(no platform sandbox account),flow-auth-mfa-*(no MFA-enrolled operator),flow-auth-verify-email(no production entry point). Not ported:flow-pos-venta,flow-pos-offline,nav-shell-*,nav-drawer-reopen. The paragraph below is the sweep’s starting point. The sweep found that most flows are stale for the current shell (they drive the retired «Navegación» → «Vender» / «Mi negocio» path, or assert «Guardar en espera», removed from the handheld on 2026-09-05) and that every flow enters through Inicio as a seeded user on a fresh install. None enters after a user switch, a relaunch, a process death or a session revoke. A flow marked (stale) cannot pass on the current shell. - Tests = JVM / Compose tests added or updated with the 2026-09-30 fixes. They pin behaviour, but they are not an entry-path e2e.
- GAP = nothing drives this screen the way its user reaches it.
Drawer per role (☰)
Section titled “Drawer per role (☰)”| Role | Main rows | «Más opciones» → «Menú» |
|---|---|---|
| Cajero | Inicio · Ventas · Movimientos de caja · Mi cuenta · Más opciones | Clientes · Notificaciones |
| Supervisor | Inicio · Reportes · Mi negocio · Más opciones | Movimientos de caja · Ventas · Terminales · Personal · Clientes · Notificaciones |
| Dueño | Inicio · Reportes · Finanzas · Mi negocio · Más opciones | Movimientos de caja · Ventas · Terminales · Personal · Clientes · Notificaciones |
«Más opciones» (a root with ☰ and the bell) then lists: Turno de caja (only «Abrir turno» without a shift, only «Cerrar turno (Corte Z)» with one; «Movimientos de caja» when not already in the menu) · Cobros y pagos («Terminal lista (pago remoto)», VAS entries; «Registrar depósito» Dueño only) · Terminal (Supervisor+: «Registro de terminal», «Solicitar terminal», «Solicitudes») · Otros (merchant verification when not verified; «Menú Terminales» classic panel for Supervisor+; Playground in debug only). «Cerrar sesión» is the drawer footer for every role.
Tests: NavMenuRoleTest, HomeNavDrawerRoleLabelTest, MoreScreenMenuOverflowTest, MoreScreenShiftAndTopBarTest, RoleGatedNavTest (D7: role-gated routes always registered, gated when opened). Maestro: nav-drawer-reopen.yaml, nav-shell-more-reachability.yaml (enter from Inicio only). GAP: no flow switches role in one process (the D7 crash path).
Screens
Section titled “Screens”| Screen (route) | Role | Entry points | States | Coverage |
|---|---|---|---|---|
Iniciar sesión M01 (auth_login) |
any | cold start; after sign-out; M02 «¿No apareces? Inicia sesión con tu correo»; session expiry | empty (Entrar off); malformed email = error under the email field; «Correo o contraseña incorrectos.»; «Tu sesión expiró. Inicia sesión de nuevo.»; magic link sent; → MFA / M05; «¿Tienes un código de activación?» always visible; recovery / magic-link mails arrive in Spanish | Live flow-auth.yaml (wrong password, cold restart keeps the session, sign-out → M01, invalid recovery link), flow-auth-recovery-send/-reset, flow-auth-magic-send/-complete (real mail via Mailpit), flow-handheld-signout-new-cashier. Tests LoginViewModelTest, SessionManagerTest, SignOutRoutineTest. GAP: session-expiry entry |
Selecciona tu tienda M05 (auth_store_selection) |
multi-store operator | after email login; after a PIN unlock for a multi-store owner | last-used store preselected (none if never opened); «Buscar tienda» over name + address when > 6 stores; empty «Sin tiendas asignadas»; «No pudimos abrir esa tienda»; «Volver» = sign-out | Tests StoreSelectionSearchTest. Live flow-handheld-store-selection.yaml (fresh install: nothing preselected, «Continuar» inert until a pick; last-used preselected after a sign-out) |
Acceso rápido M02 (auth_pin) + Crea tu PIN |
any, remembered on this device | «Acceso rápido con PIN» on M01; after sign-out | roster = device-remembered profiles only; «¿No apareces? Inicia sesión con tu correo» always visible; just-signed-in profile selected; wrong PIN → «PIN incorrecto. Inténtalo de nuevo.» / lockout; «No pudimos confirmar tu PIN. Inicia sesión con tu correo para continuar.» only when the PIN was accepted but the session was refused; create → confirm → mismatch → «Tu PIN se guardó»; banners never move the keypad; a redeemed invitee is listed after «Crea tu PIN» | Live flow-auth.yaml («PIN incorrecto», N7), flow-auth-create-pin.yaml, flow-handheld-signout-new-cashier.yaml (next cashier greeted as themselves; pending invitee → «Crea tu PIN»). Capture screen-parity-pin-keypad.yaml. Tests PinLoginViewModelTest, PinNotListedEntryTest, PinBannerStabilityTest |
Activar cuenta (auth_redeem) |
pending employee | M01 «¿Tienes un código de activación?» (always visible) | «¿Quién eres?» first: pick your profile from the paired store’s staff («El código solo funciona para la persona a la que se le generó.»; loading / not paired / empty / error + «Reintentar»), then the code; invalid/expired code, rate limit; after the redeem → «Crea tu PIN» → Inicio as that person, who then appears in Acceso rápido | Live flow-handheld-activation-code.yaml (N2; fixture activation-code, needs MAILPIT_API_URL) |
Recuperar / nueva contraseña (auth_forgot_password, auth_reset_password) |
any | M01 «¿Olvidaste tu contraseña?», deep link | link invalid → «Solicitar un enlace nuevo» | Live flow-auth-recovery-send.yaml → flow-auth-recovery-reset.yaml (the cashier’s real Spanish recovery mail → «Nueva contraseña» → sign-in) |
Inicio M06 (terminales_dashboard) |
any (KPIs Supervisor+) | drawer «Inicio»; after sign-in | KPIs (cashier: «Sin permiso para ver los KPIs»); «N con inventario bajo»; «Saldos de plataformas» (owner, dated «Actualizado hoy/ayer/1 sep HH:MM»); «Tu turno» chip «Abierto · HH:mm» / «Cerrado · ayer HH:mm» (or a short date), whole at 360 dp; «Turno abierto por …» (lockdown hint when the operator may not close); KPIs refresh after each sale; «Última venta» notice after a process death («La última venta ($X, efectivo) sí se registró. Folio …» + «Ver recibo»; not-registered / unknown variants); accesos rápidos (no «Reportes» for a cashier); footer «Nueva venta» / «Abrir turno» | Live flow-inicio-turno.yaml, flow-handheld-shift-open-close.yaml. Tests HomeViewModelTest, HomeShiftCycleTest, HomeQuickActionsTest, HomePlatformBalancesTest |
Inventario bajo (terminales_low_stock) |
any | Inicio «Ver inventario bajo» | search «Buscar por nombre o SKU…»; «Bajo · quedan N (mín. M)»; «Crítico · sin existencias (-N)»; orphan stock rows not listed; empty; error; display only | Tests LowStockSweepTest. GAP: no Maestro flow |
Abrir turno M08 (terminales_shift_open) |
any | Inicio footer; Más opciones (only without a shift); Cobrar without a shift | $0 blocked; adopted shift «Esta terminal ya tenía un turno abierto y se retomó…» + «Continuar»; session-expired copy | Maestro subflows/open-shift-if-needed.yaml, flow-inicio-turno.yaml. Tests ShiftOpenViewModelTest |
Movimientos de caja / Agregar movimiento (terminales_shift_cash_movements, …_add_movement) |
any (Salida needs supervisor PIN) | drawer (cajero) / Más opciones; Inicio «Movimientos»; POS acciones rápidas | Entrada / Salida; «Guardar movimiento» fixed footer; a Salida larger than the drawer is refused before the supervisor pad («La caja no tiene efectivo suficiente para retirar $X. Efectivo esperado: $Y.»); a Salida without concept refused; labelled supervisor pad («Tecla N») | Tests AddCashMovementLayoutTest, ApprovalSheetKeyLabelsTest. Live flow-inicio-turno.yaml (−$125.00 / +$200.00 listed; Salida without concept refused) |
Cerrar turno M09 (terminales_shift_close) |
opener or Supervisor+ (lockdown) | Inicio «Cerrar turno»; Más opciones «Cerrar turno (Corte Z)» (only with a shift) | denominations from $1,000 down (snapshot-driven); «Según el servidor»; variance → «Descuadre detectado» + «Solicitar autorización»; «¿Cerrar turno?» confirm with Contado / Esperado / Diferencia; notes ≤ 240; print Z → «Corte enviado a la impresora.» («No hay impresora disponible en este dispositivo.» without one) / «Compartir corte» | Live flow-handheld-shift-open-close.yaml (open with a float, count, confirm with Contado/Esperado/Diferencia, «Turno cerrado»). Capture screen-parity-shift-close.yaml. Tests CloseShiftConfirmDialogTest, ShiftCloseSweepTest, ShiftCloseImeTest |
Corte Z (terminales_corte_z/{shiftId}) |
Supervisor+ | Inicio «Ver Corte Z» | print → «Corte enviado a la impresora.» / share; «Solo un supervisor o el dueño puede ver el Corte Z.» | GAP |
Punto de venta catálogo (pos_catalog) |
any | Inicio «Nueva venta»; accesos TAE/Servicios/Tarjetas | tabs Productos / Servicios / TAE / Pines; search; categories; tap = quick-add, long-press = detail; «Acciones rápidas»; offline banner; «Venta abierta» prompt (Retomar / Cancelar y devolver / Ahora no); «Última venta» notice after a process death; VAS tabs «Tu plataforma necesita verificarse…» when the connection is not active | Live flow-handheld-cash-sale.yaml (back → catalog with an empty cart). Maestro flow-pos-venta.yaml (not ported). Tests CatalogViewModelTest, OpenOrderPromptTest, SaleRecoveryTest, VasNoPlatformCopyTest |
Detalle de producto (pos_product/{productId}) |
any | long-press on a catalog card | «N piezas en stock» / «Agotado» (warning only, still addable) / «Existencias no disponibles»; presentación chips; qty stepper | Live flow-handheld-product-detail.yaml (variant re-prices and adds its own line; «Agotado» addable; stepper past stock). Tests ProductDetailViewModelTest, PosCatalogCacheStockLookupTest |
Venta actual carrito (pos_cart) |
any | cart bar | stepper; Agotado badge on the line; «Cliente: <nombre>» with «Cambiar» / «Quitar»; a quick-add variant line reads «Producto · Variante»; «Vaciar» → «¿Vaciar la venta? Se quitarán N artículos.»; on a bound sale «Vaciar» raises the split’s finish/cancel dialog; after a declined / unanswered card «Vaciar» releases the sale; offline «Sin conexión — no es posible cobrar esta venta.» + Reintentar | Tests CartClearConfirmTest, CartVaciarBoundSaleTest, CartBarTotalTest |
Cobrar método (pos_checkout) + Pago en efectivo |
any | «Cobrar» | Efectivo / Tarjeta / Saldo (próximamente) / Pago mixto; cash sheet «Faltan $X» when short, «Sin conexión — no es posible cobrar» offline | Live flow-handheld-cash-sale.yaml («Faltan», change, folio), flow-cobro-recibos.yaml ($50 on $35 → $15.00 change). Tests CashShortfallTest, CashFinalizePendingCheckoutTest |
Tarjeta (pos_card_tender, pos_manual_card) |
any; «Resolver (dueño)» owner | Cobrar → Tarjeta | readiness checked before any order/intent («Terminal no habilitada», no «Reintentar» when it cannot help); waiting / declined «Transacción rechazada» / card timeout «Sin respuesta de la tarjeta» («La tarjeta no respondió a tiempo.», never «rechazada») / terminal timeout; after a decline or no answer, «Reintentar cobro» or «Elegir otro método de pago» charges the same sale (one order, the intent failed); «Cobro aprobado» + «La venta no se terminó de registrar. No cobres de nuevo; avisa al dueño.» locks the sale; «Cobro sin confirmar»; owner «Resolver cobro con tarjeta» (3 outcomes, note ≥ 10, owner PIN) |
Tests CardReadinessBeforeOrderTest, CardSettlementFailureLockTest, NativeCardTenderSettlementTest, CardTenderManagerResolveTest, EmulatedCardReadinessTest. Live (DEBUG emulate) flow-handheld-card-emulated.yaml (approved → «Pagado · Tarjeta»; declined → «Transacción rechazada»), flow-handheld-card-decline-cash.yaml (decline → Efectivo settles the SAME sale), flow-handheld-card-variantless.yaml. Tutorial videos: docs/manuals/es/tutoriales/android-cobro-tarjeta-{feliz,rechazada}/. GAP: real card is an N86 human lane |
Pago dividido (pos_split) |
any; cancel needs supervisor PIN; card-leg cancel = owner | Cobrar → Pago mixto | legs recorded immediately; first recorded leg binds the sale; «Volver» → «Hay un pago registrado» (Continuar cobro / Cancelar venta y devolver $X) → «Venta cancelada · Devuelve $X al cliente» (the sale then shows in Ventas as «Cancelada» with the amount returned); «Agregar efectivo / tarjeta» and «Finalizar» pinned in a footer; card leg → «Pide al dueño cancelar la venta.»; card-leg lock copy per leg | Tests SplitPaymentBoundOrderTest, SplitPaymentViewModelTest, CheckoutResumesBoundOrderTest, OpenSaleRecoveryTest. Live flow-handheld-split-cancel.yaml (cash leg kept, survives a process kill, supervisor-approved cancel returns the cash), flow-handheld-split-finalize.yaml (cash + cash, cash + emulated card) |
| ¡Venta exitosa! recibo | any | after any tender | Imprimir (error copy), Compartir; printed and on-screen receipt carry Fecha / Cajero / Terminal; variant line «Producto · Variante»; Nueva venta; back = Nueva venta | Tests SaleReceiptTextTest, CheckoutTopBarTest, ReceiptPrintWiringTest |
En espera (customers_held_orders) |
any; «Todos» Supervisor+ | POS acciones rápidas «En espera» | «Mis carritos» / «Todos» (hidden for a cashier); row = label + total; «Reanudar venta»; blocked while a bound sale is unfinished; empty «Aquí aparecen las ventas guardadas en espera desde el punto de venta web.» | Live flow-pos-hold-resume.yaml (a web hold listed with its real total resumes into the cart). Capture screen-parity-held-orders.yaml. Tests HeldOrdersRowTest, HeldOrdersEmptyCopyTest |
Historial / Detalle de ticket (terminales_search, terminales_ticket_detail/{orderId}) |
any; void needs supervisor PIN | drawer «Ventas» (cajero) / Más opciones «Ventas»; Reportes «Ventas del día» | Por fecha (Hoy/Semana/Mes) / Por folio; no back trap after a folio hit; Reimprimir, Compartir, «Cancelar / Reembolsar» (today only) | Live flow-void.yaml (supervisor PIN → «Cancelado», stock back), flow-handheld-folio-back.yaml, flow-cobro-recibos.yaml («Reimprimir»), flow-cuenta-reportes.yaml (folio listed; unknown folio not found). Tests TicketHistoryViewModelTest, SearchFieldDebounceTest |
Reportes M25 (terminales_reports) |
Supervisor+ | drawer «Reportes» | Hoy / Semana (Mon→today) / Mes (1st→today), Semana/Mes sum every day; one failing day fails the period; Ventas (con IVA), Transacciones, Comisiones, Ventas por método; Corte Z (needs an open shift), Exportar / Compartir; refused role sees neither action; refetches on return; system back on a drawer-area root → Inicio | Live flow-handheld-reports-week.yaml (Semana / Mes ranges and figures), flow-cuenta-reportes.yaml (grows by exactly the sale made in between). Tests ReportsViewModelTest, ReportsNoPermissionActionsTest |
Clientes / Cliente (terminales_customers, …_customer_detail) + Asignar cliente sheet |
any | Más opciones «Clientes»; POS «Asignar cliente» | search; no match → «Sin resultados para “<q>”» (vs an empty directory); refreshes on return; detail read-only; «Agregar nuevo cliente» (keeps every field; «¿Descartar los cambios?» → «Seguir editando» keeps the data); cart shows «Cliente: <nombre>» + «Cambiar» / «Quitar» | Live flow-clientes.yaml (quick-create on a sale), flow-clientes-assign.yaml. Tests CustomerSheetsSweepTest, CustomerDraftParityTest |
| Notificaciones + detalle | any | bell on every root (incl. Más opciones) | «N sin leer» re-read on return; «Marcar como no leída», «Descartar»; device-request notice → «Ver solicitudes» | Live flow-notificaciones.yaml (read / unread round-trip; bell count drops). Capture screen-parity-notifications.yaml. Tests NotificationsListRefreshTest, NotificationDeepLinkTest |
Mi negocio / Mi cuenta M24 (terminales_account) |
any (label «Mi cuenta» for the cashier) | drawer | profile card; Dispositivos y terminales; Conexiones (owner); Personal (Supervisor+); «Cerrar sesión» with confirm (unfinished-sale notice) | Live flow-cuenta-reportes.yaml (Mi negocio names the operator). Capture screen-parity-mi-cuenta.yaml. Tests MyAccountViewModelTest |
| Cerrar sesión (drawer footer, Mi negocio, M05 «Volver») | any | — | one sign-out routine for every path; drawer asks when the terminal’s shift is open; shift stays open | Tests SignOutRoutineTest, OpenShiftSignOutGuardTest. Live flow-handheld-signout-new-cashier.yaml (asks first; next cashier greeted as themselves) |
Personal / Invitar / Empleado (personnel_list, personnel_create, personnel_detail/{id}) |
Supervisor+ (supervisor invites Cajero only); deactivate / reactivate / code = Dueño | Mi negocio «Personal»; Más opciones «Personal» | «Invitación enviada a …»; «Invitaciones pendientes» (Pendiente); «Generar código de activación» only for a pending seat; «Desactivar empleado» (confirm); «Reactivar empleado» | Tests PersonnelListInviteNoticeTest, EmployeeDetailViewModelTest, PersonnelNavTest. GAP: no Maestro flow |
Finanzas (Conexiones list) M36 (terminales_connections) |
Dueño | drawer «Finanzas»; Inicio «Ir a Finanzas» from a VAS tab | root with ☰ and bell; status chips (Activa, Saldo bajo, Requiere verificación, Desconectada, Sin verificar); «Volver a verificar»; no «Agregar saldo»: «Para agregar saldo, realiza un depósito bancario.» + «Registrar depósito» (Dueño); «Conectar plataforma» sheet → lookup → phone → SMS code | Maestro connections-list.yaml, connections-connect.yaml (blocked: no platform sandbox account). Tests ConnectionsTopBarTest, ConnectPlatformViewModelTest, ReverifyScreenTest. GAP: OTP step not reachable on QA (no documented sandbox user) |
Detalle de plataforma M39 (terminales_connection_detail/{id}) |
Dueño | tap a platform in Finanzas | balance + «Actualizar saldo» (auth-error copy); Datos de la conexión; Movimientos with date/time, reversal = «Reversa de venta»; «Desconectar» (confirm); top-up notice + «Registrar depósito» in place of «Agregar saldo» | Maestro connections-detail.yaml (blocked: no platform sandbox account). Tests PlatformDetailViewModelTest, ConnectionsFormatTest |
Registrar depósito (terminales_deposit) |
Dueño | Más opciones «Registrar depósito» | refused «Continuar» scrolls to the first error; «¡Depósito registrado!» Pendiente (no raw folio) | Tests RegisterDepositSweepTest, RegisterDepositViewModelTest. GAP: no list/status screen on the handheld; no flow |
Registro de terminal (terminales_terminal_setup) |
Supervisor+; unpair = Dueño | Más opciones → Terminal; «Vincular otra terminal»; pairing gate | paired: «Terminal vinculada», «ID de terminal» (serial), «Última señal de actividad» (local time); «Desvincular esta terminal» → confirm → pairing-code field; «No se puede desvincular: la terminal tiene un turno abierto…»; «Solo el dueño puede desvincular esta terminal.»; claim 409 «Esta terminal ya está vinculada a otro registro…» | Live flow-handheld-pairing-unpair.yaml → flow-handheld-pairing-reclaim.yaml (claim, local-time heartbeat, «Desvincular» asks first, re-claim with a new code; run-handheld.sh mints the code). Tests TerminalSetupViewModelTest, TerminalRegistrationTest |
Terminales de la tienda (terminales_select_terminal) |
Supervisor+ | drawer/Más opciones «Terminales» | titled «Terminales de la tienda»; roster of handhelds with live status (browser cajas web hidden); display only | Live flow-terminal-select.yaml. Tests TerminalSelectionWebHiddenTest |
Solicitar terminal (terminales_device_request) |
Supervisor+ | Más opciones → Terminal; Solicitudes «Solicitar terminal» | Tienda, Tipo, Cantidad (capped by allowance), Dirección de envío; missing address → «Captura la dirección de envío de la tienda desde la web (Tiendas)…»; unverified allowance / suspended copy | Live flow-handheld-device-request.yaml (create leg). Tests DeviceRequestFormViewModelTest, DeviceRequestApiClientContractTest. Ship address only on the web |
Solicitudes (terminales_device_requests) |
Supervisor+ | Más opciones → Terminal; notification «Ver solicitudes» | list by folio; status stepper (fits 360 dp) Solicitada → Aprobada → Enviada → Entregada, Cancelada / Rechazada badge; Paquetería / Guía; «Cancelar solicitud» → «¿Cancelar la solicitud?» (Sí, cancelar / No) | Live flow-handheld-device-request.yaml (create → «Solicitada» → cancel → «Cancelada»). Tests DeviceRequestTrackerViewModelTest, DeviceRequestAccessViewModelTest |
Terminal lista (pago remoto) (terminal_ready) |
any | Más opciones → Cobros y pagos; Inicio | waiting for a web-initiated card charge; names the merchant’s own business and the terminal (roster name, else serial); «Modo de cobro (DEV)» in debug | GAP: remote-card lane (N86 human) |
| TAE / Servicios / Pines direct sale | any | POS tabs; Más opciones VAS rows | one at a time, no cart; funding gate on an ACTIVE connection | Maestro flow-vas.yaml, flow-vas-direct.yaml (blocked: no platform sandbox account). Tests VasDirectSaleViewModelTest. GAP: blocked on QA (connection in auth error, no sandbox user) |
Verificación del comercio (terminales_merchant_verification) |
Dueño (staff: status row) | Más opciones → Otros (unverified merchant only) | progress / in review / rejected | GAP: not reachable on an approved merchant without mutating data |
Not documented for the merchant, and why
Section titled “Not documented for the merchant, and why”- Terminal lista (pago remoto) — already in chapter 04 («Cobrar con tarjeta desde la caja web»); fix batch 5 only changed what it names (business + terminal), reflected there.
- Descuento (
pos_discount), Cobro manual con tarjeta (pos_manual_card) and «Menú Terminales» (classic panel) — not walked in the sweep; their current copy was not verified, so the manual does not describe them. - Verificación del comercio on the handheld — not reachable on the QA merchant (approved).
Activar cuenta by code— now walked (flow-handheld-activation-code.yaml) and documented in chapter 03 («¿Quién eres?» → code → «Crea tu PIN» → Acceso rápido).- Corte Z read-only screen (Inicio «Ver Corte Z») — mentioned only through the web Corte Z; not walked beyond the entry.