@almadar/std 8.3.0 → 8.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/behaviors/registry/agent/atoms/std-agent-activity-log.orb +62 -62
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +101 -101
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +119 -114
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +103 -103
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +413 -404
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +94 -94
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +66 -66
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +146 -141
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +61 -61
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +109 -109
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +196 -196
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +347 -347
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +61 -60
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +187 -187
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +180 -180
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +108 -108
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +107 -107
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +184 -184
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1130 -1130
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +2998 -2998
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2135 -2135
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1033 -1033
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +784 -784
  24. package/behaviors/registry/app/organisms/std-api-gateway.orb +798 -798
  25. package/behaviors/registry/app/organisms/std-booking-system.orb +1139 -1139
  26. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +776 -776
  27. package/behaviors/registry/app/organisms/std-cms.orb +469 -469
  28. package/behaviors/registry/app/organisms/std-coding-academy.orb +338 -338
  29. package/behaviors/registry/app/organisms/std-crm.orb +832 -832
  30. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1350 -1350
  31. package/behaviors/registry/app/organisms/std-ecommerce.orb +975 -975
  32. package/behaviors/registry/app/organisms/std-finance-tracker.orb +573 -573
  33. package/behaviors/registry/app/organisms/std-healthcare.orb +1370 -1370
  34. package/behaviors/registry/app/organisms/std-helpdesk.orb +617 -617
  35. package/behaviors/registry/app/organisms/std-hr-portal.orb +1177 -1177
  36. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +871 -871
  37. package/behaviors/registry/app/organisms/std-lms.orb +839 -839
  38. package/behaviors/registry/app/organisms/std-project-manager.orb +667 -667
  39. package/behaviors/registry/app/organisms/std-realtime-chat.orb +667 -667
  40. package/behaviors/registry/app/organisms/std-social-feed.orb +230 -230
  41. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +682 -682
  42. package/behaviors/registry/core/atoms/std-browse.orb +53 -53
  43. package/behaviors/registry/core/atoms/std-cache-aside.orb +89 -89
  44. package/behaviors/registry/core/atoms/std-calendar.orb +57 -57
  45. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +196 -196
  46. package/behaviors/registry/core/atoms/std-confirmation.orb +19 -19
  47. package/behaviors/registry/core/atoms/std-display.orb +383 -383
  48. package/behaviors/registry/core/atoms/std-drawer.orb +56 -56
  49. package/behaviors/registry/core/atoms/std-filter.orb +42 -42
  50. package/behaviors/registry/core/atoms/std-gallery.orb +54 -54
  51. package/behaviors/registry/core/atoms/std-modal.orb +12 -12
  52. package/behaviors/registry/core/atoms/std-pagination.orb +42 -42
  53. package/behaviors/registry/core/atoms/std-push.orb +42 -42
  54. package/behaviors/registry/core/atoms/std-rate-limiter.orb +179 -179
  55. package/behaviors/registry/core/atoms/std-related.orb +34 -34
  56. package/behaviors/registry/core/atoms/std-search.orb +68 -68
  57. package/behaviors/registry/core/atoms/std-selection.orb +90 -90
  58. package/behaviors/registry/core/atoms/std-tabs.orb +52 -52
  59. package/behaviors/registry/core/molecules/std-cart.orb +45 -45
  60. package/behaviors/registry/core/molecules/std-filtered-list.orb +7 -7
  61. package/behaviors/registry/core/molecules/std-form-advanced.orb +127 -127
  62. package/behaviors/registry/core/molecules/std-list.orb +46 -46
  63. package/behaviors/registry/core/molecules/std-wizard-form.orb +147 -147
  64. package/behaviors/registry/game/atoms/std-collision.orb +121 -121
  65. package/behaviors/registry/game/atoms/std-combat.orb +68 -68
  66. package/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  67. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +48 -48
  68. package/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
  69. package/behaviors/registry/game/atoms/std-movement.orb +306 -306
  70. package/behaviors/registry/game/atoms/std-overworld.orb +68 -68
  71. package/behaviors/registry/game/atoms/std-physics2d.orb +76 -76
  72. package/behaviors/registry/game/atoms/std-quest.orb +124 -124
  73. package/behaviors/registry/game/atoms/std-timer.orb +274 -274
  74. package/behaviors/registry/game/organisms/std-arcade-game.orb +145 -145
  75. package/behaviors/registry/game/organisms/std-logic-training.orb +67 -67
  76. package/behaviors/registry/game/organisms/std-platformer-app.orb +218 -218
  77. package/behaviors/registry/game/organisms/std-puzzle-app.orb +90 -90
  78. package/behaviors/registry/game/organisms/std-rpg-game.orb +372 -372
  79. package/behaviors/registry/game/organisms/std-stem-lab.orb +345 -345
  80. package/behaviors/registry/game/organisms/std-strategy-game.orb +540 -540
  81. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +14 -14
  82. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +86 -86
  83. package/behaviors/registry/service/atoms/std-service-email.orb +72 -72
  84. package/behaviors/registry/service/atoms/std-service-github.orb +98 -98
  85. package/behaviors/registry/service/atoms/std-service-llm.orb +118 -118
  86. package/behaviors/registry/service/atoms/std-service-oauth.orb +118 -118
  87. package/behaviors/registry/service/atoms/std-service-redis.orb +103 -103
  88. package/behaviors/registry/service/atoms/std-service-storage.orb +105 -105
  89. package/behaviors/registry/service/atoms/std-service-stripe.orb +95 -95
  90. package/behaviors/registry/service/atoms/std-service-twilio.orb +107 -107
  91. package/behaviors/registry/service/atoms/std-service-youtube.orb +104 -104
  92. package/behaviors/registry/service/organisms/std-service-marketplace.orb +966 -966
  93. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +905 -905
  94. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +62 -62
  95. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +101 -101
  96. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +119 -114
  97. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +103 -103
  98. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +413 -404
  99. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +94 -94
  100. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +66 -66
  101. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +146 -141
  102. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +61 -61
  103. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +109 -109
  104. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +196 -196
  105. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +347 -347
  106. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +61 -60
  107. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +187 -187
  108. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +180 -180
  109. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +108 -108
  110. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +107 -107
  111. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +184 -184
  112. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1130 -1130
  113. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +2998 -2998
  114. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2135 -2135
  115. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1033 -1033
  116. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +784 -784
  117. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +798 -798
  118. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1139 -1139
  119. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +776 -776
  120. package/dist/behaviors/registry/app/organisms/std-cms.orb +469 -469
  121. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +338 -338
  122. package/dist/behaviors/registry/app/organisms/std-crm.orb +832 -832
  123. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1350 -1350
  124. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +975 -975
  125. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +573 -573
  126. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1370 -1370
  127. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +617 -617
  128. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1177 -1177
  129. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +871 -871
  130. package/dist/behaviors/registry/app/organisms/std-lms.orb +839 -839
  131. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +667 -667
  132. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +667 -667
  133. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +230 -230
  134. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +682 -682
  135. package/dist/behaviors/registry/core/atoms/std-browse.orb +53 -53
  136. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +89 -89
  137. package/dist/behaviors/registry/core/atoms/std-calendar.orb +57 -57
  138. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +196 -196
  139. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +19 -19
  140. package/dist/behaviors/registry/core/atoms/std-display.orb +383 -383
  141. package/dist/behaviors/registry/core/atoms/std-drawer.orb +56 -56
  142. package/dist/behaviors/registry/core/atoms/std-filter.orb +42 -42
  143. package/dist/behaviors/registry/core/atoms/std-gallery.orb +54 -54
  144. package/dist/behaviors/registry/core/atoms/std-modal.orb +12 -12
  145. package/dist/behaviors/registry/core/atoms/std-pagination.orb +42 -42
  146. package/dist/behaviors/registry/core/atoms/std-push.orb +42 -42
  147. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +179 -179
  148. package/dist/behaviors/registry/core/atoms/std-related.orb +34 -34
  149. package/dist/behaviors/registry/core/atoms/std-search.orb +68 -68
  150. package/dist/behaviors/registry/core/atoms/std-selection.orb +90 -90
  151. package/dist/behaviors/registry/core/atoms/std-tabs.orb +52 -52
  152. package/dist/behaviors/registry/core/molecules/std-cart.orb +45 -45
  153. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +7 -7
  154. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +127 -127
  155. package/dist/behaviors/registry/core/molecules/std-list.orb +46 -46
  156. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +147 -147
  157. package/dist/behaviors/registry/game/atoms/std-collision.orb +121 -121
  158. package/dist/behaviors/registry/game/atoms/std-combat.orb +68 -68
  159. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
  160. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +48 -48
  161. package/dist/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
  162. package/dist/behaviors/registry/game/atoms/std-movement.orb +306 -306
  163. package/dist/behaviors/registry/game/atoms/std-overworld.orb +68 -68
  164. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +76 -76
  165. package/dist/behaviors/registry/game/atoms/std-quest.orb +124 -124
  166. package/dist/behaviors/registry/game/atoms/std-timer.orb +274 -274
  167. package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +145 -145
  168. package/dist/behaviors/registry/game/organisms/std-logic-training.orb +67 -67
  169. package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +218 -218
  170. package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +90 -90
  171. package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +372 -372
  172. package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +345 -345
  173. package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +540 -540
  174. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +14 -14
  175. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +86 -86
  176. package/dist/behaviors/registry/service/atoms/std-service-email.orb +72 -72
  177. package/dist/behaviors/registry/service/atoms/std-service-github.orb +98 -98
  178. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +118 -118
  179. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +118 -118
  180. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +103 -103
  181. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +105 -105
  182. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +95 -95
  183. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +107 -107
  184. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +104 -104
  185. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +966 -966
  186. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +905 -905
  187. package/package.json +1 -1
@@ -554,8 +554,8 @@
554
554
  "Contact",
555
555
  {
556
556
  "emit": {
557
- "success": "ContactLoaded",
558
- "failure": "ContactLoadFailed"
557
+ "failure": "ContactLoadFailed",
558
+ "success": "ContactLoaded"
559
559
  }
560
560
  }
561
561
  ],
@@ -563,22 +563,22 @@
563
563
  "render-ui",
564
564
  "main",
565
565
  {
566
- "align": "center",
567
- "className": "py-12",
568
566
  "direction": "vertical",
567
+ "gap": "md",
569
568
  "children": [
570
569
  {
571
570
  "type": "spinner"
572
571
  },
573
572
  {
574
- "color": "muted",
575
- "variant": "caption",
576
573
  "content": "Loading…",
577
- "type": "typography"
574
+ "type": "typography",
575
+ "variant": "caption",
576
+ "color": "muted"
578
577
  }
579
578
  ],
579
+ "className": "py-12",
580
580
  "type": "stack",
581
- "gap": "md"
581
+ "align": "center"
582
582
  }
583
583
  ]
584
584
  ]
@@ -592,145 +592,145 @@
592
592
  "render-ui",
593
593
  "main",
594
594
  {
595
- "type": "dashboard-layout",
596
- "appName": "CRM",
597
- "navItems": [
598
- {
599
- "icon": "users",
600
- "label": "Contacts",
601
- "href": "/contacts"
602
- },
603
- {
604
- "href": "/deals",
605
- "icon": "briefcase",
606
- "label": "Deals"
607
- },
608
- {
609
- "href": "/pipeline",
610
- "icon": "bar-chart-2",
611
- "label": "Pipeline"
612
- },
613
- {
614
- "icon": "file-text",
615
- "href": "/notes",
616
- "label": "Notes"
617
- }
618
- ],
619
595
  "children": [
620
596
  {
597
+ "type": "stack",
621
598
  "direction": "vertical",
599
+ "className": "max-w-5xl mx-auto w-full",
600
+ "gap": "lg",
622
601
  "children": [
623
602
  {
603
+ "gap": "md",
604
+ "type": "stack",
605
+ "direction": "horizontal",
606
+ "justify": "between",
607
+ "align": "center",
624
608
  "children": [
625
609
  {
626
610
  "gap": "sm",
627
- "align": "center",
628
611
  "type": "stack",
629
- "direction": "horizontal",
612
+ "align": "center",
630
613
  "children": [
631
614
  {
632
- "type": "icon",
633
- "name": "users"
615
+ "name": "users",
616
+ "type": "icon"
634
617
  },
635
618
  {
619
+ "type": "typography",
636
620
  "variant": "h2",
637
- "content": "Contacts",
638
- "type": "typography"
621
+ "content": "Contacts"
639
622
  }
640
- ]
623
+ ],
624
+ "direction": "horizontal"
641
625
  },
642
626
  {
627
+ "gap": "sm",
643
628
  "type": "stack",
644
629
  "direction": "horizontal",
645
- "gap": "sm",
646
630
  "children": [
647
631
  {
632
+ "variant": "primary",
633
+ "type": "button",
648
634
  "action": "CREATE",
649
635
  "label": "Add Contact",
650
- "type": "button",
651
- "variant": "primary",
652
636
  "icon": "plus"
653
637
  }
654
638
  ]
655
639
  }
656
- ],
657
- "align": "center",
658
- "type": "stack",
659
- "justify": "between",
660
- "gap": "md",
661
- "direction": "horizontal"
640
+ ]
662
641
  },
663
642
  {
664
643
  "type": "divider"
665
644
  },
666
645
  {
646
+ "cols": 1.0,
647
+ "type": "simple-grid",
667
648
  "children": [
668
649
  {
669
- "icon": "users",
670
- "type": "stat-display",
671
650
  "label": "Total Contacts",
672
- "value": "@entity"
651
+ "type": "stat-display",
652
+ "value": "@entity",
653
+ "icon": "users"
673
654
  }
674
- ],
675
- "cols": 1.0,
676
- "type": "simple-grid"
655
+ ]
677
656
  },
678
657
  {
679
658
  "type": "divider"
680
659
  },
681
660
  {
661
+ "entity": "@payload.data",
662
+ "type": "data-list",
663
+ "itemActions": [
664
+ {
665
+ "variant": "ghost",
666
+ "label": "View",
667
+ "event": "VIEW"
668
+ },
669
+ {
670
+ "event": "EDIT",
671
+ "label": "Edit",
672
+ "variant": "ghost"
673
+ },
674
+ {
675
+ "variant": "danger",
676
+ "event": "DELETE",
677
+ "label": "Delete"
678
+ }
679
+ ],
682
680
  "columns": [
683
681
  {
684
682
  "name": "name",
685
- "variant": "h3",
686
- "icon": "user"
683
+ "icon": "user",
684
+ "variant": "h3"
687
685
  },
688
686
  {
689
687
  "name": "status",
690
688
  "variant": "badge"
691
689
  },
692
690
  {
693
- "variant": "body",
694
- "name": "company"
691
+ "name": "company",
692
+ "variant": "body"
695
693
  },
696
694
  {
697
- "variant": "caption",
698
- "name": "email"
695
+ "name": "email",
696
+ "variant": "caption"
699
697
  },
700
698
  {
701
699
  "variant": "caption",
702
700
  "name": "phone"
703
701
  }
704
702
  ],
705
- "fields": [],
706
- "itemActions": [
707
- {
708
- "variant": "ghost",
709
- "label": "View",
710
- "event": "VIEW"
711
- },
712
- {
713
- "label": "Edit",
714
- "event": "EDIT",
715
- "variant": "ghost"
716
- },
717
- {
718
- "label": "Delete",
719
- "event": "DELETE",
720
- "variant": "danger"
721
- }
722
- ],
723
- "type": "data-list",
724
703
  "variant": "card",
725
704
  "gap": "sm",
726
- "entity": "@payload.data"
705
+ "fields": []
727
706
  }
728
- ],
729
- "type": "stack",
730
- "className": "max-w-5xl mx-auto w-full",
731
- "gap": "lg"
707
+ ]
732
708
  }
