Add user progress dashboard
This commit is contained in:
@@ -6,6 +6,7 @@ var failures := 0
|
||||
|
||||
|
||||
func _initialize() -> void:
|
||||
_assert(NavigationRoutes.key_for_screen("dashboard") == "home", "dashboard should activate Dashboard navigation")
|
||||
_assert(NavigationRoutes.key_for_screen("selection", "exam") == "home", "exam selection should activate Home")
|
||||
_assert(NavigationRoutes.key_for_screen("selection", "step3") == "home", "Step 3 mode selection should remain part of Home")
|
||||
_assert(NavigationRoutes.key_for_screen("selection", "question_bank") == "question_bank", "direct question bank launch should activate Question Bank")
|
||||
|
||||
@@ -42,6 +42,7 @@ func _run() -> void:
|
||||
host.add_child(main_screen)
|
||||
await process_frame
|
||||
main_screen._update_responsive_layout()
|
||||
_assert(main_screen.screens.has("dashboard"), "the authenticated shell should include the dashboard screen")
|
||||
_assert(main_screen.theme_button.custom_minimum_size == Vector2(44, 44), "the theme toggle should keep a stable square footprint")
|
||||
_assert(main_screen.theme_button.size.x >= 44.0 and main_screen.theme_button.size.y >= 44.0, "the theme toggle should not collapse into an oval")
|
||||
_assert(main_screen.theme_button.icon_alignment == HORIZONTAL_ALIGNMENT_CENTER, "the theme toggle icon should remain centered")
|
||||
|
||||
Reference in New Issue
Block a user