Revolutionary UI Factory - VSCode Extension
Achieve 60-80% code reduction with intelligent UI component generation!
Features
🏭 Component Generation
- Create Data Table (
Cmd+Shift+D
): Generate a fully-featured data table with sorting, filtering, and pagination
- Create Form (
Cmd+Shift+F
): Generate a form with validation and submission handling
🔄 Code Conversion
- Convert to Factory Pattern: Select existing component code and convert it to factory pattern
- Automatic detection of component type (table, form)
- Preserves functionality while reducing code by 60-80%
📊 Real-time Metrics
- Code Reduction Analysis: See how much code you're saving
- Project-wide Metrics: Track factory adoption across your codebase
- Visual Dashboard: Beautiful metrics visualization
✨ IntelliSense Support
- Smart completions for factory methods
- Property suggestions for columns and fields
- Inline documentation and examples
📝 Code Snippets
rfdt
- Revolutionary Factory Data Table
rff
- Revolutionary Factory Form
rfi
- Revolutionary Factory Import
rfc
- Revolutionary Factory Column
rffield
- Revolutionary Factory Field
Usage
Creating a Data Table
- Open a React/TypeScript file
- Press
Cmd+Shift+D
(or use Command Palette)
- Enter table name and columns
- A complete data table component is generated!
// Generated code achieves ~70% reduction
export const UserTable = factory.createDataTable({
columns: [
{ header: 'Name', accessorKey: 'name' },
{ header: 'Email', accessorKey: 'email' },
{ header: 'Status', accessorKey: 'status' }
],
features: {
sorting: true,
filtering: true,
pagination: true
}
});
- Press
Cmd+Shift+F
(or use Command Palette)
- Enter form name and fields
- Choose validation options
- A complete form with validation is generated!
// Generated code achieves ~80% reduction
export const RegistrationForm = factory.createForm({
fields: [
{
name: 'email',
label: 'Email',
type: 'email',
validation: z.string().email()
}
],
onSubmit: async (data) => {
// Handle submission
}
});
Converting Existing Code
- Select your component code
- Right-click and choose "Convert to Factory Pattern"
- The extension analyzes and converts your code
- Enjoy 60-80% code reduction!
Viewing Metrics
- Click the 🏭 icon in the status bar
- Or use Command Palette: "Revolutionary UI: Show Metrics"
- See project-wide adoption and code savings
Requirements
- VSCode 1.74.0 or higher
- Node.js 16.0 or higher
@vladimirdukelic/revolutionary-ui-factory
npm package
Settings
{
// Default framework for generation
"revolutionaryUI.framework": "react",
// Show metrics when saving files
"revolutionaryUI.showMetricsOnSave": true,
// Enable IntelliSense
"revolutionaryUI.enableIntelliSense": true
}
Keyboard Shortcuts
Cmd+Shift+D
- Create Data Table
Cmd+Shift+F
- Create Form
- Right-click menu for conversion options
Support
License
MIT License - Copyright (c) 2024 Vladimir Dukelic
Achieve 60-80% code reduction today! 🏭✨