@almadar/std 14.5.1 → 14.6.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 (51) hide show
  1. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1077 -1077
  2. package/behaviors/registry/agent/organisms/std-agent-builder.orb +3053 -3053
  3. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2159 -2159
  4. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +931 -931
  5. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +793 -793
  6. package/behaviors/registry/app/organisms/std-api-gateway.orb +819 -819
  7. package/behaviors/registry/app/organisms/std-booking-system.orb +1168 -1168
  8. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +825 -825
  9. package/behaviors/registry/app/organisms/std-cms.orb +556 -556
  10. package/behaviors/registry/app/organisms/std-coding-academy.orb +353 -353
  11. package/behaviors/registry/app/organisms/std-crm.orb +806 -806
  12. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1209 -1209
  13. package/behaviors/registry/app/organisms/std-ecommerce.orb +742 -742
  14. package/behaviors/registry/app/organisms/std-finance-tracker.orb +626 -626
  15. package/behaviors/registry/app/organisms/std-healthcare.orb +1390 -1390
  16. package/behaviors/registry/app/organisms/std-helpdesk.orb +720 -720
  17. package/behaviors/registry/app/organisms/std-hr-portal.orb +1189 -1189
  18. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +786 -786
  19. package/behaviors/registry/app/organisms/std-lms.orb +860 -860
  20. package/behaviors/registry/app/organisms/std-project-manager.orb +668 -668
  21. package/behaviors/registry/app/organisms/std-realtime-chat.orb +725 -725
  22. package/behaviors/registry/app/organisms/std-social-feed.orb +227 -227
  23. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +646 -646
  24. package/behaviors/registry/service/organisms/std-service-marketplace.orb +973 -973
  25. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +898 -898
  26. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1077 -1077
  27. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +3053 -3053
  28. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2159 -2159
  29. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +931 -931
  30. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +793 -793
  31. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +819 -819
  32. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1168 -1168
  33. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +825 -825
  34. package/dist/behaviors/registry/app/organisms/std-cms.orb +556 -556
  35. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +353 -353
  36. package/dist/behaviors/registry/app/organisms/std-crm.orb +806 -806
  37. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1209 -1209
  38. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +742 -742
  39. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +626 -626
  40. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1390 -1390
  41. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +720 -720
  42. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1189 -1189
  43. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +786 -786
  44. package/dist/behaviors/registry/app/organisms/std-lms.orb +860 -860
  45. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +668 -668
  46. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +725 -725
  47. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +227 -227
  48. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +646 -646
  49. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +973 -973
  50. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +898 -898
  51. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-agent-tutor",
3
3
  "version": "1.0.0",
4
- "description": "std-agent-tutor as a Function",
4
+ "description": "Agent tutor: personalized tutoring with quizzes, concepts, and student assessments.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "TutorSessionOrbital",
@@ -361,8 +361,8 @@
361
361
  "TutorSession",
362
362
  {
363
363
  "emit": {
364
- "success": "TutorSessionLoaded",
365
- "failure": "TutorSessionLoadFailed"
364
+ "failure": "TutorSessionLoadFailed",
365
+ "success": "TutorSessionLoaded"
366
366
  }
367
367
  }
368
368
  ],
@@ -372,40 +372,44 @@
372
372
  {
373
373
  "navItems": [
374
374
  {
375
- "label": "Teach",
376
375
  "href": "/teach",
376
+ "label": "Teach",
377
377
  "icon": "book-open"
378
378
  },
379
379
  {
380
380
  "label": "Quiz",
381
- "icon": "help-circle",
382
- "href": "/quiz"
381
+ "href": "/quiz",
382
+ "icon": "help-circle"
383
383
  },
384
384
  {
385
+ "icon": "brain",
385
386
  "href": "/concepts",
386
- "label": "Concepts",
387
- "icon": "brain"
387
+ "label": "Concepts"
388
388
  }
389
389
  ],
390
+ "appName": "AI Tutor",
390
391
  "type": "dashboard-layout",
391
392
  "children": [
392
393
  {
394
+ "gap": "lg",
395
+ "direction": "vertical",
396
+ "type": "stack",
393
397
  "children": [
394
398
  {
395
- "direction": "horizontal",
396
- "type": "stack",
397
399
  "children": [
398
400
  {
399
401
  "type": "icon",
400
402
  "name": "graduation-cap"
401
403
  },
402
404
  {
405
+ "content": "Tutor",
403
406
  "type": "typography",
404
- "variant": "h2",
405
- "content": "Tutor"
407
+ "variant": "h2"
406
408
  }
407
409
  ],
408
410
  "align": "center",
411
+ "direction": "horizontal",
412
+ "type": "stack",
409
413
  "gap": "sm"
410
414
  },
411
415
  {
@@ -415,35 +419,31 @@
415
419
  "type": "card",
416
420
  "children": [
417
421
  {
418
- "type": "stack",
422
+ "direction": "vertical",
423
+ "gap": "md",
419
424
  "children": [
420
425
  {
421
426
  "type": "typography",
422
- "content": "What topic would you like to learn about? The tutor will assess your level and guide you through it.",
423
- "variant": "body"
427
+ "variant": "body",
428
+ "content": "What topic would you like to learn about? The tutor will assess your level and guide you through it."
424
429
  },
425
430
  {
431
+ "type": "form-section",
432
+ "entity": "@entity",
433
+ "submitEvent": "START_SESSION",
434
+ "mode": "edit",
426
435
  "fields": [
427
436
  "topic"
428
- ],
429
- "mode": "edit",
430
- "submitEvent": "START_SESSION",
431
- "type": "form-section",
432
- "entity": "@entity"
437
+ ]
433
438
  }
434
439
  ],
435
- "gap": "md",
436
- "direction": "vertical"
440
+ "type": "stack"
437
441
  }
438
442
  ]
439
443
  }
440
- ],
441
- "gap": "lg",
442
- "type": "stack",
443
- "direction": "vertical"
444
+ ]
444
445
  }
445
- ],
446
- "appName": "AI Tutor"
446
+ ]
447
447
  }
448
448
  ]
449
449
  ]
@@ -476,29 +476,9 @@
476
476
  "main",
477
477
  {
478
478
  "appName": "AI Tutor",
479
- "navItems": [
480
- {
481
- "label": "Teach",
482
- "icon": "book-open",
483
- "href": "/teach"
484
- },
485
- {
486
- "icon": "help-circle",
487
- "label": "Quiz",
488
- "href": "/quiz"
489
- },
490
- {
491
- "icon": "brain",
492
- "label": "Concepts",
493
- "href": "/concepts"
494
- }
495
- ],
496
- "type": "dashboard-layout",
497
479
  "children": [
498
480
  {
499
- "gap": "lg",
500
481
  "align": "center",
501
- "type": "stack",
502
482
  "children": [
503
483
  {
504
484
  "type": "icon",
@@ -513,12 +493,32 @@
513
493
  "type": "spinner"
514
494
  },
515
495
  {
516
- "type": "typography",
517
496
  "content": "Recalling prior learning and classifying skill level",
497
+ "type": "typography",
518
498
  "variant": "caption"
519
499
  }
520
500
  ],
521
- "direction": "vertical"
501
+ "type": "stack",
502
+ "direction": "vertical",
503
+ "gap": "lg"
504
+ }
505
+ ],
506
+ "type": "dashboard-layout",
507
+ "navItems": [
508
+ {
509
+ "icon": "book-open",
510
+ "href": "/teach",
511
+ "label": "Teach"
512
+ },
513
+ {
514
+ "label": "Quiz",
515
+ "icon": "help-circle",
516
+ "href": "/quiz"
517
+ },
518
+ {
519
+ "icon": "brain",
520
+ "label": "Concepts",
521
+ "href": "/concepts"
522
522
  }
523
523
  ]
524
524
  }
@@ -549,118 +549,118 @@
549
549
  "main",
550
550
  {
551
551
  "appName": "AI Tutor",
552
+ "type": "dashboard-layout",
552
553
  "children": [
553
554
  {
555
+ "type": "stack",
556
+ "gap": "lg",
557
+ "direction": "vertical",
554
558
  "children": [
555
559
  {
556
- "justify": "between",
557
560
  "direction": "horizontal",
561
+ "type": "stack",
562
+ "align": "center",
563
+ "justify": "between",
558
564
  "children": [
559
565
  {
560
566
  "direction": "horizontal",
567
+ "gap": "sm",
568
+ "align": "center",
561
569
  "children": [
562
570
  {
563
571
  "type": "icon",
564
572
  "name": "book-open"
565
573
  },
566
574
  {
575
+ "type": "typography",
567
576
  "content": "Lesson: @entity.topic",
568
- "variant": "h2",
569
- "type": "typography"
577
+ "variant": "h2"
570
578
  }
571
579
  ],
572
- "type": "stack",
573
- "align": "center",
574
- "gap": "sm"
580
+ "type": "stack"
575
581
  },
576
582
  {
577
583
  "type": "badge",
578
584
  "label": "@entity.studentLevel"
579
585
  }
580
586
  ],
581
- "gap": "sm",
582
- "align": "center",
583
- "type": "stack"
587
+ "gap": "sm"
584
588
  },
585
589
  {
586
590
  "type": "divider"
587
591
  },
588
592
  {
593
+ "type": "card",
589
594
  "children": [
590
595
  {
596
+ "gap": "md",
597
+ "direction": "vertical",
598
+ "type": "stack",
591
599
  "children": [
592
600
  {
593
601
  "variant": "body",
594
- "content": "@entity.explanation",
595
- "type": "typography"
602
+ "type": "typography",
603
+ "content": "@entity.explanation"
596
604
  }
597
- ],
598
- "type": "stack",
599
- "direction": "vertical",
600
- "gap": "md"
605
+ ]
601
606
  }
602
- ],
603
- "type": "card"
607
+ ]
604
608
  },
605
609
  {
606
- "gap": "sm",
610
+ "direction": "horizontal",
607
611
  "type": "stack",
612
+ "gap": "sm",
608
613
  "children": [
609
614
  {
610
615
  "icon": "help-circle",
611
- "type": "button",
612
- "label": "Quiz Me",
613
616
  "variant": "primary",
614
- "action": "START_QUIZ"
617
+ "label": "Quiz Me",
618
+ "action": "START_QUIZ",
619
+ "type": "button"
615
620
  },
616
621
  {
617
- "label": "Explain More",
622
+ "icon": "book-open",
623
+ "action": "EXPLAIN_MORE",
618
624
  "type": "button",
619
625
  "variant": "secondary",
620
- "action": "EXPLAIN_MORE",
621
- "icon": "book-open"
626
+ "label": "Explain More"
622
627
  },
623
628
  {
629
+ "label": "New Topic",
624
630
  "variant": "ghost",
625
- "type": "button",
626
631
  "action": "RESET",
627
- "label": "New Topic",
632
+ "type": "button",
628
633
  "icon": "rotate-ccw"
629
634
  }
630
- ],
631
- "direction": "horizontal"
635
+ ]
632
636
  },
633
637
  {
638
+ "type": "stack",
639
+ "gap": "xs",
634
640
  "children": [
635
641
  {
636
642
  "label": "@entity.questionsAsked",
637
643
  "type": "badge"
638
644
  },
639
645
  {
640
- "label": "@entity.correctAnswers",
641
- "type": "badge"
646
+ "type": "badge",
647
+ "label": "@entity.correctAnswers"
642
648
  }
643
649
  ],
644
- "type": "stack",
645
- "direction": "horizontal",
646
- "gap": "xs"
650
+ "direction": "horizontal"
647
651
  }
648
- ],
649
- "gap": "lg",
650
- "type": "stack",
651
- "direction": "vertical"
652
+ ]
652
653
  }
