Skip to content

Commit 80962ae

Browse files
committed
fix: How It Works rendering - icon template overflow + 3-step cap
- Fix icon template index overflow: stepIconTemplates[i] -> modulo cycle through 3 templates for commands with more than 3 steps - Cap prepare-delivery to 3 steps (was 5, too wide for row layout) - Add flex-wrap to desktop steps layout as safety net
1 parent f39621c commit 80962ae

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

site/assets/css/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,7 @@
10061006
@media (min-width: 768px) {
10071007
.steps {
10081008
flex-direction: row;
1009+
flex-wrap: wrap;
10091010
align-items: flex-start;
10101011
justify-content: center;
10111012
gap: var(--space-4);

site/assets/js/main.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -686,11 +686,9 @@
686686
14: {
687687
subtitle: 'Five quality gates. Zero shortcuts.',
688688
steps: [
689-
{ title: 'Clean and simplify', desc: 'Deslop, simplify, and test-coverage-checker run in parallel. AI slop removed, code simplified, test gaps flagged.' },
690-
{ title: 'Lint configs', desc: 'If changes touch agent/skill/plugin files, runs agnix (342 rules) and /enhance in parallel. Auto-fixes applied.' },
691-
{ title: 'Review loop', desc: '4 core reviewers (code quality, security, performance, tests) plus conditional specialists. Max 5 iterations with stall detection.' },
692-
{ title: 'Validate delivery', desc: 'Tests pass, build passes, requirements met, diff-risk scored. Blocks shipping if any mandatory check fails.' },
693-
{ title: 'Sync docs', desc: 'Finds stale references, updates CHANGELOG, fixes version numbers. Documentation matches code before the PR.' }
689+
{ title: 'Clean and lint', desc: 'Deslop + simplify + test-coverage run in parallel. Then agnix and /enhance lint any changed agent configs.' },
690+
{ title: 'Review and validate', desc: '4 core reviewers iterate until clean (max 5 rounds). Then delivery-validator checks tests, build, and requirements.' },
691+
{ title: 'Sync docs and ship', desc: 'Documentation synced with code changes. Ready for /ship or /gate-and-ship to create the PR.' }
694692
]
695693
},
696694
15: {
@@ -777,7 +775,8 @@
777775
num.textContent = i + 1;
778776
card.appendChild(num);
779777

780-
card.appendChild(stepIconTemplates[i].content.cloneNode(true));
778+
var tpl = stepIconTemplates[i % stepIconTemplates.length];
779+
if (tpl) card.appendChild(tpl.content.cloneNode(true));
781780

782781
var title = document.createElement('h3');
783782
title.className = 'steps__card-title';

0 commit comments

Comments
 (0)