fix(web): splash always waits for a click; add ASCII bonsai flanks #87
Loading…
Reference in a new issue
No description provided.
Delete branch "web/splash-login"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause of the flash
When
AUTH_SIGNIN_PATHwas unset,splashMode()returned anautomode andSplash.svelteplayed a ~0.9s boot and calleddismiss()on a timer — the screen flashed by and threw the visitor straight into the app. Deployments without SSO never got a real entry screen.New gating rule
The screen always waits for the user.
splashMode(authed, dismissed)now only distinguisheshidden(signed-in user, or already dismissed in this tab via sessionStorage) frominteractive; the auto-continue mode and its timers are gone entirely. WithoutAUTH_SIGNIN_PATHthe options still render — SIGN IN is greyed out with aNO SSOhint (newsplash.noSsokey, en + es), mirroring the always-coming-soon SIGN UP. Signed-in users still skip the screen; once dismissed, navigating/reloading in the same tab never re-shows it.Composition pass + bonsai
Bonsai.svelte: three hand-drawn ASCII bonsai in box-drawing pots — formal upright + tiny mame flanking left, windswept right — phosphor green with shade-block canopies and a faint glow pool under each pot. Sway copies the dojo grove's slow rotate (Scene.svelte); one leaf drifts down now and then.aria-hidden, not focusable, absolutely positioned so they never push the layout, hidden below 1020px, static underprefers-reduced-motion.Verification (playwright against a worktree vite, both env configs)
AUTH_SIGNIN_PATH=/auth/signin): screen still visible after 3s (no auto-continue),[ ANONYMOUS ]enabled,[ SIGN IN ]a link withrd=/,[ SIGN UP ]disabled.[ SIGN IN ]disabled button with NO SSO hint,[ SIGN UP ]disabled.[ ANONYMOUS ]→ editor renders.bun run check: 0 errors (1 pre-existing warning in dojo page).bun test: 73 pass, 0 fail —splashModetests updated for the new gating (no-auto-continue assertions added).