Files
dejanandClaude Opus 5 b8bf987d0e 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
2026-08-29 17:25:20 +02:00

87 lines
2.2 KiB
TypeScript

"use client";
/*
* Documentation:
* Breadcrumbs — https://app.subframe.com/f023064a5ca0/library?component=Breadcrumbs_8898334b-a66f-4ee8-8bd1-afcfa8e37cc0
*/
import React from "react";
import { FeatherChevronRight } from "@subframe/core";
import * as SubframeUtils from "../../utils";
export interface ItemProps extends React.HTMLAttributes<HTMLSpanElement> {
children?: React.ReactNode;
active?: boolean;
className?: string;
}
const Item = React.forwardRef<HTMLSpanElement, ItemProps>(function Item(
{ children, active = false, className, ...otherProps }: ItemProps,
ref
) {
return children ? (
<span
className={SubframeUtils.twClassNames(
"group/bbdc1640 line-clamp-1 cursor-pointer break-words text-body-small-regular-0 font-body-small-regular-0 text-text-neutral-tertiary hover:text-text-neutral-primary",
{ "text-text-neutral-primary": active },
className
)}
ref={ref}
{...otherProps}
>
{children}
</span>
) : null;
});
export interface DividerProps
extends React.ComponentProps<typeof FeatherChevronRight> {
className?: string;
}
const Divider = React.forwardRef<
React.ElementRef<typeof FeatherChevronRight>,
DividerProps
>(function Divider({ className, ...otherProps }: DividerProps, ref) {
return (
<FeatherChevronRight
className={SubframeUtils.twClassNames(
"text-body-small-regular-0 font-body-small-regular-0 text-icon-neutral-tertiary",
className
)}
ref={ref}
{...otherProps}
/>
);
});
export interface BreadcrumbsRootProps
extends React.HTMLAttributes<HTMLDivElement> {
children?: React.ReactNode;
className?: string;
}
const BreadcrumbsRoot = React.forwardRef<HTMLDivElement, BreadcrumbsRootProps>(
function BreadcrumbsRoot(
{ children, className, ...otherProps }: BreadcrumbsRootProps,
ref
) {
return children ? (
<div
className={SubframeUtils.twClassNames(
"flex items-center gap-2",
className
)}
ref={ref}
{...otherProps}
>
{children}
</div>
) : null;
}
);
export const Breadcrumbs = Object.assign(BreadcrumbsRoot, {
Item,
Divider,
});