@almadar/std 8.3.0 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/behaviors/registry/agent/atoms/std-agent-activity-log.orb +62 -62
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +101 -101
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +100 -100
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +103 -103
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +386 -386
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +94 -94
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +66 -66
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +114 -114
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +61 -61
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +109 -109
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +196 -196
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +347 -347
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +61 -60
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +187 -187
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +180 -180
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +108 -108
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +107 -107
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +184 -184
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1130 -1130
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +2998 -2998
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2135 -2135
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1033 -1033
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +784 -784
  24. package/behaviors/registry/app/organisms/std-api-gateway.orb +798 -798
  25. package/behaviors/registry/app/organisms/std-booking-system.orb +1139 -1139
  26. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +776 -776
  27. package/behaviors/registry/app/organisms/std-cms.orb +469 -469
  28. package/behaviors/registry/app/organisms/std-coding-academy.orb +338 -338
  29. package/behaviors/registry/app/organisms/std-crm.orb +832 -832
  30. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1350 -1350
  31. package/behaviors/registry/app/organisms/std-ecommerce.orb +975 -975
  32. package/behaviors/registry/app/organisms/std-finance-tracker.orb +573 -573
  33. package/behaviors/registry/app/organisms/std-healthcare.orb +1370 -1370
  34. package/behaviors/registry/app/organisms/std-helpdesk.orb +617 -617
  35. package/behaviors/registry/app/organisms/std-hr-portal.orb +1177 -1177
  36. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +871 -871
  37. package/behaviors/registry/app/organisms/std-lms.orb +839 -839
  38. package/behaviors/registry/app/organisms/std-project-manager.orb +667 -667
  39. package/behaviors/registry/app/organisms/std-realtime-chat.orb +667 -667
  40. package/behaviors/registry/app/organisms/std-social-feed.orb +230 -230
  41. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +682 -682
  42. package/behaviors/registry/core/atoms/std-browse.orb +53 -53
  43. package/behaviors/registry/core/atoms/std-cache-aside.orb +89 -89
  44. package/behaviors/registry/core/atoms/std-calendar.orb +57 -57
  45. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +196 -196
  46. package/behaviors/registry/core/atoms/std-confirmation.orb +19 -19
  47. package/behaviors/registry/core/atoms/std-display.orb +383 -383
  48. package/behaviors/registry/core/atoms/std-drawer.orb +56 -56
  49. package/behaviors/registry/core/atoms/std-filter.orb +42 -42
  50. package/behaviors/registry/core/atoms/std-gallery.orb +54 -54
  51. package/behaviors/registry/core/atoms/std-modal.orb +12 -12
  52. package/behaviors/registry/core/atoms/std-pagination.orb +42 -42
  53. package/behaviors/registry/core/atoms/std-push.orb +42 -42
  54. package/behaviors/registry/core/atoms/std-rate-limiter.orb +179 -179
  55. package/behaviors/registry/core/atoms/std-related.orb +34 -34
  56. package/behaviors/registry/core/atoms/std-search.orb +68 -68
  57. package/behaviors/registry/core/atoms/std-selection.orb +90 -90
  58. package/behaviors/registry/core/atoms/std-tabs.orb +52 -52
  59. package/behaviors/registry/core/molecules/std-cart.orb +45 -45
  60. package/behaviors/registry/core/molecules/std-filtered-list.orb +7 -7
  61. package/behaviors/registry/core/molecules/std-form-advanced.orb +127 -127
  62. package/behaviors/registry/core/molecules/std-list.orb +46 -46
  63. package/behaviors/registry/core/molecules/std-wizard-form.orb +147 -147
  64. package/behaviors/registry/game/atoms/std-collision.orb +121 -121
  65. package/behaviors/registry/game/atoms/std-combat.orb +68 -68
  66. package/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  67. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +48 -48
  68. package/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
  69. package/behaviors/registry/game/atoms/std-movement.orb +306 -306
  70. package/behaviors/registry/game/atoms/std-overworld.orb +68 -68
  71. package/behaviors/registry/game/atoms/std-physics2d.orb +76 -76
  72. package/behaviors/registry/game/atoms/std-quest.orb +124 -124
  73. package/behaviors/registry/game/atoms/std-timer.orb +274 -274
  74. package/behaviors/registry/game/organisms/std-arcade-game.orb +145 -145
  75. package/behaviors/registry/game/organisms/std-logic-training.orb +67 -67
  76. package/behaviors/registry/game/organisms/std-platformer-app.orb +218 -218
  77. package/behaviors/registry/game/organisms/std-puzzle-app.orb +90 -90
  78. package/behaviors/registry/game/organisms/std-rpg-game.orb +372 -372
  79. package/behaviors/registry/game/organisms/std-stem-lab.orb +345 -345
  80. package/behaviors/registry/game/organisms/std-strategy-game.orb +540 -540
  81. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +14 -14
  82. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +86 -86
  83. package/behaviors/registry/service/atoms/std-service-email.orb +72 -72
  84. package/behaviors/registry/service/atoms/std-service-github.orb +98 -98
  85. package/behaviors/registry/service/atoms/std-service-llm.orb +118 -118
  86. package/behaviors/registry/service/atoms/std-service-oauth.orb +118 -118
  87. package/behaviors/registry/service/atoms/std-service-redis.orb +103 -103
  88. package/behaviors/registry/service/atoms/std-service-storage.orb +105 -105
  89. package/behaviors/registry/service/atoms/std-service-stripe.orb +95 -95
  90. package/behaviors/registry/service/atoms/std-service-twilio.orb +107 -107
  91. package/behaviors/registry/service/atoms/std-service-youtube.orb +104 -104
  92. package/behaviors/registry/service/organisms/std-service-marketplace.orb +966 -966
  93. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +905 -905
  94. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +62 -62
  95. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +101 -101
  96. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +100 -100
  97. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +103 -103
  98. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +386 -386
  99. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +94 -94
  100. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +66 -66
  101. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +114 -114
  102. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +61 -61
  103. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +109 -109
  104. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +196 -196
  105. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +347 -347
  106. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +61 -60
  107. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +187 -187
  108. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +180 -180
  109. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +108 -108
  110. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +107 -107
  111. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +184 -184
  112. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1130 -1130
  113. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +2998 -2998
  114. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2135 -2135
  115. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1033 -1033
  116. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +784 -784
  117. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +798 -798
  118. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1139 -1139
  119. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +776 -776
  120. package/dist/behaviors/registry/app/organisms/std-cms.orb +469 -469
  121. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +338 -338
  122. package/dist/behaviors/registry/app/organisms/std-crm.orb +832 -832
  123. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1350 -1350
  124. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +975 -975
  125. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +573 -573
  126. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1370 -1370
  127. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +617 -617
  128. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1177 -1177
  129. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +871 -871
  130. package/dist/behaviors/registry/app/organisms/std-lms.orb +839 -839
  131. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +667 -667
  132. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +667 -667
  133. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +230 -230
  134. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +682 -682
  135. package/dist/behaviors/registry/core/atoms/std-browse.orb +53 -53
  136. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +89 -89
  137. package/dist/behaviors/registry/core/atoms/std-calendar.orb +57 -57
  138. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +196 -196
  139. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +19 -19
  140. package/dist/behaviors/registry/core/atoms/std-display.orb +383 -383
  141. package/dist/behaviors/registry/core/atoms/std-drawer.orb +56 -56
  142. package/dist/behaviors/registry/core/atoms/std-filter.orb +42 -42
  143. package/dist/behaviors/registry/core/atoms/std-gallery.orb +54 -54
  144. package/dist/behaviors/registry/core/atoms/std-modal.orb +12 -12
  145. package/dist/behaviors/registry/core/atoms/std-pagination.orb +42 -42
  146. package/dist/behaviors/registry/core/atoms/std-push.orb +42 -42
  147. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +179 -179
  148. package/dist/behaviors/registry/core/atoms/std-related.orb +34 -34
  149. package/dist/behaviors/registry/core/atoms/std-search.orb +68 -68
  150. package/dist/behaviors/registry/core/atoms/std-selection.orb +90 -90
  151. package/dist/behaviors/registry/core/atoms/std-tabs.orb +52 -52
  152. package/dist/behaviors/registry/core/molecules/std-cart.orb +45 -45
  153. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +7 -7
  154. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +127 -127
  155. package/dist/behaviors/registry/core/molecules/std-list.orb +46 -46
  156. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +147 -147
  157. package/dist/behaviors/registry/game/atoms/std-collision.orb +121 -121
  158. package/dist/behaviors/registry/game/atoms/std-combat.orb +68 -68
  159. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  160. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +48 -48
  161. package/dist/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
  162. package/dist/behaviors/registry/game/atoms/std-movement.orb +306 -306
  163. package/dist/behaviors/registry/game/atoms/std-overworld.orb +68 -68
  164. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +76 -76
  165. package/dist/behaviors/registry/game/atoms/std-quest.orb +124 -124
  166. package/dist/behaviors/registry/game/atoms/std-timer.orb +274 -274
  167. package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +145 -145
  168. package/dist/behaviors/registry/game/organisms/std-logic-training.orb +67 -67
  169. package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +218 -218
  170. package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +90 -90
  171. package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +372 -372
  172. package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +345 -345
  173. package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +540 -540
  174. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +14 -14
  175. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +86 -86
  176. package/dist/behaviors/registry/service/atoms/std-service-email.orb +72 -72
  177. package/dist/behaviors/registry/service/atoms/std-service-github.orb +98 -98
  178. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +118 -118
  179. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +118 -118
  180. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +103 -103
  181. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +105 -105
  182. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +95 -95
  183. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +107 -107
  184. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +104 -104
  185. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +966 -966
  186. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +905 -905
  187. package/package.json +1 -1
@@ -352,33 +352,34 @@
352
352
  "render-ui",
353
353
  "main",
354
354
  {
355
- "type": "dashboard-layout",
356
355
  "navItems": [
357
356
  {
358
- "icon": "book-open",
359
357
  "label": "Teach",
358
+ "icon": "book-open",
360
359
  "href": "/teach"
361
360
  },
362
361
  {
363
- "icon": "help-circle",
364
362
  "label": "Quiz",
363
+ "icon": "help-circle",
365
364
  "href": "/quiz"
366
365
  },
367
366
  {
367
+ "label": "Concepts",
368
368
  "href": "/concepts",
369
- "icon": "brain",
370
- "label": "Concepts"
369
+ "icon": "brain"
371
370
  }
372
371
  ],
373
- "appName": "AI Tutor",
372
+ "type": "dashboard-layout",
374
373
  "children": [
375
374
  {
375
+ "type": "stack",
376
376
  "direction": "vertical",
377
+ "gap": "lg",
377
378
  "children": [
378
379
  {
379
- "type": "stack",
380
- "direction": "horizontal",
381
380
  "align": "center",
381
+ "direction": "horizontal",
382
+ "type": "stack",
382
383
  "gap": "sm",
383
384
  "children": [
384
385
  {
@@ -387,8 +388,8 @@
387
388
  },
388
389
  {
389
390
  "variant": "h2",
390
- "content": "Tutor",
391
- "type": "typography"
391
+ "type": "typography",
392
+ "content": "Tutor"
392
393
  }
393
394
  ]
394
395
  },
@@ -396,36 +397,35 @@
396
397
  "type": "divider"
397
398
  },
398
399
  {
399
- "type": "card",
400
400
  "children": [
401
401
  {
402
+ "type": "stack",
402
403
  "gap": "md",
403
- "direction": "vertical",
404
404
  "children": [
405
405
  {
406
+ "content": "What topic would you like to learn about? The tutor will assess your level and guide you through it.",
406
407
  "variant": "body",
407
- "type": "typography",
408
- "content": "What topic would you like to learn about? The tutor will assess your level and guide you through it."
408
+ "type": "typography"
409
409
  },
410
410
  {
411
- "mode": "edit",
412
- "submitEvent": "START_SESSION",
413
411
  "type": "form-section",
414
- "entity": "@entity",
415
412
  "fields": [
416
413
  "topic"
417
- ]
414
+ ],
415
+ "mode": "edit",
416
+ "entity": "@entity",
417
+ "submitEvent": "START_SESSION"
418
418
  }
419
419
  ],
420
- "type": "stack"
420
+ "direction": "vertical"
421
421
  }
422
- ]
422
+ ],
423
+ "type": "card"
423
424
  }
424
- ],
425
- "gap": "lg",
426
- "type": "stack"
425
+ ]
427
426
  }
