@almadar/std 13.0.1 → 13.0.2

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.
@@ -343,8 +343,8 @@
343
343
  "TutorSession",
344
344
  {
345
345
  "emit": {
346
- "success": "TutorSessionLoaded",
347
- "failure": "TutorSessionLoadFailed"
346
+ "failure": "TutorSessionLoadFailed",
347
+ "success": "TutorSessionLoaded"
348
348
  }
349
349
  }
350
350
  ],
@@ -355,42 +355,42 @@
355
355
  "type": "dashboard-layout",
356
356
  "navItems": [
357
357
  {
358
- "label": "Teach",
359
358
  "icon": "book-open",
359
+ "label": "Teach",
360
360
  "href": "/teach"
361
361
  },
362
362
  {
363
363
  "href": "/quiz",
364
- "label": "Quiz",
365
- "icon": "help-circle"
364
+ "icon": "help-circle",
365
+ "label": "Quiz"
366
366
  },
367
367
  {
368
+ "href": "/concepts",
368
369
  "icon": "brain",
369
- "label": "Concepts",
370
- "href": "/concepts"
370
+ "label": "Concepts"
371
371
  }
372
372
  ],
373
373
  "appName": "AI Tutor",
374
374
  "children": [
375
375
  {
376
- "direction": "vertical",
377
376
  "gap": "lg",
378
377
  "type": "stack",
378
+ "direction": "vertical",
379
379
  "children": [
380
380
  {
381
+ "align": "center",
381
382
  "type": "stack",
382
383
  "direction": "horizontal",
383
384
  "gap": "sm",
384
- "align": "center",
385
385
  "children": [
386
386
  {
387
- "type": "icon",
388
- "name": "graduation-cap"
387
+ "name": "graduation-cap",
388
+ "type": "icon"
389
389
  },
390
390
  {
391
+ "content": "Tutor",
391
392
  "variant": "h2",
392
- "type": "typography",
393
- "content": "Tutor"
393
+ "type": "typography"
394
394
  }
395
395
  ]
396
396
  },
@@ -401,24 +401,24 @@
401
401
  "children": [
402
402
  {
403
403
  "type": "stack",
404
+ "direction": "vertical",
405
+ "gap": "md",
404
406
  "children": [
405
407
  {
408
+ "content": "What topic would you like to learn about? The tutor will assess your level and guide you through it.",
406
409
  "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."
410
+ "type": "typography"
409
411
  },
410
412
  {
413
+ "mode": "edit",
411
414
  "submitEvent": "START_SESSION",
412
415
  "fields": [
413
416
  "topic"
414
417
  ],
415
- "entity": "@entity",
416
- "mode": "edit",
417
- "type": "form-section"
418
+ "type": "form-section",
419
+ "entity": "@entity"
418
420
  }
419
- ],
420
- "gap": "md",
421
- "direction": "vertical"
421
+ ]
422
422
  }
423
423
  ],
424
424
  "type": "card"
@@ -457,30 +457,13 @@
457
457
  "render-ui",
458
458
  "main",
459
459
  {
460
- "type": "dashboard-layout",
461
- "navItems": [
462
- {
463
- "href": "/teach",
464
- "label": "Teach",
465
- "icon": "book-open"
466
- },
467
- {
468
- "label": "Quiz",
469
- "href": "/quiz",
470
- "icon": "help-circle"
471
- },
472
- {
473
- "icon": "brain",
474
- "href": "/concepts",
475
- "label": "Concepts"
476
- }
477
- ],
478
460
  "appName": "AI Tutor",
461
+ "type": "dashboard-layout",
479
462
  "children": [
480
463
  {
481
- "align": "center",
482
- "type": "stack",
483
464
  "gap": "lg",
465
+ "type": "stack",
466
+ "align": "center",
484
467
  "children": [
485
468
  {
486
469
  "name": "search",
@@ -488,8 +471,8 @@
488
471
  },
489
472
  {
490
473
  "content": "Assessing your level...",
491
- "type": "typography",
492
- "variant": "h3"
474
+ "variant": "h3",
475
+ "type": "typography"
493
476
  },
494
477
  {
495
478
  "type": "spinner"
@@ -502,6 +485,23 @@
502
485
  ],
503
486
  "direction": "vertical"
504
487
  }
488
+ ],
489
+ "navItems": [
490
+ {
491
+ "icon": "book-open",
492
+ "label": "Teach",
493
+ "href": "/teach"
494
+ },
495
+ {
496
+ "label": "Quiz",
497
+ "icon": "help-circle",
498
+ "href": "/quiz"
499
+ },
500
+ {
501
+ "href": "/concepts",
502
+ "label": "Concepts",
503
+ "icon": "brain"
504
+ }
505
505
  ]
506
506
  }
507
507
  ]
@@ -530,50 +530,36 @@
530
530
  "render-ui",
531
531
  "main",
532
532
  {
533
- "navItems": [
534
- {
535
- "href": "/teach",
536
- "label": "Teach",
537
- "icon": "book-open"
538
- },
539
- {
540
- "label": "Quiz",
541
- "icon": "help-circle",
542
- "href": "/quiz"
543
- },
544
- {
545
- "label": "Concepts",
546
- "href": "/concepts",
547
- "icon": "brain"
548
- }
549
- ],
550
533
  "appName": "AI Tutor",
551
534
  "children": [
552
535
  {
536
+ "gap": "lg",
537
+ "type": "stack",
538
+ "direction": "vertical",
553
539
  "children": [
554
540
  {
555
- "direction": "horizontal",
556
541
  "align": "center",
557
542
  "type": "stack",
558
543
  "justify": "between",
559
544
  "gap": "sm",
545
+ "direction": "horizontal",
560
546
  "children": [
561
547
  {
562
- "type": "stack",
563
548
  "gap": "sm",
564
- "direction": "horizontal",
549
+ "type": "stack",
565
550
  "align": "center",
566
551
  "children": [
567
552
  {
568
- "name": "book-open",
569
- "type": "icon"
553
+ "type": "icon",
554
+ "name": "book-open"
570
555
  },
571
556
  {
572
- "content": "Lesson: @entity.topic",
573
557
  "type": "typography",
558
+ "content": "Lesson: @entity.topic",
574
559
  "variant": "h2"
575
560
  }
576
- ]
561
+ ],
562
+ "direction": "horizontal"
577
563
  },
578
564
  {
579
565
  "type": "badge",
@@ -585,40 +571,40 @@
585
571
  "type": "divider"
586
572
  },
587
573
  {
588
- "type": "card",
589
574
  "children": [
590
575
  {
591
- "gap": "md",
592
576
  "children": [
593
577
  {
594
578
  "type": "typography",
595
- "content": "@entity.explanation",
596
- "variant": "body"
579
+ "variant": "body",
580
+ "content": "@entity.explanation"
597
581
  }
598
582
  ],
583
+ "gap": "md",
599
584
  "type": "stack",
600
585
  "direction": "vertical"
601
586
  }
602
- ]
587
+ ],
588
+ "type": "card"
603
589
  },
604
590
  {
605
- "direction": "horizontal",
606
- "gap": "sm",
607
591
  "type": "stack",
592
+ "gap": "sm",
593
+ "direction": "horizontal",
608
594
  "children": [
609
595
  {
596
+ "label": "Quiz Me",
610
597
  "action": "START_QUIZ",
611
598
  "variant": "primary",
612
- "label": "Quiz Me",
613
599
  "icon": "help-circle",
614
600
  "type": "button"
615
601
  },
616
602
  {
603
+ "label": "Explain More",
617
604
  "type": "button",
618
- "icon": "book-open",
619
- "action": "EXPLAIN_MORE",
620
605
  "variant": "secondary",
621
- "label": "Explain More"
606
+ "icon": "book-open",
607
+ "action": "EXPLAIN_MORE"
622
608
  },
623
609
  {
624
610
  "action": "RESET",
@@ -630,27 +616,41 @@
630
616
  ]
631
617
  },
632
618
  {
619
+ "type": "stack",
633
620
  "children": [
634
621
  {
635
- "type": "badge",
636
- "label": "@entity.questionsAsked"
622
+ "label": "@entity.questionsAsked",
623
+ "type": "badge"
637
624
  },
638
625
  {
639
626
  "label": "@entity.correctAnswers",
640
627
  "type": "badge"
641
628
  }
642
629
  ],
643
- "type": "stack",
644
630
  "gap": "xs",
645
631
  "direction": "horizontal"
646
632
  }
647
- ],
648
- "type": "stack",
649
- "direction": "vertical",
650
- "gap": "lg"
633
+ ]
651
634
  }
652
635
  ],
653
- "type": "dashboard-layout"
636
+ "type": "dashboard-layout",
637
+ "navItems": [
638
+ {
639
+ "href": "/teach",
640
+ "label": "Teach",
641
+ "icon": "book-open"
642
+ },
643
+ {
644
+ "label": "Quiz",
645
+ "icon": "help-circle",
646
+ "href": "/quiz"
647
+ },
648
+ {
649
+ "href": "/concepts",
650
+ "icon": "brain",
651
+ "label": "Concepts"
652
+ }
653
+ ]
654
654
  }
655
655
  ]
656
656
  ]
@@ -668,59 +668,43 @@
668
668
  "render-ui",
669
669
  "main",
