Add study session goals and summaries
This commit is contained in:
@@ -487,6 +487,7 @@ func _launch_mastery_action(item: Dictionary) -> void:
|
||||
_start_review_queue(system_name)
|
||||
return
|
||||
main.show_screen("setup", {
|
||||
"mastery_target": true,
|
||||
"step3_system": system_name,
|
||||
"question_count": int(action.get("questionCount", 10)),
|
||||
"difficulty_min": int(action.get("difficultyMin", 0)) if action.get("difficultyMin") != null else 0,
|
||||
@@ -639,10 +640,28 @@ func _start_review_queue(step3_system: String = "") -> void:
|
||||
return
|
||||
pending_review_launch = true
|
||||
_show_loading_message("Preparing your review queue...")
|
||||
review_queue_service.start_pass(step3_system)
|
||||
set_meta("pending_review_system", step3_system)
|
||||
if not StudySessionService.session_started.is_connected(_on_review_session_started):
|
||||
StudySessionService.session_started.connect(_on_review_session_started)
|
||||
if not StudySessionService.session_failed.is_connected(_on_review_session_failed):
|
||||
StudySessionService.session_failed.connect(_on_review_session_failed)
|
||||
StudySessionService.start("due_reviews", 20, "Tutor", step3_system)
|
||||
_render_review(DashboardService.data)
|
||||
|
||||
|
||||
func _on_review_session_started() -> void:
|
||||
if not pending_review_launch or not visible:
|
||||
return
|
||||
review_queue_service.start_pass(str(get_meta("pending_review_system", "")),
|
||||
int(StudySessionService.progress.get("targetValue", 20)))
|
||||
|
||||
|
||||
func _on_review_session_failed(message: String) -> void:
|
||||
if pending_review_launch and visible:
|
||||
pending_review_launch = false
|
||||
_show_error(message)
|
||||
|
||||
|
||||
func _on_review_question_loaded(question: Dictionary) -> void:
|
||||
if not pending_review_launch or not visible:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user