How a user leaves a registration and comes back to it. The prototype keeps everything in memory; in production a draft is a server-side record tied to the user account.
- 1 · LeaveClose button, logo, "Dokončit registraci později" or sign-out. From step 2 the draft is saved.
- 2 · Come backHeader "Přihlásit se", the hint on step 1, or the reminder e-mail, then sign-in.
- 3 · Hub"Vaše registrace": one card per draft, with progress and actions.
- 4 · ContinueThe draft reopens on the last step, or a new registration starts.
Rules
- Saving starts at step 2. Until the user account exists (step 1 and the account modal) nothing is stored. Leaving there asks for confirmation and discards the registration.
- One draft per company. Up to 5 drafts per user (
MAX_DRAFTS, easy to change).
- A draft stores that registration only: IČO, company, contact, identity-check choice and uploads, consents and the last opened step. It is saved on leave, not on every keystroke.
- Loading screens are not resume points. A draft saved on a loading or in-progress screen reopens on its parent step.
- A draft is removed when the registration is finished (step 5) or the user deletes it.
Flows
1 · Leave
- Step 1 / account modal → "Opravdu chcete ukončit registraci?" → leaving discards it.
- Step 2 and later → "Registraci jsme uložili" → leaving saves the draft.
2 · Come back
Three entry points, all lead to sign-in and then the hub: the hint "Máte rozpracovanou registraci? Přihlásit se" on step 1, "Přihlásit se" in the header, and the reminder e-mail ("Dokončit registraci", link valid 30 days).
Sign-in is e-mail and password or a social account. Errors: invalid e-mail or empty password; wrong credentials (same message for an unknown e-mail, so accounts are not revealed); temporary lock after repeated failures (15 min); a social account without a registration (links to sign-up).
3 · Hub "Vaše registrace"
One card per draft: company (or "Firma zatím nezadána"), IČO, a 5-segment progress bar and "Krok X z 5 · název · uloženo datum".
- Pokračovat v registraci restores the draft and opens the last step.
- Smazat asks for confirmation, then removes the draft with its data (not undoable).
- Registrovat další firmu starts a fresh registration at step 1; a signed-in user skips account creation. Disabled at 5 drafts, with a hint.
- No drafts → empty state with "Registrovat firmu".
4 · Duplicate IČO
On step 3 a company that already has a draft shows "Registraci firmy X už máte rozpracovanou" with Pokračovat v této registraci or Zadat jiné IČO. A company that is already a customer shows a message with the phone number instead.
5 · Start at the limit
"Registrovat se" on public pages with 5 drafts sends a signed-in user to the hub with the limit notice instead of step 1.
6 · Where the user lands after leaving
Back to where the registration started: the hub if it was started from there, otherwise the landing page.
User menu
"Rozpracované registrace (n)" appears in the user menu and on the mobile profile page only when n > 0. Profile forms with unsaved changes ask "Zahodit neuložené změny?" before navigating away.
Try it
Use Prototype scenarios (bottom right):
- Saved registrations: none / one / two / five (after sign-in).
- Sign-in result: success, wrong e-mail or password, locked, social login without an account.
- Jump to screen: L1 – Přihlášení, L2 – Vaše registrace, the reminder e-mail.
Open points for implementation
- Draft storage, retention and cleanup (the e-mail link is valid 30 days) are not defined here.
- Reminder e-mail trigger and timing; the prototype only shows the e-mail itself.
- Password reset is not part of the prototype ("Zapomněli jste heslo?" only shows a toast).
- Uploaded documents in a draft need server-side storage and the same retention rules.