@almadar/std 14.5.1 → 14.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1077 -1077
  2. package/behaviors/registry/agent/organisms/std-agent-builder.orb +3053 -3053
  3. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2159 -2159
  4. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +931 -931
  5. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +793 -793
  6. package/behaviors/registry/app/organisms/std-api-gateway.orb +819 -819
  7. package/behaviors/registry/app/organisms/std-booking-system.orb +1168 -1168
  8. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +825 -825
  9. package/behaviors/registry/app/organisms/std-cms.orb +556 -556
  10. package/behaviors/registry/app/organisms/std-coding-academy.orb +353 -353
  11. package/behaviors/registry/app/organisms/std-crm.orb +806 -806
  12. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1209 -1209
  13. package/behaviors/registry/app/organisms/std-ecommerce.orb +742 -742
  14. package/behaviors/registry/app/organisms/std-finance-tracker.orb +626 -626
  15. package/behaviors/registry/app/organisms/std-healthcare.orb +1390 -1390
  16. package/behaviors/registry/app/organisms/std-helpdesk.orb +720 -720
  17. package/behaviors/registry/app/organisms/std-hr-portal.orb +1189 -1189
  18. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +786 -786
  19. package/behaviors/registry/app/organisms/std-lms.orb +860 -860
  20. package/behaviors/registry/app/organisms/std-project-manager.orb +668 -668
  21. package/behaviors/registry/app/organisms/std-realtime-chat.orb +725 -725
  22. package/behaviors/registry/app/organisms/std-social-feed.orb +227 -227
  23. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +646 -646
  24. package/behaviors/registry/service/organisms/std-service-marketplace.orb +973 -973
  25. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +898 -898
  26. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1077 -1077
  27. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +3053 -3053
  28. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2159 -2159
  29. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +931 -931
  30. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +793 -793
  31. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +819 -819
  32. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1168 -1168
  33. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +825 -825
  34. package/dist/behaviors/registry/app/organisms/std-cms.orb +556 -556
  35. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +353 -353
  36. package/dist/behaviors/registry/app/organisms/std-crm.orb +806 -806
  37. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1209 -1209
  38. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +742 -742
  39. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +626 -626
  40. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1390 -1390
  41. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +720 -720
  42. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1189 -1189
  43. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +786 -786
  44. package/dist/behaviors/registry/app/organisms/std-lms.orb +860 -860
  45. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +668 -668
  46. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +725 -725
  47. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +227 -227
  48. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +646 -646
  49. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +973 -973
  50. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +898 -898
  51. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-service-marketplace",
3
3
  "version": "1.0.0",
4
- "description": "std-service-marketplace as a Function",
4
+ "description": "Marketplace: products, auth, orders, payments. Pick for multi-vendor storefronts.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "ProductOrbital",
@@ -814,22 +814,22 @@
814
814
  "render-ui",
815
815
  "main",
816
816
  {
817
- "className": "py-12",
818
817
  "children": [
819
818
  {
820
819
  "type": "spinner"
821
820
  },
822
821
  {
823
- "content": "Loading…",
822
+ "type": "typography",
824
823
  "variant": "caption",
825
- "color": "muted",
826
- "type": "typography"
824
+ "content": "Loading…",
825
+ "color": "muted"
827
826
  }
828
827
  ],
829
- "align": "center",
828
+ "className": "py-12",
830
829
  "direction": "vertical",
830
+ "gap": "md",
831
831
  "type": "stack",
832
- "gap": "md"
832
+ "align": "center"
833
833
  }
834
834
  ]
835
835
  ]
@@ -843,16 +843,33 @@
843
843
  "render-ui",
844
844
  "main",
845
845
  {
846
+ "navItems": [
847
+ {
848
+ "href": "/products",
849
+ "label": "Products",
850
+ "icon": "package"
851
+ },
852
+ {
853
+ "href": "/login",
854
+ "label": "Login",
855
+ "icon": "layout-list"
856
+ },
857
+ {
858
+ "href": "/checkout",
859
+ "label": "Checkout",
860
+ "icon": "credit-card"
861
+ },
862
+ {
863
+ "label": "Orders",
864
+ "href": "/orders",
865
+ "icon": "clipboard-list"
866
+ }
867
+ ],
846
868
  "children": [
847
869
  {
848
- "gap": "lg",
870
+ "type": "stack",
849
871
  "children": [
850
872
  {
851
- "type": "stack",
852
- "direction": "horizontal",
853
- "gap": "md",
854
- "justify": "between",
855
- "align": "center",
856
873
  "children": [
857
874
  {
858
875
  "direction": "horizontal",
@@ -868,115 +885,98 @@
868
885
  }
869
886
  ],
870
887
  "gap": "sm",
871
- "align": "center",
872
- "type": "stack"
888
+ "type": "stack",
889
+ "align": "center"
873
890
  },
874
891
  {
892
+ "gap": "sm",
875
893
  "type": "stack",
876
894
  "children": [
877
895
  {
896
+ "type": "button",
878
897
  "variant": "primary",
879
898
  "icon": "plus",
880
- "type": "button",
881
899
  "label": "Create Product",
882
900
  "action": "CREATE"
883
901
  }
884
902
  ],
885
- "direction": "horizontal",
886
- "gap": "sm"
903
+ "direction": "horizontal"
887
904
  }
888
- ]
905
+ ],
906
+ "align": "center",
907
+ "type": "stack",
908
+ "direction": "horizontal",
909
+ "gap": "md",
910
+ "justify": "between"
889
911
  },
890
912
  {
891
913
  "type": "divider"
892
914
  },
893
915
  {
894
- "entity": "@payload.data",
895
916
  "itemActions": [
896
917
  {
897
918
  "label": "View",
898
- "variant": "ghost",
899
- "event": "VIEW"
919
+ "event": "VIEW",
920
+ "variant": "ghost"
900
921
  },
901
922
  {
902
- "variant": "ghost",
903
923
  "label": "Edit",
904
- "event": "EDIT"
924
+ "event": "EDIT",
925
+ "variant": "ghost"
905
926
  },
906
927
  {
928
+ "label": "Checkout",
907
929
  "variant": "primary",
908
- "event": "CHECKOUT",
909
- "label": "Checkout"
930
+ "event": "CHECKOUT"
910
931
  },
911
932
  {
912
- "event": "DELETE",
933
+ "label": "Delete",
913
934
  "variant": "danger",
914
- "label": "Delete"
935
+ "event": "DELETE"
915
936
  }
916
937
  ],
938
+ "entity": "@payload.data",
939
+ "type": "data-grid",
917
940
  "fields": [
918
941
  {
919
- "icon": "shopping-bag",
920
942
  "name": "name",
921
943
  "label": "Name",
922
- "variant": "h4"
944
+ "variant": "h4",
945
+ "icon": "shopping-bag"
923
946
  },
924
947
  {
925
- "variant": "badge",
926
- "name": "description",
927
948
  "colorMap": {
928
- "archived": "neutral",
929
949
  "done": "success",
930
- "scheduled": "warning",
931
950
  "cancelled": "destructive",
951
+ "inactive": "neutral",
952
+ "archived": "neutral",
953
+ "error": "destructive",
954
+ "scheduled": "warning",
932
955
  "completed": "success",
933
956
  "pending": "warning",
934
- "error": "destructive",
935
- "inactive": "neutral",
936
957
  "active": "success",
937
- "draft": "warning",
958
+ "disabled": "neutral",
938
959
  "failed": "destructive",
939
- "disabled": "neutral"
960
+ "draft": "warning"
940
961
  },
941
- "label": "Description"
962
+ "label": "Description",
963
+ "name": "description",
964
+ "variant": "badge"
942
965
  },
943
966
  {
967
+ "name": "price",
944
968
  "variant": "caption",
945
- "label": "Price",
946
- "name": "price"
969
+ "label": "Price"
947
970
  }
948
- ],
949
- "type": "data-grid"
971
+ ]
950
972
  }
951
973
  ],
952
- "direction": "vertical",
974
+ "gap": "lg",
953
975
  "className": "max-w-5xl mx-auto w-full",
954
- "type": "stack"
976
+ "direction": "vertical"
955
977
  }
956
978
  ],
957
979
  "type": "dashboard-layout",
958
- "navItems": [
959
- {
960
- "label": "Products",
961
- "icon": "package",
962
- "href": "/products"
963
- },
964
- {
965
- "href": "/login",
966
- "icon": "layout-list",
967
- "label": "Login"
968
- },
969
- {
970
- "href": "/checkout",
971
- "icon": "credit-card",
972
- "label": "Checkout"
973
- },
974
- {
975
- "href": "/orders",
976
- "label": "Orders",
977
- "icon": "clipboard-list"
978
- }
979
- ],
980
980
  "appName": "ServiceMarketplace"
981
981
  }
982
982
  ]
@@ -991,36 +991,36 @@
991
991
  "render-ui",
992
992
  "main",
993
993
  {
994
- "align": "center",
995
- "type": "stack",
996
- "className": "py-12",
997
994
  "direction": "vertical",
995
+ "className": "py-12",
996
+ "gap": "md",
997
+ "type": "stack",
998
+ "align": "center",
998
999
  "children": [
999
1000
  {
1000
- "type": "icon",
1001
+ "name": "alert-triangle",
1001
1002
  "color": "destructive",
1002
- "name": "alert-triangle"
1003
+ "type": "icon"
1003
1004
  },
1004
1005
  {
1005
- "variant": "h3",
1006
1006
  "content": "Failed to load product",
1007
- "type": "typography"
1007
+ "type": "typography",
1008
+ "variant": "h3"
1008
1009
  },
1009
1010
  {
1011
+ "type": "typography",
1010
1012
  "variant": "body",
1011
1013
  "content": "@payload.error",
1012
- "color": "muted",
1013
- "type": "typography"
1014
+ "color": "muted"
1014
1015
  },
1015
1016
  {
1016
- "action": "INIT",
1017
+ "variant": "primary",
1017
1018
  "type": "button",
1018
1019
  "icon": "rotate-ccw",
1019
1020
  "label": "Retry",
1020
- "variant": "primary"
1021
+ "action": "INIT"
1021
1022
  }
1022
- ],
1023
- "gap": "md"
1023
+ ]
1024
1024
  }
1025
1025
  ]
1026
1026
  ]
@@ -1229,23 +1229,25 @@
1229
1229
  "render-ui",
1230
1230
  "modal",
1231
1231
  {
1232
+ "type": "stack",
1233
+ "direction": "vertical",
1232
1234
  "gap": "md",
1233
1235
  "children": [
1234
1236
  {
1235
- "direction": "horizontal",
1236
1237
  "type": "stack",
1237
1238
  "gap": "sm",
1238
1239
  "children": [
1239
1240
  {
1240
- "type": "icon",
1241
- "name": "plus-circle"
1241
+ "name": "plus-circle",
1242
+ "type": "icon"
1242
1243
  },
1243
1244
  {
1244
- "variant": "h3",
1245
1245
  "content": "Create Product",
1246
- "type": "typography"
1246
+ "type": "typography",
1247
+ "variant": "h3"
1247
1248
  }
1248
- ]
1249
+ ],
1250
+ "direction": "horizontal"
1249
1251
  },
1250
1252
  {
1251
1253
  "type": "divider"
@@ -1260,12 +1262,10 @@
1260
1262
  "inStock"
1261
1263
  ],
1262
1264
  "mode": "create",
1263
- "cancelEvent": "CLOSE",
1264
- "submitEvent": "SAVE"
1265
+ "submitEvent": "SAVE",
1266
+ "cancelEvent": "CLOSE"
1265
1267
  }
1266
- ],
1267
- "direction": "vertical",
1268
- "type": "stack"
1268
+ ]
1269
1269
  }
1270
1270
  ]
1271
1271
  ]
@@ -1542,42 +1542,42 @@
1542
1542
  "fetch",
1543
1543
  "Product",
1544
1544
  {
1545
- "id": "@payload.id",
1546
1545
  "emit": {
1547
- "success": "ProductLoaded",
1548
- "failure": "ProductLoadFailed"
1549
- }
1546
+ "failure": "ProductLoadFailed",
1547
+ "success": "ProductLoaded"
1548
+ },
1549
+ "id": "@payload.id"
1550
1550
  }
1551
1551
  ],
1552
1552
  [
1553
1553
  "render-ui",
1554
1554
  "modal",
1555
1555
  {
1556
- "gap": "md",
1557
1556
  "children": [
1558
1557
  {
1559
- "type": "stack",
1558
+ "gap": "sm",
1560
1559
  "direction": "horizontal",
1561
1560
  "children": [
1562
1561
  {
1563
- "type": "icon",
1564
- "name": "edit"
1562
+ "name": "edit",
1563
+ "type": "icon"
1565
1564
  },
1566
1565
  {
1566
+ "variant": "h3",
1567
1567
  "type": "typography",
1568
- "content": "Edit Product",
1569
- "variant": "h3"
1568
+ "content": "Edit Product"
1570
1569
  }
1571
1570
  ],
1572
- "gap": "sm"
1571
+ "type": "stack"
1573
1572
  },
1574
1573
  {
1575
1574
  "type": "divider"
1576
1575
  },
1577
1576
  {
1578
- "entity": "@payload.row",
1579
- "type": "form-section",
1577
+ "submitEvent": "SAVE",
1580
1578
  "cancelEvent": "CLOSE",
1579
+ "mode": "edit",
1580
+ "entity": "@payload.row",
1581
1581
  "fields": [
1582
1582
  "name",
1583
1583
  "description",
@@ -1585,11 +1585,11 @@
1585
1585
  "category",
1586
1586
  "inStock"
1587
1587
  ],
1588
- "submitEvent": "SAVE",
1589
- "mode": "edit"
1588
+ "type": "form-section"
1590
1589
  }
1591
1590
  ],
1592
1591
  "type": "stack",
1592
+ "gap": "md",
1593
1593
  "direction": "vertical"
1594
1594
  }
1595
1595
  ]
@@ -1631,8 +1631,8 @@
1631
1631
  "@payload.data",
1632
1632
  {
1633
1633
  "emit": {
1634
- "success": "ProductUpdated",
1635
- "failure": "ProductUpdateFailed"
1634
+ "failure": "ProductUpdateFailed",
1635
+ "success": "ProductUpdated"
1636
1636
  }
1637
1637
  }
