-
feat: Add favicon and project icon (#1106)
发布于
2025-11-22 19:28:50 +00:00 - feat: Add favicon (PNG only, no duplication)
Adds the neon microscope icon as website favicon to fix 404 error.
Changes:
- Added favicon.png (256x256) in static/ directory
- Updated base.html to reference favicon using url_for() for proper path resolution
- Updated file whitelist to allow favicon
The icon was recovered from git history (commit
495a905d) and is metadata-clean.Improvements based on AI review:
- Removed file duplication (single favicon.png instead of two copies)
- Used url_for() instead of hardcoded paths for better Flask compatibility
-
chore: auto-bump version to 1.2.16
-
fix: Use direct path for favicon instead of url_for()
The Flask app has static_folder=None and uses a custom static route
with endpoint 'app_serve_static', so url_for('static', ...) doesn't
exist and was causing BuildError on all pages.Using hardcoded /static/favicon.png path which matches the custom
@app.route('/static/path:path') route in app_factory.py.This fixes all UI test failures.
Co-authored-by: GitHub Action action@github.com
下载附件