Skip to content

Add dynamic step pipeline and cart UI (Phase 2)#4

Open
Neche-Stephen wants to merge 2 commits into
namewiz:mainfrom
Neche-Stephen:feature/phase-2-step-pipeline
Open

Add dynamic step pipeline and cart UI (Phase 2)#4
Neche-Stephen wants to merge 2 commits into
namewiz:mainfrom
Neche-Stephen:feature/phase-2-step-pipeline

Conversation

@Neche-Stephen

Copy link
Copy Markdown

Replace hardcoded step numbers with named pipeline - ['cart', 'customer', 'payment', 'processing'].

Add visible cart with item rows, type badges, year selectors, per-item pricing, and remove buttons.

Progress bar now renders dynamically based on pipeline length.

Update tests with items JSON input.

Introduce items array internally to replace flat pricing fields.

New src/cart.js with computeCartTotals() and normalizeItems().

Backward compatible — legacy single-domain attributes auto-convert to a one-item cart via normalizeItems().
Replace hardcoded step numbers with named pipeline
['cart', 'customer', 'payment', 'processing']. Add visible cart
with item rows, type badges, year selectors, per-item pricing,
and remove buttons. Progress bar now renders dynamically based
on pipeline length. Update test harness with items JSON input.
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