Files
inbuxa-webmail/web/src
jcoffey-dev 769992687b
ci / node (pull_request) Skipped
ci / version (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 2m3s
ci / docker-build (pull_request) Skipped
ci / publish (pull_request) Skipped
ci / announce (pull_request) Skipped
Show the loading view before the app starts (#134)
Opening the app drew nothing until the bundle had downloaded and React
mounted: #root was empty. index.html now holds the loading view inside
#root, so it shows before any JavaScript runs and React replaces it when
it mounts. It's the admin console's: the inbuxa mark bouncing, with the
spinner under it, and no text, since nothing can be translated yet.

The app shows the same view, AppLoading, while the session is checked
and the account's settings load, in place of the bare spinner, so the
handover doesn't move anything. Its rules sit in index.html because the
stylesheet arrives with the bundle. Until a theme is applied they use the
default theme's colors written out; the stylesheet's :root holds the
light values, which would flash before applyTheme() runs. After that they
follow the theme. The bounce and the spin stop for reduced motion.

The mark is inbuxa's on a renamed instance too: its name isn't known until
the server answers.

Fixes #134
2026-11-20 15:08:49 -07:00
..