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,74 @@
|
||||
"use client";
|
||||
/*
|
||||
* Documentation:
|
||||
* Dialog Fullscreen — https://app.subframe.com/f023064a5ca0/library?component=Dialog+Fullscreen_3f094173-71de-4378-a09a-05c482f7a137
|
||||
* Icon Button — https://app.subframe.com/f023064a5ca0/library?component=Icon+Button_af9405b1-8c54-4e01-9786-5aad308224f6
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import { FeatherX } from "@subframe/core";
|
||||
import * as SubframeCore from "@subframe/core";
|
||||
import * as SubframeUtils from "../../utils";
|
||||
import { IconButton } from "../IconButton";
|
||||
|
||||
export interface DialogFullscreenRootProps
|
||||
extends React.ComponentProps<typeof SubframeCore.FullScreenDialog.Root> {
|
||||
children?: React.ReactNode;
|
||||
padding?: "default" | "spacious";
|
||||
hideCloseIcon?: boolean;
|
||||
open?: boolean;
|
||||
onOpenChange?: (open: boolean) => void;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const DialogFullscreenRoot = React.forwardRef<
|
||||
HTMLDivElement,
|
||||
DialogFullscreenRootProps
|
||||
>(function DialogFullscreenRoot(
|
||||
{
|
||||
children,
|
||||
padding = "default",
|
||||
hideCloseIcon = false,
|
||||
className,
|
||||
...otherProps
|
||||
}: DialogFullscreenRootProps,
|
||||
ref
|
||||
) {
|
||||
return (
|
||||
<SubframeCore.FullScreenDialog.Root asChild={true} {...otherProps}>
|
||||
<div
|
||||
className={SubframeUtils.twClassNames(
|
||||
"group/3f094173 flex h-full w-full flex-col items-center justify-center bg-surface-neutral-overlay px-6 py-6 mobile:px-4 mobile:py-4",
|
||||
className
|
||||
)}
|
||||
ref={ref}
|
||||
>
|
||||
<div
|
||||
className={SubframeUtils.twClassNames(
|
||||
"flex w-full grow shrink-0 basis-0 flex-col items-start overflow-hidden rounded-lg border border-solid border-border-default bg-surface-neutral-secondary shadow-lg group/dialogfs max-w-[2512px] relative",
|
||||
{ "hide-close-icon": hideCloseIcon }
|
||||
)}
|
||||
>
|
||||
{children ? (
|
||||
<div
|
||||
className={SubframeUtils.twClassNames(
|
||||
"flex w-full grow shrink-0 basis-0 flex-col items-start gap-4 px-4 py-4 overflow-auto",
|
||||
{ "px-8 py-8": padding === "spacious" }
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
) : null}
|
||||
<IconButton
|
||||
className="group-[.hide-close-icon]/dialogfs:hidden absolute right-4 top-4"
|
||||
variant="ghost"
|
||||
size="small"
|
||||
icon={<FeatherX />}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</SubframeCore.FullScreenDialog.Root>
|
||||
);
|
||||
});
|
||||
|
||||
export const DialogFullscreen = DialogFullscreenRoot;
|
||||
@@ -0,0 +1,10 @@
|
||||
"use client";
|
||||
import { DialogFullscreen as DialogFullscreenComponent } from "./DialogFullscreen";
|
||||
|
||||
/**
|
||||
* Add wrapper components and business logic here.
|
||||
* If you modify this file, disable Subframe sync for it to prevent overwrites.
|
||||
* Learn more: https://docs.subframe.com/concepts/syncing-components#wrapping-components
|
||||
*/
|
||||
|
||||
export const DialogFullscreen = DialogFullscreenComponent;
|
||||
Reference in new issue
Block a user