1638
1638
  ],
@@ -1831,22 +1831,23 @@
1831
1831
  "fetch",
1832
1832
  "Product",
1833
1833
  {
1834
- "id": "@payload.id",
1835
1834
  "emit": {
1836
- "failure": "ProductLoadFailed",
1837
- "success": "ProductLoaded"
1838
- }
1835
+ "success": "ProductLoaded",
1836
+ "failure": "ProductLoadFailed"
1837
+ },
1838
+ "id": "@payload.id"
1839
1839
  }
1840
1840
  ],
1841
1841
  [
1842
1842
  "render-ui",
1843
1843
  "modal",
1844
1844
  {
1845
- "direction": "vertical",
1846
1845
  "type": "stack",
1847
- "gap": "md",
1848
1846
  "children": [
1849
1847
  {
1848
+ "direction": "horizontal",
1849
+ "gap": "sm",
1850
+ "align": "center",
1850
1851
  "type": "stack",
1851
1852
  "children": [
1852
1853
  {
@@ -1854,14 +1855,11 @@
1854
1855
  "name": "eye"
1855
1856
  },
1856
1857
  {
1857
- "content": "@entity.name",
1858
1858
  "type": "typography",
1859
- "variant": "h3"
1859
+ "variant": "h3",
1860
+ "content": "@entity.name"
1860
1861
  }
1861
- ],
1862
- "align": "center",
1863
- "gap": "sm",
1864
- "direction": "horizontal"
1862
+ ]
1865
1863
  },
1866
1864
  {
1867
1865
  "type": "divider"
@@ -1869,7 +1867,6 @@
1869
1867
  {
1870
1868
  "type": "stack",
1871
1869
  "direction": "horizontal",
1872
- "gap": "md",
1873
1870
  "children": [
1874
1871
  {
1875
1872
  "variant": "caption",
@@ -1877,105 +1874,108 @@
1877
1874
  "type": "typography"
1878
1875
  },
1879
1876
  {
1880
- "type": "typography",
1877
+ "content": "@entity.name",
1881
1878
  "variant": "body",
1882
- "content": "@entity.name"
1879
+ "type": "typography"
1883
1880
  }
1884
- ]
1881
+ ],
1882
+ "gap": "md"
1885
1883
  },
1886
1884
  {
1887
1885
  "direction": "horizontal",
1886
+ "gap": "md",
1887
+ "type": "stack",
1888
1888
  "children": [
1889
1889
  {
1890
+ "variant": "caption",
1890
1891
  "content": "Description",
1891
- "type": "typography",
1892
- "variant": "caption"
1892
+ "type": "typography"
1893
1893
  },
1894
1894
  {
1895
- "type": "typography",
1896
1895
  "variant": "body",
1897
- "content": "@entity.description"
1896
+ "content": "@entity.description",
1897
+ "type": "typography"
1898
1898
  }
1899
- ],
1900
- "gap": "md",
1901
- "type": "stack"
1899
+ ]
1902
1900
  },
1903
1901
  {
1904
- "direction": "horizontal",
1905
- "gap": "md",
1906
- "type": "stack",
1907
1902
  "children": [
1908
1903
  {
1909
- "content": "Price",
1904
+ "type": "typography",
1910
1905
  "variant": "caption",
1911
- "type": "typography"
1906
+ "content": "Price"
1912
1907
  },
1913
1908
  {
1914
- "variant": "body",
1909
+ "content": "@entity.price",
1915
1910
  "type": "typography",
1916
- "content": "@entity.price"
1911
+ "variant": "body"
1917
1912
  }
1918
- ]
1913
+ ],
1914
+ "direction": "horizontal",
1915
+ "gap": "md",
1916
+ "type": "stack"
1919
1917
  },
1920
1918
  {
1921
- "gap": "md",
1922
1919
  "type": "stack",
1920
+ "direction": "horizontal",
1921
+ "gap": "md",
1923
1922
  "children": [
1924
1923
  {
1924
+ "content": "Category",
1925
1925
  "type": "typography",
1926
- "variant": "caption",
1927
- "content": "Category"
1926
+ "variant": "caption"
1928
1927
  },
1929
1928
  {
1930
1929
  "type": "typography",
1931
- "content": "@entity.category",
1932
- "variant": "body"
1930
+ "variant": "body",
1931
+ "content": "@entity.category"
1933
1932
  }
1934
- ],
1935
- "direction": "horizontal"
1933
+ ]
1936
1934
  },
1937
1935
  {
1936
+ "type": "stack",
1938
1937
  "direction": "horizontal",
1938
+ "gap": "md",
1939
1939
  "children": [
1940
1940
  {
1941
- "type": "typography",
1942
1941
  "variant": "caption",
1943
- "content": "In Stock"
1942
+ "content": "In Stock",
1943
+ "type": "typography"
1944
1944
  },
1945
1945
  {
1946
1946
  "type": "typography",
1947
- "content": "@entity.inStock",
1948
- "variant": "body"
1947
+ "variant": "body",
1948
+ "content": "@entity.inStock"
1949
1949
  }
1950
- ],
1951
- "gap": "md",
1952
- "type": "stack"
1950
+ ]
1953
1951
  },
1954
1952
  {
1955
1953
  "type": "divider"
1956
1954
  },
1957
1955
  {
1958
1956
  "type": "stack",
1959
- "direction": "horizontal",
1960
1957
  "justify": "end",
1961
1958
  "children": [
1962
1959
  {
1963
- "label": "Edit",
1964
- "action": "EDIT",
1965
1960
  "icon": "edit",
1966
- "variant": "primary",
1967
- "type": "button"
1961
+ "action": "EDIT",
1962
+ "type": "button",
1963
+ "label": "Edit",
1964
+ "variant": "primary"
1968
1965
  },
1969
1966
  {
1967
+ "label": "Close",
1970
1968
  "variant": "ghost",
1971
- "action": "CLOSE",
1972
1969
  "type": "button",
1973
- "label": "Close"
1970
+ "action": "CLOSE"
1974
1971
  }
1975
1972
  ],
1976
- "gap": "sm"
1977
- }
1978
- ]
1973
+ "gap": "sm",
1974
+ "direction": "horizontal"
1975
+ }
1976
+ ],
1977
+ "gap": "md",
1978
+ "direction": "vertical"
1979
1979
  }
1980
1980
  ]
1981
1981
  ]
@@ -2205,8 +2205,8 @@
2205
2205
  "Product",
2206
2206
  {
2207
2207
  "emit": {
2208
- "success": "ProductLoaded",
2209
- "failure": "ProductLoadFailed"
2208
+ "failure": "ProductLoadFailed",
2209
+ "success": "ProductLoaded"
2210
2210
  }
2211
2211
  }
2212
2212
  ]
@@ -2226,11 +2226,11 @@
2226
2226
  "fetch",
2227
2227
  "Product",
2228
2228
  {
2229
+ "id": "@payload.id",
2229
2230
  "emit": {
2230
- "success": "ProductLoaded",
2231
- "failure": "ProductLoadFailed"
2232
- },
2233
- "id": "@payload.id"
2231
+ "failure": "ProductLoadFailed",
2232
+ "success": "ProductLoaded"
2233
+ }
2234
2234
  }
2235
2235
  ],
2236
2236
  [
@@ -2239,12 +2239,12 @@
2239
2239
  {
2240
2240
  "type": "stack",
2241
2241
  "gap": "md",
2242
+ "direction": "vertical",
2242
2243
  "children": [
2243
2244
  {
2245
+ "align": "center",
2244
2246
  "direction": "horizontal",
2245
2247
  "gap": "sm",
2246
- "align": "center",
2247
- "type": "stack",
2248
2248
  "children": [
2249
2249
  {
2250
2250
  "name": "alert-triangle",
@@ -2252,10 +2252,11 @@
2252
2252
  },
2253
2253
  {
2254
2254
  "variant": "h3",
2255
- "type": "typography",
2256
- "content": "Delete Product"
2255
+ "content": "Delete Product",
2256
+ "type": "typography"
2257
2257
  }
2258
- ]
2258
+ ],
2259
+ "type": "stack"
2259
2260
  },
2260
2261
  {
2261
2262
  "type": "divider"
@@ -2266,28 +2267,27 @@
2266
2267
  "variant": "error"
2267
2268
  },
2268
2269
  {
2269
- "type": "stack",
2270
2270
  "justify": "end",
2271
2271
  "children": [
2272
2272
  {
2273
- "type": "button",
2274
2273
  "variant": "ghost",
2274
+ "action": "CANCEL",
2275
2275
  "label": "Cancel",
2276
- "action": "CANCEL"
2276
+ "type": "button"
2277
2277
  },
2278
2278
  {
2279
- "icon": "check",
2280
- "type": "button",
2279
+ "variant": "danger",
2281
2280
  "label": "Delete",
2282
2281
  "action": "CONFIRM_DELETE",
2283
- "variant": "danger"
2282
+ "icon": "check",
2283
+ "type": "button"
2284
2284
  }
2285
2285
  ],
2286
- "gap": "sm",
2287
- "direction": "horizontal"
2286
+ "type": "stack",
2287
+ "direction": "horizontal",
2288
+ "gap": "sm"
2288
2289
  }
2289
- ],
2290
- "direction": "vertical"
2290
+ ]
2291
2291
  }
2292
2292
  ]
2293
2293
  ]
@@ -2304,8 +2304,8 @@
2304
2304
  "@entity.pendingId",
2305
2305
  {
2306
2306
  "emit": {
2307
- "success": "ProductDeleted",
2308
- "failure": "ProductDeleteFailed"
2307
+ "failure": "ProductDeleteFailed",
2308
+ "success": "ProductDeleted"
2309
2309
  }
2310
2310
  }
2311
2311
  ],
@@ -2359,8 +2359,8 @@
2359
2359
  "Product",
2360
2360
  {
2361
2361
  "emit": {
2362
- "failure": "ProductLoadFailed",
2363
- "success": "ProductLoaded"
2362
+ "success": "ProductLoaded",
2363
+ "failure": "ProductLoadFailed"
2364
2364
  }
2365
2365
  }
2366
2366
  ]
@@ -2677,8 +2677,8 @@
2677
2677
  "AuthSession",
2678
2678
  {
2679
2679
  "emit": {
2680
- "failure": "AuthSessionLoadFailed",
2681
- "success": "AuthSessionLoaded"
2680
+ "success": "AuthSessionLoaded",
2681
+ "failure": "AuthSessionLoadFailed"
2682
2682
  }
2683
2683
  }
2684
2684
  ],
@@ -2686,33 +2686,55 @@
2686
2686
  "render-ui",
2687
2687
  "main",
2688
2688
  {
2689
+ "appName": "ServiceMarketplace",
2690
+ "navItems": [
2691
+ {
2692
+ "label": "Products",
2693
+ "href": "/products",
2694
+ "icon": "package"
2695
+ },
2696
+ {
2697
+ "href": "/login",
2698
+ "icon": "layout-list",
2699
+ "label": "Login"
2700
+ },
2701
+ {
2702
+ "icon": "credit-card",
2703
+ "href": "/checkout",
2704
+ "label": "Checkout"
2705
+ },
2706
+ {
2707
+ "href": "/orders",
2708
+ "icon": "clipboard-list",
2709
+ "label": "Orders"
2710
+ }
2711
+ ],
2689
2712
  "type": "dashboard-layout",
2690
2713
  "children": [
2691
2714
  {
2692
- "align": "center",
2715
+ "type": "stack",
2693
2716
  "children": [
2694
2717
  {
2718
+ "type": "stack",
2719
+ "gap": "md",
2695
2720
  "direction": "horizontal",
2721
+ "align": "center",
2696
2722
  "children": [
2697
2723
  {
2698
2724
  "type": "icon",
2699
2725
  "name": "lock"
2700
2726
  },
2701
2727
  {
2702
- "type": "typography",
2703
2728
  "content": "Sign In",
2729
+ "type": "typography",
2704
2730
  "variant": "h2"
2705
2731
  }
2706
- ],
2707
- "align": "center",
2708
- "gap": "md",
2709
- "type": "stack"
2732
+ ]
2710
2733
  },
2711
2734
  {
2712
2735
  "type": "divider"
2713
2736
  },
2714
2737
  {
2715
- "type": "select",
2716
2738
  "options": [
2717
2739
  {
2718
2740
  "label": "Google",
@@ -2723,45 +2745,23 @@
2723
2745
  "value": "github"
2724
2746
  },
2725
2747
  {
2726
- "label": "Microsoft",
2727
- "value": "microsoft"
2748
+ "value": "microsoft",
2749
+ "label": "Microsoft"
2728
2750
  }
2729
- ]
2751
+ ],
2752
+ "type": "select"
2730
2753
  },
2731
2754
  {
2755
+ "variant": "primary",
2732
2756
  "type": "button",
2733
- "label": "Login",
2734
2757
  "icon": "log-in",
2735
- "variant": "primary",
2736
- "action": "LOGIN"
2758
+ "action": "LOGIN",
2759
+ "label": "Login"
2737
2760
  }
2738
2761
  ],
2739
- "gap": "lg",
2740
2762
  "direction": "vertical",
2741
- "type": "stack"
2742
- }
2743
- ],
2744
- "appName": "ServiceMarketplace",
2745
- "navItems": [
2746
- {
2747
- "label": "Products",
2748
- "href": "/products",
2749
- "icon": "package"
2750
- },
2751
- {
2752
- "label": "Login",
2753
- "href": "/login",
2754
- "icon": "layout-list"
2755
- },
2756
- {
2757
- "href": "/checkout",
2758
- "icon": "credit-card",
2759
- "label": "Checkout"
2760
- },
2761
- {
2762
- "label": "Orders",
2763
- "icon": "clipboard-list",
2764
- "href": "/orders"
2763
+ "align": "center",
2764
+ "gap": "lg"
2765
2765
  }
2766
2766
  ]
2767
2767
  }
@@ -2777,35 +2777,35 @@
2777
2777
  "render-ui",
2778
2778
  "main",
