UX rules

Rules for the Luna Booking onboarding. Open the flow

Setup page

  • No modal on load; first visit navigates to the Setup page (BFS 4.3.3).
  • Onboarding is a page inside the app, 5 steps: Enable app, Add Schedule button, Create first service, Set business hours, Try it on your store.
  • Opens at the first incomplete step. Merchant can jump to any step from the sidebar.
  • A step is “done” only by real state, never by a click: embed ON, block found, ≥1 service, hours saved, ≥1 appointment.
  • Incomplete step → footer shows “Skip this step” (except step 1); done step → “Continue” (primary). Last step → “Finish”.
  • Progress in settings.setupGuide (5 steps), replaces the old Setup guide card. Shops that already finished steps in the old guide keep them done.

Home

  • Setup guide card: checklist, “X of 5 steps completed”, dismiss, collapse. Clicking a step opens the Setup page at that step.
  • Embed and block status card always on Home, also after the setup guide is dismissed (BFS 4.2.3). Each row has an edit button.
  • Finish on step 5 with no booking yet → done screen shows one extra line “We’ll tick Try it when your first booking comes in.”

Steps and detection

  • Step 1: Continue always moves on, even while the embed is off; there is no confirm. The Storefront status card on Home keeps showing “App embed · Off” with a “Turn on” button until it is on.
  • After a button opens the theme editor, the chip goes to “Checking…” with a spinner. Re-check on window focus + every 5 s for 2 min, then stop and show “Check again”. Still not found → warning banner with the exact fix (“click Save”).
  • Vintage theme (no app block support) → step 2 opens straight on the snippet screen; done when the snippet is found in the product template.
  • Step 3 has no price field and can be skipped. Fields: Service name (prefilled with the product title, or “Sample service”), Duration 30 min, Time slot interval 30 min, Capacity 1, on the sample product or an existing product. The sample product is created at $0; a price of 0 still goes through checkout.
  • Step 4 button reads “Use these hours” until a field changes, then “Save hours”; either counts as done.
  • Step 5 is done by the first appointment, created when its order is placed (orders/create). Price 0 still checks out.

Forms and errors

  • Form: validation error sits under the field; API error → critical banner + “Try again”, inputs kept.
  • Loading: primary button shows spinner + “Creating…/Saving…”, fields disabled.
  • Reaching step 5 with step 1, 2 or 3 unfinished → warning banner listing the missing steps, one “Go to step N” link each.
  • Detected → success banner + toast, sidebar ✓. No auto-advance: merchant stays in control.
  • Feature-gated shop (installed after 28/04/2026) → Google Calendar card reads “Ask us to enable ›”.

Mobile, a11y, tracking

  • < 600 px: sidebar collapses to “Step 3 of 5” + progress bar; sticky footer.
  • Focus moves to the step heading on step change; status changes announced (aria-live).
  • All copy via i18n keys (6 languages).
  • Events: setup_opened, step_viewed, step_completed, step_skipped, setup_dismissed, finished; KPI = install → first booking time.