670
670
  {
671
- "navItems": [
672
- {
673
- "label": "Teach",
674
- "icon": "book-open",
675
- "href": "/teach"
676
- },
677
- {
678
- "href": "/quiz",
679
- "icon": "help-circle",
680
- "label": "Quiz"
681
- },
682
- {
683
- "label": "Concepts",
684
- "href": "/concepts",
685
- "icon": "brain"
686
- }
687
- ],
671
+ "type": "dashboard-layout",
688
672
  "appName": "AI Tutor",
689
673
  "children": [
690
674
  {
691
- "gap": "lg",
692
675
  "direction": "vertical",
693
676
  "type": "stack",
677
+ "gap": "lg",
694
678
  "children": [
695
679
  {
696
- "direction": "horizontal",
697
- "justify": "between",
698
- "gap": "sm",
699
680
  "align": "center",
681
+ "type": "stack",
682
+ "justify": "between",
700
683
  "children": [
701
684
  {
702
- "gap": "sm",
685
+ "direction": "horizontal",
703
686
  "children": [
704
687
  {
705
688
  "type": "icon",
706
689
  "name": "book-open"
707
690
  },
708
691
  {
709
- "type": "typography",
710
692
  "content": "Lesson: @entity.topic",
711
- "variant": "h2"
693
+ "variant": "h2",
694
+ "type": "typography"
712
695
  }
713
696
  ],
714
- "direction": "horizontal",
715
697
  "type": "stack",
716
- "align": "center"
698
+ "align": "center",
699
+ "gap": "sm"
717
700
  },
718
701
  {
719
- "label": "@entity.studentLevel",
720
- "type": "badge"
702
+ "type": "badge",
703
+ "label": "@entity.studentLevel"
721
704
  }
722
705
  ],
723
- "type": "stack"
706
+ "direction": "horizontal",
707
+ "gap": "sm"
724
708
  },
725
709
  {
726
710
  "type": "divider"
@@ -729,66 +713,82 @@
729
713
  "children": [
730
714
  {
731
715
  "direction": "vertical",
732
- "type": "stack",
733
- "gap": "md",
734
716
  "children": [
735
717
  {
736
718
  "variant": "body",
737
- "content": "@entity.explanation",
738
- "type": "typography"
719
+ "type": "typography",
720
+ "content": "@entity.explanation"
739
721
  }
740
- ]
722
+ ],
723
+ "type": "stack",
724
+ "gap": "md"
741
725
  }
742
726
  ],
743
727
  "type": "card"
744
728
  },
745
729
  {
730
+ "type": "stack",
746
731
  "direction": "horizontal",
747
732
  "gap": "sm",
748
733
  "children": [
749
734
  {
750
- "icon": "help-circle",
751
735
  "label": "Quiz Me",
752
- "variant": "primary",
753
736
  "type": "button",
754
- "action": "START_QUIZ"
737
+ "variant": "primary",
738
+ "action": "START_QUIZ",
739
+ "icon": "help-circle"
755
740
  },
756
741
  {
757
- "variant": "secondary",
758
- "action": "EXPLAIN_MORE",
759
742
  "icon": "book-open",
743
+ "label": "Explain More",
760
744
  "type": "button",
761
- "label": "Explain More"
745
+ "variant": "secondary",
746
+ "action": "EXPLAIN_MORE"
762
747
  },
763
748
  {
764
- "icon": "rotate-ccw",
765
749
  "type": "button",
766
- "label": "New Topic",
750
+ "icon": "rotate-ccw",
767
751
  "action": "RESET",
768
- "variant": "ghost"
752
+ "variant": "ghost",
753
+ "label": "New Topic"
769
754
  }
770
- ],
771
- "type": "stack"
755
+ ]
772
756
  },
773
757
  {
758
+ "direction": "horizontal",
759
+ "gap": "xs",
760
+ "type": "stack",
774
761
  "children": [
775
762
  {
776
- "type": "badge",
777
- "label": "@entity.questionsAsked"
763
+ "label": "@entity.questionsAsked",
764
+ "type": "badge"
778
765
  },
779
766
  {
780
767
  "label": "@entity.correctAnswers",
781
768
  "type": "badge"
782
769
  }
783
- ],
784
- "type": "stack",
785
- "direction": "horizontal",
786
- "gap": "xs"
770
+ ]
787
771
  }
788
772
  ]
789
773
  }
790
774
  ],
791
- "type": "dashboard-layout"
775
+ "navItems": [
776
+ {
777
+ "href": "/teach",
778
+ "icon": "book-open",
779
+ "label": "Teach"
780
+ },
781
+ {
782
+ "icon": "help-circle",
783
+ "label": "Quiz",
784
+ "href": "/quiz"
785
+ },
786
+ {
787
+ "icon": "brain",
788
+ "label": "Concepts",
789
+ "href": "/concepts"
790
+ }
791
+ ]
792
792
  }
793
793
  ]
794
794
  ]
@@ -806,39 +806,57 @@
806
806
  "render-ui",
807
807
  "main",
808
808
  {
809
+ "appName": "AI Tutor",
810
+ "navItems": [
811
+ {
812
+ "icon": "book-open",
813
+ "label": "Teach",
814
+ "href": "/teach"
815
+ },
816
+ {
817
+ "href": "/quiz",
818
+ "icon": "help-circle",
819
+ "label": "Quiz"
820
+ },
821
+ {
822
+ "icon": "brain",
823
+ "label": "Concepts",
824
+ "href": "/concepts"
825
+ }
826
+ ],
809
827
  "children": [
810
828
  {
811
- "type": "stack",
812
- "direction": "vertical",
813
829
  "gap": "lg",
830
+ "direction": "vertical",
831
+ "type": "stack",
814
832
  "children": [
815
833
  {
816
834
  "type": "stack",
835
+ "direction": "horizontal",
817
836
  "gap": "sm",
818
837
  "align": "center",
819
- "direction": "horizontal",
820
838
  "justify": "between",
821
839
  "children": [
822
840
  {
841
+ "align": "center",
842
+ "gap": "sm",
843
+ "type": "stack",
823
844
  "children": [
824
845
  {
825
846
  "type": "icon",
826
847
  "name": "book-open"
827
848
  },
828
849
  {
829
- "content": "Lesson: @entity.topic",
830
850
  "variant": "h2",
831
- "type": "typography"
851
+ "type": "typography",
852
+ "content": "Lesson: @entity.topic"
832
853
  }
833
854
  ],
834
- "align": "center",
835
- "direction": "horizontal",
836
- "type": "stack",
837
- "gap": "sm"
855
+ "direction": "horizontal"
838
856
  },
839
857
  {
840
- "label": "@entity.studentLevel",
841
- "type": "badge"
858
+ "type": "badge",
859
+ "label": "@entity.studentLevel"
842
860
  }
843
861
  ]
844
862
  },
@@ -846,86 +864,68 @@
846
864
  "type": "divider"
847
865
  },
848
866
  {
867
+ "type": "card",
849
868
  "children": [
850
869
  {
851
- "direction": "vertical",
852
- "gap": "md",
853
- "type": "stack",
854
870
  "children": [
855
871
  {
856
872
  "type": "typography",
857
873
  "variant": "body",
858
874
  "content": "@entity.explanation"
859
875
  }
860
- ]
876
+ ],
877
+ "type": "stack",
878
+ "direction": "vertical",
879
+ "gap": "md"
861
880
  }
862
- ],
863
- "type": "card"
881
+ ]
864
882
  },
865
883
  {
866
884
  "type": "stack",
885
+ "direction": "horizontal",
886
+ "gap": "sm",
867
887
  "children": [
868
888
  {
869
- "variant": "primary",
870
- "label": "Quiz Me",
871
- "type": "button",
889
+ "icon": "help-circle",
872
890
  "action": "START_QUIZ",
873
- "icon": "help-circle"
891
+ "type": "button",
892
+ "label": "Quiz Me",
893
+ "variant": "primary"
874
894
  },
875
895
  {
876
896
  "variant": "secondary",
897
+ "icon": "book-open",
877
898
  "label": "Explain More",
878
899
  "type": "button",
879
- "action": "EXPLAIN_MORE",
880
- "icon": "book-open"
900
+ "action": "EXPLAIN_MORE"
881
901
  },
882
902
  {
883
- "variant": "ghost",
884
- "type": "button",
885
903
  "icon": "rotate-ccw",
904
+ "type": "button",
886
905
  "action": "RESET",
887
- "label": "New Topic"
906
+ "label": "New Topic",
907
+ "variant": "ghost"
888
908
  }
889
- ],
890
- "direction": "horizontal",
891
- "gap": "sm"
909
+ ]
892
910
  },
893
911
  {
894
- "direction": "horizontal",
895
- "gap": "xs",
896
- "type": "stack",
897
912
  "children": [
898
913
  {
899
914
  "label": "@entity.questionsAsked",
900
915
  "type": "badge"
901
916
  },
902
917
  {
903
- "type": "badge",
904
- "label": "@entity.correctAnswers"
918
+ "label": "@entity.correctAnswers",
919
+ "type": "badge"
905
920
  }
906
- ]
921
+ ],
922
+ "gap": "xs",
923
+ "type": "stack",
924
+ "direction": "horizontal"
907
925
  }
908
926
  ]
909
927
  }
910
928
  ],
911
- "appName": "AI Tutor",
912
- "navItems": [
913
- {
914
- "label": "Teach",
915
- "href": "/teach",
916
- "icon": "book-open"
917
- },
918
- {
919
- "href": "/quiz",
920
- "icon": "help-circle",
921
- "label": "Quiz"
922
- },
923
- {
924
- "label": "Concepts",
925
- "href": "/concepts",
926
- "icon": "brain"
927
- }
928
- ],
929
929
  "type": "dashboard-layout"
930
930
  }
931
931
  ]
@@ -965,18 +965,15 @@
965
965
  "render-ui",
966
966
  "main",
967
967
  {
968
- "type": "dashboard-layout",
969
968
  "children": [
970
969
  {
971
970
  "children": [
972
971
  {
973
972
  "direction": "horizontal",
974
- "gap": "sm",
975
- "align": "center",
976
973
  "children": [
977
974
  {
978
- "type": "icon",
979
- "name": "graduation-cap"
975
+ "name": "graduation-cap",
976
+ "type": "icon"
980
977
  },
981
978
  {
982
979
  "type": "typography",
@@ -984,61 +981,64 @@
984
981
  "variant": "h2"
985
982
  }
986
983
  ],
987
- "type": "stack"
984
+ "align": "center",
985
+ "type": "stack",
986
+ "gap": "sm"
988
987
  },
989
988
  {
990
989
  "type": "divider"
991
990
  },
992
991
  {
993
- "type": "card",
994
992
  "children": [
995
993
  {
996
994
  "type": "stack",
995
+ "gap": "md",
997
996
  "children": [
998
997
  {
999
998
  "type": "typography",
1000
- "variant": "body",
1001
- "content": "What topic would you like to learn about? The tutor will assess your level and guide you through it."
999
+ "content": "What topic would you like to learn about? The tutor will assess your level and guide you through it.",
1000
+ "variant": "body"
1002
1001
  },
1003
1002
  {
1004
- "entity": "@entity",
1005
- "submitEvent": "START_SESSION",
1006
1003
  "mode": "edit",
1007
1004
  "type": "form-section",
1008
1005
  "fields": [
1009
1006
  "topic"
1010
- ]
1007
+ ],
1008
+ "submitEvent": "START_SESSION",
1009
+ "entity": "@entity"
1011
1010
  }
1012
1011
  ],
1013
- "direction": "vertical",
1014
- "gap": "md"
1012
+ "direction": "vertical"
1015
1013
  }
1016
- ]
1014
+ ],
1015
+ "type": "card"
1017
1016
  }
1018
1017
  ],
1018
+ "gap": "lg",
1019
1019
  "type": "stack",
1020
- "direction": "vertical",
1021
- "gap": "lg"
1020
+ "direction": "vertical"
1022
1021
  }
1023
1022
  ],
1024
- "appName": "AI Tutor",
1023
+ "type": "dashboard-layout",
1025
1024
  "navItems": [
1026
1025
  {
1027
- "href": "/teach",
1028
1026
  "label": "Teach",
1027
+ "href": "/teach",
1029
1028
  "icon": "book-open"
1030
1029
  },
1031
1030
  {
1032
- "label": "Quiz",
1033
- "href": "/quiz",
1034
- "icon": "help-circle"
1031
+ "label": "Quiz",
1032
+ "icon": "help-circle",
1033
+ "href": "/quiz"
1035
1034
  },
1036
1035
  {
1037
- "href": "/concepts",
1038
1036
  "label": "Concepts",
1037
+ "href": "/concepts",
1039
1038
  "icon": "brain"
1040
1039
  }
1041
- ]
1040
+ ],
1041
+ "appName": "AI Tutor"
1042
1042
  }
1043
1043
  ]