653
654
  ],
654
- "type": "dashboard-layout",
655
655
  "navItems": [
656
656
  {
657
657
  "label": "Teach",
658
- "href": "/teach",
659
- "icon": "book-open"
658
+ "icon": "book-open",
659
+ "href": "/teach"
660
660
  },
661
661
  {
662
- "label": "Quiz",
663
662
  "icon": "help-circle",
663
+ "label": "Quiz",
664
664
  "href": "/quiz"
665
665
  },
666
666
  {
@@ -686,41 +686,25 @@
686
686
  "render-ui",
687
687
  "main",
688
688
  {
689
- "type": "dashboard-layout",
690
- "navItems": [
691
- {
692
- "href": "/teach",
693
- "icon": "book-open",
694
- "label": "Teach"
695
- },
696
- {
697
- "href": "/quiz",
698
- "icon": "help-circle",
699
- "label": "Quiz"
700
- },
701
- {
702
- "label": "Concepts",
703
- "icon": "brain",
704
- "href": "/concepts"
705
- }
706
- ],
707
- "appName": "AI Tutor",
708
689
  "children": [
709
690
  {
710
- "direction": "vertical",
711
691
  "gap": "lg",
712
692
  "type": "stack",
693
+ "direction": "vertical",
713
694
  "children": [
714
695
  {
715
- "align": "center",
716
696
  "justify": "between",
697
+ "gap": "sm",
698
+ "align": "center",
699
+ "type": "stack",
717
700
  "children": [
718
701
  {
719
- "direction": "horizontal",
702
+ "align": "center",
703
+ "gap": "sm",
720
704
  "children": [
721
705
  {
722
- "name": "book-open",
723
- "type": "icon"
706
+ "type": "icon",
707
+ "name": "book-open"
724
708
  },
725
709
  {
726
710
  "type": "typography",
@@ -728,84 +712,100 @@
728
712
  "variant": "h2"
729
713
  }
730
714
  ],
731
- "align": "center",
732
- "gap": "sm",
733
- "type": "stack"
715
+ "type": "stack",
716
+ "direction": "horizontal"
734
717
  },
735
718
  {
736
719
  "type": "badge",
737
720
  "label": "@entity.studentLevel"
738
721
  }
739
722
  ],
740
- "gap": "sm",
741
- "type": "stack",
742
723
  "direction": "horizontal"
743
724
  },
744
725
  {
745
726
  "type": "divider"
746
727
  },
747
728
  {
748
- "type": "card",
749
729
  "children": [
750
730
  {
751
- "type": "stack",
752
- "direction": "vertical",
753
731
  "children": [
754
732
  {
755
- "content": "@entity.explanation",
733
+ "type": "typography",
756
734
  "variant": "body",
757
- "type": "typography"
735
+ "content": "@entity.explanation"
758
736
  }
759
737
  ],
760
- "gap": "md"
738
+ "type": "stack",
739
+ "gap": "md",
740
+ "direction": "vertical"
761
741
  }
762
- ]
742
+ ],
743
+ "type": "card"
763
744
  },
764
745
  {
765
- "direction": "horizontal",
746
+ "type": "stack",
747
+ "gap": "sm",
766
748
  "children": [
767
749
  {
768
- "action": "START_QUIZ",
769
- "variant": "primary",
770
- "label": "Quiz Me",
771
750
  "type": "button",
772
- "icon": "help-circle"
751
+ "label": "Quiz Me",
752
+ "variant": "primary",
753
+ "icon": "help-circle",
754
+ "action": "START_QUIZ"
773
755
  },
774
756
  {
775
- "type": "button",
776
- "action": "EXPLAIN_MORE",
757
+ "icon": "book-open",
777
758
  "variant": "secondary",
778
759
  "label": "Explain More",
779
- "icon": "book-open"
760
+ "type": "button",
761
+ "action": "EXPLAIN_MORE"
780
762
  },
781
763
  {
782
764
  "icon": "rotate-ccw",
783
- "variant": "ghost",
784
- "label": "New Topic",
785
765
  "type": "button",
786
- "action": "RESET"
766
+ "label": "New Topic",
767
+ "action": "RESET",
768
+ "variant": "ghost"
787
769
  }
788
770
  ],
789
- "type": "stack",
790
- "gap": "sm"
771
+ "direction": "horizontal"
791
772
  },
792
773
  {
793
- "gap": "xs",
794
774
  "direction": "horizontal",
795
- "type": "stack",
775
+ "gap": "xs",
796
776
  "children": [
797
777
  {
798
778
  "type": "badge",
799
779
  "label": "@entity.questionsAsked"
800
780
  },
801
781
  {
802
- "label": "@entity.correctAnswers",
803
- "type": "badge"
782
+ "type": "badge",
783
+ "label": "@entity.correctAnswers"
804
784
  }
805
- ]
785
+ ],
786
+ "type": "stack"
806
787
  }
807
788
  ]
808
789
  }
790
+ ],
791
+ "type": "dashboard-layout",
792
+ "appName": "AI Tutor",
793
+ "navItems": [
794
+ {
795
+ "href": "/teach",
796
+ "icon": "book-open",
797
+ "label": "Teach"
798
+ },
799
+ {
800
+ "label": "Quiz",
801
+ "href": "/quiz",
802
+ "icon": "help-circle"
803
+ },
804
+ {
805
+ "href": "/concepts",
806
+ "label": "Concepts",
807
+ "icon": "brain"
808
+ }
809
809
  ]
810
810
  }
811
811
  ]
@@ -824,8 +824,8 @@
824
824
  "render-ui",
825
825
  "main",
826
826
  {
827
- "type": "dashboard-layout",
828
827
  "appName": "AI Tutor",
828
+ "type": "dashboard-layout",
829
829
  "navItems": [
830
830
  {
831
831
  "href": "/teach",
@@ -833,51 +833,49 @@
833
833
  "icon": "book-open"
834
834
  },
835
835
  {
836
- "href": "/quiz",
837
836
  "label": "Quiz",
837
+ "href": "/quiz",
838
838
  "icon": "help-circle"
839
839
  },
840
840
  {
841
841
  "href": "/concepts",
842
- "icon": "brain",
843
- "label": "Concepts"
842
+ "label": "Concepts",
843
+ "icon": "brain"
844
844
  }
845
845
  ],
846
846
  "children": [
847
847
  {
848
- "gap": "lg",
849
848
  "type": "stack",
850
- "direction": "vertical",
851
849
  "children": [
852
850
  {
853
851
  "type": "stack",
854
- "justify": "between",
855
- "gap": "sm",
856
- "align": "center",
857
852
  "children": [
858
853
  {
859
- "align": "center",
854
+ "type": "stack",
860
855
  "children": [
861
856
  {
862
- "type": "icon",
863
- "name": "book-open"
857
+ "name": "book-open",
858
+ "type": "icon"
864
859
  },
865
860
  {
861
+ "type": "typography",
866
862
  "content": "Lesson: @entity.topic",
867
- "variant": "h2",
868
- "type": "typography"
863
+ "variant": "h2"
869
864
  }
870
865
  ],
871
- "type": "stack",
872
- "gap": "sm",
873
- "direction": "horizontal"
866
+ "direction": "horizontal",
867
+ "align": "center",
868
+ "gap": "sm"
874
869
  },
875
870
  {
876
- "type": "badge",
877
- "label": "@entity.studentLevel"
871
+ "label": "@entity.studentLevel",
872
+ "type": "badge"
878
873
  }
879
874
  ],
880
- "direction": "horizontal"
875
+ "align": "center",
876
+ "justify": "between",
877
+ "direction": "horizontal",
878
+ "gap": "sm"
881
879
  },
882
880
  {
883
881
  "type": "divider"
@@ -886,63 +884,65 @@
886
884
  "children": [
887
885
  {
888
886
  "direction": "vertical",
887
+ "gap": "md",
889
888
  "type": "stack",
890
889
  "children": [
891
890
  {
892
891
  "content": "@entity.explanation",
893
- "variant": "body",
894
- "type": "typography"
892
+ "type": "typography",
893
+ "variant": "body"
895
894
  }
896
- ],
897
- "gap": "md"
895
+ ]
898
896
  }
899
897
  ],
900
898
  "type": "card"
901
899
  },
902
900
  {
903
901
  "type": "stack",
904
- "gap": "sm",
905
- "direction": "horizontal",
906
902
  "children": [
907
903
  {
904
+ "type": "button",
908
905
  "variant": "primary",
909
906
  "label": "Quiz Me",
910
- "type": "button",
911
- "action": "START_QUIZ",
912
- "icon": "help-circle"
907
+ "icon": "help-circle",
908
+ "action": "START_QUIZ"
913
909
  },
914
910
  {
915
- "variant": "secondary",
916
- "action": "EXPLAIN_MORE",
917
911
  "type": "button",
912
+ "icon": "book-open",
918
913
  "label": "Explain More",
919
- "icon": "book-open"
914
+ "action": "EXPLAIN_MORE",
915
+ "variant": "secondary"
920
916
  },
921
917
  {
922
- "type": "button",
923
918
  "label": "New Topic",
919
+ "type": "button",
924
920
  "variant": "ghost",
925
921
  "icon": "rotate-ccw",
926
922
  "action": "RESET"
927
923
  }
928
- ]
924
+ ],
925
+ "gap": "sm",
926
+ "direction": "horizontal"
929
927
  },
930
928
  {
931
- "type": "stack",
932
- "direction": "horizontal",
933
929
  "children": [
934
930
  {
935
- "label": "@entity.questionsAsked",
936
- "type": "badge"
931
+ "type": "badge",
932
+ "label": "@entity.questionsAsked"
937
933
  },
938
934
  {
939
935
  "label": "@entity.correctAnswers",
940
936
  "type": "badge"
941
937
  }
942
938
  ],
943
- "gap": "xs"
939
+ "gap": "xs",
940
+ "type": "stack",
941
+ "direction": "horizontal"
944
942
  }
945
- ]
943
+ ],
944
+ "gap": "lg",
945
+ "direction": "vertical"
946
946
  }
947
947
  ]
948
948
  }
@@ -983,44 +983,25 @@
983
983
  "render-ui",
984
984
  "main",
985
985
  {
986
- "navItems": [
987
- {
988
- "icon": "book-open",
989
- "href": "/teach",
990
- "label": "Teach"
991
- },
992
- {
993
- "icon": "help-circle",
994
- "label": "Quiz",
995
- "href": "/quiz"
996
- },
997
- {
998
- "icon": "brain",
999
- "label": "Concepts",
1000
- "href": "/concepts"
1001
- }
1002
- ],
1003
986
  "children": [
1004
987
  {
1005
- "type": "stack",
1006
- "gap": "lg",
1007
988
  "children": [
1008
989
  {
1009
990
  "direction": "horizontal",
991
+ "align": "center",
992
+ "gap": "sm",
993
+ "type": "stack",
1010
994
  "children": [
1011
995
  {
1012
- "name": "graduation-cap",
1013
- "type": "icon"
996
+ "type": "icon",
997
+ "name": "graduation-cap"
1014
998
  },
1015
999
  {
1016
1000
  "variant": "h2",
1017
- "type": "typography",
1018
- "content": "Tutor"
1001
+ "content": "Tutor",
1002
+ "type": "typography"
1019
1003
  }
1020
- ],
1021
- "gap": "sm",
1022
- "type": "stack",
1023
- "align": "center"
1004
+ ]
1024
1005
  },
1025
1006
  {
1026
1007
  "type": "divider"
@@ -1029,33 +1010,52 @@
1029
1010
  "type": "card",
1030
1011
  "children": [
1031
1012
  {
1032
- "direction": "vertical",
1033
- "type": "stack",
1013
+ "gap": "md",
1034
1014
  "children": [
1035
1015
  {
1036
- "type": "typography",
1037
- "variant": "body",
1038
- "content": "What topic would you like to learn about? The tutor will assess your level and guide you through it."
1016
+ "content": "What topic would you like to learn about? The tutor will assess your level and guide you through it.",
1017
+ "type": "typography",
1018
+ "variant": "body"
1039
1019
  },
1040
1020
  {
1021
+ "type": "form-section",
1022
+ "submitEvent": "START_SESSION",
1023
+ "mode": "edit",
1041
1024
  "fields": [
1042
1025
  "topic"
1043
1026
  ],
1044
- "type": "form-section",
1045
- "entity": "@entity",
1046
- "mode": "edit",
1047
- "submitEvent": "START_SESSION"
1027
+ "entity": "@entity"
1048
1028
  }
1049
1029
  ],
1050
- "gap": "md"
1030
+ "type": "stack",
1031
+ "direction": "vertical"
1051
1032
  }
1052
1033
  ]
1053
1034
  }
1054
1035
  ],
1055
- "direction": "vertical"
1036
+ "type": "stack",
1037
+ "direction": "vertical",
1038
+ "gap": "lg"
1056
1039
  }
1057
1040
  ],
