diff --git a/CHANGELOG.md b/CHANGELOG.md index 86c9152..dc71b50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,20 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] +### Changed + +- **The EaglePlot logo is now in NCCU maroon and gray** (it was blue): the same disc, bars + and line, on the Home page, in the sidebar, as the browser-tab icon and in `logo.ico`. + `eagleplot/assets/logo.svg` is the master. +- **A new loading screen for the web app.** The logo's pieces (the rings, the axes, the + bars, the line and the points) fly in from all sides of the screen and lock together, + then a highlight sweeps across while Python loads. Below it, four real steps + (downloading Python, installing the science libraries, starting EaglePlot, opening your + workspace) replace the endlessly sliding bar. The note about the 45 MB download appears + only on a first visit. If loading fails, the screen says why and offers **Reload** + instead of sliding forever. With reduced motion turned on in the system settings, the + logo appears complete and nothing moves. + --- ## [3.1.0] - 2026-11-06 diff --git a/eagleplot/assets/logo.ico b/eagleplot/assets/logo.ico index fbc26da..e4e13d0 100644 Binary files a/eagleplot/assets/logo.ico and b/eagleplot/assets/logo.ico differ diff --git a/eagleplot/assets/logo.png b/eagleplot/assets/logo.png index ddc9998..f4cfde6 100644 Binary files a/eagleplot/assets/logo.png and b/eagleplot/assets/logo.png differ diff --git a/eagleplot/assets/logo.svg b/eagleplot/assets/logo.svg new file mode 100644 index 0000000..342a708 --- /dev/null +++ b/eagleplot/assets/logo.svg @@ -0,0 +1,15 @@ + + EaglePlot + + + + + + + + + + + + + diff --git a/packaging/web/README.md b/packaging/web/README.md index b4eff31..1cad886 100644 --- a/packaging/web/README.md +++ b/packaging/web/README.md @@ -45,7 +45,7 @@ Streamlit exception, uncaught page error, failed download or request to another | File | Content | | --- | --- | -| `index.html` | Loading splash, the stlite mount call, and a download workaround (below) | +| `index.html` | Loading splash (below), the stlite mount call, and a download workaround (below) | | `404.html` | A copy of `index.html`, for hosts that serve the nearest `404.html` (below) | | `site-config.js` | Written by the build: entrypoint, packages, wheels, Pyodide URL, Streamlit flags, storage mount, environment | | `eagleplot-app.zip` | `eagleplot/` (code, assets, gallery, example data) and `.streamlit/config.toml`; entrypoint `eagleplot/Home.py` | @@ -73,6 +73,33 @@ Opening `index.html` from disk fails: the app runs in a module Web Worker and lo app zip, wheels and Pyodide with `fetch()`, and browsers block both for `file://` pages. Serve the directory over HTTP (`python -m http.server`, GitHub Pages, any static host). +## Loading splash + +`index.html` draws the splash before anything else loads: a classic inline script, inline +CSS and SVG, and no other files, so it is on screen while `stlite.js` and Pyodide download. + +- **The logo.** The pieces of `eagleplot/assets/logo.svg` (three rings, the axes, four bars, + the line, four points) are inlined as separate `` groups. Each carries + `data-from="x y rotate scale"` (its off-screen start, in logo units) and `data-order` + (it leaves at order × 120 ms), and flies in with the Web Animations API; the points land + without overshoot (`data-ease`). While Python loads, a highlight sweeps across the disc + and a pulse runs along the points. If the logo changes, update the pieces here too. No + web fonts: the smoke test fails on requests to other origins. +- **Steps.** `window.eaglePlotSplash` exposes `setStage(i)`, `ready()` and `fail(message)`. + The module script calls them from stlite's kernel events: `loadProgress` messages are + matched by keyword (`/pyodide/`, `/install|package/`, `/streamlit|server|boot/`), + `loadFinished` is the last step, and `loadError` shows the message and a Reload button. + Steps only move forward, so a reworded stlite message leaves the step where it is. The + events come from `_kernel`, which stlite calls unstable: re-check them when upgrading. +- **Leaving.** The existing sidebar observer calls `ready()`, which waits for the logo to + finish building, fades the splash out over 450 ms and removes `#loading`. It also sets + `localStorage["eagleplot.started"]`, which hides the first-visit download note next time. +- **Reduced motion.** With `prefers-reduced-motion`, the logo is drawn complete and nothing + moves. + +The smoke test checks that the splash shows a step, reaches the last one and is gone once +the app is up. + ## Browser-specific behaviour - **Downloads.** Streamlit 1.65 starts a deferred download diff --git a/packaging/web/index.html b/packaging/web/index.html index 5729ff2..d16c4b6 100644 --- a/packaging/web/index.html +++ b/packaging/web/index.html @@ -7,34 +7,181 @@ +
- -
Starting EaglePlot…
- - - EaglePlot runs entirely in your browser: your data never leaves this computer. - The first visit downloads Python and the scientific libraries (tens of MB); - later visits start from the browser cache. - +
+ +
EaglePlot
+
+
Starting EaglePlot…
+ +
Runs entirely in your browser. Your data stays on this computer.
+
+
+
Schultz Lab · North Carolina Central University
+