import { jsx as _jsx } from "react/jsx-runtime";
import { WorkItemRow } from './work-item-row.js';
import { StateGroup, Priority } from '../../../../../../packages/core/src/domain/generated/output.js';
const mockState = {
    id: 's1',
    projectId: 'proj-1',
    name: 'In Progress',
    color: '#f59e0b',
    stateGroup: StateGroup.Started,
    displayOrder: 2,
    isDefault: false,
    createdAt: new Date(),
    updatedAt: new Date(),
};
const mockWorkItem = {
    id: 'wi-1',
    projectId: 'proj-1',
    sequenceId: 42,
    identifierPrefix: 'FE',
    title: 'Implement the project management list view',
    stateId: 's1',
    priority: Priority.High,
    sortOrder: 0,
    createdAt: new Date(),
    updatedAt: new Date(),
};
const meta = {
    title: 'Features/WorkItemRow',
    component: WorkItemRow,
    parameters: {
        layout: 'padded',
    },
    tags: ['autodocs'],
    decorators: [
        (Story) => (_jsx("div", { className: "rounded-lg border", children: _jsx(Story, {}) })),
    ],
};
export default meta;
export const Default = {
    args: {
        workItem: mockWorkItem,
        state: mockState,
        projectPrefix: 'FE',
    },
};
export const UrgentPriority = {
    args: {
        workItem: { ...mockWorkItem, priority: Priority.Urgent },
        state: mockState,
        projectPrefix: 'FE',
    },
};
export const NoPriority = {
    args: {
        workItem: { ...mockWorkItem, priority: Priority.None },
        state: mockState,
        projectPrefix: 'FE',
    },
};
export const LongTitle = {
    args: {
        workItem: {
            ...mockWorkItem,
            title: 'This is a very long work item title that should be truncated when it exceeds the available space in the row',
        },
        state: mockState,
        projectPrefix: 'FE',
    },
};
export const NoState = {
    args: {
        workItem: mockWorkItem,
        state: undefined,
        projectPrefix: 'FE',
    },
};
