Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

1.2 KB
Raw Blame
import type { Meta, StoryObj } from "@storybook/react-vite";
import type { PipelineView } from "@processor/api/pipelines";
import { PipelinesTable } from "@processor/components/pipelines/PipelinesTable";

const PIPELINES: PipelineView[] = [
  {
    id: "pipe-intake",
    name: "Claims intake",
    enabled: true,
    required: false,
    icon: "shield",
    status: "active",
    trigger: "folder-watch",
    sources: [{ id: "src-claims", name: "Claims intake" }],
    steps: ["redact", "sanitize", "watermark"],
    output: "folder",
    owner: "[email protected]",
  },
  {
    id: "pipe-archive",
    name: "Archive reprocess",
    enabled: false,
    required: true,
    icon: "shrink",
    status: "paused",
    trigger: "manual",
    sources: [],
    steps: [],
    output: "inline",
    owner: "[email protected]",
  },
];

const meta: Meta<typeof PipelinesTable> = {
  title: "Portal/Pipelines/PipelinesTable",
  component: PipelinesTable,
  parameters: { layout: "padded" },
  args: { pipelines: PIPELINES, onRowClick: () => {} },
};
export default meta;
type Story = StoryObj<typeof PipelinesTable>;

export const Default: Story = {};

export const Empty: Story = {
  args: { pipelines: [] },
};