133feff75d
6 chantiers v1 sur 7 livrés (DataTable refonte reportée car nécessite 2-3j en propre — TanStack Table + virtualisation + filter builder). v1-A — Tests (4 → 22 fichiers) : - Avatar, AvatarGroup, UserCard, MetricCard, ProfileHeader, Tooltip, Sheet, Drawer, Slider, ToggleGroup, Tabs, Pagination, Accordion, Switch, Badge, ConfirmDialog, Popover, Menu, Text, PricingCard, FeatureCard, Toast — chacun avec render + clavier + axe-core. v1-B — Storybook (7 → 23 fichiers) : - Avatar, UserCard, ProfileHeader, MetricCard, PricingCard, FeatureCard, Sheet (4 sides), HoverCard, Slider, ToggleGroup, Menu+ContextMenu, Toast (avec démo "Empiler 5"), Tabs, Pagination, Accordion, Badge. v1-D — Visual regression Playwright : - playwright.config.ts (light + dark, threshold strict 0.2) - e2e/visual.spec.ts (20 stories critiques) - Step CI + upload report en cas de fail v1-E — Site doc Starlight rempli : - 11 pages composants détaillées (Button, Input, Tooltip, Dialog, Toast, Avatar, ThemePicker, MetricCard, PricingCard, ToggleGroup, Slider) avec API, anatomie, do/don't, A11y. v1-F — Publishing Verdaccio : - verdaccio/config.yaml, docker-compose.verdaccio.yml, .npmrc - README setup local + déploiement prod + backups + sécurité v1-G — Gouvernance : - LICENSE, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md - CODEOWNERS, PR template, 3 issue templates (bug/feature/rfc) Bug fix bonus : tooltip dark mode (text-primary comme bg + text-inverse comme texte → blanc-sur-blanc invisible). Remplacé par neutral-900/0 en light + bg-raised/text-primary en dark. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
import type { Meta, StoryObj } from "@storybook/react";
|
|
import { ProfileHeader, Badge, Button, Icon } from "@managemate/react";
|
|
|
|
const meta = {
|
|
title: "Profile/ProfileHeader",
|
|
component: ProfileHeader,
|
|
tags: ["autodocs"],
|
|
} satisfies Meta<typeof ProfileHeader>;
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
name: "Marie Dupont",
|
|
subtitle: "Lead Developer · Synapse",
|
|
bio: "Lead frontend chez ManageMate depuis 2020. Mainteneuse du DSMMG, passionnée d'accessibilité et de motion design fonctionnel.",
|
|
initials: "MD",
|
|
status: "online",
|
|
badges: (
|
|
<>
|
|
<span className="mmg-badge mmg-badge--success">
|
|
<span className="mmg-badge__dot mmg-badge__dot--pulse" />
|
|
Disponible
|
|
</span>
|
|
<span className="mmg-badge mmg-badge--brand">
|
|
<Icon name="shield-check-fill" size="xs" /> Owner DSMMG
|
|
</span>
|
|
<span className="mmg-badge">Frontend · React</span>
|
|
</>
|
|
),
|
|
actions: (
|
|
<>
|
|
<Button variant="tertiary" icon="message-2-line">Message</Button>
|
|
<Button variant="primary" icon="user-add-line">Suivre</Button>
|
|
</>
|
|
),
|
|
stats: [
|
|
{ label: "Commits", value: "184" },
|
|
{ label: "Reviews", value: "23" },
|
|
{ label: "Tickets résolus", value: "412" },
|
|
{ label: "Ancienneté", value: "5 ans" },
|
|
],
|
|
},
|
|
};
|