733
- ]
709
+ ],
710
+ "type": "dashboard-layout",
711
+ "navItems": [
712
+ {
713
+ "label": "Contacts",
714
+ "href": "/contacts",
715
+ "icon": "users"
716
+ },
717
+ {
718
+ "href": "/deals",
719
+ "label": "Deals",
720
+ "icon": "briefcase"
721
+ },
722
+ {
723
+ "href": "/pipeline",
724
+ "label": "Pipeline",
725
+ "icon": "bar-chart-2"
726
+ },
727
+ {
728
+ "icon": "file-text",
729
+ "label": "Notes",
730
+ "href": "/notes"
731
+ }
732
+ ],
733
+ "appName": "CRM"
734
734
  }
735
735
  ]
736
736
  ]
@@ -745,35 +745,35 @@
745
745
  "main",
746
746
  {
747
747
  "gap": "md",
748
+ "type": "stack",
749
+ "align": "center",
748
750
  "className": "py-12",
751
+ "direction": "vertical",
749
752
  "children": [
750
753
  {
754
+ "type": "icon",
751
755
  "name": "alert-triangle",
752
- "color": "destructive",
753
- "type": "icon"
756
+ "color": "destructive"
754
757
  },
755
758
  {
756
- "variant": "h3",
757
759
  "type": "typography",
760
+ "variant": "h3",
758
761
  "content": "Failed to load contact"
759
762
  },
760
763
  {
761
- "content": "@payload.error",
762
764
  "type": "typography",
763
- "variant": "body",
764
- "color": "muted"
765
+ "content": "@payload.error",
766
+ "color": "muted",
767
+ "variant": "body"
765
768
  },
766
769
  {
767
- "label": "Retry",
768
- "variant": "primary",
770
+ "type": "button",
769
771
  "action": "INIT",
770
- "icon": "rotate-ccw",
771
- "type": "button"
772
+ "variant": "primary",
773
+ "label": "Retry",
774
+ "icon": "rotate-ccw"
772
775
  }
773
- ],
774
- "align": "center",
775
- "type": "stack",
776
- "direction": "vertical"
776
+ ]
777
777
  }
778
778
  ]
779
779
  ]
@@ -957,8 +957,8 @@
957
957
  "Contact",
958
958
  {
959
959
  "emit": {
960
- "failure": "ContactLoadFailed",
961
- "success": "ContactLoaded"
960
+ "success": "ContactLoaded",
961
+ "failure": "ContactLoadFailed"
962
962
  }
963
963
  }
964
964
  ],
@@ -966,12 +966,10 @@
966
966
  "render-ui",
967
967
  "modal",
968
968
  {
969
- "type": "stack",
970
969
  "direction": "vertical",
970
+ "gap": "md",
971
971
  "children": [
972
972
  {
973
- "type": "stack",
974
- "direction": "horizontal",
975
973
  "gap": "sm",
976
974
  "children": [
977
975
  {
@@ -979,18 +977,18 @@
979
977
  "name": "plus-circle"
980
978
  },
981
979
  {
982
- "content": "New Contact",
980
+ "type": "typography",
983
981
  "variant": "h3",
984
- "type": "typography"
982
+ "content": "New Contact"
985
983
  }
986
- ]
984
+ ],
985
+ "type": "stack",
986
+ "direction": "horizontal"
987
987
  },
988
988
  {
989
989
  "type": "divider"
990
990
  },
991
991
  {
992
- "cancelEvent": "CLOSE",
993
- "submitEvent": "SAVE",
994
992
  "fields": [
995
993
  "name",
996
994
  "company",
@@ -998,11 +996,13 @@
998
996
  "phone",
999
997
  "status"
1000
998
  ],
999
+ "submitEvent": "SAVE",
1000
+ "cancelEvent": "CLOSE",
1001
1001
  "type": "form-section",
1002
1002
  "mode": "create"
1003
1003
  }
1004
1004
  ],
1005
- "gap": "md"
1005
+ "type": "stack"
1006
1006
  }
1007
1007
  ]
1008
1008
  ]
@@ -1255,11 +1255,11 @@
1255
1255
  "fetch",
1256
1256
  "Contact",
1257
1257
  {
1258
+ "id": "@payload.id",
1258
1259
  "emit": {
1259
1260
  "success": "ContactLoaded",
1260
1261
  "failure": "ContactLoadFailed"
1261
- },
1262
- "id": "@payload.id"
1262
+ }
1263
1263
  }
1264
1264
  ],
1265
1265
  [
@@ -1270,19 +1270,19 @@
1270
1270
  "children": [
1271
1271
  {
1272
1272
  "direction": "horizontal",
1273
- "gap": "sm",
1274
1273
  "children": [
1275
1274
  {
1276
- "type": "icon",
1277
- "name": "edit"
1275
+ "name": "edit",
1276
+ "type": "icon"
1278
1277
  },
1279
1278
  {
1280
1279
  "content": "Edit Contact",
1281
- "variant": "h3",
1282
- "type": "typography"
1280
+ "type": "typography",
1281
+ "variant": "h3"
1283
1282
  }
1284
1283
  ],
1285
- "type": "stack"
1284
+ "type": "stack",
1285
+ "gap": "sm"
1286
1286
  },
1287
1287
  {
1288
1288
  "type": "divider"
@@ -1290,9 +1290,9 @@
1290
1290
  {
1291
1291
  "mode": "edit",
1292
1292
  "submitEvent": "SAVE",
1293
+ "type": "form-section",
1293
1294
  "cancelEvent": "CLOSE",
1294
1295
  "entity": "@payload.row",
1295
- "type": "form-section",
1296
1296
  "fields": [
1297
1297
  "name",
1298
1298
  "company",
@@ -1302,8 +1302,8 @@
1302
1302
  ]
1303
1303
  }
1304
1304
  ],
1305
- "type": "stack",
1306
- "gap": "md"
1305
+ "gap": "md",
1306
+ "type": "stack"
1307
1307
  }
1308
1308
  ]
1309
1309
  ]
@@ -1344,8 +1344,8 @@
1344
1344
  "@payload.data",
1345
1345
  {
1346
1346
  "emit": {
1347
- "success": "ContactUpdated",
1348
- "failure": "ContactUpdateFailed"
1347
+ "failure": "ContactUpdateFailed",
1348
+ "success": "ContactUpdated"
1349
1349
  }
1350
1350
  }
1351
1351
  ],
@@ -1490,11 +1490,11 @@
1490
1490
  "fetch",
1491
1491
  "Contact",
1492
1492
  {
1493
- "id": "@payload.id",
1494
1493
  "emit": {
1495
1494
  "success": "ContactLoaded",
1496
1495
  "failure": "ContactLoadFailed"
1497
- }
1496
+ },
1497
+ "id": "@payload.id"
1498
1498
  }
1499
1499
  ],
1500
1500
  [
@@ -1502,64 +1502,63 @@
1502
1502
  "modal",
1503
1503
  {
1504
1504
  "gap": "md",
1505
- "type": "stack",
1506
1505
  "children": [
1507
1506
  {
1508
- "gap": "sm",
1509
1507
  "align": "center",
1510
1508
  "direction": "horizontal",
1509
+ "gap": "sm",
1510
+ "type": "stack",
1511
1511
  "children": [
1512
1512
  {
1513
- "type": "icon",
1514
- "name": "eye"
1513
+ "name": "eye",
1514
+ "type": "icon"
1515
1515
  },
1516
1516
  {
1517
1517
  "content": "@entity.name",
1518
- "variant": "h3",
1519
- "type": "typography"
1518
+ "type": "typography",
1519
+ "variant": "h3"
1520
1520
  }
1521
- ],
1522
- "type": "stack"
1521
+ ]
1523
1522
  },
1524
1523
  {
1525
1524
  "type": "divider"
1526
1525
  },
1527
1526
  {
1527
+ "direction": "horizontal",
1528
1528
  "children": [
1529
1529
  {
1530
+ "content": "Name",
1530
1531
  "variant": "caption",
1531
- "type": "typography",
1532
- "content": "Name"
1532
+ "type": "typography"
1533
1533
  },
1534
1534
  {
1535
- "content": "@entity.name",
1536
1535
  "type": "typography",
1537
- "variant": "body"
1536
+ "variant": "body",
1537
+ "content": "@entity.name"
1538
1538
  }
1539
1539
  ],
1540
- "direction": "horizontal",
1541
- "gap": "md",
1542
- "type": "stack"
1540
+ "type": "stack",
1541
+ "gap": "md"
1543
1542
  },
1544
1543
  {
1545
1544
  "children": [
1546
1545
  {
1547
1546
  "content": "Company",
1548
- "variant": "caption",
1549
- "type": "typography"
1547
+ "type": "typography",
1548
+ "variant": "caption"
1550
1549
  },
1551
1550
  {
1552
- "type": "typography",
1553
1551
  "content": "@entity.company",
1554
- "variant": "body"
1552
+ "variant": "body",
1553
+ "type": "typography"
1555
1554
  }
1556
1555
  ],
1557
- "type": "stack",
1556
+ "direction": "horizontal",
1558
1557
  "gap": "md",
1559
- "direction": "horizontal"
1558
+ "type": "stack"
1560
1559
  },
1561
1560
  {
1562
- "direction": "horizontal",
1561
+ "gap": "md",
1563
1562
  "children": [
1564
1563
  {
1565
1564
  "type": "typography",
@@ -1567,13 +1566,13 @@
1567
1566
  "content": "Email"
1568
1567
  },
1569
1568
  {
1570
- "content": "@entity.email",
1571
1569
  "variant": "body",
1570
+ "content": "@entity.email",
1572
1571
  "type": "typography"
1573
1572
  }
1574
1573
  ],
1575
1574
  "type": "stack",
1576
- "gap": "md"
1575
+ "direction": "horizontal"
1577
1576
  },
1578
1577
  {
1579
1578
  "type": "stack",
@@ -1586,54 +1585,55 @@
1586
1585
  "variant": "caption"
1587
1586
  },
1588
1587
  {
1589
- "type": "typography",
1590
1588
  "variant": "body",
1591
- "content": "@entity.phone"
1589
+ "content": "@entity.phone",
1590
+ "type": "typography"
1592
1591
  }
1593
1592
  ]
1594
1593
  },
1595
1594
  {
1596
- "type": "stack",
1597
- "direction": "horizontal",
1595
+ "gap": "md",
1598
1596
  "children": [
1599
1597
  {
1600
1598
  "type": "typography",
1601
- "variant": "caption",
1602
- "content": "Status"
1599
+ "content": "Status",
1600
+ "variant": "caption"
1603
1601
  },
1604
1602
  {
1605
- "variant": "body",
1606
1603
  "type": "typography",
1604
+ "variant": "body",
1607
1605
  "content": "@entity.status"
1608
1606
  }
1609
1607
  ],
1610
- "gap": "md"
1608
+ "type": "stack",
1609
+ "direction": "horizontal"
1611
1610
  },
1612
1611
  {
1613
1612
  "type": "divider"
1614
1613
  },
1615
1614
  {
1616
- "justify": "end",
1617
1615
  "direction": "horizontal",
1616
+ "type": "stack",
1617
+ "gap": "sm",
1618
+ "justify": "end",
1618
1619
  "children": [
1619
1620
  {
1621
+ "variant": "primary",
1620
1622
  "action": "EDIT",
1621
1623
  "type": "button",
1622
- "variant": "primary",
1623
1624
  "icon": "edit",
1624
1625
  "label": "Edit"
1625
1626
  },
1626
1627
  {
1627
- "action": "CLOSE",
1628
- "type": "button",
1629
1628
  "label": "Close",
1630
- "variant": "ghost"
1629
+ "variant": "ghost",
1630
+ "type": "button",
1631
+ "action": "CLOSE"
1631
1632
  }
1632
- ],
1633
- "gap": "sm",
1634
- "type": "stack"
1633
+ ]
1635
1634
  }