428
- ]
427
+ ],
428
+ "appName": "AI Tutor"
429
429
  }
430
430
  ]
431
431
  ]
@@ -457,6 +457,8 @@
457
457
  "render-ui",
458
458
  "main",
459
459
  {
460
+ "type": "dashboard-layout",
461
+ "appName": "AI Tutor",
460
462
  "children": [
461
463
  {
462
464
  "children": [
@@ -465,44 +467,42 @@
465
467
  "name": "search"
466
468
  },
467
469
  {
468
- "variant": "h3",
469
470
  "type": "typography",
470
- "content": "Assessing your level..."
471
+ "content": "Assessing your level...",
472
+ "variant": "h3"
471
473
  },
472
474
  {
473
475
  "type": "spinner"
474
476
  },
475
477
  {
478
+ "variant": "caption",
476
479
  "type": "typography",
477
- "content": "Recalling prior learning and classifying skill level",
478
- "variant": "caption"
480
+ "content": "Recalling prior learning and classifying skill level"
479
481
  }
480
482
  ],
481
- "gap": "lg",
482
483
  "type": "stack",
483
- "direction": "vertical",
484
- "align": "center"
484
+ "align": "center",
485
+ "gap": "lg",
486
+ "direction": "vertical"
485
487
  }
486
488
  ],
487
- "type": "dashboard-layout",
488
489
  "navItems": [
489
490
  {
491
+ "icon": "book-open",
490
492
  "label": "Teach",
491
- "href": "/teach",
492
- "icon": "book-open"
493
+ "href": "/teach"
493
494
  },
494
495
  {
495
496
  "icon": "help-circle",
496
- "label": "Quiz",
497
- "href": "/quiz"
497
+ "href": "/quiz",
498
+ "label": "Quiz"
498
499
  },
499
500
  {
500
501
  "label": "Concepts",
501
502
  "href": "/concepts",
502
503
  "icon": "brain"
503
504
  }
504
- ],
505
- "appName": "AI Tutor"
505
+ ]
506
506
  }
507
507
  ]
508
508
  ]
@@ -530,38 +530,25 @@
530
530
  "render-ui",
531
531
  "main",
532
532
  {
533
- "navItems": [
534
- {
535
- "icon": "book-open",
536
- "label": "Teach",
537
- "href": "/teach"
538
- },
539
- {
540
- "href": "/quiz",
541
- "label": "Quiz",
542
- "icon": "help-circle"
543
- },
544
- {
545
- "label": "Concepts",
546
- "icon": "brain",
547
- "href": "/concepts"
548
- }
549
- ],
533
+ "appName": "AI Tutor",
550
534
  "children": [
551
535
  {
552
- "gap": "lg",
553
- "direction": "vertical",
554
- "type": "stack",
555
536
  "children": [
556
537
  {
557
- "justify": "between",
558
538
  "type": "stack",
539
+ "direction": "horizontal",
540
+ "align": "center",
541
+ "justify": "between",
542
+ "gap": "sm",
559
543
  "children": [
560
544
  {
545
+ "type": "stack",
546
+ "direction": "horizontal",
547
+ "gap": "sm",
561
548
  "children": [
562
549
  {
563
- "name": "book-open",
564
- "type": "icon"
550
+ "type": "icon",
551
+ "name": "book-open"
565
552
  },
566
553
  {
567
554
  "content": "Lesson: @entity.topic",
@@ -569,69 +556,66 @@
569
556
  "type": "typography"
570
557
  }
571
558
  ],
572
- "direction": "horizontal",
573
- "align": "center",
574
- "gap": "sm",
575
- "type": "stack"
559
+ "align": "center"
576
560
  },
577
561
  {
578
- "type": "badge",
579
- "label": "@entity.studentLevel"
562
+ "label": "@entity.studentLevel",
563
+ "type": "badge"
580
564
  }
581
- ],
582
- "direction": "horizontal",
583
- "gap": "sm",
584
- "align": "center"
565
+ ]
585
566
  },
586
567
  {
587
568
  "type": "divider"
588
569
  },
589
570
  {
571
+ "type": "card",
590
572
  "children": [
591
573
  {
574
+ "gap": "md",
592
575
  "type": "stack",
593
576
  "direction": "vertical",
594
- "gap": "md",
595
577
  "children": [
596
578
  {
597
- "content": "@entity.explanation",
598
579
  "variant": "body",
580
+ "content": "@entity.explanation",
599
581
  "type": "typography"
600
582
  }
601
583
  ]
602
584
  }
603
- ],
604
- "type": "card"
585
+ ]
605
586
  },
606
587
  {
607
588
  "type": "stack",
608
589
  "direction": "horizontal",
609
590
  "children": [
610
591
  {
611
- "type": "button",
612
- "action": "START_QUIZ",
613
592
  "label": "Quiz Me",
593
+ "action": "START_QUIZ",
594
+ "type": "button",
614
595
  "variant": "primary",
615
596
  "icon": "help-circle"
616
597
  },
617
598
  {
618
599
  "variant": "secondary",
600
+ "type": "button",
619
601
  "icon": "book-open",
620
602
  "label": "Explain More",
621
- "action": "EXPLAIN_MORE",
622
- "type": "button"
603
+ "action": "EXPLAIN_MORE"
623
604
  },
624
605
  {
625
- "label": "New Topic",
626
- "icon": "rotate-ccw",
627
606
  "type": "button",
607
+ "action": "RESET",
608
+ "icon": "rotate-ccw",
628
609
  "variant": "ghost",
629
- "action": "RESET"
610
+ "label": "New Topic"
630
611
  }
631
612
  ],
632
613
  "gap": "sm"
633
614
  },
634
615
  {
616
+ "type": "stack",
617
+ "direction": "horizontal",
618
+ "gap": "xs",
635
619
  "children": [
636
620
  {
637
621
  "label": "@entity.questionsAsked",
@@ -641,16 +625,32 @@
641
625
  "type": "badge",
642
626
  "label": "@entity.correctAnswers"
643
627
  }
644
- ],
645
- "type": "stack",
646
- "direction": "horizontal",
647
- "gap": "xs"
628
+ ]
648
629
  }
649
- ]
630
+ ],
631
+ "type": "stack",
632
+ "gap": "lg",
633
+ "direction": "vertical"
650
634
  }
651
635
  ],
652
636
  "type": "dashboard-layout",
653
- "appName": "AI Tutor"
637
+ "navItems": [
638
+ {
639
+ "label": "Teach",
640
+ "href": "/teach",
641
+ "icon": "book-open"
642
+ },
643
+ {
644
+ "href": "/quiz",
645
+ "label": "Quiz",
646
+ "icon": "help-circle"
647
+ },
648
+ {
649
+ "href": "/concepts",
650
+ "label": "Concepts",
651
+ "icon": "brain"
652
+ }
653
+ ]
654
654
  }
655
655
  ]
656
656
  ]
@@ -668,57 +668,57 @@
668
668
  "render-ui",
669
669
  "main",
670
670
  {
671
- "appName": "AI Tutor",
672
- "type": "dashboard-layout",
673
671
  "navItems": [
674
672
  {
675
- "icon": "book-open",
676
673
  "href": "/teach",
677
- "label": "Teach"
674
+ "label": "Teach",
675
+ "icon": "book-open"
678
676
  },
679
677
  {
678
+ "icon": "help-circle",
680
679
  "href": "/quiz",
681
- "label": "Quiz",
682
- "icon": "help-circle"
680
+ "label": "Quiz"
683
681
  },
684
682
  {
685
- "icon": "brain",
683
+ "label": "Concepts",
686
684
  "href": "/concepts",
687
- "label": "Concepts"
685
+ "icon": "brain"
688
686
  }
689
687
  ],
688
+ "appName": "AI Tutor",
690
689
  "children": [
691
690
  {
691
+ "direction": "vertical",
692
692
  "children": [
693
693
  {
694
- "align": "center",
695
- "type": "stack",
696
- "direction": "horizontal",
697
- "gap": "sm",
698
- "justify": "between",
699
694
  "children": [
700
695
  {
696
+ "type": "stack",
697
+ "align": "center",
698
+ "direction": "horizontal",
701
699
  "children": [
702
700
  {
703
701
  "type": "icon",
704
702
  "name": "book-open"
705
703
  },
706
704
  {
707
- "variant": "h2",
708
705
  "type": "typography",
709
- "content": "Lesson: @entity.topic"
706
+ "content": "Lesson: @entity.topic",
707
+ "variant": "h2"
710
708
  }
711
709
  ],
712
- "align": "center",
713
- "direction": "horizontal",
714
- "type": "stack",
715
710
  "gap": "sm"
716
711
  },
717
712
  {
718
713
  "type": "badge",
719
714
  "label": "@entity.studentLevel"
720
715
  }
721
- ]
716
+ ],
717
+ "type": "stack",
718
+ "justify": "between",
719
+ "direction": "horizontal",
720
+ "align": "center",
721
+ "gap": "sm"
722
722
  },
723
723
  {
724
724
  "type": "divider"
@@ -727,49 +727,48 @@
727
727
  "type": "card",
728
728
  "children": [
729
729
  {
730
- "type": "stack",
731
730
  "gap": "md",
731
+ "type": "stack",
732
+ "direction": "vertical",
732
733
  "children": [
733
734
  {
734
- "type": "typography",
735
735
  "content": "@entity.explanation",
736
+ "type": "typography",
736
737
  "variant": "body"
737
738
  }
738
- ],
739
- "direction": "vertical"
739
+ ]
740
740
  }
741
741
  ]
742
742
  },
743
743
  {
744
- "gap": "sm",
744
+ "type": "stack",
745
745
  "direction": "horizontal",
746
+ "gap": "sm",
746
747
  "children": [
747
748
  {
748
- "variant": "primary",
749
- "label": "Quiz Me",
750
749
  "type": "button",
750
+ "label": "Quiz Me",
751
+ "icon": "help-circle",
751
752
  "action": "START_QUIZ",
752
- "icon": "help-circle"
753
+ "variant": "primary"
753
754
  },
754
755
  {
755
756
  "action": "EXPLAIN_MORE",
756
757
  "type": "button",
757
- "icon": "book-open",
758
+ "label": "Explain More",
758
759
  "variant": "secondary",
759
- "label": "Explain More"
760
+ "icon": "book-open"
760
761
  },
761
762
  {
762
- "type": "button",
763
- "label": "New Topic",
764
763
  "action": "RESET",
765
764
  "variant": "ghost",
766
- "icon": "rotate-ccw"
765
+ "icon": "rotate-ccw",
766
+ "type": "button",
767
+ "label": "New Topic"
767
768
  }
768
- ],
769
- "type": "stack"
769
+ ]
770
770
  },
771
771
  {
772
- "direction": "horizontal",
773
772
  "gap": "xs",
774
773
  "children": [
775
774
  {
@@ -781,14 +780,15 @@
781
780
  "type": "badge"
782
781
  }
783
782
  ],
784
- "type": "stack"
783
+ "type": "stack",
784
+ "direction": "horizontal"
785
785
  }
786
786
  ],
787
- "direction": "vertical",
788
- "gap": "lg",
789
- "type": "stack"
787
+ "type": "stack",
788
+ "gap": "lg"
790
789
  }
791
- ]
790
+ ],
791
+ "type": "dashboard-layout"
792
792
  }
793
793
  ]
794
794
  ]
