mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 22:34:56 +00:00
- Created a new troubleshooting guide in README.md for common issues and testing problems. - Updated package.json to include new act commands for linting, type checking, building, and diagnosing workflows. - Added a pre-commit hook script to validate workflows before commits. - Enhanced run-act.sh script with logging, Docker checks, and improved output formatting. - Improved test-workflows.sh with an interactive menu and performance tracking. - Introduced setup-act.sh for quick setup and testing of act integration.
Seed Data
Overview
Initial database seed data for bootstrapping the application with default configurations, templates, and sample data.
Location
Seed Data Modules
Components
- File:
components.ts - Purpose: Default component definitions and configurations
- Includes: Component schemas, properties, and rendering rules
Pages
- File:
pages.ts - Purpose: Default page templates and layouts
- Includes: Page definitions, routing, and navigation
Packages
- File:
packages.ts - Purpose: Package definitions and metadata
- Includes: Package configurations, exports, and glue data
Workflows
- File:
workflows.ts - Purpose: Default workflow definitions and templates
- Includes: Workflow steps, conditions, and actions
Scripts
- File:
scripts.ts - Purpose: Default Lua scripts and code snippets
- Includes: Utility functions, examples, and templates
Users
- File:
users.ts - Purpose: Default user accounts and roles
- Includes: Admin users, role definitions, permissions
Main Index
- File:
index.ts - Purpose: Exports all seed data modules
- Includes: Combined seed data for database initialization
Usage
Seed data is automatically loaded during database initialization:
import seedData from '@/seed-data'
// Use for populating database on first run
Database Initialization
Run npm run db:push to apply seed data to the database.