1636
1635
  ],
1636
+ "type": "stack",
1637
1637
  "direction": "vertical"
1638
1638
  }
1639
1639
  ]
@@ -1869,53 +1869,53 @@
1869
1869
  "fetch",
1870
1870
  "Contact",
1871
1871
  {
1872
+ "id": "@payload.id",
1872
1873
  "emit": {
1873
1874
  "success": "ContactLoaded",
1874
1875
  "failure": "ContactLoadFailed"
1875
- },
1876
- "id": "@payload.id"
1876
+ }
1877
1877
  }
1878
1878
  ],
1879
1879
  [
1880
1880
  "render-ui",
1881
1881
  "modal",
1882
1882
  {
1883
- "gap": "md",
1884
- "direction": "vertical",
1883
+ "type": "stack",
1885
1884
  "children": [
1886
1885
  {
1886
+ "direction": "horizontal",
1887
+ "gap": "sm",
1888
+ "align": "center",
1889
+ "type": "stack",
1887
1890
  "children": [
1888
1891
  {
1889
- "name": "alert-triangle",
1890
- "type": "icon"
1892
+ "type": "icon",
1893
+ "name": "alert-triangle"
1891
1894
  },
1892
1895
  {
1893
1896
  "variant": "h3",
1894
- "content": "Delete Contact",
1895
- "type": "typography"
1897
+ "type": "typography",
1898
+ "content": "Delete Contact"
1896
1899
  }
1897
- ],
1898
- "direction": "horizontal",
1899
- "type": "stack",
1900
- "gap": "sm",
1901
- "align": "center"
1900
+ ]
1902
1901
  },
1903
1902
  {
1904
1903
  "type": "divider"
1905
1904
  },
1906
1905
  {
1907
- "message": "This action cannot be undone.",
1906
+ "type": "alert",
1908
1907
  "variant": "error",
1909
- "type": "alert"
1908
+ "message": "This action cannot be undone."
1910
1909
  },
1911
1910
  {
1912
1911
  "direction": "horizontal",
1913
1912
  "type": "stack",
1914
1913
  "gap": "sm",
1914
+ "justify": "end",
1915
1915
  "children": [
1916
1916
  {
1917
- "action": "CANCEL",
1918
1917
  "label": "Cancel",
1918
+ "action": "CANCEL",
1919
1919
  "variant": "ghost",
1920
1920
  "type": "button"
1921
1921
  },
@@ -1926,11 +1926,11 @@
1926
1926
  "label": "Delete",
1927
1927
  "action": "CONFIRM_DELETE"
1928
1928
  }
1929
- ],
1930
- "justify": "end"
1929
+ ]
1931
1930
  }
1932
1931
  ],
1933
- "type": "stack"
1932
+ "direction": "vertical",
1933
+ "gap": "md"
1934
1934
  }
1935
1935
  ]
1936
1936
  ]
@@ -1947,8 +1947,8 @@
1947
1947
  "@entity.pendingId",
1948
1948
  {
1949
1949
  "emit": {
1950
- "success": "ContactDeleted",
1951
- "failure": "ContactDeleteFailed"
1950
+ "failure": "ContactDeleteFailed",
1951
+ "success": "ContactDeleted"
1952
1952
  }
1953
1953
  }
1954
1954
  ],
@@ -2215,8 +2215,8 @@
2215
2215
  "Deal",
2216
2216
  {
2217
2217
  "emit": {
2218
- "failure": "DealLoadFailed",
2219
- "success": "DealLoaded"
2218
+ "success": "DealLoaded",
2219
+ "failure": "DealLoadFailed"
2220
2220
  }
2221
2221
  }
2222
2222
  ],
@@ -2224,22 +2224,22 @@
2224
2224
  "render-ui",
2225
2225
  "main",
2226
2226
  {
2227
- "direction": "vertical",
2228
- "align": "center",
2229
2227
  "gap": "md",
2228
+ "align": "center",
2230
2229
  "type": "stack",
2231
- "className": "py-12",
2232
2230
  "children": [
2233
2231
  {
2234
2232
  "type": "spinner"
2235
2233
  },
2236
2234
  {
2237
- "color": "muted",
2238
- "content": "Loading…",
2235
+ "variant": "caption",
2239
2236
  "type": "typography",
2240
- "variant": "caption"
2237
+ "color": "muted",
2238
+ "content": "Loading…"
2241
2239
  }
2242
- ]
2240
+ ],
2241
+ "direction": "vertical",
2242
+ "className": "py-12"
2243
2243
  }
2244
2244
  ]
2245
2245
  ]
@@ -2253,85 +2253,109 @@
2253
2253
  "render-ui",
2254
2254
  "main",
2255
2255
  {
2256
+ "navItems": [
2257
+ {
2258
+ "icon": "users",
2259
+ "label": "Contacts",
2260
+ "href": "/contacts"
2261
+ },
2262
+ {
2263
+ "icon": "briefcase",
2264
+ "label": "Deals",
2265
+ "href": "/deals"
2266
+ },
2267
+ {
2268
+ "icon": "bar-chart-2",
2269
+ "label": "Pipeline",
2270
+ "href": "/pipeline"
2271
+ },
2272
+ {
2273
+ "href": "/notes",
2274
+ "icon": "file-text",
2275
+ "label": "Notes"
2276
+ }
2277
+ ],
2256
2278
  "appName": "CRM",
2279
+ "type": "dashboard-layout",
2257
2280
  "children": [
2258
2281
  {
2259
2282
  "children": [
2260
2283
  {
2261
- "gap": "md",
2284
+ "direction": "horizontal",
2285
+ "type": "stack",
2262
2286
  "justify": "between",
2263
2287
  "align": "center",
2264
- "direction": "horizontal",
2265
2288
  "children": [
2266
2289
  {
2267
- "type": "stack",
2268
- "gap": "sm",
2269
2290
  "direction": "horizontal",
2291
+ "type": "stack",
2270
2292
  "align": "center",
2293
+ "gap": "sm",
2271
2294
  "children": [
2272
2295
  {
2273
2296
  "name": "briefcase",
2274
2297
  "type": "icon"
2275
2298
  },
2276
2299
  {
2277
- "content": "Deals",
2300
+ "variant": "h2",
2278
2301
  "type": "typography",
2279
- "variant": "h2"
2302
+ "content": "Deals"
2280
2303
  }
2281
2304
  ]
2282
2305
  },
2283
2306
  {
2307
+ "type": "stack",
2308
+ "gap": "sm",
2284
2309
  "children": [
2285
2310
  {
2286
- "type": "button",
2287
- "action": "CREATE",
2288
- "icon": "plus",
2289
2311
  "label": "New Deal",
2290
- "variant": "primary"
2312
+ "action": "CREATE",
2313
+ "type": "button",
2314
+ "variant": "primary",
2315
+ "icon": "plus"
2291
2316
  }
2292
2317
  ],
2293
- "gap": "sm",
2294
- "type": "stack",
2295
2318
  "direction": "horizontal"
2296
2319
  }
2297
2320
  ],
2298
- "type": "stack"
2321
+ "gap": "md"
2299
2322
  },
2300
2323
  {
2301
2324
  "type": "divider"
2302
2325
  },
2303
2326
  {
2327
+ "type": "data-grid",
2304
2328
  "itemActions": [
2305
2329
  {
2306
- "label": "View",
2330
+ "variant": "ghost",
2307
2331
  "event": "VIEW",
2308
- "variant": "ghost"
2332
+ "label": "View"
2309
2333
  },
2310
2334
  {
2311
- "variant": "ghost",
2312
2335
  "event": "EDIT",
2336
+ "variant": "ghost",
2313
2337
  "label": "Edit"
2314
2338
  },
2315
2339
  {
2316
- "variant": "danger",
2340
+ "label": "Delete",
2317
2341
  "event": "DELETE",
2318
- "label": "Delete"
2342
+ "variant": "danger"
2319
2343
  }
2320
2344
  ],
2321
2345
  "columns": [
2322
2346
  {
2323
- "name": "title",
2347
+ "icon": "briefcase",
2324
2348
  "variant": "h3",
2325
- "icon": "briefcase"
2349
+ "name": "title"
2326
2350
  },
2327
2351
  {
2328
- "name": "stage",
2329
- "variant": "badge"
2352
+ "variant": "badge",
2353
+ "name": "stage"
2330
2354
  },
2331
2355
  {
2332
2356
  "format": "currency",
2333
- "variant": "h4",
2334
- "name": "value"
2357
+ "name": "value",
2358
+ "variant": "h4"
2335
2359
  },
2336
2360
  {
2337
2361
  "label": "Contact",
@@ -2340,40 +2364,16 @@
2340
2364
  }
2341
2365
  ],
2342
2366
  "gap": "md",
2367
+ "cols": 2.0,
2343
2368
  "entity": "@payload.data",
2344
- "type": "data-grid",
2345
- "fields": [],
2346
- "cols": 2.0
2369
+ "fields": []
2347
2370
  }
2348
2371
  ],
2349
- "direction": "vertical",
2350
2372
  "type": "stack",
2351
2373
  "className": "max-w-5xl mx-auto w-full",
2374
+ "direction": "vertical",
2352
2375
  "gap": "lg"
2353
2376
  }
2354
- ],
2355
- "type": "dashboard-layout",
2356
- "navItems": [
2357
- {
2358
- "icon": "users",
2359
- "label": "Contacts",
2360
- "href": "/contacts"
2361
- },
2362
- {
2363
- "href": "/deals",
2364
- "label": "Deals",
2365
- "icon": "briefcase"
2366
- },
2367
- {
2368
- "href": "/pipeline",
2369
- "label": "Pipeline",
2370
- "icon": "bar-chart-2"
2371
- },
2372
- {
2373
- "icon": "file-text",
2374
- "label": "Notes",
2375
- "href": "/notes"
2376
- }
2377
2377
  ]
2378
2378
  }
2379
2379
  ]
@@ -2388,6 +2388,7 @@
2388
2388
  "render-ui",
2389
2389
  "main",
2390
2390
  {
2391
+ "align": "center",
2391
2392
  "children": [
2392
2393
  {
2393
2394
  "name": "alert-triangle",
@@ -2400,24 +2401,23 @@
2400
2401
  "content": "Failed to load deal"
2401
2402
  },
2402
2403
  {
2403
- "color": "muted",
2404
- "content": "@payload.error",
2405
2404
  "type": "typography",
2406
- "variant": "body"
2405
+ "color": "muted",
2406
+ "variant": "body",
2407
+ "content": "@payload.error"
2407
2408
  },
2408
2409
  {
2409
- "label": "Retry",
2410
+ "action": "INIT",
2410
2411
  "icon": "rotate-ccw",
2412
+ "label": "Retry",
2411
2413
  "variant": "primary",
2412
- "type": "button",
2413
- "action": "INIT"
2414
+ "type": "button"
2414
2415
  }
2415
2416
  ],
2416
- "direction": "vertical",
2417
- "align": "center",
2417
+ "gap": "md",
2418
2418
  "type": "stack",
2419
2419
  "className": "py-12",
2420
- "gap": "md"
2420
+ "direction": "vertical"
2421
2421
  }
2422
2422
  ]
2423
2423
  ]
@@ -2603,32 +2603,30 @@
2603
2603
  "modal",
2604
2604
  {
2605
2605
  "gap": "md",
2606
- "direction": "vertical",
2607
2606
  "type": "stack",
2607
+ "direction": "vertical",
2608
2608
  "children": [
2609
2609
  {
2610
- "type": "stack",
2611
- "gap": "sm",
2612
2610
  "children": [
2613
2611
  {
2614
2612
  "name": "plus-circle",
2615
2613
  "type": "icon"
2616
2614
  },
2617
2615
  {
2618
- "type": "typography",
2619
2616
  "variant": "h3",
2617
+ "type": "typography",
2620
2618
  "content": "Create Deal"
2621
2619
  }
2622
2620
  ],
2623
- "direction": "horizontal"
2621
+ "direction": "horizontal",
2622
+ "gap": "sm",
2623
+ "type": "stack"
2624
2624
  },
2625
2625
  {
2626
2626
  "type": "divider"
2627
2627
  },
2628
2628
  {
2629
- "cancelEvent": "CLOSE",
2630
- "submitEvent": "SAVE",
2631
- "mode": "create",
2629
+ "type": "form-section",
2632
2630
  "fields": [
2633
2631
  "title",
2634
2632
  "contactId",
@@ -2636,7 +2634,9 @@
2636
2634
  "stage",
2637
2635
  "closedAt"
2638
2636
  ],
2639
- "type": "form-section"
2637
+ "mode": "create",
2638
+ "cancelEvent": "CLOSE",
2639
+ "submitEvent": "SAVE"
2640
2640
  }
2641
2641
  ]
2642
2642
  }
@@ -2884,8 +2884,8 @@
2884
2884
  {
2885
2885
  "id": "@payload.id",
2886
2886
  "emit": {
2887
- "failure": "DealLoadFailed",
2888
- "success": "DealLoaded"
2887
+ "success": "DealLoaded",
2888
+ "failure": "DealLoadFailed"
2889
2889
  }
2890
2890
  }
2891
2891
  ],
