feat(v3): restructure project + add complete frontend
- Restructure: move backend from new_project/ to backend/ - Add full React/TypeScript frontend (37 pages, 17 services, 16 type defs, 11 query hooks) - Add docs/ with SRS specs, user stories, and workflow documentation - Update .gitignore for new directory layout Workflows implemented: WF1 User Signup, WF2 Placement Test, WF3 Exam Configuration, WF4 General English Exam, WF5 Course Generation, WF6 Entity Student Onboarding, AI Course Generation, Adaptive Learning Engine UI, White-Label Branding, Score Release Made-with: Cursor
This commit is contained in:
3
custom_addons/encoach_adaptive/models/__init__.py
Normal file
3
custom_addons/encoach_adaptive/models/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from . import adaptive_event
|
||||
from . import adaptive_path
|
||||
from . import adaptive_settings
|
||||
19
custom_addons/encoach_adaptive/models/adaptive_event.py
Normal file
19
custom_addons/encoach_adaptive/models/adaptive_event.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class EncoachAdaptiveEvent(models.Model):
|
||||
_name = 'encoach.adaptive.event'
|
||||
_description = 'Adaptive Learning Event'
|
||||
_order = 'created_at desc'
|
||||
|
||||
student_id = fields.Many2one('res.users', required=True, ondelete='cascade', index=True)
|
||||
course_id = fields.Many2one('op.course', ondelete='set null')
|
||||
event_type = fields.Selection([
|
||||
('signal', 'Signal'),
|
||||
('decision', 'Decision'),
|
||||
], required=True)
|
||||
signal_name = fields.Char(size=100)
|
||||
signal_value = fields.Float()
|
||||
decision = fields.Char(size=200)
|
||||
context = fields.Text()
|
||||
created_at = fields.Datetime(default=fields.Datetime.now)
|
||||
16
custom_addons/encoach_adaptive/models/adaptive_path.py
Normal file
16
custom_addons/encoach_adaptive/models/adaptive_path.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class EncoachAdaptivePath(models.Model):
|
||||
_name = 'encoach.adaptive.path'
|
||||
_description = 'Adaptive Learning Path'
|
||||
|
||||
student_id = fields.Many2one('res.users', required=True, ondelete='cascade', index=True)
|
||||
course_id = fields.Many2one('op.course', ondelete='set null')
|
||||
module_queue = fields.Text()
|
||||
source = fields.Selection([
|
||||
('placement', 'Placement'),
|
||||
('exam', 'Exam'),
|
||||
('ai_generated', 'AI Generated'),
|
||||
])
|
||||
next_generation_brief = fields.Text()
|
||||
20
custom_addons/encoach_adaptive/models/adaptive_settings.py
Normal file
20
custom_addons/encoach_adaptive/models/adaptive_settings.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from odoo import api, models, fields
|
||||
|
||||
|
||||
class EncoachAdaptiveSettings(models.Model):
|
||||
_name = 'encoach.adaptive.settings'
|
||||
_description = 'Adaptive Engine Settings'
|
||||
|
||||
teacher_id = fields.Many2one('res.users', ondelete='cascade')
|
||||
entity_id = fields.Many2one('encoach.entity', ondelete='cascade')
|
||||
step_up_threshold = fields.Float(default=0.85)
|
||||
step_down_threshold = fields.Float(default=0.50)
|
||||
micro_lesson_trigger = fields.Integer(default=2)
|
||||
module_skip_threshold = fields.Float(default=0.95)
|
||||
no_progress_alert_days = fields.Integer(default=3)
|
||||
max_retries = fields.Integer(default=3)
|
||||
|
||||
@api.model
|
||||
def _cron_check_no_progress(self):
|
||||
from odoo.addons.encoach_adaptive.services.alert_service import AdaptiveAlertService
|
||||
AdaptiveAlertService.check_no_progress(self.env)
|
||||
Reference in New Issue
Block a user