# Compact Training Step Navigation Implementation Plan > **For agentic workers:** REQUIRED SUB-SKILL: Use `superpowers:executing-plans` to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. **Goal:** Reduce the desktop spacing and arrow length between training-step buttons without changing button content or the mobile vertical layout. **Architecture:** Keep the existing `GenericTrainingPage.vue` markup and state unchanged. Adjust only the shared desktop `.step-connector` flex basis, minimum width, and horizontal margins; preserve the media-query connector rules. **Tech Stack:** Vue 3 single-file components, scoped SCSS, Node static test. ## Global Constraints - Do not change the step count, step button width, copy truncation, or click behavior. - Keep the existing vertical connector styles for screens at or below 900px. - The desktop connector must remain visible and retain its arrowhead. --- ### Task 1: Compact the desktop connector **Files:** - Modify: `src/views/training/GenericTrainingPage.vue:789-808` - Create: `tests/step-indicator-layout.static.test.cjs` **Interfaces:** - Consumes: `.step-connector` and `.step-connector::after` emitted between each `.step-tab`. - Produces: A shorter desktop connector with the same arrowhead and unchanged mobile override. - [ ] **Step 1: Write the failing test** ```js const source = fs.readFileSync(path.join(root, "src/views/training/GenericTrainingPage.vue"), "utf8"); const connector = source.match(/\.step-connector \{([\s\S]*?)\n\}/)?.[1] || ""; assert.match(connector, /flex:\s*0 1 40px;/); assert.match(connector, /min-width:\s*18px;/); assert.match(connector, /margin:\s*0 8px;/); ``` - [ ] **Step 2: Run the test to verify it fails** Run: `node tests/step-indicator-layout.static.test.cjs` Expected: FAIL because the connector currently uses `64px`, `22px`, and `0 14px`. - [ ] **Step 3: Implement the minimal style change** ```scss .step-connector { flex: 0 1 40px; min-width: 18px; margin: 0 8px; } ``` Leave the pseudo-element arrowhead and the `@media (max-width: 900px)` connector block unchanged. - [ ] **Step 4: Run the test to verify it passes** Run: `node tests/step-indicator-layout.static.test.cjs` Expected: PASS. - [ ] **Step 5: Build the frontend** Run: `npm run build:prod` Expected: Vite build completes successfully.