1044
1044
  ]
@@ -1258,59 +1258,59 @@
1258
1258
  "render-ui",
1259
1259
  "main",
1260
1260
  {
1261
+ "type": "dashboard-layout",
1261
1262
  "children": [
1262
1263
  {
1263
- "type": "stack",
1264
1264
  "direction": "vertical",
1265
+ "gap": "lg",
1265
1266
  "children": [
1266
1267
  {
1268
+ "direction": "horizontal",
1269
+ "align": "center",
1267
1270
  "children": [
1268
1271
  {
1269
- "name": "help-circle",
1270
- "type": "icon"
1272
+ "type": "icon",
1273
+ "name": "help-circle"
1271
1274
  },
1272
1275
  {
1273
- "content": "Quiz",
1274
1276
  "type": "typography",
1277
+ "content": "Quiz",
1275
1278
  "variant": "h2"
1276
1279
  }
1277
1280
  ],
1278
- "type": "stack",
1279
1281
  "gap": "sm",
1280
- "align": "center",
1281
- "direction": "horizontal"
1282
+ "type": "stack"
1282
1283
  },
1283
1284
  {
1284
1285
  "type": "divider"
1285
1286
  },
1286
1287
  {
1287
- "type": "typography",
1288
1288
  "content": "Waiting for a quiz to start...",
1289
+ "type": "typography",
1289
1290
  "variant": "body"
1290
1291
  }
1291
1292
  ],
1292
- "gap": "lg"
1293
+ "type": "stack"
1293
1294
  }
1294
1295
  ],
1295
- "type": "dashboard-layout",
1296
- "appName": "AI Tutor",
1297
1296
  "navItems": [
1298
1297
  {
1299
- "icon": "book-open",
1300
1298
  "href": "/teach",
1299
+ "icon": "book-open",
1301
1300
  "label": "Teach"
1302
1301
  },
1303
1302
  {
1304
- "label": "Quiz",
1303
+ "icon": "help-circle",
1305
1304
  "href": "/quiz",
1306
- "icon": "help-circle"
1305
+ "label": "Quiz"
1307
1306
  },
1308
1307
  {
1309
1308
  "href": "/concepts",
1310
1309
  "icon": "brain",
1311
1310
  "label": "Concepts"
1312
1311
  }
1313
- ]
1312
+ ],
1313
+ "appName": "AI Tutor"
1314
1314
  }
1315
1315
  ]
1316
1316
  ]
@@ -1333,16 +1333,31 @@
1333
1333
  "render-ui",
1334
1334
  "main",
1335
1335
  {
1336
+ "navItems": [
1337
+ {
1338
+ "label": "Teach",
1339
+ "href": "/teach",
1340
+ "icon": "book-open"
1341
+ },
1342
+ {
1343
+ "href": "/quiz",
1344
+ "label": "Quiz",
1345
+ "icon": "help-circle"
1346
+ },
1347
+ {
1348
+ "label": "Concepts",
1349
+ "icon": "brain",
1350
+ "href": "/concepts"
1351
+ }
1352
+ ],
1336
1353
  "appName": "AI Tutor",
1337
1354
  "children": [
1338
1355
  {
1339
- "direction": "vertical",
1340
- "gap": "lg",
1341
- "type": "stack",
1342
1356
  "children": [
1343
1357
  {
1344
1358
  "gap": "sm",
1345
1359
  "type": "stack",
1360
+ "direction": "horizontal",
1346
1361
  "align": "center",
1347
1362
  "children": [
1348
1363
  {
@@ -1354,64 +1369,49 @@
1354
1369
  "content": "Quiz Question",
1355
1370
  "type": "typography"
1356
1371
  }
1357
- ],
1358
- "direction": "horizontal"
1372
+ ]
1359
1373
  },
1360
1374
  {
1361
1375
  "type": "divider"
1362
1376
  },
1363
1377
  {
1378
+ "type": "card",
1364
1379
  "children": [
1365
1380
  {
1366
- "type": "stack",
1381
+ "gap": "md",
1382
+ "direction": "vertical",
1367
1383
  "children": [
1368
1384
  {
1369
1385
  "type": "typography",
1370
- "variant": "h3",
1371
- "content": "@entity.question"
1386
+ "content": "@entity.question",
1387
+ "variant": "h3"
1372
1388
  },
1373
1389
  {
1374
- "content": "@entity.options",
1375
1390
  "variant": "body",
1376
- "type": "typography"
1391
+ "type": "typography",
1392
+ "content": "@entity.options"
1377
1393
  },
1378
1394
  {
1379
- "type": "form-section",
1380
- "entity": "@entity",
1381
- "mode": "edit",
1382
1395
  "fields": [
1383
1396
  "studentAnswer"
1384
1397
  ],
1385
- "submitEvent": "SUBMIT_ANSWER"
1398
+ "submitEvent": "SUBMIT_ANSWER",
1399
+ "mode": "edit",
1400
+ "type": "form-section",
1401
+ "entity": "@entity"
1386
1402
  }
1387
1403
  ],
1388
- "gap": "md",
1389
- "direction": "vertical"
1404
+ "type": "stack"
1390
1405
  }
1391
- ],
1392
- "type": "card"
1406
+ ]
1393
1407
  }
1394
- ]
1408
+ ],
1409
+ "gap": "lg",
1410
+ "type": "stack",
1411
+ "direction": "vertical"
1395
1412
  }
1396
1413
  ],
1397
- "type": "dashboard-layout",
1398
- "navItems": [
1399
- {
1400
- "label": "Teach",
1401
- "href": "/teach",
1402
- "icon": "book-open"
1403
- },
1404
- {
1405
- "label": "Quiz",
1406
- "icon": "help-circle",
1407
- "href": "/quiz"
1408
- },
1409
- {
1410
- "label": "Concepts",
1411
- "href": "/concepts",
1412
- "icon": "brain"
1413
- }
1414
- ]
1414
+ "type": "dashboard-layout"
1415
1415
  }
1416
1416
  ]
1417
1417
  ]
@@ -1430,44 +1430,45 @@
1430
1430
  "render-ui",
1431
1431
  "main",
1432
1432
  {
1433
- "type": "dashboard-layout",
1434
1433
  "appName": "AI Tutor",
1434
+ "type": "dashboard-layout",
1435
1435
  "navItems": [
1436
1436
  {
1437
+ "label": "Teach",
1437
1438
  "href": "/teach",
1438
- "icon": "book-open",
1439
- "label": "Teach"
1439
+ "icon": "book-open"
1440
1440
  },
1441
1441
  {
1442
- "label": "Quiz",
1443
1442
  "href": "/quiz",
1443
+ "label": "Quiz",
1444
1444
  "icon": "help-circle"
1445
1445
  },
1446
1446
  {
1447
+ "href": "/concepts",
1447
1448
  "icon": "brain",
1448
- "label": "Concepts",
1449
- "href": "/concepts"
1449
+ "label": "Concepts"
1450
1450
  }
1451
1451
  ],
1452
1452
  "children": [
1453
1453
  {
1454
+ "direction": "vertical",
1454
1455
  "children": [
1455
1456
  {
1456
1457
  "direction": "horizontal",
1458
+ "gap": "sm",
1459
+ "type": "stack",
1460
+ "align": "center",
1457
1461
  "children": [
1458
1462
  {
1459
- "name": "help-circle",
1460
- "type": "icon"
1463
+ "type": "icon",
1464
+ "name": "help-circle"
1461
1465
  },
1462
1466
  {
1463
1467
  "type": "typography",
1464
- "variant": "h2",
1465
- "content": "Quiz Question"
1468
+ "content": "Quiz Question",
1469
+ "variant": "h2"
1466
1470
  }
1467
- ],
1468
- "align": "center",
1469
- "gap": "sm",
1470
- "type": "stack"
1471
+ ]
1471
1472
  },
1472
1473
  {
1473
1474
  "type": "divider"
@@ -1476,37 +1477,36 @@
1476
1477
  "type": "card",
1477
1478
  "children": [
1478
1479
  {
1479
- "type": "stack",
1480
+ "direction": "vertical",
1480
1481
  "children": [
1481
1482
  {
1482
- "type": "typography",
1483
1483
  "content": "@entity.question",
1484
+ "type": "typography",
1484
1485
  "variant": "h3"
1485
1486
  },
1486
1487
  {
1487
1488
  "content": "@entity.options",
1488
- "variant": "body",
1489
- "type": "typography"
1489
+ "type": "typography",
1490
+ "variant": "body"
1490
1491
  },
1491
1492
  {
1493
+ "entity": "@entity",
1494
+ "type": "form-section",
1492
1495
  "fields": [
1493
1496
  "studentAnswer"
1494
1497
  ],
1495
- "type": "form-section",
1496
1498
  "mode": "edit",
1497
- "entity": "@entity",
1498
1499
  "submitEvent": "SUBMIT_ANSWER"
1499
1500
  }
1500
1501
  ],
1501
- "gap": "md",
1502
- "direction": "vertical"
1502
+ "type": "stack",
1503
+ "gap": "md"
1503
1504
  }
1504
1505
  ]
1505
1506
  }
1506
1507
  ],
1507
- "type": "stack",
1508
- "direction": "vertical",
1509
- "gap": "lg"
1508
+ "gap": "lg",
1509
+ "type": "stack"
1510
1510
  }
1511
1511
  ]
1512
1512
  }
@@ -1540,6 +1540,25 @@
1540
1540
  "render-ui",
1541
1541
  "main",
1542
1542
  {
1543
+ "navItems": [
1544
+ {
1545
+ "label": "Teach",
1546
+ "href": "/teach",
1547
+ "icon": "book-open"
1548
+ },
1549
+ {
1550
+ "href": "/quiz",
1551
+ "label": "Quiz",
1552
+ "icon": "help-circle"
1553
+ },
1554
+ {
1555
+ "href": "/concepts",
1556
+ "icon": "brain",
1557
+ "label": "Concepts"
1558
+ }
1559
+ ],
1560
+ "appName": "AI Tutor",
1561
+ "type": "dashboard-layout",
1543
1562
  "children": [
1544
1563
  {
1545
1564
  "gap": "lg",
@@ -1553,15 +1572,15 @@
1553
1572
  "name": "check-circle"
1554
1573
  },
1555
1574
  {
1556
- "content": "Answer Review",
1557
1575
  "variant": "h2",
1576
+ "content": "Answer Review",
1558
1577
  "type": "typography"
1559
1578
  }
1560
1579
  ],
1561
- "direction": "horizontal",
1562
- "type": "stack",
1563
1580
  "gap": "sm",
1564
- "align": "center"
1581
+ "align": "center",
1582
+ "type": "stack",
1583
+ "direction": "horizontal"
1565
1584
  },
