fix(web): splash always waits for a click; add ASCII bonsai flanks #87

Merged
yuuhikaze merged 1 commit from web/splash-login into master 2026-10-25 08:00:10 -05:00
Owner

Root cause of the flash

When AUTH_SIGNIN_PATH was unset, splashMode() returned an auto mode and Splash.svelte played a ~0.9s boot and called dismiss() 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 distinguishes hidden (signed-in user, or already dismissed in this tab via sessionStorage) from interactive; the auto-continue mode and its timers are gone entirely. Without AUTH_SIGNIN_PATH the options still render — SIGN IN is greyed out with a NO SSO hint (new splash.noSso key, 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

  • Center content now sits in a framed card; the boot log (MEMORY CHECK / AUTOMATA ENGINE / READY) still stages once, but the three options render from the start and are never disabled while booting.
  • New 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 under prefers-reduced-motion.

Verification (playwright against a worktree vite, both env configs)

  • Fresh context, SSO configured (AUTH_SIGNIN_PATH=/auth/signin): screen still visible after 3s (no auto-continue), [ ANONYMOUS ] enabled, [ SIGN IN ] a link with rd=/, [ SIGN UP ] disabled.
  • Fresh context, env unset: screen still visible after 3s, [ SIGN IN ] disabled button with NO SSO hint, [ SIGN UP ] disabled.
  • Click [ ANONYMOUS ] → editor renders.
  • Reload in the same tab → splash does not re-show.
  • Screenshots at 1440x900 (bonsai flanking the card) and 800x700 (narrow: bonsai hidden, card centered) reviewed and iterated.
  • bun run check: 0 errors (1 pre-existing warning in dojo page). bun test: 73 pass, 0 fail — splashMode tests updated for the new gating (no-auto-continue assertions added).
## Root cause of the flash When `AUTH_SIGNIN_PATH` was unset, `splashMode()` returned an `auto` mode and `Splash.svelte` played a ~0.9s boot and called `dismiss()` 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 distinguishes `hidden` (signed-in user, or already dismissed in this tab via sessionStorage) from `interactive`; the auto-continue mode and its timers are gone entirely. Without `AUTH_SIGNIN_PATH` the options still render — SIGN IN is greyed out with a `NO SSO` hint (new `splash.noSso` key, 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 - Center content now sits in a framed card; the boot log (MEMORY CHECK / AUTOMATA ENGINE / READY) still stages once, but the three options render from the start and are never disabled while booting. - New `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 under `prefers-reduced-motion`. ## Verification (playwright against a worktree vite, both env configs) - Fresh context, SSO configured (`AUTH_SIGNIN_PATH=/auth/signin`): screen still visible after 3s (no auto-continue), `[ ANONYMOUS ]` enabled, `[ SIGN IN ]` a link with `rd=/`, `[ SIGN UP ]` disabled. - Fresh context, env unset: screen still visible after 3s, `[ SIGN IN ]` disabled button with NO SSO hint, `[ SIGN UP ]` disabled. - Click `[ ANONYMOUS ]` → editor renders. - Reload in the same tab → splash does not re-show. - Screenshots at 1440x900 (bonsai flanking the card) and 800x700 (narrow: bonsai hidden, card centered) reviewed and iterated. - `bun run check`: 0 errors (1 pre-existing warning in dojo page). `bun test`: 73 pass, 0 fail — `splashMode` tests updated for the new gating (no-auto-continue assertions added).
fix(web): splash always waits for a click; add ASCII bonsai flanks
All checks were successful
ci / web (pull_request) Successful in 1m7s
ci / rust (pull_request) Successful in 2m22s
ci / image (oven/bun:1.4.2-debian=docker-image://git.yhkze.net/actions/bun:1.4.2-debian node:22-bookworm-slim=docker-image://git.yhkze.net/actions/node:22-bookworm-slim , web, web.Dockerfile, rgxr-web) (pull_request) Has been skipped
ci / image (rust:1-slim-bookworm=docker-image://git.yhkze.net/actions/rust:1-slim-bookworm debian:bookworm-slim=docker-image://git.yhkze.net/actions/debian:bookworm-slim , ., api.Dockerfile, rgxr-api) (pull_request) Has been skipped
3e10946a5e
The splash auto-continued when AUTH_SIGNIN_PATH was unset: splashMode()
mapped that case to an 'auto' mode that played a ~0.9s boot and called
dismiss() on a timer — the screen just flashed by. Deployments without
SSO never got an entry screen at all.

The rule now is: the screen ALWAYS waits for the user. splashMode()
only distinguishes hidden (signed-in or already dismissed this tab)
from interactive; the auto mode is gone. Without AUTH_SIGNIN_PATH the
options still render, with SIGN IN greyed out and a NO SSO hint — the
same visual language as the always-coming-soon SIGN UP.

Also a composition pass while in there:

- the center content sits in a framed card; boot lines still stage
  once, but the options render from the start (never disabled waiting
  for boot text)
- new Bonsai.svelte: three hand-drawn ASCII bonsai in box-drawing pots
  (formal upright + mame flanking left, windswept right), in the
  spirit of the dojo's bamboo. Purely decorative (aria-hidden, no
  focus, absolutely positioned so they never push the layout, dropped
  below 1020px), very slow sway borrowed from the dojo grove, one
  drifting leaf now and then, static under prefers-reduced-motion

Co-Authored-By: GLM (OpenCode) <dev@yhkze.net>
yuuhikaze merged commit cd3d29891c into master 2026-10-25 08:00:10 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
k8s-services/rgxr!87
No description provided.