7 Commits

Author SHA1 Message Date
Lane
9944fbfb51
docs: fix Available Scripts section to match actual package.json (#584)
- Remove scripts that don't exist (predeploy, db:generate, db:migrate:prod,
  test:cov, test:cov:ui, test:e2e, test:e2e:ui, plugins:generate, plugins:watch,
  sonicjs, sync-collections)
- Add missing scripts (type-check, db:reset, update, update:beta)
- Fix db:migrate description (remote, not local)
- Add db:migrate:local for local development
- Add new "Monorepo Scripts (Contributors)" section documenting root-level
  scripts including workspace, dev:www, build:core, e2e, version:*, publish:*,
  release:*, and deploy:www

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 16:41:08 -08:00
Lane Campbell
c47d4b3d60 security: change default admin password from admin123 to sonicjs!
Updated all references to the default admin password across the codebase:

- Changed seed script to use 'sonicjs!' instead of 'admin123'
- Updated demo-login plugin to prefill new password
- Updated all documentation (docs/, www/)
- Updated test helpers and e2e test utilities
- Updated migration SQL files with new password
- Updated auth routes to hash new password
- Updated all source code comments
- Updated database admin user password via seed-admin endpoint

Admin credentials are now:
- Email: admin@sonicjs.com
- Password: sonicjs!

๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 09:45:58 -08:00
Lane Campbell
9b3020f79c chore: publish core 2.0.3 and create-app beta.10 packages
- Bumped @sonicjs-cms/core from 2.0.2 to 2.0.3
- Published core package to npm
- Updated create-app CLI to use core@^2.0.3
- Bumped create-sonicjs from 2.0.0-beta.9 to 2.0.0-beta.10
- Published create-app package to npm
- Verified both packages install correctly

Additional cleanup:
- Moved scripts/generate-plugin-registry.mjs to packages/scripts/
- Updated all references to new script location
- Removed obsolete scripts folder (15 files deleted)
- Updated documentation for installation and script paths
- Cleaned up package.json (removed sync-collections and sonicjs CLI)

๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27 15:53:19 -07:00
Lane Campbell
a639e27ef0 chore: rebuild core package with template improvements
Updates:
- Refine admin layout templates (Catalyst and v2)
- Update settings page template
- Rebuild dist with latest template changes
- Update documentation (getting-started, create-app README)
- Add plan execution summary documentation

Built and compiled all changes with updated chunk files.
2025-10-27 12:19:21 -07:00
Lane Campbell
5768a8e860 Update documentation and test coverage thresholds to 90%
- Updated getting-started.md with improved formatting and proper markdown links
- Updated testing.md to reflect new 90% coverage threshold and current test statistics
- Added comprehensive tests for media image utilities (detectImageType, getOptimalImageFormat, ImageOptimizer)
- Added comprehensive tests for thumbnail generation with mock browser APIs
- Increased vitest coverage thresholds from 80% to 90% across all metrics

๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-08 06:29:03 -07:00
Lane Campbell
1eb938be0d docs: comprehensive developer documentation update
Complete rewrite and expansion of all developer documentation with detailed
technical content, code examples, and real-world usage patterns.

๐Ÿ“š New Documentation Files (3):
- architecture.md (996 lines) - Complete system architecture, request lifecycle,
  middleware pipeline, plugin system, caching, database, and data flow patterns
- caching.md (1,785 lines) - Three-tier cache system, invalidation strategies,
  event-driven invalidation, warming, monitoring, and best practices
- routing-middleware.md (1,507 lines) - Complete routing structure, middleware
  pipeline, auth/permissions, logging, bootstrap, and custom middleware

๐Ÿ“ Updated Documentation Files (9):
- getting-started.md (856 lines) - Comprehensive setup guide with core concepts,
  project structure, troubleshooting, and next steps
- plugin-development-guide.md (3,234 lines) - Complete plugin system guide with
  real examples from cache, auth, and media plugins
- api-reference.md (1,200 lines) - All API endpoints with request/response
  examples, cache headers, pagination, and code examples in 3 languages
- database.md (2,110 lines) - Complete D1 setup, all migrations, Drizzle ORM,
  query patterns, performance optimization, and backup procedures
- authentication.md (1,696 lines) - JWT auth, KV caching, RBAC, permissions,
  session management, and security best practices
- collections-config.md (2,146 lines) - All 30+ field types, collection sync,
  validation, relationships, and advanced features
- templating.md (2,016 lines) - HTMX patterns, Alpine.js, TailwindCSS, dark mode,
  component library, and real-world examples
- testing.md (2,124 lines) - Complete testing setup, unit tests, E2E tests with
  real examples from test suite, coverage, and CI/CD
- deployment.md (1,750 lines) - Complete Cloudflare Workers deployment, D1/R2/KV
  setup, environments, CI/CD, monitoring, and production checklist

๐Ÿ“Š Documentation Statistics:
- Total: 17,653+ lines of new/updated documentation
- 12 comprehensive guides covering all aspects of SonicJS
- 100+ code examples from actual implementation
- Complete API reference with 3 language examples
- Real-world patterns and best practices throughout

โœจ Key Features:
- All code examples pulled from actual source files
- File paths referenced for easy navigation (e.g., src/plugins/cache/services/cache.ts)
- Step-by-step tutorials and guides
- Architecture diagrams and flow charts
- Troubleshooting sections with solutions
- Best practices for every major system
- Production-ready deployment instructions

๐ŸŽฏ Coverage:
- Complete architecture and system design
- Plugin development from basics to advanced
- Authentication and authorization (JWT, RBAC, permissions)
- Three-tier caching system with event-driven invalidation
- Database migrations, ORM, and performance
- Template system with HTMX and Alpine.js
- Complete testing strategy (unit + E2E)
- Production deployment and monitoring

๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-06 10:10:29 -07:00
Lane Campbell
b53ac6d15c feat: Enhance documentation with modern styling and bigger headings
- Create comprehensive documentation system integrated with Hono app
- Add beautiful glass morphism design with gradient backgrounds
- Implement dramatically larger heading hierarchy (H1: 72px, H2: 48px, H3: 30px)
- Add interactive elements: hover effects, animations, numbered sections
- Include syntax highlighting for code blocks with dark theme
- Create responsive design with custom scrollbars and mobile optimization
- Add breadcrumb navigation and enhanced footer
- Implement high-specificity CSS to override Tailwind prose defaults
- Add cache-busting headers for immediate style updates
- Include auto-numbered section badges and decorative elements
- Support for Workers-compatible markdown rendering without fs dependencies
2025-06-24 14:16:42 -07:00