feat(dashboard): Analytics-Dashboard als Gestaltungsvorlage zur Übergabe
UI/UX-Prototyp der Analytics-Dashboards in HiveGrid, fachlich auf einen SHK-/Handwerksbetrieb zugeschnitten. Ziel ist die Übergabe an die Entwicklung, nicht der Produktivbetrieb. Inhalt: sechs Seiten (Übersicht, Finanzen, Aufträge, Kunden, Team, Komponenten), 26 KPIs, neun Chart-Bausteine, Filtersystem mit seitenabhängiger Relevanz und ein deterministischer Demo-Datensatz (420 Kunden, 1.900 Aufträge, Stichtag 30.07.2026). Drei Quellen sind zusammengeführt: die fachliche Planung mit dem Branchenpartner (Januar 2026), die Subframe-Komponentenbibliothek aus dem HiveGrid-Pitch und IBM Carbon Data Visualization für die Diagrammregeln. Herkunft und bewusste Abweichungen stehen in docs/HERKUNFT.md. Dokumentation: README, HANDOVER (was echte Logik braucht), docs/DESIGN-SYSTEM, KPI-KATALOG, DATENMODELL, NAVIGATION, HERKUNFT, ZIELSYSTEM (Einbauort in HiveGrid Cloud) und LEITPLANKEN (welche Cloud-Screens als Vorbild taugen). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QPeZNwSeU7qG3RRCwaxEZX
This commit is contained in:
commit
b8bf987d0e
250 files changed
+33153
No files matched your search
@@ -0,0 +1,65 @@
|
||||
"use client";
|
||||
/*
|
||||
* Documentation:
|
||||
* Card — https://app.subframe.com/f023064a5ca0/library?component=Card_56067c50-02ce-4c7c-8866-9db30e23ecc0
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import * as SubframeUtils from "../../utils";
|
||||
|
||||
export interface CardRootProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||
children?: React.ReactNode;
|
||||
size?: "extra-small" | "small" | "medium" | "large" | "extra-large";
|
||||
variant?:
|
||||
| "default"
|
||||
| "neutral"
|
||||
| "information"
|
||||
| "positive"
|
||||
| "warning"
|
||||
| "negative";
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const CardRoot = React.forwardRef<HTMLDivElement, CardRootProps>(
|
||||
function CardRoot(
|
||||
{
|
||||
children,
|
||||
size = "medium",
|
||||
variant = "default",
|
||||
className,
|
||||
...otherProps
|
||||
}: CardRootProps,
|
||||
ref
|
||||
) {
|
||||
return children ? (
|
||||
<div
|
||||
className={SubframeUtils.twClassNames(
|
||||
"group/56067c50 flex min-w-[384px] max-w-[448px] flex-col items-start gap-4 rounded-md border border-solid border-border-default bg-surface-neutral-secondary px-4 py-4 shadow-sm",
|
||||
{
|
||||
"border border-solid border-border-negative-subtle bg-surface-feedback-subtle-negative":
|
||||
variant === "negative",
|
||||
"border border-solid border-border-warning-subtle bg-surface-feedback-subtle-warning":
|
||||
variant === "warning",
|
||||
"border border-solid border-border-positive-subtle bg-surface-feedback-subtle-positive":
|
||||
variant === "positive",
|
||||
"border border-solid border-border-information-subtle bg-surface-feedback-subtle-information":
|
||||
variant === "information",
|
||||
"border border-solid border-surface-feedback-subtle-neutral bg-surface-feedback-subtle-neutral":
|
||||
variant === "neutral",
|
||||
"px-8 py-8": size === "extra-large",
|
||||
"px-6 py-6": size === "large",
|
||||
"px-2 py-2": size === "small",
|
||||
"px-1 py-1": size === "extra-small",
|
||||
},
|
||||
className
|
||||
)}
|
||||
ref={ref}
|
||||
{...otherProps}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
) : null;
|
||||
}
|
||||
);
|
||||
|
||||
export const Card = CardRoot;
|
||||
Reference in new issue
Block a user