@@ -2895,18 +2895,18 @@
2895
2895
  {
2896
2896
  "children": [
2897
2897
  {
2898
+ "gap": "sm",
2898
2899
  "children": [
2899
2900
  {
2900
- "type": "icon",
2901
- "name": "edit"
2901
+ "name": "edit",
2902
+ "type": "icon"
2902
2903
  },
2903
2904
  {
2904
2905
  "variant": "h3",
2905
- "type": "typography",
2906
- "content": "Edit Deal"
2906
+ "content": "Edit Deal",
2907
+ "type": "typography"
2907
2908
  }
2908
2909
  ],
2909
- "gap": "sm",
2910
2910
  "type": "stack",
2911
2911
  "direction": "horizontal"
2912
2912
  },
@@ -2914,9 +2914,9 @@
2914
2914
  "type": "divider"
2915
2915
  },
2916
2916
  {
2917
- "mode": "edit",
2917
+ "cancelEvent": "CLOSE",
2918
2918
  "type": "form-section",
2919
- "entity": "@payload.row",
2919
+ "submitEvent": "SAVE",
2920
2920
  "fields": [
2921
2921
  "title",
2922
2922
  "contactId",
@@ -2924,13 +2924,13 @@
2924
2924
  "stage",
2925
2925
  "closedAt"
2926
2926
  ],
2927
- "cancelEvent": "CLOSE",
2928
- "submitEvent": "SAVE"
2927
+ "entity": "@payload.row",
2928
+ "mode": "edit"
2929
2929
  }
2930
2930
  ],
2931
+ "direction": "vertical",
2931
2932
  "gap": "md",
2932
- "type": "stack",
2933
- "direction": "vertical"
2933
+ "type": "stack"
2934
2934
  }
2935
2935
  ]
2936
2936
  ]
@@ -2971,8 +2971,8 @@
2971
2971
  "@payload.data",
2972
2972
  {
2973
2973
  "emit": {
2974
- "failure": "DealUpdateFailed",
2975
- "success": "DealUpdated"
2974
+ "success": "DealUpdated",
2975
+ "failure": "DealUpdateFailed"
2976
2976
  }
2977
2977
  }
2978
2978
  ],
@@ -3120,7 +3120,6 @@
3120
3120
  "render-ui",
3121
3121
  "modal",
3122
3122
  {
3123
- "gap": "md",
3124
3123
  "children": [
3125
3124
  {
3126
3125
  "children": [
@@ -3129,37 +3128,39 @@
3129
3128
  "type": "icon"
3130
3129
  },
3131
3130
  {
3132
- "variant": "h3",
3131
+ "content": "@entity.title",
3133
3132
  "type": "typography",
3134
- "content": "@entity.title"
3133
+ "variant": "h3"
3135
3134
  }
3136
3135
  ],
3137
3136
  "gap": "sm",
3138
3137
  "align": "center",
3139
- "type": "stack",
3140
- "direction": "horizontal"
3138
+ "direction": "horizontal",
3139
+ "type": "stack"
3141
3140
  },
3142
3141
  {
3143
3142
  "type": "divider"
3144
3143
  },
3145
3144
  {
3145
+ "gap": "md",
3146
+ "type": "stack",
3146
3147
  "direction": "horizontal",
3147
3148
  "children": [
3148
3149
  {
3149
- "content": "Title",
3150
3150
  "variant": "caption",
3151
+ "content": "Title",
3151
3152
  "type": "typography"
3152
3153
  },
3153
3154
  {
3154
3155
  "variant": "body",
3155
- "type": "typography",
3156
- "content": "@entity.title"
3156
+ "content": "@entity.title",
3157
+ "type": "typography"
3157
3158
  }
3158
- ],
3159
- "type": "stack",
3160
- "gap": "md"
3159
+ ]
3161
3160
  },
3162
3161
  {
3162
+ "direction": "horizontal",
3163
+ "type": "stack",
3163
3164
  "gap": "md",
3164
3165
  "children": [
3165
3166
  {
@@ -3168,16 +3169,13 @@
3168
3169
  "content": "Contact ID"
3169
3170
  },
3170
3171
  {
3171
- "type": "typography",
3172
3172
  "variant": "body",
3173
+ "type": "typography",
3173
3174
  "content": "@entity.contactId"
3174
3175
  }
3175
- ],
3176
- "direction": "horizontal",
3177
- "type": "stack"
3176
+ ]
3178
3177
  },
3179
3178
  {
3180
- "type": "stack",
3181
3179
  "direction": "horizontal",
3182
3180
  "gap": "md",
3183
3181
  "children": [
@@ -3187,19 +3185,19 @@
3187
3185
  "type": "typography"
3188
3186
  },
3189
3187
  {
3190
- "type": "typography",
3188
+ "content": "@entity.value",
3191
3189
  "variant": "body",
3192
- "content": "@entity.value"
3190
+ "type": "typography"
3193
3191
  }
3194
- ]
3192
+ ],
3193
+ "type": "stack"
3195
3194
  },
3196
3195
  {
3197
- "type": "stack",
3198
3196
  "children": [
3199
3197
  {
3200
- "content": "Stage",
3201
3198
  "type": "typography",
3202
- "variant": "caption"
3199
+ "variant": "caption",
3200
+ "content": "Stage"
3203
3201
  },
3204
3202
  {
3205
3203
  "type": "typography",
@@ -3207,53 +3205,55 @@
3207
3205
  "variant": "body"
3208
3206
  }
3209
3207
  ],
3208
+ "gap": "md",
3210
3209
  "direction": "horizontal",
3211
- "gap": "md"
3210
+ "type": "stack"
3212
3211
  },
3213
3212
  {
3214
- "gap": "md",
3215
3213
  "direction": "horizontal",
3216
- "type": "stack",
3214
+ "gap": "md",
3217
3215
  "children": [
3218
3216
  {
3219
3217
  "variant": "caption",
3220
- "content": "Closed At",
3221
- "type": "typography"
3218
+ "type": "typography",
3219
+ "content": "Closed At"
3222
3220
  },
3223
3221
  {
3222
+ "content": "@entity.closedAt",
3224
3223
  "type": "typography",
3225
- "variant": "body",
3226
- "content": "@entity.closedAt"
3224
+ "variant": "body"
3227
3225
  }
3228
- ]
3226
+ ],
3227
+ "type": "stack"
3229
3228
  },
3230
3229
  {
3231
3230
  "type": "divider"
3232
3231
  },
3233
3232
  {
3233
+ "gap": "sm",
3234
+ "type": "stack",
3234
3235
  "direction": "horizontal",
3236
+ "justify": "end",
3235
3237
  "children": [
3236
3238
  {
3237
- "label": "Edit",
3239
+ "action": "EDIT",
3238
3240
  "variant": "primary",
3239
3241
  "icon": "edit",
3240
- "action": "EDIT",
3241
- "type": "button"
3242
+ "type": "button",
3243
+ "label": "Edit"
3242
3244
  },
3243
3245
  {
3244
- "label": "Close",
3245
3246
  "type": "button",
3246
- "action": "CLOSE",
3247
- "variant": "ghost"
3247
+ "label": "Close",
3248
+ "variant": "ghost",
3249
+ "action": "CLOSE"
3248
3250
  }
3249
- ],
3250
- "justify": "end",
3251
- "type": "stack",
3252
- "gap": "sm"
3251
+ ]
3253
3252
  }
3254
3253
  ],
3255
- "type": "stack",
3256
- "direction": "vertical"
3254
+ "direction": "vertical",
3255
+ "gap": "md",
3256
+ "type": "stack"
3257
3257
  }
3258
3258
  ]
3259
3259
  ]
@@ -3480,30 +3480,27 @@
3480
3480
  "fetch",
3481
3481
  "Deal",
3482
3482
  {
3483
+ "id": "@payload.id",
3483
3484
  "emit": {
3484
3485
  "success": "DealLoaded",
3485
3486
  "failure": "DealLoadFailed"
3486
- },
3487
- "id": "@payload.id"
3487
+ }
3488
3488
  }
3489
3489
  ],
3490
3490
  [
3491
3491
  "render-ui",
3492
3492
  "modal",
3493
3493
  {
3494
- "direction": "vertical",
3495
- "type": "stack",
3496
- "gap": "md",
3497
3494
  "children": [
3498
3495
  {
3499
- "gap": "sm",
3500
- "align": "center",
3501
3496
  "direction": "horizontal",
3497
+ "align": "center",
3502
3498
  "type": "stack",
3499
+ "gap": "sm",
3503
3500
  "children": [
3504
3501
  {
3505
- "type": "icon",
3506
- "name": "alert-triangle"
3502
+ "name": "alert-triangle",
3503
+ "type": "icon"
3507
3504
  },
3508
3505
  {
3509
3506
  "type": "typography",
@@ -3517,31 +3514,34 @@
3517
3514
  },
3518
3515
  {
3519
3516
  "type": "alert",
3520
- "variant": "error",
3521
- "message": "This action cannot be undone."
3517
+ "message": "This action cannot be undone.",
3518
+ "variant": "error"
3522
3519
  },
3523
3520
  {
3524
- "gap": "sm",
3521
+ "justify": "end",
3525
3522
  "children": [
3526
3523
  {
3527
- "type": "button",
3528
3524
  "variant": "ghost",
3529
3525
  "label": "Cancel",
3530
- "action": "CANCEL"
3526
+ "action": "CANCEL",
3527
+ "type": "button"
3531
3528
  },
3532
3529
  {
3533
- "action": "CONFIRM_DELETE",
3534
- "type": "button",
3530
+ "icon": "check",
3535
3531
  "variant": "danger",
3536
3532
  "label": "Delete",
3537
- "icon": "check"
3533
+ "type": "button",
3534
+ "action": "CONFIRM_DELETE"
3538
3535
  }
3539
3536
  ],
3540
- "justify": "end",
3541
3537
  "type": "stack",
3542
- "direction": "horizontal"
3538
+ "direction": "horizontal",
3539
+ "gap": "sm"
3543
3540
  }
3544
- ]
3541
+ ],
3542
+ "gap": "md",
3543
+ "direction": "vertical",
3544
+ "type": "stack"
3545
3545
  }
3546
3546
  ]
3547
3547
  ]
@@ -3801,8 +3801,8 @@
3801
3801
  "Pipeline",
3802
3802
  {
3803
3803
  "emit": {
3804
- "failure": "PipelineLoadFailed",
3805
- "success": "PipelineLoaded"
3804
+ "success": "PipelineLoaded",
3805
+ "failure": "PipelineLoadFailed"
3806
3806
  }
3807
3807
  }
3808
3808
  ],
@@ -3810,53 +3810,34 @@
3810
3810
  "render-ui",
3811
3811
  "main",