1566
1585
  {
1567
1586
  "type": "divider"
@@ -1570,82 +1589,63 @@
1570
1589
  "children": [
1571
1590
  {
1572
1591
  "type": "stack",
1573
- "direction": "vertical",
1574
1592
  "children": [
1575
1593
  {
1576
1594
  "direction": "horizontal",
1595
+ "gap": "sm",
1577
1596
  "type": "stack",
1578
1597
  "children": [
1579
1598
  {
1580
- "label": "@entity.isCorrect",
1581
- "type": "badge"
1599
+ "type": "badge",
1600
+ "label": "@entity.isCorrect"
1582
1601
  }
1583
- ],
1584
- "gap": "sm"
1602
+ ]
1585
1603
  },
1586
1604
  {
1587
- "content": "@entity.feedback",
1588
1605
  "variant": "body",
1589
- "type": "typography"
1606
+ "type": "typography",
1607
+ "content": "@entity.feedback"
1590
1608
  },
1591
1609
  {
1592
1610
  "type": "typography",
1593
- "variant": "caption",
1594
- "content": "Correct answer"
1611
+ "content": "Correct answer",
1612
+ "variant": "caption"
1595
1613
  },
1596
1614
  {
1615
+ "type": "typography",
1597
1616
  "content": "@entity.correctAnswer",
1598
- "variant": "body",
1599
- "type": "typography"
1617
+ "variant": "body"
1600
1618
  }
1601
1619
  ],
1620
+ "direction": "vertical",
1602
1621
  "gap": "md"
1603
1622
  }
1604
1623
  ],
1605
1624
  "type": "card"
1606
1625
  },
1607
1626
  {
1608
- "direction": "horizontal",
1609
- "type": "stack",
1610
1627
  "gap": "sm",
1628
+ "type": "stack",
1629
+ "direction": "horizontal",
1611
1630
  "children": [
1612
1631
  {
1632
+ "icon": "arrow-right",
1613
1633
  "label": "Next Question",
1634
+ "action": "NEXT_QUESTION",
1614
1635
  "type": "button",
1615
- "variant": "primary",
1616
- "icon": "arrow-right",
1617
- "action": "NEXT_QUESTION"
1636
+ "variant": "primary"
1618
1637
  },
1619
1638
  {
1620
- "action": "BACK_TO_LESSON",
1621
- "label": "Back to Lesson",
1622
- "type": "button",
1639
+ "icon": "book-open",
1623
1640
  "variant": "ghost",
1624
- "icon": "book-open"
1641
+ "type": "button",
1642
+ "label": "Back to Lesson",
1643
+ "action": "BACK_TO_LESSON"
1625
1644
  }
1626
1645
  ]
1627
1646
  }
1628
1647
  ]
1629
1648
  }
1630
- ],
1631
- "appName": "AI Tutor",
1632
- "type": "dashboard-layout",
1633
- "navItems": [
1634
- {
1635
- "icon": "book-open",
1636
- "href": "/teach",
1637
- "label": "Teach"
1638
- },
1639
- {
1640
- "icon": "help-circle",
1641
- "label": "Quiz",
1642
- "href": "/quiz"
1643
- },
1644
- {
1645
- "href": "/concepts",
1646
- "icon": "brain",
1647
- "label": "Concepts"
1648
- }
1649
1649
  ]
1650
1650
  }
1651
1651
  ]
@@ -1679,22 +1679,20 @@
1679
1679
  "render-ui",
1680
1680
  "main",
1681
1681
  {
1682
- "appName": "AI Tutor",
1683
- "type": "dashboard-layout",
1684
1682
  "navItems": [
1685
1683
  {
1686
- "icon": "book-open",
1687
1684
  "label": "Teach",
1685
+ "icon": "book-open",
1688
1686
  "href": "/teach"
1689
1687
  },
1690
1688
  {
1691
- "icon": "help-circle",
1692
1689
  "href": "/quiz",
1690
+ "icon": "help-circle",
1693
1691
  "label": "Quiz"
1694
1692
  },
1695
1693
  {
1696
- "label": "Concepts",
1697
1694
  "href": "/concepts",
1695
+ "label": "Concepts",
1698
1696
  "icon": "brain"
1699
1697
  }
1700
1698
  ],
@@ -1706,58 +1704,60 @@
1706
1704
  "children": [
1707
1705
  {
1708
1706
  "gap": "sm",
1709
- "type": "stack",
1710
1707
  "align": "center",
1708
+ "type": "stack",
1709
+ "direction": "horizontal",
1711
1710
  "children": [
1712
1711
  {
1713
- "name": "help-circle",
1714
- "type": "icon"
1712
+ "type": "icon",
1713
+ "name": "help-circle"
1715
1714
  },
1716
1715
  {
1717
- "variant": "h2",
1718
1716
  "content": "Quiz Question",
1717
+ "variant": "h2",
1719
1718
  "type": "typography"
1720
1719
  }
1721
- ],
1722
- "direction": "horizontal"
1720
+ ]
1723
1721
  },
1724
1722
  {
1725
1723
  "type": "divider"
1726
1724
  },
1727
1725
  {
1728
- "type": "card",
1729
1726
  "children": [
1730
1727
  {
1728
+ "type": "stack",
1731
1729
  "children": [
1732
1730
  {
1733
- "variant": "h3",
1731
+ "type": "typography",
1734
1732
  "content": "@entity.question",
1735
- "type": "typography"
1733
+ "variant": "h3"
1736
1734
  },
1737
1735
  {
1738
- "variant": "body",
1736
+ "content": "@entity.options",
1739
1737
  "type": "typography",
1740
- "content": "@entity.options"
1738
+ "variant": "body"
1741
1739
  },
1742
1740
  {
1743
- "type": "form-section",
1744
- "submitEvent": "SUBMIT_ANSWER",
1745
1741
  "entity": "@entity",
1742
+ "mode": "edit",
1746
1743
  "fields": [
1747
1744
  "studentAnswer"
1748
1745
  ],
1749
- "mode": "edit"
1746
+ "type": "form-section",
1747
+ "submitEvent": "SUBMIT_ANSWER"
1750
1748
  }
1751
1749
  ],
1752
- "type": "stack",
1753
1750
  "gap": "md",
1754
1751
  "direction": "vertical"
1755
1752
  }
1756
- ]
1753
+ ],
1754
+ "type": "card"
1757
1755
  }
1758
1756
  ]
1759
1757
  }
1760
- ]
1758
+ ],
1759
+ "type": "dashboard-layout",
1760
+ "appName": "AI Tutor"
1761
1761
  }
1762
1762
  ]
1763
1763
  ]
@@ -1776,59 +1776,59 @@
1776
1776
  "render-ui",
1777
1777
  "main",
1778
1778
  {
1779
- "type": "dashboard-layout",
1780
1779
  "appName": "AI Tutor",
1781
1780
  "children": [
1782
1781
  {
1782
+ "gap": "lg",
1783
1783
  "children": [
1784
1784
  {
1785
- "type": "stack",
1785
+ "direction": "horizontal",
1786
+ "align": "center",
1786
1787
  "children": [
1787
1788
  {
1788
1789
  "name": "help-circle",
1789
1790
  "type": "icon"
1790
1791
  },
1791
1792
  {
1792
- "type": "typography",
1793
+ "content": "Quiz",
1793
1794
  "variant": "h2",
1794
- "content": "Quiz"
1795
+ "type": "typography"
1795
1796
  }
1796
1797
  ],
1797
- "direction": "horizontal",
1798
- "align": "center",
1798
+ "type": "stack",
1799
1799
  "gap": "sm"
1800
1800
  },
1801
1801
  {
1802
1802
  "type": "divider"
1803
1803
  },
1804
1804
  {
1805
- "content": "Waiting for a quiz to start...",
1805
+ "variant": "body",
1806
1806
  "type": "typography",
1807
- "variant": "body"
1807
+ "content": "Waiting for a quiz to start..."
1808
1808
  }
1809
1809
  ],
1810
1810
  "type": "stack",
1811
- "gap": "lg",
1812
1811
  "direction": "vertical"
1813
1812
  }
1814
1813
  ],
1815
1814
  "navItems": [
1816
1815
  {
1817
1816
  "label": "Teach",
1818
- "icon": "book-open",
1819
- "href": "/teach"
1817
+ "href": "/teach",
1818
+ "icon": "book-open"
1820
1819
  },
1821
1820
  {
1822
1821
  "label": "Quiz",
1823
- "icon": "help-circle",
1824
- "href": "/quiz"
1822
+ "href": "/quiz",
1823
+ "icon": "help-circle"
1825
1824
  },
1826
1825
  {
1827
- "icon": "brain",
1828
1826
  "label": "Concepts",
1829
- "href": "/concepts"
1827
+ "href": "/concepts",
1828
+ "icon": "brain"
1830
1829
  }
1831
- ]
1830
+ ],
1831
+ "type": "dashboard-layout"
1832
1832
  }
1833
1833
  ]
1834
1834
  ]
@@ -2079,22 +2079,22 @@
2079
2079
  "render-ui",
2080
2080
  "main",
2081
2081
  {
2082
- "align": "center",
2083
2082
  "direction": "vertical",
2084
2083
  "children": [
2085
2084
  {
2086
2085
  "type": "spinner"
2087
2086
  },
2088
2087
  {
2089
- "content": "Loading…",
2090
- "color": "muted",
2091
2088
  "type": "typography",
2092
- "variant": "caption"
2089
+ "content": "Loading…",
2090
+ "variant": "caption",
2091
+ "color": "muted"
2093
2092
  }
2094
2093
  ],
2095
- "className": "py-12",
2096
2094
  "type": "stack",
2097
- "gap": "md"
2095
+ "className": "py-12",
2096
+ "gap": "md",
2097
+ "align": "center"
2098
2098
  }
2099
2099
  ]
2100
2100
  ]
@@ -2108,11 +2108,12 @@
2108
2108
  "render-ui",
2109
2109
  "main",
2110
2110
  {
2111
+ "appName": "AI Tutor",
2111
2112
  "navItems": [
2112
2113
  {
2113
- "label": "Teach",
2114
2114
  "href": "/teach",
2115
- "icon": "book-open"
2115
+ "icon": "book-open",
2116
+ "label": "Teach"
2116
2117
  },
2117
2118
  {
2118
2119
  "href": "/quiz",
@@ -2125,19 +2126,18 @@
2125
2126
  "label": "Concepts"
2126
2127
  }
2127
2128
  ],
2128
- "type": "dashboard-layout",
2129
- "appName": "AI Tutor",
2130
2129
  "children": [
2131
2130
  {
2132
- "gap": "lg",
2133
- "direction": "vertical",
2134
- "type": "stack",
2135
2131
  "children": [
2136
2132
  {
2137
- "align": "center",
2133
+ "justify": "between",
2134
+ "gap": "sm",
2135
+ "direction": "horizontal",
2138
2136
  "type": "stack",
2139
2137
  "children": [
2140
2138
  {
2139
+ "align": "center",
2140
+ "gap": "sm",
2141
2141
  "direction": "horizontal",
2142
2142
  "children": [
2143
2143
  {
@@ -2145,77 +2145,77 @@
2145
2145
  "type": "icon"
2146
2146
  },
2147
2147
  {
2148
- "variant": "h2",
2148
+ "type": "typography",
2149
2149
  "content": "TutorChat Thread",
2150
- "type": "typography"
2150
+ "variant": "h2"
2151
2151
  }
2152
2152
  ],
2153
- "type": "stack",
2154
- "align": "center",
2155
- "gap": "sm"
2153
+ "type": "stack"
2156
2154
  },
2157
2155
  {
2156
+ "type": "button",
2157
+ "action": "COMPOSE",
2158
2158
  "variant": "primary",
2159
2159
  "icon": "plus",
2160
- "label": "New Message",
2161
- "action": "COMPOSE",
2162
- "type": "button"
2160
+ "label": "New Message"
2163
2161
  }
2164
2162
  ],
2165
- "gap": "sm",
2166
- "justify": "between",
2167
- "direction": "horizontal"
2163
+ "align": "center"
2168
2164
  },
2169
2165
  {
2170
2166
  "type": "divider"
2171
2167
  },
2172
2168
  {
2169
+ "type": "data-list",
2170
+ "fields": [],
2171
+ "entity": "@payload.data",
2173
2172
  "renderItem": [
2174
2173
  "fn",
2175
2174
  "item",
2176
2175
  {
2177
2176
  "gap": "xs",
2178
- "type": "stack",
2179
2177
  "children": [
2180
2178
  {
2181
- "align": "center",
2182
- "gap": "sm",
2183
- "direction": "horizontal",
2184
2179
  "type": "stack",
2180
+ "direction": "horizontal",
2181
+ "gap": "sm",
2182
+ "align": "center",
2185
2183
  "children": [
2186
2184
  {
2187
2185
  "type": "badge",
2188
2186
  "label": "@item.role"
2189
2187
  },
2190
2188
  {
2191
- "variant": "outline",
2192
2189
  "type": "badge",
2190
+ "variant": "outline",
2193
2191
  "label": "@item.status"
2194
2192
  },
2195
2193
  {
2196
- "type": "typography",
2194
+ "variant": "caption",
2197
2195
  "content": "@item.timestamp",
2198
- "color": "muted",
2199
- "variant": "caption"
2196
+ "type": "typography",
2197
+ "color": "muted"
2200
2198
  }
2201
2199
  ]
2202
2200
  },
2203
2201
  {
2204
2202
  "variant": "body",
2205
- "type": "typography",
2206
- "content": "@item.content"
2203
+ "content": "@item.content",
2204
+ "type": "typography"
2207
2205
  }
2208
2206
  ],
2209
- "direction": "vertical"
2207
+ "direction": "vertical",
2208
+ "type": "stack"
2210
2209
  }
2211
- ],
2212
- "type": "data-list",
2213
- "fields": [],
2214
- "entity": "@payload.data"
2210
+ ]
2215
2211
  }
2216
- ]
2212
+ ],
2213
+ "gap": "lg",
2214
+ "type": "stack",
2215
+ "direction": "vertical"
2217
2216
  }
2218
- ]
2217
+ ],
2218
+ "type": "dashboard-layout"
2219
2219
  }
2220
2220
  ]
2221
2221
  ]
@@ -2229,17 +2229,20 @@
2229
2229
  "render-ui",
2230
2230
  "main",
2231
2231
  {
2232
- "align": "center",
2232
+ "type": "stack",
2233
2233
  "gap": "md",
2234
+ "direction": "vertical",
2235
+ "align": "center",
2236
+ "className": "py-12",
2234
2237
  "children": [
2235
2238
  {
2236
- "type": "icon",
2237
2239
  "name": "alert-triangle",
2240
+ "type": "icon",
2238
2241
  "color": "destructive"
2239
2242
  },
2240
2243
  {
2241
- "variant": "h3",
2242
2244
  "type": "typography",
2245
+ "variant": "h3",
2243
2246
  "content": "Failed to load tutorchat"
2244
2247
  },
2245
2248
  {
@@ -2251,14 +2254,11 @@
2251
2254
  {
2252
2255
  "type": "button",
2253
2256
  "label": "Retry",
2254
- "action": "INIT",
2255
2257
  "icon": "rotate-ccw",
2256
- "variant": "primary"
2258
+ "variant": "primary",
2259
+ "action": "INIT"
2257
2260
  }
2258
- ],
2259
- "direction": "vertical",
2260
- "className": "py-12",
2261
- "type": "stack"
2261
+ ]
2262
2262
  }
2263
2263
  ]
2264
2264
  ]
@@ -2273,39 +2273,39 @@
2273
2273
  "main",
2274
2274
  {
2275
2275
  "type": "stack",
2276
+ "direction": "vertical",
2277
+ "gap": "lg",
2276
2278
  "children": [
2277
2279
  {
2278
- "direction": "horizontal",
2279
- "align": "center",
2280
- "type": "stack",
2280
+ "gap": "sm",
2281
2281
  "children": [
2282
2282
  {
2283
- "type": "icon",
2284
- "name": "message-circle"
2283
+ "name": "message-circle",
2284
+ "type": "icon"
2285
2285
  },
2286
2286
  {
2287
- "type": "typography",
2288
2287
  "variant": "h2",
2288
+ "type": "typography",
2289
2289
  "content": "TutorChat Thread"
2290
2290
  }
2291
2291
  ],
2292
- "gap": "sm"
2292
+ "direction": "horizontal",
2293
+ "type": "stack",
2294
+ "align": "center"
2293
2295
  },
2294
2296
  {
2295
2297
  "type": "divider"
2296
2298
  },
2297
2299
  {
2298
- "type": "form-section",
2300
+ "mode": "create",
2299
2301
  "cancelEvent": "CANCEL_COMPOSE",
2302
+ "submitEvent": "SEND",
2300
2303
  "fields": [
2301
2304
  "content"
2302
2305
  ],
2303
- "submitEvent": "SEND",
2304
- "mode": "create"
2306
+ "type": "form-section"
2305
2307
  }
2306
- ],
2307
- "direction": "vertical",
2308
- "gap": "lg"
2308
+ ]
2309
2309
  }
2310
2310
  ]
2311
2311
  ]
@@ -2321,8 +2321,8 @@
2321
2321
  "TutorChat",
2322
2322
  {
2323
2323
  "emit": {
2324
- "success": "TutorChatDeleted",
2325
- "failure": "TutorChatDeleteFailed"
2324
+ "failure": "TutorChatDeleteFailed",
2325
+ "success": "TutorChatDeleted"
2326
2326
  }
2327
2327
  }
2328
2328
  ],
@@ -2355,10 +2355,10 @@
2355
2355
  "create",
2356
2356
  "TutorChat",
2357
2357
  {
2358
- "role": "user",
2359
2358
  "content": "@payload.content",
2360
- "timestamp": "@now",
2361
- "status": "sent"
2359
+ "role": "user",
2360
+ "status": "sent",
2361
+ "timestamp": "@now"
2362
2362
  },
2363
2363
  {
2364
2364
  "emit": {
@@ -2371,8 +2371,8 @@
2371
2371
  "TutorChat",
2372
2372
  {
2373
2373
  "emit": {
2374
- "failure": "TutorChatLoadFailed",
2375
- "success": "TutorChatLoaded"
2374
+ "success": "TutorChatLoaded",
2375
+ "failure": "TutorChatLoadFailed"
2376
2376
  }
2377
2377
  }
2378
2378
  ],
@@ -2395,8 +2395,8 @@
2395
2395
  "TutorChat",
2396
2396
  {
2397
2397
  "emit": {
2398
- "success": "TutorChatLoaded",
2399
- "failure": "TutorChatLoadFailed"
2398
+ "failure": "TutorChatLoadFailed",
2399
+ "success": "TutorChatLoaded"
2400
2400
  }
2401
2401
  }
2402
2402
  ],
@@ -2570,8 +2570,8 @@
2570
2570
  "TutorChat",
2571
2571
  {
2572
2572
  "emit": {
2573
- "failure": "TutorChatLoadFailed",
2574
- "success": "TutorChatLoaded"
2573
+ "success": "TutorChatLoaded",
2574
+ "failure": "TutorChatLoadFailed"
2575
2575
  }
2576
2576
  }
2577
2577
  ],
@@ -2579,31 +2579,31 @@
2579
2579
  "render-ui",
2580
2580
  "main",
2581
2581
  {
2582
+ "children": [
2583
+ {
2584
+ "description": "Conversation is ready",
2585
+ "title": "Conversation",
2586
+ "icon": "message-circle",
2587
+ "type": "empty-state"
2588
+ }
2589
+ ],
2582
2590
  "type": "dashboard-layout",
2583
2591
  "appName": "AI Tutor",
2584
2592
  "navItems": [
2585
2593
  {
2586
2594
  "icon": "book-open",
2587
- "label": "Teach",
2588
- "href": "/teach"
2595
+ "href": "/teach",
2596
+ "label": "Teach"
2589
2597
  },
2590
2598
  {
2591
- "icon": "help-circle",
2599
+ "label": "Quiz",
2592
2600
  "href": "/quiz",
2593
- "label": "Quiz"
2601
+ "icon": "help-circle"
2594
2602
  },
2595
2603
  {
2596
- "href": "/concepts",
2604
+ "icon": "brain",
2597
2605
  "label": "Concepts",
2598
- "icon": "brain"
2599
- }
2600
- ],
2601
- "children": [
2602
- {
2603
- "type": "empty-state",
2604
- "description": "Conversation is ready",
2605
- "title": "Conversation",
2606
- "icon": "message-circle"
2606
+ "href": "/concepts"
2607
2607
  }
2608
2608
  ]
2609
2609
  }
@@ -3076,8 +3076,8 @@
3076
3076
  "Concept",
3077
3077
  {
3078
3078
  "emit": {
3079
- "failure": "ConceptLoadFailed",
3080
- "success": "ConceptLoaded"
3079
+ "success": "ConceptLoaded",
3080
+ "failure": "ConceptLoadFailed"
3081
3081
  }
3082
3082
  }
3083
3083
  ],
@@ -3085,22 +3085,22 @@
3085
3085
  "render-ui",
3086
3086
  "main",
3087
3087
  {
3088
+ "type": "stack",
3089
+ "gap": "md",
3090
+ "className": "py-12",
3091
+ "direction": "vertical",
3092
+ "align": "center",
3088
3093
  "children": [
3089
3094
  {
3090
3095
  "type": "spinner"
3091
3096
  },
3092
3097
  {
3093
- "type": "typography",
3094
- "content": "Loading…",
3095
3098
  "color": "muted",
3096
- "variant": "caption"
3099
+ "type": "typography",
3100
+ "variant": "caption",
3101
+ "content": "Loading…"
3097
3102
  }
3098
- ],
3099
- "gap": "md",
3100
- "align": "center",
3101
- "direction": "vertical",
3102
- "className": "py-12",
3103
- "type": "stack"
3103
+ ]
3104
3104
  }
3105
3105
  ]
3106
3106
  ]
@@ -3114,144 +3114,144 @@
3114
3114
  "render-ui",
3115
3115
  "main",
