veza/apps/web/src/components/admin/AdminAuditLogsView.stories.tsx

68 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-02-03 08:56:11 +00:00
import type { Meta, StoryObj } from '@storybook/react';
import { AdminAuditLogsView } from './AdminAuditLogsView';
/**
* AdminAuditLogsView - Logs d'audit
*
* Table paginée des logs d'audit avec recherche,
* filtrage et détails contextuels.
*/
const meta: Meta<typeof AdminAuditLogsView> = {
title: 'Components/Features/Admin/AdminAuditLogsView',
2026-02-03 08:56:11 +00:00
component: AdminAuditLogsView,
parameters: {
layout: 'fullscreen',
docs: {
description: {
component: 'Journal d\'audit immutable avec recherche et pagination.',
},
},
},
tags: ['autodocs'],
decorators: [
(Story) => (
<div className="bg-kodo-background min-h-screen p-4">
<Story />
</div>
),
],
};
export default meta;
type Story = StoryObj<typeof meta>;
/**
* État par défaut avec logs chargés.
*/
export const Default: Story = {
name: 'Par défaut',
};
/**
* État avec filtres appliqués.
*/
export const Filtered: Story = {
name: 'Filtré',
parameters: {
docs: {
description: {
story: 'Logs filtrés par action ou ressource.',
},
},
},
};
/**
* État vide - aucun log trouvé.
*/
export const Empty: Story = {
name: 'Aucun log',
parameters: {
docs: {
description: {
story: 'Message affiché quand aucun log ne correspond aux critères.',
},
},
},
};