@@ -808,123 +808,123 @@
808
808
  {
809
809
  "appName": "AI Tutor",
810
810
  "type": "dashboard-layout",
811
+ "navItems": [
812
+ {
813
+ "icon": "book-open",
814
+ "href": "/teach",
815
+ "label": "Teach"
816
+ },
817
+ {
818
+ "label": "Quiz",
819
+ "icon": "help-circle",
820
+ "href": "/quiz"
821
+ },
822
+ {
823
+ "icon": "brain",
824
+ "label": "Concepts",
825
+ "href": "/concepts"
826
+ }
827
+ ],
811
828
  "children": [
812
829
  {
830
+ "gap": "lg",
831
+ "direction": "vertical",
813
832
  "children": [
814
833
  {
815
- "align": "center",
816
- "justify": "between",
817
834
  "type": "stack",
818
835
  "direction": "horizontal",
819
- "gap": "sm",
836
+ "align": "center",
837
+ "justify": "between",
820
838
  "children": [
821
839
  {
822
- "type": "stack",
823
- "direction": "horizontal",
824
- "gap": "sm",
825
- "align": "center",
826
840
  "children": [
827
841
  {
828
842
  "type": "icon",
829
843
  "name": "book-open"
830
844
  },
831
845
  {
846
+ "content": "Lesson: @entity.topic",
832
847
  "type": "typography",
833
- "variant": "h2",
834
- "content": "Lesson: @entity.topic"
848
+ "variant": "h2"
835
849
  }
836
- ]
850
+ ],
851
+ "direction": "horizontal",
852
+ "type": "stack",
853
+ "gap": "sm",
854
+ "align": "center"
837
855
  },
838
856
  {
839
- "label": "@entity.studentLevel",
840
- "type": "badge"
857
+ "type": "badge",
858
+ "label": "@entity.studentLevel"
841
859
  }
842
- ]
860
+ ],
861
+ "gap": "sm"
843
862
  },
844
863
  {
845
864
  "type": "divider"
846
865
  },
847
866
  {
867
+ "type": "card",
848
868
  "children": [
849
869
  {
850
870
  "direction": "vertical",
851
871
  "gap": "md",
852
- "type": "stack",
853
872
  "children": [
854
873
  {
855
- "variant": "body",
874
+ "type": "typography",
856
875
  "content": "@entity.explanation",
857
- "type": "typography"
876
+ "variant": "body"
858
877
  }
859
- ]
878
+ ],
879
+ "type": "stack"
860
880
  }
861
- ],
862
- "type": "card"
881
+ ]
863
882
  },
864
883
  {
865
- "direction": "horizontal",
866
884
  "gap": "sm",
867
885
  "type": "stack",
868
886
  "children": [
869
887
  {
870
- "label": "Quiz Me",
871
888
  "action": "START_QUIZ",
872
- "type": "button",
873
889
  "icon": "help-circle",
874
- "variant": "primary"
890
+ "type": "button",
891
+ "variant": "primary",
892
+ "label": "Quiz Me"
875
893
  },
876
894
  {
895
+ "label": "Explain More",
877
896
  "type": "button",
878
- "action": "EXPLAIN_MORE",
879
- "variant": "secondary",
880
897
  "icon": "book-open",
881
- "label": "Explain More"
898
+ "action": "EXPLAIN_MORE",
899
+ "variant": "secondary"
882
900
  },
883
901
  {
884
- "label": "New Topic",
902
+ "action": "RESET",
903
+ "variant": "ghost",
885
904
  "type": "button",
886
905
  "icon": "rotate-ccw",
887
- "variant": "ghost",
888
- "action": "RESET"
906
+ "label": "New Topic"
889
907
  }
890
- ]
908
+ ],
909
+ "direction": "horizontal"
891
910
  },
892
911
  {
893
- "direction": "horizontal",
912
+ "type": "stack",
894
913
  "children": [
895
914
  {
896
915
  "type": "badge",
897
916
  "label": "@entity.questionsAsked"
898
917
  },
899
918
  {
900
- "label": "@entity.correctAnswers",
901
- "type": "badge"
919
+ "type": "badge",
920
+ "label": "@entity.correctAnswers"
902
921
  }
903
922
  ],
904
- "type": "stack",
923
+ "direction": "horizontal",
905
924
  "gap": "xs"
906
925
  }
907
926
  ],
908
- "type": "stack",
909
- "gap": "lg",
910
- "direction": "vertical"
911
- }
912
- ],
913
- "navItems": [
914
- {
915
- "label": "Teach",
916
- "href": "/teach",
917
- "icon": "book-open"
918
- },
919
- {
920
- "icon": "help-circle",
921
- "href": "/quiz",
922
- "label": "Quiz"
923
- },
924
- {
925
- "label": "Concepts",
926
- "icon": "brain",
927
- "href": "/concepts"
927
+ "type": "stack"
928
928
  }
929
929
  ]
930
930
  }
@@ -967,59 +967,61 @@
967
967
  {
968
968
  "children": [
969
969
  {
970
- "direction": "vertical",
970
+ "gap": "lg",
971
971
  "children": [
972
972
  {
973
973
  "type": "stack",
974
- "direction": "horizontal",
975
- "align": "center",
976
974
  "gap": "sm",
975
+ "align": "center",
977
976
  "children": [
978
977
  {
979
- "type": "icon",
980
- "name": "graduation-cap"
978
+ "name": "graduation-cap",
979
+ "type": "icon"
981
980
  },
982
981
  {
982
+ "content": "Tutor",
983
983
  "variant": "h2",
984
- "type": "typography",
985
- "content": "Tutor"
984
+ "type": "typography"
986
985
  }
987
- ]
986
+ ],
987
+ "direction": "horizontal"
988
988
  },
989
989
  {
990
990
  "type": "divider"
991
991
  },
992
992
  {
993
+ "type": "card",
993
994
  "children": [
994
995
  {
996
+ "gap": "md",
995
997
  "children": [
996
998
  {
997
- "variant": "body",
998
999
  "content": "What topic would you like to learn about? The tutor will assess your level and guide you through it.",
999
- "type": "typography"
1000
+ "type": "typography",
1001
+ "variant": "body"
1000
1002
  },
1001
1003
  {
1002
- "entity": "@entity",
1003
1004
  "type": "form-section",
1004
- "mode": "edit",
1005
1005
  "submitEvent": "START_SESSION",
1006
1006
  "fields": [
1007
1007
  "topic"
1008
- ]
1008
+ ],
1009
+ "entity": "@entity",
1010
+ "mode": "edit"
1009
1011
  }
1010
1012
  ],
1011
1013
  "direction": "vertical",
1012
- "type": "stack",
1013
- "gap": "md"
1014
+ "type": "stack"
1014
1015
  }
1015
- ],
1016
- "type": "card"
1016
+ ]
1017
1017
  }
1018
1018
  ],
1019
1019
  "type": "stack",
1020
- "gap": "lg"
1020
+ "direction": "vertical"
1021
1021
  }
1022
1022
  ],
1023
+ "appName": "AI Tutor",
1024
+ "type": "dashboard-layout",
1023
1025
  "navItems": [
1024
1026
  {
1025
1027
  "label": "Teach",
@@ -1032,13 +1034,11 @@
1032
1034
  "href": "/quiz"
1033
1035
  },
1034
1036
  {
1035
- "href": "/concepts",
1037
+ "icon": "brain",
1036
1038
  "label": "Concepts",
1037
- "icon": "brain"
1039
+ "href": "/concepts"
1038
1040
  }
1039
- ],
1040
- "appName": "AI Tutor",
1041
- "type": "dashboard-layout"
1041
+ ]
1042
1042
  }
1043
1043
  ]
1044
1044
  ]
@@ -1256,11 +1256,13 @@
1256
1256
  "render-ui",
1257
1257
  "main",
1258
1258
  {
1259
+ "type": "dashboard-layout",
1260
+ "appName": "AI Tutor",
1259
1261
  "navItems": [
1260
1262
  {
1263
+ "href": "/teach",
1261
1264
  "icon": "book-open",
1262
- "label": "Teach",
1263
- "href": "/teach"
1265
+ "label": "Teach"
1264
1266
  },
1265
1267
  {
1266
1268
  "href": "/quiz",
@@ -1269,44 +1271,42 @@
1269
1271
  },
1270
1272
  {
1271
1273
  "label": "Concepts",
1272
- "href": "/concepts",
1273
- "icon": "brain"
1274
+ "icon": "brain",
1275
+ "href": "/concepts"
1274
1276
  }
1275
1277
  ],
1276
- "type": "dashboard-layout",
1277
- "appName": "AI Tutor",
1278
1278
  "children": [
1279
1279
  {
1280
- "gap": "lg",
1281
- "direction": "vertical",
1282
1280
  "children": [
1283
1281
  {
1282
+ "type": "stack",
1283
+ "direction": "horizontal",
1284
+ "align": "center",
1284
1285
  "children": [
1285
1286
  {
1286
1287
  "type": "icon",
1287
1288
  "name": "help-circle"
1288
1289
  },
1289
1290
  {
1290
- "type": "typography",
1291
+ "variant": "h2",
1291
1292
  "content": "Quiz",
1292
- "variant": "h2"
1293
+ "type": "typography"
1293
1294
  }
1294
1295
  ],
1295
- "type": "stack",
1296
- "direction": "horizontal",
1297
- "align": "center",
1298
1296
  "gap": "sm"
1299
1297
  },
1300
1298
  {
1301
1299
  "type": "divider"
1302
1300
  },
1303
1301
  {
1304
- "variant": "body",
1302
+ "content": "Waiting for a quiz to start...",
1305
1303
  "type": "typography",
1306
- "content": "Waiting for a quiz to start..."
1304
+ "variant": "body"
1307
1305
  }
1308
1306
  ],
1309
- "type": "stack"
1307
+ "type": "stack",
1308
+ "direction": "vertical",
1309
+ "gap": "lg"
1310
1310
  }
1311
1311
  ]
1312
1312
  }
@@ -1331,13 +1331,32 @@
1331
1331
  "render-ui",
1332
1332
  "main",
1333
1333
  {
1334
+ "appName": "AI Tutor",
1334
1335
  "type": "dashboard-layout",
1336
+ "navItems": [
1337
+ {
1338
+ "icon": "book-open",
1339
+ "label": "Teach",
1340
+ "href": "/teach"
1341
+ },
1342
+ {
1343
+ "href": "/quiz",
1344
+ "icon": "help-circle",
1345
+ "label": "Quiz"
1346
+ },
1347
+ {
1348
+ "icon": "brain",
1349
+ "href": "/concepts",
1350
+ "label": "Concepts"
1351
+ }
1352
+ ],
1335
1353
  "children": [
1336
1354
  {
1355
+ "gap": "lg",
1337
1356
  "children": [
1338
1357
  {
1339
- "align": "center",
1340
1358
  "gap": "sm",
1359
+ "type": "stack",
1341
1360
  "direction": "horizontal",
1342
1361
  "children": [
1343
1362
  {
@@ -1350,17 +1369,15 @@
1350
1369
  "content": "Quiz Question"
1351
1370
  }
1352
1371
  ],
1353
- "type": "stack"
1372
+ "align": "center"
1354
1373
  },
1355
1374
  {
1356
1375
  "type": "divider"
1357
1376
  },
1358
1377
  {
1359
- "type": "card",
1360
1378
  "children": [
1361
1379
  {
1362
1380
  "type": "stack",
1363
- "direction": "vertical",
1364
1381
  "gap": "md",
1365
1382
  "children": [
1366
1383
  {
@@ -1369,45 +1386,28 @@
1369
1386
  "type": "typography"
1370
1387
  },
1371
1388
  {
1372
- "type": "typography",
1373
1389
  "content": "@entity.options",
1390
+ "type": "typography",
1374
1391
  "variant": "body"
1375
1392
  },
1376
1393
  {
1394
+ "submitEvent": "SUBMIT_ANSWER",
1395
+ "type": "form-section",
1377
1396
  "fields": [
1378
1397
  "studentAnswer"
1379
1398
  ],
1380
- "type": "form-section",
1381
1399
  "entity": "@entity",
1382
- "mode": "edit",
1383
- "submitEvent": "SUBMIT_ANSWER"
1400
+ "mode": "edit"
1384
1401
  }
1385
- ]
1402
+ ],
1403
+ "direction": "vertical"
1386
1404
  }
1387
- ]
1405
+ ],
1406
+ "type": "card"
1388
1407
  }
1389
1408
  ],
1390
1409
  "type": "stack",
1391
- "direction": "vertical",
1392
- "gap": "lg"
1393
- }
1394
- ],
1395
- "appName": "AI Tutor",
1396
- "navItems": [
1397
- {
1398
- "href": "/teach",
1399
- "label": "Teach",
1400
- "icon": "book-open"
1401
- },
1402
- {
1403
- "href": "/quiz",
1404
- "label": "Quiz",
1405
- "icon": "help-circle"
1406
- },
1407
- {
1408
- "icon": "brain",
1409
- "href": "/concepts",
1410
- "label": "Concepts"
1410
+ "direction": "vertical"
1411
1411
  }
1412
1412
  ]