3116
3116
  {
3117
- "type": "dashboard-layout",
3118
- "appName": "AI Tutor",
3119
- "navItems": [
3120
- {
3121
- "icon": "book-open",
3122
- "href": "/teach",
3123
- "label": "Teach"
3124
- },
3125
- {
3126
- "href": "/quiz",
3127
- "icon": "help-circle",
3128
- "label": "Quiz"
3129
- },
3130
- {
3131
- "label": "Concepts",
3132
- "href": "/concepts",
3133
- "icon": "brain"
3134
- }
3135
- ],
3136
3117
  "children": [
3137
3118
  {
3119
+ "className": "max-w-5xl mx-auto w-full",
3138
3120
  "type": "stack",
3121
+ "direction": "vertical",
3139
3122
  "children": [
3140
3123
  {
3124
+ "align": "center",
3125
+ "justify": "between",
3141
3126
  "children": [
3142
3127
  {
3143
3128
  "gap": "sm",
3129
+ "align": "center",
3130
+ "type": "stack",
3144
3131
  "children": [
3145
3132
  {
3146
- "name": "brain",
3147
- "type": "icon"
3133
+ "type": "icon",
3134
+ "name": "brain"
3148
3135
  },
3149
3136
  {
3150
3137
  "type": "typography",
3151
- "content": "Concept Manager",
3152
- "variant": "h2"
3138
+ "variant": "h2",
3139
+ "content": "Concept Manager"
3153
3140
  }
3154
3141
  ],
3155
- "type": "stack",
3156
- "direction": "horizontal",
3157
- "align": "center"
3142
+ "direction": "horizontal"
3158
3143
  },
3159
3144
  {
3160
- "type": "stack",
3145
+ "direction": "horizontal",
3146
+ "gap": "sm",
3161
3147
  "children": [
3162
3148
  {
3163
- "icon": "plus",
3149
+ "variant": "primary",
3164
3150
  "label": "Memorize",
3165
- "type": "button",
3151
+ "icon": "plus",
3166
3152
  "action": "MEMORIZE",
3167
- "variant": "primary"
3153
+ "type": "button"
3168
3154
  },
3169
3155
  {
3170
- "icon": "search",
3171
- "action": "RECALL",
3172
3156
  "type": "button",
3157
+ "action": "RECALL",
3158
+ "icon": "search",
3173
3159
  "variant": "secondary",
3174
3160
  "label": "Recall"
3175
3161
  },
3176
3162
  {
3177
- "variant": "ghost",
3178
3163
  "icon": "clock",
3179
- "type": "button",
3164
+ "variant": "ghost",
3180
3165
  "label": "Decay All",
3181
- "action": "DECAY"
3166
+ "action": "DECAY",
3167
+ "type": "button"
3182
3168
  }
3183
3169
  ],
3184
- "gap": "sm",
3185
- "direction": "horizontal"
3170
+ "type": "stack"
3186
3171
  }
3187
3172
  ],
3188
3173
  "direction": "horizontal",
3189
- "gap": "md",
3190
- "justify": "between",
3191
- "align": "center",
3192
- "type": "stack"
3174
+ "type": "stack",
3175
+ "gap": "md"
3193
3176
  },
3194
3177
  {
3195
3178
  "type": "divider"
3196
3179
  },
3197
3180
  {
3198
- "type": "data-grid",
3181
+ "entity": "@payload.data",
3199
3182
  "fields": [
3200
3183
  {
3184
+ "variant": "h4",
3201
3185
  "label": "Content",
3202
3186
  "name": "content",
3203
- "variant": "h4",
3204
3187
  "icon": "brain"
3205
3188
  },
3206
3189
  {
3207
- "label": "Category",
3208
- "name": "category",
3209
- "variant": "badge",
3210
3190
  "colorMap": {
3211
- "active": "success",
3191
+ "cancelled": "destructive",
3212
3192
  "done": "success",
3213
3193
  "failed": "destructive",
3214
- "completed": "success",
3215
- "archived": "neutral",
3216
- "cancelled": "destructive",
3217
3194
  "inactive": "neutral",
3218
- "scheduled": "warning",
3219
- "error": "destructive",
3220
3195
  "pending": "warning",
3221
- "draft": "warning"
3222
- }
3196
+ "archived": "neutral",
3197
+ "active": "success",
3198
+ "scheduled": "warning",
3199
+ "draft": "warning",
3200
+ "completed": "success",
3201
+ "error": "destructive"
3202
+ },
3203
+ "variant": "badge",
3204
+ "name": "category",
3205
+ "label": "Category"
3223
3206
  },
3224
3207
  {
3225
- "name": "strength",
3208
+ "variant": "caption",
3226
3209
  "label": "Strength",
3227
- "variant": "caption"
3210
+ "name": "strength"
3228
3211
  }
3229
3212
  ],
3230
3213
  "itemActions": [
3231
3214
  {
3232
- "event": "PIN",
3233
3215
  "variant": "ghost",
3234
- "label": "Pin"
3216
+ "label": "Pin",
3217
+ "event": "PIN"
3235
3218
  },
3236
3219
  {
3237
- "label": "Reinforce",
3238
3220
  "variant": "ghost",
3221
+ "label": "Reinforce",
3239
3222
  "event": "REINFORCE"
3240
3223
  },
3241
3224
  {
3242
- "label": "Forget",
3243
3225
  "event": "FORGET",
3226
+ "label": "Forget",
3244
3227
  "variant": "danger"
3245
3228
  }
3246
3229
  ],
3247
- "entity": "@payload.data"
3230
+ "type": "data-grid"
3248
3231
  }
3249
3232
  ],
3250
- "className": "max-w-5xl mx-auto w-full",
3251
- "gap": "lg",
3252
- "direction": "vertical"
3233
+ "gap": "lg"
3253
3234
  }
3254
- ]
3235
+ ],
3236
+ "navItems": [
3237
+ {
3238
+ "icon": "book-open",
3239
+ "label": "Teach",
3240
+ "href": "/teach"
3241
+ },
3242
+ {
3243
+ "href": "/quiz",
3244
+ "icon": "help-circle",
3245
+ "label": "Quiz"
3246
+ },
3247
+ {
3248
+ "icon": "brain",
3249
+ "href": "/concepts",
3250
+ "label": "Concepts"
3251
+ }
3252
+ ],
3253
+ "type": "dashboard-layout",
3254
+ "appName": "AI Tutor"
3255
3255
  }
3256
3256
  ]
3257
3257
  ]
@@ -3265,15 +3265,10 @@
3265
3265
  "render-ui",
3266
3266
  "main",
3267
3267
  {
3268
- "type": "stack",
3269
- "className": "py-12",
3270
- "align": "center",
3271
- "direction": "vertical",
3272
- "gap": "md",
3273
3268
  "children": [
3274
3269
  {
3275
- "type": "icon",
3276
3270
  "color": "destructive",
3271
+ "type": "icon",
3277
3272
  "name": "alert-triangle"
3278
3273
  },
3279
3274
  {
@@ -3282,19 +3277,24 @@
3282
3277
  "content": "Failed to load concept"
3283
3278
  },
3284
3279
  {
3285
- "variant": "body",
3286
3280
  "color": "muted",
3287
3281
  "content": "@payload.error",
3282
+ "variant": "body",
3288
3283
  "type": "typography"
3289
3284
  },
3290
3285
  {
3286
+ "label": "Retry",
3291
3287
  "icon": "rotate-ccw",
3292
3288
  "action": "INIT",
3293
3289
  "type": "button",
3294
- "variant": "primary",
3295
- "label": "Retry"
3290
+ "variant": "primary"
3296
3291
  }
3297
- ]
3292
+ ],
3293
+ "gap": "md",
3294
+ "type": "stack",
3295
+ "direction": "vertical",
3296
+ "align": "center",
3297
+ "className": "py-12"
3298
3298
  }
3299
3299
  ]
3300
3300
  ]
@@ -3485,41 +3485,41 @@
3485
3485
  "render-ui",
3486
3486
  "modal",
3487
3487
  {
3488
- "type": "stack",
3489
- "direction": "vertical",
3490
3488
  "children": [
3491
3489
  {
3490
+ "gap": "sm",
3492
3491
  "children": [
3493
3492
  {
3494
- "type": "icon",
3495
- "name": "plus-circle"
3493
+ "name": "plus-circle",
3494
+ "type": "icon"
3496
3495
  },
3497
3496
  {
3498
3497
  "variant": "h3",
3499
- "type": "typography",
3500
- "content": "Memorize"
3498
+ "content": "Memorize",
3499
+ "type": "typography"
3501
3500
  }
3502
3501
  ],
3503
3502
  "direction": "horizontal",
3504
- "type": "stack",
3505
- "gap": "sm"
3503
+ "type": "stack"
3506
3504
  },
3507
3505
  {
3508
3506
  "type": "divider"
3509
3507
  },
3510
3508
  {
3509
+ "submitEvent": "SAVE",
3510
+ "type": "form-section",
3511
+ "cancelEvent": "CLOSE",
3511
3512
  "fields": [
3512
3513
  "content",
3513
3514
  "category",
3514
3515
  "scope"
3515
3516
  ],
3516
- "cancelEvent": "CLOSE",
3517
- "mode": "create",
3518
- "type": "form-section",
3519
- "submitEvent": "SAVE"
3517
+ "mode": "create"
3520
3518
  }
3521
3519
  ],
3522
- "gap": "md"
3520
+ "gap": "md",
3521
+ "type": "stack",
3522
+ "direction": "vertical"
3523
3523
  }
3524
3524
  ]
3525
3525
  ]
@@ -3883,8 +3883,8 @@
3883
3883
  "Concept",
3884
3884
  {
3885
3885
  "emit": {
3886
- "success": "ConceptLoaded",
3887
- "failure": "ConceptLoadFailed"
3886
+ "failure": "ConceptLoadFailed",
3887
+ "success": "ConceptLoaded"
3888
3888
  }
3889
3889
  }
3890
3890
  ],
@@ -3893,15 +3893,6 @@
3893
3893
  "main",
3894
3894
  {
3895
3895
  "type": "dashboard-layout",
3896
- "appName": "AI Tutor",
3897
- "children": [
3898
- {
3899
- "title": "Memory",
3900
- "description": "Memory is ready",
3901
- "icon": "brain",
3902
- "type": "empty-state"
3903
- }
3904
- ],
3905
3896
  "navItems": [
3906
3897
  {
3907
3898
  "icon": "book-open",
@@ -3914,11 +3905,20 @@
3914
3905
  "icon": "help-circle"
3915
3906
  },
3916
3907
  {
3908
+ "href": "/concepts",
3917
3909
  "icon": "brain",
3918
- "label": "Concepts",
3919
- "href": "/concepts"
3910
+ "label": "Concepts"
3920
3911
  }
3921
- ]
3912
+ ],
3913
+ "children": [
3914
+ {
3915
+ "title": "Memory",
3916
+ "description": "Memory is ready",
3917
+ "type": "empty-state",
3918
+ "icon": "brain"
3919
+ }
3920
+ ],
3921
+ "appName": "AI Tutor"
3922
3922
  }
3923
3923
  ]
3924
3924
  ]
@@ -3940,8 +3940,8 @@
3940
3940
  "@payload.data",
