Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified eagleplot/assets/logo.ico
Binary file not shown.
Binary file modified eagleplot/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions eagleplot/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 28 additions & 1 deletion packaging/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down Expand Up @@ -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 `<g class="ep-pc">` 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
Expand Down
Loading
Loading