1413
1413
  }
@@ -1428,33 +1428,56 @@
1428
1428
  "render-ui",
1429
1429
  "main",
1430
1430
  {
1431
+ "type": "dashboard-layout",
1432
+ "navItems": [
1433
+ {
1434
+ "icon": "book-open",
1435
+ "label": "Teach",
1436
+ "href": "/teach"
1437
+ },
1438
+ {
1439
+ "label": "Quiz",
1440
+ "icon": "help-circle",
1441
+ "href": "/quiz"
1442
+ },
1443
+ {
1444
+ "href": "/concepts",
1445
+ "icon": "brain",
1446
+ "label": "Concepts"
1447
+ }
1448
+ ],
1449
+ "appName": "AI Tutor",
1431
1450
  "children": [
1432
1451
  {
1433
1452
  "direction": "vertical",
1453
+ "gap": "lg",
1454
+ "type": "stack",
1434
1455
  "children": [
1435
1456
  {
1436
- "align": "center",
1437
1457
  "direction": "horizontal",
1458
+ "type": "stack",
1459
+ "gap": "sm",
1460
+ "align": "center",
1438
1461
  "children": [
1439
1462
  {
1440
1463
  "name": "help-circle",
1441
1464
  "type": "icon"
1442
1465
  },
1443
1466
  {
1444
- "content": "Quiz Question",
1467
+ "variant": "h2",
1445
1468
  "type": "typography",
1446
- "variant": "h2"
1469
+ "content": "Quiz Question"
1447
1470
  }
1448
- ],
1449
- "gap": "sm",
1450
- "type": "stack"
1471
+ ]
1451
1472
  },
1452
1473
  {
1453
1474
  "type": "divider"
1454
1475
  },
1455
1476
  {
1477
+ "type": "card",
1456
1478
  "children": [
1457
1479
  {
1480
+ "direction": "vertical",
1458
1481
  "type": "stack",
1459
1482
  "gap": "md",
1460
1483
  "children": [
@@ -1470,43 +1493,20 @@
1470
1493
  },
1471
1494
  {
1472
1495
  "type": "form-section",
1473
- "submitEvent": "SUBMIT_ANSWER",
1474
1496
  "fields": [
1475
1497
  "studentAnswer"
1476
1498
  ],
1477
- "entity": "@entity",
1478
- "mode": "edit"
1499
+ "submitEvent": "SUBMIT_ANSWER",
1500
+ "mode": "edit",
1501
+ "entity": "@entity"
1479
1502
  }
1480
- ],
1481
- "direction": "vertical"
1503
+ ]
1482
1504
  }
1483
- ],
1484
- "type": "card"
1505
+ ]
1485
1506
  }
1486
- ],
1487
- "gap": "lg",
1488
- "type": "stack"
1489
- }
1490
- ],
1491
- "appName": "AI Tutor",
1492
- "navItems": [
1493
- {
1494
- "icon": "book-open",
1495
- "label": "Teach",
1496
- "href": "/teach"
1497
- },
1498
- {
1499
- "href": "/quiz",
1500
- "icon": "help-circle",
1501
- "label": "Quiz"
1502
- },
1503
- {
1504
- "label": "Concepts",
1505
- "href": "/concepts",
1506
- "icon": "brain"
1507
+ ]
1507
1508
  }
1508
- ],
1509
- "type": "dashboard-layout"
1509
+ ]
1510
1510
  }
1511
1511
  ]
1512
1512
  ]
@@ -1538,18 +1538,17 @@
1538
1538
  "render-ui",
1539
1539
  "main",
1540
1540
  {
1541
- "appName": "AI Tutor",
1542
1541
  "type": "dashboard-layout",
1543
1542
  "navItems": [
1544
1543
  {
1544
+ "label": "Teach",
1545
1545
  "href": "/teach",
1546
- "icon": "book-open",
1547
- "label": "Teach"
1546
+ "icon": "book-open"
1548
1547
  },
1549
1548
  {
1550
- "label": "Quiz",
1549
+ "href": "/quiz",
1551
1550
  "icon": "help-circle",
1552
- "href": "/quiz"
1551
+ "label": "Quiz"
1553
1552
  },
1554
1553
  {
1555
1554
  "label": "Concepts",
@@ -1557,26 +1556,26 @@
1557
1556
  "icon": "brain"
1558
1557
  }
1559
1558
  ],
1559
+ "appName": "AI Tutor",
1560
1560
  "children": [
1561
1561
  {
1562
- "direction": "vertical",
1563
1562
  "children": [
1564
1563
  {
1564
+ "direction": "horizontal",
1565
+ "gap": "sm",
1566
+ "type": "stack",
1567
+ "align": "center",
1565
1568
  "children": [
1566
1569
  {
1567
- "type": "icon",
1568
- "name": "check-circle"
1570
+ "name": "check-circle",
1571
+ "type": "icon"
1569
1572
  },
1570
1573
  {
1574
+ "variant": "h2",
1571
1575
  "type": "typography",
1572
- "content": "Answer Review",
1573
- "variant": "h2"
1576
+ "content": "Answer Review"
1574
1577
  }
1575
- ],
1576
- "type": "stack",
1577
- "gap": "sm",
1578
- "direction": "horizontal",
1579
- "align": "center"
1578
+ ]
1580
1579
  },
1581
1580
  {
1582
1581
  "type": "divider"
@@ -1585,14 +1584,14 @@
1585
1584
  "type": "card",
1586
1585
  "children": [
1587
1586
  {
1588
- "type": "stack",
1589
1587
  "gap": "md",
1590
1588
  "direction": "vertical",
1589
+ "type": "stack",
1591
1590
  "children": [
1592
1591
  {
1593
1592
  "type": "stack",
1594
- "gap": "sm",
1595
1593
  "direction": "horizontal",
1594
+ "gap": "sm",
1596
1595
  "children": [
1597
1596
  {
1598
1597
  "label": "@entity.isCorrect",
@@ -1611,38 +1610,39 @@
1611
1610
  "type": "typography"
1612
1611
  },
1613
1612
  {
1614
- "type": "typography",
1613
+ "content": "@entity.correctAnswer",
1615
1614
  "variant": "body",
1616
- "content": "@entity.correctAnswer"
1615
+ "type": "typography"
1617
1616
  }
1618
1617
  ]
1619
1618
  }
1620
1619
  ]
1621
1620
  },
1622
1621
  {
1622
+ "type": "stack",
1623
1623
  "gap": "sm",
1624
1624
  "direction": "horizontal",
1625
- "type": "stack",
1626
1625
  "children": [
1627
1626
  {
1628
1627
  "type": "button",
1629
1628
  "label": "Next Question",
1629
+ "icon": "arrow-right",
1630
1630
  "variant": "primary",
1631
- "action": "NEXT_QUESTION",
1632
- "icon": "arrow-right"
1631
+ "action": "NEXT_QUESTION"
1633
1632
  },
1634
1633
  {
1635
1634
  "label": "Back to Lesson",
1636
- "type": "button",
1637
- "action": "BACK_TO_LESSON",
1638
1635
  "variant": "ghost",
1636
+ "action": "BACK_TO_LESSON",
1637
+ "type": "button",
1639
1638
  "icon": "book-open"
1640
1639
  }
1641
1640
  ]
1642
1641
  }
1643
1642
  ],
1644
1643
  "type": "stack",
1645
- "gap": "lg"
1644
+ "gap": "lg",
1645
+ "direction": "vertical"
1646
1646
  }
1647
1647
  ]
1648
1648
  }
@@ -1680,39 +1680,37 @@
1680
1680
  "children": [
1681
1681
  {
1682
1682
  "gap": "lg",
1683
+ "type": "stack",
1684
+ "direction": "vertical",
1683
1685
  "children": [
1684
1686
  {
1685
- "gap": "sm",
1686
- "direction": "horizontal",
1687
- "align": "center",
1687
+ "type": "stack",
1688
1688
  "children": [
1689
1689
  {
1690
- "type": "icon",
1691
- "name": "help-circle"
1690
+ "name": "help-circle",
1691
+ "type": "icon"
1692
1692
  },
1693
1693
  {
1694
+ "variant": "h2",
1694
1695
  "type": "typography",
1695
- "content": "Quiz Question",
1696
- "variant": "h2"
1696
+ "content": "Quiz Question"
1697
1697
  }
1698
1698
  ],
1699
- "type": "stack"
1699
+ "gap": "sm",
1700
+ "direction": "horizontal",
1701
+ "align": "center"
1700
1702
  },
1701
1703
  {
1702
1704
  "type": "divider"
1703
1705
  },
1704
1706
  {
1705
- "type": "card",
1706
1707
  "children": [
1707
1708
  {
1708
- "gap": "md",
1709
- "type": "stack",
1710
- "direction": "vertical",
1711
1709
  "children": [
1712
1710
  {
1713
- "variant": "h3",
1714
1711
  "content": "@entity.question",
1715
- "type": "typography"
1712
+ "type": "typography",
1713
+ "variant": "h3"
1716
1714
  },
1717
1715
  {
1718
1716
  "variant": "body",
@@ -1720,42 +1718,44 @@
1720
1718
  "content": "@entity.options"
1721
1719
  },
1722
1720
  {
1723
- "entity": "@entity",
1724
- "mode": "edit",
1725
1721
  "submitEvent": "SUBMIT_ANSWER",
1722
+ "mode": "edit",
1723
+ "type": "form-section",
1724
+ "entity": "@entity",
1726
1725
  "fields": [
1727
1726
  "studentAnswer"
1728
- ],
1729
- "type": "form-section"
1727
+ ]
1730
1728
  }
1731
- ]
1729
+ ],
1730
+ "gap": "md",
1731
+ "direction": "vertical",
1732
+ "type": "stack"
1732
1733
  }
1733
- ]
1734
+ ],
1735
+ "type": "card"
1734
1736
  }
1735
- ],
1736
- "direction": "vertical",
1737
- "type": "stack"
1737
+ ]
1738
1738
  }
1739
1739
  ],
1740
+ "type": "dashboard-layout",
1741
+ "appName": "AI Tutor",
1740
1742
  "navItems": [
1741
1743
  {
1742
- "icon": "book-open",
1743
1744
  "label": "Teach",
1744
- "href": "/teach"
1745
+ "href": "/teach",
1746
+ "icon": "book-open"
1745
1747
  },
1746
1748
  {
1747
- "label": "Quiz",
1748
1749
  "href": "/quiz",
1749
- "icon": "help-circle"
1750
+ "icon": "help-circle",
1751
+ "label": "Quiz"
1750
1752
  },
1751
1753
  {
1752
- "label": "Concepts",
1754
+ "icon": "brain",
1753
1755
  "href": "/concepts",
1754
- "icon": "brain"
1756
+ "label": "Concepts"
1755
1757
  }
1756
- ],
1757
- "type": "dashboard-layout",
1758
- "appName": "AI Tutor"
1758
+ ]
1759
1759
  }
1760
1760
  ]
1761
1761
  ]
@@ -1774,59 +1774,59 @@
1774
1774
  "render-ui",
1775
1775
  "main",
