This document captures learned patterns, discovered workflows, and integration knowledge for how WARP should work effectively across the entire HAX ecosystem.
The HAX ecosystem requires WARP to understand cross-repository dependencies and interaction patterns:
webcomponents/ (Core Components & DDD)
↓ provides components to
haxcms-php/ & haxcms-nodejs/ (Backends)
↓ serves content from
HAXsites (docs/, various ai-sites/)
↑ developed with
create/ (HAX CLI)
↓ generates scaffolding for
desktop/ (Local Development)
↓ facilitates
open-apis/ (Microservices)
↓ supports conversion/analysis for
All HAX Projects
- Impact Assessment: Changes affect all HAXcms backends and sites
- Testing Strategy: Must verify components work in HAX editor context
- Build Coordination:
yarn run buildaffectscustom-elements.jsonacross ecosystem - Registry Updates: Component changes potentially affect
wc-registry.json(but never run ubiquity script)
- Component Dependencies: Must understand available webcomponents and their schemas
- API Compatibility: Changes affect all HAXsites using the backend
- Theme System: Backend changes may impact theme rendering across sites
- Template Coordination: Templates must align with current webcomponents and backends
- Scaffolding Accuracy: Generated code must match ecosystem standards
- Cross-platform Testing: CLI changes affect developers across all HAX projects
- Component Usage: Must use HAX-capable components from webcomponents registry
- Backend Alignment: Site structure must align with chosen backend capabilities
- Content Standards: Educational content should leverage OER Schema patterns
- Issue: Components exist in webcomponents/ but may not be available in specific site contexts
- WARP Response: Always check
wc-registry.jsonor HAX schema before suggesting components - Verification: Test component availability in target environment
- Issue: Changes in one repo may require builds in dependent repos
- WARP Response: When modifying webcomponents, consider downstream build impacts
- Pattern:
webcomponents/changes →haxcms-*updates →docs/rebuild
- Issue: CLI, backends, and components may have version mismatches
- WARP Response: Use local tooling (
haxcommand) rather than global npm packages - Verification: Check package.json versions across repositories for compatibility
- Research Phase: Check
issues/for related requests or bugs - Scaffold Phase: Use
hax webcomponentwith proper flags (--y,--writeHaxProperties) - Development Phase: Implement with DDD tokens, accessibility standards
- Integration Phase: Test in HAX editor, verify HAX schema
- Documentation Phase: Update demos, documentation, examples
- Ecosystem Phase: Test in HAXcms context, verify theme compatibility
- Component Assessment: Verify available components for content needs
- Content Planning: Structure content using JSON Outline Schema patterns
- Authoring Phase: Use HAX editor interface for content creation
- Enhancement Phase: Add educational metadata (OER Schema where applicable)
- Quality Phase: Test accessibility, performance, cross-device compatibility
- Integration Phase: Verify content works with selected backend
- Issue Location: Check unified
issues/repository first - Impact Assessment: Identify which repositories are affected
- Fix Coordination: Address root cause in primary repository
- Propagation: Update dependent repositories as needed
- Testing: Verify fix works across affected repositories
- Documentation: Update relevant WARP.md files with learned patterns
- Use
hax servefrom appropriate directory based on project type - For HAXsites: Run from site root directory
- For webcomponents: Use monorepo development server
- Always use
--y --no-i --autoflags to prevent interactive interruptions
- webcomponents/:
yarn run buildaffects entire ecosystem - HAXsites with themes:
yarn run buildrequired after HAXCMSLitElement changes - Never manually edit:
custom-elements.json, manifest files,wc-registry.json
- Check
issues/repository for existing related issues - Use GitHub CLI (
gh) for cross-repository issue management - Coordinate commits across repositories when changes span multiple repos
- Content Creation: Apply OER metadata to educational components and content
- Pedagogical Patterns: Leverage HAX's educational component library
- Learning Objectives: Structure content to support measurable learning outcomes
- Accessibility: Apply Universal Design for Learning principles
- Progressive Disclosure: Use HAX components that support chunked content delivery
- Interactive Elements: Leverage question components, self-check activities
- Assessment Integration: Use formative assessment patterns with immediate feedback
- Multimedia Support: Properly implement video, audio, and interactive media
- Check: Component exists in
webcomponents/elements/ - Verify:
haxPropertiesmethod is properly implemented - Confirm: Component is built and published to registry
- Test: Component loads properly in development environment
- Check: Backend compatibility with site structure
- Verify: All referenced components are available
- Confirm:
site.jsonfollows JSON Outline Schema - Test: Theme compatibility with content structure
- Use Local: Use local
haxcommand, notnpxversion - Check Flags: Include
--y --no-i --autofor non-interactive execution - Verify Environment: Ensure proper directory context for command
- Update Tools: Use
hax updateto ensure latest CLI version
- Analyze: Use DDD tokens instead of custom CSS
- Minimize: Reduce external dependencies
- Optimize: Use lazy loading for heavy components
- Test: Verify load times in various network conditions
- Assets: Optimize images and media in
files/directory - Caching: Leverage HAXcms built-in caching strategies
- Components: Use efficient component loading patterns
- Monitoring: Test performance across device types
- AI Integration: How WARP learns from HAX ecosystem usage patterns
- Component Evolution: Tracking component migration from SimpleColors to DDD
- Educational Effectiveness: Measuring impact of OER Schema implementation
- Developer Experience: Optimizing WARP assistance for HAX workflows
- Advanced Theme Development: Complex theme inheritance patterns
- Microservice Integration: Deep integration with open-apis services
- Multi-language Support: Internationalization across ecosystem
- Enterprise Integration: HAX in larger institutional contexts
This document evolves with each WARP interaction in the HAX ecosystem. Update it as new patterns emerge or workflows are optimized.