← All proposals

Card Sequence

A new component, CardSequence, in the loading indicators family.

Net-new componentOpen in Storybook

proposals/CardSequence/context.md41 lines · View on GitHub

Card Sequence

Problem

Creating several things in a row (first use: a new business account and its first workspace) takes a few seconds. A plain spinner does not show what is being made, and the screen jumps to the next page with no closing moment. The first use is the end of the business account creation flow, after the person submits the form, for new and existing customers. Other flows and products are expected to need the same (migration is one candidate, TBD).

Proposal

A new component, CardSequence, in the loading indicators family. Two to four cards appear one after the other with a line drawn between them; the text in each card shimmers while it works. When the work is done it lands on a headline ("You're all set.") with a yellow marker bar behind it (variant 13 of the designer's "Business account setup animation" artifact, in light and dark: the bar is yellow with dark text in both themes).

  • Content-agnostic: each card is a content slot with an optional icon; CardSequenceText gives the title and smaller subtitle structure.
  • The component only animates. The screen owns the work and the redirect.
  • Each step takes about 3 seconds, so the full animation is 5 s with two cards, about 8 s with three and 11 s with four, and it always plays in full. If the work finishes sooner, the landing waits for it. If the work takes longer, the last card keeps shimmering until isComplete is true.
  • onComplete fires 2 seconds after the landing starts, so the redirect always follows the full animation.

Challenge

  • Does PDS already do this? No. Closest parts: Spinner, ThinkingState (text shimmer), Skeleton, VerticalStepper. None draws connected cards that land on a completed state.
  • Could an existing component carry it? No; a prop on ThinkingState or Stepper would stretch their role.
  • Composition or component? Own timing and state (working, landed), so a component, not a recipe.
  • Who needs it? The business account creation flow (first use). The ticket's acceptance criteria say it is for reuse in other flows and products; no second use is named yet.
  • Overlap: SpinnerSequence (same moment in the sign-up flow, different shape). Kept separate; "see also" in its records. Not a variant of it: it would leave half its props meaningless.
  • Cost: new props (5 plus the card shape), one state, a Figma component later, docs. Without it the flow keeps the artifact's code.
  • Verdict: new component. Designer's choice (asked whether to extend SpinnerSequence; chose new). It started as NewBusinessAccount, fixed at two cards; the ticket's acceptance criteria made it content-agnostic, so it was renamed.

Source

  • Claude artifact "Business account setup animation", variant 13 (https://claude.ai/artifact/1Yz42QP5L6UpdJbYrgUHG6). No Figma link.
  • Acceptance criteria from the ticket (2026-12-01): content-agnostic cards with generic content slots; first use is the end of the business account creation flow; intended for reuse in other flows and products.

Constraints

  • Tokens only. Corners and shadow match the original: --pds-border-radius-card, --pds-elevation-raised. Not the Panel radius (0.75rem).
  • Light and dark both designed. The bar is --pds-color-badge-brand-background with --pds-color-badge-brand-foreground.
  • Reduced motion: no movement, final layout; no wait.
  • One polite live region announces the working and the complete text; the visible headline is hidden from screen readers.

Open questions

  • None open. Settled: icons in the tile are building and folder in the first use, size l; 2 to 4 cards; about 3 s per step.