Commit Graph

51 Commits

Author SHA1 Message Date
Nurfog 9e57756528 feat: Monthly token limits per user
Database:
- Add monthly_token_limit and token_limit_reset_day to users table
- Create ai_usage_monthly view for current month usage
- Add check_token_limit() function to verify available tokens
- Add get_user_usage_stats() function for historical usage

API Endpoints:
- PUT /admin/users/{user_id}/token-limit - Set monthly limit
- GET /admin/users/{user_id}/token-usage - Get user's current usage
- GET /admin/users/{user_id}/token-limit/check - Check if user has tokens

Features:
- Default limit: 100,000 tokens/month
- Reset day: 1st of month (configurable 1-28)
- Limit of 0 = unlimited tokens
- Enforce limits at API level (check before AI requests)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-23 16:10:27 -03:00
Nurfog d5679c05e8 fix: CORS headers for video/audio assets streaming
- Added HEAD method to CORS allowed methods
- Added Range header support for video streaming
- Exposed Content-Range and Accept-Ranges headers
- Required for proper video playback from Experience (port 3003) to CMS (port 3001)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-23 13:07:37 -03:00
Nurfog 2ff06ee7ae feat: i18n full support, responsive UI, multi-model AI config, and bug fixes
Major Features:
- Internationalization (i18n) with auto-detection for ES/EN/PT
- Mobile-first responsive design for Studio and Experience
- Multi-model AI configuration (llama3.2:3b, qwen3.5:9b, gpt-oss:latest)
- Course language configuration (auto-detect or fixed per course)

Backend Changes:
- shared/common: ModelType enum for intelligent model selection
- LMS: log_ai_usage function migration (fix chat tutor 500 error)
- LMS/CMS: course language config fields (language_setting, fixed_language)
- LMS: /courses/{id}/language-config endpoint for language detection

Frontend Changes:
- Experience: Enhanced i18n with browser language detection
- Experience: Audio recording with HTTPS check and error handling
- Studio: Memory game with unique pair IDs and debug logging
- Studio: Expanded translations (250+ keys for ES, EN, PT)
- Both: Language selector in headers (mobile responsive)

Documentation:
- AI_MODELS_CONFIG.md: Multi-model configuration guide
- RESPONSIVIDAD_GUIA.md: Mobile-first design patterns
- I18N_RESPONSIVIDAD_IMPLEMENTACION.md: Implementation details
- DEBUG_AUDIO_RECORDING.md: Audio troubleshooting guide
- DEBUG_MEMORY_GAME.md: Memory game debugging steps