3941
3941
  {
3942
3942
  "emit": {
3943
- "failure": "ConceptSaveFailed",
3944
- "success": "ConceptSaved"
3943
+ "success": "ConceptSaved",
3944
+ "failure": "ConceptSaveFailed"
3945
3945
  }
3946
3946
  }
3947
3947
  ]
@@ -4286,74 +4286,74 @@
4286
4286
  "render-ui",
4287
4287
  "main",
4288
4288
  {
4289
+ "appName": "AI Tutor",
4290
+ "navItems": [
4291
+ {
4292
+ "label": "Teach",
4293
+ "href": "/teach",
4294
+ "icon": "book-open"
4295
+ },
4296
+ {
4297
+ "label": "Quiz",
4298
+ "href": "/quiz",
4299
+ "icon": "help-circle"
4300
+ },
4301
+ {
4302
+ "href": "/concepts",
4303
+ "icon": "brain",
4304
+ "label": "Concepts"
4305
+ }
4306
+ ],
4307
+ "type": "dashboard-layout",
4289
4308
  "children": [
4290
4309
  {
4291
- "gap": "lg",
4310
+ "type": "stack",
4292
4311
  "children": [
4293
4312
  {
4294
4313
  "children": [
4295
4314
  {
4296
- "direction": "horizontal",
4297
- "gap": "md",
4298
4315
  "children": [
4299
4316
  {
4300
- "name": "tag",
4301
- "type": "icon"
4317
+ "type": "icon",
4318
+ "name": "tag"
4302
4319
  },
4303
4320
  {
4304
- "type": "typography",
4321
+ "content": "StudentAssessment",
4305
4322
  "variant": "h2",
4306
- "content": "StudentAssessment"
4323
+ "type": "typography"
4307
4324
  }
4308
4325
  ],
4326
+ "gap": "md",
4327
+ "direction": "horizontal",
4309
4328
  "type": "stack"
4310
4329
  },
4311
4330
  {
4312
4331
  "variant": "primary",
4313
- "type": "button",
4314
4332
  "action": "CLASSIFY",
4315
4333
  "icon": "tag",
4316
- "label": "Open"
4334
+ "label": "Open",
4335
+ "type": "button"
4317
4336
  }
4318
4337
  ],
4319
- "justify": "between",
4338
+ "direction": "horizontal",
4320
4339
  "gap": "md",
4321
4340
  "type": "stack",
4322
- "direction": "horizontal"
4341
+ "justify": "between"
4323
4342
  },
4324
4343
  {
4325
4344
  "type": "divider"
4326
4345
  },
4327
4346
  {
4328
- "description": "Click Open to view details in a modal overlay.",
4329
- "type": "empty-state",
4347
+ "icon": "tag",
4330
4348
  "title": "Nothing open",
4331
- "icon": "tag"
4349
+ "description": "Click Open to view details in a modal overlay.",
4350
+ "type": "empty-state"
4332
4351
  }
4333
4352
  ],
4334
- "type": "stack",
4335
- "direction": "vertical"
4336
- }
4337
- ],
4338
- "navItems": [
4339
- {
4340
- "label": "Teach",
4341
- "href": "/teach",
4342
- "icon": "book-open"
4343
- },
4344
- {
4345
- "href": "/quiz",
4346
- "label": "Quiz",
4347
- "icon": "help-circle"
4348
- },
4349
- {
4350
- "label": "Concepts",
4351
- "icon": "brain",
4352
- "href": "/concepts"
4353
+ "direction": "vertical",
4354
+ "gap": "lg"
4353
4355
  }
4354
- ],
4355
- "appName": "AI Tutor",
4356
- "type": "dashboard-layout"
4356
+ ]
4357
4357
  }
4358
4358
  ]
4359
4359
  ]
@@ -4367,39 +4367,40 @@
4367
4367
  "render-ui",
4368
4368
  "modal",
4369
4369
  {
4370
+ "gap": "md",
4371
+ "direction": "vertical",
4372
+ "type": "stack",
4370
4373
  "children": [
4371
4374
  {
4372
- "gap": "sm",
4373
- "type": "stack",
4374
4375
  "children": [
4375
4376
  {
4376
4377
  "type": "icon",
4377
4378
  "name": "tag"
4378
4379
  },
4379
4380
  {
4381
+ "content": "StudentAssessment",
4380
4382
  "type": "typography",
4381
- "variant": "h3",
4382
- "content": "StudentAssessment"
4383
+ "variant": "h3"
4383
4384
  }
4384
4385
  ],
4385
- "direction": "horizontal"
4386
+ "type": "stack",
4387
+ "direction": "horizontal",
4388
+ "gap": "sm"
4386
4389
  },
4387
4390
  {
4388
4391
  "type": "divider"
4389
4392
  },
4390
4393
  {
4391
- "direction": "horizontal",
4392
- "gap": "sm",
4393
4394
  "children": [
4394
4395
  {
4396
+ "variant": "caption",
4395
4397
  "content": "Categories:",
4396
- "type": "typography",
4397
- "variant": "caption"
4398
+ "type": "typography"
4398
4399
  },
4399
4400
  {
4401
+ "label": "beginner",
4400
4402
  "type": "badge",
4401
- "variant": "secondary",
4402
- "label": "beginner"
4403
+ "variant": "secondary"
4403
4404
  },
4404
4405
  {
4405
4406
  "label": "intermediate",
@@ -4408,30 +4409,29 @@
4408
4409
  },
4409
4410
  {
4410
4411
  "label": "advanced",
4411
- "type": "badge",
4412
- "variant": "secondary"
4412
+ "variant": "secondary",
4413
+ "type": "badge"
4413
4414
  },
4414
4415
  {
4415
- "label": "expert",
4416
+ "type": "badge",
4416
4417
  "variant": "secondary",
4417
- "type": "badge"
4418
+ "label": "expert"
4418
4419
  }
4419
4420
  ],
4420
- "type": "stack"
4421
+ "type": "stack",
4422
+ "gap": "sm",
4423
+ "direction": "horizontal"
4421
4424
  },
4422
4425
  {
4426
+ "mode": "create",
4427
+ "submitEvent": "SAVE",
4428
+ "type": "form-section",
4423
4429
  "cancelEvent": "CLOSE",
4424
4430
  "fields": [
4425
4431
  "input"
4426
- ],
4427
- "type": "form-section",
4428
- "mode": "create",
4429
- "submitEvent": "SAVE"
4432
+ ]
4430
4433
  }
4431
- ],
4432
- "type": "stack",
4433
- "direction": "vertical",
4434
- "gap": "md"
4434
+ ]
4435
4435
  }
4436
4436
  ]
4437
4437
  ]
@@ -4456,8 +4456,8 @@
4456
4456
  "StudentAssessment",
4457
4457
  {
4458
4458
  "emit": {
4459
- "failure": "StudentAssessmentLoadFailed",
4460
- "success": "StudentAssessmentLoaded"
4459
+ "success": "StudentAssessmentLoaded",
4460
+ "failure": "StudentAssessmentLoadFailed"
4461
4461
  }
4462
4462
  }
4463
4463
  ],
@@ -4465,74 +4465,74 @@
4465
4465
  "render-ui",
4466
4466
  "main",
4467
4467
  {
4468
+ "type": "dashboard-layout",
4469
+ "navItems": [
4470
+ {
4471
+ "href": "/teach",
4472
+ "label": "Teach",
4473
+ "icon": "book-open"
4474
+ },
4475
+ {
4476
+ "icon": "help-circle",
4477
+ "href": "/quiz",
4478
+ "label": "Quiz"
4479
+ },
4480
+ {
4481
+ "label": "Concepts",
4482
+ "icon": "brain",
4483
+ "href": "/concepts"
4484
+ }
4485
+ ],
4486
+ "appName": "AI Tutor",
4468
4487
  "children": [
4469
4488
  {
4470
- "type": "stack",
4471
- "gap": "lg",
4472
- "direction": "vertical",
4473
4489
  "children": [
4474
4490
  {
4475
4491
  "direction": "horizontal",
4476
- "type": "stack",
4477
4492
  "gap": "md",
4478
4493
  "justify": "between",
4479
4494
  "children": [
4480
4495
  {
4496
+ "type": "stack",
4497
+ "direction": "horizontal",
4498
+ "gap": "md",
4481
4499
  "children": [
4482
- {
4483
- "type": "icon",
4484
- "name": "tag"
4500
+ {
4501
+ "name": "tag",
4502
+ "type": "icon"
4485
4503
  },
4486
4504
  {
4487
4505
  "variant": "h2",
4488
- "content": "StudentAssessment",
4489
- "type": "typography"
4506
+ "type": "typography",
4507
+ "content": "StudentAssessment"
4490
4508
  }
4491
- ],
4492
- "direction": "horizontal",
4493
- "gap": "md",
4494
- "type": "stack"
4509
+ ]
4495
4510
  },
4496
4511
  {
4497
4512
  "icon": "tag",
4498
- "variant": "primary",
4499
- "type": "button",
4500
4513
  "label": "Open",
4501
- "action": "CLASSIFY"
4514
+ "type": "button",
4515
+ "action": "CLASSIFY",
4516
+ "variant": "primary"
4502
4517
  }
4503
- ]
4518
+ ],
4519
+ "type": "stack"
4504
4520
  },
4505
4521
  {
4506
4522
  "type": "divider"
4507
4523
  },
4508
4524
  {
4509
4525
  "icon": "tag",
4510
- "title": "Nothing open",
4511
4526
  "description": "Click Open to view details in a modal overlay.",
4512
- "type": "empty-state"
4527
+ "type": "empty-state",
4528
+ "title": "Nothing open"
4513
4529
  }
4514
- ]
4515
- }
4516
- ],
4517
- "appName": "AI Tutor",
4518
- "navItems": [
4519
- {
4520
- "href": "/teach",
4521
- "icon": "book-open",
4522
- "label": "Teach"
4523
- },
4524
- {
4525
- "icon": "help-circle",
4526
- "label": "Quiz",
4527
- "href": "/quiz"
4528
- },
4529
- {
4530
- "label": "Concepts",
4531
- "href": "/concepts",
4532
- "icon": "brain"
4530
+ ],
4531
+ "type": "stack",
4532
+ "gap": "lg",
4533
+ "direction": "vertical"
4533
4534
  }
4534
- ],
4535
- "type": "dashboard-layout"
4535
+ ]
4536
4536
  }
4537
4537
  ]
4538
4538
  ]
@@ -4549,8 +4549,8 @@
4549
4549
  "@payload.data",
4550
4550
  {
4551
4551
  "emit": {
4552
- "success": "StudentAssessmentSaved",
4553
- "failure": "StudentAssessmentSaveFailed"
4552
+ "failure": "StudentAssessmentSaveFailed",
4553
+ "success": "StudentAssessmentSaved"
4554
4554
  }
4555
4555
  }
4556
4556
  ],
@@ -4568,8 +4568,8 @@
4568
4568
  "StudentAssessment",
4569
4569
  {
4570
4570
  "emit": {
4571
- "success": "StudentAssessmentLoaded",
4572
- "failure": "StudentAssessmentLoadFailed"
4571
+ "failure": "StudentAssessmentLoadFailed",
4572
+ "success": "StudentAssessmentLoaded"
4573
4573
  }
4574
4574
  }
