Station name as "brand, street, city", grey box on all editable fields
The "grey box around the icons" report turned out not to be a defect: the box on "10.000 km"/"1 Jahr"/"15" is the wanted pattern, and every value the user can change should carry it. All .feld inputs and selects now get the grey iOS fill; inputs with their own visual language (checkbox/radio/range/file) keep the transparent base rule, so the switches are unaffected. Fuel stations are now displayed as "Shell, Pascalstr. 8, Ingolstadt" instead of the bare operator name. New _marke()/_ist_strasse()/_tankstelle() helpers are shared by both parser paths so Shell and non-Shell receipts format the same. The brand is only matched against the receipt header - searching the whole text would let "Total" hit a totals line. Missing parts are dropped instead of leaving empty comma slots, and without a known brand the operator name takes its place. station_address still carries the full street and postcode. test_bekannte_stationen updated to the new format; suite stays green. installationspaket/ is versioned from now on (user request). It contains no real vehicle data - only the example profile with empty FIN/plate placeholders. Keep it in sync whenever pyscript/ or www/ changes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -775,6 +775,35 @@ wraps the web app for iPhone; a PWA home-screen install is the accepted intermed
|
||||
spelled-out "Liter" now matches too. Result on that receipt: 42,13 l · 92,60 € · 2,198 €/l ·
|
||||
no discount · `AUTO B. FRISCHMANN GMBH`. The 10-receipt Shell regression suite still passes.
|
||||
All deployed to `audi_ha_test` (version `1786765000`) and synced to `installationspaket/`.
|
||||
- [x] Fourth round the same day (2026-08-16):
|
||||
(1) **The "grey box around the icons" report is resolved — it was never a defect.** After five
|
||||
fruitless reproduction attempts across two sessions, the user clarified what they actually
|
||||
meant: the grey box seen on "10.000 km", "1 Jahr", "15" is the *desired* pattern, and **every
|
||||
value the user can change should carry it** to signal editability. `.feld input`/`.feld select`
|
||||
in `audi-dashboard-ios.css` now all get `background:var(--ios-fill);padding:8px 10px`;
|
||||
inputs with their own visual language (`checkbox`/`radio`/`range`/`file`) are excluded and keep
|
||||
the transparent base rule, so the three switches stay untouched. The separate
|
||||
`.mitEinheit input` rule became redundant and was removed (its width/alignment still come from
|
||||
`audi-dashboard.css`). Verified live: FIN, Kennzeichen, Erstzulassung, Ausführung, Modell,
|
||||
both Ölwechsel selects, Ansicht, Pause bis and Autom. Backup all boxed; the three checkboxes
|
||||
not. **Do not re-open this as a bug.**
|
||||
(2) **Station display name is now "Marke, Straße, Ort"** (e.g. `Shell, Pascalstr. 8,
|
||||
Ingolstadt`) instead of the bare operator name (`A. Zrenner GmbH`) — the brand and place say
|
||||
more when scrolling the Tankvorgänge list. New `_marke()`/`_ist_strasse()`/`_tankstelle()`
|
||||
helpers in `shell_beleg_parser.py`, shared by both parser paths so Shell and non-Shell
|
||||
receipts format identically. The brand is matched only against the first 8 lines (the receipt
|
||||
header) — searching the whole text would let "Total" hit a totals line. Missing parts are
|
||||
dropped rather than left as empty comma slots (the Austrian receipt prints no street:
|
||||
`Shell, SÖLDEN`), and without a recognizable brand the operator name takes the brand's place.
|
||||
`station_address` keeps the full street + postcode + city as before. The regression suite's
|
||||
`test_bekannte_stationen` expectations were updated to the new format (intended change, not a
|
||||
break); all 8 tests / 164 subtests pass.
|
||||
(3) **`installationspaket/` is versioned from now on** (user request) — removed from
|
||||
`homeassistant/.gitignore`. It carries no real vehicle data, only
|
||||
`data/fahrzeugprofil.example.json` with empty FIN/Kennzeichen placeholders; verified before
|
||||
un-ignoring. **Keep it in sync whenever `pyscript/` or `www/` changes** — that was already the
|
||||
working rule, but it is now visible in the repo when it is forgotten.
|
||||
Deployed to `audi_ha_test` (version `1786766000`).
|
||||
- [ ] Fix remaining documentation drift (statistics claim, README gaps, obsolete TODO comment) —
|
||||
text-only changes; INSTALL.md's WLAN/TommiG1 drift and stale variable names were fixed
|
||||
2026-08-12 (see section B); `DESIGN_REVIEW_2026-08-13.md` and `REVIEW_main_2026-08-13.md`
|
||||
|
||||
Reference in New Issue
Block a user