Improve the production frontend
This commit is contained in:
@@ -1,88 +1,13 @@
|
||||
// Dashboard Domain Components - Bakery Management System
|
||||
|
||||
// Core dashboard components
|
||||
export { default as DashboardCard } from './DashboardCard';
|
||||
export { default as DashboardGrid } from './DashboardGrid';
|
||||
export { default as QuickActions, BAKERY_QUICK_ACTIONS } from './QuickActions';
|
||||
export { default as RecentActivity } from './RecentActivity';
|
||||
export { default as KPIWidget, BAKERY_KPI_CONFIGS } from './KPIWidget';
|
||||
// Existing dashboard components
|
||||
export { default as RealTimeAlerts } from './RealTimeAlerts';
|
||||
export { default as ProcurementPlansToday } from './ProcurementPlansToday';
|
||||
export { default as ProductionPlansToday } from './ProductionPlansToday';
|
||||
|
||||
// Export types for external usage
|
||||
export type { DashboardCardProps } from './DashboardCard';
|
||||
export type {
|
||||
QuickActionsProps,
|
||||
QuickAction
|
||||
} from './QuickActions';
|
||||
export type {
|
||||
RecentActivityProps,
|
||||
ActivityItem,
|
||||
ActivityUser,
|
||||
ActivityType,
|
||||
ActivityStatus,
|
||||
ActivityPriority
|
||||
} from './RecentActivity';
|
||||
export type {
|
||||
KPIWidgetProps,
|
||||
KPIValue,
|
||||
KPITrend,
|
||||
KPIThreshold,
|
||||
SparklineDataPoint
|
||||
} from './KPIWidget';
|
||||
|
||||
// Re-export enums for convenience
|
||||
export {
|
||||
ActivityType,
|
||||
ActivityStatus,
|
||||
ActivityPriority
|
||||
} from './RecentActivity';
|
||||
|
||||
/**
|
||||
* Dashboard Components Usage Examples:
|
||||
*
|
||||
* import {
|
||||
* DashboardCard,
|
||||
* QuickActions,
|
||||
* BAKERY_QUICK_ACTIONS,
|
||||
* RecentActivity,
|
||||
* KPIWidget,
|
||||
* BAKERY_KPI_CONFIGS
|
||||
* } from '@/components/domain/dashboard';
|
||||
*
|
||||
* // Basic dashboard card
|
||||
* <DashboardCard
|
||||
* title="Ventas Hoy"
|
||||
* variant="metric"
|
||||
* isLoading={false}
|
||||
* >
|
||||
* Content goes here
|
||||
* </DashboardCard>
|
||||
*
|
||||
* // Quick actions with predefined bakery actions
|
||||
* <QuickActions
|
||||
* actions={BAKERY_QUICK_ACTIONS}
|
||||
* columns={3}
|
||||
* userRole="baker"
|
||||
* userPermissions={['orders.create', 'inventory.view']}
|
||||
* />
|
||||
*
|
||||
* // Recent activity feed
|
||||
* <RecentActivity
|
||||
* activities={activities}
|
||||
* showTimestamp={true}
|
||||
* allowFiltering={true}
|
||||
* maxItems={10}
|
||||
* />
|
||||
*
|
||||
* // KPI widget with Spanish formatting
|
||||
* <KPIWidget
|
||||
* title="Ingresos Diarios"
|
||||
* value={{
|
||||
* current: 1250.50,
|
||||
* previous: 1100.00,
|
||||
* format: 'currency'
|
||||
* }}
|
||||
* color="green"
|
||||
* variant="detailed"
|
||||
* showSparkline={true}
|
||||
* />
|
||||
*/
|
||||
// Note: The following components are specified in the design but not yet implemented:
|
||||
// - DashboardCard
|
||||
// - DashboardGrid
|
||||
// - QuickActions
|
||||
// - RecentActivity
|
||||
// - KPIWidget
|
||||
Reference in New Issue
Block a user