1058
1041
  "appName": "AI Tutor",
1042
+ "navItems": [
1043
+ {
1044
+ "label": "Teach",
1045
+ "icon": "book-open",
1046
+ "href": "/teach"
1047
+ },
1048
+ {
1049
+ "label": "Quiz",
1050
+ "href": "/quiz",
1051
+ "icon": "help-circle"
1052
+ },
1053
+ {
1054
+ "icon": "brain",
1055
+ "href": "/concepts",
1056
+ "label": "Concepts"
1057
+ }
1058
+ ],
1059
1059
  "type": "dashboard-layout"
1060
1060
  }
1061
1061
  ]
@@ -1287,8 +1287,8 @@
1287
1287
  "QuizQuestion",
1288
1288
  {
1289
1289
  "emit": {
1290
- "success": "QuizQuestionLoaded",
1291
- "failure": "QuizQuestionLoadFailed"
1290
+ "failure": "QuizQuestionLoadFailed",
1291
+ "success": "QuizQuestionLoaded"
1292
1292
  }
1293
1293
  }
1294
1294
  ],
@@ -1298,17 +1298,34 @@
1298
1298
  {
1299
1299
  "type": "dashboard-layout",
1300
1300
  "appName": "AI Tutor",
1301
+ "navItems": [
1302
+ {
1303
+ "label": "Teach",
1304
+ "href": "/teach",
1305
+ "icon": "book-open"
1306
+ },
1307
+ {
1308
+ "icon": "help-circle",
1309
+ "href": "/quiz",
1310
+ "label": "Quiz"
1311
+ },
1312
+ {
1313
+ "icon": "brain",
1314
+ "href": "/concepts",
1315
+ "label": "Concepts"
1316
+ }
1317
+ ],
1301
1318
  "children": [
1302
1319
  {
1320
+ "gap": "lg",
1321
+ "type": "stack",
1322
+ "direction": "vertical",
1303
1323
  "children": [
1304
1324
  {
1305
- "direction": "horizontal",
1306
- "type": "stack",
1307
- "align": "center",
1308
1325
  "children": [
1309
1326
  {
1310
- "type": "icon",
1311
- "name": "help-circle"
1327
+ "name": "help-circle",
1328
+ "type": "icon"
1312
1329
  },
1313
1330
  {
1314
1331
  "type": "typography",
@@ -1316,37 +1333,20 @@
1316
1333
  "variant": "h2"
1317
1334
  }
1318
1335
  ],
1336
+ "type": "stack",
1337
+ "direction": "horizontal",
1338
+ "align": "center",
1319
1339
  "gap": "sm"
1320
1340
  },
1321
1341
  {
1322
1342
  "type": "divider"
1323
1343
  },
1324
1344
  {
1325
- "type": "typography",
1345
+ "variant": "body",
1326
1346
  "content": "Waiting for a quiz to start...",
1327
- "variant": "body"
1347
+ "type": "typography"
1328
1348
  }
1329
- ],
1330
- "direction": "vertical",
1331
- "type": "stack",
1332
- "gap": "lg"
1333
- }
1334
- ],
1335
- "navItems": [
1336
- {
1337
- "href": "/teach",
1338
- "label": "Teach",
1339
- "icon": "book-open"
1340
- },
1341
- {
1342
- "icon": "help-circle",
1343
- "href": "/quiz",
1344
- "label": "Quiz"
1345
- },
1346
- {
1347
- "href": "/concepts",
1348
- "icon": "brain",
1349
- "label": "Concepts"
1349
+ ]
1350
1350
  }
1351
1351
  ]
1352
1352
  }
@@ -1371,29 +1371,46 @@
1371
1371
  "render-ui",
1372
1372
  "main",
1373
1373
  {
1374
+ "navItems": [
1375
+ {
1376
+ "href": "/teach",
1377
+ "icon": "book-open",
1378
+ "label": "Teach"
1379
+ },
1380
+ {
1381
+ "label": "Quiz",
1382
+ "href": "/quiz",
1383
+ "icon": "help-circle"
1384
+ },
1385
+ {
1386
+ "icon": "brain",
1387
+ "href": "/concepts",
1388
+ "label": "Concepts"
1389
+ }
1390
+ ],
1374
1391
  "type": "dashboard-layout",
1375
1392
  "children": [
1376
1393
  {
1394
+ "type": "stack",
1377
1395
  "direction": "vertical",
1378
1396
  "gap": "lg",
1379
- "type": "stack",
1380
1397
  "children": [
1381
1398
  {
1399
+ "type": "stack",
1400
+ "direction": "horizontal",
1401
+ "align": "center",
1382
1402
  "children": [
1383
1403
  {
1384
1404
  "type": "icon",
1385
1405
  "name": "help-circle"
1386
1406
  },
1387
1407
  {
1388
- "variant": "h2",
1408
+ "content": "Quiz Question",
1389
1409
  "type": "typography",
1390
- "content": "Quiz Question"
1410
+ "variant": "h2"
1391
1411
  }
1392
1412
  ],
1393
- "type": "stack",
1394
- "direction": "horizontal",
1395
- "gap": "sm",
1396
- "align": "center"
1413
+ "gap": "sm"
1397
1414
  },
1398
1415
  {
1399
1416
  "type": "divider"
@@ -1402,29 +1419,29 @@
1402
1419
  "type": "card",
1403
1420
  "children": [
1404
1421
  {
1422
+ "type": "stack",
1423
+ "gap": "md",
1405
1424
  "children": [
1406
1425
  {
1407
- "content": "@entity.question",
1408
1426
  "type": "typography",
1409
- "variant": "h3"
1427
+ "variant": "h3",
1428
+ "content": "@entity.question"
1410
1429
  },
1411
1430
  {
1431
+ "variant": "body",
1412
1432
  "type": "typography",
1413
- "content": "@entity.options",
1414
- "variant": "body"
1433
+ "content": "@entity.options"
1415
1434
  },
1416
1435
  {
1417
- "type": "form-section",
1418
- "mode": "edit",
1419
1436
  "fields": [
1420
1437
  "studentAnswer"
1421
1438
  ],
1422
1439
  "submitEvent": "SUBMIT_ANSWER",
1423
- "entity": "@entity"
1440
+ "type": "form-section",
1441
+ "entity": "@entity",
1442
+ "mode": "edit"
1424
1443
  }
1425
1444
  ],
1426
- "type": "stack",
1427
- "gap": "md",
1428
1445
  "direction": "vertical"
1429
1446
  }
1430
1447
  ]
@@ -1432,24 +1449,7 @@
1432
1449
  ]
1433
1450
  }
1434
1451
  ],
1435
- "appName": "AI Tutor",
1436
- "navItems": [
1437
- {
1438
- "href": "/teach",
1439
- "icon": "book-open",
1440
- "label": "Teach"
1441
- },
1442
- {
1443
- "label": "Quiz",
1444
- "icon": "help-circle",
1445
- "href": "/quiz"
1446
- },
1447
- {
1448
- "href": "/concepts",
1449
- "icon": "brain",
1450
- "label": "Concepts"
1451
- }
1452
- ]
1452
+ "appName": "AI Tutor"
1453
1453
  }
1454
1454
  ]
1455
1455
  ]
@@ -1469,83 +1469,83 @@
1469
1469
  "main",
1470
1470
  {
1471
1471
  "appName": "AI Tutor",
1472
- "navItems": [
1473
- {
1474
- "icon": "book-open",
1475
- "label": "Teach",
1476
- "href": "/teach"
1477
- },
1478
- {
1479
- "label": "Quiz",
1480
- "href": "/quiz",
1481
- "icon": "help-circle"
1482
- },
1483
- {
1484
- "icon": "brain",
1485
- "href": "/concepts",
1486
- "label": "Concepts"
1487
- }
1488
- ],
1489
1472
  "type": "dashboard-layout",
1490
1473
  "children": [
1491
1474
  {
1492
1475
  "type": "stack",
1493
1476
  "children": [
1494
1477
  {
1478
+ "type": "stack",
1495
1479
  "align": "center",
1480
+ "direction": "horizontal",
1496
1481
  "children": [
1497
1482
  {
1498
- "type": "icon",
1499
- "name": "help-circle"
1483
+ "name": "help-circle",
1484
+ "type": "icon"
1500
1485
  },
1501
1486
  {
1487
+ "type": "typography",
1502
1488
  "variant": "h2",
1503
- "content": "Quiz Question",
1504
- "type": "typography"
1489
+ "content": "Quiz Question"
1505
1490
  }
1506
1491
  ],
1507
- "direction": "horizontal",
1508
- "type": "stack",
1509
1492
  "gap": "sm"
1510
1493
  },
1511
1494
  {
1512
1495
  "type": "divider"
1513
1496
  },
1514
1497
  {
1498
+ "type": "card",
1515
1499
  "children": [
1516
1500
  {
1501
+ "direction": "vertical",
1502
+ "gap": "md",
1517
1503
  "type": "stack",
1518
1504
  "children": [
1519
1505
  {
1520
- "content": "@entity.question",
1521
1506
  "type": "typography",
1507
+ "content": "@entity.question",
1522
1508
  "variant": "h3"
1523
1509
  },
1524
1510
  {
1511
+ "content": "@entity.options",
1525
1512
  "variant": "body",
1526
- "type": "typography",
1527
- "content": "@entity.options"
1513
+ "type": "typography"
1528
1514
  },
1529
1515
  {
1530
- "type": "form-section",
1531
1516
  "mode": "edit",
1532
1517
  "submitEvent": "SUBMIT_ANSWER",
1533
- "entity": "@entity",
1534
1518
  "fields": [
1535
1519
  "studentAnswer"
1536
- ]
1520
+ ],
1521
+ "type": "form-section",
1522
+ "entity": "@entity"
1537
1523
  }
1538
- ],
1539
- "gap": "md",
1540
- "direction": "vertical"
1524
+ ]
1541
1525
  }
1542
- ],
1543
- "type": "card"
1526
+ ]
1544
1527
  }
1545
1528
  ],
1546
1529
  "gap": "lg",
1547
1530
  "direction": "vertical"
1548
1531
  }
