Commit Graph
38 Commits
Author SHA1 Message Date
g-butandClaude Opus 4.6 b60bbb827c fix: improve DB resilience, middleware redirects, and AI provider caching
- Increase Neon connection timeout from 5s to 10s for cold starts
- Increase retry delays from [100,300]ms to [500,1500]ms
- Preserve query params in middleware callbackUrl redirects
- Add 60s TTL cache to AI provider config (was querying DB every call)
- Add 5-minute TTL to user columns cache (was never invalidating)
- Update CODE_AUDIT.md with all recent fixes and test coverage

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 09:12:50 +01:00
g-but a0e6d383d6 fix(ai): harden provider config path and restore admin key persistence
- make AI runtime config deterministic from DB (dedupe-safe ordering)\n- respect provider enabled flags in fallback runtime\n- improve protocol NO_PROVIDER UX copy with clear admin hint\n- extend admin hirn providers PATCH for apiKey persistence + enable toggle + guarded default switch\n- add DB migration 036 to dedupe/uniqueness-hardening for system providers\n- update hirn init insert conflict handling
2026-02-17 22:38:36 +01:00
g-but da39301015 docs: add overnight cross-project kivitendo fundraising integration plan 2026-02-17 22:33:51 +01:00
g-but 128a555f09 feat(admin): unify Betrieb ingestion and harden tasks/protocol flows 2026-02-17 21:52:39 +01:00
g-but a96e0e846c chore(auth): tighten pool policy, add CI smoke gate and incident runbook 2026-02-17 16:42:52 +01:00
g-butandClaude Sonnet 4.5 64fb3126dc fix(types): resolve all TypeScript errors in admin edit system
- Add EditHistoryEntry type and edit tracking fields to WorkshopProposal
- Add reviewer_name and editor_name to WorkshopProposalWithProposer
- Fix type assertions in API routes (currentProposal as WorkshopProposal)
- Fix optional property access in EditProposalModal and EditSubmissionModal
- Fix Heading import (default vs named export)
- Add null checks in test file
- All typechecks now pass

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-13 13:41:39 +01:00
g-butandClaude Opus 4.5 cde7c026e7 chore(docs): remove stale business/fundraising docs from hirn
Fundraising and business documentation now lives exclusively in
Nextcloud (Revamp-Hirn) as the SSOT. The dev repo keeps only
technical docs (api-documentation.md, database-schema.md).

Removed: Hirn methodology, Digital Brain presentations, fundraising
gap analysis, content strategy docs, templates, and related files.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 06:12:44 +01:00
g-butandClaude Opus 4.5 fc6a61cd77 feat(medusa): add Koyeb free tier deployment option
- Add koyeb.yaml for one-click deployment
- Update docs with Koyeb as primary free option
- Keep self-hosted as alternative

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 19:20:25 +01:00
g-butandClaude Opus 4.5 339e1dc3b5 docs(medusa): add self-hosted deployment guide (FREE)
- Add docker-compose.prod.yml for server deployment
- Add deploy.sh helper script
- Update docs with step-by-step free deployment

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 19:19:37 +01:00
g-butandClaude Opus 4.5 69b9880c0f feat(medusa): add production deployment configuration
- Add comprehensive deployment guide (docs/MEDUSA_PRODUCTION.md)
- Add Railway deployment config (railway.json)
- Add Vercel configuration script (scripts/configure-medusa-vercel.sh)
- Document deployment options: Railway, Render, self-hosted

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 19:14:39 +01:00
g-butandClaude Opus 4.5 617db5bc23 feat(arch): complete unified permissions migration and service layer
Phase 1 & 2 of architecture improvement plan complete:

Repository Layer:
- Add base repository with query/transaction helpers
- Add repairer repository (N+1 fix: 101→1 query)
- Add helper repository (N+1 fix: 76→1 query)

Unified Permissions:
- Create compatibility layer for dual auth systems
- Migrate all admin routes to hasAdminAccessUnified()
- Support both old role and new is_staff systems
- Prevent staff lockouts during migration

Service Layer:
- Extract payment webhook logic to PaymentService
- Reduce webhook route from 419→129 lines (69%)

