@almadar/std 8.2.0 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/behaviors/registry/agent/atoms/std-agent-activity-log.orb +74 -74
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +103 -103
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +104 -98
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +126 -111
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +406 -400
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +87 -87
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +82 -82
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +120 -114
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +68 -68
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +126 -126
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +208 -208
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +342 -342
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +77 -76
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +181 -181
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +183 -183
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +139 -139
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +124 -124
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1124 -1124
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +3064 -3064
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2165 -2165
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +917 -917
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +759 -759
  24. package/behaviors/registry/app/organisms/std-api-gateway.orb +827 -827
  25. package/behaviors/registry/app/organisms/std-booking-system.orb +1181 -1181
  26. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +745 -745
  27. package/behaviors/registry/app/organisms/std-cms.orb +432 -432
  28. package/behaviors/registry/app/organisms/std-coding-academy.orb +378 -378
  29. package/behaviors/registry/app/organisms/std-crm.orb +813 -813
  30. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1290 -1290
  31. package/behaviors/registry/app/organisms/std-ecommerce.orb +989 -989
  32. package/behaviors/registry/app/organisms/std-finance-tracker.orb +575 -575
  33. package/behaviors/registry/app/organisms/std-healthcare.orb +1374 -1374
  34. package/behaviors/registry/app/organisms/std-helpdesk.orb +714 -714
  35. package/behaviors/registry/app/organisms/std-hr-portal.orb +1175 -1175
  36. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +834 -834
  37. package/behaviors/registry/app/organisms/std-lms.orb +858 -858
  38. package/behaviors/registry/app/organisms/std-project-manager.orb +654 -654
  39. package/behaviors/registry/app/organisms/std-realtime-chat.orb +720 -720
  40. package/behaviors/registry/app/organisms/std-social-feed.orb +197 -197
  41. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +744 -744
  42. package/behaviors/registry/core/atoms/std-browse.orb +64 -64
  43. package/behaviors/registry/core/atoms/std-cache-aside.orb +93 -93
  44. package/behaviors/registry/core/atoms/std-calendar.orb +52 -52
  45. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +178 -178
  46. package/behaviors/registry/core/atoms/std-confirmation.orb +24 -42
  47. package/behaviors/registry/core/atoms/std-display.orb +413 -413
  48. package/behaviors/registry/core/atoms/std-drawer.orb +61 -61
  49. package/behaviors/registry/core/atoms/std-filter.orb +50 -50
  50. package/behaviors/registry/core/atoms/std-gallery.orb +53 -53
  51. package/behaviors/registry/core/atoms/std-modal.orb +13 -31
  52. package/behaviors/registry/core/atoms/std-pagination.orb +48 -48
  53. package/behaviors/registry/core/atoms/std-push.orb +47 -47
  54. package/behaviors/registry/core/atoms/std-rate-limiter.orb +176 -176
  55. package/behaviors/registry/core/atoms/std-related.orb +31 -31
  56. package/behaviors/registry/core/atoms/std-search.orb +75 -75
  57. package/behaviors/registry/core/atoms/std-selection.orb +91 -91
  58. package/behaviors/registry/core/atoms/std-tabs.orb +45 -45
  59. package/behaviors/registry/core/molecules/std-cart.orb +49 -49
  60. package/behaviors/registry/core/molecules/std-filtered-list.orb +8 -8
  61. package/behaviors/registry/core/molecules/std-form-advanced.orb +115 -115
  62. package/behaviors/registry/core/molecules/std-list.orb +58 -58
  63. package/behaviors/registry/core/molecules/std-wizard-form.orb +136 -136
  64. package/behaviors/registry/game/atoms/std-collision.orb +132 -132
  65. package/behaviors/registry/game/atoms/std-combat.orb +59 -59
  66. package/behaviors/registry/game/atoms/std-dialogue-box.orb +26 -26
  67. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +49 -49
  68. package/behaviors/registry/game/atoms/std-gameflow.orb +32 -32
  69. package/behaviors/registry/game/atoms/std-movement.orb +287 -287
  70. package/behaviors/registry/game/atoms/std-overworld.orb +64 -64
  71. package/behaviors/registry/game/atoms/std-physics2d.orb +80 -80
  72. package/behaviors/registry/game/atoms/std-quest.orb +133 -133
  73. package/behaviors/registry/game/atoms/std-timer.orb +266 -275
  74. package/behaviors/registry/game/organisms/std-arcade-game.orb +149 -149
  75. package/behaviors/registry/game/organisms/std-logic-training.orb +78 -78
  76. package/behaviors/registry/game/organisms/std-platformer-app.orb +207 -207
  77. package/behaviors/registry/game/organisms/std-puzzle-app.orb +103 -103
  78. package/behaviors/registry/game/organisms/std-rpg-game.orb +368 -368
  79. package/behaviors/registry/game/organisms/std-stem-lab.orb +331 -331
  80. package/behaviors/registry/game/organisms/std-strategy-game.orb +528 -528
  81. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +15 -15
  82. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +76 -76
  83. package/behaviors/registry/service/atoms/std-service-email.orb +78 -78
  84. package/behaviors/registry/service/atoms/std-service-github.orb +91 -91
  85. package/behaviors/registry/service/atoms/std-service-llm.orb +107 -107
  86. package/behaviors/registry/service/atoms/std-service-oauth.orb +113 -113
  87. package/behaviors/registry/service/atoms/std-service-redis.orb +101 -101
  88. package/behaviors/registry/service/atoms/std-service-storage.orb +105 -105
  89. package/behaviors/registry/service/atoms/std-service-stripe.orb +105 -105
  90. package/behaviors/registry/service/atoms/std-service-twilio.orb +92 -92
  91. package/behaviors/registry/service/atoms/std-service-youtube.orb +113 -113
  92. package/behaviors/registry/service/organisms/std-service-marketplace.orb +943 -943
  93. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +965 -965
  94. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +74 -74
  95. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +103 -103
  96. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +104 -98
  97. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +126 -111
  98. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +406 -400
  99. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +87 -87
  100. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +82 -82
  101. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +120 -114
  102. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +68 -68
  103. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +126 -126
  104. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +208 -208
  105. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +342 -342
  106. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +77 -76
  107. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +181 -181
  108. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +183 -183
  109. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +139 -139
  110. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +124 -124
  111. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  112. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1124 -1124
  113. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +3064 -3064
  114. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2165 -2165
  115. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +917 -917
  116. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +759 -759
  117. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +827 -827
  118. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1181 -1181
  119. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +745 -745
  120. package/dist/behaviors/registry/app/organisms/std-cms.orb +432 -432
  121. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +378 -378
  122. package/dist/behaviors/registry/app/organisms/std-crm.orb +813 -813
  123. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1290 -1290
  124. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +989 -989
  125. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +575 -575
  126. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1374 -1374
  127. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +714 -714
  128. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1175 -1175
  129. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +834 -834
  130. package/dist/behaviors/registry/app/organisms/std-lms.orb +858 -858
  131. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +654 -654
  132. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +720 -720
  133. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +197 -197
  134. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +744 -744
  135. package/dist/behaviors/registry/core/atoms/std-browse.orb +64 -64
  136. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +93 -93
  137. package/dist/behaviors/registry/core/atoms/std-calendar.orb +52 -52
  138. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +178 -178
  139. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +24 -42
  140. package/dist/behaviors/registry/core/atoms/std-display.orb +413 -413
  141. package/dist/behaviors/registry/core/atoms/std-drawer.orb +61 -61
  142. package/dist/behaviors/registry/core/atoms/std-filter.orb +50 -50
  143. package/dist/behaviors/registry/core/atoms/std-gallery.orb +53 -53
  144. package/dist/behaviors/registry/core/atoms/std-modal.orb +13 -31
  145. package/dist/behaviors/registry/core/atoms/std-pagination.orb +48 -48
  146. package/dist/behaviors/registry/core/atoms/std-push.orb +47 -47
  147. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +176 -176
  148. package/dist/behaviors/registry/core/atoms/std-related.orb +31 -31
  149. package/dist/behaviors/registry/core/atoms/std-search.orb +75 -75
  150. package/dist/behaviors/registry/core/atoms/std-selection.orb +91 -91
  151. package/dist/behaviors/registry/core/atoms/std-tabs.orb +45 -45
  152. package/dist/behaviors/registry/core/molecules/std-cart.orb +49 -49
  153. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +8 -8
  154. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +115 -115
  155. package/dist/behaviors/registry/core/molecules/std-list.orb +58 -58
  156. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +136 -136
  157. package/dist/behaviors/registry/game/atoms/std-collision.orb +132 -132
  158. package/dist/behaviors/registry/game/atoms/std-combat.orb +59 -59
  159. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +26 -26
  160. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +49 -49
  161. package/dist/behaviors/registry/game/atoms/std-gameflow.orb +32 -32
  162. package/dist/behaviors/registry/game/atoms/std-movement.orb +287 -287
  163. package/dist/behaviors/registry/game/atoms/std-overworld.orb +64 -64
  164. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +80 -80
  165. package/dist/behaviors/registry/game/atoms/std-quest.orb +133 -133
  166. package/dist/behaviors/registry/game/atoms/std-timer.orb +266 -275
  167. package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +149 -149
  168. package/dist/behaviors/registry/game/organisms/std-logic-training.orb +78 -78
  169. package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +207 -207
  170. package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +103 -103
  171. package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +368 -368
  172. package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +331 -331
  173. package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +528 -528
  174. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +15 -15
  175. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +76 -76
  176. package/dist/behaviors/registry/service/atoms/std-service-email.orb +78 -78
  177. package/dist/behaviors/registry/service/atoms/std-service-github.orb +91 -91
  178. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +107 -107
  179. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +113 -113
  180. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +101 -101
  181. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +105 -105
  182. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +105 -105
  183. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +92 -92
  184. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +113 -113
  185. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +943 -943
  186. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +965 -965
  187. package/package.json +1 -1
@@ -643,8 +643,8 @@
643
643
  "Product",
644
644
  {
645
645
  "emit": {
646
- "failure": "ProductLoadFailed",
647
- "success": "ProductLoaded"
646
+ "success": "ProductLoaded",
647
+ "failure": "ProductLoadFailed"
648
648
  }
649
649
  }
650
650
  ],
@@ -652,22 +652,22 @@
652
652
  "render-ui",
653
653
  "main",
654
654
  {
655
+ "direction": "vertical",
655
656
  "className": "py-12",
657
+ "gap": "md",
656
658
  "children": [
657
659
  {
658
660
  "type": "spinner"
659
661
  },
660
662
  {
661
- "color": "muted",
662
- "type": "typography",
663
+ "content": "Loading…",
663
664
  "variant": "caption",
664
- "content": "Loading…"
665
+ "type": "typography",
666
+ "color": "muted"
665
667
  }
666
668
  ],
667
- "gap": "md",
668
- "align": "center",
669
- "direction": "vertical",
670
- "type": "stack"
669
+ "type": "stack",
670
+ "align": "center"
671
671
  }
672
672
  ]
673
673
  ]
@@ -681,23 +681,17 @@
681
681
  "render-ui",
682
682
  "main",
683
683
  {
684
- "type": "dashboard-layout",
685
- "appName": "ServiceMarketplace",
686
684
  "children": [
687
685
  {
688
- "className": "max-w-5xl mx-auto w-full",
689
- "gap": "lg",
690
686
  "type": "stack",
691
687
  "direction": "vertical",
688
+ "className": "max-w-5xl mx-auto w-full",
692
689
  "children": [
693
690
  {
694
- "align": "center",
695
- "gap": "md",
696
- "justify": "between",
697
691
  "children": [
698
692
  {
699
- "direction": "horizontal",
700
693
  "align": "center",
694
+ "direction": "horizontal",
701
695
  "children": [
702
696
  {
703
697
  "name": "shopping-bag",
@@ -705,113 +699,119 @@
705
699
  },
706
700
  {
707
701
  "type": "typography",
708
- "variant": "h2",
709
- "content": "Products"
702
+ "content": "Products",
703
+ "variant": "h2"
710
704
  }
711
705
  ],
712
706
  "type": "stack",
713
707
  "gap": "sm"
714
708
  },
715
709
  {
716
- "direction": "horizontal",
717
710
  "children": [
718
711
  {
719
- "variant": "primary",
720
712
  "type": "button",
721
- "icon": "plus",
722
713
  "label": "Create Product",
723
- "action": "CREATE"
714
+ "action": "CREATE",
715
+ "icon": "plus",
716
+ "variant": "primary"
724
717
  }
725
718
  ],
726
719
  "type": "stack",
720
+ "direction": "horizontal",
727
721
  "gap": "sm"
728
722
  }
729
723
  ],
730
724
  "type": "stack",
731
- "direction": "horizontal"
725
+ "gap": "md",
726
+ "direction": "horizontal",
727
+ "align": "center",
728
+ "justify": "between"
732
729
  },
733
730
  {
734
731
  "type": "divider"
735
732
  },
736
733
  {
734
+ "entity": "@payload.data",
735
+ "type": "data-grid",
737
736
  "itemActions": [
738
737
  {
739
- "variant": "ghost",
738
+ "event": "VIEW",
740
739
  "label": "View",
741
- "event": "VIEW"
740
+ "variant": "ghost"
742
741
  },
743
742
  {
744
743
  "label": "Edit",
745
- "event": "EDIT",
746
- "variant": "ghost"
744
+ "variant": "ghost",
745
+ "event": "EDIT"
747
746
  },
748
747
  {
749
- "label": "Delete",
750
748
  "variant": "danger",
751
- "event": "DELETE"
749
+ "event": "DELETE",
750
+ "label": "Delete"
752
751
  }
753
752
  ],
753
+ "fields": [],
754
754
  "columns": [
755
755
  {
756
+ "variant": "h4",
756
757
  "name": "name",
757
- "icon": "shopping-bag",
758
758
  "label": "Name",
759
- "variant": "h4"
759
+ "icon": "shopping-bag"
760
760
  },
761
761
  {
762
762
  "label": "Description",
763
- "variant": "badge",
764
763
  "name": "description",
764
+ "variant": "badge",
765
765
  "colorMap": {
766
- "active": "success",
767
- "completed": "success",
768
- "scheduled": "warning",
769
766
  "archived": "neutral",
770
- "failed": "destructive",
771
767
  "done": "success",
772
- "disabled": "neutral",
773
768
  "pending": "warning",
774
- "inactive": "neutral",
775
769
  "error": "destructive",
776
- "draft": "warning",
777
- "cancelled": "destructive"
770
+ "cancelled": "destructive",
771
+ "scheduled": "warning",
772
+ "completed": "success",
773
+ "disabled": "neutral",
774
+ "inactive": "neutral",
775
+ "active": "success",
776
+ "failed": "destructive",
777
+ "draft": "warning"
778
778
  }
779
779
  },
780
780
  {
781
781
  "variant": "caption",
782
- "name": "price",
783
- "label": "Price"
782
+ "label": "Price",
783
+ "name": "price"
784
784
  }
785
- ],
786
- "entity": "@payload.data",
787
- "type": "data-grid",
788
- "fields": []
785
+ ]
789
786
  }
790
- ]
787
+ ],
788
+ "gap": "lg"
791
789
  }
