Files
smartmenu-collina/messages
Jorem Juárez 8fc95c3cab Split re-identification: pick subaccount when re-ordering on a split table
When a diner confirms an order on a table that's already split, the cart now asks
which subaccount they belong to instead of blindly creating a parallel one.

- New GET /split/subaccounts?table — lists active subaccounts (id + full name).
- New GET /split/mine?id — returns a subaccount's items so the client can rebuild
  its cart.
- OrderPanel (normal cart) on a split table shows '¿Quién eres?' with a tappable
  button per active subaccount + 'Soy nuevo':
  * pick existing → load that subaccount's items, merge the new items, and sync;
    reconcileItems keeps the existing batches and turns the new items into a fresh
    batch (independent timer). Existing items' timers are not reset.
  * 'Soy nuevo' → name input → creates a new subaccount seeded with the cart.
- Continuity: once a diner has a split session, the normal cart FAB is replaced by
  'Mi cuenta' (existing behavior), so the selector never reappears for that session
  — no localStorage, just in-memory session state.

i18n es/en (whoAreYou, imNew) at parity. Build passes.

Verified criterion 7: table 5 with Ana+Beto → a third order lists [Ana][Beto]
[Soy nuevo]; tapping Ana adds the order to Ana as a NEW batch (2 distinct batchIds,
the new batch starts now, Ana's prior item keeps its ~30-min-old start).
2026-06-15 20:01:14 -06:00
..