2779
2779
  {
2780
- "type": "dashboard-layout",
2781
- "appName": "ServiceMarketplace",
2782
2780
  "children": [
2783
2781
  {
2784
- "message": "Redirecting to provider for authorization.",
2782
+ "type": "loading-state",
2785
2783
  "title": "Authorizing...",
2786
- "type": "loading-state"
2784
+ "message": "Redirecting to provider for authorization."
2787
2785
  }
2788
2786
  ],
2787
+ "type": "dashboard-layout",
2788
+ "appName": "ServiceMarketplace",
2789
2789
  "navItems": [
2790
2790
  {
2791
+ "href": "/products",
2791
2792
  "label": "Products",
2792
- "icon": "package",
2793
- "href": "/products"
2793
+ "icon": "package"
2794
2794
  },
2795
2795
  {
2796
- "label": "Login",
2797
2796
  "icon": "layout-list",
2797
+ "label": "Login",
2798
2798
  "href": "/login"
2799
2799
  },
2800
2800
  {
2801
- "href": "/checkout",
2802
2801
  "icon": "credit-card",
2803
- "label": "Checkout"
2802
+ "label": "Checkout",
2803
+ "href": "/checkout"
2804
2804
  },
2805
2805
  {
2806
2806
  "label": "Orders",
2807
- "href": "/orders",
2808
- "icon": "clipboard-list"
2807
+ "icon": "clipboard-list",
2808
+ "href": "/orders"
2809
2809
  }
2810
2810
  ]
2811
2811
  }
@@ -2823,8 +2823,8 @@
2823
2823
  },
2824
2824
  {
2825
2825
  "emit": {
2826
- "failure": "ProductOauthFailed",
2827
- "success": "ProductOauthCompleted"
2826
+ "success": "ProductOauthCompleted",
2827
+ "failure": "ProductOauthFailed"
2828
2828
  }
2829
2829
  }
2830
2830
  ]
@@ -2845,21 +2845,22 @@
2845
2845
  "main",
2846
2846
  {
2847
2847
  "appName": "ServiceMarketplace",
2848
+ "type": "dashboard-layout",
2848
2849
  "navItems": [
2849
2850
  {
2850
- "icon": "package",
2851
2851
  "href": "/products",
2852
+ "icon": "package",
2852
2853
  "label": "Products"
2853
2854
  },
2854
2855
  {
2855
2856
  "icon": "layout-list",
2856
- "href": "/login",
2857
- "label": "Login"
2857
+ "label": "Login",
2858
+ "href": "/login"
2858
2859
  },
2859
2860
  {
2860
- "href": "/checkout",
2861
+ "icon": "credit-card",
2861
2862
  "label": "Checkout",
2862
- "icon": "credit-card"
2863
+ "href": "/checkout"
2863
2864
  },
2864
2865
  {
2865
2866
  "icon": "clipboard-list",
@@ -2869,41 +2870,40 @@
2869
2870
  ],
2870
2871
  "children": [
2871
2872
  {
2872
- "gap": "lg",
2873
- "align": "center",
2874
- "direction": "vertical",
2875
2873
  "type": "stack",
2874
+ "direction": "vertical",
2875
+ "align": "center",
2876
2876
  "children": [
2877
2877
  {
2878
2878
  "name": "external-link",
2879
2879
  "type": "icon"
2880
2880
  },
2881
2881
  {
2882
- "content": "Authorization Required",
2883
2882
  "type": "typography",
2884
- "variant": "h2"
2883
+ "variant": "h2",
2884
+ "content": "Authorization Required"
2885
2885
  },
2886
2886
  {
2887
- "content": "@entity.authUrl",
2888
- "color": "muted",
2889
2887
  "type": "typography",
2890
- "variant": "body"
2888
+ "variant": "body",
2889
+ "content": "@entity.authUrl",
2890
+ "color": "muted"
2891
2891
  },
2892
2892
  {
2893
2893
  "placeholder": "Paste authorization code here",
2894
2894
  "type": "input"
2895
2895
  },
2896
2896
  {
2897
- "type": "button",
2897
+ "action": "CALLBACK",
2898
2898
  "icon": "check",
2899
- "variant": "primary",
2900
2899
  "label": "Submit",
2901
- "action": "CALLBACK"
2900
+ "type": "button",
2901
+ "variant": "primary"
2902
2902
  }
2903
- ]
2903
+ ],
2904
+ "gap": "lg"
2904
2905
  }
2905
- ],
2906
- "type": "dashboard-layout"
2906
+ ]
2907
2907
  }
2908
2908
  ]
2909
2909
  ]
@@ -2922,8 +2922,8 @@
2922
2922
  },
2923
2923
  {
2924
2924
  "emit": {
2925
- "failure": "ProductOauthFailed",
2926
- "success": "ProductOauthCompleted"
2925
+ "success": "ProductOauthCompleted",
2926
+ "failure": "ProductOauthFailed"
2927
2927
  }
2928
2928
  }
2929
2929
  ],
@@ -2931,45 +2931,23 @@
2931
2931
  "render-ui",
2932
2932
  "main",
2933
2933
  {
2934
- "navItems": [
2935
- {
2936
- "label": "Products",
2937
- "href": "/products",
2938
- "icon": "package"
2939
- },
2940
- {
2941
- "icon": "layout-list",
2942
- "href": "/login",
2943
- "label": "Login"
2944
- },
2945
- {
2946
- "href": "/checkout",
2947
- "icon": "credit-card",
2948
- "label": "Checkout"
2949
- },
2950
- {
2951
- "href": "/orders",
2952
- "icon": "clipboard-list",
2953
- "label": "Orders"
2954
- }
2955
- ],
2956
2934
  "children": [
2957
2935
  {
2958
- "type": "stack",
2959
- "align": "center",
2960
- "gap": "lg",
2961
2936
  "children": [
2962
2937
  {
2963
- "name": "check-circle",
2964
- "type": "icon"
2938
+ "type": "icon",
2939
+ "name": "check-circle"
2965
2940
  },
2966
2941
  {
2967
2942
  "type": "alert",
2968
- "variant": "success",
2969
- "message": "Authenticated successfully"
2943
+ "message": "Authenticated successfully",
2944
+ "variant": "success"
2970
2945
  },
2971
2946
  {
2972
2947
  "type": "stack",
2948
+ "justify": "center",
2949
+ "direction": "horizontal",
2950
+ "gap": "sm",
2973
2951
  "children": [
2974
2952
  {
2975
2953
  "type": "button",
@@ -2979,23 +2957,45 @@
2979
2957
  "variant": "ghost"
2980
2958
  },
2981
2959
  {
2960
+ "action": "LOGOUT",
2982
2961
  "variant": "ghost",
2983
2962
  "icon": "log-out",
2984
2963
  "label": "Logout",
2985
- "type": "button",
2986
- "action": "LOGOUT"
2964
+ "type": "button"
2987
2965
  }
2988
- ],
2989
- "direction": "horizontal",
2990
- "justify": "center",
2991
- "gap": "sm"
2966
+ ]
2992
2967
  }
2993
2968
  ],
2969
+ "type": "stack",
2970
+ "gap": "lg",
2971
+ "align": "center",
2994
2972
  "direction": "vertical"
2995
2973
  }
2996
2974
  ],
2997
2975
  "type": "dashboard-layout",
2998
- "appName": "ServiceMarketplace"
2976
+ "appName": "ServiceMarketplace",
2977
+ "navItems": [
2978
+ {
2979
+ "label": "Products",
2980
+ "icon": "package",
2981
+ "href": "/products"
2982
+ },
2983
+ {
2984
+ "label": "Login",
2985
+ "href": "/login",
2986
+ "icon": "layout-list"
2987
+ },
2988
+ {
2989
+ "label": "Checkout",
2990
+ "icon": "credit-card",
2991
+ "href": "/checkout"
2992
+ },
2993
+ {
2994
+ "label": "Orders",
2995
+ "href": "/orders",
2996
+ "icon": "clipboard-list"
2997
+ }
2998
+ ]
2999
2999
  }
3000
3000
  ]
3001
3001
  ]
@@ -3028,37 +3028,37 @@
3028
3028
  },
3029
3029
  {
3030
3030
  "icon": "credit-card",
3031
- "label": "Checkout",
3032
- "href": "/checkout"
3031
+ "href": "/checkout",
3032
+ "label": "Checkout"
3033
3033
  },
3034
3034
  {
3035
- "icon": "clipboard-list",
3036
3035
  "label": "Orders",
3037
- "href": "/orders"
3036
+ "href": "/orders",
3037
+ "icon": "clipboard-list"
3038
3038
  }
3039
3039
  ],
3040
3040
  "appName": "ServiceMarketplace",
3041
3041
  "children": [
3042
3042
  {
3043
- "type": "stack",
3044
- "align": "center",
3045
- "gap": "lg",
3046
3043
  "children": [
3047
3044
  {
3048
3045
  "title": "Authentication Failed",
3049
- "message": "@entity.error",
3050
3046
  "type": "error-state",
3047
+ "message": "@entity.error",
3051
3048
  "onRetry": "RETRY"
3052
3049
  },
3053
3050
  {
3051
+ "action": "RETRY",
3052
+ "variant": "primary",
3054
3053
  "icon": "rotate-ccw",
3055
- "label": "Try Again",
3056
3054
  "type": "button",
3057
- "action": "RETRY",
3058
- "variant": "primary"
3055
+ "label": "Try Again"
3059
3056
  }
3060
3057
  ],
3061
- "direction": "vertical"
3058
+ "align": "center",
3059
+ "direction": "vertical",
3060
+ "gap": "lg",
3061
+ "type": "stack"
3062
3062
  }
3063
3063
  ]
3064
3064
  }
@@ -3089,39 +3089,36 @@
3089
3089
  "render-ui",
3090
3090
  "main",
3091
3091
  {
3092
- "type": "dashboard-layout",
3093
3092
  "navItems": [
3094
3093
  {
3094
+ "href": "/products",
3095
3095
  "icon": "package",
3096
- "label": "Products",
3097
- "href": "/products"
3096
+ "label": "Products"
3098
3097
  },
3099
3098
  {
3100
- "label": "Login",
3101
3099
  "icon": "layout-list",
3102
- "href": "/login"
3100
+ "href": "/login",
3101
+ "label": "Login"
3103
3102
  },
3104
3103
  {
3105
- "href": "/checkout",
3104
+ "icon": "credit-card",
3106
3105
  "label": "Checkout",
3107
- "icon": "credit-card"
3106
+ "href": "/checkout"
3108
3107
  },
3109
3108
  {
3110
- "icon": "clipboard-list",
3109
+ "href": "/orders",
3111
3110
  "label": "Orders",
3112
- "href": "/orders"
3111
+ "icon": "clipboard-list"
3113
3112
  }
3114
3113
  ],
3115
- "appName": "ServiceMarketplace",
3116
3114
  "children": [
3117
3115
  {
3118
- "type": "stack",
3119
- "direction": "vertical",
3116
+ "align": "center",
3120
3117
  "gap": "lg",
3121
3118
  "children": [
3122
3119
  {
3123
- "name": "check-circle",
3124
- "type": "icon"
3120
+ "type": "icon",
3121
+ "name": "check-circle"
3125
3122
  },
3126
3123
  {
3127
3124
  "message": "Authenticated successfully",
@@ -3129,31 +3126,34 @@
3129
3126
  "variant": "success"
3130
3127
  },
3131
3128
  {
3132
- "type": "stack",
3133
- "gap": "sm",
3134
3129
  "direction": "horizontal",
3135
3130
  "justify": "center",
3136
3131
  "children": [
3137
3132
  {
3138
- "icon": "refresh-cw",
3139
3133
  "type": "button",
3134
+ "variant": "ghost",
3140
3135
  "label": "Refresh Token",
3141
3136
  "action": "REFRESH",
3142
- "variant": "ghost"
3137
+ "icon": "refresh-cw"
3143
3138
  },
3144
3139
  {
3145
- "icon": "log-out",
3146
3140
  "action": "LOGOUT",
3147
3141
  "type": "button",
3142
+ "variant": "ghost",
3148
3143
  "label": "Logout",
3149
- "variant": "ghost"
3144
+ "icon": "log-out"
3150
3145
  }
3151
- ]
3146
+ ],
3147
+ "type": "stack",
3148
+ "gap": "sm"
3152
3149
  }
3153
3150
  ],
3154
- "align": "center"
3151
+ "direction": "vertical",
3152
+ "type": "stack"
3155
3153
  }
3156
- ]
3154
+ ],
3155
+ "type": "dashboard-layout",
3156
+ "appName": "ServiceMarketplace"
3157
3157
  }
3158
3158
  ]
3159
3159
  ]
@@ -3168,36 +3168,36 @@
3168
3168
  "main",
3169
3169
  {
3170
3170
  "type": "dashboard-layout",
3171
- "children": [
3172
- {
3173
- "title": "Refreshing token...",
3174
- "message": "Obtaining a new access token.",
3175
- "type": "loading-state"
3176
- }
3177
- ],
3171
+ "appName": "ServiceMarketplace",
3178
3172
  "navItems": [
3179
3173
  {
3180
- "href": "/products",
3181
3174
  "icon": "package",
3182
- "label": "Products"
3175
+ "label": "Products",
3176
+ "href": "/products"
3183
3177
  },
3184
3178
  {
3185
- "label": "Login",
3186
3179
  "href": "/login",
3187
- "icon": "layout-list"
3180
+ "icon": "layout-list",
3181
+ "label": "Login"
3188
3182
  },
3189
3183
  {
3190
- "href": "/checkout",
3191
3184
  "label": "Checkout",
3185
+ "href": "/checkout",
3192
3186
  "icon": "credit-card"
3193
3187
  },
3194
3188
  {
3195
- "href": "/orders",
3196
3189
  "icon": "clipboard-list",
3197
- "label": "Orders"
3190
+ "label": "Orders",
3191
+ "href": "/orders"
3198
3192
  }
3199
3193
  ],
3200
- "appName": "ServiceMarketplace"
3194
+ "children": [
3195
+ {
3196
+ "type": "loading-state",
3197
+ "message": "Obtaining a new access token.",
3198
+ "title": "Refreshing token..."
3199
+ }
3200
+ ]
3201
3201
  }
3202
3202
  ],
3203
3203
  [
@@ -3209,8 +3209,8 @@
3209
3209
  },
3210
3210
  {
3211
3211
  "emit": {
3212
- "failure": "ProductOauthFailed",
3213
- "success": "ProductOauthCompleted"
3212
+ "success": "ProductOauthCompleted",
3213
+ "failure": "ProductOauthFailed"
3214
3214
  }
3215
3215
  }
3216
3216
  ]
@@ -3230,50 +3230,24 @@
3230
3230
  "render-ui",
3231
3231
  "main",
3232
3232
  {
3233
- "navItems": [
3234
- {
3235
- "icon": "package",
3236
- "label": "Products",
3237
- "href": "/products"
3238
- },
3239
- {
3240
- "icon": "layout-list",
3241
- "label": "Login",
3242
- "href": "/login"
3243
- },
3244
- {
3245
- "label": "Checkout",
3246
- "icon": "credit-card",
3247
- "href": "/checkout"
3248
- },
3249
- {
3250
- "icon": "clipboard-list",
3251
- "label": "Orders",
3252
- "href": "/orders"
3253
- }
3254
- ],
3255
- "appName": "ServiceMarketplace",
3256
- "type": "dashboard-layout",
3257
3233
  "children": [
3258
3234
  {
3259
- "gap": "lg",
3260
- "align": "center",
3261
3235
  "children": [
3262
3236
  {
3263
- "type": "stack",
3264
- "align": "center",
3265
- "gap": "md",
3266
3237
  "children": [
3267
3238
  {
3268
3239
  "type": "icon",
3269
3240
  "name": "lock"
3270
3241
  },
3271
3242
  {
3272
- "variant": "h2",
3243
+ "type": "typography",
3273
3244
  "content": "Sign In",
3274
- "type": "typography"
3245
+ "variant": "h2"
3275
3246
  }
3276
3247
  ],
3248
+ "gap": "md",
3249
+ "align": "center",
3250
+ "type": "stack",
3277
3251
  "direction": "horizontal"
3278
3252
  },
3279
3253
  {
@@ -3282,32 +3256,58 @@
3282
3256
  {
3283
3257
  "options": [
3284
3258
  {
3285
- "value": "google",
3286
- "label": "Google"
3259
+ "label": "Google",
3260
+ "value": "google"
3287
3261
  },
3288
3262
  {
3289
- "value": "github",
3290
- "label": "GitHub"
3263
+ "label": "GitHub",
3264
+ "value": "github"
3291
3265
  },
3292
3266
  {
3293
- "label": "Microsoft",
3294
- "value": "microsoft"
3267
+ "value": "microsoft",
3268
+ "label": "Microsoft"
3295
3269
  }
3296
3270
  ],
3297
3271
  "type": "select"
3298
3272
  },
3299
3273
  {
3300
3274
  "icon": "log-in",
3275
+ "label": "Login",
3301
3276
  "type": "button",
3302
3277
  "action": "LOGIN",
3303
- "label": "Login",
3304
3278
  "variant": "primary"
3305
3279
  }
3306
3280
  ],
3281
+ "gap": "lg",
3282
+ "direction": "vertical",
3307
3283
  "type": "stack",
3308
- "direction": "vertical"
3284
+ "align": "center"
3309
3285
  }
3310
- ]
3286
+ ],
3287
+ "appName": "ServiceMarketplace",
3288
+ "navItems": [
3289
+ {
3290
+ "icon": "package",
3291
+ "label": "Products",
3292
+ "href": "/products"
3293
+ },
3294
+ {
3295
+ "href": "/login",
3296
+ "label": "Login",
3297
+ "icon": "layout-list"
3298
+ },
3299
+ {
3300
+ "href": "/checkout",
3301
+ "icon": "credit-card",
3302
+ "label": "Checkout"
3303
+ },
3304
+ {
3305
+ "icon": "clipboard-list",
3306
+ "label": "Orders",
3307
+ "href": "/orders"
3308
+ }
3309
+ ],
3310
+ "type": "dashboard-layout"
3311
3311
  }
3312
3312
  ]
3313
3313
  ]
@@ -3331,8 +3331,8 @@
3331
3331
  "navItems": [
3332
3332
  {
3333
3333
  "icon": "package",
3334
- "label": "Products",
3335
- "href": "/products"
3334
+ "href": "/products",
3335
+ "label": "Products"
3336
3336
  },
3337
3337
  {
3338
3338
  "label": "Login",
@@ -3345,18 +3345,21 @@
3345
3345
  "href": "/checkout"
3346
3346
  },
3347
3347
  {
3348
- "href": "/orders",
3349
3348
  "icon": "clipboard-list",
3350
- "label": "Orders"
3349
+ "label": "Orders",
3350
+ "href": "/orders"
3351
3351
  }
3352
3352
  ],
3353
3353
  "children": [
3354
3354
  {
3355
+ "type": "stack",
3355
3356
  "gap": "lg",
3357
+ "direction": "vertical",
3358
+ "align": "center",
3356
3359
  "children": [
3357
3360
  {
3358
- "type": "icon",
3359
- "name": "check-circle"
3361
+ "name": "check-circle",
3362
+ "type": "icon"
3360
3363
  },
3361
3364
  {
3362
3365
  "type": "alert",
@@ -3364,31 +3367,28 @@
3364
3367
  "message": "Authenticated successfully"
3365
3368
  },
3366
3369
  {
3370
+ "type": "stack",
3367
3371
  "justify": "center",
3372
+ "gap": "sm",
3373
+ "direction": "horizontal",
3368
3374
  "children": [
3369
3375
  {
3370
- "action": "REFRESH",
3371
3376
  "variant": "ghost",
3372
3377
  "icon": "refresh-cw",
3373
3378
  "type": "button",
3374
- "label": "Refresh Token"
3379
+ "label": "Refresh Token",
3380
+ "action": "REFRESH"
3375
3381
  },
3376
3382
  {
3377
3383
  "action": "LOGOUT",
3378
- "label": "Logout",
3379
3384
  "variant": "ghost",
3380
3385
  "icon": "log-out",
3381
- "type": "button"
3386
+ "type": "button",
3387
+ "label": "Logout"
3382
3388
  }
3383
- ],
3384
- "direction": "horizontal",
3385
- "type": "stack",
3386
- "gap": "sm"
3389
+ ]
3387
3390
  }
3388
- ],
3389
- "direction": "vertical",
3390
- "type": "stack",
3391
- "align": "center"
3391
+ ]
3392
3392
  }
3393
3393
  ]
3394
3394
  }
@@ -3409,53 +3409,53 @@
3409
3409
  "render-ui",
3410
3410
  "main",
3411
3411
  {
3412
- "navItems": [
3413
- {
3414
- "icon": "package",
3415
- "label": "Products",
3416
- "href": "/products"
3417
- },
3418
- {
3419
- "icon": "layout-list",
3420
- "label": "Login",
3421
- "href": "/login"
3422
- },
3423
- {
3424
- "label": "Checkout",
3425
- "href": "/checkout",
3426
- "icon": "credit-card"
3427
- },
3428
- {
3429
- "href": "/orders",
3430
- "label": "Orders",
3431
- "icon": "clipboard-list"
3432
- }
3433
- ],
3434
- "appName": "ServiceMarketplace",
3435
3412
  "children": [
3436
3413
  {
3414
+ "gap": "lg",
3437
3415
  "children": [
3438
3416
  {
3439
- "onRetry": "RETRY",
3440
3417
  "title": "Authentication Failed",
3441
- "message": "@entity.error",
3442
- "type": "error-state"
3418
+ "type": "error-state",
3419
+ "onRetry": "RETRY",
3420
+ "message": "@entity.error"
3443
3421
  },
3444
3422
  {
3445
- "label": "Try Again",
3446
3423
  "variant": "primary",
3447
- "type": "button",
3424
+ "label": "Try Again",
3425
+ "icon": "rotate-ccw",
3448
3426
  "action": "RETRY",
3449
- "icon": "rotate-ccw"
3427
+ "type": "button"
3450
3428
  }
3451
3429
  ],
3452
- "direction": "vertical",
3430
+ "align": "center",
3453
3431
  "type": "stack",
3454
- "gap": "lg",
3455
- "align": "center"
3432
+ "direction": "vertical"
3456
3433
  }
3457
3434
  ],
3458
- "type": "dashboard-layout"
3435
+ "navItems": [
3436
+ {
3437
+ "href": "/products",
3438
+ "icon": "package",
3439
+ "label": "Products"
3440
+ },
3441
+ {
3442
+ "label": "Login",
3443
+ "href": "/login",
3444
+ "icon": "layout-list"
3445
+ },
3446
+ {
3447
+ "label": "Checkout",
3448
+ "icon": "credit-card",
3449
+ "href": "/checkout"
3450
+ },
3451
+ {
3452
+ "icon": "clipboard-list",
3453
+ "href": "/orders",
3454
+ "label": "Orders"
3455
+ }
3456
+ ],
3457
+ "type": "dashboard-layout",
3458
+ "appName": "ServiceMarketplace"
3459
3459
  }
3460
3460
  ]
3461
3461
  ]
@@ -3469,31 +3469,28 @@
3469
3469
  "render-ui",
3470
3470
  "main",
3471
3471
  {
3472
- "appName": "ServiceMarketplace",
3473
3472
  "type": "dashboard-layout",
3474
3473
  "children": [
3475
3474
  {
3476
- "align": "center",
3477
- "gap": "lg",
3478
3475
  "direction": "vertical",
3479
- "type": "stack",
3476
+ "align": "center",
3480
3477
  "children": [
3481
3478
  {
3482
- "type": "stack",
3483
- "align": "center",
3484
3479
  "direction": "horizontal",
3485
3480
  "gap": "md",
3481
+ "align": "center",
3486
3482
  "children": [
3487
3483
  {
3488
3484
  "name": "lock",
3489
3485
  "type": "icon"
3490
3486
  },
3491
3487
  {
3492
- "content": "Sign In",
3493
3488
  "variant": "h2",
3489
+ "content": "Sign In",
3494
3490
  "type": "typography"
3495
3491
  }
3496
- ]
3492
+ ],
3493
+ "type": "stack"
3497
3494
  },
3498
3495
  {
3499
3496
  "type": "divider"
@@ -3505,36 +3502,38 @@
3505
3502
  "label": "Google"
3506
3503
  },
3507
3504
  {
3508
- "label": "GitHub",
3509
- "value": "github"
3505
+ "value": "github",
3506
+ "label": "GitHub"
3510
3507
  },
3511
3508
  {
3512
- "label": "Microsoft",
3513
- "value": "microsoft"
3509
+ "value": "microsoft",
3510
+ "label": "Microsoft"
3514
3511
  }
3515
3512
  ],
3516
3513
  "type": "select"
3517
3514
  },
3518
3515
  {
3519
- "action": "LOGIN",
3520
- "variant": "primary",
3521
3516
  "type": "button",
3517
+ "action": "LOGIN",
3518
+ "icon": "log-in",
3522
3519
  "label": "Login",
3523
- "icon": "log-in"
3520
+ "variant": "primary"
3524
3521
  }
3525
- ]
3522
+ ],
3523
+ "gap": "lg",
3524
+ "type": "stack"
3526
3525
  }
3527
3526
  ],
3528
3527
  "navItems": [
3529
3528
  {
3530
- "href": "/products",
3531
3529
  "label": "Products",
3530
+ "href": "/products",
3532
3531
  "icon": "package"
3533
3532
  },
3534
3533
  {
3535
- "href": "/login",
3536
3534
  "icon": "layout-list",
3537
- "label": "Login"
3535
+ "label": "Login",
3536
+ "href": "/login"
3538
3537
  },
3539
3538
  {
3540
3539
  "label": "Checkout",
@@ -3543,10 +3542,11 @@
3543
3542
  },
3544
3543
  {
3545
3544
  "label": "Orders",
3546
- "icon": "clipboard-list",
3547
- "href": "/orders"
3545
+ "href": "/orders",
3546
+ "icon": "clipboard-list"
3548
3547
  }
3549
- ]
3548
+ ],
3549
+ "appName": "ServiceMarketplace"
3550
3550
  }
3551
3551
  ]
3552
3552
  ]
@@ -3839,73 +3839,73 @@
3839
3839
  "render-ui",
3840
3840
  "main",
3841
3841
  {
3842
- "type": "dashboard-layout",
3843
3842
  "children": [
3844
3843
  {
3845
3844
  "type": "stack",
3846
- "direction": "vertical",
3845
+ "align": "center",
3847
3846
  "children": [
3848
3847
  {
3849
- "align": "center",
3850
3848
  "gap": "md",
3849
+ "direction": "horizontal",
3850
+ "align": "center",
3851
+ "type": "stack",
3851
3852
  "children": [
3852
3853
  {
3853
- "type": "icon",
3854
- "name": "credit-card"
3854
+ "name": "credit-card",
3855
+ "type": "icon"
3855
3856
  },
3856
3857
  {
3858
+ "variant": "h2",
3857
3859
  "type": "typography",
3858
- "content": "Payment",
3859
- "variant": "h2"
3860
+ "content": "Payment"
3860
3861
  }
3861
- ],
3862
- "type": "stack",
3863
- "direction": "horizontal"
3862
+ ]
3864
3863
  },
3865
3864
  {
3866
3865
  "type": "divider"
3867
3866
  },
3868
3867
  {
3869
- "direction": "vertical",
3870
3868
  "type": "stack",
3869
+ "gap": "md",
3871
3870
  "children": [
3872
3871
  {
3873
3872
  "placeholder": "0.00",
3874
- "inputType": "number",
3875
- "type": "input"
3873
+ "type": "input",
3874
+ "inputType": "number"
3876
3875
  },
3877
3876
  {
3878
3877
  "options": [
3879
3878
  {
3880
- "label": "USD",
3881
- "value": "usd"
3879
+ "value": "usd",
3880
+ "label": "USD"
3882
3881
  },
3883
3882
  {
3884
- "value": "eur",
3885
- "label": "EUR"
3883
+ "label": "EUR",
3884
+ "value": "eur"
3886
3885
  },
3887
3886
  {
3888
- "value": "gbp",
3889
- "label": "GBP"
3887
+ "label": "GBP",
3888
+ "value": "gbp"
3890
3889
  }
3891
3890
  ],
3892
3891
  "type": "select"
3893
3892
  }
3894
3893
  ],
3895
- "gap": "md"
3894
+ "direction": "vertical"
3896
3895
  },
3897
3896
  {
3898
- "type": "button",
3899
- "label": "Pay",
3900
- "icon": "credit-card",
3901
3897
  "action": "CREATE_PAYMENT",
3902
- "variant": "primary"
3898
+ "variant": "primary",
3899
+ "icon": "credit-card",
3900
+ "type": "button",
3901
+ "label": "Pay"
3903
3902
  }
3904
3903
  ],
3905
- "gap": "lg",
3906
- "align": "center"
3904
+ "direction": "vertical",
3905
+ "gap": "lg"
3907
3906
  }
3908
3907
  ],
3908
+ "type": "dashboard-layout",
3909
3909
  "navItems": [
3910
3910
  {
3911
3911
  "label": "Products",
@@ -3913,19 +3913,19 @@
3913
3913
  "icon": "package"
3914
3914
  },
3915
3915
  {
3916
+ "label": "Login",
3916
3917
  "href": "/login",
3917
- "icon": "layout-list",
3918
- "label": "Login"
3918
+ "icon": "layout-list"
3919
3919
  },
3920
3920
  {
3921
- "icon": "credit-card",
3921
+ "label": "Checkout",
3922
3922
  "href": "/checkout",
3923
- "label": "Checkout"
3923
+ "icon": "credit-card"
3924
3924
  },
3925
3925
  {
3926
+ "label": "Orders",
3926
3927
  "icon": "clipboard-list",
3927
- "href": "/orders",
3928
- "label": "Orders"
3928
+ "href": "/orders"
3929
3929
  }
3930
3930
  ],
3931
3931
  "appName": "ServiceMarketplace"
@@ -3942,6 +3942,7 @@
3942
3942
  "render-ui",
3943
3943
  "main",
3944
3944
  {
3945
+ "type": "dashboard-layout",
3945
3946
  "navItems": [
3946
3947
  {
3947
3948
  "label": "Products",
@@ -3949,19 +3950,19 @@
3949
3950
  "icon": "package"
3950
3951
  },
3951
3952
  {
3953
+ "icon": "layout-list",
3952
3954
  "label": "Login",
3953
- "href": "/login",
3954
- "icon": "layout-list"
3955
+ "href": "/login"
3955
3956
  },
3956
3957
  {
3958
+ "icon": "credit-card",
3957
3959
  "label": "Checkout",
3958
- "href": "/checkout",
3959
- "icon": "credit-card"
3960
+ "href": "/checkout"
3960
3961
  },
3961
3962
  {
3963
+ "label": "Orders",
3962
3964
  "href": "/orders",
3963
- "icon": "clipboard-list",
3964
- "label": "Orders"
3965
+ "icon": "clipboard-list"
3965
3966
  }
3966
3967
  ],
3967
3968
  "children": [
@@ -3971,7 +3972,6 @@
3971
3972
  "message": "Setting up your payment intent."
3972
3973
  }
3973
3974
  ],
3974
- "type": "dashboard-layout",
3975
3975
  "appName": "ServiceMarketplace"
3976
3976
  }
3977
3977
  ],
@@ -3985,8 +3985,8 @@
3985
3985
  },
3986
3986
  {
3987
3987
  "emit": {
3988
- "success": "ProductStripeCompleted",
3989
- "failure": "ProductStripeFailed"
3988
+ "failure": "ProductStripeFailed",
3989
+ "success": "ProductStripeCompleted"
3990
3990
  }
3991
3991
  }
3992
3992
  ]
@@ -4011,13 +4011,11 @@
4011
4011
  "render-ui",
4012
4012
  "main",
4013
4013
  {
4014
- "appName": "ServiceMarketplace",
4015
- "type": "dashboard-layout",
4016
4014
  "navItems": [
4017
4015
  {
4018
- "href": "/products",
4016
+ "label": "Products",
4019
4017
  "icon": "package",
4020
- "label": "Products"
4018
+ "href": "/products"
4021
4019
  },
4022
4020
  {
4023
4021
  "label": "Login",
@@ -4025,23 +4023,25 @@
4025
4023
  "icon": "layout-list"
4026
4024
  },
4027
4025
  {
4028
- "href": "/checkout",
4029
4026
  "icon": "credit-card",
4030
- "label": "Checkout"
4027
+ "label": "Checkout",
4028
+ "href": "/checkout"
4031
4029
  },
4032
4030
  {
4033
4031
  "href": "/orders",
4034
- "icon": "clipboard-list",
4035
- "label": "Orders"
4032
+ "label": "Orders",
4033
+ "icon": "clipboard-list"
4036
4034
  }
4037
4035
  ],
4038
4036
  "children": [
4039
4037
  {
4040
4038
  "type": "loading-state",
4041
- "title": "Confirming payment...",
4042
- "message": "Processing your payment."
4039
+ "message": "Processing your payment.",
4040
+ "title": "Confirming payment..."
4043
4041
  }
4044
- ]
4042
+ ],
4043
+ "type": "dashboard-layout",
4044
+ "appName": "ServiceMarketplace"
4045
4045
  }
4046
4046
  ],
4047
4047
  [
@@ -4076,35 +4076,35 @@
4076
4076
  {
4077
4077
  "navItems": [
4078
4078
  {
4079
- "label": "Products",
4080
4079
  "icon": "package",
4081
- "href": "/products"
4080
+ "href": "/products",
4081
+ "label": "Products"
4082
4082
  },
4083
4083
  {
4084
- "href": "/login",
4085
4084
  "label": "Login",
4085
+ "href": "/login",
4086
4086
  "icon": "layout-list"
4087
4087
  },
4088
4088
  {
4089
4089
  "icon": "credit-card",
4090
- "href": "/checkout",
4091
- "label": "Checkout"
4090
+ "label": "Checkout",
4091
+ "href": "/checkout"
4092
4092
  },
4093
4093
  {
4094
4094
  "icon": "clipboard-list",
4095
- "label": "Orders",
4096
- "href": "/orders"
4095
+ "href": "/orders",
4096
+ "label": "Orders"
4097
4097
  }
4098
4098
  ],
4099
+ "type": "dashboard-layout",
4099
4100
  "children": [
4100
4101
  {
4101
- "title": "Payment Failed",
4102
- "message": "@entity.error",
4103
4102
  "type": "error-state",
4104
- "onRetry": "RETRY"
4103
+ "onRetry": "RETRY",
4104
+ "title": "Payment Failed",
4105
+ "message": "@entity.error"
4105
4106
  }
4106
4107
  ],
4107
- "type": "dashboard-layout",
4108
4108
  "appName": "ServiceMarketplace"
4109
4109
  }
4110
4110
  ]
@@ -4128,17 +4128,15 @@
4128
4128
  "render-ui",
4129
4129
  "main",
4130
4130
  {
4131
- "appName": "ServiceMarketplace",
4132
4131
  "children": [
4133
4132
  {
4134
4133
  "direction": "vertical",
4135
- "gap": "lg",
4136
4134
  "type": "stack",
4137
4135
  "align": "center",
4138
4136
  "children": [
4139
4137
  {
4140
- "type": "icon",
4141
- "name": "check-circle"
4138
+ "name": "check-circle",
4139
+ "type": "icon"
4142
4140
  },
4143
4141
  {
4144
4142
  "type": "alert",
@@ -4146,44 +4144,46 @@
4146
4144
  "variant": "success"
4147
4145
  },
4148
4146
  {
4149
- "variant": "body",
4150
- "type": "typography",
4151
4147
  "content": "@entity.paymentIntentId",
4152
- "color": "muted"
4148
+ "color": "muted",
4149
+ "variant": "body",
4150
+ "type": "typography"
4153
4151
  },
4154
4152
  {
4155
- "type": "button",
4156
- "label": "New Payment",
4153
+ "icon": "rotate-ccw",
4157
4154
  "action": "RESET",
4158
- "variant": "ghost",
4159
- "icon": "rotate-ccw"
4155
+ "label": "New Payment",
4156
+ "type": "button",
4157
+ "variant": "ghost"
4160
4158
  }
4161
- ]
4159
+ ],
4160
+ "gap": "lg"
4162
4161
  }
4163
4162
  ],
4164
- "type": "dashboard-layout",
4165
4163
  "navItems": [
4166
4164
  {
4167
4165
  "href": "/products",
4168
- "label": "Products",
4169
- "icon": "package"
4166
+ "icon": "package",
4167
+ "label": "Products"
4170
4168
  },
4171
4169
  {
4172
- "label": "Login",
4173
4170
  "href": "/login",
4174
- "icon": "layout-list"
4171
+ "icon": "layout-list",
4172
+ "label": "Login"
4175
4173
  },
4176
4174
  {
4177
- "href": "/checkout",
4175
+ "label": "Checkout",
4178
4176
  "icon": "credit-card",
4179
- "label": "Checkout"
4177
+ "href": "/checkout"
4180
4178
  },
4181
4179
  {
4182
- "label": "Orders",
4183
4180
  "href": "/orders",
4184
- "icon": "clipboard-list"
4181
+ "icon": "clipboard-list",
4182
+ "label": "Orders"
4185
4183
  }
4186
- ]
4184
+ ],
4185
+ "appName": "ServiceMarketplace",
4186
+ "type": "dashboard-layout"
4187
4187
  }
4188
4188
  ]
4189
4189
  ]
@@ -4202,16 +4202,6 @@
4202
4202
  "render-ui",
4203
4203
  "main",
4204
4204
  {
4205
- "appName": "ServiceMarketplace",
4206
- "children": [
4207
- {
4208
- "onRetry": "RETRY",
4209
- "title": "Payment Failed",
4210
- "type": "error-state",
4211
- "message": "@entity.error"
4212
- }
4213
- ],
4214
- "type": "dashboard-layout",
4215
4205
  "navItems": [
4216
4206
  {
4217
4207
  "label": "Products",
@@ -4219,19 +4209,29 @@
4219
4209
  "icon": "package"
4220
4210
  },
4221
4211
  {
4222
- "label": "Login",
4212
+ "icon": "layout-list",
4223
4213
  "href": "/login",
4224
- "icon": "layout-list"
4214
+ "label": "Login"
4225
4215
  },
4226
4216
  {
4217
+ "label": "Checkout",
4227
4218
  "href": "/checkout",
4228
- "icon": "credit-card",
4229
- "label": "Checkout"
4219
+ "icon": "credit-card"
4230
4220
  },
4231
4221
  {
4222
+ "href": "/orders",
4232
4223
  "icon": "clipboard-list",
4233
- "label": "Orders",
4234
- "href": "/orders"
4224
+ "label": "Orders"
4225
+ }
4226
+ ],
4227
+ "type": "dashboard-layout",
4228
+ "appName": "ServiceMarketplace",
4229
+ "children": [
4230
+ {
4231
+ "onRetry": "RETRY",
4232
+ "title": "Payment Failed",
4233
+ "type": "error-state",
4234
+ "message": "@entity.error"
4235
4235
  }
4236
4236
  ]
4237
4237
  }
@@ -4247,16 +4247,17 @@
4247
4247
  "render-ui",
4248
4248
  "main",
4249
4249
  {
4250
+ "appName": "ServiceMarketplace",
4250
4251
  "navItems": [
4251
4252
  {
4252
- "icon": "package",
4253
4253
  "href": "/products",
4254
- "label": "Products"
4254
+ "label": "Products",
4255
+ "icon": "package"
4255
4256
  },
4256
4257
  {
4257
- "icon": "layout-list",
4258
+ "label": "Login",
4258
4259
  "href": "/login",
4259
- "label": "Login"
4260
+ "icon": "layout-list"
4260
4261
  },
4261
4262
  {
4262
4263
  "href": "/checkout",
@@ -4264,39 +4265,39 @@
4264
4265
  "label": "Checkout"
4265
4266
  },
4266
4267
  {
4267
- "href": "/orders",
4268
4268
  "label": "Orders",
4269
+ "href": "/orders",
4269
4270
  "icon": "clipboard-list"
4270
4271
  }
4271
4272
  ],
4272
- "appName": "ServiceMarketplace",
4273
- "type": "dashboard-layout",
4274
4273
  "children": [
4275
4274
  {
4276
- "direction": "vertical",
4275
+ "type": "stack",
4276
+ "gap": "lg",
4277
+ "align": "center",
4277
4278
  "children": [
4278
4279
  {
4279
- "type": "stack",
4280
- "gap": "md",
4281
4280
  "children": [
4282
4281
  {
4283
4282
  "name": "credit-card",
4284
4283
  "type": "icon"
4285
4284
  },
4286
4285
  {
4287
- "type": "typography",
4288
4286
  "content": "Payment",
4287
+ "type": "typography",
4289
4288
  "variant": "h2"
4290
4289
  }
4291
4290
  ],
4291
+ "gap": "md",
4292
+ "direction": "horizontal",
4292
4293
  "align": "center",
4293
- "direction": "horizontal"
4294
+ "type": "stack"
4294
4295
  },
4295
4296
  {
4296
4297
  "type": "divider"
4297
4298
  },
4298
4299
  {
4299
- "gap": "md",
4300
+ "direction": "vertical",
4300
4301
  "children": [
4301
4302
  {
4302
4303
  "type": "input",
@@ -4304,7 +4305,6 @@
4304
4305
  "placeholder": "0.00"
4305
4306
  },
4306
4307
  {
4307
- "type": "select",
4308
4308
  "options": [
4309
4309
  {
4310
4310
  "label": "USD",
@@ -4318,25 +4318,25 @@
4318
4318
  "value": "gbp",
4319
4319
  "label": "GBP"
4320
4320
  }
4321
- ]
4321
+ ],
4322
+ "type": "select"
4322
4323
  }
4323
4324
  ],
4324
- "type": "stack",
4325
- "direction": "vertical"
4325
+ "gap": "md",
4326
+ "type": "stack"
4326
4327
  },
4327
4328
  {
4328
- "icon": "credit-card",
4329
4329
  "variant": "primary",
4330
- "type": "button",
4331
4330
  "label": "Pay",
4331
+ "icon": "credit-card",
4332
+ "type": "button",
4332
4333
  "action": "CREATE_PAYMENT"
4333
4334
  }
4334
4335
  ],
4335
- "type": "stack",
4336
- "align": "center",
4337
- "gap": "lg"
4336
+ "direction": "vertical"
4338
4337
  }
4339
- ]
4338
+ ],
4339
+ "type": "dashboard-layout"
4340
4340
  }
4341
4341
  ]
4342
4342
  ]
@@ -4350,16 +4350,38 @@
4350
4350
  "render-ui",
4351
4351
  "main",
4352
4352
  {
4353
+ "navItems": [
4354
+ {
4355
+ "label": "Products",
4356
+ "href": "/products",
4357
+ "icon": "package"
4358
+ },
4359
+ {
4360
+ "label": "Login",
4361
+ "href": "/login",
4362
+ "icon": "layout-list"
4363
+ },
4364
+ {
4365
+ "href": "/checkout",
4366
+ "icon": "credit-card",
4367
+ "label": "Checkout"
4368
+ },
4369
+ {
4370
+ "href": "/orders",
4371
+ "icon": "clipboard-list",
4372
+ "label": "Orders"
4373
+ }
4374
+ ],
4375
+ "appName": "ServiceMarketplace",
4353
4376
  "children": [
4354
4377
  {
4355
- "align": "center",
4356
- "direction": "vertical",
4357
- "gap": "lg",
4358
4378
  "type": "stack",
4379
+ "gap": "lg",
4359
4380
  "children": [
4360
4381
  {
4361
4382
  "direction": "horizontal",
4362
4383
  "type": "stack",
4384
+ "gap": "md",
4363
4385
  "align": "center",
4364
4386
  "children": [
4365
4387
  {
@@ -4367,30 +4389,30 @@
4367
4389
  "type": "icon"
4368
4390
  },
4369
4391
  {
4370
- "content": "Payment",
4392
+ "type": "typography",
4371
4393
  "variant": "h2",
4372
- "type": "typography"
4394
+ "content": "Payment"
4373
4395
  }
4374
- ],
4375
- "gap": "md"
4396
+ ]
4376
4397
  },
4377
4398
  {
4378
4399
  "type": "divider"
4379
4400
  },
4380
4401
  {
4402
+ "type": "stack",
4381
4403
  "gap": "md",
4382
4404
  "children": [
4383
4405
  {
4384
- "inputType": "number",
4385
4406
  "type": "input",
4407
+ "inputType": "number",
4386
4408
  "placeholder": "0.00"
4387
4409
  },
4388
4410
  {
4389
4411
  "type": "select",
4390
4412
  "options": [
4391
4413
  {
4392
- "value": "usd",
4393
- "label": "USD"
4414
+ "label": "USD",
4415
+ "value": "usd"
4394
4416
  },
4395
4417
  {
4396
4418
  "value": "eur",
@@ -4403,66 +4425,64 @@
4403
4425
  ]
4404
4426
  }
4405
4427
  ],
4406
- "type": "stack",
4407
4428
  "direction": "vertical"
4408
4429
  },
4409
4430
  {
4410
4431
  "variant": "primary",
4411
- "icon": "credit-card",
4412
4432
  "label": "Pay",
4413
4433
  "action": "CREATE_PAYMENT",
4434
+ "icon": "credit-card",
4414
4435
  "type": "button"
4415
4436
  }
4416
- ]
4437
+ ],
4438
+ "align": "center",
4439
+ "direction": "vertical"
4417
4440
  }
4418
4441
  ],
4442
+ "type": "dashboard-layout"
4443
+ }
4444
+ ]
4445
+ ]
4446
+ },
4447
+ {
4448
+ "from": "error",
4449
+ "to": "idle",
4450
+ "event": "RESET",
4451
+ "effects": [
4452
+ [
4453
+ "render-ui",
4454
+ "main",
4455
+ {
4419
4456
  "appName": "ServiceMarketplace",
4420
- "type": "dashboard-layout",
4421
4457
  "navItems": [
4422
4458
  {
4459
+ "label": "Products",
4423
4460
  "icon": "package",
4424
- "href": "/products",
4425
- "label": "Products"
4461
+ "href": "/products"
4426
4462
  },
4427
4463
  {
4428
- "icon": "layout-list",
4429
4464
  "label": "Login",
4430
- "href": "/login"
4465
+ "href": "/login",
4466
+ "icon": "layout-list"
4431
4467
  },
4432
4468
  {
4433
- "label": "Checkout",
4434
4469
  "icon": "credit-card",
4470
+ "label": "Checkout",
4435
4471
  "href": "/checkout"
4436
4472
  },
4437
4473
  {
4474
+ "label": "Orders",
4438
4475
  "href": "/orders",
4439
- "icon": "clipboard-list",
4440
- "label": "Orders"
4476
+ "icon": "clipboard-list"
4441
4477
  }
4442
- ]
4443
- }
4444
- ]
4445
- ]
4446
- },
4447
- {
4448
- "from": "error",
4449
- "to": "idle",
4450
- "event": "RESET",
4451
- "effects": [
4452
- [
4453
- "render-ui",
4454
- "main",
4455
- {
4478
+ ],
4456
4479
  "children": [
4457
4480
  {
4458
- "gap": "lg",
4459
- "type": "stack",
4460
- "align": "center",
4461
- "direction": "vertical",
4462
4481
  "children": [
4463
4482
  {
4464
- "type": "stack",
4483
+ "align": "center",
4465
4484
  "direction": "horizontal",
4485
+ "type": "stack",
4466
4486
  "children": [
4467
4487
  {
4468
4488
  "type": "icon",
@@ -4470,31 +4490,30 @@
4470
4490
  },
4471
4491
  {
4472
4492
  "type": "typography",
4473
- "variant": "h2",
4474
- "content": "Payment"
4493
+ "content": "Payment",
4494
+ "variant": "h2"
4475
4495
  }
4476
4496
  ],
4477
- "gap": "md",
4478
- "align": "center"
4497
+ "gap": "md"
4479
4498
  },
4480
4499
  {
4481
4500
  "type": "divider"
4482
4501
  },
4483
4502
  {
4503
+ "type": "stack",
4484
4504
  "direction": "vertical",
4485
4505
  "gap": "md",
4486
4506
  "children": [
4487
4507
  {
4488
4508
  "inputType": "number",
4489
- "placeholder": "0.00",
4490
- "type": "input"
4509
+ "type": "input",
4510
+ "placeholder": "0.00"
4491
4511
  },
4492
4512
  {
4493
- "type": "select",
4494
4513
  "options": [
4495
4514
  {
4496
- "label": "USD",
4497
- "value": "usd"
4515
+ "value": "usd",
4516
+ "label": "USD"
4498
4517
  },
4499
4518
  {
4500
4519
  "label": "EUR",
@@ -4504,45 +4523,26 @@
4504
4523
  "label": "GBP",
4505
4524
  "value": "gbp"
4506
4525
  }
4507
- ]
4526
+ ],
4527
+ "type": "select"
4508
4528
  }
4509
- ],
4510
- "type": "stack"
4529
+ ]
4511
4530
  },
4512
4531
  {
4513
- "label": "Pay",
4514
- "action": "CREATE_PAYMENT",
4515
4532
  "variant": "primary",
4533
+ "label": "Pay",
4516
4534
  "icon": "credit-card",
4517
- "type": "button"
4535
+ "type": "button",
4536
+ "action": "CREATE_PAYMENT"
4518
4537
  }
4519
- ]
4538
+ ],
4539
+ "direction": "vertical",
4540
+ "gap": "lg",
4541
+ "align": "center",
4542
+ "type": "stack"
4520
4543
  }
4521
4544
  ],
4522
- "appName": "ServiceMarketplace",
4523
- "type": "dashboard-layout",
4524
- "navItems": [
4525
- {
4526
- "href": "/products",
4527
- "label": "Products",
4528
- "icon": "package"
4529
- },
4530
- {
4531
- "label": "Login",
4532
- "icon": "layout-list",
4533
- "href": "/login"
4534
- },
4535
- {
4536
- "icon": "credit-card",
4537
- "href": "/checkout",
4538
- "label": "Checkout"
4539
- },
4540
- {
4541
- "icon": "clipboard-list",
4542
- "label": "Orders",
4543
- "href": "/orders"
4544
- }
4545
- ]
4545
+ "type": "dashboard-layout"
4546
4546
  }
4547
4547
  ]
4548
4548
  ]
@@ -4678,48 +4678,48 @@
4678
4678
  "render-ui",
4679
4679
  "main",
4680
4680
  {
4681
- "appName": "ServiceMarketplace",
4682
- "children": [
4683
- {
4684
- "gap": "md",
4685
- "type": "stack",
4686
- "align": "center",
4687
- "children": [
4688
- {
4689
- "type": "icon",
4690
- "name": "mail"
4691
- },
4692
- {
4693
- "variant": "body",
4694
- "type": "typography",
4695
- "color": "muted",
4696
- "content": "Receipt will be sent after payment."
4697
- }
4698
- ],
4699
- "direction": "vertical"
4700
- }
4701
- ],
4702
4681
  "type": "dashboard-layout",
4682
+ "appName": "ServiceMarketplace",
4703
4683
  "navItems": [
4704
4684
  {
4705
- "href": "/products",
4706
4685
  "label": "Products",
4686
+ "href": "/products",
4707
4687
  "icon": "package"
4708
4688
  },
4709
4689
  {
4690
+ "icon": "layout-list",
4710
4691
  "href": "/login",
4711
- "label": "Login",
4712
- "icon": "layout-list"
4692
+ "label": "Login"
4713
4693
  },
4714
4694
  {
4715
- "label": "Checkout",
4695
+ "icon": "credit-card",
4716
4696
  "href": "/checkout",
4717
- "icon": "credit-card"
4697
+ "label": "Checkout"
4718
4698
  },
4719
4699
  {
4700
+ "label": "Orders",
4720
4701
  "href": "/orders",
4721
- "icon": "clipboard-list",
4722
- "label": "Orders"
4702
+ "icon": "clipboard-list"
4703
+ }
4704
+ ],
4705
+ "children": [
4706
+ {
4707
+ "direction": "vertical",
4708
+ "gap": "md",
4709
+ "align": "center",
4710
+ "type": "stack",
4711
+ "children": [
4712
+ {
4713
+ "type": "icon",
4714
+ "name": "mail"
4715
+ },
4716
+ {
4717
+ "color": "muted",
4718
+ "variant": "body",
4719
+ "type": "typography",
4720
+ "content": "Receipt will be sent after payment."
4721
+ }
4722
+ ]
4723
4723
  }
4724
4724
  ]
4725
4725
  }
@@ -4735,37 +4735,37 @@
4735
4735
  "render-ui",
4736
4736
  "main",
4737
4737
  {
4738
- "type": "dashboard-layout",
4739
- "appName": "ServiceMarketplace",
4740
- "children": [
4741
- {
4742
- "message": "Delivering your payment receipt.",
4743
- "type": "loading-state",
4744
- "title": "Sending receipt..."
4745
- }
4746
- ],
4747
4738
  "navItems": [
4748
4739
  {
4740
+ "label": "Products",
4749
4741
  "href": "/products",
4750
- "icon": "package",
4751
- "label": "Products"
4742
+ "icon": "package"
4752
4743
  },
4753
4744
  {
4754
- "href": "/login",
4755
4745
  "label": "Login",
4746
+ "href": "/login",
4756
4747
  "icon": "layout-list"
4757
4748
  },
4758
4749
  {
4759
- "icon": "credit-card",
4750
+ "label": "Checkout",
4760
4751
  "href": "/checkout",
4761
- "label": "Checkout"
4752
+ "icon": "credit-card"
4762
4753
  },
4763
4754
  {
4764
- "label": "Orders",
4765
4755
  "icon": "clipboard-list",
4766
- "href": "/orders"
4756
+ "href": "/orders",
4757
+ "label": "Orders"
4767
4758
  }
4768
- ]
4759
+ ],
4760
+ "appName": "ServiceMarketplace",
4761
+ "children": [
4762
+ {
4763
+ "title": "Sending receipt...",
4764
+ "message": "Delivering your payment receipt.",
4765
+ "type": "loading-state"
4766
+ }
4767
+ ],
4768
+ "type": "dashboard-layout"
4769
4769
  }
4770
4770
  ],
4771
4771
  [
@@ -4779,8 +4779,8 @@
4779
4779
  },
4780
4780
  {
4781
4781
  "emit": {
4782
- "failure": "ProductEmailFailed",
4783
- "success": "ProductEmailCompleted"
4782
+ "success": "ProductEmailCompleted",
4783
+ "failure": "ProductEmailFailed"
4784
4784
  }
4785
4785
  }
4786
4786
  ]
@@ -4800,35 +4800,10 @@
4800
4800
  "render-ui",
4801
4801
  "main",
4802
4802
  {
4803
- "navItems": [
4804
- {
4805
- "href": "/products",
4806
- "icon": "package",
4807
- "label": "Products"
4808
- },
4809
- {
4810
- "label": "Login",
4811
- "icon": "layout-list",
4812
- "href": "/login"
4813
- },
4814
- {
4815
- "icon": "credit-card",
4816
- "label": "Checkout",
4817
- "href": "/checkout"
4818
- },
4819
- {
4820
- "icon": "clipboard-list",
4821
- "label": "Orders",
4822
- "href": "/orders"
4823
- }
4824
- ],
4825
4803
  "type": "dashboard-layout",
4826
- "appName": "ServiceMarketplace",
4827
4804
  "children": [
4828
4805
  {
4829
4806
  "type": "stack",
4830
- "align": "center",
4831
- "gap": "md",
4832
4807
  "direction": "vertical",
4833
4808
  "children": [
4834
4809
  {
@@ -4836,13 +4811,38 @@
4836
4811
  "name": "check-circle"
4837
4812
  },
4838
4813
  {
4839
- "variant": "success",
4840
4814
  "message": "Receipt sent successfully",
4815
+ "variant": "success",
4841
4816
  "type": "alert"
4842
4817
  }
4843
- ]
4818
+ ],
4819
+ "align": "center",
4820
+ "gap": "md"
4844
4821
  }
4845
- ]
4822
+ ],
4823
+ "navItems": [
4824
+ {
4825
+ "label": "Products",
4826
+ "icon": "package",
4827
+ "href": "/products"
4828
+ },
4829
+ {
4830
+ "label": "Login",
4831
+ "href": "/login",
4832
+ "icon": "layout-list"
4833
+ },
4834
+ {
4835
+ "label": "Checkout",
4836
+ "icon": "credit-card",
4837
+ "href": "/checkout"
4838
+ },
4839
+ {
4840
+ "href": "/orders",
4841
+ "icon": "clipboard-list",
4842
+ "label": "Orders"
4843
+ }
4844
+ ],
4845
+ "appName": "ServiceMarketplace"
4846
4846
  }
4847
4847
  ]
4848
4848
  ]
@@ -4862,50 +4862,50 @@
4862
4862
  "main",
4863
4863
  {
4864
4864
  "type": "dashboard-layout",
4865
- "appName": "ServiceMarketplace",
4866
- "children": [
4867
- {
4868
- "direction": "vertical",
4869
- "gap": "md",
4870
- "align": "center",
4871
- "children": [
4872
- {
4873
- "type": "error-state",
4874
- "title": "Receipt Failed",
4875
- "onRetry": "RETRY_RECEIPT",
4876
- "message": "Could not send receipt email."
4877
- },
4878
- {
4879
- "icon": "refresh-cw",
4880
- "type": "button",
4881
- "action": "RETRY_RECEIPT",
4882
- "label": "Retry",
4883
- "variant": "primary"
4884
- }
4885
- ],
4886
- "type": "stack"
4887
- }
4888
- ],
4889
4865
  "navItems": [
4890
4866
  {
4891
- "icon": "package",
4892
4867
  "label": "Products",
4893
- "href": "/products"
4868
+ "href": "/products",
4869
+ "icon": "package"
4894
4870
  },
4895
4871
  {
4896
- "icon": "layout-list",
4897
4872
  "label": "Login",
4898
- "href": "/login"
4873
+ "href": "/login",
4874
+ "icon": "layout-list"
4899
4875
  },
4900
4876
  {
4901
- "href": "/checkout",
4902
4877
  "icon": "credit-card",
4878
+ "href": "/checkout",
4903
4879
  "label": "Checkout"
4904
4880
  },
4905
4881
  {
4882
+ "label": "Orders",
4906
4883
  "icon": "clipboard-list",
4907
- "href": "/orders",
4908
- "label": "Orders"
4884
+ "href": "/orders"
4885
+ }
4886
+ ],
4887
+ "appName": "ServiceMarketplace",
4888
+ "children": [
4889
+ {
4890
+ "gap": "md",
4891
+ "type": "stack",
4892
+ "align": "center",
4893
+ "direction": "vertical",
4894
+ "children": [
4895
+ {
4896
+ "type": "error-state",
4897
+ "title": "Receipt Failed",
4898
+ "message": "Could not send receipt email.",
4899
+ "onRetry": "RETRY_RECEIPT"
4900
+ },
4901
+ {
4902
+ "label": "Retry",
4903
+ "action": "RETRY_RECEIPT",
4904
+ "type": "button",
4905
+ "variant": "primary",
4906
+ "icon": "refresh-cw"
4907
+ }
4908
+ ]
4909
4909
  }
4910
4910
  ]
4911
4911
  }
@@ -4921,8 +4921,8 @@
4921
4921
  "render-ui",
4922
4922
  "main",
4923
4923
  {
4924
- "type": "loading-state",
4925
- "title": "Resending receipt..."
4924
+ "title": "Resending receipt...",
4925
+ "type": "loading-state"
4926
4926
  }
4927
4927
  ],
4928
4928
  [
@@ -4930,9 +4930,9 @@
4930
4930
  "email",
4931
4931
  "send",
4932
4932
  {
4933
- "subject": "@entity.subject",
4934
4933
  "body": "@entity.body",
4935
- "to": "@entity.to"
4934
+ "to": "@entity.to",
4935
+ "subject": "@entity.subject"
4936
4936
  },
4937
4937
  {
4938
4938
  "emit": {
@@ -4952,12 +4952,19 @@
4952
4952
  "render-ui",
4953
4953
  "main",
4954
4954
  {
4955
- "appName": "ServiceMarketplace",
4955
+ "type": "dashboard-layout",
4956
+ "children": [
4957
+ {
4958
+ "title": "Sending receipt...",
4959
+ "type": "loading-state",
4960
+ "message": "Delivering your payment receipt."
4961
+ }
4962
+ ],
4956
4963
  "navItems": [
4957
4964
  {
4958
- "icon": "package",
4965
+ "href": "/products",
4959
4966
  "label": "Products",
4960
- "href": "/products"
4967
+ "icon": "package"
4961
4968
  },
4962
4969
  {
4963
4970
  "label": "Login",
@@ -4965,9 +4972,9 @@
4965
4972
  "icon": "layout-list"
4966
4973
  },
4967
4974
  {
4968
- "icon": "credit-card",
4975
+ "label": "Checkout",
4969
4976
  "href": "/checkout",
4970
- "label": "Checkout"
4977
+ "icon": "credit-card"
4971
4978
  },
4972
4979
  {
4973
4980
  "label": "Orders",
@@ -4975,14 +4982,7 @@
4975
4982
  "href": "/orders"
4976
4983
  }
4977
4984
  ],
4978
- "children": [
4979
- {
4980
- "title": "Sending receipt...",
4981
- "message": "Delivering your payment receipt.",
4982
- "type": "loading-state"
4983
- }
4984
- ],
4985
- "type": "dashboard-layout"
4985
+ "appName": "ServiceMarketplace"
4986
4986
  }
4987
4987
  ],
4988
4988
  [
@@ -4990,9 +4990,9 @@
4990
4990
  "email",
4991
4991
  "send",
4992
4992
  {
4993
- "body": "@entity.body",
4994
4993
  "to": "@entity.to",
4995
- "subject": "@entity.subject"
4994
+ "subject": "@entity.subject",
4995
+ "body": "@entity.body"
4996
4996
  },
4997
4997
  {
4998
4998
  "emit": {
@@ -5297,8 +5297,8 @@
5297
5297
  "Order",
5298
5298
  {
5299
5299
  "emit": {
5300
- "failure": "OrderLoadFailed",
5301
- "success": "OrderLoaded"
5300
+ "success": "OrderLoaded",
5301
+ "failure": "OrderLoadFailed"
5302
5302
  }
5303
5303
  }
5304
5304
  ],
@@ -5306,21 +5306,21 @@
5306
5306
  "render-ui",
5307
5307
  "main",
5308
5308
  {
5309
+ "direction": "vertical",
5309
5310
  "align": "center",
5311
+ "className": "py-12",
5312
+ "gap": "md",
5310
5313
  "children": [
5311
5314
  {
5312
5315
  "type": "spinner"
5313
5316
  },
5314
5317
  {
5315
- "variant": "caption",
5316
- "type": "typography",
5317
5318
  "color": "muted",
5318
- "content": "Loading…"
5319
+ "content": "Loading…",
5320
+ "variant": "caption",
5321
+ "type": "typography"
5319
5322
  }
5320
5323
  ],
5321
- "className": "py-12",
5322
- "direction": "vertical",
5323
- "gap": "md",
5324
5324
  "type": "stack"
5325
5325
  }
5326
5326
  ]
@@ -5335,43 +5335,19 @@
5335
5335
  "render-ui",
5336
5336
  "main",
5337
5337
  {
5338
- "type": "dashboard-layout",
5339
- "navItems": [
5340
- {
5341
- "icon": "package",
5342
- "label": "Products",
5343
- "href": "/products"
5344
- },
5345
- {
5346
- "icon": "layout-list",
5347
- "label": "Login",
5348
- "href": "/login"
5349
- },
5350
- {
5351
- "icon": "credit-card",
5352
- "label": "Checkout",
5353
- "href": "/checkout"
5354
- },
5355
- {
5356
- "label": "Orders",
5357
- "icon": "clipboard-list",
5358
- "href": "/orders"
5359
- }
5360
- ],
5338
+ "appName": "ServiceMarketplace",
5361
5339
  "children": [
5362
5340
  {
5363
- "direction": "vertical",
5364
- "type": "stack",
5365
- "gap": "lg",
5366
5341
  "children": [
5367
5342
  {
5343
+ "gap": "md",
5344
+ "direction": "horizontal",
5368
5345
  "justify": "between",
5369
5346
  "align": "center",
5370
5347
  "type": "stack",
5371
5348
  "children": [
5372
5349
  {
5373
5350
  "type": "stack",
5374
- "gap": "sm",
5375
5351
  "direction": "horizontal",
5376
5352
  "align": "center",
5377
5353
  "children": [
@@ -5380,91 +5356,115 @@
5380
5356
  "name": "list"
5381
5357
  },
5382
5358
  {
5383
- "variant": "h2",
5384
5359
  "type": "typography",
5385
- "content": "Orders"
5360
+ "content": "Orders",
5361
+ "variant": "h2"
5386
5362
  }
5387
- ]
5363
+ ],
5364
+ "gap": "sm"
5388
5365
  },
5389
5366
  {
5390
- "type": "stack",
5367
+ "direction": "horizontal",
5391
5368
  "children": [
5392
5369
  {
5393
- "variant": "primary",
5394
5370
  "label": "Create Order",
5395
5371
  "type": "button",
5396
5372
  "action": "CREATE",
5373
+ "variant": "primary",
5397
5374
  "icon": "plus"
5398
5375
  }
5399
5376
  ],
5400
- "gap": "sm",
5401
- "direction": "horizontal"
5377
+ "type": "stack",
5378
+ "gap": "sm"
5402
5379
  }
5403
- ],
5404
- "gap": "md",
5405
- "direction": "horizontal"
5380
+ ]
5406
5381
  },
5407
5382
  {
5408
5383
  "type": "divider"
5409
5384
  },
5410
5385
  {
5411
- "itemActions": [
5412
- {
5413
- "label": "View",
5414
- "event": "VIEW",
5415
- "variant": "ghost"
5416
- },
5417
- {
5418
- "label": "Edit",
5419
- "event": "EDIT",
5420
- "variant": "ghost"
5421
- },
5422
- {
5423
- "event": "DELETE",
5424
- "label": "Delete",
5425
- "variant": "danger"
5426
- }
5427
- ],
5428
- "type": "data-grid",
5429
5386
  "fields": [
5430
5387
  {
5431
5388
  "label": "Product Name",
5432
- "icon": "list",
5389
+ "name": "productName",
5433
5390
  "variant": "h4",
5434
- "name": "productName"
5391
+ "icon": "list"
5435
5392
  },
5436
5393
  {
5394
+ "name": "amount",
5437
5395
  "colorMap": {
5438
- "inactive": "neutral",
5439
- "archived": "neutral",
5440
- "disabled": "neutral",
5396
+ "completed": "success",
5397
+ "pending": "warning",
5441
5398
  "cancelled": "destructive",
5399
+ "failed": "destructive",
5442
5400
  "error": "destructive",
5401
+ "scheduled": "warning",
5402
+ "disabled": "neutral",
5443
5403
  "done": "success",
5444
- "failed": "destructive",
5445
- "completed": "success",
5446
5404
  "active": "success",
5447
- "pending": "warning",
5448
- "scheduled": "warning",
5449
- "draft": "warning"
5405
+ "draft": "warning",
5406
+ "archived": "neutral",
5407
+ "inactive": "neutral"
5450
5408
  },
5451
- "name": "amount",
5452
- "label": "Amount",
5453
- "variant": "badge"
5409
+ "variant": "badge",
5410
+ "label": "Amount"
5454
5411
  },
5455
5412
  {
5456
- "variant": "caption",
5413
+ "label": "Payment Status",
5457
5414
  "name": "paymentStatus",
5458
- "label": "Payment Status"
5415
+ "variant": "caption"
5459
5416
  }
5460
5417
  ],
5461
- "entity": "@payload.data"
5418
+ "type": "data-grid",
5419
+ "entity": "@payload.data",
5420
+ "itemActions": [
5421
+ {
5422
+ "variant": "ghost",
5423
+ "label": "View",
5424
+ "event": "VIEW"
5425
+ },
5426
+ {
5427
+ "label": "Edit",
5428
+ "event": "EDIT",
5429
+ "variant": "ghost"
5430
+ },
5431
+ {
5432
+ "variant": "danger",
5433
+ "label": "Delete",
5434
+ "event": "DELETE"
5435
+ }
5436
+ ]
5462
5437
  }
5463
5438
  ],
5439
+ "direction": "vertical",
5440
+ "type": "stack",
5441
+ "gap": "lg",
5464
5442
  "className": "max-w-5xl mx-auto w-full"
5465
5443
  }
5466
5444
  ],
5467
- "appName": "ServiceMarketplace"
5445
+ "type": "dashboard-layout",
5446
+ "navItems": [
5447
+ {
5448
+ "label": "Products",
5449
+ "href": "/products",
5450
+ "icon": "package"
5451
+ },
5452
+ {
5453
+ "href": "/login",
5454
+ "icon": "layout-list",
5455
+ "label": "Login"
5456
+ },
5457
+ {
5458
+ "label": "Checkout",
5459
+ "href": "/checkout",
5460
+ "icon": "credit-card"
5461
+ },
5462
+ {
5463
+ "label": "Orders",
5464
+ "href": "/orders",
5465
+ "icon": "clipboard-list"
5466
+ }
5467
+ ]
5468
5468
  }
5469
5469
  ]
5470
5470
  ]
@@ -5478,9 +5478,10 @@
5478
5478
  "render-ui",
5479
5479
  "main",
5480
5480
  {
5481
- "type": "stack",
5482
- "align": "center",
5483
5481
  "gap": "md",
5482
+ "align": "center",
5483
+ "direction": "vertical",
5484
+ "type": "stack",
5484
5485
  "className": "py-12",
5485
5486
  "children": [
5486
5487
  {
@@ -5489,25 +5490,24 @@
5489
5490
  "name": "alert-triangle"
5490
5491
  },
5491
5492
  {
5492
- "type": "typography",
5493
5493
  "content": "Failed to load order",
5494
+ "type": "typography",
5494
5495
  "variant": "h3"
5495
5496
  },
5496
5497
  {
5497
- "variant": "body",
5498
- "color": "muted",
5499
5498
  "type": "typography",
5500
- "content": "@payload.error"
5499
+ "content": "@payload.error",
5500
+ "color": "muted",
5501
+ "variant": "body"
5501
5502
  },
5502
5503
  {
5503
- "label": "Retry",
5504
- "type": "button",
5505
- "icon": "rotate-ccw",
5506
5504
  "action": "INIT",
5507
- "variant": "primary"
5505
+ "icon": "rotate-ccw",
5506
+ "variant": "primary",
5507
+ "type": "button",
5508
+ "label": "Retry"
5508
5509
  }
5509
- ],
5510
- "direction": "vertical"
5510
+ ]
5511
5511
  }
