Skip to content

feat(commerce-onboarding): redesign the connect-your-tools step - #4350

Merged
rafavalls merged 3 commits into
mainfrom
rafavalls/commerce-onboarding-redesign
Jul 7, 2026
Merged

rafavalls merged 3 commits into
mainfrom
rafavalls/commerce-onboarding-redesign

Conversation

@rafavalls

@rafavalls rafavalls commented Jul 7, 2026 •

Copy link
Copy Markdown
Collaborator

What

Design pass on the commerce onboarding "ready" screen (post-signup, where the merchant connects VTEX / GA4 / Search Console and opens the report), reviewed live against a real diagnostic flow (fila.com.br) on desktop and mobile.

Before After
Cards Tall stacked cards: benefit + bullet list + inline "Configuração / Nenhum valor de configuração foi salvo ainda" block Compact responsive cards — horizontal rows on mobile, 2-col tiles on sm+
Value framing + 49 verificações (same hardcoded number on all three cards; internal unit) Business-area tag (Catálogo / Funil / Busca) + a revenue-outcome line per card ("Onde a receita vaza no seu funil.")
Config Inline block on every connected card Gear button → existing config dialog
Right panel Abstract node-and-wire animation, muted outline card "Meet your specialist" card: brand-green header band, the specialist's real photo, DS success availability dot, outline DS button
Copy "Desbloqueie seu diagnóstico completo" (repeats the auth screen) / "Prefere que a gente acompanhe você?" "Conecte suas ferramentas para ver o diagnóstico completo" / "Precisa de ajuda? Fale conosco" (same on mobile banner)
/agendar link decocms-tanstack.deco-cx.workers.dev/agendar https://decocms.com/agendar

Details

  • Badge placement: top-right of the tile, center-aligned with the icon on sm+; category eyebrow above the name on mobile — fixes the name truncation ("VTEX Comm…") the old single-line layout caused.
  • Responsive verified across 11 viewports (360×740 → 1440×900, incl. short windows like 1024×640): no horizontal overflow anywhere, and the "Ver relatório completo" CTA stays on screen — the md card-area cap is now viewport-aware (min(60vh, 100dvh − 330px)), so short windows scroll the cards internally instead of pushing the CTA below the fold.
  • CompanionCopy.checks → area (string tag) in companions.ts / companions-core.ts; the old copy was flagged in-code as placeholder pending design strings — this is that pass.
  • Grid is already sized for a 4th card (GitHub) — that lands as its own PR.
  • Tests updated: companions-core fixtures (checks → area), loading-state skeleton copy/count. biome fmt, oxlint (incl. the new require-cn-classname rule), tsc, and the commerce-onboarding suite (52 tests) all clean.

🤖 Generated with Claude Code


Summary by cubic

Redesigned the commerce onboarding “connect your tools” step for faster scanning with compact cards, business-area tags, and a clearer help panel. Keeps the report CTA on-screen across viewports and moves config into a simple gear dialog.

  • New Features

    • Compact cards: horizontal rows on mobile; 2‑col tiles on sm+.
    • Business tags + outcome line: Catálogo/Funil/Busca badge and a short benefit.
    • Config lives behind a gear dialog with a small loading placeholder; connected shows a check in DS success color.
    • Viewport-aware height cap (min(60vh, 100dvh − 330px)) so the CTA stays visible.
    • “Meet your specialist” panel with a solid brand‑green header, real photo + availability dot; mobile banner mirrors the headline; schedule link points to https://decocms.com/agendar.
  • Refactors

    • Replaced checks with area across companion models and copy; updated unit and e2e tests (new headings, 4‑card skeleton count).
    • Dropped an unreachable action branch; removed the maskConfigValue helper and its test; standardized success styling.

Written for commit 3f1393c. Summary will update on new commits.

Review in cubic

rafavalls and others added 3 commits July 7, 2026 13:31
Design pass on the commerce onboarding "ready" screen, driven by a live
review of the real flow:

Companion cards
- Responsive card: compact horizontal row on mobile (icon · text · action),
  vertical tile in the sm+ 2-col grid. Single-column below sm so names never
  cram; grid already sized for a 4th (GitHub) card later.
