Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

875 B
Raw Blame
import type { Meta, StoryObj } from '@storybook/react-vite';
import { ErrorState } from '@/components/ui/ErrorState';

const meta: Meta<typeof ErrorState> = {
  title: 'Primitives/ErrorState',
  component: ErrorState,
  args: {
    title: 'Failed to load playbook runs',
    description: 'The runs service returned an error. The substrate path is still healthy.',
  },
};

export default meta;

type Story = StoryObj<typeof ErrorState>;

export const Basic: Story = {};

export const WithRetry: Story = {
  args: {
    onRetry: () => undefined,
    error: new Error('HTTP 503: runs-service circuit breaker open'),
  },
};

export const WithRawError: Story = {
  args: {
    title: 'Drafter call failed',
    description: 'The NL drafter returned a non-JSON payload. We fell back to the substrate.',
    error: 'SyntaxError: Unexpected token < in JSON at position 0',
  },
};