veza/apps/web/src/features/tracks/components/UploadQuota.stories.tsx
senke 64fbb81ddf ui(design): Phase 3 - rounded tokens, min-w/min-h, stories, NavigationProgress
- rounded-[var(--radius-xl/md/lg/sm)] → rounded-xl, rounded-md, rounded-lg, rounded-sm
- Timeline: min-w-[200px] → min-w-50
- AddEquipmentView, MetadataForm: min-h-[100px] → min-h-25
- NavigationProgress: shadow-[...] → shadow-button-primary-glow
- Stories: ActivityGraph, StatCard, NotificationBell, LoadingState, ScrollArea, Skeleton, FileUploadZone
- Reduced arbitrary values from ~60+ to 11 (5 files, exceptions documented)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-10 19:24:07 +01:00

38 lines
1.1 KiB
TypeScript

import type { Meta, StoryObj } from '@storybook/react';
import { UploadQuota } from './UploadQuota';
// Note: This component fetches data on mount.
// In a real Storybook setup we would mock the network request or the service.
// For now, these stories will likely show the loading state or error state if the backend is not reachable.
// A mock for the 'getUserQuota' service would be ideal here.
const meta: Meta<typeof UploadQuota> = {
title: 'Components/Features/Tracks/UploadQuota',
component: UploadQuota,
parameters: { layout: 'centered' },
tags: ['autodocs'],
decorators: [
(Story) => (
<div className="p-4 bg-background border border-border rounded-xl min-h-layout-story">
<Story />
</div>
),
],
};
export default meta;
type Story = StoryObj<typeof UploadQuota>;
export const Default: Story = {
args: {
userId: 'me',
className: 'max-w-sm',
},
};
export const CustomClass: Story = {
args: {
userId: 'me',
className: 'max-w-xs border-2 border-border',
},
};