import { jsx as _jsx } from "react/jsx-runtime";
import { ContributorOnboardingView } from './ContributorOnboardingView.js';
import { ContributorLane, ContributorLevel, DiagnosticStatus, } from '../../../../../packages/core/src/domain/generated/output.js';
const meta = {
    title: 'Contributors/ContributorOnboardingView',
    component: ContributorOnboardingView,
    parameters: { layout: 'padded' },
    decorators: [
        (Story) => (_jsx("div", { className: "mx-auto max-w-3xl", children: _jsx(Story, {}) })),
    ],
};
export default meta;
export const Default = {
    args: {
        initialLeaderboard: {
            scope: 'month',
            entries: [
                {
                    login: 'octocat',
                    displayName: 'The Octocat',
                    prCount: 42,
                    level: ContributorLevel.Maintainer,
                    lane: ContributorLane.Agents,
                },
                {
                    login: 'mona',
                    prCount: 12,
                    level: ContributorLevel.Contributor,
                    lane: ContributorLane.Cli,
                },
            ],
        },
        initialDoctorReport: {
            overallStatus: DiagnosticStatus.Ok,
            summary: { ok: 3, warn: 0, fail: 0 },
            results: [
                { name: 'node-version', status: DiagnosticStatus.Ok, detail: 'v22.10.0' },
                { name: 'pnpm-installed', status: DiagnosticStatus.Ok, detail: '9.12.0' },
                { name: 'gh-cli-auth', status: DiagnosticStatus.Ok, detail: 'authenticated as octocat' },
            ],
        },
    },
};
export const EmptyLeaderboard = {
    args: {
        initialLeaderboard: { scope: 'month', entries: [] },
    },
};
export const DoctorUnavailable = {
    args: {
        initialLeaderboard: {
            scope: 'allTime',
            entries: [{ login: 'mona', prCount: 1, level: ContributorLevel.User }],
        },
        doctorError: 'DI container not available in this surface',
    },
};
