Versicherung/Steuer: Wortlaut-Feinschliff und Vertrag komplett editierbar
Mein-Audi-Kachel "Versicherung/Steuer" (vAudi()) und Kfz-Steuer-Detail (vSteuer()): "Zusammen" heisst jetzt "Summe", die Fusszeile "feste Kosten im Jahr" darunter entfaellt ersatzlos. Die Kfz-Steuer-Zeile zeigt "im Jahr" statt des rohen Datenwerts "jaehrlich", deckungsgleich mit der Versicherungs-Zeile darueber - nur wenn steuer.zeitraum tatsaechlich "jaehrlich" ist. Der gespeicherte Wert und die "jaehrlich"/"halbjaehrlich"-Auswahl in vSteuerBearbeiten() bleiben unveraendert, das war ein reiner Anzeige-Fix, keine Datenmodell- Aenderung. companion-app hatte an keiner der beiden Stellen ein Gegenstueck (kein "Zusammen"-Tile, keine Nur-Lese-Anzeige des Zeitraums) - dokumentiert als vorbestehende strukturelle Luecke statt kommentarlos uebersprungen. Vertrag-Kachel: war komplett nur lesbar (Gesellschaft, Umfang, Vertragsnummer, Selbstbeteiligung, Schadenfreiheitsklasse). Neue vVertragBearbeiten()-Ansicht (Panel, Route "vertrag") ueber ein neues Zahnrad auf der Vertrag-Kachel - alle Felder editierbar, Selbstbeteiligung zusaetzlich mit Hinzufuegen/Loeschen pro Zeile (neue .zeile-loeschen-Klasse, 44x44pt-Tippflaeche wie .km-edit). Die aktuelle Schadenfreiheitsklasse bleibt bewusst nur ueber "Beitrag anpassen" editierbar (Querverweis statt Duplikat), nur "zuvor" (sfAlt) ist neu in der Vertrag-Ansicht. companion-app: neue Vertrag()-Seite (Route "vertrag", eigene NaviKachel auf der Versicherungs-Seite) nach dem dortigen etablierten Muster (lokaler Entwurf-State + expliziter Speichern-Knopf statt Panel-Autosave pro Feld - gleiches Verhalten, eigenes Idiom). Die bisherige Nur-Lese-Selbstbeteiligung in Vertragsdetails() entfaellt, da sie jetzt (editierbar) in Vertrag() lebt. Schadenfreiheitsklasse wird in companion-app bewusst nicht ergaenzt: das Feld war dort noch nie sichtbar, auch nicht lesend - eine komplette neue UI-Sektion dafuer waere kein "Zeile editierbar machen" mehr, sondern ein neues Feature; als Luecke dokumentiert statt still uebergangen. tsc --noEmit sauber, companion-app-Tests 100/100 (inkl. dem Alle-Seiten-Rendertest, der jetzt auch "vertrag" abdeckt), vite build erfolgreich. Panel live im Docker-Testcontainer geprueft: Zeile hinzufuegen/bearbeiten/loeschen, Daten bleiben nach Re-Render erhalten. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# AGENTS.md — Project state, review findings, open items, and working rules
|
||||
|
||||
**Last updated: 2026-08-18** (merged the `umsetzung-datametric360` branch — companion app phases
|
||||
**Last updated: 2026-08-19** (merged the `umsetzung-datametric360` branch — companion app phases
|
||||
1–10 done, see `UMSETZUNGSPLAN.md`; 2026-08-13: cleaned up remaining EU Data Act residue, fixed
|
||||
oversized toggle switches, and fixed a desktop-layout audit (settings button / rings logo / popups
|
||||
overflowing past the capped content column) — see `DESIGN_AUDIT_2026-08-13.md`; 2026-08-16: fixed
|
||||
@@ -52,7 +52,41 @@ solve them - both answer the same way, and the merged "9,0 tkm/ 04/27" number fi
|
||||
"Anstehende Termine" boxes ("Lost information") - no code from that proposal was built; instead the
|
||||
existing Nächster-Service box on the Übersicht had its "bis zum/zur ..." wording replaced by the
|
||||
real Audi CI oil-change/inspection icons (user-supplied SVGs) placed left of the figure, in both
|
||||
codebases, per the owner's explicit request).
|
||||
codebases, per the owner's explicit request); 2026-08-19: two small wording fixes on the panel's
|
||||
"Mein Audi" Versicherung/Steuer summary tile (`vAudi()`) and its "Kfz-Steuer" detail tile
|
||||
(`vSteuer()`) — "Zusammen" renamed to "Summe" and the "feste Kosten im Jahr" caption under the sum
|
||||
dropped entirely, and the Kfz-Steuer amount's period caption now reads "im Jahr" instead of the raw
|
||||
data value "jährlich" (matching the Versicherung row above it) whenever `steuer.zeitraum ===
|
||||
"jährlich"`; the underlying stored value and the "jährlich"/"halbjährlich" edit-form dropdown
|
||||
(`vSteuerBearbeiten()`) were deliberately left untouched, since this was a display-label fix, not a
|
||||
data-model rename. No companion-app port was needed for the "Zusammen" row: `companion-app`'s "Mein
|
||||
Audi" page (`MeinAudi.tsx`) only links to the Versicherung/Steuer screen via a `NaviKachel`, it never
|
||||
rendered a combined Versicherung+Steuer sum in the first place, so there was nothing to change there
|
||||
(pre-existing structural gap, not part of this fix). Companion's `Steuer()` edit screen has no
|
||||
read-only "im Jahr"/"jährlich" display either — its only "jährlich" is a fallback default string
|
||||
inside an editable-sentence, structurally different from the panel's read-only tiles — so it was left
|
||||
as-is too. Later the same day: the "Vertrag" tile on that same "Mein Audi" Versicherung/Steuer page
|
||||
was previously read-only end-to-end (Gesellschaft, Umfang, Vertragsnummer, Selbstbeteiligung,
|
||||
Schadenfreiheitsklasse) — made every line editable, plus add/delete for the Selbstbeteiligung list
|
||||
specifically (the only true repeating list among those fields). Panel: new `vVertragBearbeiten()`
|
||||
view (route `vertrag`, back to `vers`) reached via a new zahnrad button on the "Vertrag" tile in
|
||||
`vVers()`; Selbstbeteiligung rows get a small inline "×" delete button (new `.zeile-loeschen` CSS,
|
||||
same 44×44pt invisible-`::before` tap-target trick as `.km-edit`) and a "+ Position hinzufügen"
|
||||
`.aktion` button that pushes `["", ""]`; Schadenfreiheitsklasse "zuvor" (`sfAlt`) is edited here too
|
||||
(the *current* SF stays editable only via the pre-existing "Beitrag anpassen" screen, cross-
|
||||
referenced with a hint span, not duplicated). Companion: new `Vertrag()` screen (route `vertrag`,
|
||||
its own NaviKachel on the Versicherung page) follows the codebase's own established edit-screen idiom
|
||||
(local `entwurf` state + explicit "Speichern" button) rather than the panel's per-field autosave —
|
||||
same behavior, different idiom, per the parity rule. Selbstbeteiligung edit/add/delete moved here
|
||||
from the old read-only display inside `Vertragsdetails()`, which is removed (was showing the same
|
||||
list twice would have been confusing). Schadenfreiheitsklasse is *not* added to companion's new
|
||||
screen: companion never displayed `teile[].sf`/`sfAlt` anywhere before this change (not even
|
||||
read-only) — building a whole new UI section for a field the app never surfaced is out of scope for
|
||||
"make the existing lines editable"; documented here as a pre-existing gap, not silently dropped.
|
||||
Verified live in the Docker test container (panel: add/edit/delete a Selbstbeteiligung position,
|
||||
values persisted through profilSpeichern()+re-render) and via `tsc --noEmit` + the companion-app test
|
||||
suite (100/100 incl. the render-every-page smoke test, which now also covers `vertrag`) + `vite
|
||||
build`, since companion-app needs a live backend connection the local dev server doesn't have.
|
||||
This file is the entry point for every new agent
|
||||
session: what this repo is, what is finished, what is missing, and how to work here. Detail lives in
|
||||
the linked documents — this file points, it does not duplicate.
|
||||
@@ -1650,6 +1684,27 @@ wraps the web app for iPhone; a PWA home-screen install is the accepted intermed
|
||||
|
||||
- [ ] **Archive** `audi-dashboard-app.js`, don't delete (settled decision, architecture §1)
|
||||
|
||||
### E) Versicherungs-Details overhaul (planned, not started — noted 2026-08-19)
|
||||
|
||||
The owner wants to revisit "Versicherung/Steuer" more broadly next session, beyond the line-editing
|
||||
work already done (see section C in the changelog above: "Vertrag" tile made fully editable with
|
||||
add/delete for Selbstbeteiligung). Three separate asks, none scoped or started yet:
|
||||
|
||||
- [ ] Store the insurer's own Vertragsdetails PDF against the policy (upload/attach + view later) —
|
||||
needs a decision on storage location (mirrors the existing vehicle-photo/backup file handling
|
||||
under `www/bilder/`? a new profile-attachment concept?) and where it's surfaced (new tile on
|
||||
"Vertragsdetails", or the main "Vertrag" tile)
|
||||
- [ ] A free-text field for the owner's own manual notes/summary on the insurance (not derived from
|
||||
any structured field) — likely a `notiz`-style textarea, panel already has a `.notiz` CSS class
|
||||
pattern used elsewhere (see `feld.notiz` in `audi-dashboard.css`) that could apply here
|
||||
- [ ] Redesign the "Versicherung/Steuer" Übersicht/summary box — **owner explicitly said they don't
|
||||
yet know what they want here**; needs a requirements conversation (what should be surfaced at a
|
||||
glance vs. moved to detail screens) before any mockup, not just a straight implementation
|
||||
|
||||
Not planned/scoped in either codebase yet — start with clarifying questions on the PDF storage model
|
||||
and the summary-box redesign goals before touching code, per this project's mockup-first convention
|
||||
for open-ended redesign asks (see the "Anstehende Termine" 3-round mockup process, section C).
|
||||
|
||||
---
|
||||
|
||||
## Working conventions (observed — keep them)
|
||||
|
||||
Reference in New Issue
Block a user