Fahrt-Formular: Ankunftszeit statt Dauer, Art gross, neutrale Pille
Fuenf gemeldete Punkte plus ein Theme-Bug beim Nachpruefen: - "Dauer" ist kein Eingabefeld mehr - stattdessen Ankunftszeit, die Dauer wird aus Start/Ankunft berechnet und live angezeigt (fahrtZeitraum()/ dauerText()), inklusive Fahrten ueber Mitternacht. - Art-Werte werden grossgeschrieben angezeigt (Privat/Arbeitsweg), der gespeicherte Wert bleibt klein (artText()-Helfer). - Arbeitsweg-Pille ist nicht mehr rot - sieht jetzt aus wie Privat. - "tippen zum Umschalten" unter der Pille entfernt. - Bild-Platzhalter (Einstellungen) war im Tag-Theme unsichtbar: --tile wird dort vom iOS-Overlay auf reines Weiss gesetzt, identisch mit Canvas/ Kacheln. Auf --ios-fill umgestellt, in beiden Themes sichtbar grau. Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
@@ -38,7 +38,11 @@ route — see section C; a twelfth round the same day removed `HECKKLAPPENSCHLOS
|
||||
half-cut-off image placeholder, gave the Inspektion its own "voraussichtlich am …" forecast, made
|
||||
trips fully editable (new `audi_dashboard_fahrt_aktualisieren`, "Neue Fahrt" now offers every field
|
||||
the detail page shows), aligned the page title with the tiles on phone width, and closed two
|
||||
dead-ends in the bootstrap retry loop behind the reported hanging "Lädt …" screen).
|
||||
dead-ends in the bootstrap retry loop behind the reported hanging "Lädt …" screen; a thirteenth
|
||||
round the same day replaced the trip form's editable "Dauer" with Start-/Ankunftszeit (duration is
|
||||
now computed, not entered), capitalized the Art labels shown to the user, dropped the red styling
|
||||
and hint text from the Arbeitsweg pill, and fixed a daylight-mode-only regression from round twelve
|
||||
where the image placeholder's grey background had turned invisible-white).
|
||||
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.
|
||||
@@ -1278,6 +1282,46 @@ wraps the web app for iPhone; a PWA home-screen install is the accepted intermed
|
||||
war jedes Mal binnen ~2s da) - die Sackgassen sind im Code belegt, dass sie *die* Ursache
|
||||
beim Nutzer waren, ist damit aber nicht bewiesen. Tritt es erneut auf: Browser-Konsole
|
||||
erfragen, bevor weiter geraten wird.
|
||||
- [x] Thirteenth round (2026-08-17, same day) — five more user-reported items on the trip form and
|
||||
one theme bug found while verifying it:
|
||||
(1) **"Dauer" replaced by "Ankunftszeit"; duration is no longer editable.** `fahrtFelder()`
|
||||
now has Startzeit + Ankunftszeit inputs and a plain (non-input) duration display next to
|
||||
them, computed by `fahrtZeitraum()`/`dauerText()` and kept live via a new
|
||||
`data-fahrtzeitfeld` input handler (same "patch the one node, don't call render()" pattern
|
||||
the existing `data-tankpreisfeld` handler uses, for the same reason: a full re-render would
|
||||
steal focus from the field being typed in). An arrival time not later than the start time is
|
||||
treated as crossing midnight (`+1 Tag`), matching how `_fahrt_beenden()` already handles a
|
||||
real overnight trip. `fahrtFormularWerte()` derives `ts_start`/`ts_end` from the same
|
||||
calculation - the backend never sees a separate duration field, so it can't disagree with
|
||||
the times. Verified live: 09:00→10:45 shows "1 Std. 45 Min.", 23:30→00:15 shows "45 Min."
|
||||
(crossed midnight correctly), and editing an existing trip's arrival time on the Einzelfahrt
|
||||
page persisted the recalculated `duration_s` (7200s for a 10:00→12:00 edit, checked in
|
||||
`fahrten.jsonl`).
|
||||
(2) **Art values now display capitalized** ("Privat"/"Arbeitsweg") wherever shown to the user
|
||||
- the trip-edit `<select>`, the trip-list row, and the Einzelfahrt pill - via a new
|
||||
`artText()` helper; the stored value stays lowercase (`"privat"`/`"arbeitsweg"`), since it's
|
||||
compared in several places (the pill, the "Arbeitsweg" statistic, the CSV export) and already
|
||||
exists that way in every trip recorded so far. The CSV export itself was deliberately left
|
||||
showing the raw value - a data file, not UI copy.
|
||||
(3) **Arbeitsweg pill no longer red.** `.pill.work` (`color:var(--red)` / a translucent red
|
||||
fill in the iOS overlay) is gone from both stylesheets along with the now-unused `work` class
|
||||
on the button; the pill uses the same neutral styling regardless of Art, matching the request
|
||||
that Arbeitsweg should look like Privat, not draw attention to itself.
|
||||
(4) **"tippen zum Umschalten" hint removed** from under the Einzelfahrt pill, per explicit
|
||||
request - the pill is still clickable, just without the caption.
|
||||
(5) **Found while re-verifying the placeholder fix from round twelve: it broke daylight mode.**
|
||||
`.bildbox.bild-fehlt .platzhalter{background:var(--tile)}` (added round twelve) reads fine in
|
||||
Nacht theme, where `--tile` is a faint white overlay on a near-black canvas - but the iOS
|
||||
overlay's Tag-theme block redefines `--tile:#FFFFFF`, identical to the canvas/most tiles
|
||||
around it, so the placeholder box became invisible in daylight mode (measured live:
|
||||
`background-color: rgb(255,255,255)` on both the placeholder and its surroundings). Switched
|
||||
to `--ios-fill` (`rgba(120,120,128,.16)` in Tag theme, `.24` in Nacht) - the same token
|
||||
`.feld select`/`.aktion` already use to mark "this is a surface", visibly grey in both themes.
|
||||
Verified live in Tag theme: `background-color: rgba(120,120,128,.16)`, clearly a distinct box
|
||||
against the white canvas (see screenshot taken during verification).
|
||||
All five deployed to `audi_ha_test` (version `1787009000`) and synced to `installationspaket/`;
|
||||
console showed only the pre-existing service-worker/404 noise from the missing vehicle photos,
|
||||
nothing new.
|
||||
- [ ] 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