Commit Graph

20 Commits

Author SHA1 Message Date
rmac
01de695619 Set up database seeding architecture and E2E testing infrastructure
- Add CLAUDE.md: AI assistant instructions for MetaBuilder project architecture
- Add TESTING.md: Comprehensive E2E testing guide and troubleshooting

Core changes:
- Create Playwright global.setup.ts to seed database before E2E tests
- Add /api/setup endpoint to trigger database seeding via HTTP
- Implement seed-home-page.ts module loaded from ui_home package metadata
- Create ui_home/seed/metadata.json defining home page PageConfig seed data

Architecture established:
- Packages define seed data in seed/metadata.json
- Seed functions are idempotent (check before creating)
- Global setup calls /api/setup before running tests
- Database schema must be created via 'npm run db:push' before seeding

Test flow:
1. Playwright starts webServer (generates Prisma client, starts Next.js)
2. Global setup waits for server, calls POST /api/setup
3. Seeding creates default data from packages
4. E2E tests run against seeded database

This establishes proper separation of concerns:
- DBAL adapter for database access (not raw Prisma)
- Package-driven seed data (not hardcoded in code)
- HTTP endpoint for explicit database initialization
- Idempotent seeds (safe to rerun)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-14 18:15:46 +00:00
e43412f3fc refactor: remove setup and validation scripts for packages 2026-01-02 23:15:10 +00:00
4b0d8ae6e8 chore: Major nextjs cleanup - consolidate lib folders, remove redundant TSX, move e2e to root
- Moved e2e folder to project root with playwright configs
- Removed (auth) route group (handled by packages)
- Removed redundant API routes (codegen, levels, native-prisma, etc.)
- Deleted lib folders now covered by packages: security, schema, seed, api, auth, routing, navigation
- Removed *-lib duplicates: database-lib, types-lib, rendering-lib, package-lib
- Deleted duplicate dbal-client folders
- Cleaned up eslint config and removed eslint-plugins folder
- Removed old workflow scripts and build outputs
- Consolidated hooks folder
- Total: Reduced ~43 TS files
2026-01-02 22:58:39 +00:00
eb2182a60a fix(packages): add missing packageId fields and fix metadata across 7 packages
- css_designer: added packageId
- dbal_demo: added packageId
- github_tools: changed id to packageId
- media_center: added packageId and category
- screenshot_analyzer: added packageId
- shared: added packageId, author, category
- validate-packages.cjs: support multiple components.json formats
2025-12-30 20:43:27 +00:00
Richard Ward
7d8eb2cbe9 config: packages,metadata,json (6 files) 2025-12-30 20:43:13 +00:00
Richard Ward
cca9ccd6c9 code: validate,store,packages (2 files) 2025-12-30 20:40:56 +00:00
Richard Ward
7575f15158 code: prisma,development,dbal (4 files) 2025-12-30 20:40:29 +00:00
Richard Ward
92f5aaf22b code: types,development,dbal (4 files) 2025-12-30 20:40:00 +00:00
Richard Ward
4f07b39431 code: development,dbal,validate (29 files) 2025-12-30 20:39:30 +00:00
cfa1e5bfee feat: add new icon components including Envelope, ChatCircle, HardDrives, WarningCircle, CheckCircle, XCircle, TrendUp, ShieldWarning, LockKey, Crown, Sparkle, BookOpen, Tree, Broom, Export, UploadSimple, Funnel, FunnelSimple, MapTrifold, PushPinSimple, Buildings, GithubLogo, and GoogleLogo 2025-12-30 12:21:15 +00:00
copilot-swe-agent[bot]
04ba8e8062 Fix npm run lint: repair broken symlinks and resolve ESLint errors
- Fix symlinks for check-function-coverage.js and generate-test-coverage-report.js to point to correct paths in tools/ subdirectories
- Move 'use client' directive before export statements in theme files
- Add playwright.dbal-daemon.config.ts to ESLint ignores
- Fix unnecessary escape character in regex pattern

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 04:16:18 +00:00
copilot-swe-agent[bot]
8758d3baa5 fix: Improve workflow simulation and diagnostics
- Update simulation script to use npm install instead of npm ci
- Make diagnostic script work without act installation
- Add quick reference guide for workflow commands
- Ensure validation runs even when act is not available

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 02:50:20 +00:00
copilot-swe-agent[bot]
6313f0ea24 feat: Add workflow validation and simulation tools
- Fix workflow file path references (ci.yml -> ci/ci.yml)
- Add validate-workflows.py for YAML syntax and structure validation
- Add simulate-workflows.sh for local job simulation without act
- Pin dependency-check action to specific SHA for security
- Update npm scripts with validation and simulation commands
- Add comprehensive workflow simulation documentation

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 02:48:16 +00:00
bde4cd0428 update: setup,packages,cjs (2 files) 2025-12-26 03:40:29 +00:00
2cb130baef update: setup,packages,nextjs (1 files) 2025-12-26 03:40:12 +00:00
cd0b66211c scripts: run,nextjs,frontends (1 files) 2025-12-25 21:52:57 +00:00
144e75ca05 scripts: run,nextjs,frontends (1 files) 2025-12-25 21:04:14 +00:00
c136dcb602 fix: correct broken symlinks in frontends/nextjs/scripts
- Fix check-function-coverage.js pointing to wrong path
- Fix generate-test-coverage-report.js symlink
- Fix setup-packages.cjs symlink
- All now correctly point to ../../../tools/
2025-12-25 16:22:56 +00:00
68bd86bf19 feat: add scripts for diagnosing and testing GitHub Actions workflows locally 2025-12-25 16:06:58 +00:00
8e627bc643 Add configuration files and scripts for Next.js frontend setup 2025-12-25 14:42:29 +00:00