1532
+ ],
1533
+ "navItems": [
1534
+ {
1535
+ "href": "/teach",
1536
+ "label": "Teach",
1537
+ "icon": "book-open"
1538
+ },
1539
+ {
1540
+ "label": "Quiz",
1541
+ "icon": "help-circle",
1542
+ "href": "/quiz"
1543
+ },
1544
+ {
1545
+ "label": "Concepts",
1546
+ "href": "/concepts",
1547
+ "icon": "brain"
1548
+ }
1549
1549
  ]
1550
1550
  }
1551
1551
  ]
@@ -1578,17 +1578,16 @@
1578
1578
  "render-ui",
1579
1579
  "main",
1580
1580
  {
1581
- "appName": "AI Tutor",
1582
1581
  "navItems": [
1583
1582
  {
1583
+ "label": "Teach",
1584
1584
  "href": "/teach",
1585
- "icon": "book-open",
1586
- "label": "Teach"
1585
+ "icon": "book-open"
1587
1586
  },
1588
1587
  {
1589
1588
  "icon": "help-circle",
1590
- "href": "/quiz",
1591
- "label": "Quiz"
1589
+ "label": "Quiz",
1590
+ "href": "/quiz"
1592
1591
  },
1593
1592
  {
1594
1593
  "label": "Concepts",
@@ -1596,38 +1595,43 @@
1596
1595
  "href": "/concepts"
1597
1596
  }
1598
1597
  ],
1598
+ "appName": "AI Tutor",
1599
+ "type": "dashboard-layout",
1599
1600
  "children": [
1600
1601
  {
1601
- "gap": "lg",
1602
1602
  "type": "stack",
1603
1603
  "direction": "vertical",
1604
+ "gap": "lg",
1604
1605
  "children": [
1605
1606
  {
1606
- "direction": "horizontal",
1607
- "gap": "sm",
1607
+ "type": "stack",
1608
1608
  "align": "center",
1609
+ "direction": "horizontal",
1609
1610
  "children": [
1610
1611
  {
1611
- "name": "check-circle",
1612
- "type": "icon"
1612
+ "type": "icon",
1613
+ "name": "check-circle"
1613
1614
  },
1614
1615
  {
1615
- "type": "typography",
1616
1616
  "content": "Answer Review",
1617
- "variant": "h2"
1617
+ "variant": "h2",
1618
+ "type": "typography"
1618
1619
  }
1619
1620
  ],
1620
- "type": "stack"
1621
+ "gap": "sm"
1621
1622
  },
1622
1623
  {
1623
1624
  "type": "divider"
1624
1625
  },
1625
1626
  {
1626
- "type": "card",
1627
1627
  "children": [
1628
1628
  {
1629
+ "direction": "vertical",
1630
+ "type": "stack",
1631
+ "gap": "md",
1629
1632
  "children": [
1630
1633
  {
1634
+ "type": "stack",
1631
1635
  "direction": "horizontal",
1632
1636
  "gap": "sm",
1633
1637
  "children": [
@@ -1635,56 +1639,52 @@
1635
1639
  "type": "badge",
1636
1640
  "label": "@entity.feedback"
1637
1641
  }
1638
- ],
1639
- "type": "stack"
1642
+ ]
1640
1643
  },
1641
1644
  {
1642
1645
  "content": "@entity.feedback",
1643
- "variant": "body",
1644
- "type": "typography"
1646
+ "type": "typography",
1647
+ "variant": "body"
1645
1648
  },
1646
1649
  {
1647
- "type": "typography",
1648
1650
  "content": "Correct answer",
1649
- "variant": "caption"
1651
+ "variant": "caption",
1652
+ "type": "typography"
1650
1653
  },
1651
1654
  {
1652
- "type": "typography",
1655
+ "content": "@entity.correctAnswer",
1653
1656
  "variant": "body",
1654
- "content": "@entity.correctAnswer"
1657
+ "type": "typography"
1655
1658
  }
1656
- ],
1657
- "type": "stack",
1658
- "direction": "vertical",
1659
- "gap": "md"
1659
+ ]
1660
1660
  }
1661
- ]
1661
+ ],
1662
+ "type": "card"
1662
1663
  },
1663
1664
  {
1665
+ "direction": "horizontal",
1666
+ "type": "stack",
1664
1667
  "children": [
1665
1668
  {
1666
1669
  "label": "Next Question",
1670
+ "type": "button",
1667
1671
  "action": "NEXT_QUESTION",
1668
1672
  "variant": "primary",
1669
- "type": "button",
1670
1673
  "icon": "arrow-right"
1671
1674
  },
1672
1675
  {
1673
- "label": "Back to Lesson",
1674
1676
  "type": "button",
1675
- "action": "BACK_TO_LESSON",
1677
+ "label": "Back to Lesson",
1676
1678
  "variant": "ghost",
1679
+ "action": "BACK_TO_LESSON",
1677
1680
  "icon": "book-open"
1678
1681
  }
1679
1682
  ],
1680
- "gap": "sm",
1681
- "type": "stack",
1682
- "direction": "horizontal"
1683
+ "gap": "sm"
1683
1684
  }
1684
1685
  ]
1685
1686
  }
1686
- ],
1687
- "type": "dashboard-layout"
1687
+ ]
1688
1688
  }
1689
1689
  ]
1690
1690
  ]
@@ -1717,85 +1717,85 @@
1717
1717
  "render-ui",
1718
1718
  "main",
1719
1719
  {
1720
- "type": "dashboard-layout",
1720
+ "navItems": [
1721
+ {
1722
+ "label": "Teach",
1723
+ "icon": "book-open",
1724
+ "href": "/teach"
1725
+ },
1726
+ {
1727
+ "icon": "help-circle",
1728
+ "label": "Quiz",
1729
+ "href": "/quiz"
1730
+ },
1731
+ {
1732
+ "href": "/concepts",
1733
+ "label": "Concepts",
1734
+ "icon": "brain"
1735
+ }
1736
+ ],
1721
1737
  "children": [
1722
1738
  {
1739
+ "direction": "vertical",
1723
1740
  "type": "stack",
1741
+ "gap": "lg",
1724
1742
  "children": [
1725
1743
  {
1726
- "direction": "horizontal",
1727
- "type": "stack",
1744
+ "gap": "sm",
1728
1745
  "align": "center",
1746
+ "type": "stack",
1747
+ "direction": "horizontal",
1729
1748
  "children": [
1730
1749
  {
1731
- "type": "icon",
1732
- "name": "help-circle"
1750
+ "name": "help-circle",
1751
+ "type": "icon"
1733
1752
  },
1734
1753
  {
1735
- "content": "Quiz Question",
1754
+ "variant": "h2",
1736
1755
  "type": "typography",
1737
- "variant": "h2"
1756
+ "content": "Quiz Question"
1738
1757
  }
1739
- ],
1740
- "gap": "sm"
1758
+ ]
1741
1759
  },
1742
1760
  {
1743
1761
  "type": "divider"
1744
1762
  },
1745
1763
  {
1764
+ "type": "card",
1746
1765
  "children": [
1747
1766
  {
1748
1767
  "direction": "vertical",
1768
+ "gap": "md",
1749
1769
  "children": [
1750
1770
  {
1751
- "content": "@entity.question",
1771
+ "type": "typography",
1752
1772
  "variant": "h3",
1753
- "type": "typography"
1773
+ "content": "@entity.question"
1754
1774
  },
1755
1775
  {
1756
- "type": "typography",
1757
1776
  "content": "@entity.options",
1758
- "variant": "body"
1777
+ "variant": "body",
1778
+ "type": "typography"
1759
1779
  },
1760
1780
  {
1781
+ "mode": "edit",
1782
+ "entity": "@entity",
1783
+ "submitEvent": "SUBMIT_ANSWER",
1761
1784
  "fields": [
1762
1785
  "studentAnswer"
1763
1786
  ],
1764
- "submitEvent": "SUBMIT_ANSWER",
1765
- "mode": "edit",
1766
- "entity": "@entity",
1767
1787
  "type": "form-section"
1768
1788
  }
1769
1789
  ],
1770
- "gap": "md",
1771
1790
  "type": "stack"
1772
1791
  }
1773
- ],
1774
- "type": "card"
1792
+ ]
1775
1793
  }
1776
- ],
1777
- "direction": "vertical",
1778
- "gap": "lg"
1779
- }
1780
- ],
1781
- "navItems": [
1782
- {
1783
- "icon": "book-open",
1784
- "label": "Teach",
1785
- "href": "/teach"
1786
- },
1787
- {
1788
- "label": "Quiz",
1789
- "href": "/quiz",
1790
- "icon": "help-circle"
1791
- },
1792
- {
1793
- "href": "/concepts",
1794
- "label": "Concepts",
1795
- "icon": "brain"
1794
+ ]
1796
1795
  }
1797
1796
  ],
1798
- "appName": "AI Tutor"
1797
+ "appName": "AI Tutor",
1798
+ "type": "dashboard-layout"
1799
1799
  }
1800
1800
  ]
1801
1801
  ]
@@ -1814,28 +1814,42 @@
1814
1814
  "render-ui",
1815
1815
  "main",
1816
1816
  {
1817
- "appName": "AI Tutor",
1817
+ "navItems": [
1818
+ {
1819
+ "label": "Teach",
1820
+ "icon": "book-open",
1821
+ "href": "/teach"
1822
+ },
1823
+ {
1824
+ "href": "/quiz",
1825
+ "icon": "help-circle",
1826
+ "label": "Quiz"
1827
+ },
1828
+ {
1829
+ "icon": "brain",
1830
+ "label": "Concepts",
1831
+ "href": "/concepts"
1832
+ }
1833
+ ],
1818
1834
  "children": [
1819
1835
  {
1820
- "direction": "vertical",
1821
- "type": "stack",
1822
1836
  "children": [
1823
1837
  {
1824
- "type": "stack",
1825
1838
  "gap": "sm",
1826
- "align": "center",
1827
- "direction": "horizontal",
1828
1839
  "children": [
1829
1840
  {
1830
- "name": "help-circle",
1831
- "type": "icon"
1841
+ "type": "icon",
1842
+ "name": "help-circle"
1832
1843
  },
1833
1844
  {
1834
1845
  "type": "typography",
1835
- "content": "Quiz",
1836
- "variant": "h2"
1846
+ "variant": "h2",
1847
+ "content": "Quiz"
1837
1848
  }
1838
- ]
1849
+ ],
1850
+ "type": "stack",
1851
+ "direction": "horizontal",
1852
+ "align": "center"
1839
1853
  },
1840
1854
  {
1841
1855
  "type": "divider"
@@ -1846,26 +1860,12 @@
1846
1860
  "variant": "body"
1847
1861
  }
1848
1862
  ],
1863
+ "direction": "vertical",
1864
+ "type": "stack",
1849
1865
  "gap": "lg"
1850
1866
  }
1851
1867
  ],
1852
- "navItems": [
1853
- {
1854
- "href": "/teach",
1855
- "icon": "book-open",
1856
- "label": "Teach"
1857
- },
1858
- {
1859
- "label": "Quiz",
1860
- "href": "/quiz",
1861
- "icon": "help-circle"
1862
- },
1863
- {
1864
- "icon": "brain",
1865
- "label": "Concepts",
1866
- "href": "/concepts"
1867
- }
1868
- ],
1868
+ "appName": "AI Tutor",
1869
1869
  "type": "dashboard-layout"
1870
1870
  }
1871
1871
  ]
@@ -2117,22 +2117,22 @@
2117
2117
  "render-ui",
2118
2118
  "main",
