Skip to content

New logo (the EaglePlot eagle) and an animated loading screen for the web app - #49

Open
NCCU-Schultz-Lab wants to merge 1 commit into
mainfrom
claude/bold-ritchie-hu5gvb
Open

NCCU-Schultz-Lab wants to merge 1 commit into
mainfrom
claude/bold-ritchie-hu5gvb

Conversation

@NCCU-Schultz-Lab

@NCCU-Schultz-Lab NCCU-Schultz-Lab commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

What and why

New logo. An athletic-style eagle head in NCCU maroon and gray replaces the blue bar-chart icon. It is an original drawing: six flat pieces (head with four straight-cut feather points, gray band, maroon throat, pale beak, brow, eye) with a heavy outline, so the white head stays readable on white.

  • eagleplot/assets/logo.png is now the head (Home hero, sidebar). The new icon.png (the head on a maroon tile) is the browser-tab icon in Home.py and the web app. logo.ico is that tile at 16 to 256 px.
  • brand/ holds the SVG masters, lockups with the wordmark outlined in Archivo Italic (light, dark, and with "Schultz Lab · North Carolina Central University"), 2× PNGs, colours and usage rules. scripts/brand/ regenerates everything: fontTools + HarfBuzz for the SVGs, Playwright for the PNGs and the .ico.
  • The README shows the lockup, with a dark-mode variant.
  • The brand files are in a top-level brand/ folder, not docs/brand/, because test_docs_site requires every Markdown file under docs/ to be a published guide.

New loading screen for the web app (packaging/web/index.html):

  • The head's six pieces fly in from the edges of the screen and lock together. Then a highlight sweeps across and the eye blinks while Python loads. It is all inline SVG, CSS and a classic script, so it draws before stlite.js is fetched and requests nothing else. The wordmark is outlined paths, because the smoke test forbids other origins.
  • Four real steps (downloading Python, installing the science libraries, starting EaglePlot, opening your workspace) replace the endlessly sliding bar. They come from stlite's kernel events: loadProgress messages are matched by keyword and only move forward, and loadFinished marks the last step. On loadError the screen shows the message and a Reload button.
  • The 45 MB note shows only on a first visit, using localStorage["eagleplot.started"], which is set after a successful start.
  • With reduced motion turned on, the head is drawn already assembled and nothing moves.
  • When the sidebar appears, the head lunges forward and the splash fades out over 450 ms.
  • scripts/web/smoke.js now checks that the splash shows a step, reaches the last one, and is removed.

Before release, NCCU University Communications should see the mark and the endorsed lockup.

How it was tested

  • ruff check . and ruff format --check . pass
  • MPLBACKEND=Agg pytest tests/ passes: 1236 passed, 32 skipped
  • Tests added or updated for the changed behaviour: icon.png in the packaged-assets test, and a splash check in smoke.js
  • CHANGELOG.md updated under [Unreleased]

Web build: python packaging/web/build_site.py build/web --pyodide-dir … with self-hosted Pyodide 314.0.3 (the sandbox can't reach jsDelivr), served locally, then node scripts/web/smoke.js:

booted in 22.1 s
ok   splash    first step "Downloading Python1 of 4", last step 4 of 4, removed
ok   download  plot_300dpi.png 70699 bytes, app still running
PASSED: 32 page loads, 0 with exceptions or page errors.

The CDN-Pyodide path is tested by this PR's docs.yml run.

Also checked by hand in Chromium:

  • The failure path: with the CDN blocked, the splash showed the import error and Reload.
  • The Home hero and sidebar with the new logo.
  • logo.ico opens in Pillow with all seven sizes.
  • Re-running scripts/brand/build_brand.py reproduces brand/*.svg byte for byte.

🤖 Generated with Claude Code

… web app

Logo
- An athletic-style eagle head in NCCU maroon and gray, drawn from six flat pieces with a
  heavy outline. Replaces the blue bar-chart icon: eagleplot/assets/logo.png (the head),
  new icon.png (the head on a maroon tile; browser-tab icon in Home.py and the web app),
  and logo.ico (16-256 px).
- brand/: SVG masters, lockups with the outlined Archivo wordmark (light, dark, and with
  "Schultz Lab · North Carolina Central University"), 2x PNGs, colours and usage rules.
  scripts/brand/ regenerates them (fontTools + HarfBuzz for the SVGs, Playwright for the
  PNGs and the .ico). The README shows the lockup.

Web app loading splash (packaging/web/index.html)
- The head's six pieces fly in from the edges of the screen and lock together, then a
  highlight sweeps across and the eye blinks while Python loads. Inline SVG, CSS and a
  classic script: it draws before stlite.js is fetched and loads nothing else.
- Four real steps from stlite's kernel events (loadProgress matched by keyword, only
  moving forward; loadFinished), replacing the endlessly sliding bar. loadError shows the
  message and a Reload button.
- The 45 MB note shows only on a first visit (localStorage flag set after a successful
  start). Reduced motion: the head is drawn assembled and nothing moves.
- When the sidebar appears the head lunges forward and the splash fades out (450 ms).
- smoke.js checks that the splash shows a step, reaches the last one and is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants