מקור טכני באנגלית, מסונכרן אוטומטית מהמאגר. GitHub
Verification — stored PDF downloads (0.19.1)
- PDF-FR-001–003: real ReportLab generation tested for English/Hebrew reports and multi-day plans; embedded regular/bold fonts, vector charts, activity bands, per-zone hourly tables and saved owner reviews. Files are generated from canonical exported JSON / validated preview bundles. Cache identity includes app version, kind, language and complete source digest.
- PDF-FR-004–005: generation is lazy only. Tests cover persisted reuse after store restart, changed evidence rejected as stale, review-revision invalidation, expired/deleted run cleanup, renderer failure isolation, job queue bounds and duplicate generation. Private files use mode 0600. Preview cache expires after 24 hours; cache is capped at 40 files / 64 MiB.
- PDF-FR-006 / NFR-003: authenticated admin POST bridge only; no public static paths, external PDF provider or access token in links. Download transfers the stored bytes as a bounded JSON/base64 response, then exposes explicit Blob Download/Open/Share commands. Anonymous/non-admin and invalid IDs/languages are rejected.
- PDF-FR-007: preview compilation succeeds before rendering, input remains unchanged, and existing automation forecasts are informational.
- PDF-NFR-001: background generation with one renderer and two pending jobs maximum; cleanup scheduled independently from observer commits. File writes are atomic. Per-file cap 8 MiB, page cap 300. No device calls.
- Visual check: fictional mixed Hebrew/English room labels and feedback; seven-page Hebrew report inspected, including chart gaps, repeated table headers and active/inactive ordering. English multi-day plan reviewed. Embedded-font text geometry checked: only footers enter the bottom margin. Native print remains available for the HTML layout.
- Regression: 91 core and 64 JavaScript tests; 123 HA tests on each supported version (2026.8.2 and 2026.11.2); final PDF-specific checks repeated after renderer changes. EN/HE website builds and link checks pass.
Pending: actual iOS/Android Companion App Open/Share acceptance. Do not equate desktop verification with mobile acceptance. No automatic PDF pre-generation at study completion.
Hebrew units follow-up: classic Unicode bidi mirroring plus LTR unit marks correct (°C) and mixed numeric temperatures. Renderer and web tests cover parentheses, unit ordering and idempotence; regenerated Hebrew page visually confirmed.
Deployment: 66 files installed with a component/storage backup; all three saved-store hashes unchanged. One HA restart loaded 0.19.0 and the approved PyPI requirements. The installed archive generated and downloaded actual English and Hebrew PDFs from a retained completed observation. The English file contains 25 pages in 787,261 bytes; a text-boundary check found no horizontal margin overflow. Ready dialogs expose Download, Open and Share / Save to Files. No study activation, device calls or feedback edits were performed. Mobile Companion App acceptance remains a user check.
Final 0.19.1 patch isolates PDF-cache startup I/O errors: planning/observation still load, and PDF requests return a localized unavailable result. Dedicated failure test and both supported-version suites pass. The upstream font LICENSE is preserved byte-for-byte, including one trailing space; it is the only diff-whitespace exception.
0.19.1 deployment verified: the final 66-file patch preserved all three saved stores, then a second backend restart loaded the versioned 0.19.1 UI. A retained completed report generated successfully and exposed Download, Open and Share commands. No observation or device control was activated. Both supported-version test suites and branch CI passed. Real phone acceptance remains pending.