4575
4575
  ],
@@ -4577,74 +4577,74 @@
4577
4577
  "render-ui",
4578
4578
  "main",
4579
4579
  {
4580
- "appName": "AI Tutor",
4580
+ "navItems": [
4581
+ {
4582
+ "icon": "book-open",
4583
+ "label": "Teach",
4584
+ "href": "/teach"
4585
+ },
4586
+ {
4587
+ "href": "/quiz",
4588
+ "label": "Quiz",
4589
+ "icon": "help-circle"
4590
+ },
4591
+ {
4592
+ "label": "Concepts",
4593
+ "href": "/concepts",
4594
+ "icon": "brain"
4595
+ }
4596
+ ],
4581
4597
  "children": [
4582
4598
  {
4583
- "gap": "lg",
4584
4599
  "direction": "vertical",
4585
4600
  "children": [
4586
4601
  {
4587
4602
  "type": "stack",
4588
- "direction": "horizontal",
4589
- "gap": "md",
4590
- "justify": "between",
4591
4603
  "children": [
4592
4604
  {
4593
- "gap": "md",
4594
4605
  "children": [
4595
4606
  {
4596
- "name": "tag",
4597
- "type": "icon"
4607
+ "type": "icon",
4608
+ "name": "tag"
4598
4609
  },
4599
4610
  {
4600
- "type": "typography",
4601
4611
  "variant": "h2",
4612
+ "type": "typography",
4602
4613
  "content": "StudentAssessment"
4603
4614
  }
4604
4615
  ],
4605
4616
  "direction": "horizontal",
4617
+ "gap": "md",
4606
4618
  "type": "stack"
4607
4619
  },
4608
4620
  {
4609
4621
  "variant": "primary",
4610
- "icon": "tag",
4611
- "type": "button",
4622
+ "label": "Open",
4612
4623
  "action": "CLASSIFY",
4613
- "label": "Open"
4624
+ "type": "button",
4625
+ "icon": "tag"
4614
4626
  }
4615
- ]
4627
+ ],
4628
+ "direction": "horizontal",
4629
+ "gap": "md",
4630
+ "justify": "between"
4616
4631
  },
4617
4632
  {
4618
4633
  "type": "divider"
4619
4634
  },
4620
4635
  {
4621
- "icon": "tag",
4622
4636
  "description": "Click Open to view details in a modal overlay.",
4623
4637
  "title": "Nothing open",
4638
+ "icon": "tag",
4624
4639
  "type": "empty-state"
4625
4640
  }
4626
4641
  ],
4642
+ "gap": "lg",
4627
4643
  "type": "stack"
4628
4644
  }
4629
4645
  ],
4630
- "type": "dashboard-layout",
4631
- "navItems": [
4632
- {
4633
- "href": "/teach",
4634
- "label": "Teach",
4635
- "icon": "book-open"
4636
- },
4637
- {
4638
- "href": "/quiz",
4639
- "label": "Quiz",
4640
- "icon": "help-circle"
4641
- },
4642
- {
4643
- "label": "Concepts",
4644
- "href": "/concepts",
4645
- "icon": "brain"
4646
- }
4647
- ]
4646
+ "appName": "AI Tutor",
4647
+ "type": "dashboard-layout"
4648
4648
  }
4649
4649
  ]
4650
4650
  ]
@@ -4780,10 +4780,12 @@
4780
4780
  "render-ui",
4781
4781
  "main",
4782
4782
  {
4783
+ "appName": "AI Tutor",
4784
+ "type": "dashboard-layout",
4783
4785
  "navItems": [
4784
4786
  {
4785
- "href": "/teach",
4786
4787
  "icon": "book-open",
4788
+ "href": "/teach",
4787
4789
  "label": "Teach"
4788
4790
  },
4789
4791
  {
@@ -4799,23 +4801,19 @@
4799
4801
  ],
4800
4802
  "children": [
4801
4803
  {
4804
+ "direction": "vertical",
4802
4805
  "children": [
4803
4806
  {
4804
- "direction": "horizontal",
4805
- "gap": "md",
4806
- "type": "stack",
4807
- "justify": "between",
4808
- "align": "center",
4809
4807
  "children": [
4810
4808
  {
4811
- "type": "stack",
4812
- "align": "center",
4813
4809
  "gap": "md",
4810
+ "type": "stack",
4814
4811
  "direction": "horizontal",
4812
+ "align": "center",
4815
4813
  "children": [
4816
4814
  {
4817
- "type": "icon",
4818
- "name": "tag"
4815
+ "name": "tag",
4816
+ "type": "icon"
4819
4817
  },
4820
4818
  {
4821
4819
  "content": "StudentAssessment Result",
@@ -4825,13 +4823,18 @@
4825
4823
  ]
4826
4824
  },
4827
4825
  {
4828
- "icon": "x",
4829
4826
  "type": "button",
4830
4827
  "label": "Dismiss",
4828
+ "action": "HIDE",
4831
4829
  "variant": "ghost",
4832
- "action": "HIDE"
4830
+ "icon": "x"
4833
4831
  }
4834
- ]
4832
+ ],
4833
+ "type": "stack",
4834
+ "gap": "md",
4835
+ "justify": "between",
4836
+ "direction": "horizontal",
4837
+ "align": "center"
4835
4838
  },
4836
4839
  {
4837
4840
  "type": "divider"
@@ -4845,18 +4848,15 @@
4845
4848
  "type": "toast-slot"
4846
4849
  },
4847
4850
  {
4851
+ "variant": "warning",
4848
4852
  "message": "@entity.message",
4849
- "type": "alert",
4850
- "variant": "warning"
4853
+ "type": "alert"
4851
4854
  }
4852
4855
  ],
4853
4856
  "type": "stack",
4854
- "gap": "lg",
4855
- "direction": "vertical"
4857
+ "gap": "lg"
4856
4858
  }
4857
- ],
4858
- "type": "dashboard-layout",
4859
- "appName": "AI Tutor"
4859
+ ]
4860
4860
  }
4861
4861
  ]
4862
4862
  ]
@@ -4881,59 +4881,45 @@
4881
4881
  "main",
4882
4882
  {
4883
4883
  "appName": "AI Tutor",
4884
- "navItems": [
4885
- {
4886
- "label": "Teach",
4887
- "href": "/teach",
4888
- "icon": "book-open"
4889
- },
4890
- {
4891
- "icon": "help-circle",
4892
- "label": "Quiz",
4893
- "href": "/quiz"
4894
- },
4895
- {
4896
- "label": "Concepts",
4897
- "href": "/concepts",
4898
- "icon": "brain"
4899
- }
4900
- ],
4901
4884
  "type": "dashboard-layout",
4902
4885
  "children": [
4903
4886
  {
4887
+ "gap": "lg",
4888
+ "direction": "vertical",
4889
+ "type": "stack",
4904
4890
  "children": [
4905
4891
  {
4892
+ "justify": "between",
4893
+ "gap": "md",
4894
+ "direction": "horizontal",
4895
+ "type": "stack",
4906
4896
  "align": "center",
4907
4897
  "children": [
4908
4898
  {
4899
+ "direction": "horizontal",
4900
+ "gap": "md",
4909
4901
  "align": "center",
4902
+ "type": "stack",
4910
4903
  "children": [
4911
4904
  {
4912
- "name": "tag",
4913
- "type": "icon"
4905
+ "type": "icon",
4906
+ "name": "tag"
4914
4907
  },
4915
4908
  {
4909
+ "variant": "h2",
4916
4910
  "type": "typography",
4917
- "content": "StudentAssessment Result",
4918
- "variant": "h2"
4911
+ "content": "StudentAssessment Result"
4919
4912
  }
4920
- ],
4921
- "type": "stack",
4922
- "direction": "horizontal",
4923
- "gap": "md"
4913
+ ]
4924
4914
  },
4925
4915
  {
4926
- "label": "Dismiss",
4927
- "variant": "ghost",
4928
4916
  "action": "HIDE",
4917
+ "label": "Dismiss",
4929
4918
  "type": "button",
4919
+ "variant": "ghost",
4930
4920
  "icon": "x"
4931
4921
  }
4932
- ],
4933
- "gap": "md",
4934
- "type": "stack",
4935
- "direction": "horizontal",
4936
- "justify": "between"
4922
+ ]
4937
4923
  },
4938
4924
  {
4939
4925
  "type": "divider"
@@ -4947,14 +4933,28 @@
4947
4933
  "type": "toast-slot"
4948
4934
  },
4949
4935
  {
4950
- "message": "@entity.message",
4951
4936
  "variant": "warning",
4937
+ "message": "@entity.message",
4952
4938
  "type": "alert"
4953
4939
  }
4954
- ],
4955
- "direction": "vertical",
4956
- "type": "stack",
4957
- "gap": "lg"
4940
+ ]
4941
+ }
4942
+ ],
4943
+ "navItems": [
4944
+ {
4945
+ "label": "Teach",
4946
+ "href": "/teach",
4947
+ "icon": "book-open"
4948
+ },
4949
+ {
4950
+ "label": "Quiz",
4951
+ "icon": "help-circle",
4952
+ "href": "/quiz"
4953
+ },
4954
+ {
4955
+ "label": "Concepts",
4956
+ "icon": "brain",
4957
+ "href": "/concepts"
4958
4958
  }
4959
4959
  ]
4960
4960
  }
@@ -5118,33 +5118,33 @@
5118
5118
  "render-ui",
5119
5119
  "main",
5120
5120
  {
5121
- "children": [
5122
- {
5123
- "description": "Classifier is ready",
5124
- "type": "empty-state",
5125
- "icon": "tag",
5126
- "title": "Classifier"
5127
- }
5128
- ],
5129
- "appName": "AI Tutor",
5130
- "type": "dashboard-layout",
5131
5121
  "navItems": [
5132
5122
  {
5133
- "label": "Teach",
5134
5123
  "icon": "book-open",
5124
+ "label": "Teach",
5135
5125
  "href": "/teach"
5136
5126
  },
5137
5127
  {
5138
- "icon": "help-circle",
5128
+ "href": "/quiz",
5139
5129
  "label": "Quiz",
5140
- "href": "/quiz"
5130
+ "icon": "help-circle"
5141
5131
  },
5142
5132
  {
5143
- "label": "Concepts",
5144
5133
  "href": "/concepts",
5145
- "icon": "brain"
5134
+ "icon": "brain",
5135
+ "label": "Concepts"
5146
5136
  }
5147
- ]
5137
+ ],
5138
+ "appName": "AI Tutor",
5139
+ "children": [
5140
+ {
5141
+ "type": "empty-state",
5142
+ "description": "Classifier is ready",
5143
+ "icon": "tag",
5144
+ "title": "Classifier"
5145
+ }
5146
+ ],
5147
+ "type": "dashboard-layout"
5148
5148
  }
5149
5149
  ]
5150
5150
  ]
@@ -5365,4 +5365,4 @@
5365
5365
  ]
5366
5366
  }
5367
5367
  ]
5368
- }
5368
+ }