792
790
  ],
791
+ "appName": "ServiceMarketplace",
793
792
  "navItems": [
794
793
  {
795
- "icon": "package",
796
794
  "label": "Products",
795
+ "icon": "package",
797
796
  "href": "/products"
798
797
  },
799
798
  {
800
799
  "icon": "layout-list",
801
- "href": "/login",
802
- "label": "Login"
800
+ "label": "Login",
801
+ "href": "/login"
803
802
  },
804
803
  {
805
804
  "href": "/checkout",
806
- "label": "Checkout",
807
- "icon": "credit-card"
805
+ "icon": "credit-card",
806
+ "label": "Checkout"
808
807
  },
809
808
  {
810
809
  "label": "Orders",
811
810
  "href": "/orders",
812
811
  "icon": "clipboard-list"
813
812
  }
814
- ]
813
+ ],
814
+ "type": "dashboard-layout"
815
815
  }
816
816
  ]
817
817
  ]
@@ -825,36 +825,36 @@
825
825
  "render-ui",
826
826
  "main",
827
827
  {
828
- "className": "py-12",
829
828
  "gap": "md",
830
- "align": "center",
829
+ "className": "py-12",
830
+ "direction": "vertical",
831
831
  "children": [
832
832
  {
833
- "name": "alert-triangle",
834
833
  "type": "icon",
834
+ "name": "alert-triangle",
835
835
  "color": "destructive"
836
836
  },
837
837
  {
838
+ "content": "Failed to load product",
838
839
  "variant": "h3",
839
- "type": "typography",
840
- "content": "Failed to load product"
840
+ "type": "typography"
841
841
  },
842
842
  {
843
- "content": "@payload.error",
844
- "type": "typography",
845
843
  "variant": "body",
846
- "color": "muted"
844
+ "color": "muted",
845
+ "content": "@payload.error",
846
+ "type": "typography"
847
847
  },
848
848
  {
849
- "type": "button",
850
849
  "label": "Retry",
851
850
  "variant": "primary",
851
+ "type": "button",
852
852
  "icon": "rotate-ccw",
853
853
  "action": "INIT"
854
854
  }
855
855
  ],
856
- "direction": "vertical",
857
- "type": "stack"
856
+ "type": "stack",
857
+ "align": "center"
858
858
  }
859
859
  ]
860
860
  ]
@@ -1038,8 +1038,8 @@
1038
1038
  "Product",
1039
1039
  {
1040
1040
  "emit": {
1041
- "failure": "ProductLoadFailed",
1042
- "success": "ProductLoaded"
1041
+ "success": "ProductLoaded",
1042
+ "failure": "ProductLoadFailed"
1043
1043
  }
1044
1044
  }
1045
1045
  ],
@@ -1047,24 +1047,24 @@
1047
1047
  "render-ui",
1048
1048
  "modal",
1049
1049
  {
1050
- "gap": "md",
1051
1050
  "type": "stack",
1051
+ "direction": "vertical",
1052
1052
  "children": [
1053
1053
  {
1054
1054
  "direction": "horizontal",
1055
+ "type": "stack",
1056
+ "gap": "sm",
1055
1057
  "children": [
1056
1058
  {
1057
- "name": "plus-circle",
1058
- "type": "icon"
1059
+ "type": "icon",
1060
+ "name": "plus-circle"
1059
1061
  },
1060
1062
  {
1061
- "variant": "h3",
1062
1063
  "type": "typography",
1063
- "content": "Create Product"
1064
+ "content": "Create Product",
1065
+ "variant": "h3"
1064
1066
  }
1065
- ],
1066
- "type": "stack",
1067
- "gap": "sm"
1067
+ ]
1068
1068
  },
1069
1069
  {
1070
1070
  "type": "divider"
@@ -1083,7 +1083,7 @@
1083
1083
  "submitEvent": "SAVE"
1084
1084
  }
1085
1085
  ],
1086
- "direction": "vertical"
1086
+ "gap": "md"
1087
1087
  }
1088
1088
  ]
1089
1089
  ]
@@ -1347,34 +1347,31 @@
1347
1347
  "render-ui",
1348
1348
  "modal",
1349
1349
  {
1350
- "gap": "md",
1351
- "type": "stack",
1352
1350
  "direction": "vertical",
1353
1351
  "children": [
1354
1352
  {
1355
- "direction": "horizontal",
1356
- "type": "stack",
1353
+ "gap": "sm",
1357
1354
  "children": [
1358
1355
  {
1359
1356
  "type": "icon",
1360
1357
  "name": "edit"
1361
1358
  },
1362
1359
  {
1363
- "variant": "h3",
1360
+ "content": "Edit Product",
1364
1361
  "type": "typography",
1365
- "content": "Edit Product"
1362
+ "variant": "h3"
1366
1363
  }
1367
1364
  ],
1368
- "gap": "sm"
1365
+ "type": "stack",
1366
+ "direction": "horizontal"
1369
1367
  },
1370
1368
  {
1371
1369
  "type": "divider"
1372
1370
  },
1373
1371
  {
1374
- "mode": "edit",
1375
- "type": "form-section",
1376
- "entity": "@payload.row",
1377
1372
  "submitEvent": "SAVE",
1373
+ "type": "form-section",
1374
+ "mode": "edit",
1378
1375
  "cancelEvent": "CLOSE",
1379
1376
  "fields": [
1380
1377
  "name",
@@ -1382,9 +1379,12 @@
1382
1379
  "price",
1383
1380
  "category",
1384
1381
  "inStock"
1385
- ]
1382
+ ],
1383
+ "entity": "@payload.row"
1386
1384
  }
1387
- ]
1385
+ ],
1386
+ "gap": "md",
1387
+ "type": "stack"
1388
1388
  }
1389
1389
  ]
1390
1390
  ]
@@ -1583,86 +1583,85 @@
1583
1583
  "modal",
1584
1584
  {
1585
1585
  "gap": "md",
1586
- "direction": "vertical",
1587
- "type": "stack",
1588
1586
  "children": [
1589
1587
  {
1590
- "type": "stack",
1591
- "direction": "horizontal",
1592
1588
  "gap": "sm",
1589
+ "type": "stack",
1593
1590
  "align": "center",
1594
1591
  "children": [
1595
1592
  {
1596
- "type": "icon",
1597
- "name": "eye"
1593
+ "name": "eye",
1594
+ "type": "icon"
1598
1595
  },
1599
1596
  {
1600
- "content": "@entity.name",
1597
+ "type": "typography",
1601
1598
  "variant": "h3",
1602
- "type": "typography"
1599
+ "content": "@entity.name"
1603
1600
  }
1604
- ]
1601
+ ],
1602
+ "direction": "horizontal"
1605
1603
  },
1606
1604
  {
1607
1605
  "type": "divider"
1608
1606
  },
1609
1607
  {
1610
- "gap": "md",
1611
1608
  "direction": "horizontal",
1609
+ "gap": "md",
1610
+ "type": "stack",
1612
1611
  "children": [
1613
1612
  {
1614
- "content": "Name",
1615
1613
  "type": "typography",
1614
+ "content": "Name",
1616
1615
  "variant": "caption"
1617
1616
  },
1618
1617
  {
1619
- "type": "typography",
1618
+ "content": "@entity.name",
1620
1619
  "variant": "body",
1621
- "content": "@entity.name"
1620
+ "type": "typography"
1622
1621
  }
1623
- ],
1624
- "type": "stack"
1622
+ ]
1625
1623
  },
1626
1624
  {
1627
- "direction": "horizontal",
1625
+ "gap": "md",
1628
1626
  "type": "stack",
1627
+ "direction": "horizontal",
1629
1628
  "children": [
1630
1629
  {
1631
- "content": "Description",
1632
1630
  "type": "typography",
1633
- "variant": "caption"
1631
+ "variant": "caption",
1632
+ "content": "Description"
1634
1633
  },
1635
1634
  {
1636
- "variant": "body",
1635
+ "type": "typography",
1637
1636
  "content": "@entity.description",
1638
- "type": "typography"
1637
+ "variant": "body"
1639
1638
  }
1640
- ],
1641
- "gap": "md"
1639
+ ]
1642
1640
  },
1643
1641
  {
1644
- "gap": "md",
1642
+ "type": "stack",
1643
+ "direction": "horizontal",
1645
1644
  "children": [
1646
1645
  {
1647
- "content": "Price",
1646
+ "variant": "caption",
1648
1647
  "type": "typography",
1649
- "variant": "caption"
1648
+ "content": "Price"
1650
1649
  },
1651
1650
  {
1651
+ "type": "typography",
1652
1652
  "content": "@entity.price",
1653
- "variant": "body",
1654
- "type": "typography"
1653
+ "variant": "body"
1655
1654
  }
1656
1655
  ],
1657
- "direction": "horizontal",
1658
- "type": "stack"
1656
+ "gap": "md"
1659
1657
  },
1660
1658
  {
1661
- "type": "stack",
1659
+ "direction": "horizontal",
1660
+ "gap": "md",
1662
1661
  "children": [
1663
1662
  {
1664
- "type": "typography",
1665
1663
  "variant": "caption",
1664
+ "type": "typography",
1666
1665
  "content": "Category"
1667
1666
  },
1668
1667
  {
@@ -1671,51 +1670,52 @@
1671
1670
  "content": "@entity.category"
1672
1671
  }
1673
1672
  ],
1674
- "gap": "md",
1675
- "direction": "horizontal"
1673
+ "type": "stack"
1676
1674
  },
1677
1675
  {
1678
- "type": "stack",
1679
- "direction": "horizontal",
1680
1676
  "gap": "md",
1677
+ "direction": "horizontal",
1681
1678
  "children": [
1682
1679
  {
1683
- "content": "In Stock",
1680
+ "variant": "caption",
1684
1681
  "type": "typography",
1685
- "variant": "caption"
1682
+ "content": "In Stock"
1686
1683
  },
1687
1684
  {
1685
+ "content": "@entity.inStock",
1688
1686
  "type": "typography",
1689
- "variant": "body",
1690
- "content": "@entity.inStock"
1687
+ "variant": "body"
1691
1688
  }
1692
- ]
1689
+ ],
1690
+ "type": "stack"
1693
1691
  },
1694
1692
  {
1695
1693
  "type": "divider"
1696
1694
  },
1697
1695
  {
1698
- "gap": "sm",
1699
1696
  "type": "stack",
1697
+ "justify": "end",
1700
1698
  "direction": "horizontal",
1699
+ "gap": "sm",
1701
1700
  "children": [
1702
1701
  {
1703
1702
  "type": "button",
1704
1703
  "icon": "edit",
1705
- "label": "Edit",
1704
+ "variant": "primary",
1706
1705
  "action": "EDIT",
1707
- "variant": "primary"
1706
+ "label": "Edit"
1708
1707
  },
1709
1708
  {
1710
- "variant": "ghost",
1711
1709
  "type": "button",
1710
+ "label": "Close",
1712
1711
  "action": "CLOSE",
1713
- "label": "Close"
1712
+ "variant": "ghost"
1714
1713
  }
1715
- ],
1716
- "justify": "end"
1714
+ ]
1717
1715
  }
1718
- ]
1716
+ ],
1717
+ "direction": "vertical",
1718
+ "type": "stack"
1719
1719
  }
1720
1720
  ]
1721
1721
  ]
@@ -1961,56 +1961,56 @@
1961
1961
  "render-ui",
1962
1962
  "modal",
1963
1963
  {
1964
- "type": "stack",
1965
- "direction": "vertical",
1966
1964
  "children": [
1967
1965
  {
1966
+ "type": "stack",
1968
1967
  "children": [
1969
1968
  {
1970
1969
  "type": "icon",
1971
1970
  "name": "alert-triangle"
1972
1971
  },
1973
1972
  {
1974
- "variant": "h3",
1975
1973
  "content": "Delete Product",
1976
- "type": "typography"
1974
+ "type": "typography",
1975
+ "variant": "h3"
1977
1976
  }
1978
1977
  ],
1979
- "type": "stack",
1980
- "align": "center",
1981
1978
  "gap": "sm",
1979
+ "align": "center",
1982
1980
  "direction": "horizontal"
1983
1981
  },
1984
1982
  {
1985
1983
  "type": "divider"
1986
1984
  },
1987
1985
  {
1988
- "message": "This action cannot be undone.",
1989
1986
  "variant": "error",
1990
- "type": "alert"
1987
+ "type": "alert",
1988
+ "message": "This action cannot be undone."
1991
1989
  },
1992
1990
  {
1993
- "type": "stack",
1994
- "gap": "sm",
1995
1991
  "direction": "horizontal",
1996
- "justify": "end",
1992
+ "gap": "sm",
1993
+ "type": "stack",
1997
1994
  "children": [
1998
1995
  {
1999
1996
  "label": "Cancel",
1997
+ "variant": "ghost",
2000
1998
  "type": "button",
2001
- "action": "CANCEL",
2002
- "variant": "ghost"
1999
+ "action": "CANCEL"
2003
2000
  },
2004
2001
  {
2005
- "variant": "danger",
2002
+ "label": "Delete",
2003
+ "action": "CONFIRM_DELETE",
2006
2004
  "icon": "check",
2007
2005
  "type": "button",
2008
- "action": "CONFIRM_DELETE",
2009
- "label": "Delete"
2006
+ "variant": "danger"
2010
2007
  }
2011
- ]
2008
+ ],
2009
+ "justify": "end"
2012
2010
  }
2013
2011
  ],
2012
+ "type": "stack",
2013
+ "direction": "vertical",
2014
2014
  "gap": "md"
2015
2015
  }
2016
2016
  ]
@@ -2387,39 +2387,15 @@
2387
2387
  "render-ui",
2388
2388
  "main",