3812
3812
  {
3813
- "navItems": [
3814
- {
3815
- "href": "/contacts",
3816
- "icon": "users",
3817
- "label": "Contacts"
3818
- },
3819
- {
3820
- "href": "/deals",
3821
- "label": "Deals",
3822
- "icon": "briefcase"
3823
- },
3824
- {
3825
- "href": "/pipeline",
3826
- "icon": "bar-chart-2",
3827
- "label": "Pipeline"
3828
- },
3829
- {
3830
- "label": "Notes",
3831
- "icon": "file-text",
3832
- "href": "/notes"
3833
- }
3834
- ],
3835
3813
  "type": "dashboard-layout",
3836
3814
  "appName": "CRM",
3837
3815
  "children": [
3838
3816
  {
3839
3817
  "children": [
3840
3818
  {
3819
+ "gap": "lg",
3820
+ "direction": "vertical",
3841
3821
  "children": [
3842
3822
  {
3843
- "type": "breadcrumb",
3844
3823
  "items": [
3845
3824
  {
3846
- "label": "Home",
3847
- "href": "/"
3825
+ "href": "/",
3826
+ "label": "Home"
3848
3827
  },
3849
3828
  {
3850
3829
  "label": "Pipeline"
3851
3830
  }
3852
- ]
3831
+ ],
3832
+ "type": "breadcrumb"
3853
3833
  },
3854
3834
  {
3835
+ "justify": "between",
3855
3836
  "children": [
3856
3837
  {
3857
3838
  "direction": "horizontal",
3858
- "gap": "md",
3859
3839
  "type": "stack",
3840
+ "gap": "md",
3860
3841
  "children": [
3861
3842
  {
3862
3843
  "type": "icon",
@@ -3870,57 +3851,56 @@
3870
3851
  ]
3871
3852
  },
3872
3853
  {
3873
- "icon": "refresh-cw",
3874
- "variant": "secondary",
3875
- "type": "button",
3854
+ "label": "Refresh",
3876
3855
  "action": "REFRESH",
3877
- "label": "Refresh"
3856
+ "type": "button",
3857
+ "variant": "secondary",
3858
+ "icon": "refresh-cw"
3878
3859
  }
3879
3860
  ],
3880
- "gap": "md",
3881
3861
  "direction": "horizontal",
3882
- "justify": "between",
3883
- "type": "stack"
3862
+ "type": "stack",
3863
+ "gap": "md"
3884
3864
  },
3885
3865
  {
3886
3866
  "type": "divider"
3887
3867
  },
3888
3868
  {
3869
+ "padding": "md",
3889
3870
  "children": [
3890
3871
  {
3891
- "cols": 3.0,
3872
+ "type": "simple-grid",
3892
3873
  "children": [
3893
3874
  {
3894
- "value": "@entity.totalDeals",
3895
3875
  "label": "TotalDeals",
3896
- "type": "stat-display"
3876
+ "type": "stat-display",
3877
+ "value": "@entity.totalDeals"
3897
3878
  },
3898
3879
  {
3880
+ "type": "stat-display",
3899
3881
  "label": "TotalValue",
3900
- "value": "@entity.totalValue",
3901
- "type": "stat-display"
3882
+ "value": "@entity.totalValue"
3902
3883
  },
3903
3884
  {
3904
- "value": "@entity.wonDeals",
3885
+ "type": "stat-display",
3905
3886
  "label": "WonDeals",
3906
- "type": "stat-display"
3887
+ "value": "@entity.wonDeals"
3907
3888
  },
3908
3889
  {
3909
3890
  "value": "@entity.lostDeals",
3910
- "type": "stat-display",
3911
- "label": "LostDeals"
3891
+ "label": "LostDeals",
3892
+ "type": "stat-display"
3912
3893
  },
3913
3894
  {
3914
3895
  "label": "ConversionRate",
3915
- "type": "stat-display",
3916
- "value": "@entity.conversionRate"
3896
+ "value": "@entity.conversionRate",
3897
+ "type": "stat-display"
3917
3898
  }
3918
3899
  ],
3919
- "type": "simple-grid"
3900
+ "cols": 3.0
3920
3901
  }
3921
3902
  ],
3922
- "type": "box",
3923
- "padding": "md"
3903
+ "type": "box"
3924
3904
  },
3925
3905
  {
3926
3906
  "type": "divider"
@@ -3928,89 +3908,89 @@
3928
3908
  {
3929
3909
  "children": [
3930
3910
  {
3931
- "type": "card",
3932
3911
  "children": [
3933
3912
  {
3934
3913
  "type": "typography",
3935
- "content": "Chart View",
3936
- "variant": "caption"
3914
+ "variant": "caption",
3915
+ "content": "Chart View"
3937
3916
  }
3938
- ]
3917
+ ],
3918
+ "type": "card"
3939
3919
  },
3940
3920
  {
3941
- "type": "card",
3942
3921
  "children": [
3943
3922
  {
3944
- "variant": "caption",
3945
3923
  "type": "typography",
3924
+ "variant": "caption",
3946
3925
  "content": "Graph View"
3947
3926
  }
3948
- ]
3927
+ ],
3928
+ "type": "card"
3949
3929
  }
3950
3930
  ],
3951
- "gap": "md",
3931
+ "type": "grid",
3952
3932
  "cols": 2.0,
3953
- "type": "grid"
3933
+ "gap": "md"
3954
3934
  },
3955
3935
  {
3936
+ "type": "line-chart",
3956
3937
  "data": [
3957
3938
  {
3958
- "date": "Jan",
3959
- "value": 12.0
3939
+ "value": 12.0,
3940
+ "date": "Jan"
3960
3941
  },
3961
3942
  {
3962
- "date": "Feb",
3963
- "value": 19.0
3943
+ "value": 19.0,
3944
+ "date": "Feb"
3964
3945
  },
3965
3946
  {
3966
3947
  "value": 15.0,
3967
3948
  "date": "Mar"
3968
3949
  },
3969
3950
  {
3970
- "value": 25.0,
3971
- "date": "Apr"
3951
+ "date": "Apr",
3952
+ "value": 25.0
3972
3953
  },
3973
3954
  {
3974
- "value": 22.0,
3975
- "date": "May"
3955
+ "date": "May",
3956
+ "value": 22.0
3976
3957
  },
3977
3958
  {
3978
- "date": "Jun",
3979
- "value": 30.0
3959
+ "value": 30.0,
3960
+ "date": "Jun"
3980
3961
  }
3981
- ],
3982
- "type": "line-chart"
3962
+ ]
3983
3963
  },
3984
3964
  {
3985
- "type": "chart-legend",
3986
3965
  "items": [
3987
3966
  {
3988
3967
  "color": "primary",
3989
3968
  "label": "Current"
3990
3969
  },
3991
3970
  {
3992
- "color": "muted",
3993
- "label": "Previous"
3971
+ "label": "Previous",
3972
+ "color": "muted"
3994
3973
  }
3995
- ]
3974
+ ],
3975
+ "type": "chart-legend"
3996
3976
  },
3997
3977
  {
3978
+ "type": "graph-view",
3979
+ "height": 200.0,
3998
3980
  "edges": [
3999
3981
  {
4000
- "source": "a",
4001
- "target": "b"
3982
+ "target": "b",
3983
+ "source": "a"
4002
3984
  },
4003
3985
  {
4004
- "source": "b",
4005
- "target": "c"
3986
+ "target": "c",
3987
+ "source": "b"
4006
3988
  }
4007
3989
  ],
4008
- "type": "graph-view",
4009
- "width": 400.0,
4010
3990
  "nodes": [
4011
3991
  {
4012
- "label": "Start",
4013
- "id": "a"
3992
+ "id": "a",
3993
+ "label": "Start"
4014
3994
  },
4015
3995
  {
4016
3996
  "label": "Process",
@@ -4021,16 +4001,36 @@
4021
4001
  "label": "End"
4022
4002
  }
4023
4003
  ],
4024
- "height": 200.0
4004
+ "width": 400.0
4025
4005
  }
4026
4006
  ],
4027
- "direction": "vertical",
4028
- "type": "stack",
4029
- "gap": "lg"
4007
+ "type": "stack"
4030
4008
  }
4031
4009
  ],
4032
4010
  "type": "scaled-diagram"
4033
4011
  }
4012
+ ],
4013
+ "navItems": [
4014
+ {
4015
+ "icon": "users",
4016
+ "label": "Contacts",
4017
+ "href": "/contacts"
4018
+ },
4019
+ {
4020
+ "href": "/deals",
4021
+ "icon": "briefcase",
4022
+ "label": "Deals"
4023
+ },
4024
+ {
4025
+ "href": "/pipeline",
4026
+ "icon": "bar-chart-2",
4027
+ "label": "Pipeline"
4028
+ },
4029
+ {
4030
+ "href": "/notes",
4031
+ "icon": "file-text",
4032
+ "label": "Notes"
4033
+ }
4034
4034
  ]
4035
4035
  }
4036
4036
  ]
@@ -4046,8 +4046,8 @@
4046
4046
  "Pipeline",
4047
4047
  {
4048
4048
  "emit": {
4049
- "failure": "PipelineLoadFailed",
4050
- "success": "PipelineLoaded"
4049
+ "success": "PipelineLoaded",
4050
+ "failure": "PipelineLoadFailed"
4051
4051
  }
4052
4052
  }
4053
4053
  ],
@@ -4055,35 +4055,11 @@
4055
4055
  "render-ui",
4056
4056
  "main",
4057
4057
  {
4058
- "type": "dashboard-layout",
4059
- "appName": "CRM",
4060
- "navItems": [
4061
- {
4062
- "href": "/contacts",
4063
- "icon": "users",
4064
- "label": "Contacts"
4065
- },
4066
- {
4067
- "label": "Deals",
4068
- "href": "/deals",
4069
- "icon": "briefcase"
4070
- },
4071
- {
4072
- "label": "Pipeline",
4073
- "icon": "bar-chart-2",
4074
- "href": "/pipeline"
4075
- },
4076
- {
4077
- "label": "Notes",
4078
- "href": "/notes",
4079
- "icon": "file-text"
4080
- }
4081
- ],
4082
- "children": [
4058
+ "children": [
4083
4059
  {
4060
+ "type": "scaled-diagram",
4084
4061
  "children": [
4085
4062
  {
4086
- "gap": "lg",
4087
4063
  "type": "stack",
4088
4064
  "direction": "vertical",
4089
4065
  "children": [
@@ -4091,8 +4067,8 @@
4091
4067
  "type": "breadcrumb",
4092
4068
  "items": [
4093
4069
  {
4094
- "label": "Home",
4095
- "href": "/"
4070
+ "href": "/",
4071
+ "label": "Home"
4096
4072
  },
4097
4073
  {
4098
4074
  "label": "Pipeline"
@@ -4100,33 +4076,33 @@
4100
4076
  ]
4101
4077
  },
4102
4078
  {
4103
- "direction": "horizontal",
4104
4079
  "gap": "md",
4105
4080
  "type": "stack",
4106
4081
  "justify": "between",
4082
+ "direction": "horizontal",
4107
4083
  "children": [
4108
4084
  {
4109
- "gap": "md",
4110
4085
  "children": [
4111
4086
  {
4112
4087
  "name": "bar-chart-2",
4113
4088
  "type": "icon"
4114
4089
  },
4115
4090
  {
4091
+ "content": "Pipeline",
4116
4092
  "type": "typography",
4117
- "variant": "h2",
4118
- "content": "Pipeline"
4093
+ "variant": "h2"
4119
4094
  }
4120
4095
  ],
4121
4096
  "direction": "horizontal",
4097
+ "gap": "md",
4122
4098
  "type": "stack"
4123
4099
  },
4124
4100
  {
4125
- "action": "REFRESH",
4126
- "variant": "secondary",
4101
+ "label": "Refresh",
4127
4102
  "icon": "refresh-cw",
4128
4103
  "type": "button",
4129
- "label": "Refresh"
4104
+ "variant": "secondary",
4105
+ "action": "REFRESH"
4130
4106
  }
4131
4107
  ]
4132
4108
  },
@@ -4134,25 +4110,24 @@
4134
4110
  "type": "divider"
4135
4111
  },
4136
4112
  {
4137
- "padding": "md",
4138
- "type": "box",
4139
4113
  "children": [
4140
4114
  {
4115
+ "cols": 3.0,
4141
4116
  "children": [
4142
4117
  {
4143
- "value": "@entity.totalDeals",
4118
+ "type": "stat-display",
4144
4119
  "label": "TotalDeals",
4145
- "type": "stat-display"
4120
+ "value": "@entity.totalDeals"
4146
4121
  },
4147
4122
  {
4148
4123
  "label": "TotalValue",
4149
- "type": "stat-display",
4150
- "value": "@entity.totalValue"
4124
+ "value": "@entity.totalValue",
4125
+ "type": "stat-display"
4151
4126
  },
4152
4127
  {
4128
+ "value": "@entity.wonDeals",
4153
4129
  "type": "stat-display",
4154
- "label": "WonDeals",
4155
- "value": "@entity.wonDeals"
4130
+ "label": "WonDeals"
4156
4131
  },
4157
4132
  {
4158
4133
  "value": "@entity.lostDeals",
@@ -4160,15 +4135,16 @@
4160
4135
  "type": "stat-display"
4161
4136
  },
4162
4137
  {
4163
- "value": "@entity.conversionRate",
4138
+ "label": "ConversionRate",
4164
4139
  "type": "stat-display",
4165
- "label": "ConversionRate"
4140
+ "value": "@entity.conversionRate"
4166
4141
  }
4167
4142
  ],
4168
- "type": "simple-grid",
4169
- "cols": 3.0
4143
+ "type": "simple-grid"
4170
4144
  }
4171
- ]
4145
+ ],
4146
+ "type": "box",
4147
+ "padding": "md"
4172
4148
  },
4173
4149
  {
4174
4150
  "type": "divider"
@@ -4179,21 +4155,21 @@
4179
4155
  "children": [
4180
4156
  {
4181
4157
  "content": "Chart View",
4182
- "variant": "caption",
4183
- "type": "typography"
4158
+ "type": "typography",
4159
+ "variant": "caption"
4184
4160
  }
4185
4161
  ],
4186
4162
  "type": "card"
4187
4163
  },
4188
4164
  {
4189
- "type": "card",
4190
4165
  "children": [
4191
4166
  {
4192
4167
  "type": "typography",
4193
4168
  "variant": "caption",
4194
4169
  "content": "Graph View"
4195
4170
  }
4196
- ]
4171
+ ],
4172
+ "type": "card"
4197
4173
  }
4198
4174
  ],
4199
4175
  "cols": 2.0,
@@ -4201,19 +4177,18 @@
4201
4177
  "type": "grid"
4202
4178
  },
4203
4179
  {
4204
- "type": "line-chart",
4205
4180
  "data": [
4206
4181
  {
4207
- "date": "Jan",
4208
- "value": 12.0
4182
+ "value": 12.0,
4183
+ "date": "Jan"
4209
4184
  },
4210
4185
  {
4211
- "date": "Feb",
4212
- "value": 19.0
4186
+ "value": 19.0,
4187
+ "date": "Feb"
4213
4188
  },
4214
4189
  {
4215
- "date": "Mar",
4216
- "value": 15.0
4190
+ "value": 15.0,
4191
+ "date": "Mar"
4217
4192
  },
4218
4193
  {
4219
4194
  "date": "Apr",
@@ -4224,10 +4199,11 @@
4224
4199
  "value": 22.0
4225
4200
  },
4226
4201
  {
4227
- "date": "Jun",
4228
- "value": 30.0
4202
+ "value": 30.0,
4203
+ "date": "Jun"
4229
4204
  }
4230
- ]
4205
+ ],
4206
+ "type": "line-chart"
4231
4207
  },
4232
4208
  {
4233
4209
  "items": [
@@ -4243,11 +4219,23 @@
4243
4219
  "type": "chart-legend"
4244
4220
  },
4245
4221
  {
4222
+ "type": "graph-view",
4223
+ "width": 400.0,
4224
+ "edges": [
4225
+ {
4226
+ "source": "a",
4227
+ "target": "b"
4228
+ },
4229
+ {
4230
+ "source": "b",
4231
+ "target": "c"
4232
+ }
4233
+ ],
4246
4234
  "height": 200.0,
4247
4235
  "nodes": [
4248
4236
  {
4249
- "label": "Start",
4250
- "id": "a"
4237
+ "id": "a",
4238
+ "label": "Start"
4251
4239
  },
4252
4240
  {
4253
4241
  "id": "b",
@@ -4257,24 +4245,36 @@
4257
4245
  "id": "c",
4258
4246
  "label": "End"
4259
4247
  }
4260
- ],
4261
- "width": 400.0,
4262
- "edges": [
4263
- {
4264
- "target": "b",
4265
- "source": "a"
4266
- },
4267
- {
4268
- "source": "b",
4269
- "target": "c"
4270
- }
4271
- ],
4272
- "type": "graph-view"
4248
+ ]
4273
4249
  }
4274
- ]
4250
+ ],
4251
+ "gap": "lg"
4275
4252
  }
