@almadar/std 3.1.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/behaviors/exports/atoms/std-async.orb +2 -1
  2. package/behaviors/exports/atoms/std-browse.orb +2 -1
  3. package/behaviors/exports/atoms/std-cache-aside.orb +2 -1
  4. package/behaviors/exports/atoms/std-circuit-breaker.orb +2 -1
  5. package/behaviors/exports/atoms/std-collision.orb +2 -1
  6. package/behaviors/exports/atoms/std-combat-log.orb +2 -1
  7. package/behaviors/exports/atoms/std-combat.orb +2 -1
  8. package/behaviors/exports/atoms/std-confirmation.orb +2 -1
  9. package/behaviors/exports/atoms/std-dialogue-box.orb +2 -1
  10. package/behaviors/exports/atoms/std-display.orb +2 -1
  11. package/behaviors/exports/atoms/std-drawer.orb +2 -1
  12. package/behaviors/exports/atoms/std-filter.orb +2 -1
  13. package/behaviors/exports/atoms/std-game-audio.orb +2 -1
  14. package/behaviors/exports/atoms/std-game-hud.orb +2 -1
  15. package/behaviors/exports/atoms/std-game-menu.orb +2 -1
  16. package/behaviors/exports/atoms/std-game-over-screen.orb +2 -1
  17. package/behaviors/exports/atoms/std-gameflow.orb +2 -1
  18. package/behaviors/exports/atoms/std-input.orb +2 -1
  19. package/behaviors/exports/atoms/std-inventory-panel.orb +2 -1
  20. package/behaviors/exports/atoms/std-isometric-canvas.orb +2 -1
  21. package/behaviors/exports/atoms/std-loading.orb +2 -1
  22. package/behaviors/exports/atoms/std-modal.orb +2 -1
  23. package/behaviors/exports/atoms/std-movement.orb +2 -1
  24. package/behaviors/exports/atoms/std-notification.orb +2 -1
  25. package/behaviors/exports/atoms/std-overworld.orb +2 -1
  26. package/behaviors/exports/atoms/std-pagination.orb +2 -1
  27. package/behaviors/exports/atoms/std-physics2d.orb +2 -1
  28. package/behaviors/exports/atoms/std-platformer-canvas.orb +2 -1
  29. package/behaviors/exports/atoms/std-quest.orb +2 -1
  30. package/behaviors/exports/atoms/std-rate-limiter.orb +2 -1
  31. package/behaviors/exports/atoms/std-score-board.orb +2 -1
  32. package/behaviors/exports/atoms/std-score.orb +2 -1
  33. package/behaviors/exports/atoms/std-search.orb +2 -1
  34. package/behaviors/exports/atoms/std-selection.orb +2 -1
  35. package/behaviors/exports/atoms/std-simulation-canvas.orb +2 -1
  36. package/behaviors/exports/atoms/std-sort.orb +2 -1
  37. package/behaviors/exports/atoms/std-sprite.orb +2 -1
  38. package/behaviors/exports/atoms/std-tabs.orb +2 -1
  39. package/behaviors/exports/atoms/std-timer.orb +2 -1
  40. package/behaviors/exports/atoms/std-undo.orb +2 -1
  41. package/behaviors/exports/atoms/std-wizard.orb +2 -1
  42. package/behaviors/exports/molecules/std-builder-game.orb +2 -1
  43. package/behaviors/exports/molecules/std-cart.orb +2 -1
  44. package/behaviors/exports/molecules/std-classifier-game.orb +2 -1
  45. package/behaviors/exports/molecules/std-debugger-game.orb +2 -1
  46. package/behaviors/exports/molecules/std-detail.orb +2 -1
  47. package/behaviors/exports/molecules/std-event-handler-game.orb +2 -1
  48. package/behaviors/exports/molecules/std-geospatial.orb +2 -1
  49. package/behaviors/exports/molecules/std-inventory.orb +2 -1
  50. package/behaviors/exports/molecules/std-list.orb +2 -1
  51. package/behaviors/exports/molecules/std-messaging.orb +2 -1
  52. package/behaviors/exports/molecules/std-negotiator-game.orb +2 -1
  53. package/behaviors/exports/molecules/std-platformer-game.orb +2 -1
  54. package/behaviors/exports/molecules/std-puzzle-game.orb +2 -1
  55. package/behaviors/exports/molecules/std-sequencer-game.orb +2 -1
  56. package/behaviors/exports/molecules/std-simulator-game.orb +2 -1
  57. package/behaviors/exports/molecules/std-turn-based-battle.orb +2 -1
  58. package/behaviors/exports/organisms/std-api-gateway.orb +2 -1
  59. package/behaviors/exports/organisms/std-arcade-game.orb +2 -1
  60. package/behaviors/exports/organisms/std-booking-system.orb +2 -1
  61. package/behaviors/exports/organisms/std-cicd-pipeline.orb +2 -1
  62. package/behaviors/exports/organisms/std-cms.orb +2 -1
  63. package/behaviors/exports/organisms/std-coding-academy.orb +2 -1
  64. package/behaviors/exports/organisms/std-crm.orb +2 -1
  65. package/behaviors/exports/organisms/std-devops-dashboard.orb +2 -1
  66. package/behaviors/exports/organisms/std-ecommerce.orb +2 -1
  67. package/behaviors/exports/organisms/std-finance-tracker.orb +2 -1
  68. package/behaviors/exports/organisms/std-healthcare.orb +2 -1
  69. package/behaviors/exports/organisms/std-helpdesk.orb +2 -1
  70. package/behaviors/exports/organisms/std-hr-portal.orb +2 -1
  71. package/behaviors/exports/organisms/std-iot-dashboard.orb +2 -1
  72. package/behaviors/exports/organisms/std-lms.orb +2 -1
  73. package/behaviors/exports/organisms/std-logic-training.orb +2 -1
  74. package/behaviors/exports/organisms/std-platformer-app.orb +2 -1
  75. package/behaviors/exports/organisms/std-project-manager.orb +2 -1
  76. package/behaviors/exports/organisms/std-puzzle-app.orb +2 -1
  77. package/behaviors/exports/organisms/std-realtime-chat.orb +2 -1
  78. package/behaviors/exports/organisms/std-rpg-game.orb +2 -1
  79. package/behaviors/exports/organisms/std-social-feed.orb +2 -1
  80. package/behaviors/exports/organisms/std-stem-lab.orb +2 -1
  81. package/behaviors/exports/organisms/std-strategy-game.orb +2 -1
  82. package/behaviors/exports/organisms/std-trading-dashboard.orb +2 -1
  83. package/dist/behaviors/exports/atoms/std-async.orb +421 -0
  84. package/dist/behaviors/exports/atoms/std-browse.orb +174 -0
  85. package/dist/behaviors/exports/atoms/std-cache-aside.orb +882 -0
  86. package/dist/behaviors/exports/atoms/std-circuit-breaker.orb +502 -0
  87. package/dist/behaviors/exports/atoms/std-collision.orb +617 -0
  88. package/dist/behaviors/exports/atoms/std-combat-log.orb +146 -0
  89. package/dist/behaviors/exports/atoms/std-combat.orb +411 -0
  90. package/dist/behaviors/exports/atoms/std-confirmation.orb +283 -0
  91. package/dist/behaviors/exports/atoms/std-dialogue-box.orb +239 -0
  92. package/dist/behaviors/exports/atoms/std-display.orb +843 -0
  93. package/dist/behaviors/exports/atoms/std-drawer.orb +317 -0
  94. package/dist/behaviors/exports/atoms/std-filter.orb +443 -0
  95. package/dist/behaviors/exports/atoms/std-game-audio.orb +114 -0
  96. package/dist/behaviors/exports/atoms/std-game-hud.orb +152 -0
  97. package/dist/behaviors/exports/atoms/std-game-menu.orb +212 -0
  98. package/dist/behaviors/exports/atoms/std-game-over-screen.orb +196 -0
  99. package/dist/behaviors/exports/atoms/std-gameflow.orb +319 -0
  100. package/dist/behaviors/exports/atoms/std-input.orb +630 -0
  101. package/dist/behaviors/exports/atoms/std-inventory-panel.orb +256 -0
  102. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +632 -0
  103. package/dist/behaviors/exports/atoms/std-loading.orb +512 -0
  104. package/dist/behaviors/exports/atoms/std-modal.orb +271 -0
  105. package/dist/behaviors/exports/atoms/std-movement.orb +1038 -0
  106. package/dist/behaviors/exports/atoms/std-notification.orb +419 -0
  107. package/dist/behaviors/exports/atoms/std-overworld.orb +484 -0
  108. package/dist/behaviors/exports/atoms/std-pagination.orb +332 -0
  109. package/dist/behaviors/exports/atoms/std-physics2d.orb +420 -0
  110. package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +258 -0
  111. package/dist/behaviors/exports/atoms/std-quest.orb +981 -0
  112. package/dist/behaviors/exports/atoms/std-rate-limiter.orb +639 -0
  113. package/dist/behaviors/exports/atoms/std-score-board.orb +239 -0
  114. package/dist/behaviors/exports/atoms/std-score.orb +467 -0
  115. package/dist/behaviors/exports/atoms/std-search.orb +374 -0
  116. package/dist/behaviors/exports/atoms/std-selection.orb +760 -0
  117. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +184 -0
  118. package/dist/behaviors/exports/atoms/std-sort.orb +579 -0
  119. package/dist/behaviors/exports/atoms/std-sprite.orb +157 -0
  120. package/dist/behaviors/exports/atoms/std-tabs.orb +275 -0
  121. package/dist/behaviors/exports/atoms/std-timer.orb +1031 -0
  122. package/dist/behaviors/exports/atoms/std-undo.orb +695 -0
  123. package/dist/behaviors/exports/atoms/std-wizard.orb +667 -0
  124. package/dist/behaviors/exports/molecules/std-builder-game.orb +184 -0
  125. package/dist/behaviors/exports/molecules/std-cart.orb +592 -0
  126. package/dist/behaviors/exports/molecules/std-classifier-game.orb +184 -0
  127. package/dist/behaviors/exports/molecules/std-debugger-game.orb +184 -0
  128. package/dist/behaviors/exports/molecules/std-detail.orb +590 -0
  129. package/dist/behaviors/exports/molecules/std-event-handler-game.orb +184 -0
  130. package/dist/behaviors/exports/molecules/std-geospatial.orb +650 -0
  131. package/dist/behaviors/exports/molecules/std-inventory.orb +854 -0
  132. package/dist/behaviors/exports/molecules/std-list.orb +955 -0
  133. package/dist/behaviors/exports/molecules/std-messaging.orb +586 -0
  134. package/dist/behaviors/exports/molecules/std-negotiator-game.orb +184 -0
  135. package/dist/behaviors/exports/molecules/std-platformer-game.orb +497 -0
  136. package/dist/behaviors/exports/molecules/std-puzzle-game.orb +528 -0
  137. package/dist/behaviors/exports/molecules/std-sequencer-game.orb +184 -0
  138. package/dist/behaviors/exports/molecules/std-simulator-game.orb +184 -0
  139. package/dist/behaviors/exports/molecules/std-turn-based-battle.orb +444 -0
  140. package/dist/behaviors/exports/organisms/std-api-gateway.orb +2297 -0
  141. package/dist/behaviors/exports/organisms/std-arcade-game.orb +834 -0
  142. package/dist/behaviors/exports/organisms/std-booking-system.orb +3978 -0
  143. package/dist/behaviors/exports/organisms/std-cicd-pipeline.orb +2215 -0
  144. package/dist/behaviors/exports/organisms/std-cms.orb +2645 -0
  145. package/dist/behaviors/exports/organisms/std-coding-academy.orb +1395 -0
  146. package/dist/behaviors/exports/organisms/std-crm.orb +3542 -0
  147. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +3135 -0
  148. package/dist/behaviors/exports/organisms/std-ecommerce.orb +3744 -0
  149. package/dist/behaviors/exports/organisms/std-finance-tracker.orb +2386 -0
  150. package/dist/behaviors/exports/organisms/std-healthcare.orb +4680 -0
  151. package/dist/behaviors/exports/organisms/std-helpdesk.orb +2565 -0
  152. package/dist/behaviors/exports/organisms/std-hr-portal.orb +4030 -0
  153. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +2298 -0
  154. package/dist/behaviors/exports/organisms/std-lms.orb +2855 -0
  155. package/dist/behaviors/exports/organisms/std-logic-training.orb +599 -0
  156. package/dist/behaviors/exports/organisms/std-platformer-app.orb +1570 -0
  157. package/dist/behaviors/exports/organisms/std-project-manager.orb +3022 -0
  158. package/dist/behaviors/exports/organisms/std-puzzle-app.orb +744 -0
  159. package/dist/behaviors/exports/organisms/std-realtime-chat.orb +2381 -0
  160. package/dist/behaviors/exports/organisms/std-rpg-game.orb +2805 -0
  161. package/dist/behaviors/exports/organisms/std-social-feed.orb +1222 -0
  162. package/dist/behaviors/exports/organisms/std-stem-lab.orb +1211 -0
  163. package/dist/behaviors/exports/organisms/std-strategy-game.orb +1762 -0
  164. package/dist/behaviors/exports/organisms/std-trading-dashboard.orb +2218 -0
  165. package/dist/behaviors/exports-reader.d.ts +2 -0
  166. package/dist/behaviors/exports-reader.js +5 -3
  167. package/dist/behaviors/exports-reader.js.map +1 -1
  168. package/dist/behaviors/index.js +5 -3
  169. package/dist/behaviors/index.js.map +1 -1
  170. package/dist/exports/atoms/std-async.orb +421 -0
  171. package/dist/exports/atoms/std-browse.orb +174 -0
  172. package/dist/exports/atoms/std-cache-aside.orb +882 -0
  173. package/dist/exports/atoms/std-circuit-breaker.orb +502 -0
  174. package/dist/exports/atoms/std-collision.orb +617 -0
  175. package/dist/exports/atoms/std-combat-log.orb +146 -0
  176. package/dist/exports/atoms/std-combat.orb +411 -0
  177. package/dist/exports/atoms/std-confirmation.orb +283 -0
  178. package/dist/exports/atoms/std-dialogue-box.orb +239 -0
  179. package/dist/exports/atoms/std-display.orb +843 -0
  180. package/dist/exports/atoms/std-drawer.orb +317 -0
  181. package/dist/exports/atoms/std-filter.orb +443 -0
  182. package/dist/exports/atoms/std-game-audio.orb +114 -0
  183. package/dist/exports/atoms/std-game-hud.orb +152 -0
  184. package/dist/exports/atoms/std-game-menu.orb +212 -0
  185. package/dist/exports/atoms/std-game-over-screen.orb +196 -0
  186. package/dist/exports/atoms/std-gameflow.orb +319 -0
  187. package/dist/exports/atoms/std-input.orb +630 -0
  188. package/dist/exports/atoms/std-inventory-panel.orb +256 -0
  189. package/dist/exports/atoms/std-isometric-canvas.orb +632 -0
  190. package/dist/exports/atoms/std-loading.orb +512 -0
  191. package/dist/exports/atoms/std-modal.orb +271 -0
  192. package/dist/exports/atoms/std-movement.orb +1038 -0
  193. package/dist/exports/atoms/std-notification.orb +419 -0
  194. package/dist/exports/atoms/std-overworld.orb +484 -0
  195. package/dist/exports/atoms/std-pagination.orb +332 -0
  196. package/dist/exports/atoms/std-physics2d.orb +420 -0
  197. package/dist/exports/atoms/std-platformer-canvas.orb +258 -0
  198. package/dist/exports/atoms/std-quest.orb +981 -0
  199. package/dist/exports/atoms/std-rate-limiter.orb +639 -0
  200. package/dist/exports/atoms/std-score-board.orb +239 -0
  201. package/dist/exports/atoms/std-score.orb +467 -0
  202. package/dist/exports/atoms/std-search.orb +374 -0
  203. package/dist/exports/atoms/std-selection.orb +760 -0
  204. package/dist/exports/atoms/std-simulation-canvas.orb +184 -0
  205. package/dist/exports/atoms/std-sort.orb +579 -0
  206. package/dist/exports/atoms/std-sprite.orb +157 -0
  207. package/dist/exports/atoms/std-tabs.orb +275 -0
  208. package/dist/exports/atoms/std-timer.orb +1031 -0
  209. package/dist/exports/atoms/std-undo.orb +695 -0
  210. package/dist/exports/atoms/std-wizard.orb +667 -0
  211. package/dist/exports/molecules/std-builder-game.orb +184 -0
  212. package/dist/exports/molecules/std-cart.orb +592 -0
  213. package/dist/exports/molecules/std-classifier-game.orb +184 -0
  214. package/dist/exports/molecules/std-debugger-game.orb +184 -0
  215. package/dist/exports/molecules/std-detail.orb +590 -0
  216. package/dist/exports/molecules/std-event-handler-game.orb +184 -0
  217. package/dist/exports/molecules/std-geospatial.orb +650 -0
  218. package/dist/exports/molecules/std-inventory.orb +854 -0
  219. package/dist/exports/molecules/std-list.orb +955 -0
  220. package/dist/exports/molecules/std-messaging.orb +586 -0
  221. package/dist/exports/molecules/std-negotiator-game.orb +184 -0
  222. package/dist/exports/molecules/std-platformer-game.orb +497 -0
  223. package/dist/exports/molecules/std-puzzle-game.orb +528 -0
  224. package/dist/exports/molecules/std-sequencer-game.orb +184 -0
  225. package/dist/exports/molecules/std-simulator-game.orb +184 -0
  226. package/dist/exports/molecules/std-turn-based-battle.orb +444 -0
  227. package/dist/exports/organisms/std-api-gateway.orb +2297 -0
  228. package/dist/exports/organisms/std-arcade-game.orb +834 -0
  229. package/dist/exports/organisms/std-booking-system.orb +3978 -0
  230. package/dist/exports/organisms/std-cicd-pipeline.orb +2215 -0
  231. package/dist/exports/organisms/std-cms.orb +2645 -0
  232. package/dist/exports/organisms/std-coding-academy.orb +1395 -0
  233. package/dist/exports/organisms/std-crm.orb +3542 -0
  234. package/dist/exports/organisms/std-devops-dashboard.orb +3135 -0
  235. package/dist/exports/organisms/std-ecommerce.orb +3744 -0
  236. package/dist/exports/organisms/std-finance-tracker.orb +2386 -0
  237. package/dist/exports/organisms/std-healthcare.orb +4680 -0
  238. package/dist/exports/organisms/std-helpdesk.orb +2565 -0
  239. package/dist/exports/organisms/std-hr-portal.orb +4030 -0
  240. package/dist/exports/organisms/std-iot-dashboard.orb +2298 -0
  241. package/dist/exports/organisms/std-lms.orb +2855 -0
  242. package/dist/exports/organisms/std-logic-training.orb +599 -0
  243. package/dist/exports/organisms/std-platformer-app.orb +1570 -0
  244. package/dist/exports/organisms/std-project-manager.orb +3022 -0
  245. package/dist/exports/organisms/std-puzzle-app.orb +744 -0
  246. package/dist/exports/organisms/std-realtime-chat.orb +2381 -0
  247. package/dist/exports/organisms/std-rpg-game.orb +2805 -0
  248. package/dist/exports/organisms/std-social-feed.orb +1222 -0
  249. package/dist/exports/organisms/std-stem-lab.orb +1211 -0
  250. package/dist/exports/organisms/std-strategy-game.orb +1762 -0
  251. package/dist/exports/organisms/std-trading-dashboard.orb +2218 -0
  252. package/dist/index.js +5 -3
  253. package/dist/index.js.map +1 -1
  254. package/package.json +1 -1
  255. package/behaviors/exports/atoms/std-game-canvas-2d.orb +0 -135
  256. package/behaviors/exports/atoms/std-game-canvas-3d.orb +0 -224
@@ -0,0 +1,2218 @@
1
+ {
2
+ "name": "Trading Dashboard",
3
+ "version": "1.0.0",
4
+ "orbitals": [
5
+ {
6
+ "name": "PortfolioOrbital",
7
+ "entity": {
8
+ "name": "Portfolio",
9
+ "persistence": "runtime",
10
+ "fields": [
11
+ {
12
+ "name": "id",
13
+ "type": "string",
14
+ "required": true
15
+ },
16
+ {
17
+ "name": "totalValue",
18
+ "type": "number",
19
+ "default": 0
20
+ },
21
+ {
22
+ "name": "dailyChange",
23
+ "type": "number",
24
+ "default": 0
25
+ },
26
+ {
27
+ "name": "positions",
28
+ "type": "number",
29
+ "default": 0
30
+ },
31
+ {
32
+ "name": "cashBalance",
33
+ "type": "number",
34
+ "default": 0
35
+ }
36
+ ]
37
+ },
38
+ "traits": [
39
+ {
40
+ "name": "PortfolioDisplay",
41
+ "linkedEntity": "Portfolio",
42
+ "category": "interaction",
43
+ "stateMachine": {
44
+ "states": [
45
+ {
46
+ "name": "loading",
47
+ "isInitial": true
48
+ },
49
+ {
50
+ "name": "displaying"
51
+ },
52
+ {
53
+ "name": "refreshing"
54
+ }
55
+ ],
56
+ "events": [
57
+ {
58
+ "key": "INIT",
59
+ "name": "Initialize"
60
+ },
61
+ {
62
+ "key": "LOADED",
63
+ "name": "Loaded"
64
+ },
65
+ {
66
+ "key": "REFRESH",
67
+ "name": "Refresh"
68
+ },
69
+ {
70
+ "key": "REFRESHED",
71
+ "name": "Refreshed"
72
+ }
73
+ ],
74
+ "transitions": [
75
+ {
76
+ "from": "loading",
77
+ "to": "displaying",
78
+ "event": "INIT",
79
+ "effects": [
80
+ [
81
+ "fetch",
82
+ "Portfolio"
83
+ ],
84
+ [
85
+ "render-ui",
86
+ "main",
87
+ {
88
+ "type": "stack",
89
+ "direction": "vertical",
90
+ "gap": "lg",
91
+ "children": [
92
+ {
93
+ "type": "stack",
94
+ "direction": "horizontal",
95
+ "gap": "md",
96
+ "justify": "space-between",
97
+ "children": [
98
+ {
99
+ "type": "stack",
100
+ "direction": "horizontal",
101
+ "gap": "md",
102
+ "children": [
103
+ {
104
+ "type": "icon",
105
+ "name": "trending-up",
106
+ "size": "lg"
107
+ },
108
+ {
109
+ "type": "typography",
110
+ "content": "Portfolio",
111
+ "variant": "h2"
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "type": "button",
117
+ "label": "Refresh",
118
+ "event": "REFRESH",
119
+ "variant": "secondary",
120
+ "icon": "refresh-cw"
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "type": "divider"
126
+ },
127
+ {
128
+ "type": "simple-grid",
129
+ "columns": 3,
130
+ "children": [
131
+ {
132
+ "type": "card",
133
+ "children": [
134
+ {
135
+ "type": "stack",
136
+ "direction": "vertical",
137
+ "gap": "sm",
138
+ "children": [
139
+ {
140
+ "type": "typography",
141
+ "variant": "caption",
142
+ "content": "TotalValue"
143
+ },
144
+ {
145
+ "type": "typography",
146
+ "variant": "h3",
147
+ "content": "@entity.totalValue"
148
+ }
149
+ ]
150
+ }
151
+ ]
152
+ },
153
+ {
154
+ "type": "card",
155
+ "children": [
156
+ {
157
+ "type": "stack",
158
+ "direction": "vertical",
159
+ "gap": "sm",
160
+ "children": [
161
+ {
162
+ "type": "typography",
163
+ "variant": "caption",
164
+ "content": "DailyChange"
165
+ },
166
+ {
167
+ "type": "typography",
168
+ "variant": "h3",
169
+ "content": "@entity.dailyChange"
170
+ }
171
+ ]
172
+ }
173
+ ]
174
+ },
175
+ {
176
+ "type": "card",
177
+ "children": [
178
+ {
179
+ "type": "stack",
180
+ "direction": "vertical",
181
+ "gap": "sm",
182
+ "children": [
183
+ {
184
+ "type": "typography",
185
+ "variant": "caption",
186
+ "content": "Positions"
187
+ },
188
+ {
189
+ "type": "typography",
190
+ "variant": "h3",
191
+ "content": "@entity.positions"
192
+ }
193
+ ]
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "type": "card",
199
+ "children": [
200
+ {
201
+ "type": "stack",
202
+ "direction": "vertical",
203
+ "gap": "sm",
204
+ "children": [
205
+ {
206
+ "type": "typography",
207
+ "variant": "caption",
208
+ "content": "CashBalance"
209
+ },
210
+ {
211
+ "type": "typography",
212
+ "variant": "h3",
213
+ "content": "@entity.cashBalance"
214
+ }
215
+ ]
216
+ }
217
+ ]
218
+ }
219
+ ]
220
+ }
221
+ ]
222
+ }
223
+ ]
224
+ ]
225
+ },
226
+ {
227
+ "from": "loading",
228
+ "to": "displaying",
229
+ "event": "LOADED",
230
+ "effects": [
231
+ [
232
+ "fetch",
233
+ "Portfolio"
234
+ ],
235
+ [
236
+ "render-ui",
237
+ "main",
238
+ {
239
+ "type": "stack",
240
+ "direction": "vertical",
241
+ "gap": "lg",
242
+ "children": [
243
+ {
244
+ "type": "stack",
245
+ "direction": "horizontal",
246
+ "gap": "md",
247
+ "justify": "space-between",
248
+ "children": [
249
+ {
250
+ "type": "stack",
251
+ "direction": "horizontal",
252
+ "gap": "md",
253
+ "children": [
254
+ {
255
+ "type": "icon",
256
+ "name": "trending-up",
257
+ "size": "lg"
258
+ },
259
+ {
260
+ "type": "typography",
261
+ "content": "Portfolio",
262
+ "variant": "h2"
263
+ }
264
+ ]
265
+ },
266
+ {
267
+ "type": "button",
268
+ "label": "Refresh",
269
+ "event": "REFRESH",
270
+ "variant": "secondary",
271
+ "icon": "refresh-cw"
272
+ }
273
+ ]
274
+ },
275
+ {
276
+ "type": "divider"
277
+ },
278
+ {
279
+ "type": "simple-grid",
280
+ "columns": 3,
281
+ "children": [
282
+ {
283
+ "type": "card",
284
+ "children": [
285
+ {
286
+ "type": "stack",
287
+ "direction": "vertical",
288
+ "gap": "sm",
289
+ "children": [
290
+ {
291
+ "type": "typography",
292
+ "variant": "caption",
293
+ "content": "TotalValue"
294
+ },
295
+ {
296
+ "type": "typography",
297
+ "variant": "h3",
298
+ "content": "@entity.totalValue"
299
+ }
300
+ ]
301
+ }
302
+ ]
303
+ },
304
+ {
305
+ "type": "card",
306
+ "children": [
307
+ {
308
+ "type": "stack",
309
+ "direction": "vertical",
310
+ "gap": "sm",
311
+ "children": [
312
+ {
313
+ "type": "typography",
314
+ "variant": "caption",
315
+ "content": "DailyChange"
316
+ },
317
+ {
318
+ "type": "typography",
319
+ "variant": "h3",
320
+ "content": "@entity.dailyChange"
321
+ }
322
+ ]
323
+ }
324
+ ]
325
+ },
326
+ {
327
+ "type": "card",
328
+ "children": [
329
+ {
330
+ "type": "stack",
331
+ "direction": "vertical",
332
+ "gap": "sm",
333
+ "children": [
334
+ {
335
+ "type": "typography",
336
+ "variant": "caption",
337
+ "content": "Positions"
338
+ },
339
+ {
340
+ "type": "typography",
341
+ "variant": "h3",
342
+ "content": "@entity.positions"
343
+ }
344
+ ]
345
+ }
346
+ ]
347
+ },
348
+ {
349
+ "type": "card",
350
+ "children": [
351
+ {
352
+ "type": "stack",
353
+ "direction": "vertical",
354
+ "gap": "sm",
355
+ "children": [
356
+ {
357
+ "type": "typography",
358
+ "variant": "caption",
359
+ "content": "CashBalance"
360
+ },
361
+ {
362
+ "type": "typography",
363
+ "variant": "h3",
364
+ "content": "@entity.cashBalance"
365
+ }
366
+ ]
367
+ }
368
+ ]
369
+ }
370
+ ]
371
+ }
372
+ ]
373
+ }
374
+ ]
375
+ ]
376
+ },
377
+ {
378
+ "from": "displaying",
379
+ "to": "displaying",
380
+ "event": "INIT",
381
+ "effects": [
382
+ [
383
+ "fetch",
384
+ "Portfolio"
385
+ ],
386
+ [
387
+ "render-ui",
388
+ "main",
389
+ {
390
+ "type": "stack",
391
+ "direction": "vertical",
392
+ "gap": "lg",
393
+ "children": [
394
+ {
395
+ "type": "stack",
396
+ "direction": "horizontal",
397
+ "gap": "md",
398
+ "justify": "space-between",
399
+ "children": [
400
+ {
401
+ "type": "stack",
402
+ "direction": "horizontal",
403
+ "gap": "md",
404
+ "children": [
405
+ {
406
+ "type": "icon",
407
+ "name": "trending-up",
408
+ "size": "lg"
409
+ },
410
+ {
411
+ "type": "typography",
412
+ "content": "Portfolio",
413
+ "variant": "h2"
414
+ }
415
+ ]
416
+ },
417
+ {
418
+ "type": "button",
419
+ "label": "Refresh",
420
+ "event": "REFRESH",
421
+ "variant": "secondary",
422
+ "icon": "refresh-cw"
423
+ }
424
+ ]
425
+ },
426
+ {
427
+ "type": "divider"
428
+ },
429
+ {
430
+ "type": "simple-grid",
431
+ "columns": 3,
432
+ "children": [
433
+ {
434
+ "type": "card",
435
+ "children": [
436
+ {
437
+ "type": "stack",
438
+ "direction": "vertical",
439
+ "gap": "sm",
440
+ "children": [
441
+ {
442
+ "type": "typography",
443
+ "variant": "caption",
444
+ "content": "TotalValue"
445
+ },
446
+ {
447
+ "type": "typography",
448
+ "variant": "h3",
449
+ "content": "@entity.totalValue"
450
+ }
451
+ ]
452
+ }
453
+ ]
454
+ },
455
+ {
456
+ "type": "card",
457
+ "children": [
458
+ {
459
+ "type": "stack",
460
+ "direction": "vertical",
461
+ "gap": "sm",
462
+ "children": [
463
+ {
464
+ "type": "typography",
465
+ "variant": "caption",
466
+ "content": "DailyChange"
467
+ },
468
+ {
469
+ "type": "typography",
470
+ "variant": "h3",
471
+ "content": "@entity.dailyChange"
472
+ }
473
+ ]
474
+ }
475
+ ]
476
+ },
477
+ {
478
+ "type": "card",
479
+ "children": [
480
+ {
481
+ "type": "stack",
482
+ "direction": "vertical",
483
+ "gap": "sm",
484
+ "children": [
485
+ {
486
+ "type": "typography",
487
+ "variant": "caption",
488
+ "content": "Positions"
489
+ },
490
+ {
491
+ "type": "typography",
492
+ "variant": "h3",
493
+ "content": "@entity.positions"
494
+ }
495
+ ]
496
+ }
497
+ ]
498
+ },
499
+ {
500
+ "type": "card",
501
+ "children": [
502
+ {
503
+ "type": "stack",
504
+ "direction": "vertical",
505
+ "gap": "sm",
506
+ "children": [
507
+ {
508
+ "type": "typography",
509
+ "variant": "caption",
510
+ "content": "CashBalance"
511
+ },
512
+ {
513
+ "type": "typography",
514
+ "variant": "h3",
515
+ "content": "@entity.cashBalance"
516
+ }
517
+ ]
518
+ }
519
+ ]
520
+ }
521
+ ]
522
+ }
523
+ ]
524
+ }
525
+ ]
526
+ ]
527
+ },
528
+ {
529
+ "from": "displaying",
530
+ "to": "refreshing",
531
+ "event": "REFRESH",
532
+ "effects": [
533
+ [
534
+ "fetch",
535
+ "Portfolio"
536
+ ],
537
+ [
538
+ "render-ui",
539
+ "main",
540
+ {
541
+ "type": "stack",
542
+ "direction": "vertical",
543
+ "gap": "lg",
544
+ "children": [
545
+ {
546
+ "type": "stack",
547
+ "direction": "horizontal",
548
+ "gap": "md",
549
+ "justify": "space-between",
550
+ "children": [
551
+ {
552
+ "type": "stack",
553
+ "direction": "horizontal",
554
+ "gap": "md",
555
+ "children": [
556
+ {
557
+ "type": "icon",
558
+ "name": "trending-up",
559
+ "size": "lg"
560
+ },
561
+ {
562
+ "type": "typography",
563
+ "content": "Portfolio",
564
+ "variant": "h2"
565
+ }
566
+ ]
567
+ },
568
+ {
569
+ "type": "button",
570
+ "label": "Refresh",
571
+ "event": "REFRESH",
572
+ "variant": "secondary",
573
+ "icon": "refresh-cw"
574
+ }
575
+ ]
576
+ },
577
+ {
578
+ "type": "divider"
579
+ },
580
+ {
581
+ "type": "simple-grid",
582
+ "columns": 3,
583
+ "children": [
584
+ {
585
+ "type": "card",
586
+ "children": [
587
+ {
588
+ "type": "stack",
589
+ "direction": "vertical",
590
+ "gap": "sm",
591
+ "children": [
592
+ {
593
+ "type": "typography",
594
+ "variant": "caption",
595
+ "content": "TotalValue"
596
+ },
597
+ {
598
+ "type": "typography",
599
+ "variant": "h3",
600
+ "content": "@entity.totalValue"
601
+ }
602
+ ]
603
+ }
604
+ ]
605
+ },
606
+ {
607
+ "type": "card",
608
+ "children": [
609
+ {
610
+ "type": "stack",
611
+ "direction": "vertical",
612
+ "gap": "sm",
613
+ "children": [
614
+ {
615
+ "type": "typography",
616
+ "variant": "caption",
617
+ "content": "DailyChange"
618
+ },
619
+ {
620
+ "type": "typography",
621
+ "variant": "h3",
622
+ "content": "@entity.dailyChange"
623
+ }
624
+ ]
625
+ }
626
+ ]
627
+ },
628
+ {
629
+ "type": "card",
630
+ "children": [
631
+ {
632
+ "type": "stack",
633
+ "direction": "vertical",
634
+ "gap": "sm",
635
+ "children": [
636
+ {
637
+ "type": "typography",
638
+ "variant": "caption",
639
+ "content": "Positions"
640
+ },
641
+ {
642
+ "type": "typography",
643
+ "variant": "h3",
644
+ "content": "@entity.positions"
645
+ }
646
+ ]
647
+ }
648
+ ]
649
+ },
650
+ {
651
+ "type": "card",
652
+ "children": [
653
+ {
654
+ "type": "stack",
655
+ "direction": "vertical",
656
+ "gap": "sm",
657
+ "children": [
658
+ {
659
+ "type": "typography",
660
+ "variant": "caption",
661
+ "content": "CashBalance"
662
+ },
663
+ {
664
+ "type": "typography",
665
+ "variant": "h3",
666
+ "content": "@entity.cashBalance"
667
+ }
668
+ ]
669
+ }
670
+ ]
671
+ }
672
+ ]
673
+ }
674
+ ]
675
+ }
676
+ ]
677
+ ]
678
+ },
679
+ {
680
+ "from": "refreshing",
681
+ "to": "displaying",
682
+ "event": "REFRESHED",
683
+ "effects": [
684
+ [
685
+ "fetch",
686
+ "Portfolio"
687
+ ],
688
+ [
689
+ "render-ui",
690
+ "main",
691
+ {
692
+ "type": "stack",
693
+ "direction": "vertical",
694
+ "gap": "lg",
695
+ "children": [
696
+ {
697
+ "type": "stack",
698
+ "direction": "horizontal",
699
+ "gap": "md",
700
+ "justify": "space-between",
701
+ "children": [
702
+ {
703
+ "type": "stack",
704
+ "direction": "horizontal",
705
+ "gap": "md",
706
+ "children": [
707
+ {
708
+ "type": "icon",
709
+ "name": "trending-up",
710
+ "size": "lg"
711
+ },
712
+ {
713
+ "type": "typography",
714
+ "content": "Portfolio",
715
+ "variant": "h2"
716
+ }
717
+ ]
718
+ },
719
+ {
720
+ "type": "button",
721
+ "label": "Refresh",
722
+ "event": "REFRESH",
723
+ "variant": "secondary",
724
+ "icon": "refresh-cw"
725
+ }
726
+ ]
727
+ },
728
+ {
729
+ "type": "divider"
730
+ },
731
+ {
732
+ "type": "simple-grid",
733
+ "columns": 3,
734
+ "children": [
735
+ {
736
+ "type": "card",
737
+ "children": [
738
+ {
739
+ "type": "stack",
740
+ "direction": "vertical",
741
+ "gap": "sm",
742
+ "children": [
743
+ {
744
+ "type": "typography",
745
+ "variant": "caption",
746
+ "content": "TotalValue"
747
+ },
748
+ {
749
+ "type": "typography",
750
+ "variant": "h3",
751
+ "content": "@entity.totalValue"
752
+ }
753
+ ]
754
+ }
755
+ ]
756
+ },
757
+ {
758
+ "type": "card",
759
+ "children": [
760
+ {
761
+ "type": "stack",
762
+ "direction": "vertical",
763
+ "gap": "sm",
764
+ "children": [
765
+ {
766
+ "type": "typography",
767
+ "variant": "caption",
768
+ "content": "DailyChange"
769
+ },
770
+ {
771
+ "type": "typography",
772
+ "variant": "h3",
773
+ "content": "@entity.dailyChange"
774
+ }
775
+ ]
776
+ }
777
+ ]
778
+ },
779
+ {
780
+ "type": "card",
781
+ "children": [
782
+ {
783
+ "type": "stack",
784
+ "direction": "vertical",
785
+ "gap": "sm",
786
+ "children": [
787
+ {
788
+ "type": "typography",
789
+ "variant": "caption",
790
+ "content": "Positions"
791
+ },
792
+ {
793
+ "type": "typography",
794
+ "variant": "h3",
795
+ "content": "@entity.positions"
796
+ }
797
+ ]
798
+ }
799
+ ]
800
+ },
801
+ {
802
+ "type": "card",
803
+ "children": [
804
+ {
805
+ "type": "stack",
806
+ "direction": "vertical",
807
+ "gap": "sm",
808
+ "children": [
809
+ {
810
+ "type": "typography",
811
+ "variant": "caption",
812
+ "content": "CashBalance"
813
+ },
814
+ {
815
+ "type": "typography",
816
+ "variant": "h3",
817
+ "content": "@entity.cashBalance"
818
+ }
819
+ ]
820
+ }
821
+ ]
822
+ }
823
+ ]
824
+ }
825
+ ]
826
+ }
827
+ ]
828
+ ]
829
+ }
830
+ ]
831
+ }
832
+ }
833
+ ],
834
+ "pages": [
835
+ {
836
+ "name": "PortfolioPage",
837
+ "path": "/portfolio",
838
+ "isInitial": true,
839
+ "traits": [
840
+ {
841
+ "ref": "PortfolioDisplay"
842
+ }
843
+ ]
844
+ }
845
+ ]
846
+ },
847
+ {
848
+ "name": "TradeOrderOrbital",
849
+ "entity": {
850
+ "name": "TradeOrder",
851
+ "persistence": "runtime",
852
+ "fields": [
853
+ {
854
+ "name": "id",
855
+ "type": "string",
856
+ "required": true
857
+ },
858
+ {
859
+ "name": "symbol",
860
+ "type": "string",
861
+ "required": true
862
+ },
863
+ {
864
+ "name": "side",
865
+ "type": "string",
866
+ "required": true
867
+ },
868
+ {
869
+ "name": "quantity",
870
+ "type": "number",
871
+ "required": true
872
+ },
873
+ {
874
+ "name": "price",
875
+ "type": "number"
876
+ }
877
+ ]
878
+ },
879
+ "traits": [
880
+ {
881
+ "name": "TradeOrderBrowse",
882
+ "linkedEntity": "TradeOrder",
883
+ "category": "interaction",
884
+ "listens": [
885
+ {
886
+ "event": "TRADE_ORDER_CREATED",
887
+ "triggers": "TRADE_ORDER_CREATED"
888
+ },
889
+ {
890
+ "event": "TRADE_ORDER_UPDATED",
891
+ "triggers": "TRADE_ORDER_UPDATED"
892
+ }
893
+ ],
894
+ "stateMachine": {
895
+ "states": [
896
+ {
897
+ "name": "browsing",
898
+ "isInitial": true
899
+ },
900
+ {
901
+ "name": "deleting"
902
+ }
903
+ ],
904
+ "events": [
905
+ {
906
+ "key": "INIT",
907
+ "name": "Initialize"
908
+ },
909
+ {
910
+ "key": "CREATE",
911
+ "name": "CREATE"
912
+ },
913
+ {
914
+ "key": "VIEW",
915
+ "name": "VIEW",
916
+ "payload": [
917
+ {
918
+ "name": "id",
919
+ "type": "string",
920
+ "required": true
921
+ }
922
+ ]
923
+ },
924
+ {
925
+ "key": "EDIT",
926
+ "name": "EDIT",
927
+ "payload": [
928
+ {
929
+ "name": "id",
930
+ "type": "string",
931
+ "required": true
932
+ }
933
+ ]
934
+ },
935
+ {
936
+ "key": "DELETE",
937
+ "name": "DELETE",
938
+ "payload": [
939
+ {
940
+ "name": "id",
941
+ "type": "string",
942
+ "required": true
943
+ }
944
+ ]
945
+ },
946
+ {
947
+ "key": "TRADE_ORDER_CREATED",
948
+ "name": "TRADE_ORDER_CREATED",
949
+ "payload": [
950
+ {
951
+ "name": "data",
952
+ "type": "object",
953
+ "required": true
954
+ }
955
+ ]
956
+ },
957
+ {
958
+ "key": "TRADE_ORDER_UPDATED",
959
+ "name": "TRADE_ORDER_UPDATED",
960
+ "payload": [
961
+ {
962
+ "name": "data",
963
+ "type": "object",
964
+ "required": true
965
+ }
966
+ ]
967
+ },
968
+ {
969
+ "key": "CONFIRM_DELETE",
970
+ "name": "Confirm Delete"
971
+ },
972
+ {
973
+ "key": "CANCEL",
974
+ "name": "Cancel"
975
+ },
976
+ {
977
+ "key": "CLOSE",
978
+ "name": "Close"
979
+ }
980
+ ],
981
+ "transitions": [
982
+ {
983
+ "from": "browsing",
984
+ "to": "browsing",
985
+ "event": "INIT",
986
+ "effects": [
987
+ [
988
+ "fetch",
989
+ "TradeOrder"
990
+ ],
991
+ [
992
+ "render-ui",
993
+ "main",
994
+ {
995
+ "type": "stack",
996
+ "direction": "vertical",
997
+ "gap": "lg",
998
+ "children": [
999
+ {
1000
+ "type": "stack",
1001
+ "direction": "horizontal",
1002
+ "gap": "md",
1003
+ "justify": "space-between",
1004
+ "children": [
1005
+ {
1006
+ "type": "stack",
1007
+ "direction": "horizontal",
1008
+ "gap": "sm",
1009
+ "align": "center",
1010
+ "children": [
1011
+ {
1012
+ "type": "icon",
1013
+ "name": "shopping-cart",
1014
+ "size": "lg"
1015
+ },
1016
+ {
1017
+ "type": "typography",
1018
+ "content": "Trade Orders",
1019
+ "variant": "h2"
1020
+ }
1021
+ ]
1022
+ },
1023
+ {
1024
+ "type": "stack",
1025
+ "direction": "horizontal",
1026
+ "gap": "sm",
1027
+ "children": [
1028
+ {
1029
+ "type": "button",
1030
+ "label": "Create TradeOrder",
1031
+ "event": "CREATE",
1032
+ "variant": "primary",
1033
+ "icon": "plus"
1034
+ }
1035
+ ]
1036
+ }
1037
+ ]
1038
+ },
1039
+ {
1040
+ "type": "divider"
1041
+ },
1042
+ {
1043
+ "type": "data-grid",
1044
+ "entity": "TradeOrder",
1045
+ "emptyIcon": "inbox",
1046
+ "emptyTitle": "No tradeorders yet",
1047
+ "emptyDescription": "Create your first tradeorder to get started.",
1048
+ "itemActions": [
1049
+ {
1050
+ "label": "View",
1051
+ "event": "VIEW"
1052
+ },
1053
+ {
1054
+ "label": "Edit",
1055
+ "event": "EDIT"
1056
+ },
1057
+ {
1058
+ "label": "Delete",
1059
+ "event": "DELETE",
1060
+ "variant": "danger"
1061
+ }
1062
+ ],
1063
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
1064
+ "children": [
1065
+ {
1066
+ "type": "stack",
1067
+ "direction": "vertical",
1068
+ "gap": "sm",
1069
+ "children": [
1070
+ {
1071
+ "type": "stack",
1072
+ "direction": "horizontal",
1073
+ "justify": "space-between",
1074
+ "align": "center",
1075
+ "children": [
1076
+ {
1077
+ "type": "stack",
1078
+ "direction": "horizontal",
1079
+ "gap": "sm",
1080
+ "align": "center",
1081
+ "children": [
1082
+ {
1083
+ "type": "icon",
1084
+ "name": "shopping-cart",
1085
+ "size": "sm"
1086
+ },
1087
+ {
1088
+ "type": "typography",
1089
+ "variant": "h4",
1090
+ "content": "@entity.symbol"
1091
+ }
1092
+ ]
1093
+ },
1094
+ {
1095
+ "type": "badge",
1096
+ "label": "@entity.side"
1097
+ }
1098
+ ]
1099
+ },
1100
+ {
1101
+ "type": "typography",
1102
+ "variant": "caption",
1103
+ "color": "muted",
1104
+ "content": "@entity.quantity"
1105
+ }
1106
+ ]
1107
+ }
1108
+ ]
1109
+ }
1110
+ ]
1111
+ }
1112
+ ]
1113
+ ]
1114
+ },
1115
+ {
1116
+ "from": "browsing",
1117
+ "to": "browsing",
1118
+ "event": "TRADE_ORDER_CREATED",
1119
+ "effects": [
1120
+ [
1121
+ "fetch",
1122
+ "TradeOrder"
1123
+ ]
1124
+ ]
1125
+ },
1126
+ {
1127
+ "from": "browsing",
1128
+ "to": "browsing",
1129
+ "event": "TRADE_ORDER_UPDATED",
1130
+ "effects": [
1131
+ [
1132
+ "fetch",
1133
+ "TradeOrder"
1134
+ ]
1135
+ ]
1136
+ },
1137
+ {
1138
+ "from": "browsing",
1139
+ "to": "deleting",
1140
+ "event": "DELETE",
1141
+ "effects": [
1142
+ [
1143
+ "fetch",
1144
+ "TradeOrder",
1145
+ "@payload.id"
1146
+ ],
1147
+ [
1148
+ "render-ui",
1149
+ "modal",
1150
+ {
1151
+ "type": "stack",
1152
+ "direction": "vertical",
1153
+ "gap": "md",
1154
+ "children": [
1155
+ {
1156
+ "type": "stack",
1157
+ "direction": "horizontal",
1158
+ "gap": "sm",
1159
+ "children": [
1160
+ {
1161
+ "type": "icon",
1162
+ "name": "trash-2",
1163
+ "size": "md"
1164
+ },
1165
+ {
1166
+ "type": "typography",
1167
+ "content": "Delete TradeOrder",
1168
+ "variant": "h3"
1169
+ }
1170
+ ]
1171
+ },
1172
+ {
1173
+ "type": "divider"
1174
+ },
1175
+ {
1176
+ "type": "typography",
1177
+ "content": "Are you sure you want to delete this tradeorder?",
1178
+ "variant": "body"
1179
+ },
1180
+ {
1181
+ "type": "stack",
1182
+ "direction": "horizontal",
1183
+ "gap": "sm",
1184
+ "justify": "end",
1185
+ "children": [
1186
+ {
1187
+ "type": "button",
1188
+ "label": "Cancel",
1189
+ "event": "CANCEL",
1190
+ "variant": "ghost"
1191
+ },
1192
+ {
1193
+ "type": "button",
1194
+ "label": "Delete",
1195
+ "event": "CONFIRM_DELETE",
1196
+ "variant": "danger",
1197
+ "icon": "trash"
1198
+ }
1199
+ ]
1200
+ }
1201
+ ]
1202
+ }
1203
+ ]
1204
+ ]
1205
+ },
1206
+ {
1207
+ "from": "deleting",
1208
+ "to": "browsing",
1209
+ "event": "CONFIRM_DELETE",
1210
+ "effects": [
1211
+ [
1212
+ "persist",
1213
+ "delete",
1214
+ "TradeOrder",
1215
+ "@entity.id"
1216
+ ],
1217
+ [
1218
+ "render-ui",
1219
+ "modal",
1220
+ null
1221
+ ],
1222
+ [
1223
+ "fetch",
1224
+ "TradeOrder"
1225
+ ],
1226
+ [
1227
+ "notify",
1228
+ "TradeOrder deleted successfully"
1229
+ ]
1230
+ ]
1231
+ },
1232
+ {
1233
+ "from": "deleting",
1234
+ "to": "browsing",
1235
+ "event": "CANCEL",
1236
+ "effects": [
1237
+ [
1238
+ "render-ui",
1239
+ "modal",
1240
+ null
1241
+ ]
1242
+ ]
1243
+ },
1244
+ {
1245
+ "from": "deleting",
1246
+ "to": "browsing",
1247
+ "event": "CLOSE",
1248
+ "effects": [
1249
+ [
1250
+ "render-ui",
1251
+ "modal",
1252
+ null
1253
+ ]
1254
+ ]
1255
+ }
1256
+ ]
1257
+ }
1258
+ },
1259
+ {
1260
+ "name": "TradeOrderCreate",
1261
+ "linkedEntity": "TradeOrder",
1262
+ "category": "interaction",
1263
+ "emits": [
1264
+ {
1265
+ "event": "TRADE_ORDER_CREATED"
1266
+ }
1267
+ ],
1268
+ "stateMachine": {
1269
+ "states": [
1270
+ {
1271
+ "name": "closed",
1272
+ "isInitial": true
1273
+ },
1274
+ {
1275
+ "name": "open"
1276
+ }
1277
+ ],
1278
+ "events": [
1279
+ {
1280
+ "key": "INIT",
1281
+ "name": "Initialize"
1282
+ },
1283
+ {
1284
+ "key": "CREATE",
1285
+ "name": "Open"
1286
+ },
1287
+ {
1288
+ "key": "CLOSE",
1289
+ "name": "Close"
1290
+ },
1291
+ {
1292
+ "key": "SAVE",
1293
+ "name": "Save",
1294
+ "payload": [
1295
+ {
1296
+ "name": "data",
1297
+ "type": "object",
1298
+ "required": true
1299
+ }
1300
+ ]
1301
+ }
1302
+ ],
1303
+ "transitions": [
1304
+ {
1305
+ "from": "closed",
1306
+ "to": "closed",
1307
+ "event": "INIT",
1308
+ "effects": [
1309
+ [
1310
+ "fetch",
1311
+ "TradeOrder"
1312
+ ]
1313
+ ]
1314
+ },
1315
+ {
1316
+ "from": "closed",
1317
+ "to": "open",
1318
+ "event": "CREATE",
1319
+ "effects": [
1320
+ [
1321
+ "fetch",
1322
+ "TradeOrder"
1323
+ ],
1324
+ [
1325
+ "render-ui",
1326
+ "modal",
1327
+ {
1328
+ "type": "stack",
1329
+ "direction": "vertical",
1330
+ "gap": "md",
1331
+ "children": [
1332
+ {
1333
+ "type": "stack",
1334
+ "direction": "horizontal",
1335
+ "gap": "sm",
1336
+ "children": [
1337
+ {
1338
+ "type": "icon",
1339
+ "name": "plus-circle",
1340
+ "size": "md"
1341
+ },
1342
+ {
1343
+ "type": "typography",
1344
+ "content": "Create TradeOrder",
1345
+ "variant": "h3"
1346
+ }
1347
+ ]
1348
+ },
1349
+ {
1350
+ "type": "divider"
1351
+ },
1352
+ {
1353
+ "type": "form-section",
1354
+ "entity": "TradeOrder",
1355
+ "mode": "create",
1356
+ "submitEvent": "SAVE",
1357
+ "cancelEvent": "CLOSE",
1358
+ "fields": [
1359
+ "symbol",
1360
+ "side",
1361
+ "quantity",
1362
+ "price"
1363
+ ]
1364
+ }
1365
+ ]
1366
+ }
1367
+ ]
1368
+ ]
1369
+ },
1370
+ {
1371
+ "from": "open",
1372
+ "to": "closed",
1373
+ "event": "CLOSE",
1374
+ "effects": [
1375
+ [
1376
+ "render-ui",
1377
+ "modal",
1378
+ null
1379
+ ]
1380
+ ]
1381
+ },
1382
+ {
1383
+ "from": "open",
1384
+ "to": "closed",
1385
+ "event": "SAVE",
1386
+ "effects": [
1387
+ [
1388
+ "persist",
1389
+ "create",
1390
+ "TradeOrder",
1391
+ "@payload.data"
1392
+ ],
1393
+ [
1394
+ "fetch",
1395
+ "TradeOrder"
1396
+ ],
1397
+ [
1398
+ "render-ui",
1399
+ "modal",
1400
+ null
1401
+ ],
1402
+ [
1403
+ "emit",
1404
+ "TRADE_ORDER_CREATED"
1405
+ ],
1406
+ [
1407
+ "notify",
1408
+ "TradeOrder created successfully"
1409
+ ]
1410
+ ]
1411
+ }
1412
+ ]
1413
+ }
1414
+ },
1415
+ {
1416
+ "name": "TradeOrderEdit",
1417
+ "linkedEntity": "TradeOrder",
1418
+ "category": "interaction",
1419
+ "emits": [
1420
+ {
1421
+ "event": "TRADE_ORDER_UPDATED"
1422
+ }
1423
+ ],
1424
+ "stateMachine": {
1425
+ "states": [
1426
+ {
1427
+ "name": "closed",
1428
+ "isInitial": true
1429
+ },
1430
+ {
1431
+ "name": "open"
1432
+ }
1433
+ ],
1434
+ "events": [
1435
+ {
1436
+ "key": "INIT",
1437
+ "name": "Initialize"
1438
+ },
1439
+ {
1440
+ "key": "EDIT",
1441
+ "name": "Open",
1442
+ "payload": [
1443
+ {
1444
+ "name": "id",
1445
+ "type": "string",
1446
+ "required": true
1447
+ }
1448
+ ]
1449
+ },
1450
+ {
1451
+ "key": "CLOSE",
1452
+ "name": "Close"
1453
+ },
1454
+ {
1455
+ "key": "SAVE",
1456
+ "name": "Save",
1457
+ "payload": [
1458
+ {
1459
+ "name": "data",
1460
+ "type": "object",
1461
+ "required": true
1462
+ }
1463
+ ]
1464
+ }
1465
+ ],
1466
+ "transitions": [
1467
+ {
1468
+ "from": "closed",
1469
+ "to": "closed",
1470
+ "event": "INIT",
1471
+ "effects": [
1472
+ [
1473
+ "fetch",
1474
+ "TradeOrder"
1475
+ ]
1476
+ ]
1477
+ },
1478
+ {
1479
+ "from": "closed",
1480
+ "to": "open",
1481
+ "event": "EDIT",
1482
+ "effects": [
1483
+ [
1484
+ "fetch",
1485
+ "TradeOrder",
1486
+ "@payload.id"
1487
+ ],
1488
+ [
1489
+ "render-ui",
1490
+ "modal",
1491
+ {
1492
+ "type": "stack",
1493
+ "direction": "vertical",
1494
+ "gap": "md",
1495
+ "children": [
1496
+ {
1497
+ "type": "stack",
1498
+ "direction": "horizontal",
1499
+ "gap": "sm",
1500
+ "children": [
1501
+ {
1502
+ "type": "icon",
1503
+ "name": "edit",
1504
+ "size": "md"
1505
+ },
1506
+ {
1507
+ "type": "typography",
1508
+ "content": "Edit TradeOrder",
1509
+ "variant": "h3"
1510
+ }
1511
+ ]
1512
+ },
1513
+ {
1514
+ "type": "divider"
1515
+ },
1516
+ {
1517
+ "type": "form-section",
1518
+ "entity": "TradeOrder",
1519
+ "mode": "edit",
1520
+ "submitEvent": "SAVE",
1521
+ "cancelEvent": "CLOSE",
1522
+ "fields": [
1523
+ "symbol",
1524
+ "side",
1525
+ "quantity",
1526
+ "price"
1527
+ ]
1528
+ }
1529
+ ]
1530
+ }
1531
+ ]
1532
+ ]
1533
+ },
1534
+ {
1535
+ "from": "open",
1536
+ "to": "closed",
1537
+ "event": "CLOSE",
1538
+ "effects": [
1539
+ [
1540
+ "render-ui",
1541
+ "modal",
1542
+ null
1543
+ ]
1544
+ ]
1545
+ },
1546
+ {
1547
+ "from": "open",
1548
+ "to": "closed",
1549
+ "event": "SAVE",
1550
+ "effects": [
1551
+ [
1552
+ "persist",
1553
+ "update",
1554
+ "TradeOrder",
1555
+ "@payload.data"
1556
+ ],
1557
+ [
1558
+ "fetch",
1559
+ "TradeOrder"
1560
+ ],
1561
+ [
1562
+ "render-ui",
1563
+ "modal",
1564
+ null
1565
+ ],
1566
+ [
1567
+ "emit",
1568
+ "TRADE_ORDER_UPDATED"
1569
+ ],
1570
+ [
1571
+ "notify",
1572
+ "TradeOrder updated successfully"
1573
+ ]
1574
+ ]
1575
+ }
1576
+ ]
1577
+ }
1578
+ },
1579
+ {
1580
+ "name": "TradeOrderView",
1581
+ "linkedEntity": "TradeOrder",
1582
+ "category": "interaction",
1583
+ "stateMachine": {
1584
+ "states": [
1585
+ {
1586
+ "name": "closed",
1587
+ "isInitial": true
1588
+ },
1589
+ {
1590
+ "name": "open"
1591
+ }
1592
+ ],
1593
+ "events": [
1594
+ {
1595
+ "key": "INIT",
1596
+ "name": "Initialize"
1597
+ },
1598
+ {
1599
+ "key": "VIEW",
1600
+ "name": "Open",
1601
+ "payload": [
1602
+ {
1603
+ "name": "id",
1604
+ "type": "string",
1605
+ "required": true
1606
+ }
1607
+ ]
1608
+ },
1609
+ {
1610
+ "key": "CLOSE",
1611
+ "name": "Close"
1612
+ }
1613
+ ],
1614
+ "transitions": [
1615
+ {
1616
+ "from": "closed",
1617
+ "to": "closed",
1618
+ "event": "INIT",
1619
+ "effects": [
1620
+ [
1621
+ "fetch",
1622
+ "TradeOrder"
1623
+ ]
1624
+ ]
1625
+ },
1626
+ {
1627
+ "from": "closed",
1628
+ "to": "open",
1629
+ "event": "VIEW",
1630
+ "effects": [
1631
+ [
1632
+ "fetch",
1633
+ "TradeOrder",
1634
+ "@payload.id"
1635
+ ],
1636
+ [
1637
+ "render-ui",
1638
+ "modal",
1639
+ {
1640
+ "type": "stack",
1641
+ "direction": "vertical",
1642
+ "gap": "md",
1643
+ "children": [
1644
+ {
1645
+ "type": "stack",
1646
+ "direction": "horizontal",
1647
+ "gap": "sm",
1648
+ "align": "center",
1649
+ "children": [
1650
+ {
1651
+ "type": "icon",
1652
+ "name": "eye",
1653
+ "size": "md"
1654
+ },
1655
+ {
1656
+ "type": "typography",
1657
+ "variant": "h3",
1658
+ "content": "@entity.symbol"
1659
+ }
1660
+ ]
1661
+ },
1662
+ {
1663
+ "type": "divider"
1664
+ },
1665
+ {
1666
+ "type": "stack",
1667
+ "direction": "horizontal",
1668
+ "gap": "md",
1669
+ "children": [
1670
+ {
1671
+ "type": "typography",
1672
+ "variant": "caption",
1673
+ "content": "Symbol"
1674
+ },
1675
+ {
1676
+ "type": "typography",
1677
+ "variant": "body",
1678
+ "content": "@entity.symbol"
1679
+ }
1680
+ ]
1681
+ },
1682
+ {
1683
+ "type": "stack",
1684
+ "direction": "horizontal",
1685
+ "gap": "md",
1686
+ "children": [
1687
+ {
1688
+ "type": "typography",
1689
+ "variant": "caption",
1690
+ "content": "Side"
1691
+ },
1692
+ {
1693
+ "type": "typography",
1694
+ "variant": "body",
1695
+ "content": "@entity.side"
1696
+ }
1697
+ ]
1698
+ },
1699
+ {
1700
+ "type": "stack",
1701
+ "direction": "horizontal",
1702
+ "gap": "md",
1703
+ "children": [
1704
+ {
1705
+ "type": "typography",
1706
+ "variant": "caption",
1707
+ "content": "Quantity"
1708
+ },
1709
+ {
1710
+ "type": "typography",
1711
+ "variant": "body",
1712
+ "content": "@entity.quantity"
1713
+ }
1714
+ ]
1715
+ },
1716
+ {
1717
+ "type": "stack",
1718
+ "direction": "horizontal",
1719
+ "gap": "md",
1720
+ "children": [
1721
+ {
1722
+ "type": "typography",
1723
+ "variant": "caption",
1724
+ "content": "Price"
1725
+ },
1726
+ {
1727
+ "type": "typography",
1728
+ "variant": "body",
1729
+ "content": "@entity.price"
1730
+ }
1731
+ ]
1732
+ },
1733
+ {
1734
+ "type": "divider"
1735
+ },
1736
+ {
1737
+ "type": "stack",
1738
+ "direction": "horizontal",
1739
+ "gap": "sm",
1740
+ "justify": "end",
1741
+ "children": [
1742
+ {
1743
+ "type": "button",
1744
+ "label": "Edit",
1745
+ "event": "EDIT",
1746
+ "variant": "primary",
1747
+ "icon": "edit"
1748
+ },
1749
+ {
1750
+ "type": "button",
1751
+ "label": "Close",
1752
+ "event": "CLOSE",
1753
+ "variant": "ghost"
1754
+ }
1755
+ ]
1756
+ }
1757
+ ]
1758
+ }
1759
+ ]
1760
+ ]
1761
+ },
1762
+ {
1763
+ "from": "open",
1764
+ "to": "closed",
1765
+ "event": "CLOSE",
1766
+ "effects": [
1767
+ [
1768
+ "render-ui",
1769
+ "modal",
1770
+ null
1771
+ ]
1772
+ ]
1773
+ }
1774
+ ]
1775
+ }
1776
+ }
1777
+ ],
1778
+ "pages": [
1779
+ {
1780
+ "name": "OrdersPage",
1781
+ "path": "/orders",
1782
+ "traits": [
1783
+ {
1784
+ "ref": "TradeOrderBrowse"
1785
+ },
1786
+ {
1787
+ "ref": "TradeOrderCreate"
1788
+ },
1789
+ {
1790
+ "ref": "TradeOrderEdit"
1791
+ },
1792
+ {
1793
+ "ref": "TradeOrderView"
1794
+ }
1795
+ ]
1796
+ }
1797
+ ]
1798
+ },
1799
+ {
1800
+ "name": "MarketFeedOrbital",
1801
+ "entity": {
1802
+ "name": "MarketFeed",
1803
+ "persistence": "runtime",
1804
+ "fields": [
1805
+ {
1806
+ "name": "id",
1807
+ "type": "string",
1808
+ "required": true
1809
+ },
1810
+ {
1811
+ "name": "symbol",
1812
+ "type": "string",
1813
+ "required": true
1814
+ },
1815
+ {
1816
+ "name": "price",
1817
+ "type": "number",
1818
+ "required": true
1819
+ },
1820
+ {
1821
+ "name": "change",
1822
+ "type": "number"
1823
+ },
1824
+ {
1825
+ "name": "volume",
1826
+ "type": "number"
1827
+ }
1828
+ ]
1829
+ },
1830
+ "traits": [
1831
+ {
1832
+ "name": "MarketFeedAsync",
1833
+ "linkedEntity": "MarketFeed",
1834
+ "category": "interaction",
1835
+ "stateMachine": {
1836
+ "states": [
1837
+ {
1838
+ "name": "idle",
1839
+ "isInitial": true
1840
+ },
1841
+ {
1842
+ "name": "loading"
1843
+ },
1844
+ {
1845
+ "name": "success"
1846
+ },
1847
+ {
1848
+ "name": "error"
1849
+ }
1850
+ ],
1851
+ "events": [
1852
+ {
1853
+ "key": "INIT",
1854
+ "name": "Initialize"
1855
+ },
1856
+ {
1857
+ "key": "START",
1858
+ "name": "Start"
1859
+ },
1860
+ {
1861
+ "key": "LOADED",
1862
+ "name": "Loaded",
1863
+ "payload": [
1864
+ {
1865
+ "name": "data",
1866
+ "type": "object",
1867
+ "required": true
1868
+ }
1869
+ ]
1870
+ },
1871
+ {
1872
+ "key": "FAILED",
1873
+ "name": "Failed",
1874
+ "payload": [
1875
+ {
1876
+ "name": "error",
1877
+ "type": "string",
1878
+ "required": true
1879
+ }
1880
+ ]
1881
+ },
1882
+ {
1883
+ "key": "RETRY",
1884
+ "name": "Retry"
1885
+ },
1886
+ {
1887
+ "key": "RESET",
1888
+ "name": "Reset"
1889
+ }
1890
+ ],
1891
+ "transitions": [
1892
+ {
1893
+ "from": "idle",
1894
+ "to": "idle",
1895
+ "event": "INIT",
1896
+ "effects": [
1897
+ [
1898
+ "fetch",
1899
+ "MarketFeed"
1900
+ ],
1901
+ [
1902
+ "render-ui",
1903
+ "main",
1904
+ {
1905
+ "type": "stack",
1906
+ "direction": "vertical",
1907
+ "gap": "lg",
1908
+ "align": "center",
1909
+ "children": [
1910
+ {
1911
+ "type": "stack",
1912
+ "direction": "horizontal",
1913
+ "gap": "md",
1914
+ "align": "center",
1915
+ "children": [
1916
+ {
1917
+ "type": "icon",
1918
+ "name": "activity",
1919
+ "size": "lg"
1920
+ },
1921
+ {
1922
+ "type": "typography",
1923
+ "content": "MarketFeed",
1924
+ "variant": "h2"
1925
+ }
1926
+ ]
1927
+ },
1928
+ {
1929
+ "type": "divider"
1930
+ },
1931
+ {
1932
+ "type": "button",
1933
+ "label": "Start",
1934
+ "event": "START",
1935
+ "variant": "primary",
1936
+ "icon": "play"
1937
+ }
1938
+ ]
1939
+ }
1940
+ ]
1941
+ ]
1942
+ },
1943
+ {
1944
+ "from": "idle",
1945
+ "to": "loading",
1946
+ "event": "START",
1947
+ "effects": [
1948
+ [
1949
+ "render-ui",
1950
+ "main",
1951
+ {
1952
+ "type": "stack",
1953
+ "direction": "vertical",
1954
+ "gap": "lg",
1955
+ "align": "center",
1956
+ "children": [
1957
+ {
1958
+ "type": "icon",
1959
+ "name": "loader",
1960
+ "size": "lg"
1961
+ },
1962
+ {
1963
+ "type": "typography",
1964
+ "content": "Connecting to market feed...",
1965
+ "variant": "h3"
1966
+ }
1967
+ ]
1968
+ }
1969
+ ]
1970
+ ]
1971
+ },
1972
+ {
1973
+ "from": "loading",
1974
+ "to": "success",
1975
+ "event": "LOADED",
1976
+ "effects": [
1977
+ [
1978
+ "persist",
1979
+ "create",
1980
+ "MarketFeed",
1981
+ "@payload.data"
1982
+ ],
1983
+ [
1984
+ "render-ui",
1985
+ "main",
1986
+ {
1987
+ "type": "stack",
1988
+ "direction": "vertical",
1989
+ "gap": "lg",
1990
+ "align": "center",
1991
+ "children": [
1992
+ {
1993
+ "type": "icon",
1994
+ "name": "check-circle",
1995
+ "size": "lg"
1996
+ },
1997
+ {
1998
+ "type": "typography",
1999
+ "content": "Market feed connected.",
2000
+ "variant": "h3"
2001
+ },
2002
+ {
2003
+ "type": "stack",
2004
+ "direction": "horizontal",
2005
+ "gap": "sm",
2006
+ "justify": "center",
2007
+ "children": [
2008
+ {
2009
+ "type": "button",
2010
+ "label": "Reset",
2011
+ "event": "RESET",
2012
+ "variant": "ghost",
2013
+ "icon": "rotate-ccw"
2014
+ }
2015
+ ]
2016
+ }
2017
+ ]
2018
+ }
2019
+ ],
2020
+ [
2021
+ "notify",
2022
+ "MarketFeed created successfully"
2023
+ ]
2024
+ ]
2025
+ },
2026
+ {
2027
+ "from": "loading",
2028
+ "to": "error",
2029
+ "event": "FAILED",
2030
+ "effects": [
2031
+ [
2032
+ "render-ui",
2033
+ "main",
2034
+ {
2035
+ "type": "stack",
2036
+ "direction": "vertical",
2037
+ "gap": "lg",
2038
+ "align": "center",
2039
+ "children": [
2040
+ {
2041
+ "type": "icon",
2042
+ "name": "alert-circle",
2043
+ "size": "lg"
2044
+ },
2045
+ {
2046
+ "type": "typography",
2047
+ "content": "Market feed disconnected.",
2048
+ "variant": "h3"
2049
+ },
2050
+ {
2051
+ "type": "stack",
2052
+ "direction": "horizontal",
2053
+ "gap": "sm",
2054
+ "justify": "center",
2055
+ "children": [
2056
+ {
2057
+ "type": "button",
2058
+ "label": "Retry",
2059
+ "event": "RETRY",
2060
+ "variant": "primary",
2061
+ "icon": "refresh-cw"
2062
+ },
2063
+ {
2064
+ "type": "button",
2065
+ "label": "Reset",
2066
+ "event": "RESET",
2067
+ "variant": "ghost",
2068
+ "icon": "rotate-ccw"
2069
+ }
2070
+ ]
2071
+ }
2072
+ ]
2073
+ }
2074
+ ]
2075
+ ]
2076
+ },
2077
+ {
2078
+ "from": "success",
2079
+ "to": "idle",
2080
+ "event": "RESET",
2081
+ "effects": [
2082
+ [
2083
+ "render-ui",
2084
+ "main",
2085
+ {
2086
+ "type": "stack",
2087
+ "direction": "vertical",
2088
+ "gap": "lg",
2089
+ "align": "center",
2090
+ "children": [
2091
+ {
2092
+ "type": "stack",
2093
+ "direction": "horizontal",
2094
+ "gap": "md",
2095
+ "align": "center",
2096
+ "children": [
2097
+ {
2098
+ "type": "icon",
2099
+ "name": "activity",
2100
+ "size": "lg"
2101
+ },
2102
+ {
2103
+ "type": "typography",
2104
+ "content": "MarketFeed",
2105
+ "variant": "h2"
2106
+ }
2107
+ ]
2108
+ },
2109
+ {
2110
+ "type": "divider"
2111
+ },
2112
+ {
2113
+ "type": "button",
2114
+ "label": "Start",
2115
+ "event": "START",
2116
+ "variant": "primary",
2117
+ "icon": "play"
2118
+ }
2119
+ ]
2120
+ }
2121
+ ]
2122
+ ]
2123
+ },
2124
+ {
2125
+ "from": "error",
2126
+ "to": "idle",
2127
+ "event": "RESET",
2128
+ "effects": [
2129
+ [
2130
+ "render-ui",
2131
+ "main",
2132
+ {
2133
+ "type": "stack",
2134
+ "direction": "vertical",
2135
+ "gap": "lg",
2136
+ "align": "center",
2137
+ "children": [
2138
+ {
2139
+ "type": "stack",
2140
+ "direction": "horizontal",
2141
+ "gap": "md",
2142
+ "align": "center",
2143
+ "children": [
2144
+ {
2145
+ "type": "icon",
2146
+ "name": "activity",
2147
+ "size": "lg"
2148
+ },
2149
+ {
2150
+ "type": "typography",
2151
+ "content": "MarketFeed",
2152
+ "variant": "h2"
2153
+ }
2154
+ ]
2155
+ },
2156
+ {
2157
+ "type": "divider"
2158
+ },
2159
+ {
2160
+ "type": "button",
2161
+ "label": "Start",
2162
+ "event": "START",
2163
+ "variant": "primary",
2164
+ "icon": "play"
2165
+ }
2166
+ ]
2167
+ }
2168
+ ]
2169
+ ]
2170
+ },
2171
+ {
2172
+ "from": "error",
2173
+ "to": "loading",
2174
+ "event": "RETRY",
2175
+ "effects": [
2176
+ [
2177
+ "render-ui",
2178
+ "main",
2179
+ {
2180
+ "type": "stack",
2181
+ "direction": "vertical",
2182
+ "gap": "lg",
2183
+ "align": "center",
2184
+ "children": [
2185
+ {
2186
+ "type": "icon",
2187
+ "name": "loader",
2188
+ "size": "lg"
2189
+ },
2190
+ {
2191
+ "type": "typography",
2192
+ "content": "Connecting to market feed...",
2193
+ "variant": "h3"
2194
+ }
2195
+ ]
2196
+ }
2197
+ ]
2198
+ ]
2199
+ }
2200
+ ]
2201
+ }
2202
+ }
2203
+ ],
2204
+ "pages": [
2205
+ {
2206
+ "name": "MarketPage",
2207
+ "path": "/market",
2208
+ "traits": [
2209
+ {
2210
+ "ref": "MarketFeedAsync"
2211
+ }
2212
+ ]
2213
+ }
2214
+ ]
2215
+ }
2216
+ ],
2217
+ "description": "Trading dashboard organism. Composes: stdDisplay(Portfolio) + stdList(TradeOrder) + stdAsync(MarketFeed) Pages: /portfolio (initial), /orders, /market"
2218
+ }