2389
2389
  {
2390
- "type": "dashboard-layout",
2391
- "appName": "ServiceMarketplace",
2392
- "navItems": [
2390
+ "children": [
2393
2391
  {
2394
- "href": "/products",
2395
- "icon": "package",
2396
- "label": "Products"
2397
- },
2398
- {
2399
- "icon": "layout-list",
2400
- "label": "Login",
2401
- "href": "/login"
2402
- },
2403
- {
2404
- "icon": "credit-card",
2405
- "label": "Checkout",
2406
- "href": "/checkout"
2407
- },
2408
- {
2409
- "href": "/orders",
2410
- "icon": "clipboard-list",
2411
- "label": "Orders"
2412
- }
2413
- ],
2414
- "children": [
2415
- {
2416
- "direction": "vertical",
2392
+ "align": "center",
2417
2393
  "type": "stack",
2394
+ "direction": "vertical",
2395
+ "gap": "lg",
2418
2396
  "children": [
2419
2397
  {
2420
2398
  "gap": "md",
2421
- "direction": "horizontal",
2422
- "type": "stack",
2423
2399
  "align": "center",
2424
2400
  "children": [
2425
2401
  {
@@ -2427,11 +2403,13 @@
2427
2403
  "name": "lock"
2428
2404
  },
2429
2405
  {
2430
- "content": "Sign In",
2431
2406
  "variant": "h2",
2432
- "type": "typography"
2407
+ "type": "typography",
2408
+ "content": "Sign In"
2433
2409
  }
2434
- ]
2410
+ ],
2411
+ "direction": "horizontal",
2412
+ "type": "stack"
2435
2413
  },
2436
2414
  {
2437
2415
  "type": "divider"
@@ -2440,12 +2418,12 @@
2440
2418
  "type": "select",
2441
2419
  "options": [
2442
2420
  {
2443
- "label": "Google",
2444
- "value": "google"
2421
+ "value": "google",
2422
+ "label": "Google"
2445
2423
  },
2446
2424
  {
2447
- "value": "github",
2448
- "label": "GitHub"
2425
+ "label": "GitHub",
2426
+ "value": "github"
2449
2427
  },
2450
2428
  {
2451
2429
  "label": "Microsoft",
@@ -2454,17 +2432,39 @@
2454
2432
  ]
2455
2433
  },
2456
2434
  {
2457
- "label": "Login",
2458
- "variant": "primary",
2435
+ "type": "button",
2459
2436
  "icon": "log-in",
2437
+ "variant": "primary",
2460
2438
  "action": "LOGIN",
2461
- "type": "button"
2439
+ "label": "Login"
2462
2440
  }
2463
- ],
2464
- "align": "center",
2465
- "gap": "lg"
2441
+ ]
2466
2442
  }
2467
- ]
2443
+ ],
2444
+ "navItems": [
2445
+ {
2446
+ "href": "/products",
2447
+ "label": "Products",
2448
+ "icon": "package"
2449
+ },
2450
+ {
2451
+ "icon": "layout-list",
2452
+ "label": "Login",
2453
+ "href": "/login"
2454
+ },
2455
+ {
2456
+ "href": "/checkout",
2457
+ "icon": "credit-card",
2458
+ "label": "Checkout"
2459
+ },
2460
+ {
2461
+ "href": "/orders",
2462
+ "label": "Orders",
2463
+ "icon": "clipboard-list"
2464
+ }
2465
+ ],
2466
+ "appName": "ServiceMarketplace",
2467
+ "type": "dashboard-layout"
2468
2468
  }
2469
2469
  ]
2470
2470
  ]
@@ -2478,37 +2478,37 @@
2478
2478
  "render-ui",
2479
2479
  "main",
2480
2480
  {
2481
+ "appName": "ServiceMarketplace",
2481
2482
  "type": "dashboard-layout",
2483
+ "children": [
2484
+ {
2485
+ "title": "Authorizing...",
2486
+ "message": "Redirecting to provider for authorization.",
2487
+ "type": "loading-state"
2488
+ }
2489
+ ],
2482
2490
  "navItems": [
2483
2491
  {
2484
2492
  "label": "Products",
2485
- "icon": "package",
2486
- "href": "/products"
2493
+ "href": "/products",
2494
+ "icon": "package"
2487
2495
  },
2488
2496
  {
2489
- "href": "/login",
2490
2497
  "icon": "layout-list",
2491
- "label": "Login"
2498
+ "label": "Login",
2499
+ "href": "/login"
2492
2500
  },
2493
2501
  {
2494
- "icon": "credit-card",
2502
+ "label": "Checkout",
2495
2503
  "href": "/checkout",
2496
- "label": "Checkout"
2504
+ "icon": "credit-card"
2497
2505
  },
2498
2506
  {
2499
- "href": "/orders",
2500
2507
  "icon": "clipboard-list",
2508
+ "href": "/orders",
2501
2509
  "label": "Orders"
2502
2510
  }
2503
- ],
2504
- "children": [
2505
- {
2506
- "type": "loading-state",
2507
- "message": "Redirecting to provider for authorization.",
2508
- "title": "Authorizing..."
2509
- }
2510
- ],
2511
- "appName": "ServiceMarketplace"
2511
+ ]
2512
2512
  }
2513
2513
  ],
2514
2514
  [
@@ -2516,11 +2516,11 @@
2516
2516
  "oauth",
2517
2517
  "authorize",
2518
2518
  {
2519
+ "provider": "@entity.provider",
2519
2520
  "scopes": [
2520
2521
  "openid",
2521
2522
  "email"
2522
- ],
2523
- "provider": "@entity.provider"
2523
+ ]
2524
2524
  },
2525
2525
  {
2526
2526
  "emit": {
@@ -2545,6 +2545,8 @@
2545
2545
  "render-ui",
2546
2546
  "main",
2547
2547
  {
2548
+ "appName": "ServiceMarketplace",
2549
+ "type": "dashboard-layout",
2548
2550
  "navItems": [
2549
2551
  {
2550
2552
  "label": "Products",
@@ -2557,54 +2559,52 @@
2557
2559
  "icon": "layout-list"
2558
2560
  },
2559
2561
  {
2560
- "icon": "credit-card",
2562
+ "href": "/checkout",
2561
2563
  "label": "Checkout",
2562
- "href": "/checkout"
2564
+ "icon": "credit-card"
2563
2565
  },
2564
2566
  {
2565
- "icon": "clipboard-list",
2566
2567
  "label": "Orders",
2567
- "href": "/orders"
2568
+ "href": "/orders",
2569
+ "icon": "clipboard-list"
2568
2570
  }
2569
2571
  ],
2570
2572
  "children": [
2571
2573
  {
2574
+ "gap": "lg",
2572
2575
  "align": "center",
2573
- "direction": "vertical",
2574
2576
  "children": [
2575
2577
  {
2576
- "type": "icon",
2577
- "name": "external-link"
2578
+ "name": "external-link",
2579
+ "type": "icon"
2578
2580
  },
2579
2581
  {
2580
- "type": "typography",
2582
+ "variant": "h2",
2581
2583
  "content": "Authorization Required",
2582
- "variant": "h2"
2584
+ "type": "typography"
2583
2585
  },
2584
2586
  {
2585
- "variant": "body",
2586
- "content": "@entity.authUrl",
2587
2587
  "type": "typography",
2588
+ "content": "@entity.authUrl",
2589
+ "variant": "body",
2588
2590
  "color": "muted"
2589
2591
  },
2590
2592
  {
2591
- "type": "input",
2592
- "placeholder": "Paste authorization code here"
2593
+ "placeholder": "Paste authorization code here",
2594
+ "type": "input"
2593
2595
  },
2594
2596
  {
2595
2597
  "type": "button",
2596
- "label": "Submit",
2598
+ "action": "CALLBACK",
2597
2599
  "variant": "primary",
2598
- "icon": "check",
2599
- "action": "CALLBACK"
2600
+ "label": "Submit",
2601
+ "icon": "check"
2600
2602
  }
2601
2603
  ],
2602
2604
  "type": "stack",
2603
- "gap": "lg"
2605
+ "direction": "vertical"
2604
2606
  }
2605
- ],
2606
- "type": "dashboard-layout",
2607
- "appName": "ServiceMarketplace"
2607
+ ]
2608
2608
  }
2609
2609
  ]
2610
2610
  ]
@@ -2623,8 +2623,8 @@
2623
2623
  },
2624
2624
  {
2625
2625
  "emit": {
2626
- "failure": "ProductOauthFailed",
2627
- "success": "ProductOauthCompleted"
2626
+ "success": "ProductOauthCompleted",
2627
+ "failure": "ProductOauthFailed"
2628
2628
  }
2629
2629
  }
2630
2630
  ],
@@ -2632,15 +2632,40 @@
2632
2632
  "render-ui",
2633
2633
  "main",
2634
2634
  {
2635
+ "appName": "ServiceMarketplace",
2636
+ "type": "dashboard-layout",
2637
+ "navItems": [
2638
+ {
2639
+ "label": "Products",
2640
+ "href": "/products",
2641
+ "icon": "package"
2642
+ },
2643
+ {
2644
+ "href": "/login",
2645
+ "icon": "layout-list",
2646
+ "label": "Login"
2647
+ },
2648
+ {
2649
+ "href": "/checkout",
2650
+ "icon": "credit-card",
2651
+ "label": "Checkout"
2652
+ },
2653
+ {
2654
+ "href": "/orders",
2655
+ "icon": "clipboard-list",
2656
+ "label": "Orders"
2657
+ }
2658
+ ],
2635
2659
  "children": [
2636
2660
  {
2637
2661
  "direction": "vertical",
2662
+ "type": "stack",
2638
2663
  "gap": "lg",
2639
2664
  "align": "center",
2640
2665
  "children": [
2641
2666
  {
2642
- "name": "check-circle",
2643
- "type": "icon"
2667
+ "type": "icon",
2668
+ "name": "check-circle"
2644
2669
  },
2645
2670
  {
2646
2671
  "variant": "success",
@@ -2650,51 +2675,26 @@
2650
2675
  {
2651
2676
  "children": [
2652
2677
  {
2653
- "action": "REFRESH",
2654
- "icon": "refresh-cw",
2678
+ "type": "button",
2655
2679
  "label": "Refresh Token",
2656
2680
  "variant": "ghost",
2657
- "type": "button"
2681
+ "action": "REFRESH",
2682
+ "icon": "refresh-cw"
2658
2683
  },
2659
2684
  {
2660
- "type": "button",
2661
- "variant": "ghost",
2662
2685
  "icon": "log-out",
2686
+ "action": "LOGOUT",
2663
2687
  "label": "Logout",
2664
- "action": "LOGOUT"
2688
+ "type": "button",
2689
+ "variant": "ghost"
2665
2690
  }
2666
2691
  ],
2667
2692
  "justify": "center",
2693
+ "direction": "horizontal",
2668
2694
  "gap": "sm",
2669
- "type": "stack",
2670
- "direction": "horizontal"
2695
+ "type": "stack"
2671
2696
  }
2672
- ],
2673
- "type": "stack"
2674
- }
2675
- ],
2676
- "type": "dashboard-layout",
2677
- "appName": "ServiceMarketplace",
2678
- "navItems": [
2679
- {
2680
- "label": "Products",
2681
- "icon": "package",
2682
- "href": "/products"
2683
- },
2684
- {
2685
- "label": "Login",
2686
- "href": "/login",
2687
- "icon": "layout-list"
2688
- },
2689
- {
2690
- "label": "Checkout",
2691
- "href": "/checkout",
2692
- "icon": "credit-card"
2693
- },
2694
- {
2695
- "icon": "clipboard-list",
2696
- "label": "Orders",
2697
- "href": "/orders"
2697
+ ]
2698
2698
  }
2699
2699
  ]
2700
2700
  }
@@ -2715,6 +2715,29 @@
2715
2715
  "render-ui",
2716
2716
  "main",
2717
2717
  {
2718
+ "children": [
2719
+ {
2720
+ "direction": "vertical",
2721
+ "gap": "lg",
2722
+ "children": [
2723
+ {
2724
+ "onRetry": "RETRY",
2725
+ "type": "error-state",
2726
+ "title": "Authentication Failed",
2727
+ "message": "@entity.error"
2728
+ },
2729
+ {
2730
+ "type": "button",
2731
+ "label": "Try Again",
2732
+ "action": "RETRY",
2733
+ "variant": "primary",
2734
+ "icon": "rotate-ccw"
2735
+ }
2736
+ ],
2737
+ "align": "center",
2738
+ "type": "stack"
2739
+ }
2740
+ ],
2718
2741
  "navItems": [
2719
2742
  {
2720
2743
  "href": "/products",
@@ -2722,46 +2745,23 @@
2722
2745
  "label": "Products"
2723
2746
  },
2724
2747
  {
2725
- "href": "/login",
2748
+ "label": "Login",
2726
2749
  "icon": "layout-list",
2727
- "label": "Login"
2750
+ "href": "/login"
2728
2751
  },
2729
2752
  {
2730
- "label": "Checkout",
2753
+ "href": "/checkout",
2731
2754
  "icon": "credit-card",
2732
- "href": "/checkout"
2755
+ "label": "Checkout"
2733
2756
  },
2734
2757
  {
2735
- "icon": "clipboard-list",
2736
2758
  "href": "/orders",
2759
+ "icon": "clipboard-list",
2737
2760
  "label": "Orders"
2738
2761
  }
2739
2762
  ],
2740
- "type": "dashboard-layout",
2741
- "children": [
2742
- {
2743
- "gap": "lg",
2744
- "direction": "vertical",
2745
- "children": [
2746
- {
2747
- "onRetry": "RETRY",
2748
- "type": "error-state",
2749
- "message": "@entity.error",
2750
- "title": "Authentication Failed"
2751
- },
2752
- {
2753
- "action": "RETRY",
2754
- "variant": "primary",
2755
- "type": "button",
2756
- "label": "Try Again",
2757
- "icon": "rotate-ccw"
2758
- }
2759
- ],
2760
- "type": "stack",
2761
- "align": "center"
2762
- }
2763
- ],
2764
- "appName": "ServiceMarketplace"
2763
+ "appName": "ServiceMarketplace",
2764
+ "type": "dashboard-layout"
2765
2765
  }
2766
2766
  ]
2767
2767
  ]
@@ -2790,36 +2790,12 @@
2790
2790
  "render-ui",
2791
2791
  "main",