4276
- ],
4277
- "type": "scaled-diagram"
4253
+ ]
4254
+ }
4255
+ ],
4256
+ "appName": "CRM",
4257
+ "type": "dashboard-layout",
4258
+ "navItems": [
4259
+ {
4260
+ "href": "/contacts",
4261
+ "label": "Contacts",
4262
+ "icon": "users"
4263
+ },
4264
+ {
4265
+ "href": "/deals",
4266
+ "icon": "briefcase",
4267
+ "label": "Deals"
4268
+ },
4269
+ {
4270
+ "label": "Pipeline",
4271
+ "href": "/pipeline",
4272
+ "icon": "bar-chart-2"
4273
+ },
4274
+ {
4275
+ "href": "/notes",
4276
+ "icon": "file-text",
4277
+ "label": "Notes"
4278
4278
  }
4279
4279
  ]
4280
4280
  }
@@ -4300,39 +4300,15 @@
4300
4300
  "render-ui",
4301
4301
  "main",
4302
4302
  {
4303
- "navItems": [
4304
- {
4305
- "href": "/contacts",
4306
- "label": "Contacts",
4307
- "icon": "users"
4308
- },
4309
- {
4310
- "icon": "briefcase",
4311
- "label": "Deals",
4312
- "href": "/deals"
4313
- },
4314
- {
4315
- "href": "/pipeline",
4316
- "icon": "bar-chart-2",
4317
- "label": "Pipeline"
4318
- },
4319
- {
4320
- "label": "Notes",
4321
- "href": "/notes",
4322
- "icon": "file-text"
4323
- }
4324
- ],
4325
- "appName": "CRM",
4326
4303
  "type": "dashboard-layout",
4327
4304
  "children": [
4328
4305
  {
4306
+ "type": "scaled-diagram",
4329
4307
  "children": [
4330
4308
  {
4331
- "type": "stack",
4332
- "direction": "vertical",
4333
- "gap": "lg",
4334
4309
  "children": [
4335
4310
  {
4311
+ "type": "breadcrumb",
4336
4312
  "items": [
4337
4313
  {
4338
4314
  "label": "Home",
@@ -4341,115 +4317,115 @@
4341
4317
  {
4342
4318
  "label": "Pipeline"
4343
4319
  }
4344
- ],
4345
- "type": "breadcrumb"
4320
+ ]
4346
4321
  },
4347
4322
  {
4348
4323
  "gap": "md",
4349
- "type": "stack",
4350
- "justify": "between",
4351
4324
  "direction": "horizontal",
4325
+ "justify": "between",
4352
4326
  "children": [
4353
4327
  {
4354
- "type": "stack",
4355
4328
  "direction": "horizontal",
4356
- "gap": "md",
4357
4329
  "children": [
4358
4330
  {
4359
4331
  "type": "icon",
4360
4332
  "name": "bar-chart-2"
4361
4333
  },
4362
4334
  {
4335
+ "variant": "h2",
4363
4336
  "content": "Pipeline",
4364
- "type": "typography",
4365
- "variant": "h2"
4337
+ "type": "typography"
4366
4338
  }
4367
- ]
4339
+ ],
4340
+ "gap": "md",
4341
+ "type": "stack"
4368
4342
  },
4369
4343
  {
4344
+ "type": "button",
4370
4345
  "action": "REFRESH",
4371
- "variant": "secondary",
4372
- "icon": "refresh-cw",
4373
4346
  "label": "Refresh",
4374
- "type": "button"
4347
+ "icon": "refresh-cw",
4348
+ "variant": "secondary"
4375
4349
  }
4376
- ]
4350
+ ],
4351
+ "type": "stack"
4377
4352
  },
4378
4353
  {
4379
4354
  "type": "divider"
4380
4355
  },
4381
4356
  {
4357
+ "type": "box",
4382
4358
  "padding": "md",
4383
4359
  "children": [
4384
4360
  {
4361
+ "type": "simple-grid",
4362
+ "cols": 3.0,
4385
4363
  "children": [
4386
4364
  {
4387
- "label": "TotalDeals",
4365
+ "type": "stat-display",
4388
4366
  "value": "@entity.totalDeals",
4389
- "type": "stat-display"
4367
+ "label": "TotalDeals"
4390
4368
  },
4391
4369
  {
4392
- "value": "@entity.totalValue",
4393
4370
  "type": "stat-display",
4394
- "label": "TotalValue"
4371
+ "label": "TotalValue",
4372
+ "value": "@entity.totalValue"
4395
4373
  },
4396
4374
  {
4397
- "label": "WonDeals",
4398
4375
  "value": "@entity.wonDeals",
4399
- "type": "stat-display"
4376
+ "type": "stat-display",
4377
+ "label": "WonDeals"
4400
4378
  },
4401
4379
  {
4402
- "type": "stat-display",
4403
4380
  "value": "@entity.lostDeals",
4404
- "label": "LostDeals"
4381
+ "label": "LostDeals",
4382
+ "type": "stat-display"
4405
4383
  },
4406
4384
  {
4407
4385
  "label": "ConversionRate",
4408
- "type": "stat-display",
4409
- "value": "@entity.conversionRate"
4386
+ "value": "@entity.conversionRate",
4387
+ "type": "stat-display"
4410
4388
  }
4411
- ],
4412
- "cols": 3.0,
4413
- "type": "simple-grid"
4389
+ ]
4414
4390
  }
4415
- ],
4416
- "type": "box"
4391
+ ]
4417
4392
  },
4418
4393
  {
4419
4394
  "type": "divider"
4420
4395
  },
4421
4396
  {
4422
- "type": "grid",
4397
+ "gap": "md",
4423
4398
  "cols": 2.0,
4399
+ "type": "grid",
4424
4400
  "children": [
4425
4401
  {
4426
4402
  "children": [
4427
4403
  {
4428
- "content": "Chart View",
4404
+ "variant": "caption",
4429
4405
  "type": "typography",
4430
- "variant": "caption"
4406
+ "content": "Chart View"
4431
4407
  }
4432
4408
  ],
4433
4409
  "type": "card"
4434
4410
  },
4435
4411
  {
4436
- "type": "card",
4437
4412
  "children": [
4438
4413
  {
4439
- "type": "typography",
4440
4414
  "variant": "caption",
4415
+ "type": "typography",
4441
4416
  "content": "Graph View"
4442
4417
  }
4443
- ]
4418
+ ],
4419
+ "type": "card"
4444
4420
  }
4445
- ],
4446
- "gap": "md"
4421
+ ]
4447
4422
  },
4448
4423
  {
4424
+ "type": "line-chart",
4449
4425
  "data": [
4450
4426
  {
4451
- "value": 12.0,
4452
- "date": "Jan"
4427
+ "date": "Jan",
4428
+ "value": 12.0
4453
4429
  },
4454
4430
  {
4455
4431
  "date": "Feb",
@@ -4464,15 +4440,14 @@
4464
4440
  "date": "Apr"
4465
4441
  },
4466
4442
  {
4467
- "value": 22.0,
4468
- "date": "May"
4443
+ "date": "May",
4444
+ "value": 22.0
4469
4445
  },
4470
4446
  {
4471
4447
  "date": "Jun",
4472
4448
  "value": 30.0
4473
4449
  }
4474
- ],
4475
- "type": "line-chart"
4450
+ ]
4476
4451
  },
4477
4452
  {
4478
4453
  "type": "chart-legend",
@@ -4482,46 +4457,71 @@
4482
4457
  "color": "primary"
4483
4458
  },
4484
4459
  {
4485
- "label": "Previous",
4486
- "color": "muted"
4460
+ "color": "muted",
4461
+ "label": "Previous"
4487
4462
  }
4488
4463
  ]
4489
4464
  },
4490
4465
  {
4491
- "nodes": [
4492
- {
4493
- "id": "a",
4494
- "label": "Start"
4495
- },
4466
+ "width": 400.0,
4467
+ "type": "graph-view",
4468
+ "edges": [
4496
4469
  {
4497
- "label": "Process",
4498
- "id": "b"
4470
+ "source": "a",
4471
+ "target": "b"
4499
4472
  },
4500
4473
  {
4501
- "label": "End",
4502
- "id": "c"
4474
+ "source": "b",
4475
+ "target": "c"
4503
4476
  }
4504
4477
  ],
4505
- "width": 400.0,
4506
- "type": "graph-view",
4507
- "edges": [
4478
+ "nodes": [
4508
4479
  {
4509
- "target": "b",
4510
- "source": "a"
4480
+ "label": "Start",
4481
+ "id": "a"
4511
4482
  },
4512
4483
  {
4513
- "target": "c",
4514
- "source": "b"
4484
+ "label": "Process",
4485
+ "id": "b"
4486
+ },
4487
+ {
4488
+ "id": "c",
4489
+ "label": "End"
4515
4490
  }
4516
4491
  ],
4517
4492
  "height": 200.0
4518
4493
  }
4519
- ]
4494
+ ],
4495
+ "type": "stack",
4496
+ "gap": "lg",
4497
+ "direction": "vertical"
4520
4498
  }
4521
- ],
4522
- "type": "scaled-diagram"
4499
+ ]
4523
4500
  }
4524
- ]
4501
+ ],
4502
+ "navItems": [
4503
+ {
4504
+ "label": "Contacts",
4505
+ "icon": "users",
4506
+ "href": "/contacts"
4507
+ },
4508
+ {
4509
+ "href": "/deals",
4510
+ "icon": "briefcase",
4511
+ "label": "Deals"
4512
+ },
4513
+ {
4514
+ "href": "/pipeline",
4515
+ "icon": "bar-chart-2",
4516
+ "label": "Pipeline"
4517
+ },
4518
+ {
4519
+ "href": "/notes",
4520
+ "icon": "file-text",
4521
+ "label": "Notes"
4522
+ }
4523
+ ],
4524
+ "appName": "CRM"
4525
4525
  }
4526
4526
  ]
4527
4527
  ]
@@ -4536,8 +4536,8 @@
4536
4536
  "Pipeline",
4537
4537
  {
4538
4538
  "emit": {
4539
- "failure": "PipelineLoadFailed",
4540
- "success": "PipelineLoaded"
4539
+ "success": "PipelineLoaded",
4540
+ "failure": "PipelineLoadFailed"
4541
4541
  }
4542
4542
  }
4543
4543
  ],
@@ -4546,12 +4546,11 @@
4546
4546
  "main",