2119
2119
  {
2120
+ "gap": "md",
2120
2121
  "type": "stack",
2121
- "className": "py-12",
2122
2122
  "children": [
2123
2123
  {
2124
2124
  "type": "spinner"
2125
2125
  },
2126
2126
  {
2127
- "content": "Loading…",
2128
- "color": "muted",
2129
2127
  "variant": "caption",
2130
- "type": "typography"
2128
+ "color": "muted",
2129
+ "type": "typography",
2130
+ "content": "Loading…"
2131
2131
  }
2132
2132
  ],
2133
2133
  "direction": "vertical",
2134
- "gap": "md",
2135
- "align": "center"
2134
+ "align": "center",
2135
+ "className": "py-12"
2136
2136
  }
2137
2137
  ]
2138
2138
  ]
@@ -2146,114 +2146,114 @@
2146
2146
  "render-ui",
2147
2147
  "main",
2148
2148
  {
2149
- "appName": "AI Tutor",
2150
- "navItems": [
2151
- {
2152
- "label": "Teach",
2153
- "href": "/teach",
2154
- "icon": "book-open"
2155
- },
2156
- {
2157
- "href": "/quiz",
2158
- "label": "Quiz",
2159
- "icon": "help-circle"
2160
- },
2161
- {
2162
- "label": "Concepts",
2163
- "href": "/concepts",
2164
- "icon": "brain"
2165
- }
2166
- ],
2167
- "type": "dashboard-layout",
2168
2149
  "children": [
2169
2150
  {
2170
- "direction": "vertical",
2171
- "gap": "lg",
2172
- "type": "stack",
2173
2151
  "children": [
2174
2152
  {
2175
- "type": "stack",
2176
- "justify": "between",
2177
2153
  "align": "center",
2178
2154
  "gap": "sm",
2179
- "direction": "horizontal",
2180
2155
  "children": [
2181
2156
  {
2157
+ "gap": "sm",
2182
2158
  "align": "center",
2159
+ "type": "stack",
2160
+ "direction": "horizontal",
2183
2161
  "children": [
2184
2162
  {
2185
2163
  "name": "message-circle",
2186
2164
  "type": "icon"
2187
2165
  },
2188
2166
  {
2167
+ "content": "TutorChat Thread",
2189
2168
  "type": "typography",
2190
- "variant": "h2",
2191
- "content": "TutorChat Thread"
2169
+ "variant": "h2"
2192
2170
  }
2193
- ],
2194
- "direction": "horizontal",
2195
- "gap": "sm",
2196
- "type": "stack"
2171
+ ]
2197
2172
  },
2198
2173
  {
2199
- "label": "New Message",
2200
- "type": "button",
2201
2174
  "variant": "primary",
2202
- "icon": "plus",
2203
- "action": "COMPOSE"
2175
+ "type": "button",
2176
+ "action": "COMPOSE",
2177
+ "label": "New Message",
2178
+ "icon": "plus"
2204
2179
  }
2205
- ]
2180
+ ],
2181
+ "justify": "between",
2182
+ "type": "stack",
2183
+ "direction": "horizontal"
2206
2184
  },
2207
2185
  {
2208
2186
  "type": "divider"
2209
2187
  },
2210
2188
  {
2189
+ "type": "data-list",
2190
+ "entity": "@payload.data",
2191
+ "fields": [],
2211
2192
  "renderItem": [
2212
2193
  "fn",
2213
2194
  "item",
2214
2195
  {
2215
2196
  "gap": "xs",
2216
2197
  "direction": "vertical",
2198
+ "type": "stack",
2217
2199
  "children": [
2218
2200
  {
2201
+ "type": "stack",
2202
+ "direction": "horizontal",
2203
+ "gap": "sm",
2204
+ "align": "center",
2219
2205
  "children": [
2220
2206
  {
2221
2207
  "label": "@item.role",
2222
2208
  "type": "badge"
2223
2209
  },
2224
2210
  {
2225
- "label": "@item.status",
2226
2211
  "variant": "outline",
2227
- "type": "badge"
2212
+ "type": "badge",
2213
+ "label": "@item.status"
2228
2214
  },
2229
2215
  {
2230
2216
  "variant": "caption",
2231
2217
  "content": "@item.timestamp",
2232
- "type": "typography",
2233
- "color": "muted"
2218
+ "color": "muted",
2219
+ "type": "typography"
2234
2220
  }
2235
- ],
2236
- "type": "stack",
2237
- "direction": "horizontal",
2238
- "gap": "sm",
2239
- "align": "center"
2221
+ ]
2240
2222
  },
2241
2223
  {
2242
2224
  "type": "typography",
2243
2225
  "content": "@item.content",
2244
2226
  "variant": "body"
2245
2227
  }
2246
- ],
2247
- "type": "stack"
2228
+ ]
2248
2229
  }
2249
- ],
2250
- "type": "data-list",
2251
- "entity": "@payload.data",
2252
- "fields": []
2230
+ ]
2253
2231
  }
2254
- ]
2232
+ ],
2233
+ "type": "stack",
2234
+ "direction": "vertical",
2235
+ "gap": "lg"
2236
+ }
2237
+ ],
2238
+ "type": "dashboard-layout",
2239
+ "navItems": [
2240
+ {
2241
+ "icon": "book-open",
2242
+ "label": "Teach",
2243
+ "href": "/teach"
2244
+ },
2245
+ {
2246
+ "icon": "help-circle",
2247
+ "label": "Quiz",
2248
+ "href": "/quiz"
2249
+ },
2250
+ {
2251
+ "label": "Concepts",
2252
+ "href": "/concepts",
2253
+ "icon": "brain"
2255
2254
  }
2256
- ]
2255
+ ],
2256
+ "appName": "AI Tutor"
2257
2257
  }
2258
2258
  ]
2259
2259
  ]
@@ -2267,16 +2267,14 @@
2267
2267
  "render-ui",
2268
2268
  "main",
2269
2269
  {
2270
- "align": "center",
2271
2270
  "direction": "vertical",
2272
2271
  "gap": "md",
2273
2272
  "className": "py-12",
2274
- "type": "stack",
2275
2273
  "children": [
2276
2274
  {
2275
+ "type": "icon",
2277
2276
  "name": "alert-triangle",
2278
- "color": "destructive",
2279
- "type": "icon"
2277
+ "color": "destructive"
2280
2278
  },
2281
2279
  {
2282
2280
  "type": "typography",
@@ -2284,19 +2282,21 @@
2284
2282
  "content": "Failed to load tutorchat"
2285
2283
  },
2286
2284
  {
2287
- "content": "@payload.error",
2288
2285
  "type": "typography",
2286
+ "content": "@payload.error",
2289
2287
  "variant": "body",
2290
2288
  "color": "muted"
2291
2289
  },
2292
2290
  {
2291
+ "action": "INIT",
2293
2292
  "variant": "primary",
2294
2293
  "icon": "rotate-ccw",
2295
- "label": "Retry",
2296
2294
  "type": "button",
2297
- "action": "INIT"
2295
+ "label": "Retry"
2298
2296
  }
2299
- ]
2297
+ ],
2298
+ "type": "stack",
2299
+ "align": "center"
2300
2300
  }
2301
2301
  ]
2302
2302
  ]
@@ -2310,38 +2310,38 @@
2310
2310
  "render-ui",
2311
2311
  "main",
2312
2312
  {
2313
+ "direction": "vertical",
2313
2314
  "gap": "lg",
2314
2315
  "type": "stack",
2315
- "direction": "vertical",
2316
2316
  "children": [
2317
2317
  {
2318
+ "direction": "horizontal",
2318
2319
  "type": "stack",
2320
+ "gap": "sm",
2321
+ "align": "center",
2319
2322
  "children": [
2320
2323
  {
2321
2324
  "type": "icon",
2322
2325
  "name": "message-circle"
2323
2326
  },
2324
2327
  {
2325
- "variant": "h2",
2328
+ "type": "typography",
2326
2329
  "content": "TutorChat Thread",
2327
- "type": "typography"
2330
+ "variant": "h2"
2328
2331
  }
2329
- ],
2330
- "direction": "horizontal",
2331
- "gap": "sm",
2332
- "align": "center"
2332
+ ]
2333
2333
  },
2334
2334
  {
2335
2335
  "type": "divider"
2336
2336
  },
2337
2337
  {
2338
+ "mode": "create",
2339
+ "submitEvent": "SEND",
2338
2340
  "cancelEvent": "CANCEL_COMPOSE",
2341
+ "type": "form-section",
2339
2342
  "fields": [
2340
2343
  "content"
2341
- ],
2342
- "type": "form-section",
2343
- "mode": "create",
2344
- "submitEvent": "SEND"
2344
+ ]
2345
2345
  }
2346
2346
  ]
2347
2347
  }
@@ -2359,8 +2359,8 @@
2359
2359
  "TutorChat",
2360
2360
  {
2361
2361
  "emit": {
2362
- "failure": "TutorChatDeleteFailed",
2363
- "success": "TutorChatDeleted"
2362
+ "success": "TutorChatDeleted",
2363
+ "failure": "TutorChatDeleteFailed"
2364
2364
  }
2365
2365
  }
2366
2366
  ],
@@ -2369,8 +2369,8 @@
2369
2369
  "TutorChat",
2370
2370
  {
2371
2371
  "emit": {
2372
- "failure": "TutorChatLoadFailed",
2373
- "success": "TutorChatLoaded"
2372
+ "success": "TutorChatLoaded",
2373
+ "failure": "TutorChatLoadFailed"
2374
2374
  }
2375
2375
  }
2376
2376
  ],
@@ -2393,10 +2393,10 @@
2393
2393
  "create",
2394
2394
  "TutorChat",
2395
2395
  {
2396
- "role": "user",
2397
2396
  "content": "@payload.content",
2398
2397
  "timestamp": "@now",
2399
- "status": "sent"
2398
+ "status": "sent",
2399
+ "role": "user"
2400
2400
  },
2401
2401
  {
2402
2402
  "emit": {
@@ -2608,8 +2608,8 @@
2608
2608
  "TutorChat",
2609
2609
  {
2610
2610
  "emit": {
2611
- "failure": "TutorChatLoadFailed",
2612
- "success": "TutorChatLoaded"
2611
+ "success": "TutorChatLoaded",
2612
+ "failure": "TutorChatLoadFailed"
2613
2613
  }
2614
2614
  }
2615
2615
  ],
@@ -2620,30 +2620,30 @@
2620
2620
  "navItems": [
2621
2621
  {
2622
2622
  "href": "/teach",
2623
- "label": "Teach",
2624
- "icon": "book-open"
2623
+ "icon": "book-open",
2624
+ "label": "Teach"
2625
2625
  },
2626
2626
  {
2627
- "href": "/quiz",
2627
+ "icon": "help-circle",
2628
2628
  "label": "Quiz",
2629
- "icon": "help-circle"
2629
+ "href": "/quiz"
2630
2630
  },
2631
2631
  {
2632
- "href": "/concepts",
2632
+ "icon": "brain",
2633
2633
  "label": "Concepts",
2634
- "icon": "brain"
2634
+ "href": "/concepts"
2635
2635
  }
2636
2636
  ],
2637
+ "type": "dashboard-layout",
2637
2638
  "appName": "AI Tutor",
2638
2639
  "children": [
2639
2640
  {
2640
- "title": "Conversation",
2641
- "type": "empty-state",
2641
+ "description": "Conversation is ready",
2642
2642
  "icon": "message-circle",
2643
- "description": "Conversation is ready"
2643
+ "title": "Conversation",
2644
+ "type": "empty-state"
2644
2645
  }
2645
- ],
2646
- "type": "dashboard-layout"
2646
+ ]
2647
2647
  }
2648
2648
  ]
2649
2649
  ]
@@ -3123,22 +3123,22 @@
3123
3123
  "render-ui",
3124
3124
  "main",