1776
1776
  {
1777
- "appName": "AI Tutor",
1778
- "type": "dashboard-layout",
1779
- "navItems": [
1780
- {
1781
- "icon": "book-open",
1782
- "label": "Teach",
1783
- "href": "/teach"
1784
- },
1785
- {
1786
- "icon": "help-circle",
1787
- "label": "Quiz",
1788
- "href": "/quiz"
1789
- },
1790
- {
1791
- "label": "Concepts",
1792
- "icon": "brain",
1793
- "href": "/concepts"
1794
- }
1795
- ],
1796
1777
  "children": [
1797
1778
  {
1798
1779
  "direction": "vertical",
1799
- "type": "stack",
1800
1780
  "children": [
1801
1781
  {
1782
+ "direction": "horizontal",
1783
+ "type": "stack",
1784
+ "align": "center",
1802
1785
  "children": [
1803
1786
  {
1804
1787
  "type": "icon",
1805
1788
  "name": "help-circle"
1806
1789
  },
1807
1790
  {
1791
+ "type": "typography",
1808
1792
  "content": "Quiz",
1809
- "variant": "h2",
1810
- "type": "typography"
1793
+ "variant": "h2"
1811
1794
  }
1812
1795
  ],
1813
- "align": "center",
1814
- "type": "stack",
1815
- "gap": "sm",
1816
- "direction": "horizontal"
1796
+ "gap": "sm"
1817
1797
  },
1818
1798
  {
1819
1799
  "type": "divider"
1820
1800
  },
1821
1801
  {
1822
- "content": "Waiting for a quiz to start...",
1823
1802
  "type": "typography",
1803
+ "content": "Waiting for a quiz to start...",
1824
1804
  "variant": "body"
1825
1805
  }
1826
1806
  ],
1807
+ "type": "stack",
1827
1808
  "gap": "lg"
1828
1809
  }
1829
- ]
1810
+ ],
1811
+ "navItems": [
1812
+ {
1813
+ "label": "Teach",
1814
+ "href": "/teach",
1815
+ "icon": "book-open"
1816
+ },
1817
+ {
1818
+ "icon": "help-circle",
1819
+ "label": "Quiz",
1820
+ "href": "/quiz"
1821
+ },
1822
+ {
1823
+ "label": "Concepts",
1824
+ "href": "/concepts",
1825
+ "icon": "brain"
1826
+ }
1827
+ ],
1828
+ "type": "dashboard-layout",
1829
+ "appName": "AI Tutor"
1830
1830
  }
1831
1831
  ]
1832
1832
  ]
@@ -2077,22 +2077,22 @@
2077
2077
  "render-ui",
2078
2078
  "main",
2079
2079
  {
2080
+ "align": "center",
2081
+ "className": "py-12",
2080
2082
  "children": [
2081
2083
  {
2082
2084
  "type": "spinner"
2083
2085
  },
2084
2086
  {
2085
- "variant": "caption",
2087
+ "type": "typography",
2086
2088
  "content": "Loading…",
2087
- "color": "muted",
2088
- "type": "typography"
2089
+ "variant": "caption",
2090
+ "color": "muted"
2089
2091
  }
2090
2092
  ],
2091
- "direction": "vertical",
2092
- "gap": "md",
2093
2093
  "type": "stack",
2094
- "className": "py-12",
2095
- "align": "center"
2094
+ "gap": "md",
2095
+ "direction": "vertical"
2096
2096
  }
2097
2097
  ]
2098
2098
  ]
@@ -2106,57 +2106,61 @@
2106
2106
  "render-ui",
2107
2107
  "main",
2108
2108
  {
2109
+ "type": "dashboard-layout",
2109
2110
  "children": [
2110
2111
  {
2111
- "gap": "lg",
2112
2112
  "children": [
2113
2113
  {
2114
+ "justify": "between",
2115
+ "align": "center",
2116
+ "direction": "horizontal",
2117
+ "gap": "sm",
2118
+ "type": "stack",
2114
2119
  "children": [
2115
2120
  {
2116
- "align": "center",
2121
+ "gap": "sm",
2117
2122
  "children": [
2118
2123
  {
2119
- "type": "icon",
2120
- "name": "message-circle"
2124
+ "name": "message-circle",
2125
+ "type": "icon"
2121
2126
  },
2122
2127
  {
2123
- "variant": "h2",
2128
+ "type": "typography",
2124
2129
  "content": "TutorChat Thread",
2125
- "type": "typography"
2130
+ "variant": "h2"
2126
2131
  }
2127
2132
  ],
2128
- "type": "stack",
2129
2133
  "direction": "horizontal",
2130
- "gap": "sm"
2134
+ "align": "center",
2135
+ "type": "stack"
2131
2136
  },
2132
2137
  {
2133
- "action": "COMPOSE",
2134
2138
  "variant": "primary",
2135
- "label": "New Message",
2139
+ "type": "button",
2136
2140
  "icon": "plus",
2137
- "type": "button"
2141
+ "action": "COMPOSE",
2142
+ "label": "New Message"
2138
2143
  }
2139
- ],
2140
- "direction": "horizontal",
2141
- "align": "center",
2142
- "gap": "sm",
2143
- "justify": "between",
2144
- "type": "stack"
2144
+ ]
2145
2145
  },
2146
2146
  {
2147
2147
  "type": "divider"
2148
2148
  },
2149
2149
  {
2150
2150
  "fields": [],
2151
- "entity": "@payload.data",
2151
+ "type": "data-list",
2152
2152
  "renderItem": [
2153
2153
  "fn",
2154
2154
  "item",
2155
2155
  {
2156
+ "direction": "vertical",
2157
+ "type": "stack",
2158
+ "gap": "xs",
2156
2159
  "children": [
2157
2160
  {
2158
2161
  "direction": "horizontal",
2159
2162
  "align": "center",
2163
+ "gap": "sm",
2160
2164
  "type": "stack",
2161
2165
  "children": [
2162
2166
  {
@@ -2164,56 +2168,52 @@
2164
2168
  "type": "badge"
2165
2169
  },
2166
2170
  {
2171
+ "variant": "outline",
2167
2172
  "type": "badge",
2168
- "label": "@item.status",
2169
- "variant": "outline"
2173
+ "label": "@item.status"
2170
2174
  },
2171
2175
  {
2172
- "content": "@item.timestamp",
2176
+ "variant": "caption",
2173
2177
  "type": "typography",
2174
2178
  "color": "muted",
2175
- "variant": "caption"
2179
+ "content": "@item.timestamp"
2176
2180
  }
2177
- ],
2178
- "gap": "sm"
2181
+ ]
2179
2182
  },
2180
2183
  {
2181
- "type": "typography",
2182
2184
  "content": "@item.content",
2183
- "variant": "body"
2185
+ "variant": "body",
2186
+ "type": "typography"
2184
2187
  }
2185
- ],
2186
- "direction": "vertical",
2187
- "type": "stack",
2188
- "gap": "xs"
2188
+ ]
2189
2189
  }
2190
2190
  ],
2191
- "type": "data-list"
2191
+ "entity": "@payload.data"
2192
2192
  }
2193
2193
  ],
2194
2194
  "direction": "vertical",
2195
+ "gap": "lg",
2195
2196
  "type": "stack"
2196
2197
  }
2197
2198
  ],
2198
- "type": "dashboard-layout",
2199
+ "appName": "AI Tutor",
2199
2200
  "navItems": [
2200
2201
  {
2201
2202
  "label": "Teach",
2202
- "icon": "book-open",
2203
- "href": "/teach"
2203
+ "href": "/teach",
2204
+ "icon": "book-open"
2204
2205
  },
2205
2206
  {
2206
- "href": "/quiz",
2207
+ "label": "Quiz",
2207
2208
  "icon": "help-circle",
2208
- "label": "Quiz"
2209
+ "href": "/quiz"
2209
2210
  },
2210
2211
  {
2212
+ "icon": "brain",
2211
2213
  "label": "Concepts",
2212
- "href": "/concepts",
2213
- "icon": "brain"
2214
+ "href": "/concepts"
2214
2215
  }
2215
- ],
2216
- "appName": "AI Tutor"
2216
+ ]
2217
2217
  }
2218
2218
  ]
2219
2219
  ]
@@ -2227,36 +2227,36 @@
2227
2227
  "render-ui",
2228
2228
  "main",
2229
2229
  {
2230
- "direction": "vertical",
2231
- "gap": "md",
2232
2230
  "type": "stack",
2233
- "align": "center",
2234
- "className": "py-12",
2231
+ "gap": "md",
2235
2232
  "children": [
2236
2233
  {
2237
- "name": "alert-triangle",
2238
2234
  "type": "icon",
2235
+ "name": "alert-triangle",
2239
2236
  "color": "destructive"
2240
2237
  },
2241
2238
  {
2242
2239
  "type": "typography",
2243
- "variant": "h3",
2244
- "content": "Failed to load tutorchat"
2240
+ "content": "Failed to load tutorchat",
2241
+ "variant": "h3"
2245
2242
  },
2246
2243
  {
2247
- "content": "@payload.error",
2248
- "type": "typography",
2249
2244
  "variant": "body",
2250
- "color": "muted"
2245
+ "type": "typography",
2246
+ "color": "muted",
2247
+ "content": "@payload.error"
2251
2248
  },
2252
2249
  {
2253
- "action": "INIT",
2254
- "label": "Retry",
2255
2250
  "variant": "primary",
2256
- "icon": "rotate-ccw",
2257
- "type": "button"
2251
+ "type": "button",
2252
+ "label": "Retry",
2253
+ "action": "INIT",
2254
+ "icon": "rotate-ccw"
2258
2255
  }
2259
- ]
2256
+ ],
2257
+ "direction": "vertical",
2258
+ "align": "center",
2259
+ "className": "py-12"
2260
2260
  }
2261
2261
  ]
2262
2262
  ]
@@ -2270,40 +2270,40 @@
2270
2270
  "render-ui",
2271
2271
  "main",
2272
2272
  {
2273
+ "type": "stack",
2274
+ "direction": "vertical",
2273
2275
  "gap": "lg",
2274
2276
  "children": [
2275
2277
  {
2278
+ "type": "stack",
2279
+ "gap": "sm",
2276
2280
  "align": "center",
2277
2281
  "direction": "horizontal",
2278
- "gap": "sm",
2279
2282
  "children": [
2280
2283
  {
2281
- "name": "message-circle",
2282
- "type": "icon"
2284
+ "type": "icon",
2285
+ "name": "message-circle"
2283
2286
  },
2284
2287
  {
2285
2288
  "variant": "h2",
2286
2289
  "type": "typography",
2287
2290
  "content": "TutorChat Thread"
2288
2291
  }
2289
- ],
2290
- "type": "stack"
2292
+ ]
2291
2293
  },
2292
2294
  {
2293
2295
  "type": "divider"
2294
2296
  },
2295
2297
  {
2296
2298
  "mode": "create",
2299
+ "submitEvent": "SEND",
2300
+ "type": "form-section",
2301
+ "cancelEvent": "CANCEL_COMPOSE",
2297
2302
  "fields": [
2298
2303
  "content"
2299
- ],
2300
- "type": "form-section",
2301
- "submitEvent": "SEND",
2302
- "cancelEvent": "CANCEL_COMPOSE"
2304
+ ]
2303
2305
  }
2304
- ],
2305
- "direction": "vertical",
2306
- "type": "stack"
2306
+ ]
2307
2307
  }
2308
2308
  ]
2309
2309
  ]
@@ -2353,10 +2353,10 @@
2353
2353
  "create",
2354
2354
  "TutorChat",
2355
2355
  {
2356
- "content": "@payload.content",
2357
- "status": "sent",
2356
+ "timestamp": "@now",
2358
2357
  "role": "user",
2359
- "timestamp": "@now"
2358
+ "content": "@payload.content",
2359
+ "status": "sent"
2360
2360
  }
2361
2361
  ],
2362
2362
  [
@@ -2368,8 +2368,8 @@
2368
2368
  "TutorChat",
2369
2369
  {
2370
2370
  "emit": {
2371
- "failure": "TutorChatLoadFailed",
2372
- "success": "TutorChatLoaded"
2371
+ "success": "TutorChatLoaded",
2372
+ "failure": "TutorChatLoadFailed"
2373
2373
  }
2374
2374
  }
2375
2375
  ],
@@ -2417,8 +2417,8 @@
2417
2417
  "TutorChat",
2418
2418
  {
2419
2419
  "emit": {
2420
- "failure": "TutorChatDeleteFailed",
2421
- "success": "TutorChatDeleted"
2420
+ "success": "TutorChatDeleted",
2421
+ "failure": "TutorChatDeleteFailed"
2422
2422
  }
2423
2423
  }
2424
2424
  ],
@@ -2427,8 +2427,8 @@
2427
2427
  "TutorChat",
