2026-02-02 19:29:46 +00:00
|
|
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
|
|
|
import { NotificationSettings } from './NotificationSettings';
|
|
|
|
|
|
2026-02-03 08:56:11 +00:00
|
|
|
const mockNotifications = {
|
2026-02-02 19:29:46 +00:00
|
|
|
email_notifications: true,
|
|
|
|
|
push_notifications: false,
|
|
|
|
|
browser_notifications: true,
|
|
|
|
|
email_on_follow: true,
|
2026-02-03 08:56:11 +00:00
|
|
|
email_on_like: true,
|
|
|
|
|
email_on_comment: false,
|
2026-02-02 19:29:46 +00:00
|
|
|
email_on_message: true,
|
|
|
|
|
email_on_mention: true,
|
|
|
|
|
email_marketing: false,
|
|
|
|
|
};
|
|
|
|
|
|
2026-02-12 23:32:08 +00:00
|
|
|
const meta: Meta = {
|
2026-02-05 13:20:06 +00:00
|
|
|
title: 'Components/Features/Settings/NotificationSettings',
|
2026-02-02 19:29:46 +00:00
|
|
|
component: NotificationSettings,
|
|
|
|
|
tags: ['autodocs'],
|
2026-02-03 08:56:11 +00:00
|
|
|
argTypes: {
|
|
|
|
|
onChange: { action: 'notifications changed' }
|
|
|
|
|
},
|
2026-02-02 19:29:46 +00:00
|
|
|
decorators: [
|
|
|
|
|
(Story) => (
|
refactor: Phase 6 — Migrate feature modules to SUMI tokens
- auth: Replace gray-* with muted/border tokens, text-foreground
- settings: TwoFactorSettings + NotificationSettings text-foreground
- chat: ChatInput, ConversationItem, ChatPage — text-foreground,
remove kodo references
- player: PlayerExpanded, PlayerQueue, PlayerControls — text-foreground,
remove cyan/magenta gradients
- playlists: All components — text-foreground for badges/headings
- tracks: TrackCard, TrackListRow — text-foreground, remove glow effects
- studio: FileGridCard — text-foreground
- library: LibraryPageGrid — remove hover-glow-cyan, shadow-card-glow-cyan
- profile: UserProfilePageHeader — text-foreground
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 01:06:28 +00:00
|
|
|
<div className="max-w-xl mx-auto p-6 border rounded-lg bg-white dark:bg-card dark:text-foreground">
|
2026-02-02 19:29:46 +00:00
|
|
|
<Story />
|
|
|
|
|
</div>
|
|
|
|
|
),
|
|
|
|
|
],
|
2026-02-12 23:32:08 +00:00
|
|
|
};
|
2026-02-02 19:29:46 +00:00
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
|
|
|
|
|
|
export const Default: Story = {
|
2026-02-03 08:56:11 +00:00
|
|
|
args: {
|
|
|
|
|
notifications: mockNotifications,
|
2026-02-02 19:29:46 +00:00
|
|
|
},
|
|
|
|
|
};
|