3125
3125
  {
3126
- "direction": "vertical",
3127
3126
  "gap": "md",
3128
- "align": "center",
3129
3127
  "className": "py-12",
3128
+ "direction": "vertical",
3129
+ "align": "center",
3130
+ "type": "stack",
3130
3131
  "children": [
3131
3132
  {
3132
3133
  "type": "spinner"
3133
3134
  },
3134
3135
  {
3135
- "variant": "caption",
3136
- "content": "Loading…",
3137
3136
  "type": "typography",
3138
- "color": "muted"
3137
+ "color": "muted",
3138
+ "variant": "caption",
3139
+ "content": "Loading…"
3139
3140
  }
3140
- ],
3141
- "type": "stack"
3141
+ ]
3142
3142
  }
3143
3143
  ]
3144
3144
  ]
@@ -3152,65 +3152,81 @@
3152
3152
  "render-ui",
3153
3153
  "main",
3154
3154
  {
3155
- "appName": "AI Tutor",
3155
+ "navItems": [
3156
+ {
3157
+ "icon": "book-open",
3158
+ "label": "Teach",
3159
+ "href": "/teach"
3160
+ },
3161
+ {
3162
+ "icon": "help-circle",
3163
+ "label": "Quiz",
3164
+ "href": "/quiz"
3165
+ },
3166
+ {
3167
+ "label": "Concepts",
3168
+ "icon": "brain",
3169
+ "href": "/concepts"
3170
+ }
3171
+ ],
3172
+ "type": "dashboard-layout",
3156
3173
  "children": [
3157
3174
  {
3158
- "direction": "vertical",
3159
3175
  "type": "stack",
3176
+ "direction": "vertical",
3160
3177
  "gap": "lg",
3161
- "className": "max-w-5xl mx-auto w-full",
3162
3178
  "children": [
3163
3179
  {
3164
3180
  "type": "stack",
3165
- "gap": "md",
3166
3181
  "direction": "horizontal",
3167
- "justify": "between",
3168
3182
  "align": "center",
3183
+ "gap": "md",
3184
+ "justify": "between",
3169
3185
  "children": [
3170
3186
  {
3171
- "gap": "sm",
3172
3187
  "align": "center",
3188
+ "direction": "horizontal",
3173
3189
  "children": [
3174
3190
  {
3175
3191
  "name": "brain",
3176
3192
  "type": "icon"
3177
3193
  },
3178
3194
  {
3179
- "content": "Concept Manager",
3180
3195
  "variant": "h2",
3181
- "type": "typography"
3196
+ "type": "typography",
3197
+ "content": "Concept Manager"
3182
3198
  }
3183
3199
  ],
3184
- "direction": "horizontal",
3185
- "type": "stack"
3200
+ "type": "stack",
3201
+ "gap": "sm"
3186
3202
  },
3187
3203
  {
3188
- "type": "stack",
3189
3204
  "direction": "horizontal",
3190
- "gap": "sm",
3191
3205
  "children": [
3192
3206
  {
3207
+ "type": "button",
3193
3208
  "label": "Memorize",
3209
+ "variant": "primary",
3194
3210
  "action": "MEMORIZE",
3195
- "icon": "plus",
3196
- "type": "button",
3197
- "variant": "primary"
3211
+ "icon": "plus"
3198
3212
  },
3199
3213
  {
3214
+ "action": "RECALL",
3215
+ "type": "button",
3200
3216
  "label": "Recall",
3201
3217
  "icon": "search",
3202
- "variant": "secondary",
3203
- "action": "RECALL",
3204
- "type": "button"
3218
+ "variant": "secondary"
3205
3219
  },
3206
3220
  {
3221
+ "action": "DECAY",
3207
3222
  "label": "Decay All",
3208
- "icon": "clock",
3209
3223
  "type": "button",
3210
- "action": "DECAY",
3211
- "variant": "ghost"
3224
+ "variant": "ghost",
3225
+ "icon": "clock"
3212
3226
  }
3213
- ]
3227
+ ],
3228
+ "type": "stack",
3229
+ "gap": "sm"
3214
3230
  }
3215
3231
  ]
3216
3232
  },
@@ -3218,32 +3234,31 @@
3218
3234
  "type": "divider"
3219
3235
  },
3220
3236
  {
3221
- "entity": "@payload.data",
3222
3237
  "type": "data-grid",
3223
3238
  "fields": [
3224
3239
  {
3225
3240
  "label": "Content",
3226
- "icon": "brain",
3227
3241
  "variant": "h4",
3228
- "name": "content"
3242
+ "name": "content",
3243
+ "icon": "brain"
3229
3244
  },
3230
3245
  {
3246
+ "name": "category",
3247
+ "label": "Category",
3248
+ "variant": "badge",
3231
3249
  "colorMap": {
3232
- "cancelled": "destructive",
3233
3250
  "inactive": "neutral",
3251
+ "active": "success",
3252
+ "cancelled": "destructive",
3253
+ "failed": "destructive",
3234
3254
  "draft": "warning",
3255
+ "scheduled": "warning",
3235
3256
  "completed": "success",
3257
+ "error": "destructive",
3236
3258
  "pending": "warning",
3237
3259
  "archived": "neutral",
3238
- "error": "destructive",
3239
- "failed": "destructive",
3240
- "done": "success",
3241
- "scheduled": "warning",
3242
- "active": "success"
3243
- },
3244
- "name": "category",
3245
- "variant": "badge",
3246
- "label": "Category"
3260
+ "done": "success"
3261
+ }
3247
3262
  },
3248
3263
  {
3249
3264
  "variant": "caption",
@@ -3251,45 +3266,30 @@
3251
3266
  "label": "Strength"
3252
3267
  }
3253
3268
  ],
3269
+ "entity": "@payload.data",
3254
3270
  "itemActions": [
3255
3271
  {
3256
- "label": "Pin",
3257
3272
  "event": "PIN",
3273
+ "label": "Pin",
3258
3274
  "variant": "ghost"
3259
3275
  },
3260
3276
  {
3277
+ "event": "REINFORCE",
3261
3278
  "variant": "ghost",
3262
- "label": "Reinforce",
3263
- "event": "REINFORCE"
3279
+ "label": "Reinforce"
3264
3280
  },
3265
3281
  {
3266
- "label": "Forget",
3267
3282
  "event": "FORGET",
3268
- "variant": "danger"
3283
+ "variant": "danger",
3284
+ "label": "Forget"
3269
3285
  }
3270
3286
  ]
3271
3287
  }
3272
- ]
3273
- }
3274
- ],
3275
- "navItems": [
3276
- {
3277
- "label": "Teach",
3278
- "href": "/teach",
3279
- "icon": "book-open"
3280
- },
3281
- {
3282
- "label": "Quiz",
3283
- "href": "/quiz",
3284
- "icon": "help-circle"
3285
- },
3286
- {
3287
- "icon": "brain",
3288
- "href": "/concepts",
3289
- "label": "Concepts"
3288
+ ],
3289
+ "className": "max-w-5xl mx-auto w-full"
3290
3290
  }
3291
3291
  ],
3292
- "type": "dashboard-layout"
3292
+ "appName": "AI Tutor"
3293
3293
  }
3294
3294
  ]
3295
3295
  ]
@@ -3303,36 +3303,36 @@
3303
3303
  "render-ui",
3304
3304
  "main",
3305
3305
  {
3306
- "className": "py-12",
3306
+ "gap": "md",
3307
3307
  "children": [
3308
3308
  {
3309
+ "type": "icon",
3309
3310
  "color": "destructive",
3310
- "name": "alert-triangle",
3311
- "type": "icon"
3311
+ "name": "alert-triangle"
3312
3312
  },
3313
3313
  {
3314
- "variant": "h3",
3314
+ "type": "typography",
3315
3315
  "content": "Failed to load concept",
3316
- "type": "typography"
3316
+ "variant": "h3"
3317
3317
  },
3318
3318
  {
3319
- "content": "@payload.error",
3319
+ "type": "typography",
3320
3320
  "variant": "body",
3321
- "color": "muted",
3322
- "type": "typography"
3321
+ "content": "@payload.error",
3322
+ "color": "muted"
3323
3323
  },
3324
3324
  {
3325
- "action": "INIT",
3326
- "label": "Retry",
3325
+ "icon": "rotate-ccw",
3327
3326
  "type": "button",
3328
3327
  "variant": "primary",
3329
- "icon": "rotate-ccw"
3328
+ "label": "Retry",
3329
+ "action": "INIT"
3330
3330
  }
3331
3331
  ],
3332
- "type": "stack",
3333
3332
  "direction": "vertical",
3334
- "gap": "md",
3335
- "align": "center"
3333
+ "align": "center",
3334
+ "type": "stack",
3335
+ "className": "py-12"
3336
3336
  }
3337
3337
  ]
3338
3338
  ]
@@ -3507,8 +3507,8 @@
3507
3507
  "Concept",
3508
3508
  {
3509
3509
  "emit": {
3510
- "failure": "ConceptLoadFailed",
3511
- "success": "ConceptLoaded"
3510
+ "success": "ConceptLoaded",
3511
+ "failure": "ConceptLoadFailed"
3512
3512
  }
3513
3513
  }
3514
3514
  ]
@@ -3523,13 +3523,12 @@
3523
3523
  "render-ui",
3524
3524
  "modal",
3525
3525
  {
3526
- "gap": "md",
3527
3526
  "children": [
3528
3527
  {
3529
3528
  "children": [
3530
3529
  {
3531
- "type": "icon",
3532
- "name": "plus-circle"
3530
+ "name": "plus-circle",
3531
+ "type": "icon"
3533
3532
  },
3534
3533
  {
3535
3534
  "variant": "h3",
@@ -3545,19 +3544,20 @@
3545
3544
  "type": "divider"
3546
3545
  },
3547
3546
  {
3548
- "submitEvent": "SAVE",
3549
- "cancelEvent": "CLOSE",
3550
- "mode": "create",
3551
3547
  "type": "form-section",
3552
3548
  "fields": [
3553
3549
  "content",
3554
3550
  "category",
3555
3551
  "scope"
3556
- ]
3552
+ ],
3553
+ "mode": "create",
3554
+ "submitEvent": "SAVE",
3555
+ "cancelEvent": "CLOSE"
3557
3556
  }
3558
3557
  ],
3559
- "type": "stack",
3560
- "direction": "vertical"
3558
+ "direction": "vertical",
3559
+ "gap": "md",
3560
+ "type": "stack"
3561
3561
  }
3562
3562
  ]
3563
3563
  ]
@@ -3598,8 +3598,8 @@
3598
3598
  "@payload.data",
3599
3599
  {
3600
3600
  "emit": {
3601
- "success": "ConceptSaved",
3602
- "failure": "ConceptSaveFailed"
3601
+ "failure": "ConceptSaveFailed",
3602
+ "success": "ConceptSaved"
3603
3603
  }
3604
3604
  }
3605
3605
  ],
@@ -3930,33 +3930,33 @@
3930
3930
  "render-ui",
3931
3931
  "main",
3932
3932
  {
3933
- "type": "dashboard-layout",
3933
+ "children": [
3934
+ {
3935
+ "icon": "brain",
3936
+ "type": "empty-state",
3937
+ "description": "Memory is ready",
3938
+ "title": "Memory"
3939
+ }
3940
+ ],
3934
3941
  "navItems": [
3935
3942
  {
3936
- "icon": "book-open",
3937
3943
  "label": "Teach",
3938
- "href": "/teach"
3944
+ "href": "/teach",
3945
+ "icon": "book-open"
3939
3946
  },
3940
3947
  {
3941
3948
  "href": "/quiz",
3942
- "label": "Quiz",
3943
- "icon": "help-circle"
3949
+ "icon": "help-circle",
3950
+ "label": "Quiz"
3944
3951
  },
3945
3952
  {
3946
- "icon": "brain",
3947
3953
  "label": "Concepts",
3954
+ "icon": "brain",
3948
3955
  "href": "/concepts"
3949
3956
  }
3950
3957
  ],
3951
3958
  "appName": "AI Tutor",
3952
- "children": [
3953
- {
3954
- "icon": "brain",
3955
- "description": "Memory is ready",
3956
- "title": "Memory",
3957
- "type": "empty-state"
3958
- }
3959
- ]
3959
+ "type": "dashboard-layout"
3960
3960
  }
