import { jsx as _jsx } from "react/jsx-runtime";
import { ApplicationCard } from './application-card.js';
import { ApplicationStatus } from '../../../../../../packages/core/src/domain/generated/output.js';
const baseApp = {
    id: '550e8400-e29b-41d4-a716-446655440000',
    name: 'My Weather App',
    slug: 'my-weather-app',
    description: 'A weather dashboard that shows real-time forecasts with interactive maps',
    repositoryPath: '/home/user/projects/weather-app',
    additionalPaths: [],
    status: ApplicationStatus.Idle,
    setupComplete: true,
    bedrockEnabled: false,
    effectiveStatus: 'ready',
    createdAt: new Date().toISOString(),
    updatedAt: new Date().toISOString(),
};
const meta = {
    title: 'Features/ApplicationCard',
    component: ApplicationCard,
    parameters: {
        layout: 'padded',
        backgrounds: { default: 'canvas' },
    },
    decorators: [
        (Story) => (_jsx("div", { style: { maxWidth: 360 }, children: _jsx(Story, {}) })),
    ],
    tags: ['autodocs'],
};
export default meta;
export const Idle = {
    args: { application: baseApp },
};
export const Active = {
    args: {
        application: { ...baseApp, status: ApplicationStatus.Active, name: 'Running App' },
    },
};
export const ErrorState = {
    args: {
        application: { ...baseApp, status: ApplicationStatus.Error, name: 'Broken App' },
    },
};
export const LongDescription = {
    args: {
        application: {
            ...baseApp,
            name: 'Enterprise Resource Planning Dashboard',
            description: 'A comprehensive enterprise resource planning system with inventory management, order tracking, customer relationship management, and financial reporting modules.',
        },
    },
};
export const MultipleRepos = {
    args: {
        application: {
            ...baseApp,
            additionalPaths: ['/home/user/projects/shared-lib', '/home/user/projects/api'],
        },
    },
};
export const Interrupted = {
    args: {
        application: { ...baseApp, effectiveStatus: 'interrupted', name: 'Interrupted App' },
    },
};
export const Failed = {
    args: {
        application: { ...baseApp, effectiveStatus: 'failed', name: 'Failed App' },
    },
};