2792
2792
  {
2793
- "appName": "ServiceMarketplace",
2794
- "navItems": [
2795
- {
2796
- "href": "/products",
2797
- "label": "Products",
2798
- "icon": "package"
2799
- },
2800
- {
2801
- "href": "/login",
2802
- "icon": "layout-list",
2803
- "label": "Login"
2804
- },
2805
- {
2806
- "href": "/checkout",
2807
- "icon": "credit-card",
2808
- "label": "Checkout"
2809
- },
2810
- {
2811
- "href": "/orders",
2812
- "icon": "clipboard-list",
2813
- "label": "Orders"
2814
- }
2815
- ],
2816
2793
  "children": [
2817
2794
  {
2818
- "align": "center",
2819
2795
  "children": [
2820
2796
  {
2821
- "type": "icon",
2822
- "name": "check-circle"
2797
+ "name": "check-circle",
2798
+ "type": "icon"
2823
2799
  },
2824
2800
  {
2825
2801
  "type": "alert",
@@ -2827,34 +2803,58 @@
2827
2803
  "message": "Authenticated successfully"
2828
2804
  },
2829
2805
  {
2830
- "type": "stack",
2831
2806
  "gap": "sm",
2807
+ "direction": "horizontal",
2808
+ "type": "stack",
2809
+ "justify": "center",
2832
2810
  "children": [
2833
2811
  {
2812
+ "variant": "ghost",
2834
2813
  "type": "button",
2835
- "action": "REFRESH",
2836
2814
  "icon": "refresh-cw",
2837
2815
  "label": "Refresh Token",
2838
- "variant": "ghost"
2816
+ "action": "REFRESH"
2839
2817
  },
2840
2818
  {
2819
+ "variant": "ghost",
2841
2820
  "type": "button",
2821
+ "icon": "log-out",
2842
2822
  "label": "Logout",
2843
- "variant": "ghost",
2844
- "action": "LOGOUT",
2845
- "icon": "log-out"
2823
+ "action": "LOGOUT"
2846
2824
  }
2847
- ],
2848
- "justify": "center",
2849
- "direction": "horizontal"
2825
+ ]
2850
2826
  }
2851
2827
  ],
2852
- "type": "stack",
2853
2828
  "direction": "vertical",
2829
+ "align": "center",
2830
+ "type": "stack",
2854
2831
  "gap": "lg"
2855
2832
  }
2856
2833
  ],
2857
- "type": "dashboard-layout"
2834
+ "type": "dashboard-layout",
2835
+ "appName": "ServiceMarketplace",
2836
+ "navItems": [
2837
+ {
2838
+ "icon": "package",
2839
+ "label": "Products",
2840
+ "href": "/products"
2841
+ },
2842
+ {
2843
+ "icon": "layout-list",
2844
+ "href": "/login",
2845
+ "label": "Login"
2846
+ },
2847
+ {
2848
+ "href": "/checkout",
2849
+ "icon": "credit-card",
2850
+ "label": "Checkout"
2851
+ },
2852
+ {
2853
+ "href": "/orders",
2854
+ "label": "Orders",
2855
+ "icon": "clipboard-list"
2856
+ }
2857
+ ]
2858
2858
  }
2859
2859
  ]
2860
2860
  ]
@@ -2868,35 +2868,35 @@
2868
2868
  "render-ui",
2869
2869
  "main",
2870
2870
  {
2871
+ "type": "dashboard-layout",
2871
2872
  "appName": "ServiceMarketplace",
2872
2873
  "navItems": [
2873
2874
  {
2874
- "icon": "package",
2875
2875
  "href": "/products",
2876
+ "icon": "package",
2876
2877
  "label": "Products"
2877
2878
  },
2878
2879
  {
2879
2880
  "href": "/login",
2880
- "icon": "layout-list",
2881
- "label": "Login"
2881
+ "label": "Login",
2882
+ "icon": "layout-list"
2882
2883
  },
2883
2884
  {
2884
- "href": "/checkout",
2885
2885
  "label": "Checkout",
2886
+ "href": "/checkout",
2886
2887
  "icon": "credit-card"
2887
2888
  },
2888
2889
  {
2889
- "href": "/orders",
2890
+ "label": "Orders",
2890
2891
  "icon": "clipboard-list",
2891
- "label": "Orders"
2892
+ "href": "/orders"
2892
2893
  }
2893
2894
  ],
2894
- "type": "dashboard-layout",
2895
2895
  "children": [
2896
2896
  {
2897
- "message": "Obtaining a new access token.",
2898
2897
  "type": "loading-state",
2899
- "title": "Refreshing token..."
2898
+ "title": "Refreshing token...",
2899
+ "message": "Obtaining a new access token."
2900
2900
  }
2901
2901
  ]
2902
2902
  }
@@ -2933,50 +2933,50 @@
2933
2933
  {
2934
2934
  "navItems": [
2935
2935
  {
2936
- "icon": "package",
2936
+ "href": "/products",
2937
2937
  "label": "Products",
2938
- "href": "/products"
2938
+ "icon": "package"
2939
2939
  },
2940
2940
  {
2941
2941
  "label": "Login",
2942
- "icon": "layout-list",
2943
- "href": "/login"
2942
+ "href": "/login",
2943
+ "icon": "layout-list"
2944
2944
  },
2945
2945
  {
2946
- "href": "/checkout",
2947
2946
  "label": "Checkout",
2947
+ "href": "/checkout",
2948
2948
  "icon": "credit-card"
2949
2949
  },
2950
2950
  {
2951
- "icon": "clipboard-list",
2952
2951
  "label": "Orders",
2952
+ "icon": "clipboard-list",
2953
2953
  "href": "/orders"
2954
2954
  }
2955
2955
  ],
2956
2956
  "type": "dashboard-layout",
2957
+ "appName": "ServiceMarketplace",
2957
2958
  "children": [
2958
2959
  {
2959
2960
  "type": "stack",
2960
- "direction": "vertical",
2961
- "gap": "lg",
2962
2961
  "align": "center",
2962
+ "direction": "vertical",
2963
2963
  "children": [
2964
2964
  {
2965
+ "align": "center",
2966
+ "type": "stack",
2967
+ "direction": "horizontal",
2968
+ "gap": "md",
2965
2969
  "children": [
2966
2970
  {
2967
2971
  "type": "icon",
2968
2972
  "name": "lock"
2969
2973
  },
2970
2974
  {
2971
- "variant": "h2",
2972
2975
  "type": "typography",
2973
- "content": "Sign In"
2976
+ "content": "Sign In",
2977
+ "variant": "h2"
2974
2978
  }
2975
- ],
2976
- "type": "stack",
2977
- "align": "center",
2978
- "gap": "md",
2979
- "direction": "horizontal"
2979
+ ]
2980
2980
  },
2981
2981
  {
2982
2982
  "type": "divider"
@@ -2984,12 +2984,12 @@
2984
2984
  {
2985
2985
  "options": [
2986
2986
  {
2987
- "label": "Google",
2988
- "value": "google"
2987
+ "value": "google",
2988
+ "label": "Google"
2989
2989
  },
2990
2990
  {
2991
- "value": "github",
2992
- "label": "GitHub"
2991
+ "label": "GitHub",
2992
+ "value": "github"
2993
2993
  },
2994
2994
  {
2995
2995
  "label": "Microsoft",
@@ -2999,16 +2999,16 @@
2999
2999
  "type": "select"
3000
3000
  },
3001
3001
  {
3002
- "type": "button",
3003
3002
  "variant": "primary",
3004
- "label": "Login",
3005
3003
  "icon": "log-in",
3004
+ "label": "Login",
3005
+ "type": "button",
3006
3006
  "action": "LOGIN"
3007
3007
  }
3008
- ]
3008
+ ],
3009
+ "gap": "lg"
3009
3010
  }
3010
- ],
3011
- "appName": "ServiceMarketplace"
3011
+ ]
3012
3012
  }
3013
3013
  ]
3014
3014
  ]
@@ -3027,69 +3027,69 @@
3027
3027
  "render-ui",
3028
3028
  "main",
3029
3029
  {
3030
+ "appName": "ServiceMarketplace",
3031
+ "type": "dashboard-layout",
3030
3032
  "navItems": [
3031
3033
  {
3034
+ "label": "Products",
3032
3035
  "href": "/products",
3033
- "icon": "package",
3034
- "label": "Products"
3036
+ "icon": "package"
3035
3037
  },
3036
3038
  {
3037
3039
  "label": "Login",
3038
- "href": "/login",
3039
- "icon": "layout-list"
3040
+ "icon": "layout-list",
3041
+ "href": "/login"
3040
3042
  },
3041
3043
  {
3042
- "icon": "credit-card",
3043
3044
  "href": "/checkout",
3045
+ "icon": "credit-card",
3044
3046
  "label": "Checkout"
3045
3047
  },
3046
3048
  {
3049
+ "icon": "clipboard-list",
3047
3050
  "label": "Orders",
3048
- "href": "/orders",
3049
- "icon": "clipboard-list"
3051
+ "href": "/orders"
3050
3052
  }
3051
3053
  ],
3052
- "type": "dashboard-layout",
3053
- "appName": "ServiceMarketplace",
3054
3054
  "children": [
3055
3055
  {
3056
+ "direction": "vertical",
3057
+ "gap": "lg",
3058
+ "align": "center",
3059
+ "type": "stack",
3056
3060
  "children": [
3057
3061
  {
3058
- "name": "check-circle",
3059
- "type": "icon"
3062
+ "type": "icon",
3063
+ "name": "check-circle"
3060
3064
  },
3061
3065
  {
3062
- "type": "alert",
3063
3066
  "variant": "success",
3067
+ "type": "alert",
3064
3068
  "message": "Authenticated successfully"
3065
3069
  },
3066
3070
  {
3067
- "type": "stack",
3068
- "gap": "sm",
3071
+ "direction": "horizontal",
3069
3072
  "justify": "center",
3070
3073
  "children": [
3071
3074
  {
3072
3075
  "type": "button",
3073
- "icon": "refresh-cw",
3074
3076
  "action": "REFRESH",
3077
+ "variant": "ghost",
3075
3078
  "label": "Refresh Token",
3076
- "variant": "ghost"
3079
+ "icon": "refresh-cw"
3077
3080
  },
3078
3081
  {
3079
- "label": "Logout",
3082
+ "variant": "ghost",
3080
3083
  "icon": "log-out",
3081
- "action": "LOGOUT",
3082
3084
  "type": "button",
3083
- "variant": "ghost"
3085
+ "action": "LOGOUT",
3086
+ "label": "Logout"
3084
3087
  }
3085
3088
  ],
3086
- "direction": "horizontal"
3089
+ "gap": "sm",
3090
+ "type": "stack"
3087
3091
  }
3088
- ],
3089
- "align": "center",
3090
- "type": "stack",
3091
- "gap": "lg",
3092
- "direction": "vertical"
3092
+ ]
3093
3093
  }
3094
3094
  ]
3095
3095
  }
@@ -3111,66 +3111,30 @@
3111
3111
  "main",
3112
3112
  {
3113
3113
  "type": "dashboard-layout",
3114
- "navItems": [
3115
- {
3116
- "href": "/products",
3117
- "icon": "package",
3118
- "label": "Products"
3119
- },
3120
- {
3121
- "icon": "layout-list",
3122
- "label": "Login",
3123
- "href": "/login"
3124
- },
3125
- {
3126
- "icon": "credit-card",
3127
- "href": "/checkout",
3128
- "label": "Checkout"
3129
- },
3130
- {
3131
- "href": "/orders",
3132
- "label": "Orders",
3133
- "icon": "clipboard-list"
3134
- }
3135
- ],
3136
3114
  "appName": "ServiceMarketplace",
3137
3115
  "children": [
3138
3116
  {
3117
+ "gap": "lg",
3118
+ "type": "stack",
3119
+ "direction": "vertical",
3120
+ "align": "center",
3139
3121
  "children": [
3140
3122
  {
3123
+ "message": "@entity.error",
3141
3124
  "title": "Authentication Failed",
3142
- "onRetry": "RETRY",
3143
3125
  "type": "error-state",
3144
- "message": "@entity.error"
3126
+ "onRetry": "RETRY"
3145
3127
  },
3146
3128
  {
3147
- "icon": "rotate-ccw",
3148
- "label": "Try Again",
3149
3129
  "type": "button",
3130
+ "label": "Try Again",
3131
+ "variant": "primary",
3150
3132
  "action": "RETRY",
3151
- "variant": "primary"
3133
+ "icon": "rotate-ccw"
3152
3134
  }
3153
- ],
3154
- "gap": "lg",
3155
- "direction": "vertical",
3156
- "align": "center",
3157
- "type": "stack"
3135
+ ]
3158
3136
  }
3159
- ]
3160
- }
3161
- ]
3162
- ]
3163
- },
3164
- {
3165
- "from": "error",
3166
- "to": "unauthenticated",
3167
- "event": "RETRY",
3168
- "effects": [
3169
- [
3170
- "render-ui",
3171
- "main",
3172
- {
3173
- "appName": "ServiceMarketplace",
3137
+ ],
3174
3138
  "navItems": [
3175
3139
  {
3176
3140
  "icon": "package",
@@ -3178,76 +3142,112 @@
3178
3142
  "href": "/products"
3179
3143
  },
3180
3144
  {
3181
- "icon": "layout-list",
3182
3145
  "label": "Login",
3146
+ "icon": "layout-list",
3183
3147
  "href": "/login"
3184
3148
  },
3185
3149
  {
3186
- "label": "Checkout",
3187
3150
  "href": "/checkout",
3188
- "icon": "credit-card"
3151
+ "icon": "credit-card",
3152
+ "label": "Checkout"
3189
3153
  },
3190
3154
  {
3191
- "href": "/orders",
3192
3155
  "icon": "clipboard-list",
3156
+ "href": "/orders",
3193
3157
  "label": "Orders"
3194
3158
  }
3195
- ],
3196
- "type": "dashboard-layout",
3159
+ ]
3160
+ }
3161
+ ]
3162
+ ]
3163
+ },
3164
+ {
3165
+ "from": "error",
3166
+ "to": "unauthenticated",
3167
+ "event": "RETRY",
3168
+ "effects": [
3169
+ [
3170
+ "render-ui",
3171
+ "main",
3172
+ {
3197
3173
  "children": [
3198
3174
  {
3199
- "direction": "vertical",
3175
+ "type": "stack",
3176
+ "gap": "lg",
3177
+ "align": "center",
3200
3178
  "children": [
3201
3179
  {
3202
- "align": "center",
3180
+ "gap": "md",
3203
3181
  "type": "stack",
3182
+ "direction": "horizontal",
3183
+ "align": "center",
3204
3184
  "children": [
3205
3185
  {
3206
- "name": "lock",
3207
- "type": "icon"
3186
+ "type": "icon",
3187
+ "name": "lock"
3208
3188
  },
3209
3189
  {
3210
- "content": "Sign In",
3211
3190
  "variant": "h2",
3212
- "type": "typography"
3191
+ "type": "typography",
3192
+ "content": "Sign In"
3213
3193
  }
3214
- ],
3215
- "gap": "md",
3216
- "direction": "horizontal"
3194
+ ]
3217
3195
  },
3218
3196
  {
3219
3197
  "type": "divider"
3220
3198
  },
3221
3199
  {
3200
+ "type": "select",
3222
3201
  "options": [
3223
3202
  {
3224
- "value": "google",
3225
- "label": "Google"
3203
+ "label": "Google",
3204
+ "value": "google"
3226
3205
  },
3227
3206
  {
3228
3207
  "value": "github",
3229
3208
  "label": "GitHub"
3230
3209
  },
3231
3210
  {
3232
- "value": "microsoft",
3233
- "label": "Microsoft"
3211
+ "label": "Microsoft",
3212
+ "value": "microsoft"
3234
3213
  }
3235
- ],
3236
- "type": "select"
3214
+ ]
3237
3215
  },
3238
3216
  {
3239
- "type": "button",
3240
- "label": "Login",
3241
- "action": "LOGIN",
3217
+ "variant": "primary",
3242
3218
  "icon": "log-in",
3243
- "variant": "primary"
3219
+ "label": "Login",
3220
+ "type": "button",
3221
+ "action": "LOGIN"
3244
3222
  }
3245
3223
  ],
3246
- "type": "stack",
3247
- "align": "center",
3248
- "gap": "lg"
3224
+ "direction": "vertical"
3249
3225
  }
3250
- ]
3226
+ ],
3227
+ "appName": "ServiceMarketplace",
3228
+ "navItems": [
3229
+ {
3230
+ "icon": "package",
3231
+ "href": "/products",
3232
+ "label": "Products"
3233
+ },
3234
+ {
3235
+ "icon": "layout-list",
3236
+ "href": "/login",
3237
+ "label": "Login"
3238
+ },
3239
+ {
3240
+ "label": "Checkout",
3241
+ "icon": "credit-card",
3242
+ "href": "/checkout"
3243
+ },
3244
+ {
3245
+ "label": "Orders",
3246
+ "href": "/orders",
3247
+ "icon": "clipboard-list"
3248
+ }
3249
+ ],
3250
+ "type": "dashboard-layout"
3251
3251
  }