2428
2428
  {
2429
2429
  "emit": {
2430
- "failure": "TutorChatLoadFailed",
2431
- "success": "TutorChatLoaded"
2430
+ "success": "TutorChatLoaded",
2431
+ "failure": "TutorChatLoadFailed"
2432
2432
  }
2433
2433
  }
2434
2434
  ],
@@ -2576,19 +2576,20 @@
2576
2576
  "render-ui",
2577
2577
  "main",
2578
2578
  {
2579
+ "type": "dashboard-layout",
2580
+ "appName": "AI Tutor",
2579
2581
  "children": [
2580
2582
  {
2581
- "title": "Conversation",
2582
2583
  "description": "Conversation is ready",
2583
- "type": "empty-state",
2584
- "icon": "message-circle"
2584
+ "title": "Conversation",
2585
+ "icon": "message-circle",
2586
+ "type": "empty-state"
2585
2587
  }
2586
2588
  ],
2587
- "type": "dashboard-layout",
2588
2589
  "navItems": [
2589
2590
  {
2590
- "label": "Teach",
2591
2591
  "href": "/teach",
2592
+ "label": "Teach",
2592
2593
  "icon": "book-open"
2593
2594
  },
2594
2595
  {
@@ -2597,12 +2598,11 @@
2597
2598
  "href": "/quiz"
2598
2599
  },
2599
2600
  {
2600
- "label": "Concepts",
2601
+ "icon": "brain",
2601
2602
  "href": "/concepts",
2602
- "icon": "brain"
2603
+ "label": "Concepts"
2603
2604
  }
2604
- ],
2605
- "appName": "AI Tutor"
2605
+ ]
2606
2606
  }
2607
2607
  ]
2608
2608
  ]
@@ -2911,8 +2911,8 @@
2911
2911
  "Concept",
2912
2912
  {
2913
2913
  "emit": {
2914
- "success": "ConceptLoaded",
2915
- "failure": "ConceptLoadFailed"
2914
+ "failure": "ConceptLoadFailed",
2915
+ "success": "ConceptLoaded"
2916
2916
  }
2917
2917
  }
2918
2918
  ],
@@ -2921,7 +2921,7 @@
2921
2921
  "main",
2922
2922
  {
2923
2923
  "direction": "vertical",
2924
- "gap": "md",
2924
+ "type": "stack",
2925
2925
  "align": "center",
2926
2926
  "className": "py-12",
2927
2927
  "children": [
@@ -2929,66 +2929,42 @@
2929
2929
  "type": "spinner"
2930
2930
  },
2931
2931
  {
2932
- "type": "typography",
2933
- "content": "Loading…",
2932
+ "variant": "caption",
2934
2933
  "color": "muted",
2935
- "variant": "caption"
2934
+ "type": "typography",
2935
+ "content": "Loading…"
2936
2936
  }
2937
2937
  ],
2938
- "type": "stack"
2938
+ "gap": "md"
2939
2939
  }
2940
2940
  ]
2941
- ]
2942
- },
2943
- {
2944
- "from": "browsing",
2945
- "to": "browsing",
2946
- "event": "ConceptLoaded",
2947
- "effects": [
2948
- [
2949
- "render-ui",
2950
- "main",
2951
- {
2952
- "navItems": [
2953
- {
2954
- "href": "/teach",
2955
- "icon": "book-open",
2956
- "label": "Teach"
2957
- },
2958
- {
2959
- "label": "Quiz",
2960
- "href": "/quiz",
2961
- "icon": "help-circle"
2962
- },
2963
- {
2964
- "href": "/concepts",
2965
- "icon": "brain",
2966
- "label": "Concepts"
2967
- }
2968
- ],
2969
- "type": "dashboard-layout",
2970
- "appName": "AI Tutor",
2941
+ ]
2942
+ },
2943
+ {
2944
+ "from": "browsing",
2945
+ "to": "browsing",
2946
+ "event": "ConceptLoaded",
2947
+ "effects": [
2948
+ [
2949
+ "render-ui",
2950
+ "main",
2951
+ {
2971
2952
  "children": [
2972
2953
  {
2973
- "type": "stack",
2974
- "direction": "vertical",
2975
- "gap": "lg",
2976
2954
  "children": [
2977
2955
  {
2978
2956
  "justify": "between",
2979
- "gap": "md",
2980
2957
  "align": "center",
2981
- "direction": "horizontal",
2982
2958
  "children": [
2983
2959
  {
2984
2960
  "direction": "horizontal",
2985
- "gap": "sm",
2986
2961
  "type": "stack",
2962
+ "gap": "sm",
2987
2963
  "align": "center",
2988
2964
  "children": [
2989
2965
  {
2990
- "type": "icon",
2991
- "name": "brain"
2966
+ "name": "brain",
2967
+ "type": "icon"
2992
2968
  },
2993
2969
  {
2994
2970
  "variant": "h2",
@@ -2998,94 +2974,118 @@
2998
2974
  ]
2999
2975
  },
3000
2976
  {
2977
+ "gap": "sm",
2978
+ "type": "stack",
2979
+ "direction": "horizontal",
3001
2980
  "children": [
3002
2981
  {
3003
- "label": "Memorize",
3004
- "action": "MEMORIZE",
3005
- "icon": "plus",
3006
2982
  "type": "button",
2983
+ "icon": "plus",
2984
+ "action": "MEMORIZE",
2985
+ "label": "Memorize",
3007
2986
  "variant": "primary"
3008
2987
  },
3009
2988
  {
3010
- "icon": "search",
3011
2989
  "type": "button",
3012
- "variant": "secondary",
3013
2990
  "action": "RECALL",
2991
+ "icon": "search",
2992
+ "variant": "secondary",
3014
2993
  "label": "Recall"
3015
2994
  },
3016
2995
  {
3017
- "action": "DECAY",
3018
- "icon": "clock",
3019
2996
  "label": "Decay All",
3020
2997
  "type": "button",
3021
- "variant": "ghost"
2998
+ "action": "DECAY",
2999
+ "variant": "ghost",
3000
+ "icon": "clock"
3022
3001
  }
3023
- ],
3024
- "direction": "horizontal",
3025
- "type": "stack",
3026
- "gap": "sm"
3002
+ ]
3027
3003
  }
3028
3004
  ],
3029
- "type": "stack"
3005
+ "type": "stack",
3006
+ "gap": "md",
3007
+ "direction": "horizontal"
3030
3008
  },
3031
3009
  {
3032
3010
  "type": "divider"
3033
3011
  },
3034
3012
  {
3035
- "fields": [],
3036
- "type": "data-grid",
3037
3013
  "itemActions": [
3038
3014
  {
3039
- "variant": "ghost",
3015
+ "label": "Pin",
3040
3016
  "event": "PIN",
3041
- "label": "Pin"
3017
+ "variant": "ghost"
3042
3018
  },
3043
3019
  {
3020
+ "label": "Reinforce",
3044
3021
  "event": "REINFORCE",
3045
- "variant": "ghost",
3046
- "label": "Reinforce"
3022
+ "variant": "ghost"
3047
3023
  },
3048
3024
  {
3025
+ "event": "FORGET",
3049
3026
  "variant": "danger",
3050
- "label": "Forget",
3051
- "event": "FORGET"
3027
+ "label": "Forget"
3052
3028
  }
3053
3029
  ],
3054
3030
  "columns": [
3055
3031
  {
3056
3032
  "name": "content",
3057
- "label": "Content",
3058
3033
  "icon": "brain",
3059
- "variant": "h4"
3034
+ "variant": "h4",
3035
+ "label": "Content"
3060
3036
  },
3061
3037
  {
3062
- "label": "Category",
3063
- "variant": "badge",
3064
3038
  "name": "category",
3039
+ "label": "Category",
3065
3040
  "colorMap": {
3066
- "cancelled": "destructive",
3067
- "inactive": "neutral",
3041
+ "scheduled": "warning",
3068
3042
  "active": "success",
3043
+ "inactive": "neutral",
3044
+ "done": "success",
3045
+ "cancelled": "destructive",
3046
+ "completed": "success",
3069
3047
  "pending": "warning",
3048
+ "archived": "neutral",
3070
3049
  "failed": "destructive",
3071
3050
  "error": "destructive",
3072
- "draft": "warning",
3073
- "done": "success",
3074
- "scheduled": "warning",
3075
- "completed": "success",
3076
- "archived": "neutral"
3077
- }
3051
+ "draft": "warning"
3052
+ },
3053
+ "variant": "badge"
3078
3054
  },
3079
3055
  {
3080
- "variant": "caption",
3056
+ "name": "strength",
3081
3057
  "label": "Strength",
3082
- "name": "strength"
3058
+ "variant": "caption"
3083
3059
  }
3084
3060
  ],
3085
- "entity": "@payload.data"
3061
+ "entity": "@payload.data",
3062
+ "fields": [],
3063
+ "type": "data-grid"
3086
3064
  }
3087
3065
  ],
3088
- "className": "max-w-5xl mx-auto w-full"
3066
+ "type": "stack",
3067
+ "className": "max-w-5xl mx-auto w-full",
3068
+ "direction": "vertical",
3069
+ "gap": "lg"
3070
+ }
3071
+ ],
3072
+ "appName": "AI Tutor",
3073
+ "type": "dashboard-layout",
3074
+ "navItems": [
3075
+ {
3076
+ "label": "Teach",
3077
+ "href": "/teach",
3078
+ "icon": "book-open"
3079
+ },
3080
+ {
3081
+ "href": "/quiz",
3082
+ "icon": "help-circle",
3083
+ "label": "Quiz"
3084
+ },
3085
+ {
3086
+ "label": "Concepts",
3087
+ "href": "/concepts",
3088
+ "icon": "brain"
3089
3089
  }
3090
3090
  ]
3091
3091
  }
@@ -3101,35 +3101,35 @@
3101
3101
  "render-ui",
3102
3102
  "main",
3103
3103
  {
3104
- "align": "center",
3105
3104
  "className": "py-12",
3106
- "type": "stack",
3107
3105
  "children": [
3108
3106
  {
3109
- "color": "destructive",
3110
3107
  "type": "icon",
3111
- "name": "alert-triangle"
3108
+ "name": "alert-triangle",
3109
+ "color": "destructive"
3112
3110
  },
3113
3111
  {
3112
+ "variant": "h3",
3114
3113
  "content": "Failed to load concept",
3115
- "type": "typography",
3116
- "variant": "h3"
3114
+ "type": "typography"
3117
3115
  },
3118
3116
  {
3117
+ "content": "@payload.error",
3119
3118
  "variant": "body",
3120
3119
  "color": "muted",
3121
- "type": "typography",
3122
- "content": "@payload.error"
3120
+ "type": "typography"
3123
3121
  },
3124
3122
  {
3125
- "variant": "primary",
3126
- "icon": "rotate-ccw",
3127
3123
  "type": "button",
3128
3124
  "label": "Retry",
3129
- "action": "INIT"
3125
+ "icon": "rotate-ccw",
3126
+ "action": "INIT",
3127
+ "variant": "primary"
3130
3128
  }
3131
3129
  ],
3132
3130
  "gap": "md",
3131
+ "type": "stack",
3132
+ "align": "center",
3133
3133
  "direction": "vertical"
3134
3134
  }
3135
3135
  ]
@@ -3305,16 +3305,13 @@
3305
3305
  "render-ui",
3306
3306
  "modal",
3307
3307
  {
3308
- "gap": "md",
3309
- "type": "stack",
3310
- "direction": "vertical",
3311
3308
  "children": [
3312
3309
  {
3313
3310
  "type": "stack",
3314
3311
  "children": [
3315
3312
  {
3316
- "name": "plus-circle",
3317
- "type": "icon"
3313
+ "type": "icon",
3314
+ "name": "plus-circle"
3318
3315
  },
3319
3316
  {
3320
3317
  "variant": "h3",
@@ -3329,17 +3326,20 @@
3329
3326
  "type": "divider"
3330
3327
  },
3331
3328
  {
3332
- "submitEvent": "SAVE",
3333
- "mode": "create",
3334
3329
  "cancelEvent": "CLOSE",
3330
+ "mode": "create",
3335
3331
  "fields": [
3336
3332
  "content",
3337
3333
  "category",
3338
3334
  "scope"
3339
3335
  ],
3336
+ "submitEvent": "SAVE",
3340
3337
  "type": "form-section"
3341
3338
  }
3342
- ]
3339
+ ],
3340
+ "type": "stack",
3341
+ "direction": "vertical",
3342
+ "gap": "md"
3343
3343
  }
3344
3344
  ]
3345
3345
  ]
@@ -3670,16 +3670,14 @@
3670
3670
  "render-ui",
3671
3671
  "main",
3672
3672
  {
3673
- "type": "dashboard-layout",
3674
3673
  "children": [
3675
3674
  {
3676
- "description": "Memory is ready",
3677
3675
  "icon": "brain",
3678
- "type": "empty-state",
3679
- "title": "Memory"
3676
+ "description": "Memory is ready",
3677
+ "title": "Memory",
3678
+ "type": "empty-state"
3680
3679
  }
3681
3680
  ],
3682
- "appName": "AI Tutor",
3683
3681
  "navItems": [
3684
3682
  {
3685
3683
  "label": "Teach",
@@ -3687,16 +3685,18 @@
3687
3685
  "icon": "book-open"
3688
3686
  },
3689
3687
  {
3690
- "href": "/quiz",
3691
3688
  "label": "Quiz",
3689
+ "href": "/quiz",
3692
3690
  "icon": "help-circle"
3693
3691
  },
3694
3692
  {
3695
- "href": "/concepts",
3696
3693
  "icon": "brain",
3694
+ "href": "/concepts",
3697
3695
  "label": "Concepts"
3698
3696
  }
3699
- ]
3697
+ ],
3698
+ "appName": "AI Tutor",
3699
+ "type": "dashboard-layout"
3700
3700
  }
3701
3701
  ]