3961
3961
  ]
3962
3962
  ]
@@ -3978,8 +3978,8 @@
3978
3978
  "@payload.data",
3979
3979
  {
3980
3980
  "emit": {
3981
- "failure": "ConceptSaveFailed",
3982
- "success": "ConceptSaved"
3981
+ "success": "ConceptSaved",
3982
+ "failure": "ConceptSaveFailed"
3983
3983
  }
3984
3984
  }
3985
3985
  ]
@@ -4009,8 +4009,8 @@
4009
4009
  "Concept",
4010
4010
  {
4011
4011
  "emit": {
4012
- "failure": "ConceptLoadFailed",
4013
- "success": "ConceptLoaded"
4012
+ "success": "ConceptLoaded",
4013
+ "failure": "ConceptLoadFailed"
4014
4014
  }
4015
4015
  }
4016
4016
  ]
@@ -4315,8 +4315,8 @@
4315
4315
  "StudentAssessment",
4316
4316
  {
4317
4317
  "emit": {
4318
- "success": "StudentAssessmentLoaded",
4319
- "failure": "StudentAssessmentLoadFailed"
4318
+ "failure": "StudentAssessmentLoadFailed",
4319
+ "success": "StudentAssessmentLoaded"
4320
4320
  }
4321
4321
  }
4322
4322
  ],
@@ -4324,74 +4324,74 @@
4324
4324
  "render-ui",
4325
4325
  "main",
4326
4326
  {
4327
+ "type": "dashboard-layout",
4327
4328
  "navItems": [
4328
4329
  {
4329
- "href": "/teach",
4330
4330
  "icon": "book-open",
4331
- "label": "Teach"
4331
+ "label": "Teach",
4332
+ "href": "/teach"
4332
4333
  },
4333
4334
  {
4334
- "icon": "help-circle",
4335
+ "label": "Quiz",
4335
4336
  "href": "/quiz",
4336
- "label": "Quiz"
4337
+ "icon": "help-circle"
4337
4338
  },
4338
4339
  {
4339
4340
  "icon": "brain",
4340
- "label": "Concepts",
4341
- "href": "/concepts"
4341
+ "href": "/concepts",
4342
+ "label": "Concepts"
4342
4343
  }
4343
4344
  ],
4344
- "type": "dashboard-layout",
4345
+ "appName": "AI Tutor",
4345
4346
  "children": [
4346
4347
  {
4347
4348
  "gap": "lg",
4349
+ "direction": "vertical",
4350
+ "type": "stack",
4348
4351
  "children": [
4349
4352
  {
4350
- "direction": "horizontal",
4351
4353
  "justify": "between",
4352
4354
  "type": "stack",
4353
- "gap": "md",
4354
4355
  "children": [
4355
4356
  {
4356
- "type": "stack",
4357
4357
  "children": [
4358
4358
  {
4359
4359
  "type": "icon",
4360
4360
  "name": "tag"
4361
4361
  },
4362
4362
  {
4363
- "content": "StudentAssessment",
4364
4363
  "type": "typography",
4365
- "variant": "h2"
4364
+ "variant": "h2",
4365
+ "content": "StudentAssessment"
4366
4366
  }
4367
4367
  ],
4368
4368
  "gap": "md",
4369
+ "type": "stack",
4369
4370
  "direction": "horizontal"
4370
4371
  },
4371
4372
  {
4372
4373
  "label": "Open",
4373
- "type": "button",
4374
4374
  "variant": "primary",
4375
- "icon": "tag",
4376
- "action": "CLASSIFY"
4375
+ "action": "CLASSIFY",
4376
+ "type": "button",
4377
+ "icon": "tag"
4377
4378
  }
4378
- ]
4379
+ ],
4380
+ "gap": "md",
4381
+ "direction": "horizontal"
4379
4382
  },
4380
4383
  {
4381
4384
  "type": "divider"
4382
4385
  },
4383
4386
  {
4384
- "description": "Click Open to view details in a modal overlay.",
4387
+ "type": "empty-state",
4385
4388
  "icon": "tag",
4386
- "title": "Nothing open",
4387
- "type": "empty-state"
4389
+ "description": "Click Open to view details in a modal overlay.",
4390
+ "title": "Nothing open"
4388
4391
  }
4389
- ],
4390
- "direction": "vertical",
4391
- "type": "stack"
4392
+ ]
4392
4393
  }
4393
- ],
4394
- "appName": "AI Tutor"
4394
+ ]
4395
4395
  }
4396
4396
  ]
4397
4397
  ]
@@ -4405,39 +4405,42 @@
4405
4405
  "render-ui",
4406
4406
  "modal",
4407
4407
  {
4408
+ "direction": "vertical",
4409
+ "type": "stack",
4408
4410
  "children": [
4409
4411
  {
4412
+ "type": "stack",
4410
4413
  "children": [
4411
4414
  {
4412
4415
  "type": "icon",
4413
4416
  "name": "tag"
4414
4417
  },
4415
4418
  {
4416
- "type": "typography",
4419
+ "content": "StudentAssessment",
4417
4420
  "variant": "h3",
4418
- "content": "StudentAssessment"
4421
+ "type": "typography"
4419
4422
  }
4420
4423
  ],
4421
- "type": "stack",
4422
- "gap": "sm",
4423
- "direction": "horizontal"
4424
+ "direction": "horizontal",
4425
+ "gap": "sm"
4424
4426
  },
4425
4427
  {
4426
4428
  "type": "divider"
4427
4429
  },
4428
4430
  {
4429
- "gap": "sm",
4431
+ "type": "stack",
4430
4432
  "direction": "horizontal",
4433
+ "gap": "sm",
4431
4434
  "children": [
4432
4435
  {
4436
+ "type": "typography",
4433
4437
  "variant": "caption",
4434
- "content": "Categories:",
4435
- "type": "typography"
4438
+ "content": "Categories:"
4436
4439
  },
4437
4440
  {
4441
+ "label": "beginner",
4438
4442
  "variant": "secondary",
4439
- "type": "badge",
4440
- "label": "beginner"
4443
+ "type": "badge"
4441
4444
  },
4442
4445
  {
4443
4446
  "variant": "secondary",
@@ -4446,30 +4449,27 @@
4446
4449
  },
4447
4450
  {
4448
4451
  "variant": "secondary",
4449
- "type": "badge",
4450
- "label": "advanced"
4452
+ "label": "advanced",
4453
+ "type": "badge"
4451
4454
  },
4452
4455
  {
4453
4456
  "type": "badge",
4454
- "label": "expert",
4455
- "variant": "secondary"
4457
+ "variant": "secondary",
4458
+ "label": "expert"
4456
4459
  }
4457
- ],
4458
- "type": "stack"
4460
+ ]
4459
4461
  },
4460
4462
  {
4461
- "mode": "create",
4462
- "cancelEvent": "CLOSE",
4463
- "type": "form-section",
4464
4463
  "fields": [
4465
4464
  "input"
4466
4465
  ],
4467
- "submitEvent": "SAVE"
4466
+ "type": "form-section",
4467
+ "cancelEvent": "CLOSE",
4468
+ "submitEvent": "SAVE",
4469
+ "mode": "create"
4468
4470
  }
4469
4471
  ],
4470
- "gap": "md",
4471
- "direction": "vertical",
4472
- "type": "stack"
4472
+ "gap": "md"
4473
4473
  }
4474
4474
  ]
4475
4475
  ]
@@ -4494,8 +4494,8 @@
4494
4494
  "StudentAssessment",
4495
4495
  {
4496
4496
  "emit": {
4497
- "failure": "StudentAssessmentLoadFailed",
4498
- "success": "StudentAssessmentLoaded"
4497
+ "success": "StudentAssessmentLoaded",
4498
+ "failure": "StudentAssessmentLoadFailed"
4499
4499
  }
4500
4500
  }
4501
4501
  ],
@@ -4503,16 +4503,17 @@
4503
4503
  "render-ui",
4504
4504
  "main",
4505
4505
  {
4506
+ "type": "dashboard-layout",
4506
4507
  "navItems": [
4507
4508
  {
4508
4509
  "href": "/teach",
4509
- "icon": "book-open",
4510
- "label": "Teach"
4510
+ "label": "Teach",
4511
+ "icon": "book-open"
4511
4512
  },
4512
4513
  {
4513
- "label": "Quiz",
4514
4514
  "icon": "help-circle",
4515
- "href": "/quiz"
4515
+ "href": "/quiz",
4516
+ "label": "Quiz"
4516
4517
  },
4517
4518
  {
4518
4519
  "label": "Concepts",
@@ -4522,15 +4523,12 @@
4522
4523
  ],
4523
4524
  "children": [
4524
4525
  {
4525
- "type": "stack",
4526
- "gap": "lg",
4527
4526
  "children": [
4528
4527
  {
4529
- "justify": "between",
4528
+ "direction": "horizontal",
4529
+ "type": "stack",
4530
4530
  "children": [
4531
4531
  {
4532
- "gap": "md",
4533
- "type": "stack",
4534
4532
  "direction": "horizontal",
4535
4533
  "children": [
4536
4534
  {
@@ -4538,39 +4536,41 @@
4538
4536
  "name": "tag"
4539
4537
  },
4540
4538
  {
4541
- "type": "typography",
4542
4539
  "content": "StudentAssessment",
4540
+ "type": "typography",
4543
4541
  "variant": "h2"
4544
4542
  }
4545
- ]
4543
+ ],
4544
+ "gap": "md",
4545
+ "type": "stack"
4546
4546
  },
4547
4547
  {
4548
+ "variant": "primary",
4548
4549
  "icon": "tag",
4549
- "action": "CLASSIFY",
4550
4550
  "label": "Open",
4551
4551
  "type": "button",
4552
- "variant": "primary"
4552
+ "action": "CLASSIFY"
4553
4553
  }
4554
4554
  ],
4555
- "gap": "md",
4556
- "type": "stack",
4557
- "direction": "horizontal"
4555
+ "justify": "between",
4556
+ "gap": "md"
4558
4557
  },
4559
4558
  {
4560
4559
  "type": "divider"
4561
4560
  },
4562
4561
  {
4563
- "type": "empty-state",
4562
+ "description": "Click Open to view details in a modal overlay.",
4564
4563
  "title": "Nothing open",
4565
- "icon": "tag",
4566
- "description": "Click Open to view details in a modal overlay."
4564
+ "type": "empty-state",
4565
+ "icon": "tag"
4567
4566
  }
4568
4567
  ],
4569
- "direction": "vertical"
4568
+ "type": "stack",
4569
+ "direction": "vertical",
4570
+ "gap": "lg"
4570
4571
  }
4571
4572
  ],
4572
- "appName": "AI Tutor",
4573
- "type": "dashboard-layout"
4573
+ "appName": "AI Tutor"
4574
4574
  }
4575
4575
  ]
4576
4576
  ]
@@ -4615,74 +4615,74 @@
4615
4615
  "render-ui",
4616
4616
  "main",