4547
4547
  {
4548
4548
  "type": "dashboard-layout",
4549
- "appName": "CRM",
4550
4549
  "navItems": [
4551
4550
  {
4552
4551
  "label": "Contacts",
4553
- "icon": "users",
4554
- "href": "/contacts"
4552
+ "href": "/contacts",
4553
+ "icon": "users"
4555
4554
  },
4556
4555
  {
4557
4556
  "label": "Deals",
@@ -4559,23 +4558,24 @@
4559
4558
  "icon": "briefcase"
4560
4559
  },
4561
4560
  {
4561
+ "icon": "bar-chart-2",
4562
4562
  "label": "Pipeline",
4563
- "href": "/pipeline",
4564
- "icon": "bar-chart-2"
4563
+ "href": "/pipeline"
4565
4564
  },
4566
4565
  {
4567
- "icon": "file-text",
4568
4566
  "href": "/notes",
4567
+ "icon": "file-text",
4569
4568
  "label": "Notes"
4570
4569
  }
4571
4570
  ],
4571
+ "appName": "CRM",
4572
4572
  "children": [
4573
4573
  {
4574
4574
  "type": "scaled-diagram",
4575
4575
  "children": [
4576
4576
  {
4577
+ "type": "stack",
4577
4578
  "direction": "vertical",
4578
- "gap": "lg",
4579
4579
  "children": [
4580
4580
  {
4581
4581
  "type": "breadcrumb",
@@ -4590,124 +4590,123 @@
4590
4590
  ]
4591
4591
  },
4592
4592
  {
4593
+ "justify": "between",
4594
+ "type": "stack",
4595
+ "gap": "md",
4593
4596
  "children": [
4594
4597
  {
4595
- "direction": "horizontal",
4596
- "gap": "md",
4597
4598
  "type": "stack",
4599
+ "direction": "horizontal",
4598
4600
  "children": [
4599
4601
  {
4600
- "name": "bar-chart-2",
4601
- "type": "icon"
4602
+ "type": "icon",
4603
+ "name": "bar-chart-2"
4602
4604
  },
4603
4605
  {
4604
4606
  "content": "Pipeline",
4605
4607
  "type": "typography",
4606
4608
  "variant": "h2"
4607
4609
  }
4608
- ]
4610
+ ],
4611
+ "gap": "md"
4609
4612
  },
4610
4613
  {
4611
- "variant": "secondary",
4612
- "label": "Refresh",
4613
- "type": "button",
4614
4614
  "action": "REFRESH",
4615
- "icon": "refresh-cw"
4615
+ "icon": "refresh-cw",
4616
+ "type": "button",
4617
+ "variant": "secondary",
4618
+ "label": "Refresh"
4616
4619
  }
4617
4620
  ],
4618
- "gap": "md",
4619
- "justify": "between",
4620
- "direction": "horizontal",
4621
- "type": "stack"
4621
+ "direction": "horizontal"
4622
4622
  },
4623
4623
  {
4624
4624
  "type": "divider"
4625
4625
  },
4626
4626
  {
4627
- "type": "box",
4628
- "padding": "md",
4629
4627
  "children": [
4630
4628
  {
4631
- "type": "simple-grid",
4632
- "cols": 3.0,
4633
4629
  "children": [
4634
4630
  {
4631
+ "type": "stat-display",
4635
4632
  "label": "TotalDeals",
4636
- "value": "@entity.totalDeals",
4637
- "type": "stat-display"
4633
+ "value": "@entity.totalDeals"
4638
4634
  },
4639
4635
  {
4640
- "label": "TotalValue",
4641
4636
  "type": "stat-display",
4637
+ "label": "TotalValue",
4642
4638
  "value": "@entity.totalValue"
4643
4639
  },
4644
4640
  {
4645
- "type": "stat-display",
4646
4641
  "value": "@entity.wonDeals",
4647
- "label": "WonDeals"
4642
+ "label": "WonDeals",
4643
+ "type": "stat-display"
4648
4644
  },
4649
4645
  {
4650
4646
  "type": "stat-display",
4651
- "value": "@entity.lostDeals",
4652
- "label": "LostDeals"
4647
+ "label": "LostDeals",
4648
+ "value": "@entity.lostDeals"
4653
4649
  },
4654
4650
  {
4651
+ "value": "@entity.conversionRate",
4655
4652
  "label": "ConversionRate",
4656
- "type": "stat-display",
4657
- "value": "@entity.conversionRate"
4653
+ "type": "stat-display"
4658
4654
  }
4659
- ]
4655
+ ],
4656
+ "type": "simple-grid",
4657
+ "cols": 3.0
4660
4658
  }
4661
- ]
4659
+ ],
4660
+ "type": "box",
4661
+ "padding": "md"
4662
4662
  },
4663
4663
  {
4664
4664
  "type": "divider"
4665
4665
  },
4666
4666
  {
4667
- "gap": "md",
4668
- "type": "grid",
4669
4667
  "children": [
4670
4668
  {
4671
4669
  "children": [
4672
4670
  {
4673
4671
  "variant": "caption",
4674
- "content": "Chart View",
4675
- "type": "typography"
4672
+ "type": "typography",
4673
+ "content": "Chart View"
4676
4674
  }
4677
4675
  ],
4678
4676
  "type": "card"
4679
4677
  },
4680
4678
  {
4679
+ "type": "card",
4681
4680
  "children": [
4682
4681
  {
4683
- "type": "typography",
4684
4682
  "variant": "caption",
4685
- "content": "Graph View"
4683
+ "content": "Graph View",
4684
+ "type": "typography"
4686
4685
  }
4687
- ],
4688
- "type": "card"
4686
+ ]
4689
4687
  }
4690
4688
  ],
4689
+ "type": "grid",
4690
+ "gap": "md",
4691
4691
  "cols": 2.0
4692
4692
  },
4693
4693
  {
4694
- "type": "line-chart",
4695
4694
  "data": [
4696
4695
  {
4697
4696
  "date": "Jan",
4698
4697
  "value": 12.0
4699
4698
  },
4700
4699
  {
4701
- "value": 19.0,
4702
- "date": "Feb"
4700
+ "date": "Feb",
4701
+ "value": 19.0
4703
4702
  },
4704
4703
  {
4705
4704
  "date": "Mar",
4706
4705
  "value": 15.0
4707
4706
  },
4708
4707
  {
4709
- "date": "Apr",
4710
- "value": 25.0
4708
+ "value": 25.0,
4709
+ "date": "Apr"
4711
4710
  },
4712
4711
  {
4713
4712
  "date": "May",
@@ -4717,24 +4716,23 @@
4717
4716
  "value": 30.0,
4718
4717
  "date": "Jun"
4719
4718
  }
4720
- ]
4719
+ ],
4720
+ "type": "line-chart"
4721
4721
  },
4722
4722
  {
4723
4723
  "type": "chart-legend",
4724
4724
  "items": [
4725
4725
  {
4726
- "label": "Current",
4727
- "color": "primary"
4726
+ "color": "primary",
4727
+ "label": "Current"
4728
4728
  },
4729
4729
  {
4730
- "color": "muted",
4731
- "label": "Previous"
4730
+ "label": "Previous",
4731
+ "color": "muted"
4732
4732
  }
4733
4733
  ]
4734
4734
  },
4735
4735
  {
4736
- "height": 200.0,
4737
- "width": 400.0,
4738
4736
  "nodes": [
4739
4737
  {
4740
4738
  "id": "a",
@@ -4749,20 +4747,22 @@
4749
4747
  "label": "End"
4750
4748
  }
4751
4749
  ],
4750
+ "type": "graph-view",
4751
+ "width": 400.0,
4752
+ "height": 200.0,
4752
4753
  "edges": [
4753
4754
  {
4754
- "source": "a",
4755
- "target": "b"
4755
+ "target": "b",
4756
+ "source": "a"
4756
4757
  },
4757
4758
  {
4758
- "target": "c",
4759
- "source": "b"
4759
+ "source": "b",
4760
+ "target": "c"
4760
4761
  }
4761
- ],
4762
- "type": "graph-view"
4762
+ ]
4763
4763
  }
4764
4764
  ],
4765
- "type": "stack"
4765
+ "gap": "lg"
4766
4766
  }
4767
4767
  ]
4768
4768
  }
@@ -4781,8 +4781,8 @@
4781
4781
  "Pipeline",
4782
4782
  {
4783
4783
  "emit": {
4784
- "failure": "PipelineLoadFailed",
4785
- "success": "PipelineLoaded"
4784
+ "success": "PipelineLoaded",
4785
+ "failure": "PipelineLoadFailed"
4786
4786
  }
4787
4787
  }
4788
4788
  ],
@@ -4790,13 +4790,14 @@
4790
4790
  "render-ui",
4791
4791
  "main",
4792
4792
  {
4793
+ "appName": "CRM",
4793
4794
  "children": [
4794
4795
  {
4795
- "type": "scaled-diagram",
4796
4796
  "children": [
4797
4797
  {
4798
- "gap": "lg",
4799
4798
  "type": "stack",
4799
+ "gap": "lg",
4800
+ "direction": "vertical",
4800
4801
  "children": [
4801
4802
  {
4802
4803
  "items": [
@@ -4811,35 +4812,35 @@
4811
4812
  "type": "breadcrumb"
4812
4813
  },
4813
4814
  {
4814
- "type": "stack",
4815
- "direction": "horizontal",
4816
- "justify": "between",
4817
4815
  "children": [
4818
4816
  {
4819
- "gap": "md",
4817
+ "direction": "horizontal",
4820
4818
  "type": "stack",
4821
4819
  "children": [
4822
4820
  {
4823
- "type": "icon",
4824
- "name": "bar-chart-2"
4821
+ "name": "bar-chart-2",
4822
+ "type": "icon"
4825
4823
  },
4826
4824
  {
4827
- "type": "typography",
4825
+ "variant": "h2",
4828
4826
  "content": "Pipeline",
4829
- "variant": "h2"
4827
+ "type": "typography"
4830
4828
  }
4831
4829
  ],
4832
- "direction": "horizontal"
4830
+ "gap": "md"
4833
4831
  },
4834
4832
  {
4835
- "variant": "secondary",
4836
4833
  "type": "button",
4837
- "action": "REFRESH",
4834
+ "variant": "secondary",
4838
4835
  "label": "Refresh",
4836
+ "action": "REFRESH",
4839
4837
  "icon": "refresh-cw"
4840
4838
  }
4841
4839
  ],
4842
- "gap": "md"
4840
+ "type": "stack",
4841
+ "direction": "horizontal",
4842
+ "gap": "md",
4843
+ "justify": "between"
4843
4844
  },
4844
4845
  {
4845
4846
  "type": "divider"
@@ -4849,14 +4850,14 @@
4849
4850
  {
4850
4851
  "children": [
4851
4852
  {
4852
- "label": "TotalDeals",
4853
+ "type": "stat-display",
4853
4854
  "value": "@entity.totalDeals",
4854
- "type": "stat-display"
4855
+ "label": "TotalDeals"
4855
4856
  },
4856
4857
  {
4857
- "label": "TotalValue",
4858
4858
  "type": "stat-display",
4859
- "value": "@entity.totalValue"
4859
+ "value": "@entity.totalValue",
4860
+ "label": "TotalValue"
4860
4861
  },
4861
4862
  {
4862
4863
  "type": "stat-display",
@@ -4864,18 +4865,18 @@
4864
4865
  "value": "@entity.wonDeals"
4865
4866
  },
4866
4867
  {
4867
- "type": "stat-display",
4868
4868
  "label": "LostDeals",
4869
+ "type": "stat-display",
4869
4870
  "value": "@entity.lostDeals"
4870
4871
  },
4871
4872
  {
4873
+ "type": "stat-display",
4872
4874
  "label": "ConversionRate",
4873
- "value": "@entity.conversionRate",
4874
- "type": "stat-display"
4875
+ "value": "@entity.conversionRate"
4875
4876
  }
4876
4877
  ],
4877
- "type": "simple-grid",
4878
- "cols": 3.0
4878
+ "cols": 3.0,
4879
+ "type": "simple-grid"
4879
4880
  }
4880
4881
  ],
4881
4882
  "type": "box",
@@ -4885,13 +4886,15 @@
4885
4886
  "type": "divider"
4886
4887
  },
4887
4888
  {
4889
+ "type": "grid",
4890
+ "cols": 2.0,
4888
4891
  "children": [
4889
4892
  {
4890
4893
  "children": [
4891
4894
  {
4892
- "content": "Chart View",
4895
+ "type": "typography",
4893
4896
  "variant": "caption",
4894
- "type": "typography"
4897
+ "content": "Chart View"
4895
4898
  }
4896
4899
  ],
4897
4900
  "type": "card"
@@ -4907,24 +4910,22 @@
4907
4910
  ]
4908
4911
  }
4909
4912
  ],
4910
- "cols": 2.0,
4911
- "type": "grid",
4912
4913
  "gap": "md"
4913
4914
  },
4914
4915
  {
4915
4916
  "type": "line-chart",
4916
4917
  "data": [
4917
4918
  {
4918
- "value": 12.0,
4919
- "date": "Jan"
4919
+ "date": "Jan",
4920
+ "value": 12.0
4920
4921
  },
4921
4922
  {
4922
4923
  "date": "Feb",
4923
4924
  "value": 19.0
4924
4925
  },
4925
4926
  {
4926
- "date": "Mar",
4927
- "value": 15.0
4927
+ "value": 15.0,
4928
+ "date": "Mar"
4928
4929
  },
4929
4930
  {
4930
4931
  "value": 25.0,
@@ -4941,33 +4942,19 @@
4941
4942
  ]
4942
4943
  },
4943
4944
  {
4945
+ "type": "chart-legend",
4944
4946
  "items": [
4945
4947
  {
4946
- "color": "primary",
4947
- "label": "Current"
4948
+ "label": "Current",
4949
+ "color": "primary"
4948
4950
  },
4949
4951
  {
4950
4952
  "label": "Previous",
4951
4953
  "color": "muted"
4952
4954
  }
4953
- ],
4954
- "type": "chart-legend"
4955
+ ]
4955
4956
  },
4956
4957
  {
4957
- "nodes": [
4958
- {
4959
- "label": "Start",
4960
- "id": "a"
4961
- },
4962
- {
4963
- "id": "b",
4964
- "label": "Process"
4965
- },
4966
- {
4967
- "label": "End",
4968
- "id": "c"
4969
- }
4970
- ],
4971
4958
  "width": 400.0,
4972
4959
  "height": 200.0,
4973
4960
  "type": "graph-view",
@@ -4980,38 +4967,51 @@
4980
4967
  "source": "b",
4981
4968
  "target": "c"
4982
4969
  }
4970
+ ],
4971
+ "nodes": [
4972
+ {
4973
+ "id": "a",
4974
+ "label": "Start"
4975
+ },
4976
+ {
4977
+ "id": "b",
4978
+ "label": "Process"
4979
+ },
4980
+ {
4981
+ "id": "c",
4982
+ "label": "End"
4983
+ }
4983
4984
  ]
4984
4985
  }
4985
- ],
4986
- "direction": "vertical"
4986
+ ]
4987
4987
  }
4988
- ]
4988
+ ],
4989
+ "type": "scaled-diagram"
4989
4990
  }
4990
4991
  ],
4991
4992
  "type": "dashboard-layout",
4992
4993
  "navItems": [
4993
4994
  {
4995
+ "href": "/contacts",
4994
4996
  "label": "Contacts",
4995
- "icon": "users",
4996
- "href": "/contacts"
4997
+ "icon": "users"
4997
4998
  },
4998
4999
  {
4999
- "label": "Deals",
5000
+ "href": "/deals",
5000
5001
  "icon": "briefcase",
5001
- "href": "/deals"
5002
+ "label": "Deals"
5002
5003
  },
5003
5004
  {
5004
5005
  "href": "/pipeline",
5005
- "label": "Pipeline",
5006
- "icon": "bar-chart-2"
5006
+ "icon": "bar-chart-2",
5007
+ "label": "Pipeline"
5007
5008
  },
5008
5009
  {
5010
+ "href": "/notes",
5009
5011
  "label": "Notes",
5010
- "icon": "file-text",
5011
- "href": "/notes"
5012
+ "icon": "file-text"
5012
5013
  }
5013
- ],
5014
- "appName": "CRM"
5014
+ ]
5015
5015
  }
5016
5016
  ]
5017
5017
  ]
@@ -5153,8 +5153,8 @@
5153
5153
  "Note",
5154
5154
  {
5155
5155
  "emit": {
5156
- "failure": "NoteLoadFailed",
5157
- "success": "NoteLoaded"
5156
+ "success": "NoteLoaded",
5157
+ "failure": "NoteLoadFailed"
5158
5158
  }
5159
5159
  }
