e1d570992e
Drei zusammengehörige Teile in einem Repository: - homeassistant/ Das fertige, im Einsatz befindliche Home-Assistant-Panel (panel_custom Custom Element + pyscript-Backend). Echte Fahrzeug- und Personendaten (fahrzeugprofil.json, fahrten.jsonl, tankvorgaenge.jsonl, Tankbelege) bleiben per .gitignore außen vor; die anonymisierte Vorlage fahrzeugprofil.example.json ist mit dabei. - design-system/ Eigenständige React-Komponentenbibliothek (@audi-dash/ui), die die visuelle Sprache des Panels nachbildet - ohne Audi-Markenzeichen und ohne die lizenzierte Hausschrift. Dient als Grundlage für Claude Design. War bis hierher ein eigenes Repository und ist in dieses eingeschmolzen worden. - companion-app/ Datenschicht der neuen App DataMetric360 (iOS/Android via Capacitor, zusätzlich als Iframe im HA-Dashboard). Noch ohne Oberfläche: REST- und WebSocket-Zugriff auf Home Assistant plus Warteschlange für Änderungen ohne Netz. Ersetzt das eingespritzte hass-Objekt, das nur innerhalb des HA-Frontends existiert. Dazu die Projektdokumentation: SPECIFICATION.md (Ist-Stand des Panels), COMPANION_APP_ARCHITECTURE.md (Architekturentscheidungen der neuen App), AUDIT_2026-08-10.md, DESIGN_BRIEF_DATAMETRIC360.md und der ursprüngliche Bauauftrag. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
44 lines
969 B
TypeScript
44 lines
969 B
TypeScript
import * as React from "react";
|
|
import { Seg } from "@audi-dash/ui";
|
|
|
|
function Root({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<div className="ads-root" data-theme="nacht" style={{ padding: 16, display: "inline-block" }}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export function TwoOptions() {
|
|
const [value, setValue] = React.useState<"nacht" | "tag">("nacht");
|
|
return (
|
|
<Root>
|
|
<Seg
|
|
options={[
|
|
{ value: "nacht", label: "Nacht" },
|
|
{ value: "tag", label: "Tag" },
|
|
]}
|
|
value={value}
|
|
onChange={setValue}
|
|
/>
|
|
</Root>
|
|
);
|
|
}
|
|
|
|
export function ThreeOptions() {
|
|
const [value, setValue] = React.useState("woche");
|
|
return (
|
|
<Root>
|
|
<Seg
|
|
options={[
|
|
{ value: "tag", label: "Tag" },
|
|
{ value: "woche", label: "Woche" },
|
|
{ value: "monat", label: "Monat" },
|
|
]}
|
|
value={value}
|
|
onChange={setValue}
|
|
/>
|
|
</Root>
|
|
);
|
|
}
|