4617
4617
  {
4618
+ "type": "dashboard-layout",
4618
4619
  "children": [
4619
4620
  {
4620
- "direction": "vertical",
4621
+ "gap": "lg",
4621
4622
  "type": "stack",
4622
4623
  "children": [
4623
4624
  {
4624
- "gap": "md",
4625
- "justify": "between",
4626
- "type": "stack",
4625
+ "direction": "horizontal",
4627
4626
  "children": [
4628
4627
  {
4629
- "direction": "horizontal",
4630
4628
  "type": "stack",
4631
4629
  "children": [
4632
4630
  {
4633
- "name": "tag",
4634
- "type": "icon"
4631
+ "type": "icon",
4632
+ "name": "tag"
4635
4633
  },
4636
4634
  {
4635
+ "variant": "h2",
4637
4636
  "type": "typography",
4638
- "content": "StudentAssessment",
4639
- "variant": "h2"
4637
+ "content": "StudentAssessment"
4640
4638
  }
4641
4639
  ],
4640
+ "direction": "horizontal",
4642
4641
  "gap": "md"
4643
4642
  },
4644
4643
  {
4645
- "icon": "tag",
4646
- "type": "button",
4647
4644
  "label": "Open",
4645
+ "type": "button",
4648
4646
  "action": "CLASSIFY",
4649
- "variant": "primary"
4647
+ "variant": "primary",
4648
+ "icon": "tag"
4650
4649
  }
4651
4650
  ],
4652
- "direction": "horizontal"
4651
+ "gap": "md",
4652
+ "justify": "between",
4653
+ "type": "stack"
4653
4654
  },
4654
4655
  {
4655
4656
  "type": "divider"
4656
4657
  },
4657
4658
  {
4659
+ "icon": "tag",
4658
4660
  "description": "Click Open to view details in a modal overlay.",
4659
4661
  "type": "empty-state",
4660
- "icon": "tag",
4661
4662
  "title": "Nothing open"
4662
4663
  }
4663
4664
  ],
4664
- "gap": "lg"
4665
+ "direction": "vertical"
4665
4666
  }
4666
4667
  ],
4667
- "type": "dashboard-layout",
4668
+ "appName": "AI Tutor",
4668
4669
  "navItems": [
4669
4670
  {
4670
- "icon": "book-open",
4671
4671
  "href": "/teach",
4672
+ "icon": "book-open",
4672
4673
  "label": "Teach"
4673
4674
  },
4674
4675
  {
4675
4676
  "href": "/quiz",
4676
- "label": "Quiz",
4677
- "icon": "help-circle"
4677
+ "icon": "help-circle",
4678
+ "label": "Quiz"
4678
4679
  },
4679
4680
  {
4680
- "icon": "brain",
4681
4681
  "href": "/concepts",
4682
- "label": "Concepts"
4682
+ "label": "Concepts",
4683
+ "icon": "brain"
4683
4684
  }
4684
- ],
4685
- "appName": "AI Tutor"
4685
+ ]
4686
4686
  }
4687
4687
  ]
4688
4688
  ]
@@ -4792,8 +4792,8 @@
4792
4792
  "StudentAssessment",
4793
4793
  {
4794
4794
  "emit": {
4795
- "success": "StudentAssessmentLoaded",
4796
- "failure": "StudentAssessmentLoadFailed"
4795
+ "failure": "StudentAssessmentLoadFailed",
4796
+ "success": "StudentAssessmentLoaded"
4797
4797
  }
4798
4798
  }
4799
4799
  ]
@@ -4820,81 +4820,81 @@
4820
4820
  {
4821
4821
  "navItems": [
4822
4822
  {
4823
- "label": "Teach",
4823
+ "icon": "book-open",
4824
4824
  "href": "/teach",
4825
- "icon": "book-open"
4825
+ "label": "Teach"
4826
4826
  },
4827
4827
  {
4828
- "href": "/quiz",
4829
4828
  "label": "Quiz",
4829
+ "href": "/quiz",
4830
4830
  "icon": "help-circle"
4831
4831
  },
4832
4832
  {
4833
- "icon": "brain",
4834
4833
  "href": "/concepts",
4834
+ "icon": "brain",
4835
4835
  "label": "Concepts"
4836
4836
  }
4837
4837
  ],
4838
- "type": "dashboard-layout",
4839
- "appName": "AI Tutor",
4840
4838
  "children": [
4841
4839
  {
4842
- "direction": "vertical",
4843
- "gap": "lg",
4844
- "type": "stack",
4845
4840
  "children": [
4846
4841
  {
4847
- "gap": "md",
4848
- "align": "center",
4849
4842
  "type": "stack",
4843
+ "justify": "between",
4850
4844
  "children": [
4851
4845
  {
4846
+ "gap": "md",
4852
4847
  "children": [
4853
4848
  {
4854
- "type": "icon",
4855
- "name": "tag"
4849
+ "name": "tag",
4850
+ "type": "icon"
4856
4851
  },
4857
4852
  {
4853
+ "variant": "h2",
4858
4854
  "type": "typography",
4859
- "content": "StudentAssessment Result",
4860
- "variant": "h2"
4855
+ "content": "StudentAssessment Result"
4861
4856
  }
4862
4857
  ],
4858
+ "direction": "horizontal",
4863
4859
  "type": "stack",
4864
- "gap": "md",
4865
- "align": "center",
4866
- "direction": "horizontal"
4860
+ "align": "center"
4867
4861
  },
4868
4862
  {
4869
- "action": "HIDE",
4870
4863
  "type": "button",
4871
4864
  "variant": "ghost",
4872
- "icon": "x",
4873
- "label": "Dismiss"
4865
+ "label": "Dismiss",
4866
+ "action": "HIDE",
4867
+ "icon": "x"
4874
4868
  }
4875
4869
  ],
4876
- "direction": "horizontal",
4877
- "justify": "between"
4870
+ "gap": "md",
4871
+ "align": "center",
4872
+ "direction": "horizontal"
4878
4873
  },
4879
4874
  {
4880
4875
  "type": "divider"
4881
4876
  },
4882
4877
  {
4883
- "message": "@entity.message",
4884
4878
  "type": "alert",
4885
- "variant": "@entity.notificationType"
4879
+ "variant": "@entity.notificationType",
4880
+ "message": "@entity.message"
4886
4881
  },
4887
4882
  {
4888
4883
  "type": "toast-slot"
4889
4884
  },
4890
4885
  {
4891
4886
  "type": "alert",
4892
- "message": "@entity.message",
4893
- "variant": "warning"
4887
+ "variant": "warning",
4888
+ "message": "@entity.message"
4894
4889
  }
4895
- ]
4890
+ ],
4891
+ "type": "stack",
4892
+ "direction": "vertical",
4893
+ "gap": "lg"
4896
4894
  }
4897
- ]
4895
+ ],
4896
+ "type": "dashboard-layout",
4897
+ "appName": "AI Tutor"
4898
4898
  }
4899
4899
  ]
4900
4900
  ]
@@ -4919,60 +4919,61 @@
4919
4919
  "main",
4920
4920
  {
4921
4921
  "appName": "AI Tutor",
4922
- "type": "dashboard-layout",
4923
4922
  "navItems": [
4924
4923
  {
4925
- "href": "/teach",
4926
4924
  "label": "Teach",
4925
+ "href": "/teach",
4927
4926
  "icon": "book-open"
4928
4927
  },
4929
4928
  {
4930
- "href": "/quiz",
4929
+ "icon": "help-circle",
4931
4930
  "label": "Quiz",
4932
- "icon": "help-circle"
4931
+ "href": "/quiz"
4933
4932
  },
4934
4933
  {
4934
+ "label": "Concepts",
4935
4935
  "href": "/concepts",
4936
- "icon": "brain",
4937
- "label": "Concepts"
4936
+ "icon": "brain"
4938
4937
  }
4939
4938
  ],
4939
+ "type": "dashboard-layout",
4940
4940
  "children": [
4941
4941
  {
4942
+ "type": "stack",
4942
4943
  "gap": "lg",
4943
4944
  "children": [
4944
4945
  {
4945
4946
  "align": "center",
4947
+ "gap": "md",
4946
4948
  "children": [
4947
4949
  {
4948
- "gap": "md",
4949
- "align": "center",
4950
- "type": "stack",
4951
4950
  "children": [
4952
4951
  {
4953
- "type": "icon",
4954
- "name": "tag"
4952
+ "name": "tag",
4953
+ "type": "icon"
4955
4954
  },
4956
4955
  {
4957
- "content": "StudentAssessment Result",
4958
4956
  "variant": "h2",
4957
+ "content": "StudentAssessment Result",
4959
4958
  "type": "typography"
4960
4959
  }
4961
4960
  ],
4962
- "direction": "horizontal"
4961
+ "type": "stack",
4962
+ "direction": "horizontal",
4963
+ "align": "center",
4964
+ "gap": "md"
4963
4965
  },
4964
4966
  {
4965
- "label": "Dismiss",
4966
- "icon": "x",
4967
- "variant": "ghost",
4968
4967
  "action": "HIDE",
4969
- "type": "button"
4968
+ "variant": "ghost",
4969
+ "label": "Dismiss",
4970
+ "type": "button",
4971
+ "icon": "x"
4970
4972
  }
4971
4973
  ],
4972
- "justify": "between",
4973
- "direction": "horizontal",
4974
4974
  "type": "stack",
4975
- "gap": "md"
4975
+ "direction": "horizontal",
4976
+ "justify": "between"
4976
4977
  },
4977
4978
  {
4978
4979
  "type": "divider"
@@ -4987,12 +4988,11 @@
4987
4988
  },
4988
4989
  {
4989
4990
  "message": "@entity.message",
4990
- "variant": "warning",
4991
- "type": "alert"
4991
+ "type": "alert",
4992
+ "variant": "warning"
4992
4993
  }
4993
4994
  ],
4994
- "direction": "vertical",
4995
- "type": "stack"
4995
+ "direction": "vertical"
4996
4996
  }
4997
4997
  ]
4998
4998
  }
@@ -5147,8 +5147,8 @@
5147
5147
  "StudentAssessment",
5148
5148
  {
5149
5149
  "emit": {
5150
- "failure": "StudentAssessmentLoadFailed",
5151
- "success": "StudentAssessmentLoaded"
5150
+ "success": "StudentAssessmentLoaded",
5151
+ "failure": "StudentAssessmentLoadFailed"
5152
5152
  }
5153
5153
  }
5154
5154
  ],
@@ -5156,31 +5156,31 @@
5156
5156
  "render-ui",
5157
5157
  "main",
5158
5158
  {
5159
+ "appName": "AI Tutor",
5160
+ "type": "dashboard-layout",
5159
5161
  "navItems": [
5160
5162
  {
5161
- "href": "/teach",
5162
5163
  "label": "Teach",
5163
- "icon": "book-open"
5164
+ "icon": "book-open",
5165
+ "href": "/teach"
5164
5166
  },
5165
5167
  {
5166
- "href": "/quiz",
5167
5168
  "label": "Quiz",
5169
+ "href": "/quiz",
5168
5170
  "icon": "help-circle"
5169
5171
  },
5170
5172
  {
5171
- "icon": "brain",
5172
5173
  "label": "Concepts",
5174
+ "icon": "brain",
5173
5175
  "href": "/concepts"
5174
5176
  }
5175
5177
  ],
5176
- "type": "dashboard-layout",
5177
- "appName": "AI Tutor",
5178
5178
  "children": [
5179
5179
  {
5180
- "icon": "tag",
5181
5180
  "type": "empty-state",
5181
+ "description": "Classifier is ready",
5182
5182
  "title": "Classifier",
5183
- "description": "Classifier is ready"
5183
+ "icon": "tag"
5184
5184
  }
5185
5185
  ]
5186
5186
  }