refactor(ui): organize component source tree

This commit is contained in:
vince 2026-06-20 06:43:09 +02:00
parent 8927f2ab8a
commit 32ad2cebe4
66 changed files with 194 additions and 124 deletions

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Badge } from "../components/Badge";
import { Badge } from "../index";
const meta = {
title: "UI/Badge",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Button } from "../components/Button";
import { Button } from "../index";
const meta = {
title: "UI/Button",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { CornerBracketFrame } from "../components/CornerBracketFrame";
import { CornerBracketFrame } from "../index";
const meta = {
title: "UI/CornerBracketFrame",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { DashboardFrame } from "../components/DashboardFrame";
import { DashboardFrame } from "../index";
import { fullCompositionDashboard, secondaryDashboard } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { DashboardHeader } from "../components/DashboardHeader";
import { DashboardHeader } from "../index";
import { moduleBlocks } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { DashboardFrame } from "../components/DashboardFrame";
import { DashboardFrame } from "../index";
import { fullCompositionDashboard } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { DiagonalStripeField } from "../components/DiagonalStripeField";
import { DiagonalStripeField } from "../index";
const meta = {
title: "UI/DiagonalStripeField",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { FooterCell } from "../components/FooterCell";
import { FooterCell } from "../index";
import { statusItems } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { FooterStatusCell } from "../components/FooterStatusCell";
import { FooterStatusCell } from "../index";
import { statusItems } from "./story-data";
const meta = {

View file

@ -1,6 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { GridFrame } from "../components/GridFrame";
import { ModuleCard } from "../components/ModuleCard";
import { GridFrame, ModuleCard } from "../index";
import { moduleBlocks } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { IconButton } from "../components/IconButton";
import { IconButton } from "../index";
const meta = {
title: "UI/IconButton",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { IconGlyph } from "../components/IconGlyph";
import { IconGlyph } from "../index";
const meta = {
title: "UI/IconGlyph",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { LineChart } from "../components/LineChart";
import { LineChart } from "../index";
const meta = {
title: "UI/LineChart",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { ModuleCard } from "../components/ModuleCard";
import { ModuleCard } from "../index";
import { moduleBlocks } from "./story-data";
const meta = {

View file

@ -1,6 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Panel } from "../components/Panel";
import { ServiceRow } from "../components/ServiceRow";
import { Panel, ServiceRow } from "../index";
import { serviceRows } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { ProgressMeter } from "../components/ProgressMeter";
import { ProgressMeter } from "../index";
const meta = {
title: "UI/ProgressMeter",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { ScanlineField } from "../components/ScanlineField";
import { ScanlineField } from "../index";
const meta = {
title: "UI/ScanlineField",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Separator } from "../components/Separator";
import { Separator } from "../index";
const meta = {
title: "UI/Separator",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { ServiceGroupPanel } from "../components/ServiceGroupPanel";
import { ServiceGroupPanel } from "../index";
import { serviceGroups } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { ServicePanel } from "../components/ServicePanel";
import { ServicePanel } from "../index";
import { serviceGroups } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { ServiceRow } from "../components/ServiceRow";
import { ServiceRow } from "../index";
import { serviceRows } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { SignalTrace } from "../components/SignalTrace";
import { SignalTrace } from "../index";
const meta = {
title: "UI/SignalTrace",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Sparkline } from "../components/Sparkline";
import { Sparkline } from "../index";
const meta = {
title: "UI/Sparkline",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { StatusBadge } from "../components/StatusBadge";
import { StatusBadge } from "../index";
const meta = {
title: "UI/StatusBadge",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { StatusStrip } from "../components/StatusStrip";
import { StatusStrip } from "../index";
import { mixedStatusStrip } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { SystemState } from "../components/SystemState";
import { SystemState } from "../index";
const meta = {
title: "UI/SystemState",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { TelemetryCard } from "../components/TelemetryCard";
import { TelemetryCard } from "../index";
import { telemetryCards } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { TelemetryGrid } from "../components/TelemetryGrid";
import { TelemetryGrid } from "../index";
import { eightTelemetryCards, sixteenTelemetryCards } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { TelemetryStrip } from "../components/TelemetryStrip";
import { TelemetryStrip } from "../index";
import { eightTelemetryCards } from "./story-data";
const meta = {

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { ThemeToggle } from "../components/ThemeToggle";
import { ThemeToggle } from "../index";
const meta = {
title: "UI/ThemeToggle",

View file

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { WeatherModule } from "../components/WeatherModule";
import { WeatherModule } from "../index";
import { moduleBlocks } from "./story-data";
const meta = {