Skip to content

UX: Scroll to the top when the wizard step changes - #326

Merged
angusmcleod merged 3 commits into
paviliondev:mainfrom
davidlippidinova:ux/wizard-step-scroll-top
Nov 5, 2026
Merged

angusmcleod merged 3 commits into
paviliondev:mainfrom
davidlippidinova:ux/wizard-step-scroll-top

Conversation

@sisti86dinova

Copy link
Copy Markdown
Contributor

Problem

When moving to the next step of a long wizard the page stays scrolled down, or jumps to the first focused field (e.g. the composer textarea), so users don't see the new step's title and description.

Change

CustomWizardStep#scrollToTop runs when the step changes (in didReceiveAttrs, next to autoFocus):

  • scrolls the window and #main-outlet / .wizard-column to the top;
  • for about 800 ms it cancels focus-driven scrolls and repeats the scroll a few times while the step renders (cooked title/description change the layout asynchronously), then removes its listeners.

We've been running this logic in production on the pre-GJS component. If you have a preferred hook for step transitions, or would like a lighter approach, we're happy to adjust.

🤖 Generated with Claude Code

sisti86dinova and others added 3 commits November 3, 2026 10:52
When moving to the next step of a long wizard the page stayed scrolled
down, or jumped to the first focused field, so the new step's title and
description were not visible. Scroll to the top on step change and cancel
focus-driven scrolls while the step renders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core's composer focuses the editor on setup, after the route has
scrolled to the top, so steps with a composer field opened scrolled
down to it. Focus the wizard composer without scrolling instead of
holding the page at the top for a fixed time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DSz8MWGMF9Utk4gyCsBEcw
@angusmcleod
angusmcleod merged commit b20cea9 into paviliondev:main Nov 5, 2026
6 checks passed
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.

2 participants