5160
5160
  ],
@@ -5162,22 +5162,22 @@
5162
5162
  "render-ui",
5163
5163
  "main",
5164
5164
  {
5165
+ "direction": "vertical",
5166
+ "align": "center",
5167
+ "className": "py-12",
5165
5168
  "children": [
5166
5169
  {
5167
5170
  "type": "spinner"
5168
5171
  },
5169
5172
  {
5170
- "color": "muted",
5171
- "content": "Loading…",
5173
+ "type": "typography",
5172
5174
  "variant": "caption",
5173
- "type": "typography"
5175
+ "color": "muted",
5176
+ "content": "Loading…"
5174
5177
  }
5175
5178
  ],
5176
- "gap": "md",
5177
- "direction": "vertical",
5178
- "align": "center",
5179
5179
  "type": "stack",
5180
- "className": "py-12"
5180
+ "gap": "md"
5181
5181
  }
5182
5182
  ]
5183
5183
  ]
@@ -5191,51 +5191,52 @@
5191
5191
  "render-ui",
5192
5192
  "main",
5193
5193
  {
5194
+ "appName": "CRM",
5194
5195
  "type": "dashboard-layout",
5195
5196
  "children": [
5196
5197
  {
5197
- "direction": "vertical",
5198
5198
  "type": "stack",
5199
+ "direction": "vertical",
5199
5200
  "gap": "lg",
5200
5201
  "className": "max-w-5xl mx-auto w-full",
5201
5202
  "children": [
5202
5203
  {
5203
5204
  "align": "center",
5205
+ "type": "stack",
5206
+ "gap": "md",
5204
5207
  "children": [
5205
5208
  {
5206
- "gap": "sm",
5207
- "align": "center",
5208
5209
  "children": [
5209
5210
  {
5210
- "type": "icon",
5211
- "name": "file-text"
5211
+ "name": "file-text",
5212
+ "type": "icon"
5212
5213
  },
5213
5214
  {
5215
+ "content": "Notes",
5214
5216
  "variant": "h2",
5215
- "type": "typography",
5216
- "content": "Notes"
5217
+ "type": "typography"
5217
5218
  }
5218
5219
  ],
5219
- "type": "stack",
5220
- "direction": "horizontal"
5220
+ "align": "center",
5221
+ "gap": "sm",
5222
+ "direction": "horizontal",
5223
+ "type": "stack"
5221
5224
  },
5222
5225
  {
5223
5226
  "children": [
5224
5227
  {
5225
- "type": "button",
5226
- "label": "Compose",
5228
+ "icon": "edit",
5227
5229
  "variant": "primary",
5230
+ "type": "button",
5228
5231
  "action": "COMPOSE",
5229
- "icon": "edit"
5232
+ "label": "Compose"
5230
5233
  }
5231
5234
  ],
5232
5235
  "type": "stack",
5233
- "gap": "sm",
5234
- "direction": "horizontal"
5236
+ "direction": "horizontal",
5237
+ "gap": "sm"
5235
5238
  }
5236
5239
  ],
5237
- "gap": "md",
5238
- "type": "stack",
5239
5240
  "direction": "horizontal",
5240
5241
  "justify": "between"
5241
5242
  },
@@ -5243,7 +5244,6 @@
5243
5244
  "type": "divider"
5244
5245
  },
5245
5246
  {
5246
- "entity": "@payload.data",
5247
5247
  "columns": [
5248
5248
  {
5249
5249
  "name": "subject",
@@ -5255,47 +5255,47 @@
5255
5255
  "name": "author"
5256
5256
  },
5257
5257
  {
5258
- "format": "date",
5258
+ "variant": "caption",
5259
5259
  "name": "createdAt",
5260
- "variant": "caption"
5260
+ "format": "date"
5261
5261
  }
5262
5262
  ],
5263
- "variant": "card",
5264
5263
  "type": "data-list",
5264
+ "gap": "sm",
5265
+ "variant": "card",
5265
5266
  "fields": [],
5266
5267
  "itemActions": [
5267
5268
  {
5268
- "variant": "ghost",
5269
5269
  "label": "View",
5270
- "event": "VIEW"
5270
+ "event": "VIEW",
5271
+ "variant": "ghost"
5271
5272
  }
5272
5273
  ],
5273
- "gap": "sm"
5274
+ "entity": "@payload.data"
5274
5275
  }
5275
5276
  ]
5276
5277
  }
5277
5278
  ],
5278
- "appName": "CRM",
5279
5279
  "navItems": [
5280
5280
  {
5281
- "icon": "users",
5281
+ "label": "Contacts",
5282
5282
  "href": "/contacts",
5283
- "label": "Contacts"
5283
+ "icon": "users"
5284
5284
  },
5285
5285
  {
5286
- "label": "Deals",
5286
+ "href": "/deals",
5287
5287
  "icon": "briefcase",
5288
- "href": "/deals"
5288
+ "label": "Deals"
5289
5289
  },
5290
5290
  {
5291
- "href": "/pipeline",
5292
5291
  "icon": "bar-chart-2",
5292
+ "href": "/pipeline",
5293
5293
  "label": "Pipeline"
5294
5294
  },
5295
5295
  {
5296
+ "href": "/notes",
5296
5297
  "label": "Notes",
5297
- "icon": "file-text",
5298
- "href": "/notes"
5298
+ "icon": "file-text"
5299
5299
  }
5300
5300
  ]
5301
5301
  }
@@ -5311,36 +5311,36 @@
5311
5311
  "render-ui",
5312
5312
  "main",
5313
5313
  {
5314
- "className": "py-12",
5315
5314
  "direction": "vertical",
5316
- "gap": "md",
5317
- "type": "stack",
5318
- "align": "center",
5319
5315
  "children": [
5320
5316
  {
5321
5317
  "type": "icon",
5322
- "name": "alert-triangle",
5323
- "color": "destructive"
5318
+ "color": "destructive",
5319
+ "name": "alert-triangle"
5324
5320
  },
5325
5321
  {
5326
- "type": "typography",
5327
5322
  "content": "Failed to load note",
5323
+ "type": "typography",
5328
5324
  "variant": "h3"
5329
5325
  },
5330
5326
  {
5331
- "content": "@payload.error",
5332
5327
  "color": "muted",
5333
5328
  "type": "typography",
5334
- "variant": "body"
5329
+ "variant": "body",
5330
+ "content": "@payload.error"
5335
5331
  },
5336
5332
  {
5337
- "label": "Retry",
5338
- "variant": "primary",
5339
- "action": "INIT",
5340
5333
  "icon": "rotate-ccw",
5341
- "type": "button"
5334
+ "variant": "primary",
5335
+ "type": "button",
5336
+ "label": "Retry",
5337
+ "action": "INIT"
5342
5338
  }
5343
- ]
5339
+ ],
5340
+ "align": "center",
5341
+ "gap": "md",
5342
+ "className": "py-12",
5343
+ "type": "stack"
5344
5344
  }
5345
5345
  ]
5346
5346
  ]
@@ -5512,21 +5512,20 @@
5512
5512
  "modal",
5513
5513
  {
5514
5514
  "gap": "md",
5515
- "type": "stack",
5516
5515
  "children": [
5517
5516
  {
5518
5517
  "type": "stack",
5519
- "gap": "sm",
5520
5518
  "direction": "horizontal",
5519
+ "gap": "sm",
5521
5520
  "children": [
5522
5521
  {
5523
- "type": "icon",
5524
- "name": "edit"
5522
+ "name": "edit",
5523
+ "type": "icon"
5525
5524
  },
5526
5525
  {
5527
5526
  "variant": "h3",
5528
- "content": "New Note",
5529
- "type": "typography"
5527
+ "type": "typography",
5528
+ "content": "New Note"
5530
5529
  }
5531
5530
  ]
5532
5531
  },
@@ -5535,16 +5534,17 @@
5535
5534
  },
5536
5535
  {
5537
5536
  "mode": "create",
5538
- "cancelEvent": "CLOSE",
5539
5537
  "fields": [
5540
5538
  "subject",
5541
5539
  "body",
5542
5540
  "author"
5543
5541
  ],
5542
+ "type": "form-section",
5544
5543
  "submitEvent": "SEND",
5545
- "type": "form-section"
5544
+ "cancelEvent": "CLOSE"
5546
5545
  }
5547
5546
  ],
5547
+ "type": "stack",
5548
5548
  "direction": "vertical"
5549
5549
  }
5550
5550
  ]
@@ -5720,34 +5720,33 @@
5720
5720
  "fetch",
5721
5721
  "Note",
5722
5722
  {
5723
+ "id": "@payload.id",
5723
5724
  "emit": {
5724
- "success": "NoteLoaded",
5725
- "failure": "NoteLoadFailed"
5726
- },
5727
- "id": "@payload.id"
5725
+ "failure": "NoteLoadFailed",
5726
+ "success": "NoteLoaded"
5727
+ }
5728
5728
  }
5729
5729
  ],
5730
5730
  [
5731
5731
  "render-ui",
5732
5732
  "modal",
5733
5733
  {
5734
- "gap": "md",
5735
- "type": "stack",
5734
+ "direction": "vertical",
5736
5735
  "children": [
5737
5736
  {
5738
- "type": "stack",
5739
5737
  "direction": "horizontal",
5738
+ "type": "stack",
5740
5739
  "gap": "sm",
5741
5740
  "align": "center",
5742
5741
  "children": [
5743
5742
  {
5744
- "name": "eye",
5745
- "type": "icon"
5743
+ "type": "icon",
5744
+ "name": "eye"
5746
5745
  },
5747
5746
  {
5748
5747
  "variant": "h3",
5749
- "type": "typography",
5750
- "content": "@entity.subject"
5748
+ "content": "@entity.subject",
5749
+ "type": "typography"
5751
5750
  }
5752
5751
  ]
5753
5752
  },
@@ -5755,38 +5754,38 @@
5755
5754
  "type": "divider"
5756
5755
  },
5757
5756
  {
5758
- "type": "stack",
5759
5757
  "direction": "horizontal",
5760
5758
  "gap": "md",
5761
5759
  "children": [
5762
5760
  {
5761
+ "type": "typography",
5763
5762
  "variant": "caption",
5764
- "content": "Subject",
5765
- "type": "typography"
5763
+ "content": "Subject"
5766
5764
  },
5767
5765
  {
5768
- "variant": "body",
5769
5766
  "type": "typography",
5767
+ "variant": "body",
5770
5768
  "content": "@entity.subject"
5771
5769
  }
5772
- ]
5770
+ ],
5771
+ "type": "stack"
5773
5772
  },
5774
5773
  {
5775
- "type": "stack",
5776
5774
  "children": [
5777
5775
  {
5778
- "type": "typography",
5776
+ "content": "Body",
5779
5777
  "variant": "caption",
5780
- "content": "Body"
5778
+ "type": "typography"
5781
5779
  },
5782
5780
  {
5783
5781
  "content": "@entity.body",
5784
- "type": "typography",
5785
- "variant": "body"
5782
+ "variant": "body",
5783
+ "type": "typography"
5786
5784
  }
5787
5785
  ],
5788
- "gap": "md",
5789
- "direction": "horizontal"
5786
+ "type": "stack",
5787
+ "direction": "horizontal",
5788
+ "gap": "md"
5790
5789
  },
5791
5790
  {
5792
5791
  "direction": "horizontal",
@@ -5794,53 +5793,54 @@
5794
5793
  "type": "stack",
5795
5794
  "children": [
5796
5795
  {
5797
- "content": "Author",
5796
+ "variant": "caption",
5798
5797
  "type": "typography",
5799
- "variant": "caption"
5798
+ "content": "Author"
5800
5799
  },
5801
5800
  {
5801
+ "content": "@entity.author",
5802
5802
  "type": "typography",
5803
- "variant": "body",
5804
- "content": "@entity.author"
5803
+ "variant": "body"
5805
5804
  }
5806
5805
  ]
5807
5806
  },
5808
5807
  {
5809
- "gap": "md",
5810
- "direction": "horizontal",
5811
- "type": "stack",
5812
5808
  "children": [
5813
5809
  {
5814
5810
  "type": "typography",
5815
- "content": "Created At",
5816
- "variant": "caption"
5811
+ "variant": "caption",
5812
+ "content": "Created At"
5817
5813
  },
5818
5814
  {
5819
- "type": "typography",
5820
5815
  "variant": "body",
5821
- "content": "@entity.createdAt"
5816
+ "content": "@entity.createdAt",
5817
+ "type": "typography"
5822
5818
  }
5823
- ]
5819
+ ],
5820
+ "type": "stack",
5821
+ "gap": "md",
5822
+ "direction": "horizontal"
5824
5823
  },
5825
5824
  {
5826
5825
  "type": "divider"
5827
5826
  },
5828
5827
  {
5828
+ "gap": "sm",
5829
+ "direction": "horizontal",
5830
+ "type": "stack",
5829
5831
  "justify": "end",
5830
5832
  "children": [
5831
5833
  {
5834
+ "action": "CLOSE",
5832
5835
  "label": "Close",
5833
5836
  "variant": "ghost",
5834
- "type": "button",
5835
- "action": "CLOSE"
5837
+ "type": "button"
5836
5838
  }
5837
- ],
5838
- "type": "stack",
5839
- "direction": "horizontal",
5840
- "gap": "sm"
5839
+ ]
5841
5840
  }
5842
5841
  ],
5843
- "direction": "vertical"
5842
+ "gap": "md",
5843
+ "type": "stack"
5844
5844
  }
5845
5845
  ]
5846
5846
  ]