Commit Graph

6 Commits

Author SHA1 Message Date
southseact-3d
f2d7b48743 Add comprehensive test coverage for chat app modules
- Add OpenCode integration tests (provider config, model discovery, streaming)
- Add Dodo Payments tests (checkout flow, webhooks, subscription lifecycle)
- Add OAuth tests (Google/GitHub flow, state management, token exchange)
- Add file operations tests (ZIP handling, uploads, image validation)
- Add external WordPress testing tests (config, SSH, test queue)
- Add blog system tests (posts, categories, caching, RSS feeds)
- Add affiliate system tests (code generation, attribution, commissions)
- Add resource management tests (memory, concurrency, rate limiting)
- Add account management tests (2FA, email/password change, sessions)

Total: 689+ tests passing, covering critical app functionality
2026-02-18 19:46:07 +00:00
southseact-3d
8e35b2af95 Add comprehensive test suite for chat app
- Add userRepository.test.js: User CRUD, authentication, OAuth providers, 2FA, affiliate tracking
- Add sessionRepository.test.js: Sessions, refresh tokens, token blacklist, device fingerprinting
- Add auditRepository.test.js: Audit logging, event types, time-based queries, success/failure tracking
- Add connection.test.js: Database initialization, transactions, foreign keys, backup operations
- Add model-routing.test.js: Provider fallback, plan validation, token rates, rate limiting
- Add payments.test.js: Subscription pricing, top-ups, PAYG, discounts, webhook handling
- Add api-endpoints.test.js: Auth endpoints, user management, admin endpoints, middleware
- Update package.json with test scripts (bun test)

Tests cover: accounts, authentication, model routing, payments, subscriptions, admin panel, API endpoints
2026-02-18 18:30:41 +00:00
southseact-3d
25ee088d6c test: Add comprehensive test coverage for critical modules
- Add tests for chat/encryption.js: encryption/decryption, hashing, token generation
- Add tests for chat/tokenManager.js: JWT tokens, device fingerprints, cookie handling
- Add tests for chat/prompt-sanitizer.js: security patterns, attack detection, obfuscation
- Add tests for admin panel: session management, rate limiting, user/token management
- Add tests for OpenCode write tool: file creation, overwrites, nested directories
- Add tests for OpenCode todo tools: todo CRUD operations
- Add tests for Console billing/account/provider: schemas, validation, price utilities

These tests cover previously untested critical paths including:
- Authentication and security
- Payment processing validation
- Admin functionality
- Model routing and management
- Account management
2026-02-18 16:43:10 +00:00
southseact-3d
0513000a9e Fix builder page layout: make new chat and history buttons sticky at top on desktop
- Moved sticky positioning from mobile-only to global CSS for .top-left-actions

- Buttons now stay fixed at top above content on all screen sizes

- Includes various other app updates (version management, server improvements)
2026-02-11 19:23:23 +00:00
copilot-swe-agent[bot]
fd6d2d641b Fix database setup, test encryption and repositories - all working
Co-authored-by: southseact-3d <217551146+southseact-3d@users.noreply.github.com>
2026-02-09 19:37:28 +00:00
copilot-swe-agent[bot]
650d849ad2 Implement Phase 1.2: Database with encryption at rest and core infrastructure
Co-authored-by: southseact-3d <217551146+southseact-3d@users.noreply.github.com>
2026-02-09 19:33:00 +00:00