mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 20:43:36 +00:00
refactor: simplify EmptyStateCard and update empty state configurations
- Removed unused properties and state management from the EmptyStateCard component for cleaner code. - Updated the EMPTY_STATE_CONFIGS to remove exampleCard entries, streamlining the empty state configuration. - Enhanced the primary action handling in the EmptyStateCard for improved functionality.
This commit is contained in:
@@ -16,10 +16,6 @@ export interface EmptyStateConfig {
|
||||
label: string;
|
||||
actionType: 'ai-suggest' | 'none';
|
||||
};
|
||||
exampleCard?: {
|
||||
title: string;
|
||||
category: string;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,49 +30,29 @@ export const EMPTY_STATE_CONFIGS: Record<string, EmptyStateConfig> = {
|
||||
shortcutHint: 'Press',
|
||||
primaryAction: {
|
||||
label: 'Use AI Suggestions',
|
||||
actionType: 'ai-suggest',
|
||||
},
|
||||
exampleCard: {
|
||||
title: 'User Authentication',
|
||||
category: 'Core Feature',
|
||||
actionType: 'none',
|
||||
},
|
||||
},
|
||||
in_progress: {
|
||||
title: 'Nothing in Progress',
|
||||
description: 'Drag a feature from the backlog here or click implement to start working on it.',
|
||||
icon: 'play',
|
||||
exampleCard: {
|
||||
title: 'Implementing feature...',
|
||||
category: 'In Development',
|
||||
},
|
||||
},
|
||||
waiting_approval: {
|
||||
title: 'No Items Awaiting Approval',
|
||||
description: 'Features will appear here after implementation is complete and need your review.',
|
||||
icon: 'clock',
|
||||
exampleCard: {
|
||||
title: 'Ready for Review',
|
||||
category: 'Completed',
|
||||
},
|
||||
},
|
||||
verified: {
|
||||
title: 'No Verified Features',
|
||||
description: 'Approved features will appear here. They can then be completed and archived.',
|
||||
icon: 'check',
|
||||
exampleCard: {
|
||||
title: 'Approved & Ready',
|
||||
category: 'Verified',
|
||||
},
|
||||
},
|
||||
// Pipeline step default configuration
|
||||
pipeline_default: {
|
||||
title: 'Pipeline Step Empty',
|
||||
description: 'Features will flow through this step during the automated pipeline process.',
|
||||
icon: 'sparkles',
|
||||
exampleCard: {
|
||||
title: 'Processing...',
|
||||
category: 'Pipeline',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user