3702
3702
  ]
@@ -3718,8 +3718,8 @@
3718
3718
  "@payload.data",
3719
3719
  {
3720
3720
  "emit": {
3721
- "failure": "ConceptSaveFailed",
3722
- "success": "ConceptSaved"
3721
+ "success": "ConceptSaved",
3722
+ "failure": "ConceptSaveFailed"
3723
3723
  }
3724
3724
  }
3725
3725
  ]
@@ -3749,8 +3749,8 @@
3749
3749
  "Concept",
3750
3750
  {
3751
3751
  "emit": {
3752
- "failure": "ConceptLoadFailed",
3753
- "success": "ConceptLoaded"
3752
+ "success": "ConceptLoaded",
3753
+ "failure": "ConceptLoadFailed"
3754
3754
  }
3755
3755
  }
3756
3756
  ]
@@ -4058,33 +4058,19 @@
4058
4058
  "render-ui",
4059
4059
  "main",
4060
4060
  {
4061
- "type": "dashboard-layout",
4062
- "appName": "AI Tutor",
4063
- "navItems": [
4064
- {
4065
- "label": "Teach",
4066
- "href": "/teach",
4067
- "icon": "book-open"
4068
- },
4069
- {
4070
- "href": "/quiz",
4071
- "label": "Quiz",
4072
- "icon": "help-circle"
4073
- },
4074
- {
4075
- "href": "/concepts",
4076
- "label": "Concepts",
4077
- "icon": "brain"
4078
- }
4079
- ],
4080
4061
  "children": [
4081
4062
  {
4063
+ "type": "stack",
4082
4064
  "gap": "lg",
4065
+ "direction": "vertical",
4083
4066
  "children": [
4084
4067
  {
4085
4068
  "gap": "md",
4086
4069
  "children": [
4087
4070
  {
4071
+ "gap": "md",
4072
+ "type": "stack",
4073
+ "direction": "horizontal",
4088
4074
  "children": [
4089
4075
  {
4090
4076
  "name": "tag",
@@ -4095,35 +4081,49 @@
4095
4081
  "variant": "h2",
4096
4082
  "type": "typography"
4097
4083
  }
4098
- ],
4099
- "type": "stack",
4100
- "direction": "horizontal",
4101
- "gap": "md"
4084
+ ]
4102
4085
  },
4103
4086
  {
4104
- "type": "button",
4105
4087
  "variant": "primary",
4088
+ "type": "button",
4106
4089
  "icon": "tag",
4107
4090
  "action": "CLASSIFY",
4108
4091
  "label": "Open"
4109
4092
  }
4110
4093
  ],
4111
- "justify": "between",
4094
+ "direction": "horizontal",
4112
4095
  "type": "stack",
4113
- "direction": "horizontal"
4096
+ "justify": "between"
4114
4097
  },
4115
4098
  {
4116
4099
  "type": "divider"
4117
4100
  },
4118
4101
  {
4119
- "type": "empty-state",
4120
4102
  "title": "Nothing open",
4121
4103
  "icon": "tag",
4104
+ "type": "empty-state",
4122
4105
  "description": "Click Open to view details in a modal overlay."
4123
4106
  }
4124
- ],
4125
- "type": "stack",
4126
- "direction": "vertical"
4107
+ ]
4108
+ }
4109
+ ],
4110
+ "type": "dashboard-layout",
4111
+ "appName": "AI Tutor",
4112
+ "navItems": [
4113
+ {
4114
+ "href": "/teach",
4115
+ "icon": "book-open",
4116
+ "label": "Teach"
4117
+ },
4118
+ {
4119
+ "icon": "help-circle",
4120
+ "href": "/quiz",
4121
+ "label": "Quiz"
4122
+ },
4123
+ {
4124
+ "href": "/concepts",
4125
+ "icon": "brain",
4126
+ "label": "Concepts"
4127
4127
  }
4128
4128
  ]
4129
4129
  }
@@ -4139,37 +4139,36 @@
4139
4139
  "render-ui",
4140
4140
  "modal",
4141
4141
  {
4142
- "type": "stack",
4143
4142
  "gap": "md",
4144
- "direction": "vertical",
4145
4143
  "children": [
4146
4144
  {
4147
4145
  "gap": "sm",
4148
- "type": "stack",
4149
4146
  "children": [
4150
4147
  {
4151
4148
  "name": "tag",
4152
4149
  "type": "icon"
4153
4150
  },
4154
4151
  {
4155
- "content": "StudentAssessment",
4152
+ "variant": "h3",
4156
4153
  "type": "typography",
4157
- "variant": "h3"
4154
+ "content": "StudentAssessment"
4158
4155
  }
4159
4156
  ],
4157
+ "type": "stack",
4160
4158
  "direction": "horizontal"
4161
4159
  },
4162
4160
  {
4163
4161
  "type": "divider"
4164
4162
  },
4165
4163
  {
4166
- "direction": "horizontal",
4164
+ "type": "stack",
4167
4165
  "gap": "sm",
4166
+ "direction": "horizontal",
4168
4167
  "children": [
4169
4168
  {
4170
4169
  "variant": "caption",
4171
- "type": "typography",
4172
- "content": "Categories:"
4170
+ "content": "Categories:",
4171
+ "type": "typography"
4173
4172
  },
4174
4173
  {
4175
4174
  "variant": "secondary",
@@ -4177,9 +4176,9 @@
4177
4176
  "label": "beginner"
4178
4177
  },
4179
4178
  {
4180
- "variant": "secondary",
4181
4179
  "type": "badge",
4182
- "label": "intermediate"
4180
+ "label": "intermediate",
4181
+ "variant": "secondary"
4183
4182
  },
4184
4183
  {
4185
4184
  "type": "badge",
@@ -4187,23 +4186,24 @@
4187
4186
  "variant": "secondary"
4188
4187
  },
4189
4188
  {
4190
- "label": "expert",
4189
+ "variant": "secondary",
4191
4190
  "type": "badge",
4192
- "variant": "secondary"
4191
+ "label": "expert"
4193
4192
  }
4194
- ],
4195
- "type": "stack"
4193
+ ]
4196
4194
  },
4197
4195
  {
4196
+ "mode": "create",
4197
+ "type": "form-section",
4198
4198
  "fields": [
4199
4199
  "input"
4200
4200
  ],
4201
- "type": "form-section",
4202
- "mode": "create",
4203
- "submitEvent": "SAVE",
4204
- "cancelEvent": "CLOSE"
4201
+ "cancelEvent": "CLOSE",
4202
+ "submitEvent": "SAVE"
4205
4203
  }
4206
- ]
4204
+ ],
4205
+ "type": "stack",
4206
+ "direction": "vertical"
4207
4207
  }
4208
4208
  ]
4209
4209
  ]
@@ -4214,90 +4214,90 @@
4214
4214
  "event": "CLOSE",
4215
4215
  "effects": [
4216
4216
  [
4217
- "render-ui",
4218
- "modal",
4219
- null
4220
- ],
4221
- [
4222
- "notify",
4223
- "Cancelled",
4224
- "info"
4225
- ],
4226
- [
4227
- "ref",
4228
- "StudentAssessment"
4229
- ],
4230
- [
4231
- "render-ui",
4232
- "main",
4233
- {
4234
- "appName": "AI Tutor",
4235
- "type": "dashboard-layout",
4236
- "navItems": [
4237
- {
4238
- "href": "/teach",
4239
- "label": "Teach",
4240
- "icon": "book-open"
4241
- },
4242
- {
4243
- "icon": "help-circle",
4244
- "label": "Quiz",
4245
- "href": "/quiz"
4246
- },
4247
- {
4248
- "icon": "brain",
4249
- "href": "/concepts",
4250
- "label": "Concepts"
4251
- }
4252
- ],
4217
+ "render-ui",
4218
+ "modal",
4219
+ null
4220
+ ],
4221
+ [
4222
+ "notify",
4223
+ "Cancelled",
4224
+ "info"
4225
+ ],
4226
+ [
4227
+ "ref",
4228
+ "StudentAssessment"
4229
+ ],
4230
+ [
4231
+ "render-ui",
4232
+ "main",
4233
+ {
4253
4234
  "children": [
4254
4235
  {
4255
- "gap": "lg",
4256
4236
  "direction": "vertical",
4257
4237
  "type": "stack",
4238
+ "gap": "lg",
4258
4239
  "children": [
4259
4240
  {
4260
4241
  "type": "stack",
4261
4242
  "children": [
4262
4243
  {
4244
+ "gap": "md",
4245
+ "direction": "horizontal",
4263
4246
  "children": [
4264
4247
  {
4265
- "name": "tag",
4266
- "type": "icon"
4248
+ "type": "icon",
4249
+ "name": "tag"
4267
4250
  },
4268
4251
  {
4269
- "content": "StudentAssessment",
4252
+ "variant": "h2",
4270
4253
  "type": "typography",
4271
- "variant": "h2"
4254
+ "content": "StudentAssessment"
4272
4255
  }
4273
4256
  ],
4274
- "gap": "md",
4275
- "direction": "horizontal",
4276
4257
  "type": "stack"
4277
4258
  },
4278
4259
  {
4279
- "action": "CLASSIFY",
4280
- "type": "button",
4281
- "icon": "tag",
4282
4260
  "variant": "primary",
4283
- "label": "Open"
4261
+ "icon": "tag",
4262
+ "type": "button",
4263
+ "label": "Open",
4264
+ "action": "CLASSIFY"
4284
4265
  }
4285
4266
  ],
4286
- "gap": "md",
4287
4267
  "direction": "horizontal",
4288
- "justify": "between"
4268
+ "justify": "between",
4269
+ "gap": "md"
4289
4270
  },
4290
4271
  {
4291
4272
  "type": "divider"
4292
4273
  },
4293
4274
  {
4294
4275
  "title": "Nothing open",
4295
- "description": "Click Open to view details in a modal overlay.",
4276
+ "type": "empty-state",
4296
4277
  "icon": "tag",
4297
- "type": "empty-state"
4278
+ "description": "Click Open to view details in a modal overlay."
4298
4279
  }
4299
4280
  ]
4300
4281
  }
4282
+ ],
4283
+ "type": "dashboard-layout",
4284
+ "appName": "AI Tutor",
4285
+ "navItems": [
4286
+ {
4287
+ "href": "/teach",
4288
+ "label": "Teach",
4289
+ "icon": "book-open"
4290
+ },
4291
+ {
4292
+ "label": "Quiz",
4293
+ "href": "/quiz",
4294
+ "icon": "help-circle"
4295
+ },
4296
+ {
4297
+ "label": "Concepts",
4298
+ "href": "/concepts",
4299
+ "icon": "brain"
4300
+ }
4301
4301
  ]
4302
4302
  }
4303
4303
  ]
@@ -4337,42 +4337,56 @@
4337
4337
  "render-ui",
4338
4338
  "main",
4339
4339
  {
4340
+ "navItems": [
4341
+ {
4342
+ "label": "Teach",
4343
+ "icon": "book-open",
4344
+ "href": "/teach"
4345
+ },
4346
+ {
4347
+ "href": "/quiz",
4348
+ "icon": "help-circle",
4349
+ "label": "Quiz"
4350
+ },
4351
+ {
4352
+ "icon": "brain",
4353
+ "href": "/concepts",
4354
+ "label": "Concepts"
4355
+ }
4356
+ ],
4340
4357
  "type": "dashboard-layout",
4341
- "appName": "AI Tutor",
4342
4358
  "children": [
4343
4359
  {
4344
- "type": "stack",
4345
- "direction": "vertical",
4346
4360
  "children": [
4347
4361
  {
4348
- "justify": "between",
4349
- "gap": "md",
4350
4362
  "children": [
4351
4363
  {
4352
- "gap": "md",
4353
4364
  "type": "stack",
4365
+ "direction": "horizontal",
4366
+ "gap": "md",
4354
4367
  "children": [
4355
4368
  {
4356
- "name": "tag",
4357
- "type": "icon"
4369
+ "type": "icon",
4370
+ "name": "tag"
4358
4371
  },
4359
4372
  {
4360
4373
  "variant": "h2",
4361
4374
  "content": "StudentAssessment",
4362
4375
  "type": "typography"
4363
4376
  }
4364
- ],
4365
- "direction": "horizontal"
4377
+ ]
4366
4378
  },
4367
4379
  {
4380
+ "action": "CLASSIFY",
4368
4381
  "icon": "tag",
4369
4382
  "type": "button",
4370
4383
  "label": "Open",
4371
- "action": "CLASSIFY",
4372
4384
  "variant": "primary"
4373
4385
  }
4374
4386
  ],
4375
4387
  "direction": "horizontal",
4388
+ "justify": "between",
4389
+ "gap": "md",
4376
4390
  "type": "stack"
4377
4391
  },
4378
4392
  {
@@ -4380,31 +4394,17 @@
4380
4394
  },
4381
4395
  {
4382
4396
  "title": "Nothing open",
4383
- "icon": "tag",
4384
4397
  "type": "empty-state",
4398
+ "icon": "tag",
4385
4399
  "description": "Click Open to view details in a modal overlay."
4386
4400
  }
4387
4401
  ],
4388
- "gap": "lg"
4402
+ "gap": "lg",
4403
+ "direction": "vertical",
4404
+ "type": "stack"
4389
4405
  }
4390
4406
  ],
4391
- "navItems": [
4392
- {
4393
- "icon": "book-open",
4394
- "href": "/teach",
4395
- "label": "Teach"
4396
- },
4397
- {
4398
- "icon": "help-circle",
4399
- "label": "Quiz",
4400
- "href": "/quiz"
4401
- },
4402
- {
4403
- "label": "Concepts",
4404
- "href": "/concepts",
4405
- "icon": "brain"
4406
- }
4407
- ]
4407
+ "appName": "AI Tutor"
4408
4408
  }
4409
4409
  ]