3252
3252
  ]
3253
3253
  ]
@@ -3519,8 +3519,8 @@
3519
3519
  "OrderPayment",
3520
3520
  {
3521
3521
  "emit": {
3522
- "success": "OrderPaymentLoaded",
3523
- "failure": "OrderPaymentLoadFailed"
3522
+ "failure": "OrderPaymentLoadFailed",
3523
+ "success": "OrderPaymentLoaded"
3524
3524
  }
3525
3525
  }
3526
3526
  ],
@@ -3540,32 +3540,27 @@
3540
3540
  "icon": "layout-list"
3541
3541
  },
3542
3542
  {
3543
+ "label": "Checkout",
3543
3544
  "href": "/checkout",
3544
- "icon": "credit-card",
3545
- "label": "Checkout"
3545
+ "icon": "credit-card"
3546
3546
  },
3547
3547
  {
3548
- "href": "/orders",
3549
3548
  "icon": "clipboard-list",
3550
- "label": "Orders"
3549
+ "label": "Orders",
3550
+ "href": "/orders"
3551
3551
  }
3552
3552
  ],
3553
- "appName": "ServiceMarketplace",
3554
- "type": "dashboard-layout",
3555
3553
  "children": [
3556
3554
  {
3557
- "gap": "lg",
3558
3555
  "type": "stack",
3559
- "direction": "vertical",
3560
- "align": "center",
3556
+ "gap": "lg",
3561
3557
  "children": [
3562
3558
  {
3563
- "type": "stack",
3564
- "align": "center",
3559
+ "direction": "horizontal",
3565
3560
  "children": [
3566
3561
  {
3567
- "name": "credit-card",
3568
- "type": "icon"
3562
+ "type": "icon",
3563
+ "name": "credit-card"
3569
3564
  },
3570
3565
  {
3571
3566
  "type": "typography",
@@ -3573,15 +3568,17 @@
3573
3568
  "content": "Payment"
3574
3569
  }
3575
3570
  ],
3576
- "gap": "md",
3577
- "direction": "horizontal"
3571
+ "align": "center",
3572
+ "type": "stack",
3573
+ "gap": "md"
3578
3574
  },
3579
3575
  {
3580
3576
  "type": "divider"
3581
3577
  },
3582
3578
  {
3583
- "type": "stack",
3584
3579
  "gap": "md",
3580
+ "type": "stack",
3581
+ "direction": "vertical",
3585
3582
  "children": [
3586
3583
  {
3587
3584
  "placeholder": "0.00",
@@ -3592,12 +3589,12 @@
3592
3589
  "type": "select",
3593
3590
  "options": [
3594
3591
  {
3595
- "label": "USD",
3596
- "value": "usd"
3592
+ "value": "usd",
3593
+ "label": "USD"
3597
3594
  },
3598
3595
  {
3599
- "label": "EUR",
3600
- "value": "eur"
3596
+ "value": "eur",
3597
+ "label": "EUR"
3601
3598
  },
3602
3599
  {
3603
3600
  "value": "gbp",
@@ -3605,19 +3602,22 @@
3605
3602
  }
3606
3603
  ]
3607
3604
  }
3608
- ],
3609
- "direction": "vertical"
3605
+ ]
3610
3606
  },
3611
3607
  {
3612
- "type": "button",
3613
- "variant": "primary",
3608
+ "icon": "credit-card",
3614
3609
  "action": "CREATE_PAYMENT",
3615
- "label": "Pay",
3616
- "icon": "credit-card"
3610
+ "variant": "primary",
3611
+ "type": "button",
3612
+ "label": "Pay"
3617
3613
  }
3618
- ]
3614
+ ],
3615
+ "direction": "vertical",
3616
+ "align": "center"
3619
3617
  }
3620
- ]
3618
+ ],
3619
+ "type": "dashboard-layout",
3620
+ "appName": "ServiceMarketplace"
3621
3621
  }
3622
3622
  ]
3623
3623
  ]
@@ -3631,35 +3631,35 @@
3631
3631
  "render-ui",
3632
3632
  "main",
3633
3633
  {
3634
+ "type": "dashboard-layout",
3634
3635
  "children": [
3635
3636
  {
3636
- "type": "loading-state",
3637
3637
  "title": "Creating payment...",
3638
- "message": "Setting up your payment intent."
3638
+ "message": "Setting up your payment intent.",
3639
+ "type": "loading-state"
3639
3640
  }
3640
3641
  ],
3641
- "type": "dashboard-layout",
3642
3642
  "appName": "ServiceMarketplace",
3643
3643
  "navItems": [
3644
3644
  {
3645
- "icon": "package",
3646
3645
  "label": "Products",
3647
- "href": "/products"
3646
+ "href": "/products",
3647
+ "icon": "package"
3648
3648
  },
3649
3649
  {
3650
- "icon": "layout-list",
3650
+ "href": "/login",
3651
3651
  "label": "Login",
3652
- "href": "/login"
3652
+ "icon": "layout-list"
3653
3653
  },
3654
3654
  {
3655
3655
  "label": "Checkout",
3656
- "icon": "credit-card",
3657
- "href": "/checkout"
3656
+ "href": "/checkout",
3657
+ "icon": "credit-card"
3658
3658
  },
3659
3659
  {
3660
- "href": "/orders",
3661
- "icon": "clipboard-list",
3662
- "label": "Orders"
3660
+ "href": "/orders",
3661
+ "label": "Orders",
3662
+ "icon": "clipboard-list"
3663
3663
  }
3664
3664
  ]
3665
3665
  }
@@ -3669,13 +3669,13 @@
3669
3669
  "stripe",
3670
3670
  "createPaymentIntent",
3671
3671
  {
3672
- "currency": "@entity.currency",
3673
- "amount": "@entity.amount"
3672
+ "amount": "@entity.amount",
3673
+ "currency": "@entity.currency"
3674
3674
  },
3675
3675
  {
3676
3676
  "emit": {
3677
- "success": "ProductStripeCompleted",
3678
- "failure": "ProductStripeFailed"
3677
+ "failure": "ProductStripeFailed",
3678
+ "success": "ProductStripeCompleted"
3679
3679
  }
3680
3680
  }
3681
3681
  ]
@@ -3700,20 +3700,13 @@
3700
3700
  "render-ui",
3701
3701
  "main",
3702
3702
  {
3703
- "children": [
3704
- {
3705
- "type": "loading-state",
3706
- "message": "Processing your payment.",
3707
- "title": "Confirming payment..."
3708
- }
3709
- ],
3710
- "appName": "ServiceMarketplace",
3711
3703
  "type": "dashboard-layout",
3704
+ "appName": "ServiceMarketplace",
3712
3705
  "navItems": [
3713
3706
  {
3714
3707
  "label": "Products",
3715
- "icon": "package",
3716
- "href": "/products"
3708
+ "href": "/products",
3709
+ "icon": "package"
3717
3710
  },
3718
3711
  {
3719
3712
  "href": "/login",
@@ -3721,14 +3714,21 @@
3721
3714
  "label": "Login"
3722
3715
  },
3723
3716
  {
3724
- "label": "Checkout",
3717
+ "href": "/checkout",
3725
3718
  "icon": "credit-card",
3726
- "href": "/checkout"
3719
+ "label": "Checkout"
3727
3720
  },
3728
3721
  {
3729
3722
  "href": "/orders",
3730
- "label": "Orders",
3731
- "icon": "clipboard-list"
3723
+ "icon": "clipboard-list",
3724
+ "label": "Orders"
3725
+ }
3726
+ ],
3727
+ "children": [
3728
+ {
3729
+ "type": "loading-state",
3730
+ "message": "Processing your payment.",
3731
+ "title": "Confirming payment..."
3732
3732
  }
3733
3733
  ]
3734
3734
  }
@@ -3742,8 +3742,8 @@
3742
3742
  },
3743
3743
  {
3744
3744
  "emit": {
3745
- "success": "ProductStripeCompleted",
3746
- "failure": "ProductStripeFailed"
3745
+ "failure": "ProductStripeFailed",
3746
+ "success": "ProductStripeCompleted"
3747
3747
  }
3748
3748
  }
3749
3749
  ]
@@ -3764,37 +3764,37 @@
3764
3764
  "main",
3765
3765
  {
3766
3766
  "type": "dashboard-layout",
3767
+ "appName": "ServiceMarketplace",
3767
3768
  "children": [
3768
3769
  {
3769
- "onRetry": "RETRY",
3770
3770
  "type": "error-state",
3771
3771
  "title": "Payment Failed",
3772
- "message": "@entity.error"
3772
+ "message": "@entity.error",
3773
+ "onRetry": "RETRY"
3773
3774
  }
3774
3775
  ],
3775
3776
  "navItems": [
3776
3777
  {
3777
- "label": "Products",
3778
+ "icon": "package",
3778
3779
  "href": "/products",
3779
- "icon": "package"
3780
+ "label": "Products"
3780
3781
  },
3781
3782
  {
3782
- "label": "Login",
3783
3783
  "icon": "layout-list",
3784
+ "label": "Login",
3784
3785
  "href": "/login"
3785
3786
  },
3786
3787
  {
3787
- "icon": "credit-card",
3788
3788
  "href": "/checkout",
3789
- "label": "Checkout"
3789
+ "label": "Checkout",
3790
+ "icon": "credit-card"
3790
3791
  },
3791
3792
  {
3792
3793
  "label": "Orders",
3793
3794
  "href": "/orders",
3794
3795
  "icon": "clipboard-list"
3795
3796
  }
3796
- ],
3797
- "appName": "ServiceMarketplace"
3797
+ ]
3798
3798
  }
3799
3799
  ]
3800
3800
  ]
@@ -3817,8 +3817,35 @@
3817
3817
  "render-ui",
3818
3818
  "main",
3819
3819
  {
3820
+ "navItems": [
3821
+ {
3822
+ "href": "/products",
3823
+ "icon": "package",
3824
+ "label": "Products"
3825
+ },
3826
+ {
3827
+ "label": "Login",
3828
+ "href": "/login",
3829
+ "icon": "layout-list"
3830
+ },
3831
+ {
3832
+ "href": "/checkout",
3833
+ "label": "Checkout",
3834
+ "icon": "credit-card"
3835
+ },
3836
+ {
3837
+ "label": "Orders",
3838
+ "icon": "clipboard-list",
3839
+ "href": "/orders"
3840
+ }
3841
+ ],
3842
+ "appName": "ServiceMarketplace",
3843
+ "type": "dashboard-layout",
3820
3844
  "children": [
3821
3845
  {
3846
+ "type": "stack",
3847
+ "gap": "lg",
3848
+ "align": "center",
3822
3849
  "children": [
3823
3850
  {
3824
3851
  "name": "check-circle",
@@ -3826,53 +3853,26 @@
3826
3853
  },
3827
3854
  {
3828
3855
  "message": "Payment successful! Sending receipt...",
3829
- "type": "alert",
3830
- "variant": "success"
3856
+ "variant": "success",
3857
+ "type": "alert"
3831
3858
  },
3832
3859
  {
3833
3860
  "type": "typography",
3834
3861
  "color": "muted",
3835
- "variant": "body",
3836
- "content": "@entity.paymentIntentId"
3862
+ "content": "@entity.paymentIntentId",
3863
+ "variant": "body"
3837
3864
  },
3838
3865
  {
3866
+ "icon": "rotate-ccw",
3839
3867
  "action": "RESET",
3840
- "label": "New Payment",
3841
3868
  "type": "button",
3842
- "icon": "rotate-ccw",
3843
- "variant": "ghost"
3869
+ "variant": "ghost",
3870
+ "label": "New Payment"
3844
3871
  }
3845
3872
  ],
3846
- "type": "stack",
3847
- "direction": "vertical",
3848
- "gap": "lg",
3849
- "align": "center"
3850
- }
3851
- ],
3852
- "type": "dashboard-layout",
3853
- "navItems": [
3854
- {
3855
- "href": "/products",
3856
- "icon": "package",
3857
- "label": "Products"
3858
- },
3859
- {
3860
- "label": "Login",
3861
- "icon": "layout-list",
3862
- "href": "/login"
3863
- },
3864
- {
3865
- "icon": "credit-card",
3866
- "href": "/checkout",
3867
- "label": "Checkout"
3868
- },
3869
- {
3870
- "label": "Orders",
3871
- "href": "/orders",
3872
- "icon": "clipboard-list"
3873
+ "direction": "vertical"
3873
3874
  }
3874
- ],
3875
- "appName": "ServiceMarketplace"
3875
+ ]
3876
3876
  }
3877
3877
  ]
3878
3878
  ]
@@ -3891,30 +3891,20 @@
3891
3891
  "render-ui",
3892
3892
  "main",