- Badge placement: top-right of the tile centered with the icon on sm+;
  category eyebrow above the name on mobile (fixes name truncation).
- Business-oriented copy: the hardcoded "+49 verificações" count (same
  number on every card, internal unit) became a business-area tag
  (Catálogo / Funil / Busca) + a revenue-outcome benefit line per card.
  CompanionCopy.checks → area accordingly.
- The inline "Configuração / Nenhum valor salvo" block moved into the
  existing config dialog behind a gear button — connected cards no longer
  tower over the rest.
- Section title matches the onboarding title scale (text-2xl) and reads
  "Conecte suas ferramentas para ver o diagnóstico completo".
- md height cap is viewport-aware (min(60vh, 100dvh-330px)) so short
  windows scroll the cards internally instead of pushing the report CTA
  below the fold. Verified across 11 viewports (360x740 → 1440x900):
  no horizontal overflow, CTA always on screen.

Schedule-meeting panel
- "Meet your specialist" card: solid brand-green header band, the host's
  real photo overlapping it, DS success-green availability dot, outline DS
  button (same style as the Conectar buttons). No gradient washes.
- Copy: "Precisa de ajuda? Fale conosco" on both desktop card and mobile
  banner (banner drops the description and breaks the headline in two
  lines).
- /agendar link now points at https://decocms.com (was the raw
  workers.dev host).

Tests updated (companions-core fixtures checks→area; loading-state
skeleton copy/count). biome fmt, oxlint (incl. require-cn-classname),
tsc and the commerce-onboarding suite (52 tests) all clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
… redesign

Post-review cleanup on the redesigned companion cards:
- Remove the unreachable `card.satisfied` (no linkedConnectionId) branch in
  the action ternary. `satisfied` is only ever true when linkedConnectionId
  is truthy (companions-core: satisfied = !!linkedConnectionId && linkedReady),
  so the branch never rendered.
- Use the DS `text-success` token for the "Conectado" check instead of the raw
  `text-emerald-600` palette color, matching the `bg-success` dot introduced in
  the same redesign.
- Delete `maskConfigValue` and its test: the masked-values summary list was
  removed in the redesign, leaving the helper referenced only by its own test
  (knip dead-code debt).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The connect-your-tools redesign (fe37658) changed the schedule-meeting
headline and the section title but only updated the unit suite; the e2e
spec still asserted the old copy and failed on CI:
- "Prefere que a gente acompanhe você?" → "Precisa de ajuda? Fale conosco"
- "Desbloqueie seu diagnóstico completo" →
  "Conecte suas ferramentas para ver o diagnóstico completo"

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@rafavalls
rafavalls merged commit bf962c5 into main Jul 7, 2026
16 checks passed
@rafavalls
rafavalls deleted the rafavalls/commerce-onboarding-redesign branch July 7, 2026 17:20
decocms Bot pushed a commit that referenced this pull request Jul 7, 2026
PR: #4350 feat(commerce-onboarding): redesign the connect-your-tools step
Bump type: minor

- decocms (apps/mesh/package.json): 3.101.0 -> 3.102.0
- @decocms/e2e (packages/e2e/package.json): 0.7.0 -> 0.8.0

Deploy-Scope: web
tlgimenes pushed a commit that referenced this pull request Jul 16, 2026
…TS.md (#4475)

Mined ~300 merged PRs for the delta between the first PR proposal and the
work added before merge. The dominant shape: a first draft ships the happy
path, then a hardening pass (often a different engineer who takes over the
branch and merges — the vibecoder→engineer handoff) adds the same categories
every time. Encoded those 9 categories as an actionable first-pass checklist,
each citing a real PR (#4008, #4230, #4365, #4409, #4426, #4445, #4357, #4355,
#4449, #4350, #4373, #4416, #4446, #4461, #4134, #4469).

Covers: variant/edge-case handling, tenant/permission scoping, concurrency &
silent-data-loss, test-per-fix + invert-bug-tests + real-PG, dead-code/knip,
lifecycle symmetry + state reset, kill-switch/GC/git-exclude for risky infra,
input validation vs over-engineering, compile-time type-safety.

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant