diff --git a/fichero_printer/CHANGELOG.md b/fichero_printer/CHANGELOG.md index 016af9e..ba31512 100644 --- a/fichero_printer/CHANGELOG.md +++ b/fichero_printer/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to this project are documented in this file. The format is based on Keep a Changelog and this project uses Semantic Versioning. +## [0.1.32] - 2026-03-18 + +### Fixed +- **Web UI**: Fixed scan functionality not showing output by ensuring JavaScript is properly injected in all cases. +- **Web UI**: Added default hint text to scan results area for better user guidance. +- **Web UI**: Added comprehensive debug console logging to help diagnose scan issues. + +### Changed +- **Web UI**: Improved scan section injection logic to work with both `` and `` templates. +- **Web UI**: Enhanced error handling and user feedback in scan functionality. + ## [0.1.31] - 2026-03-18 ### Added diff --git a/fichero_printer/config.yaml b/fichero_printer/config.yaml index 7b626ef..59ba6b0 100644 --- a/fichero_printer/config.yaml +++ b/fichero_printer/config.yaml @@ -1,5 +1,5 @@ name: "Fichero Printer" -version: "0.1.31" +version: "0.1.32" slug: "fichero_printer" description: "REST API for the Fichero D11s (AiYin) thermal label printer over Bluetooth" url: "https://git.leuschner.dev/Tobias/Fichero" diff --git a/fichero_printer/fichero/api.py b/fichero_printer/fichero/api.py index 87b5072..35ec923 100644 --- a/fichero_printer/fichero/api.py +++ b/fichero_printer/fichero/api.py @@ -77,7 +77,7 @@ async def lifespan(app: FastAPI): # noqa: ARG001 app = FastAPI( title="Fichero Printer API", description="REST API for the Fichero D11s (AiYin) thermal label printer.", - version = "0.1.31", + version = "0.1.32", lifespan=lifespan, docs_url=None, redoc_url=None, @@ -130,23 +130,28 @@ def _ui_html() -> str: Scan for BLE Devices (10s) -

+            
📱 Click "Scan for BLE Devices" to search for nearby Bluetooth devices...
""" scan_script = r''' @@ -185,7 +192,7 @@ def _ui_html() -> str: # Inject after the main content but before scripts if "" in template: parts = template.split("", 1) - template = parts[0] + "" + scan_html + parts[1] + template = parts[0] + "" + scan_html + scan_script + parts[1] elif "" in template: parts = template.split("", 1) template = parts[0] + scan_html + scan_script + "" + parts[1] diff --git a/pyproject.toml b/pyproject.toml index 66698b9..9aecbb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "fichero-printer" -version = "0.1.31" +version = "0.1.32" description = "Web GUI, Python CLI, and protocol documentation for the Fichero D11s thermal label printer." readme = "README.md" requires-python = ">=3.10"