3893
3893
  {
3894
- "type": "dashboard-layout",
3895
- "appName": "ServiceMarketplace",
3896
- "children": [
3897
- {
3898
- "onRetry": "RETRY",
3899
- "title": "Payment Failed",
3900
- "type": "error-state",
3901
- "message": "@entity.error"
3902
- }
3903
- ],
3904
3894
  "navItems": [
3905
3895
  {
3906
- "href": "/products",
3907
3896
  "icon": "package",
3908
- "label": "Products"
3897
+ "label": "Products",
3898
+ "href": "/products"
3909
3899
  },
3910
3900
  {
3911
- "href": "/login",
3912
3901
  "icon": "layout-list",
3902
+ "href": "/login",
3913
3903
  "label": "Login"
3914
3904
  },
3915
3905
  {
3916
- "icon": "credit-card",
3917
3906
  "label": "Checkout",
3907
+ "icon": "credit-card",
3918
3908
  "href": "/checkout"
3919
3909
  },
3920
3910
  {
@@ -3922,6 +3912,16 @@
3922
3912
  "label": "Orders",
3923
3913
  "icon": "clipboard-list"
3924
3914
  }
3915
+ ],
3916
+ "type": "dashboard-layout",
3917
+ "appName": "ServiceMarketplace",
3918
+ "children": [
3919
+ {
3920
+ "title": "Payment Failed",
3921
+ "message": "@entity.error",
3922
+ "onRetry": "RETRY",
3923
+ "type": "error-state"
3924
+ }
3925
3925
  ]
3926
3926
  }
3927
3927
  ]
@@ -3936,37 +3936,19 @@
3936
3936
  "render-ui",
3937
3937
  "main",
3938
3938
  {
3939
- "navItems": [
3940
- {
3941
- "label": "Products",
3942
- "href": "/products",
3943
- "icon": "package"
3944
- },
3945
- {
3946
- "label": "Login",
3947
- "href": "/login",
3948
- "icon": "layout-list"
3949
- },
3950
- {
3951
- "label": "Checkout",
3952
- "href": "/checkout",
3953
- "icon": "credit-card"
3954
- },
3955
- {
3956
- "href": "/orders",
3957
- "icon": "clipboard-list",
3958
- "label": "Orders"
3959
- }
3960
- ],
3961
- "appName": "ServiceMarketplace",
3962
3939
  "type": "dashboard-layout",
3940
+ "appName": "ServiceMarketplace",
3963
3941
  "children": [
3964
3942
  {
3965
- "type": "stack",
3966
3943
  "align": "center",
3967
3944
  "direction": "vertical",
3945
+ "gap": "lg",
3946
+ "type": "stack",
3968
3947
  "children": [
3969
3948
  {
3949
+ "type": "stack",
3950
+ "direction": "horizontal",
3951
+ "align": "center",
3970
3952
  "children": [
3971
3953
  {
3972
3954
  "name": "credit-card",
@@ -3974,21 +3956,16 @@
3974
3956
  },
3975
3957
  {
3976
3958
  "variant": "h2",
3977
- "type": "typography",
3978
- "content": "Payment"
3959
+ "content": "Payment",
3960
+ "type": "typography"
3979
3961
  }
3980
3962
  ],
3981
- "direction": "horizontal",
3982
- "gap": "md",
3983
- "type": "stack",
3984
- "align": "center"
3963
+ "gap": "md"
3985
3964
  },
3986
3965
  {
3987
3966
  "type": "divider"
3988
3967
  },
3989
3968
  {
3990
- "gap": "md",
3991
- "direction": "vertical",
3992
3969
  "type": "stack",
3993
3970
  "children": [
3994
3971
  {
@@ -3997,49 +3974,36 @@
3997
3974
  "type": "input"
3998
3975
  },
3999
3976
  {
4000
- "type": "select",
4001
3977
  "options": [
4002
3978
  {
4003
- "label": "USD",
4004
- "value": "usd"
3979
+ "value": "usd",
3980
+ "label": "USD"
4005
3981
  },
4006
3982
  {
4007
3983
  "label": "EUR",
4008
3984
  "value": "eur"
4009
3985
  },
4010
3986
  {
4011
- "value": "gbp",
4012
- "label": "GBP"
3987
+ "label": "GBP",
3988
+ "value": "gbp"
4013
3989
  }
4014
- ]
3990
+ ],
3991
+ "type": "select"
4015
3992
  }
4016
- ]
3993
+ ],
3994
+ "direction": "vertical",
3995
+ "gap": "md"
4017
3996
  },
4018
3997
  {
4019
- "icon": "credit-card",
4020
3998
  "action": "CREATE_PAYMENT",
4021
- "type": "button",
4022
3999
  "variant": "primary",
4023
- "label": "Pay"
4000
+ "type": "button",
4001
+ "label": "Pay",
4002
+ "icon": "credit-card"
4024
4003
  }
4025
- ],
4026
- "gap": "lg"
4004
+ ]
4027
4005
  }
4028
- ]
4029
- }
4030
- ]
4031
- ]
4032
- },
4033
- {
4034
- "from": "error",
4035
- "to": "idle",
4036
- "event": "RETRY",
4037
- "effects": [
4038
- [
4039
- "render-ui",
4040
- "main",
4041
- {
4042
- "appName": "ServiceMarketplace",
4006
+ ],
4043
4007
  "navItems": [
4044
4008
  {
4045
4009
  "label": "Products",
@@ -4047,9 +4011,9 @@
4047
4011
  "icon": "package"
4048
4012
  },
4049
4013
  {
4014
+ "href": "/login",
4050
4015
  "icon": "layout-list",
4051
- "label": "Login",
4052
- "href": "/login"
4016
+ "label": "Login"
4053
4017
  },
4054
4018
  {
4055
4019
  "href": "/checkout",
@@ -4057,32 +4021,46 @@
4057
4021
  "icon": "credit-card"
4058
4022
  },
4059
4023
  {
4060
- "label": "Orders",
4061
4024
  "icon": "clipboard-list",
4025
+ "label": "Orders",
4062
4026
  "href": "/orders"
4063
4027
  }
4064
- ],
4028
+ ]
4029
+ }
4030
+ ]
4031
+ ]
4032
+ },
4033
+ {
4034
+ "from": "error",
4035
+ "to": "idle",
4036
+ "event": "RETRY",
4037
+ "effects": [
4038
+ [
4039
+ "render-ui",
4040
+ "main",
4041
+ {
4042
+ "appName": "ServiceMarketplace",
4065
4043
  "children": [
4066
4044
  {
4045
+ "align": "center",
4067
4046
  "type": "stack",
4068
4047
  "gap": "lg",
4069
4048
  "direction": "vertical",
4070
- "align": "center",
4071
4049
  "children": [
4072
4050
  {
4051
+ "direction": "horizontal",
4052
+ "type": "stack",
4073
4053
  "children": [
4074
4054
  {
4075
- "name": "credit-card",
4076
- "type": "icon"
4055
+ "type": "icon",
4056
+ "name": "credit-card"
4077
4057
  },
4078
4058
  {
4059
+ "content": "Payment",
4079
4060
  "variant": "h2",
4080
- "type": "typography",
4081
- "content": "Payment"
4061
+ "type": "typography"
4082
4062
  }
4083
4063
  ],
4084
- "type": "stack",
4085
- "direction": "horizontal",
4086
4064
  "align": "center",
4087
4065
  "gap": "md"
4088
4066
  },
@@ -4090,11 +4068,14 @@
4090
4068
  "type": "divider"
4091
4069
  },
4092
4070
  {
4071
+ "gap": "md",
4072
+ "direction": "vertical",
4073
+ "type": "stack",
4093
4074
  "children": [
4094
4075
  {
4095
- "placeholder": "0.00",
4076
+ "inputType": "number",
4096
4077
  "type": "input",
4097
- "inputType": "number"
4078
+ "placeholder": "0.00"
4098
4079
  },
4099
4080
  {
4100
4081
  "options": [
@@ -4103,8 +4084,8 @@
4103
4084
  "value": "usd"
4104
4085
  },
4105
4086
  {
4106
- "value": "eur",
4107
- "label": "EUR"
4087
+ "label": "EUR",
4088
+ "value": "eur"
4108
4089
  },
4109
4090
  {
4110
4091
  "label": "GBP",
@@ -4113,49 +4094,33 @@
4113
4094
  ],
4114
4095
  "type": "select"
4115
4096
  }
4116
- ],
4117
- "type": "stack",
4118
- "direction": "vertical",
4119
- "gap": "md"
4097
+ ]
4120
4098
  },
4121
4099
  {
4122
- "action": "CREATE_PAYMENT",
4123
- "label": "Pay",
4124
4100
  "icon": "credit-card",
4101
+ "variant": "primary",
4125
4102
  "type": "button",
4126
- "variant": "primary"
4103
+ "label": "Pay",
4104
+ "action": "CREATE_PAYMENT"
4127
4105
  }
4128
4106
  ]
4129
4107
  }
4130
4108
  ],
4131
- "type": "dashboard-layout"
4132
- }
4133
- ]
4134
- ]
4135
- },
4136
- {
4137
- "from": "error",
4138
- "to": "idle",
4139
- "event": "RESET",
4140
- "effects": [
4141
- [
4142
- "render-ui",
4143
- "main",
4144
- {
4109
+ "type": "dashboard-layout",
4145
4110
  "navItems": [
4146
4111
  {
4147
4112
  "icon": "package",
4148
- "href": "/products",
4149
- "label": "Products"
4113
+ "label": "Products",
4114
+ "href": "/products"
4150
4115
  },
4151
4116
  {
4117
+ "label": "Login",
4152
4118
  "href": "/login",
4153
- "icon": "layout-list",
4154
- "label": "Login"
4119
+ "icon": "layout-list"
4155
4120
  },
4156
4121
  {
4157
- "icon": "credit-card",
4158
4122
  "label": "Checkout",
4123
+ "icon": "credit-card",
4159
4124
  "href": "/checkout"
4160
4125
  },
4161
4126
  {
@@ -4163,29 +4128,44 @@
4163
4128
  "href": "/orders",
4164
4129
  "icon": "clipboard-list"
4165
4130
  }
4166
- ],
4131
+ ]
4132
+ }
4133
+ ]
4134
+ ]
4135
+ },
4136
+ {
4137
+ "from": "error",
4138
+ "to": "idle",
4139
+ "event": "RESET",
4140
+ "effects": [
4141
+ [
4142
+ "render-ui",
4143
+ "main",
4144
+ {
4167
4145
  "type": "dashboard-layout",
4168
4146
  "children": [
4169
4147
  {
4170
- "align": "center",
4171
4148
  "type": "stack",
4149
+ "direction": "vertical",
4150
+ "gap": "lg",
4151
+ "align": "center",
4172
4152
  "children": [
4173
4153
  {
4174
- "type": "stack",
4175
- "gap": "md",
4176
- "align": "center",
4154
+ "direction": "horizontal",
4177
4155
  "children": [
4178
4156
  {
4179
4157
  "type": "icon",
4180
4158
  "name": "credit-card"
4181
4159
  },
4182
4160
  {
4183
- "variant": "h2",
4184
4161
  "content": "Payment",
4162
+ "variant": "h2",
4185
4163
  "type": "typography"
4186
4164
  }
4187
4165
  ],
4188
- "direction": "horizontal"
4166
+ "gap": "md",
4167
+ "align": "center",
4168
+ "type": "stack"
4189
4169
  },
4190
4170
  {
4191
4171
  "type": "divider"
@@ -4195,43 +4175,63 @@
4195
4175
  "gap": "md",
4196
4176
  "children": [
4197
4177
  {
4178
+ "placeholder": "0.00",
4198
4179
  "type": "input",
4199
- "inputType": "number",
4200
- "placeholder": "0.00"
4180
+ "inputType": "number"
4201
4181
  },
4202
4182
  {
4203
- "type": "select",
4204
4183
  "options": [
4205
4184
  {
4206
- "label": "USD",
4207
- "value": "usd"
4185
+ "value": "usd",
4186
+ "label": "USD"
4208
4187
  },
4209
4188
  {
4210
- "label": "EUR",
4211
- "value": "eur"
4189
+ "value": "eur",
4190
+ "label": "EUR"
4212
4191
  },
4213
4192
  {
4214
- "label": "GBP",
4215
- "value": "gbp"
4193
+ "value": "gbp",
4194
+ "label": "GBP"
4216
4195
  }
4217
- ]
4196
+ ],
4197
+ "type": "select"
4218
4198
  }
4219
4199
  ],
4220
4200
  "direction": "vertical"
4221
4201
  },
4222
4202
  {
4223
4203
  "icon": "credit-card",
4224
- "label": "Pay",
4225
4204
  "type": "button",
4226
- "variant": "primary",
4227
- "action": "CREATE_PAYMENT"
4205
+ "label": "Pay",
4206
+ "action": "CREATE_PAYMENT",
4207
+ "variant": "primary"
4228
4208
  }
4229
- ],
4230
- "direction": "vertical",
4231
- "gap": "lg"
4209
+ ]
4232
4210
  }
4233
4211
  ],
4234
- "appName": "ServiceMarketplace"
4212
+ "appName": "ServiceMarketplace",
4213
+ "navItems": [
4214
+ {
4215
+ "href": "/products",
4216
+ "icon": "package",
4217
+ "label": "Products"
4218
+ },
4219
+ {
4220
+ "href": "/login",
4221
+ "icon": "layout-list",
4222
+ "label": "Login"
4223
+ },
4224
+ {
4225
+ "label": "Checkout",
4226
+ "icon": "credit-card",
4227
+ "href": "/checkout"
4228
+ },
4229
+ {
4230
+ "href": "/orders",
4231
+ "icon": "clipboard-list",
4232
+ "label": "Orders"
4233
+ }
4234
+ ]
4235
4235
  }
4236
4236
  ]
4237
4237
  ]
@@ -4356,44 +4356,44 @@
4356
4356
  "type": "dashboard-layout",
4357
4357
  "navItems": [
4358
4358
  {
4359
- "icon": "package",
4360
4359
  "label": "Products",
4360
+ "icon": "package",
4361
4361
  "href": "/products"
4362
4362
  },
4363
4363
  {
4364
- "label": "Login",
4365
4364
  "href": "/login",
4365
+ "label": "Login",
4366
4366
  "icon": "layout-list"
4367
4367
  },
4368
4368
  {
4369
+ "icon": "credit-card",
4369
4370
  "href": "/checkout",
4370
- "label": "Checkout",
4371
- "icon": "credit-card"
4371
+ "label": "Checkout"
4372
4372
  },
4373
4373
  {
4374
- "label": "Orders",
4374
+ "icon": "clipboard-list",
4375
4375
  "href": "/orders",
4376
- "icon": "clipboard-list"
4376
+ "label": "Orders"
4377
4377
  }
4378
4378
  ],
