Skip to content

🐛 fix(web-ui): change pages in place from the rail, so the screen no longer flashes - #664

Merged
ShotaroKataoka merged 1 commit into
mainfrom
fix/seamless-page-nav
Nov 19, 2026
Merged

ShotaroKataoka merged 1 commit into
mainfrom
fix/seamless-page-nav

Conversation

@ShotaroKataoka

Copy link
Copy Markdown
Contributor

Summary

Moving between Decks, Styles and Templates flashed the whole screen. The rail and the logo were plain <a href> links, so every move reloaded the document. The whole screen was drawn again, LocaleProvider showed English for a moment before it read the chosen language from storage, and the Cloud Web UI went blank while AuthProvider checked the sign-in. Opening a deck and going back to the list did not flash, because that stays on one page through the hash.

  • The rail items and the logo use next/link. The document stays, the rail stays, and the language and the sign-in carry over; only the content changes. The logo and Decks keep their in-place handler on the decks page (🧪 test(e2e): follow the new Web UI layout; prerender home as the stage #660).
  • The content gets a 150ms fade-in (.page-fade), none with prefers-reduced-motion.
  • New e2e test page-nav.spec.ts: Decks → Styles → Templates → Decks, and the logo from Styles, all in Japanese. A value set on window must survive every move, and the rail must mark the current page. The test fails with the old links.

Checklist

  • make all passes (ruff + pytest): no Python changes
  • ash scan --mode local --fail-on-findings passes (see CONTRIBUTING.md): no new code paths
  • Docs updated if behavior/paths changed (README, docs/en, AGENTS.md): not needed
  • CHANGELOG.md [Unreleased] updated for user-facing changes
  • Commit messages follow Conventional Commits

Testing

  • npm run test:e2e: 31 passed (2.0 min). npm test (1516), npm run build:cloud, tsc, eslint src e2e.
  • Browser check on the local dev server: each rail move takes 80–120ms with no load event and no English text in the rail during the move. With the old links, every move reloaded the page.
  • Not tried in the browser: the Cloud static export behind sign-in. Client navigation there loads the exported index.txt payloads, which deploy_webui.sh already uploads.

Boundaries touched

None.

…longer flashes

SPEC: 20261119-1348_seamless-page-nav
Progress: rail and logo use next/link (no document reload, the language and sign-in carry over), a 150ms content fade, e2e page-nav
Next: PR
@ShotaroKataoka ShotaroKataoka added the blog:skip ブログ対象外 label Nov 19, 2026
@ShotaroKataoka
ShotaroKataoka merged commit 955b743 into main Nov 19, 2026
28 of 29 checks passed
@ShotaroKataoka
ShotaroKataoka deleted the fix/seamless-page-nav branch November 19, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blog:skip ブログ対象外

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant