@almadar/std 8.4.1 → 8.5.1

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