4379
4379
  "children": [
4380
4380
  {
4381
+ "gap": "md",
4382
+ "type": "stack",
4383
+ "direction": "vertical",
4384
+ "align": "center",
4381
4385
  "children": [
4382
4386
  {
4383
- "name": "mail",
4384
- "type": "icon"
4387
+ "type": "icon",
4388
+ "name": "mail"
4385
4389
  },
4386
4390
  {
4387
- "color": "muted",
4391
+ "variant": "body",
4388
4392
  "type": "typography",
4389
4393
  "content": "Receipt will be sent after payment.",
4390
- "variant": "body"
4394
+ "color": "muted"
4391
4395
  }
4392
- ],
4393
- "type": "stack",
4394
- "gap": "md",
4395
- "direction": "vertical",
4396
- "align": "center"
4396
+ ]
4397
4397
  }
4398
4398
  ]
4399
4399
  }
@@ -4409,20 +4409,20 @@
4409
4409
  "render-ui",
4410
4410
  "main",
4411
4411
  {
4412
+ "type": "dashboard-layout",
4413
+ "appName": "ServiceMarketplace",
4412
4414
  "children": [
4413
4415
  {
4414
- "title": "Sending receipt...",
4415
4416
  "type": "loading-state",
4417
+ "title": "Sending receipt...",
4416
4418
  "message": "Delivering your payment receipt."
4417
4419
  }
4418
4420
  ],
4419
- "appName": "ServiceMarketplace",
4420
- "type": "dashboard-layout",
4421
4421
  "navItems": [
4422
4422
  {
4423
- "href": "/products",
4423
+ "icon": "package",
4424
4424
  "label": "Products",
4425
- "icon": "package"
4425
+ "href": "/products"
4426
4426
  },
4427
4427
  {
4428
4428
  "icon": "layout-list",
@@ -4435,9 +4435,9 @@
4435
4435
  "label": "Checkout"
4436
4436
  },
4437
4437
  {
4438
- "icon": "clipboard-list",
4438
+ "label": "Orders",
4439
4439
  "href": "/orders",
4440
- "label": "Orders"
4440
+ "icon": "clipboard-list"
4441
4441
  }
4442
4442
  ]
4443
4443
  }
@@ -4447,9 +4447,9 @@
4447
4447
  "email",
4448
4448
  "send",
4449
4449
  {
4450
+ "to": "@entity.to",
4450
4451
  "subject": "@entity.subject",
4451
- "body": "@entity.body",
4452
- "to": "@entity.to"
4452
+ "body": "@entity.body"
4453
4453
  },
4454
4454
  {
4455
4455
  "emit": {
@@ -4474,17 +4474,16 @@
4474
4474
  "render-ui",
4475
4475
  "main",
4476
4476
  {
4477
- "type": "dashboard-layout",
4478
4477
  "appName": "ServiceMarketplace",
4478
+ "type": "dashboard-layout",
4479
4479
  "children": [
4480
4480
  {
4481
- "type": "stack",
4481
+ "align": "center",
4482
4482
  "gap": "md",
4483
- "direction": "vertical",
4484
4483
  "children": [
4485
4484
  {
4486
- "name": "check-circle",
4487
- "type": "icon"
4485
+ "type": "icon",
4486
+ "name": "check-circle"
4488
4487
  },
4489
4488
  {
4490
4489
  "message": "Receipt sent successfully",
@@ -4492,18 +4491,19 @@
4492
4491
  "variant": "success"
4493
4492
  }
4494
4493
  ],
4495
- "align": "center"
4494
+ "type": "stack",
4495
+ "direction": "vertical"
4496
4496
  }
4497
4497
  ],
4498
4498
  "navItems": [
4499
4499
  {
4500
+ "icon": "package",
4500
4501
  "label": "Products",
4501
- "href": "/products",
4502
- "icon": "package"
4502
+ "href": "/products"
4503
4503
  },
4504
4504
  {
4505
- "icon": "layout-list",
4506
4505
  "href": "/login",
4506
+ "icon": "layout-list",
4507
4507
  "label": "Login"
4508
4508
  },
4509
4509
  {
@@ -4535,15 +4535,19 @@
4535
4535
  "render-ui",
4536
4536
  "main",
4537
4537
  {
4538
+ "appName": "ServiceMarketplace",
4538
4539
  "children": [
4539
4540
  {
4541
+ "type": "stack",
4542
+ "gap": "md",
4540
4543
  "align": "center",
4544
+ "direction": "vertical",
4541
4545
  "children": [
4542
4546
  {
4543
4547
  "type": "error-state",
4548
+ "onRetry": "RETRY_RECEIPT",
4544
4549
  "message": "Could not send receipt email.",
4545
- "title": "Receipt Failed",
4546
- "onRetry": "RETRY_RECEIPT"
4550
+ "title": "Receipt Failed"
4547
4551
  },
4548
4552
  {
4549
4553
  "icon": "refresh-cw",
@@ -4552,10 +4556,7 @@
4552
4556
  "variant": "primary",
4553
4557
  "type": "button"
4554
4558
  }
4555
- ],
4556
- "type": "stack",
4557
- "direction": "vertical",
4558
- "gap": "md"
4559
+ ]
4559
4560
  }
4560
4561
  ],
4561
4562
  "navItems": [
@@ -4565,23 +4566,22 @@
4565
4566
  "label": "Products"
4566
4567
  },
4567
4568
  {
4569
+ "label": "Login",
4568
4570
  "href": "/login",
4569
- "icon": "layout-list",
4570
- "label": "Login"
4571
+ "icon": "layout-list"
4571
4572
  },
4572
4573
  {
4574
+ "label": "Checkout",
4573
4575
  "href": "/checkout",
4574
- "icon": "credit-card",
4575
- "label": "Checkout"
4576
+ "icon": "credit-card"
4576
4577
  },
4577
4578
  {
4579
+ "href": "/orders",
4578
4580
  "icon": "clipboard-list",
4579
- "label": "Orders",
4580
- "href": "/orders"
4581
+ "label": "Orders"
4581
4582
  }
4582
4583
  ],
4583
- "type": "dashboard-layout",
4584
- "appName": "ServiceMarketplace"
4584
+ "type": "dashboard-layout"
4585
4585
  }
4586
4586
  ]
4587
4587
  ]
@@ -4595,8 +4595,8 @@
4595
4595
  "render-ui",
4596
4596
  "main",
4597
4597
  {
4598
- "title": "Resending receipt...",
4599
- "type": "loading-state"
4598
+ "type": "loading-state",
4599
+ "title": "Resending receipt..."
4600
4600
  }
4601
4601
  ],
4602
4602
  [
@@ -4605,8 +4605,8 @@
4605
4605
  "send",
4606
4606
  {
4607
4607
  "body": "@entity.body",
4608
- "to": "@entity.to",
4609
- "subject": "@entity.subject"
4608
+ "subject": "@entity.subject",
4609
+ "to": "@entity.to"
4610
4610
  },
4611
4611
  {
4612
4612
  "emit": {
@@ -4626,15 +4626,16 @@
4626
4626
  "render-ui",
4627
4627
  "main",
4628
4628
  {
4629
+ "type": "dashboard-layout",
4629
4630
  "navItems": [
4630
4631
  {
4631
- "icon": "package",
4632
4632
  "href": "/products",
4633
+ "icon": "package",
4633
4634
  "label": "Products"
4634
4635
  },
4635
4636
  {
4636
- "label": "Login",
4637
4637
  "icon": "layout-list",
4638
+ "label": "Login",
4638
4639
  "href": "/login"
4639
4640
  },
4640
4641
  {
@@ -4643,20 +4644,19 @@
4643
4644
  "icon": "credit-card"
4644
4645
  },
4645
4646
  {
4646
- "label": "Orders",
4647
4647
  "href": "/orders",
4648
- "icon": "clipboard-list"
4648
+ "icon": "clipboard-list",
4649
+ "label": "Orders"
4649
4650
  }
4650
4651
  ],
4651
- "type": "dashboard-layout",
4652
+ "appName": "ServiceMarketplace",
4652
4653
  "children": [
4653
4654
  {
4654
4655
  "type": "loading-state",
4655
- "message": "Delivering your payment receipt.",
4656
- "title": "Sending receipt..."
4656
+ "title": "Sending receipt...",
4657
+ "message": "Delivering your payment receipt."
4657
4658
  }
4658
- ],
4659
- "appName": "ServiceMarketplace"
4659
+ ]
4660
4660
  }
4661
4661
  ],
4662
4662
  [
@@ -4664,8 +4664,8 @@
4664
4664
  "email",
4665
4665
  "send",
4666
4666
  {
4667
- "subject": "@entity.subject",
4668
4667
  "to": "@entity.to",
4668
+ "subject": "@entity.subject",
4669
4669
  "body": "@entity.body"
4670
4670
  },
4671
4671
  {
@@ -4841,8 +4841,8 @@
4841
4841
  "Order",
4842
4842
  {
4843
4843
  "emit": {
4844
- "failure": "OrderLoadFailed",
4845
- "success": "OrderLoaded"
4844
+ "success": "OrderLoaded",
4845
+ "failure": "OrderLoadFailed"
4846
4846
  }
4847
4847
  }
4848
4848
  ],
@@ -4851,6 +4851,7 @@
4851
4851
  "main",
4852
4852
  {
4853
4853
  "type": "stack",
4854
+ "align": "center",
4854
4855
  "className": "py-12",
4855
4856
  "children": [
4856
4857
  {
@@ -4858,14 +4859,13 @@
4858
4859
  },
4859
4860
  {
4860
4861
  "type": "typography",
4862
+ "variant": "caption",
4861
4863
  "content": "Loading…",
4862
- "color": "muted",
4863
- "variant": "caption"
4864
+ "color": "muted"
4864
4865
  }
4865
4866
  ],
4866
4867
  "gap": "md",
4867
- "direction": "vertical",
4868
- "align": "center"
4868
+ "direction": "vertical"
4869
4869
  }
4870
4870
  ]
4871
4871
  ]
@@ -4879,137 +4879,137 @@
4879
4879
  "render-ui",
4880
4880
  "main",
4881
4881
  {
4882
+ "type": "dashboard-layout",
4883
+ "navItems": [
4884
+ {
4885
+ "label": "Products",
4886
+ "href": "/products",
4887
+ "icon": "package"
4888
+ },
4889
+ {
4890
+ "label": "Login",
4891
+ "href": "/login",
4892
+ "icon": "layout-list"
4893
+ },
4894
+ {
4895
+ "icon": "credit-card",
4896
+ "href": "/checkout",
4897
+ "label": "Checkout"
4898
+ },
4899
+ {
4900
+ "label": "Orders",
4901
+ "icon": "clipboard-list",
4902
+ "href": "/orders"
4903
+ }
4904
+ ],
4905
+ "appName": "ServiceMarketplace",
4882
4906
  "children": [
4883
4907
  {
4884
4908
  "type": "stack",
4885
4909
  "className": "max-w-5xl mx-auto w-full",
4886
4910
  "children": [
4887
4911
  {
4912
+ "justify": "between",
4913
+ "gap": "md",
4914
+ "direction": "horizontal",
4915
+ "type": "stack",
4916
+ "align": "center",
4888
4917
  "children": [
4889
4918
  {
4919
+ "type": "stack",
4890
4920
  "gap": "sm",
4921
+ "align": "center",
4922
+ "direction": "horizontal",
4891
4923
  "children": [
4892
4924
  {
4893
4925
  "name": "list",
4894
4926
  "type": "icon"
4895
4927
  },
4896
4928
  {
4897
- "type": "typography",
4929
+ "variant": "h2",
4898
4930
  "content": "Orders",
4899
- "variant": "h2"
4931
+ "type": "typography"
4900
4932
  }
4901
- ],
4902
- "direction": "horizontal",
4903
- "type": "stack",
4904
- "align": "center"
4933
+ ]
4905
4934
  },
4906
4935
  {
4907
4936
  "children": [
4908
4937
  {
4909
- "type": "button",
4938
+ "icon": "plus",
4939
+ "action": "CREATE",
4910
4940
  "variant": "primary",
4911
4941
  "label": "Create Order",
4912
- "icon": "plus",
4913
- "action": "CREATE"
4942
+ "type": "button"
4914
4943
  }
4915
4944
  ],
4916
4945
  "gap": "sm",
4917
4946
  "type": "stack",
4918
4947
  "direction": "horizontal"
4919
4948
  }
4920
- ],
4921
- "direction": "horizontal",
4922
- "justify": "between",
4923
- "align": "center",
4924
- "gap": "md",
4925
- "type": "stack"
4949
+ ]
4926
4950
  },
4927
4951
  {
4928
4952
  "type": "divider"
4929
4953
  },
4930
4954
  {
4931
- "type": "data-grid",
4932
4955
  "entity": "@payload.data",
4956
+ "fields": [],
4933
4957
  "itemActions": [
4934
4958
  {
4959
+ "event": "VIEW",
4935
4960
  "variant": "ghost",
4936
- "label": "View",
4937
- "event": "VIEW"
4961
+ "label": "View"
4938
4962
  },
4939
4963
  {
4940
- "label": "Edit",
4964
+ "variant": "ghost",
4941
4965
  "event": "EDIT",
4942
- "variant": "ghost"
4966
+ "label": "Edit"
4943
4967
  },
4944
4968
  {
4969
+ "variant": "danger",
4945
4970
  "event": "DELETE",
4946
- "label": "Delete",
4947
- "variant": "danger"
4971
+ "label": "Delete"
4948
4972
  }
4949
4973
  ],
4950
4974
  "columns": [
4951
4975
  {
4952
4976
  "icon": "list",
4953
- "label": "Product Name",
4977
+ "variant": "h4",
4954
4978
  "name": "productName",
4955
- "variant": "h4"
4979
+ "label": "Product Name"
4956
4980
  },
4957
4981
  {
4982
+ "variant": "badge",
4958
4983
  "name": "amount",
4959
4984
  "label": "Amount",
4960
- "variant": "badge",
4961
4985
  "colorMap": {
4962
- "inactive": "neutral",
4963
- "pending": "warning",
4964
- "archived": "neutral",
4965
4986
  "active": "success",
4987
+ "draft": "warning",
4988
+ "failed": "destructive",
4966
4989
  "disabled": "neutral",
4967
- "completed": "success",
4968
- "error": "destructive",
4969
4990
  "cancelled": "destructive",
4970
- "draft": "warning",
4991
+ "scheduled": "warning",
4992
+ "archived": "neutral",
4971
4993
  "done": "success",
4972
- "failed": "destructive",
4973
- "scheduled": "warning"
4994
+ "error": "destructive",
4995
+ "completed": "success",
4996
+ "inactive": "neutral",
4997
+ "pending": "warning"
4974
4998
  }
4975
4999
  },
4976
5000
  {
4977
- "label": "Payment Status",
4978
5001
  "variant": "caption",
5002
+ "label": "Payment Status",
4979
5003
  "name": "paymentStatus"
4980
5004
  }
4981
5005
  ],
4982
- "fields": []
5006
+ "type": "data-grid"
4983
5007
  }
4984
5008
  ],
4985
5009
  "gap": "lg",
4986
5010
  "direction": "vertical"
4987
5011
  }