Files migrated to unified auth:
- middleware/admin-access.ts, middleware/admin.ts
- api/admin/products, api/repairer/dashboard, api/seller/dashboard
- api/payments/webhook
- dashboard/page.tsx, dashboard/seller/*
- config/dashboard.ts

Also fixes pre-existing typecheck error by adding config/registration.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 14:01:03 +01:00
g-butandClaude Opus 4.5 ba9970d23c feat: Add HIRN AI RAG system with multi-provider support
Implements a complete RAG (Retrieval-Augmented Generation) system for
the admin dashboard with:

Core RAG Engine:
- Document ingestion with smart chunking (preserves complete functions/classes)
- pgvector-based semantic search with HNSW index
- Ollama embeddings (nomic-embed-text, 768 dimensions)
- Automatic content hashing for change detection

Multi-Provider AI Support:
- Ollama (local, default)
- Groq, OpenAI, Anthropic, Google, xAI, OpenRouter
- Per-user provider preferences stored in database
- Fallback chain for reliability

Auto-Documentation:
- Database schema extraction and indexing (62 tables)
- API route auto-documentation (116 endpoints)
- Generated docs stored in docs/ for reference

Admin Interface:
- Chat UI with context display
- Provider selector with API key management
- Document browser and stats
- Conversation history

Scripts:
- hirn-ingest.ts: Main document ingestion
- hirn-ingest-schema.ts: Database schema ingestion
- hirn-ingest-api-routes.ts: API documentation generator
- test-hirn-retrieval.ts: Retrieval testing
- test-hirn-chat.ts: Chat pipeline testing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 01:50:20 +01:00
g-butandClaude Opus 4.5 0608f3dc38 feat: Add peer repair marketplace and HIRN admin dashboard
Peer Repair Marketplace ("Uber for repairs"):
- Create database migration for peer_repair_requests and peer_repair_offers tables
- Add API routes for requests, offers, and acceptance flow
- Build browse, create, and detail pages for repair requests
- Implement my-requests and my-offers dashboard pages
- Add peer-repairs config with categories, skills, and budget types

HIRN Admin Dashboard:
- Add financial data visualization with yearly income charts
- Create kennzahlen (KPIs), transparenz, and wirkung pages
- Implement data loading utilities and TypeScript types
- Add comprehensive documentation and presentation materials

Supporting changes:
- Update navigation config with new routes
- Add useMediaQuery hook for responsive layouts
- Extend constants with new configuration values

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 02:01:27 +01:00
g-but 92161d2d30 Fix password validation to use AUTH_CONFIG (8 chars, no complexity) 2026-01-19 18:24:14 +01:00
g-butandClaude Opus 4.5 08690902a9 perf: Add React.memo to FilterBar and ComparisonCard
- Wrap FilterBar and ComparisonCard with React.memo to prevent
  unnecessary re-renders when parent components update
- Update CODE_AUDIT.md to reflect all recent fixes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 14:15:16 +01:00
g-butandClaude Opus 4.5 2b4510b189 chore: fix security vulnerabilities
Updated vulnerable packages where possible.
Some vulnerabilities remain due to next-contentlayer peer dependency conflicts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 19:57:05 +01:00
Your Name 5a6f84b63d fix: improve auth system reliability and UI responsiveness
- Fix UserMenu buttons to show immediately without waiting for session check
- Update password validation to enforce 12 character minimum
- Add database connection error handling in auth routes
- Improve session provider configuration for non-blocking session checks
- Add graceful error handling for slow local database connections
2026-01-05 15:21:38 +01:00
Your Name 7974d5c61f feat: deploy latest frontend (auth, admin, shop); docs + CI updates 2025-12-14 16:06:55 +01:00
Your Name 48458e5815 ci: add GitHub Actions workflow for automated CI checks
- Add CI pipeline that runs on pushes to main and PRs
- Runs linting, type checking, and build verification
- Vercel automatically deploys when merged to main
- Update deployment documentation
2025-12-12 16:47:52 +01:00
Your NameandClaude 40d85d9a37 chore: complete Strapi removal and codebase cleanup
Major cleanup removing all Strapi-related code and migrating to static content:
- Remove all Strapi integration files (strapi.ts, types)
- Delete legacy Strapi pages and components
- Remove migration scripts and Strapi tooling
- Update Docker compose to remove Strapi services
- Reorganize documentation files into docs/ directory
- Remove obsolete test components and legacy API routes
- Add new responsive design components and utilities
- Update service pages to use static content
- Simplify blog pages to use hardcoded content
- Remove package dependency on Strapi

This cleanup reduces codebase complexity and prepares for production deployment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 17:56:06 +01:00
Your Name 2355f723f5 feat(shop): add routing page and multi-channel shop navigation 2025-11-26 16:25:15 +01:00
Your Name d260f25025 fix: remove conflicting /admin/page.tsx route - Next.js routing conflict with Tina CMS 2025-10-29 08:31:17 +01:00
Your NameandClaude 115df43b96 refactor: clean up feedback system and consolidate floating UI components
- Remove redundant feedback system components and API routes
- Consolidate RevampCopilot functionality into floating-ui feature
- Update chatbot components and hooks
- Add new suggestions route to CMS API
- Update documentation and migration schema

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-17 13:05:31 +02:00
Your NameandClaude 52df8ba5df fix: resolve feedback form visibility and typing issues
- Switch to correct floating-ui SuggestionButton component with working typing functionality
- Fix button positioning to display in middle-right of screen (not bottom)
- Add explicit positioning styles to ensure proper panel placement
- Resolve character-by-character input issues by using the optimized component version
- All feedback form features now working: backdrop close, scope switching, element selection

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-17 09:49:19 +02:00
Your NameandClaude 40a7f6e5b3 feat: optimize SuggestionButton with performance improvements and comprehensive documentation
## Major Improvements

### 🐛 Fixed Critical Issues
- **Single character typing bug**: Fixed by implementing memoized onChange handlers
- **Email recipient**: Confirmed correct address (georgy.butaev@revamp-it.ch)
- **Performance optimizations**: Reduced unnecessary re-renders

### 🔧 Technical Enhancements
- **Memoized event handlers**: useCallback for onChange, handleQuickSuggestion
- **Modular type system**: Created centralized types.ts and utils.ts
- **Better state management**: Optimized form state updates

### 📚 Documentation & Architecture
- **Comprehensive documentation**: 400+ line component guide in docs/components/SuggestionButton.md
- **Best practices implementation**: Performance, accessibility, UX patterns
- **Type safety improvements**: Centralized interfaces and validation

### 🎨 User Experience
- **Smooth typing experience**: No more cursor jumping or character loss
- **Contextual feedback**: Scope-specific suggestions and styling
- **Accessibility**: ARIA labels, keyboard navigation, focus management
- **Mobile responsive**: Touch-friendly interface

### 📧 Email Features (Already Working)
- **Rich HTML templates**: Scope-specific styling and AI-ready prompts
- **Complete context**: Page, URL, elements, timestamp for implementation
- **Rate limiting**: 3 suggestions per 5 minutes per IP
- **Spam protection**: Content filtering and validation

### 🗂️ Code Organization
- **Modular structure**: Separated types, utilities, and documentation
- **Clean interfaces**: TypeScript interfaces for all data structures
- **Centralized constants**: Configuration and validation rules
- **Documentation standards**: Established patterns for future components

## Files Changed
- Enhanced: src/components/ui/SuggestionButton.tsx (performance fixes)
- Added: src/components/ui/suggestion/types.ts (type definitions)
- Added: src/components/ui/suggestion/utils.ts (helper functions)
- Added: docs/components/SuggestionButton.md (comprehensive guide)
- Added: docs/README.md (documentation standards)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 11:38:47 +02:00
Your Name 26d89c437d feat(platform): Integrate AI Native CMS and Revamp Copilot 2025-09-15 01:44:38 +02:00
Your NameandClaude 23a94cfbf2 refactor: complete repository organization with senior engineering standards
Major structural improvements for professional open source presentation:

🗂️ **Repository Organization:**
- Organized tools/ directory with deployment/ and development/ subdirectories
- Moved all scripts to appropriate locations (deploy.sh → tools/deployment/)
- Created archive/legacy/ for historical files
- Removed outdated directories (strapi/, backend/, content/, messages/, etc.)

📚 **Documentation Structure:**
- Reorganized docs/ with guides/, reference/, api/, and legacy/ structure
- Created comprehensive docs/README.md with clear navigation
- Added detailed ARCHITECTURE.md explaining Strapi vs Custom CMS decision
- Moved legacy documentation to docs/legacy/ folder

🔧 **Developer Experience:**
- Added professional GitHub issue templates (bug_report.yml, feature_request.yml)
- Enhanced .gitignore with comprehensive patterns for clean repository
- Fixed import issues and development server configuration
- Created proper folder structure for maintainability

✨ **Professional Presentation:**
- Repository now presents as legitimate, well-organized open source project
- Clear separation of concerns in folder structure
- Professional documentation hierarchy
- Ready for new contributor onboarding

This brings the repository to senior engineering standards with clear organization,
comprehensive documentation, and professional development workflow setup.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 16:55:20 +02:00
Your NameandClaude b404624927 feat: professionalize repository structure and documentation
Major improvements to make the repository welcoming for new contributors:

- Completely rewrote README.md with clear project overview, installation steps, and professional presentation
- Added comprehensive CONTRIBUTING.md with development workflow, code standards, and contributor recognition
- Created MIT LICENSE file for proper open source compliance
- Added .env.example files for both frontend and CMS API with all necessary configuration variables
- Organized documentation in docs/ folder for better structure
- Removed outdated files and AI-related placeholders
- Updated project description to focus on sustainable technology mission
- Added professional badges and clear feature descriptions
- Included proper setup instructions for both development environments

The repository now presents a professional, legitimate open source project that clearly communicates its purpose and makes it easy for developers to contribute.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 16:18:55 +02:00
Your Name 53caf6c3aa feat: implement complete admin interface for Reboot Content
- Add Next.js admin routes (/admin, /admin/login, /admin/pages, /admin/pages/new, /admin/pages/[id])
- Create admin layout with navigation and authentication
- Build login page with email/password form
- Implement pages list with search and create functionality
- Add WYSIWYG editor for content creation/editing
- Create API routes for admin authentication and content management
- Add middleware for route protection
- Include sample data population script
- Add comprehensive admin interface documentation for non-technical users
- Create test page for validating admin functionality
- Update environment configuration for JWT secret

Admin interface is now super easy and intuitive for non-technical team members to:
- Login with email/password
- View all pages with search
- Create new pages
- Edit existing pages with rich text editor
- Save as draft or publish immediately
- Preview content before publishing

All code follows best practices with proper error handling, security, and accessibility.
2025-09-08 13:18:07 +02:00
Your Name 72516df482 docs: add Reboot Content admin UI blueprint and update README; rename Cem Backend to Reboot Content; align env vars 2025-09-08 13:04:01 +02:00
Your NameandClaude 78f344c08e Fix English text in German services pages
- Translate service descriptions and features to German
- Fix "Our Services" to "Unsere Dienstleistungen"
- Translate process steps in data recovery service
- Fix "Contact Us" and "Browse Inventory" buttons
- Translate "This service is coming soon" message
- Ensure consistent German language throughout services

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-16 10:56:32 +02:00
Your NameandClaude 46e7dd40a0 feat: Continue Swiss High German translation and resolve dependencies
- No merge conflicts found in specified files
- Updated package dependencies and lockfile
- Added translation checklist files and mobile menu component
- Continued systematic Swiss High German translation of user-facing content

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-13 19:17:32 +02:00
Your Name 52b32e6427 fix: resolve package-lock.json merge conflict and update lockfile 2025-07-13 19:10:49 +02:00
Your Name c49302b8ae Auto-deploy: Updates from 2025-07-01 13:31:45 2025-07-01 13:31:45 +02:00
Your Name bfdfad0569 Add new service pages, improve navigation structure, and update dependencies 2025-06-02 19:16:35 +02:00
Georg But efa3e28c32 fix: update service pages and image structure for deployment 2025-05-14 12:01:23 +02:00
Georg But 82bb4636f4 Add deployment workflow documentation 2025-05-05 12:57:44 +02:00
Your Name f8f4696ce7 Initial commit: Setup Next.js project with basic structure and components 2025-04-17 16:44:47 +02:00