0.6.6: dalla Home si aprono le regolazioni dell'oggetto toccato, non di tutto l'impianto

This commit is contained in:
2026-10-11 09:59:25 +02:00
parent a788255593
commit afb2878a8c
8 changed files with 167 additions and 23 deletions
+19 -5
View File
@@ -142,6 +142,14 @@ python3 tests/ui_contract_check.py # bridge on 127.0.0.1:8790
python3 tests/ui_contract_check.py http://192.168.3.21:8790
```
Two checks look at the QML itself, since none of it can be run here. Both take
milliseconds and name the file they are unhappy about:
```sh
python3 tests/qml_check_bindings.py qml # no property assigned twice in one object
python3 tests/qml_focus_check.py # a tap opens only the object it touched
```
## Status
Verified so far:
@@ -158,8 +166,11 @@ Verified so far:
in, Italian out, and back to English when the catalogue is removed
- numbers, amounts and month names formatted through `QLocale`, so the decimal
separator and the currency position follow the language (verified for both)
- `qmllint` clean on every QML file. Note it validates syntax only: without the
Silica module an invalid Silica property passes silently
- static checks where the UI cannot be run: `qmllint` clean on every QML file
(syntax only: without the Silica module an invalid Silica property passes
silently), the data keys the QML reads are the ones the bridge serves
(`tests/ui_contract_check.py`), and a tap on the home screen opens only the
settings of the object it touched (`tests/qml_focus_check.py`)
- **no duplicate property assignment** in the QML (`tests/qml_check_bindings.py`,
13 files): assigning the same property twice in one object — two
`Component.onCompleted` in a page, typically — makes Qt 5.6 fail to create the
@@ -171,9 +182,11 @@ Verified so far:
4.42, Smart Tariff Control saving €2.71)
- the bridge runs as a systemd user unit and comes back by itself after a kill
Not verified: **the app has not been built or run on a phone yet** — the first
build is up to whoever has the Sailfish SDK. The images in `docs/anteprima/` are
layout previews built from the real plant values, not screenshots.
Verified on a phone too: **built and run on a Sailfish phone** (Jolla, Sailfish
OS 5.2) — that first build is exactly what exposed the home-page bug fixed in
0.6.1. Not verified: **sending a command to a real plant** (everything so far is
read-only), and the images in `docs/anteprima/` are layout previews built from
the real plant values, not screenshots.
A Qt 5.6 note on the language switch: `QQmlEngine::retranslate()` only exists
from Qt 5.10, so installing a translator is not enough to re-translate what is
@@ -233,6 +246,7 @@ qml/components/ActionButton.qml command button, optional confirmation
tests/core_test.cpp core checks (headless)
tests/ui_contract_check.py QML keys vs bridge keys (bridge must be running)
tests/qml_check_bindings.py duplicate property assignments in the QML
tests/qml_focus_check.py a tap opens only that object's settings
bridge/ local HTTP bridge -> see bridge/README.md
translations/ harbour-aira-it.ts (English is the source language)
docs/PIANO.md project plan and decisions (Italian)