Bug Fixes:
- Fix chat tutor 500 error (missing log_ai_usage function)
- Fix audio recording (HTTPS check, browser compatibility)
- Fix memory game pair IDs (unique ID generation)
- Fix HotspotBlock TypeScript errors

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-23 12:24:22 -03:00
Nurfog 0598fc4865 feat: Fix tokens Revenue stream 2026-03-19 14:54:31 -03:00
Nurfog a220e9742f feat:fix data importation 2026-03-19 09:33:33 -03:00
Nurfog 64d3d5be91 feat: implementing embedding AI 2026-03-18 17:15:39 -03:00
Nurfog 55f9a3196e feat: fix AI for generation questions with RAG 2026-03-17 17:44:42 -03:00
Nurfog 31939e31ad feat: fix frontend and activate imports 2026-03-17 13:53:12 -03:00
Nurfog be699ad6ab feat: token count implement 2026-03-17 12:07:56 -03:00
Nurfog 41279585f6 feat: creacion de plantillas para pruebas, prototipo 2026-03-16 12:28:29 -03:00
Nurfog 3167723a89 feat: Update default admin credentials and organization branding, refactor admin creation in install script to direct database insertion, disable rate limiting, and update documentation. 2026-03-13 13:24:06 -03:00
Nurfog c49a49dc19 feat: Add comprehensive project context documentation and refactor CMS service to include HTTP tracing and streamline CORS configuration. 2026-03-13 12:43:32 -03:00
Nurfog 15ecc4e3b2 feat: Update database port to 5433, refine database creation and migration scripts, and add explicit CORS OPTIONS handling to CMS service routes. 2026-03-13 10:46:54 -03:00
Nurfog f9f1238310 feat: Implement health checks, rate limiting, and security headers for services, update Node.js versions, and add Prettier configuration for frontend. 2026-03-12 17:09:05 -03:00
Nurfog 2fe6dcea59 feat: Implement default branding synchronization and improve API header handling. 2026-03-09 17:55:10 -03:00
Nurfog bde5be22e7 feat: Introduce AI code hinting, enforce single-tenant organization model, and add a Code Lab block component. 2026-03-09 17:24:15 -03:00
Nurfog b9c17ce67b feat: Add Mermaid diagram block with AI generation capabilities to lessons. 2026-03-09 14:45:52 -03:00
Nurfog bc5b240984 feat: Implement AI-generated Role Playing and Hotspot interactive content blocks with UI and service integration. 2026-03-09 13:46:47 -03:00
Nurfog 7406de9a1b Remove AI image generation functionality from CMS and expand Docker ignore rules. 2026-03-09 10:06:26 -03:00
Nurfog c034f7223d feat: Unify background task representation and display by introducing generic status, progress, and task type fields across frontend and backend. 2026-03-05 16:58:23 -03:00
Nurfog 01c54429a0 feat: Introduce course marketing features with dedicated metadata, image generation, and UI in both studio and experience apps. 2026-03-04 15:41:34 -03:00
Nurfog 4458decd22 actualizaciones 2026-03-03 17:44:24 -03:00
Nurfog 81e1830563 feat: Implement dark mode styling across UI components and update README with roadmap and system requirements. 2026-03-02 11:29:55 -03:00
Nurfog bbef932776 feat: Implement external MySQL integration for LMS enrollments and grade synchronization, including external_id and tipo_nota support. 2026-02-27 09:20:35 -03:00
Nurfog 947abcb0bc feat: Implement organization-based SSO login with an AsyncCombobox and add logo variant branding options. 2026-02-26 11:50:34 -03:00
Nurfog 7f7ea3d70c feat: Add LTI launch, lesson preview, course progress, bookmarks, and asset management features. 2026-02-23 15:43:45 -03:00
Nurfog f365e585a2 feat: Implement course team management with dedicated UI and API, add course preview token generation, and refactor course settings UI. 2026-02-18 00:01:47 -03:00
Nurfog f9e78a265a feat: Implement advanced grading (rubrics) and lesson dependencies across CMS service, API, and Studio UI. 2026-02-17 22:43:19 -03:00
Nurfog 84bbeb12c6 feat: introduce content library management for reusable content blocks with dedicated API endpoints and database schema. 2026-02-16 20:45:48 -03:00
Nurfog 60e2af72f0 feat: ad interface to upload logo and favicon 2026-01-23 11:43:17 -03:00
Nurfog 3ae67b23c9 feat: add favicon, logo and Update the platform name (only available to the superuser) and company names 2026-01-23 09:32:36 -03:00
Nurfog 957539d201 feat: se aplican varios fix a las pruebas 2026-01-22 13:24:48 -03:00
Nurfog 00ae5ac16b feat: Introduce external API endpoints with API key authentication and re-enable Whisper transcription and Ollama summarization. 2026-01-21 16:22:12 -03:00
Nurfog 46b6253f22 feat: Introduce asset picker modal and audio response blocks, refactor CMS asset API routes, and update dependencies. 2026-01-18 01:02:01 -03:00
Nurfog 02909ea85a feat: Implement course-level asset management and interactive media markers. 2026-01-17 13:55:04 -03:00
Nurfog 05faa20993 feat: Add i18n support, new content block types, course export, and lesson interaction tracking. 2026-01-17 02:19:39 -03:00
Nurfog b166387a48 feat: Implement user profile management, add multi-language interactive transcripts, and lay groundwork for SSO. 2026-01-17 00:26:42 -03:00
Nurfog 2cfd1f204b feat: Implement admin background task management and configurable media block transcript visibility. 2026-01-16 17:02:00 -03:00
Nurfog 663950aa0e feat: Introduce multi-tenancy support with organization-specific data, add interactive transcript functionality, and enhance lesson/course schemas. 2026-01-15 18:02:04 -03:00
Nurfog b1eb23926e feat: database-first refactor, unified architecture and visual developer manual
Summary of changes:
- Consolidated Studio+CMS and Experience+LMS into unified services.
- Moved core business logic (enrollment, grading, auth) to PostgreSQL functions.
- Implemented advanced auditing via DB triggers and session context.
- Added gamification (XP/Levels/Leaderboards) and logic encapsulation.
- Updated installation/diagnostic scripts for the new architecture.
- Created a comprehensive Visual Developer Manual in README.md with hardware scaling.
2026-01-11 02:34:23 -03:00
Nurfog ad56d8a81c feat: introduce CourseEditorLayout and AppHeader, add organization domain migration, and update Docker configurations and auth scripts 2025-12-29 18:00:34 -03:00
Nurfog 158aa5b315 feat: Implement organization branding, course pacing, and display upcoming deadlines in the experience portal. 2025-12-29 01:30:48 -03:00
Nurfog 1a2b9e473c feat: add organization branding support with database fields and API for logo upload and color customization. 2025-12-28 22:08:03 -03:00
Nurfog 8b016e4786 feat: Implement module update functionality with a new API endpoint, client method, and @hello-pangea/dnd dependency. 2025-12-26 15:09:13 -03:00
Nurfog e98a16d860 feat: Implement AI-driven lesson summaries, automate quiz generation, add gamification base, and introduce Studio organization management. 2025-12-26 14:58:58 -03:00
Nurfog e772d430b1 feat: Implement multi-tenancy with new database migrations, API updates across services, and refactor frontend API calls. 2025-12-26 10:59:07 -03:00
Nurfog f695ed7213 feat: implement audit logging and add certificate template field to courses 2025-12-23 11:04:36 -03:00
Nurfog 72ddb43fd7 feat: Implement comprehensive course analytics, RBAC with roles and authentication, and dynamic passing thresholds. 2025-12-23 10:12:53 -03:00
Nurfog 32f71852d9 feat: update CMS service handlers and main application logic. 2025-12-22 13:54:35 -03:00
Nurfog 57b8d7c0a1 feat: Introduce new interactive content blocks including Fill-in-the-Blanks, Short Answer, Ordering, and Matching, with corresponding API, database, and UI integration. 2025-12-19 17:03:26 -03:00