@almadar/std 3.1.0 → 3.1.1

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