- Move all ContentItem, ContentClient, ContentResponse types to engine/types.go as single source of truth - Remove duplicate type definitions from content/types.go - Update all imports across codebase to use engine types - Enhance engine to extract existing data-content-id from HTML markup - Simplify frontend to always send html_markup, let server handle ID extraction/generation - Fix contentId reference errors in frontend error handling - Add getAttribute helper method to engine for ID extraction - Add GetAllContent method to engine.DatabaseClient - Update enhancer to use engine.ContentClient interface - All builds and API endpoints verified working This resolves the 400 Bad Request errors and creates a unified architecture where the server is the single source of truth for all ID generation and content type management.
Test Sites Collection
This directory contains a collection of real-world websites for testing insertr CMS functionality across different site types, CSS frameworks, and complexity levels.
Directory Structure
simple/- Simple sites with vanilla CSS and minimal layoutsframework-based/- Sites using CSS frameworks (Bootstrap, Tailwind, etc.)complex/- Complex layouts with advanced interactionstemplates/- Template files for new test sitesscripts/- Automation utilities for downloading and enhancing sitesresults/- Testing results, reports, and documentation
Site Categories
Simple Sites
- dan-eden-portfolio - Clean personal portfolio with minimal styling
- github-pages-simple - Basic GitHub Pages site with standard layout
Framework-Based Sites
- bootstrap-docs - Bootstrap documentation sections
- tailwind-landing - Tailwind CSS marketing pages
Complex Sites
- stripe-product - Enterprise product pages with rich content
- linear-features - Modern SaaS feature pages
Testing Process
- Download - Use scripts to fetch HTML and assets
- Enhance - Add insertr classes to content sections
- Test - Verify functionality across different layouts
- Document - Record results and compatibility notes
Each Site Includes
- Original HTML files
assets/directory with CSS, JS, and imagesREADME.mdwith site-specific testing notesinsertr-config.jsonwith enhancement configuration