Skip to content

Redesign the node wizard - #110

Merged
tomasz-zajac-oss merged 1 commit into
mainfrom
style/node-wizard-redesign
Oct 1, 2026
Merged

tomasz-zajac-oss merged 1 commit into
mainfrom
style/node-wizard-redesign

Conversation

@tomasz-zajac-oss

Copy link
Copy Markdown
Collaborator

The node wizard from #109 worked but looked dated: a narrow box, step chips wrapping onto two lines, small form fields. This restyles it. Behaviour is unchanged.

What changed

  • Layout: two columns.
    • Sidebar: the element type (icon tile + name) and a vertical stepper. Visited steps get a check; you can click any step.
    • Main column: a progress bar, "Step n of N", the step title as a large heading, and its guidance underneath.
  • Fields:
    • larger inputs with a focus ring;
    • enums with up to 6 options render as chips, longer ones stay a select;
    • booleans render as a switch;
    • in a step with only one field, the label is hidden visually (it repeated the heading) but kept for screen readers.
  • Relations: candidates are selectable cards with the type's icon and colour, a filter field when there are more than 6, and a "n selected" counter.
  • EARS step: the composed sentence shows in a preview card.
  • Polish:
    • blurred backdrop, entry and step transitions (none under prefers-reduced-motion);
    • a close button;
    • keyboard hints (⌘↵ / Esc) in the sidebar;
    • a single column below 720 px.
  • Contrast: in the dark theme the primary button and the active step use a deeper blue than --accent, so white text reaches 4.5:1 (it was 2.5:1).

Tests

  • Only one e2e assertion changed: Status is now a radio chip, not a select.
  • npm test and npm run typecheck pass.
  • E2E: 53/54. The one failure, in folders.spec.ts (markdown-folder persistence), doesn't touch the wizard. It passed 18/18 when that spec was re-run on its own, so it looks flaky under the full parallel run.
  • Checked by screenshot in the web build: ADR (title, context, relations) in the dark theme, Requirement (sentence, EARS fields) in the light theme, and phone width.

🤖 Generated with Claude Code

Two columns: a sidebar with the element type and a vertical stepper (checked
steps already visited), and the step itself under a progress bar with a large
heading and its guidance. Short enums are chips, relation candidates are
selectable cards with the type icon, the EARS step shows a preview card, and
a step's only field drops its label, which repeats the heading. Blurred
backdrop, entry and step transitions (off under reduced motion), a single
column below 720px. The primary button gets a deeper blue in the dark theme
so white text reaches 4.5:1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tomasz-zajac-oss
tomasz-zajac-oss merged commit 5a10ba1 into main Oct 1, 2026
4 checks passed
@tomasz-zajac-oss
tomasz-zajac-oss deleted the style/node-wizard-redesign branch October 1, 2026 16:52
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