4988
- ],
4989
- "appName": "ServiceMarketplace",
4990
- "navItems": [
4991
- {
4992
- "icon": "package",
4993
- "href": "/products",
4994
- "label": "Products"
4995
- },
4996
- {
4997
- "href": "/login",
4998
- "label": "Login",
4999
- "icon": "layout-list"
5000
- },
5001
- {
5002
- "icon": "credit-card",
5003
- "href": "/checkout",
5004
- "label": "Checkout"
5005
- },
5006
- {
5007
- "href": "/orders",
5008
- "label": "Orders",
5009
- "icon": "clipboard-list"
5010
- }
5011
- ],
5012
- "type": "dashboard-layout"
5012
+ ]
5013
5013
  }
5014
5014
  ]
5015
5015
  ]
@@ -5023,36 +5023,36 @@
5023
5023
  "render-ui",
5024
5024
  "main",
5025
5025
  {
5026
- "gap": "md",
5027
5026
  "type": "stack",
5028
5027
  "align": "center",
5029
- "direction": "vertical",
5030
5028
  "className": "py-12",
5029
+ "gap": "md",
5031
5030
  "children": [
5032
5031
  {
5033
- "color": "destructive",
5034
5032
  "type": "icon",
5035
- "name": "alert-triangle"
5033
+ "name": "alert-triangle",
5034
+ "color": "destructive"
5036
5035
  },
5037
5036
  {
5037
+ "variant": "h3",
5038
5038
  "content": "Failed to load order",
5039
- "type": "typography",
5040
- "variant": "h3"
5039
+ "type": "typography"
5041
5040
  },
5042
5041
  {
5043
- "variant": "body",
5042
+ "color": "muted",
5044
5043
  "type": "typography",
5045
5044
  "content": "@payload.error",
5046
- "color": "muted"
5045
+ "variant": "body"
5047
5046
  },
5048
5047
  {
5049
- "action": "INIT",
5050
5048
  "label": "Retry",
5049
+ "action": "INIT",
5051
5050
  "variant": "primary",
5052
- "type": "button",
5053
- "icon": "rotate-ccw"
5051
+ "icon": "rotate-ccw",
5052
+ "type": "button"
5054
5053
  }
5055
- ]
5054
+ ],
5055
+ "direction": "vertical"
5056
5056
  }
5057
5057
  ]
5058
5058
  ]
@@ -5228,8 +5228,8 @@
5228
5228
  "Order",
5229
5229
  {
5230
5230
  "emit": {
5231
- "failure": "OrderLoadFailed",
5232
- "success": "OrderLoaded"
5231
+ "success": "OrderLoaded",
5232
+ "failure": "OrderLoadFailed"
5233
5233
  }
5234
5234
  }
5235
5235
  ],
@@ -5237,42 +5237,42 @@
5237
5237
  "render-ui",
5238
5238
  "modal",
5239
5239
  {
5240
+ "type": "stack",
5241
+ "gap": "md",
5242
+ "direction": "vertical",
5240
5243
  "children": [
5241
5244
  {
5245
+ "type": "stack",
5242
5246
  "direction": "horizontal",
5247
+ "gap": "sm",
5243
5248
  "children": [
5244
5249
  {
5245
5250
  "type": "icon",
5246
5251
  "name": "plus-circle"
5247
5252
  },
5248
5253
  {
5249
- "content": "Create Order",
5254
+ "variant": "h3",
5250
5255
  "type": "typography",
5251
- "variant": "h3"
5256
+ "content": "Create Order"
5252
5257
  }
5253
- ],
5254
- "type": "stack",
5255
- "gap": "sm"
5258
+ ]
5256
5259
  },
5257
5260
  {
5258
5261
  "type": "divider"
5259
5262
  },
5260
5263
  {
5261
- "type": "form-section",
5262
5264
  "mode": "create",
5263
- "submitEvent": "SAVE",
5264
- "cancelEvent": "CLOSE",
5265
5265
  "fields": [
5266
5266
  "productName",
5267
5267
  "amount",
5268
5268
  "paymentStatus",
5269
5269
  "orderDate"
5270
- ]
5270
+ ],
5271
+ "submitEvent": "SAVE",
5272
+ "cancelEvent": "CLOSE",
5273
+ "type": "form-section"
5271
5274
  }
5272
- ],
5273
- "type": "stack",
5274
- "direction": "vertical",
5275
- "gap": "md"
5275
+ ]
5276
5276
  }
5277
5277
  ]
5278
5278
  ]
@@ -5516,23 +5516,24 @@
5516
5516
  "fetch",
5517
5517
  "Order",
5518
5518
  {
5519
- "id": "@payload.id",
5520
5519
  "emit": {
5521
5520
  "success": "OrderLoaded",
5522
5521
  "failure": "OrderLoadFailed"
5523
- }
5522
+ },
5523
+ "id": "@payload.id"
5524
5524
  }
5525
5525
  ],
5526
5526
  [
5527
5527
  "render-ui",
5528
5528
  "modal",
5529
5529
  {
5530
- "direction": "vertical",
5531
5530
  "gap": "md",
5532
5531
  "type": "stack",
5532
+ "direction": "vertical",
5533
5533
  "children": [
5534
5534
  {
5535
5535
  "type": "stack",
5536
+ "gap": "sm",
5536
5537
  "children": [
5537
5538
  {
5538
5539
  "type": "icon",
@@ -5544,23 +5545,22 @@
5544
5545
  "content": "Edit Order"
5545
5546
  }
5546
5547
  ],
5547
- "direction": "horizontal",
5548
- "gap": "sm"
5548
+ "direction": "horizontal"
5549
5549
  },
5550
5550
  {
5551
5551
  "type": "divider"
5552
5552
  },
5553
5553
  {
5554
- "mode": "edit",
5555
- "submitEvent": "SAVE",
5556
5554
  "entity": "@payload.row",
5557
- "type": "form-section",
5558
5555
  "fields": [
5559
5556
  "productName",
5560
5557
  "amount",
5561
5558
  "paymentStatus",
5562
5559
  "orderDate"
5563
5560
  ],
5561
+ "submitEvent": "SAVE",
5562
+ "type": "form-section",
5563
+ "mode": "edit",
5564
5564
  "cancelEvent": "CLOSE"
5565
5565
  }
5566
5566
  ]
@@ -5604,8 +5604,8 @@
5604
5604
  "@payload.data",
5605
5605
  {
5606
5606
  "emit": {
5607
- "failure": "OrderUpdateFailed",
5608
- "success": "OrderUpdated"
5607
+ "success": "OrderUpdated",
5608
+ "failure": "OrderUpdateFailed"
5609
5609
  }
5610
5610
  }
5611
5611
  ],
@@ -5742,34 +5742,35 @@
5742
5742
  "fetch",
5743
5743
  "Order",
5744
5744
  {
5745
+ "id": "@payload.id",
5745
5746
  "emit": {
5746
- "success": "OrderLoaded",
5747
- "failure": "OrderLoadFailed"
5748
- },
5749
- "id": "@payload.id"
5747
+ "failure": "OrderLoadFailed",
5748
+ "success": "OrderLoaded"
5749
+ }
5750
5750
  }
5751
5751
  ],
5752
5752
  [
5753
5753
  "render-ui",
5754
5754
  "modal",
5755
5755
  {
5756
+ "gap": "md",
5756
5757
  "children": [
5757
5758
  {
5758
- "type": "stack",
5759
+ "direction": "horizontal",
5759
5760
  "align": "center",
5761
+ "type": "stack",
5762
+ "gap": "sm",
5760
5763
  "children": [
5761
5764
  {
5762
5765
  "name": "eye",
5763
5766
  "type": "icon"
5764
5767
  },
5765
5768
  {
5766
- "content": "@entity.productName",
5769
+ "type": "typography",
5767
5770
  "variant": "h3",
5768
- "type": "typography"
5771
+ "content": "@entity.productName"
5769
5772
  }
5770
- ],
5771
- "direction": "horizontal",
5772
- "gap": "sm"
5773
+ ]
5773
5774
  },
5774
5775
  {
5775
5776
  "type": "divider"
@@ -5777,68 +5778,68 @@
5777
5778
  {
5778
5779
  "children": [
5779
5780
  {
5780
- "type": "typography",
5781
5781
  "content": "Product Name",
5782
- "variant": "caption"
5782
+ "variant": "caption",
5783
+ "type": "typography"
5783
5784
  },
5784
5785
  {
5785
- "content": "@entity.productName",
5786
5786
  "type": "typography",
5787
+ "content": "@entity.productName",
5787
5788
  "variant": "body"
5788
5789
  }
5789
5790
  ],
5791
+ "direction": "horizontal",
5790
5792
  "type": "stack",
5791
- "gap": "md",
5792
- "direction": "horizontal"
5793
+ "gap": "md"
5793
5794
  },
5794
5795
  {
5795
- "type": "stack",
5796
5796
  "direction": "horizontal",
5797
+ "gap": "md",
5797
5798
  "children": [
5798
5799
  {
5799
- "variant": "caption",
5800
5800
  "content": "Amount",
5801
+ "variant": "caption",
5801
5802
  "type": "typography"
5802
5803
  },
5803
5804
  {
5804
- "content": "@entity.amount",
5805
+ "variant": "body",
5805
5806
  "type": "typography",
5806
- "variant": "body"
5807
+ "content": "@entity.amount"
5807
5808
  }
5808
5809
  ],
5809
- "gap": "md"
5810
+ "type": "stack"
5810
5811
  },
5811
5812
  {
5812
- "direction": "horizontal",
5813
- "gap": "md",
5814
- "type": "stack",
5815
5813
  "children": [
5816
5814
  {
5817
5815
  "content": "Payment Status",
5818
- "variant": "caption",
5819
- "type": "typography"
5816
+ "type": "typography",
5817
+ "variant": "caption"
5820
5818
  },
5821
5819
  {
5822
5820
  "type": "typography",
5823
5821
  "variant": "body",
5824
5822
  "content": "@entity.paymentStatus"
5825
5823
  }
5826
- ]
5824
+ ],
5825
+ "gap": "md",
5826
+ "direction": "horizontal",
5827
+ "type": "stack"
5827
5828
  },
5828
5829
  {
5829
- "gap": "md",
5830
5830
  "direction": "horizontal",
5831
+ "gap": "md",
5831
5832
  "type": "stack",
5832
5833
  "children": [
5833
5834
  {
5835
+ "type": "typography",
5834
5836
  "variant": "caption",
5835
- "content": "Order Date",
5836
- "type": "typography"
5837
+ "content": "Order Date"
5837
5838
  },
5838
5839
  {
5839
- "type": "typography",
5840
5840
  "variant": "body",
5841
- "content": "@entity.orderDate"
5841
+ "content": "@entity.orderDate",
5842
+ "type": "typography"
5842
5843
  }
5843
5844
  ]
5844
5845
  },
@@ -5846,30 +5847,29 @@
5846
5847
  "type": "divider"
5847
5848
  },
5848
5849
  {
5849
- "type": "stack",
5850
+ "justify": "end",
5850
5851
  "children": [
5851
5852
  {
5852
- "icon": "edit",
5853
5853
  "label": "Edit",
5854
- "action": "EDIT",
5854
+ "type": "button",
5855
5855
  "variant": "primary",
5856
- "type": "button"
5856
+ "icon": "edit",
5857
+ "action": "EDIT"
5857
5858
  },
5858
5859
  {
5859
- "variant": "ghost",
5860
- "action": "CLOSE",
5860
+ "type": "button",
5861
5861
  "label": "Close",
5862
- "type": "button"
5862
+ "variant": "ghost",
5863
+ "action": "CLOSE"
5863
5864
  }
5864
5865
  ],
5865
- "direction": "horizontal",
5866
+ "type": "stack",
5866
5867
  "gap": "sm",
5867
- "justify": "end"
5868
+ "direction": "horizontal"
5868
5869
  }
5869
5870
  ],
5870
- "direction": "vertical",
5871
5871
  "type": "stack",
5872
- "gap": "md"
5872
+ "direction": "vertical"
5873
5873
  }
5874
5874
  ]
5875
5875
  ]
@@ -6109,55 +6109,55 @@
6109
6109
  {
6110
6110
  "gap": "md",
6111
6111
  "type": "stack",
6112
+ "direction": "vertical",
6112
6113
  "children": [
6113
6114
  {
6114
- "gap": "sm",
6115
- "type": "stack",
6115
+ "align": "center",
6116
6116
  "children": [
6117
6117
  {
6118
6118
  "name": "alert-triangle",
6119
6119
  "type": "icon"
6120
6120
  },
6121
6121
  {
6122
- "type": "typography",
6123
6122
  "content": "Delete Order",
6124
- "variant": "h3"
6123
+ "variant": "h3",
6124
+ "type": "typography"
6125
6125
  }
6126
6126
  ],
6127
+ "gap": "sm",
6127
6128
  "direction": "horizontal",
6128
- "align": "center"
6129
+ "type": "stack"
6129
6130
  },
6130
6131
  {
6131
6132
  "type": "divider"
6132
6133
  },
6133
6134
  {
6134
6135
  "message": "This action cannot be undone.",
6135
- "variant": "error",
6136
- "type": "alert"
6136
+ "type": "alert",
6137
+ "variant": "error"
6137
6138
  },
6138
6139
  {
6139
- "gap": "sm",
6140
6140
  "direction": "horizontal",
6141
- "type": "stack",
6141
+ "justify": "end",
6142
6142
  "children": [
6143
6143
  {
6144
- "label": "Cancel",
6145
- "type": "button",
6146
6144
  "action": "CANCEL",
6147
- "variant": "ghost"
6145
+ "variant": "ghost",
6146
+ "label": "Cancel",
6147
+ "type": "button"
6148
6148
  },
6149
6149
  {
6150
- "type": "button",
6151
- "variant": "danger",
6152
- "icon": "check",
6153
6150
  "label": "Delete",
6154
- "action": "CONFIRM_DELETE"
6151
+ "action": "CONFIRM_DELETE",
6152
+ "variant": "danger",
6153
+ "type": "button",
6154
+ "icon": "check"
6155
6155
  }
6156
6156
  ],
6157
- "justify": "end"
6157
+ "type": "stack",
6158
+ "gap": "sm"
6158
6159
  }
6159
- ],
6160
- "direction": "vertical"
6160
+ ]
6161
6161
  }
6162
6162
  ]
6163
6163
  ]
@@ -6277,4 +6277,4 @@
6277
6277
  ]
6278
6278
  }
6279
6279
  ]
6280
- }
6280
+ }