5512
5512
  ]
5513
5513
  ]
@@ -5682,8 +5682,8 @@
5682
5682
  "Order",
5683
5683
  {
5684
5684
  "emit": {
5685
- "failure": "OrderLoadFailed",
5686
- "success": "OrderLoaded"
5685
+ "success": "OrderLoaded",
5686
+ "failure": "OrderLoadFailed"
5687
5687
  }
5688
5688
  }
5689
5689
  ]
@@ -5699,8 +5699,8 @@
5699
5699
  "Order",
5700
5700
  {
5701
5701
  "emit": {
5702
- "failure": "OrderLoadFailed",
5703
- "success": "OrderLoaded"
5702
+ "success": "OrderLoaded",
5703
+ "failure": "OrderLoadFailed"
5704
5704
  }
5705
5705
  }
5706
5706
  ],
@@ -5708,9 +5708,9 @@
5708
5708
  "render-ui",
5709
5709
  "modal",
5710
5710
  {
5711
+ "type": "stack",
5711
5712
  "gap": "md",
5712
5713
  "direction": "vertical",
5713
- "type": "stack",
5714
5714
  "children": [
5715
5715
  {
5716
5716
  "type": "stack",
@@ -5722,9 +5722,9 @@
5722
5722
  "type": "icon"
5723
5723
  },
5724
5724
  {
5725
+ "content": "Create Order",
5725
5726
  "variant": "h3",
5726
- "type": "typography",
5727
- "content": "Create Order"
5727
+ "type": "typography"
5728
5728
  }
5729
5729
  ]
5730
5730
  },
@@ -5732,15 +5732,15 @@
5732
5732
  "type": "divider"
5733
5733
  },
5734
5734
  {
5735
+ "type": "form-section",
5735
5736
  "fields": [
5736
5737
  "productName",
5737
5738
  "amount",
5738
5739
  "paymentStatus",
5739
5740
  "orderDate"
5740
5741
  ],
5741
- "mode": "create",
5742
5742
  "cancelEvent": "CLOSE",
5743
- "type": "form-section",
5743
+ "mode": "create",
5744
5744
  "submitEvent": "SAVE"
5745
5745
  }
5746
5746
  ]
@@ -6011,32 +6011,31 @@
6011
6011
  "fetch",
6012
6012
  "Order",
6013
6013
  {
6014
- "id": "@payload.id",
6015
6014
  "emit": {
6016
6015
  "success": "OrderLoaded",
6017
6016
  "failure": "OrderLoadFailed"
6018
- }
6017
+ },
6018
+ "id": "@payload.id"
6019
6019
  }
6020
6020
  ],
6021
6021
  [
6022
6022
  "render-ui",
6023
6023
  "modal",
6024
6024
  {
6025
- "type": "stack",
6026
6025
  "children": [
6027
6026
  {
6028
- "direction": "horizontal",
6029
- "type": "stack",
6030
6027
  "gap": "sm",
6028
+ "type": "stack",
6029
+ "direction": "horizontal",
6031
6030
  "children": [
6032
6031
  {
6033
- "type": "icon",
6034
- "name": "edit"
6032
+ "name": "edit",
6033
+ "type": "icon"
6035
6034
  },
6036
6035
  {
6037
- "variant": "h3",
6038
6036
  "type": "typography",
6039
- "content": "Edit Order"
6037
+ "content": "Edit Order",
6038
+ "variant": "h3"
6040
6039
  }
6041
6040
  ]
6042
6041
  },
@@ -6045,20 +6044,21 @@
6045
6044
  },
6046
6045
  {
6047
6046
  "cancelEvent": "CLOSE",
6048
- "entity": "@payload.row",
6047
+ "type": "form-section",
6049
6048
  "mode": "edit",
6050
6049
  "submitEvent": "SAVE",
6051
- "type": "form-section",
6052
6050
  "fields": [
6053
6051
  "productName",
6054
6052
  "amount",
6055
6053
  "paymentStatus",
6056
6054
  "orderDate"
6057
- ]
6055
+ ],
6056
+ "entity": "@payload.row"
6058
6057
  }
6059
6058
  ],
6060
- "gap": "md",
6061
- "direction": "vertical"
6059
+ "direction": "vertical",
6060
+ "type": "stack",
6061
+ "gap": "md"
6062
6062
  }
6063
6063
  ]
6064
6064
  ]
@@ -6270,8 +6270,8 @@
6270
6270
  "Order",
6271
6271
  {
6272
6272
  "emit": {
6273
- "failure": "OrderLoadFailed",
6274
- "success": "OrderLoaded"
6273
+ "success": "OrderLoaded",
6274
+ "failure": "OrderLoadFailed"
6275
6275
  }
6276
6276
  }
6277
6277
  ]
@@ -6286,11 +6286,11 @@
6286
6286
  "fetch",
6287
6287
  "Order",
6288
6288
  {
6289
+ "id": "@payload.id",
6289
6290
  "emit": {
6290
6291
  "failure": "OrderLoadFailed",
6291
6292
  "success": "OrderLoaded"
6292
- },
6293
- "id": "@payload.id"
6293
+ }
6294
6294
  }
6295
6295
  ],
6296
6296
  [
@@ -6303,26 +6303,28 @@
6303
6303
  "children": [
6304
6304
  {
6305
6305
  "type": "stack",
6306
- "direction": "horizontal",
6307
6306
  "gap": "sm",
6308
- "align": "center",
6309
6307
  "children": [
6310
6308
  {
6311
6309
  "name": "eye",
6312
6310
  "type": "icon"
6313
6311
  },
6314
6312
  {
6315
- "type": "typography",
6313
+ "content": "@entity.productName",
6316
6314
  "variant": "h3",
6317
- "content": "@entity.productName"
6315
+ "type": "typography"
6318
6316
  }
6319
- ]
6317
+ ],
6318
+ "direction": "horizontal",
6319
+ "align": "center"
6320
6320
  },
6321
6321
  {
6322
6322
  "type": "divider"
6323
6323
  },
6324
6324
  {
6325
6325
  "gap": "md",
6326
+ "type": "stack",
6327
+ "direction": "horizontal",
6326
6328
  "children": [
6327
6329
  {
6328
6330
  "content": "Product Name",
@@ -6334,21 +6336,19 @@
6334
6336
  "type": "typography",
6335
6337
  "variant": "body"
6336
6338
  }
6337
- ],
6338
- "type": "stack",
6339
- "direction": "horizontal"
6339
+ ]
6340
6340
  },
6341
6341
  {
6342
6342
  "gap": "md",
6343
6343
  "children": [
6344
6344
  {
6345
6345
  "type": "typography",
6346
- "content": "Amount",
6347
- "variant": "caption"
6346
+ "variant": "caption",
6347
+ "content": "Amount"
6348
6348
  },
6349
6349
  {
6350
- "content": "@entity.amount",
6351
6350
  "variant": "body",
6351
+ "content": "@entity.amount",
6352
6352
  "type": "typography"
6353
6353
  }
6354
6354
  ],
@@ -6356,62 +6356,62 @@
6356
6356
  "direction": "horizontal"
6357
6357
  },
6358
6358
  {
6359
+ "type": "stack",
6359
6360
  "children": [
6360
6361
  {
6361
- "type": "typography",
6362
+ "content": "Payment Status",
6362
6363
  "variant": "caption",
6363
- "content": "Payment Status"
6364
+ "type": "typography"
6364
6365
  },
6365
6366
  {
6366
- "content": "@entity.paymentStatus",
6367
6367
  "variant": "body",
6368
- "type": "typography"
6368
+ "type": "typography",
6369
+ "content": "@entity.paymentStatus"
6369
6370
  }
6370
6371
  ],
6371
- "gap": "md",
6372
- "type": "stack",
6373
- "direction": "horizontal"
6372
+ "direction": "horizontal",
6373
+ "gap": "md"
6374
6374
  },
6375
6375
  {
6376
+ "gap": "md",
6376
6377
  "children": [
6377
6378
  {
6378
- "type": "typography",
6379
+ "variant": "caption",
6379
6380
  "content": "Order Date",
6380
- "variant": "caption"
6381
+ "type": "typography"
6381
6382
  },
6382
6383
  {
6384
+ "content": "@entity.orderDate",
6383
6385
  "variant": "body",
6384
- "type": "typography",
6385
- "content": "@entity.orderDate"
6386
+ "type": "typography"
6386
6387
  }
6387
6388
  ],
6388
6389
  "type": "stack",
6389
- "gap": "md",
6390
6390
  "direction": "horizontal"
6391
6391
  },
6392
6392
  {
6393
6393
  "type": "divider"
6394
6394
  },
6395
6395
  {
6396
- "type": "stack",
6397
- "direction": "horizontal",
6398
6396
  "justify": "end",
6399
- "gap": "sm",
6400
6397
  "children": [
6401
6398
  {
6402
- "type": "button",
6403
6399
  "icon": "edit",
6404
6400
  "label": "Edit",
6405
6401
  "variant": "primary",
6406
- "action": "EDIT"
6402
+ "action": "EDIT",
6403
+ "type": "button"
6407
6404
  },
6408
6405
  {
6409
- "action": "CLOSE",
6410
6406
  "label": "Close",
6411
6407
  "variant": "ghost",
6412
- "type": "button"
6408
+ "type": "button",
6409
+ "action": "CLOSE"
6413
6410
  }
6414
- ]
6411
+ ],
6412
+ "direction": "horizontal",
6413
+ "gap": "sm",
6414
+ "type": "stack"
6415
6415
  }
6416
6416
  ]
6417
6417
  }
@@ -6635,8 +6635,8 @@
6635
6635
  "Order",
6636
6636
  {
6637
6637
  "emit": {
6638
- "failure": "OrderLoadFailed",
6639
- "success": "OrderLoaded"
6638
+ "success": "OrderLoaded",
6639
+ "failure": "OrderLoadFailed"
6640
6640
  }
6641
6641
  }
6642
6642
  ]
@@ -6656,11 +6656,11 @@
6656
6656
  "fetch",
6657
6657
  "Order",
6658
6658
  {
6659
+ "id": "@payload.id",
6659
6660
  "emit": {
6660
- "success": "OrderLoaded",
6661
- "failure": "OrderLoadFailed"
6662
- },
6663
- "id": "@payload.id"
6661
+ "failure": "OrderLoadFailed",
6662
+ "success": "OrderLoaded"
6663
+ }
6664
6664
  }
6665
6665
  ],
6666
6666
  [
@@ -6668,10 +6668,13 @@
6668
6668
  "modal",
6669
6669
  {
6670
6670
  "type": "stack",
6671
+ "direction": "vertical",
6672
+ "gap": "md",
6671
6673
  "children": [
6672
6674
  {
6673
6675
  "direction": "horizontal",
6674
- "type": "stack",
6676
+ "align": "center",
6677
+ "gap": "sm",
6675
6678
  "children": [
6676
6679
  {
6677
6680
  "name": "alert-triangle",
@@ -6679,45 +6682,42 @@
6679
6682
  },
6680
6683
  {
6681
6684
  "type": "typography",
6682
- "variant": "h3",
6683
- "content": "Delete Order"
6685
+ "content": "Delete Order",
6686
+ "variant": "h3"
6684
6687
  }
6685
6688
  ],
6686
- "align": "center",
6687
- "gap": "sm"
6689
+ "type": "stack"
6688
6690
  },
6689
6691
  {
6690
6692
  "type": "divider"
6691
6693
  },
6692
6694
  {
6693
6695
  "type": "alert",
6694
- "message": "This action cannot be undone.",
6695
- "variant": "error"
6696
+ "variant": "error",
6697
+ "message": "This action cannot be undone."
6696
6698
  },
6697
6699
  {
6698
- "gap": "sm",
6699
- "type": "stack",
6700
- "direction": "horizontal",
6701
- "justify": "end",
6702
6700
  "children": [
6703
6701
  {
6704
- "label": "Cancel",
6705
- "variant": "ghost",
6706
6702
  "type": "button",
6707
- "action": "CANCEL"
6703
+ "label": "Cancel",
6704
+ "action": "CANCEL",
6705
+ "variant": "ghost"
6708
6706
  },
6709
6707
  {
6710
- "type": "button",
6711
6708
  "variant": "danger",
6709
+ "type": "button",
6710
+ "label": "Delete",
6712
6711
  "icon": "check",
6713
- "action": "CONFIRM_DELETE",
6714
- "label": "Delete"
6712
+ "action": "CONFIRM_DELETE"
6715
6713
  }
6716
- ]
6714
+ ],
6715
+ "type": "stack",
6716
+ "justify": "end",
6717
+ "direction": "horizontal",
6718
+ "gap": "sm"
6717
6719
  }
6718
- ],
6719
- "direction": "vertical",
6720
- "gap": "md"
6720
+ ]
6721
6721
  }
6722
6722
  ]
6723
6723
  ]
@@ -6734,8 +6734,8 @@
6734
6734
  "@entity.pendingId",
6735
6735
  {
6736
6736
  "emit": {
6737
- "failure": "OrderDeleteFailed",
6738
- "success": "OrderDeleted"
6737
+ "success": "OrderDeleted",
6738
+ "failure": "OrderDeleteFailed"
6739
6739
  }
6740
6740
  }
6741
6741
  ],
@@ -6818,8 +6818,8 @@
6818
6818
  "Order",
6819
6819
  {
6820
6820
  "emit": {
6821
- "success": "OrderLoaded",
6822
- "failure": "OrderLoadFailed"
6821
+ "failure": "OrderLoadFailed",
6822
+ "success": "OrderLoaded"
6823
6823
  }
6824
6824
  }
6825
6825
  ]