4410
4410
  ]
@@ -4541,21 +4541,37 @@
4541
4541
  "main",
4542
4542
  {
4543
4543
  "type": "dashboard-layout",
4544
+ "navItems": [
4545
+ {
4546
+ "href": "/teach",
4547
+ "icon": "book-open",
4548
+ "label": "Teach"
4549
+ },
4550
+ {
4551
+ "href": "/quiz",
4552
+ "icon": "help-circle",
4553
+ "label": "Quiz"
4554
+ },
4555
+ {
4556
+ "href": "/concepts",
4557
+ "icon": "brain",
4558
+ "label": "Concepts"
4559
+ }
4560
+ ],
4544
4561
  "appName": "AI Tutor",
4545
4562
  "children": [
4546
4563
  {
4564
+ "type": "stack",
4565
+ "direction": "vertical",
4566
+ "gap": "lg",
4547
4567
  "children": [
4548
4568
  {
4549
- "gap": "md",
4550
- "type": "stack",
4551
- "justify": "between",
4552
4569
  "align": "center",
4553
4570
  "direction": "horizontal",
4571
+ "justify": "between",
4572
+ "gap": "md",
4554
4573
  "children": [
4555
4574
  {
4556
- "gap": "md",
4557
- "align": "center",
4558
- "type": "stack",
4559
4575
  "direction": "horizontal",
4560
4576
  "children": [
4561
4577
  {
@@ -4563,28 +4579,32 @@
4563
4579
  "name": "tag"
4564
4580
  },
4565
4581
  {
4566
- "content": "StudentAssessment Result",
4567
4582
  "type": "typography",
4568
- "variant": "h2"
4583
+ "variant": "h2",
4584
+ "content": "StudentAssessment Result"
4569
4585
  }
4570
- ]
4586
+ ],
4587
+ "gap": "md",
4588
+ "align": "center",
4589
+ "type": "stack"
4571
4590
  },
4572
4591
  {
4573
- "label": "Dismiss",
4574
- "icon": "x",
4575
4592
  "type": "button",
4576
4593
  "variant": "ghost",
4577
- "action": "HIDE"
4594
+ "action": "HIDE",
4595
+ "icon": "x",
4596
+ "label": "Dismiss"
4578
4597
  }
4579
- ]
4598
+ ],
4599
+ "type": "stack"
4580
4600
  },
4581
4601
  {
4582
4602
  "type": "divider"
4583
4603
  },
4584
4604
  {
4585
- "variant": "@entity.notificationType",
4586
4605
  "message": "@entity.message",
4587
- "type": "alert"
4606
+ "type": "alert",
4607
+ "variant": "@entity.notificationType"
4588
4608
  },
4589
4609
  {
4590
4610
  "type": "toast-slot"
@@ -4594,27 +4614,7 @@
4594
4614
  "type": "alert",
4595
4615
  "variant": "warning"
4596
4616
  }
4597
- ],
4598
- "direction": "vertical",
4599
- "gap": "lg",
4600
- "type": "stack"
4601
- }
4602
- ],
4603
- "navItems": [
4604
- {
4605
- "label": "Teach",
4606
- "href": "/teach",
4607
- "icon": "book-open"
4608
- },
4609
- {
4610
- "href": "/quiz",
4611
- "icon": "help-circle",
4612
- "label": "Quiz"
4613
- },
4614
- {
4615
- "icon": "brain",
4616
- "label": "Concepts",
4617
- "href": "/concepts"
4617
+ ]
4618
4618
  }
4619
4619
  ]
4620
4620
  }
@@ -4640,83 +4640,83 @@
4640
4640
  "render-ui",
4641
4641
  "main",
4642
4642
  {
4643
- "appName": "AI Tutor",
4644
4643
  "navItems": [
4645
4644
  {
4646
- "label": "Teach",
4647
4645
  "icon": "book-open",
4646
+ "label": "Teach",
4648
4647
  "href": "/teach"
4649
4648
  },
4650
4649
  {
4651
4650
  "href": "/quiz",
4652
- "label": "Quiz",
4653
- "icon": "help-circle"
4651
+ "icon": "help-circle",
4652
+ "label": "Quiz"
4654
4653
  },
4655
4654
  {
4656
4655
  "label": "Concepts",
4657
- "icon": "brain",
4658
- "href": "/concepts"
4656
+ "href": "/concepts",
4657
+ "icon": "brain"
4659
4658
  }
4660
4659
  ],
4660
+ "appName": "AI Tutor",
4661
+ "type": "dashboard-layout",
4661
4662
  "children": [
4662
4663
  {
4663
- "type": "stack",
4664
4664
  "direction": "vertical",
4665
- "gap": "lg",
4666
4665
  "children": [
4667
4666
  {
4668
- "direction": "horizontal",
4669
- "align": "center",
4670
- "gap": "md",
4671
4667
  "type": "stack",
4672
4668
  "justify": "between",
4669
+ "align": "center",
4673
4670
  "children": [
4674
4671
  {
4672
+ "align": "center",
4675
4673
  "type": "stack",
4676
4674
  "direction": "horizontal",
4677
- "gap": "md",
4678
4675
  "children": [
4679
4676
  {
4680
- "type": "icon",
4681
- "name": "tag"
4677
+ "name": "tag",
4678
+ "type": "icon"
4682
4679
  },
4683
4680
  {
4684
- "content": "StudentAssessment Result",
4685
4681
  "variant": "h2",
4686
- "type": "typography"
4682
+ "type": "typography",
4683
+ "content": "StudentAssessment Result"
4687
4684
  }
4688
4685
  ],
4689
- "align": "center"
4686
+ "gap": "md"
4690
4687
  },
4691
4688
  {
4692
- "icon": "x",
4693
4689
  "variant": "ghost",
4690
+ "type": "button",
4694
4691
  "label": "Dismiss",
4695
4692
  "action": "HIDE",
4696
- "type": "button"
4693
+ "icon": "x"
4697
4694
  }
4698
- ]
4695
+ ],
4696
+ "gap": "md",
4697
+ "direction": "horizontal"
4699
4698
  },
4700
4699
  {
4701
4700
  "type": "divider"
4702
4701
  },
4703
4702
  {
4704
4703
  "type": "alert",
4705
- "message": "@entity.message",
4706
- "variant": "@entity.notificationType"
4704
+ "variant": "@entity.notificationType",
4705
+ "message": "@entity.message"
4707
4706
  },
4708
4707
  {
4709
4708
  "type": "toast-slot"
4710
4709
  },
4711
4710
  {
4712
4711
  "message": "@entity.message",
4713
- "variant": "warning",
4714
- "type": "alert"
4712
+ "type": "alert",
4713
+ "variant": "warning"
4715
4714
  }
4716
- ]
4715
+ ],
4716
+ "type": "stack",
4717
+ "gap": "lg"
4717
4718
  }
4718
- ],
4719
- "type": "dashboard-layout"
4719
+ ]
4720
4720
  }
4721
4721
  ]
4722
4722
  ]
@@ -4869,8 +4869,8 @@
4869
4869
  "StudentAssessment",
4870
4870
  {
4871
4871
  "emit": {
4872
- "success": "StudentAssessmentLoaded",
4873
- "failure": "StudentAssessmentLoadFailed"
4872
+ "failure": "StudentAssessmentLoadFailed",
4873
+ "success": "StudentAssessmentLoaded"
4874
4874
  }
4875
4875
  }
4876
4876
  ],
@@ -4878,33 +4878,33 @@
4878
4878
  "render-ui",
4879
4879
  "main",
4880
4880
  {
4881
- "type": "dashboard-layout",
4881
+ "appName": "AI Tutor",
4882
4882
  "navItems": [
4883
4883
  {
4884
4884
  "href": "/teach",
4885
- "icon": "book-open",
4886
- "label": "Teach"
4885
+ "label": "Teach",
4886
+ "icon": "book-open"
4887
4887
  },
4888
4888
  {
4889
+ "href": "/quiz",
4889
4890
  "label": "Quiz",
4890
- "icon": "help-circle",
4891
- "href": "/quiz"
4891
+ "icon": "help-circle"
4892
4892
  },
4893
4893
  {
4894
4894
  "label": "Concepts",
4895
- "icon": "brain",
4896
- "href": "/concepts"
4895
+ "href": "/concepts",
4896
+ "icon": "brain"
4897
4897
  }
4898
4898
  ],
4899
+ "type": "dashboard-layout",
4899
4900
  "children": [
4900
4901
  {
4901
- "description": "Classifier is ready",
4902
+ "icon": "tag",
4902
4903
  "title": "Classifier",
4903
- "type": "empty-state",
4904
- "icon": "tag"
4904
+ "description": "Classifier is ready",
4905
+ "type": "empty-state"
4905
4906
  }
4906
- ],
4907
- "appName": "AI Tutor"
4907
+ ]
4908
4908
  }
4909
4909
  ]
4910
4910
  ]