Phase 7a: Uebersicht, Fahrzeugstatus und Mein Audi

Erste drei Screens auf der fertigen Datenschicht. Uebersicht mit Fahrzeugbild,
Sicherungsstatus, Reichweite und Tankfuellstand, Kilometerstand samt
Service-Faelligkeit und Vorschau auf letzte Fahrt und Tankung. Fahrzeugstatus
zeigt die 16 Einzelpruefungen, wobei ein unbekannter Sensor als hohler Ring
erscheint statt als gruen geratener Punkt - dieselbe Vorsicht, die schon das
Backend walten laesst. Mein Audi buendelt Fotogalerie und Wege zu den
Unterseiten.

Dazu die geteilte Rechenlogik der Statistik portiert (Zeitraeume,
Langzeitverbrauch mit Plausibilitaetsfenster, Gruppierung nach Jahr und
Monat) und Formatierung im deutschen Format.

Bild-Komponente kapselt eine Reibung zwischen App und Bibliothek: die App
laeuft mit exactOptionalPropertyTypes, ein undefined an einem optionalen Prop
waere sonst an jeder Aufrufstelle einzeln zu behandeln.
This commit is contained in:
Paul Nothaft
2026-08-11 11:07:03 +02:00
parent 0103508cea
commit 4dbf3cb173
12 changed files with 1003 additions and 4 deletions
+187
View File
@@ -165,3 +165,190 @@
font-size: 13.5px;
font-weight: 300;
}
/* ------------------------------------------------------------ Übersicht */
.dm-szene {
position: relative;
border-radius: var(--r-tile);
overflow: hidden;
background: var(--tile);
}
.dm-szene .ads-bild,
.dm-szene img {
width: 100%;
display: block;
}
.dm-szene__text {
padding: var(--sp-4) var(--sp-4) var(--sp-5);
}
.dm-tanktext {
display: flex;
justify-content: space-between;
gap: var(--sp-3);
margin-top: var(--sp-2);
font-size: 12.5px;
font-weight: 300;
color: var(--fg2);
}
.dm-navikachel__wert {
margin-top: var(--sp-1);
font-size: 15px;
font-weight: 300;
color: var(--fg);
}
.dm-navikachel__zahl {
font-size: 20px;
font-weight: 300;
}
.dm-navikachel__wert small,
.dm-wertzeile small {
display: block;
margin-top: 2px;
font-size: 11.5px;
color: var(--fg3);
}
.dm-aktionen {
display: flex;
justify-content: center;
padding: var(--sp-2) 0 var(--sp-4);
}
.dm-textknopf {
border: 0;
background: transparent;
color: var(--fg2);
font-size: 13px;
font-weight: 300;
padding: 10px 14px;
border-radius: var(--r-pill);
cursor: pointer;
}
.dm-textknopf:hover:not(:disabled) {
background: var(--shade);
color: var(--fg);
}
.dm-textknopf:disabled {
opacity: 0.5;
cursor: default;
}
/* --------------------------------------------------------- Werteliste */
.dm-werteliste {
margin: var(--sp-3) 0 0;
}
.dm-wertzeile {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--sp-4);
padding: 10px 0;
border-bottom: 1px solid var(--line);
}
.dm-wertzeile:last-child {
border-bottom: 0;
}
.dm-wertzeile dt {
font-size: 13px;
font-weight: 300;
color: var(--fg2);
}
.dm-wertzeile dd {
margin: 0;
font-size: 14px;
font-weight: 300;
text-align: right;
}
.dm-abschnitt {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--sp-3);
padding: var(--sp-3) 2px 0;
}
.dm-fussnote {
margin: var(--sp-3) 0 0;
font-size: 11.5px;
font-weight: 300;
line-height: 1.5;
color: var(--fg3);
text-wrap: pretty;
}
/* ------------------------------------------------------ Fahrzeugstatus */
.dm-pruefliste {
list-style: none;
margin: var(--sp-3) 0 0;
padding: 0;
}
.dm-pruefliste__zeile {
display: flex;
align-items: center;
gap: var(--sp-3);
padding: 10px 0;
border-bottom: 1px solid var(--line);
}
.dm-pruefliste__zeile:last-child {
border-bottom: 0;
}
.dm-pruefliste__label {
flex: 1;
font-size: 14px;
font-weight: 300;
}
.dm-pruefliste__wert {
font-size: 12.5px;
font-weight: 300;
color: var(--fg2);
}
.dm-punkt {
flex: none;
width: 9px;
height: 9px;
border-radius: 50%;
}
.dm-punkt--ok {
background: var(--ok);
}
.dm-punkt--offen {
background: var(--bad);
}
/* Unbekannt bewusst als hohler Ring: sichtbar anders als grün und als rot,
damit "keine Meldung" nie wie eine Aussage aussieht. */
.dm-punkt--unbekannt {
border: 1.5px solid var(--fg3);
}
/* ------------------------------------------------------------ Galerie */
.dm-galerie {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
gap: var(--sp-2);
margin-top: var(--sp-3);
}