@almadar/std 3.2.1 → 3.2.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 (262) hide show
  1. package/behaviors/exports/atoms/std-async.orb +41 -24
  2. package/behaviors/exports/atoms/std-browse.orb +12 -5
  3. package/behaviors/exports/atoms/std-cache-aside.orb +256 -42
  4. package/behaviors/exports/atoms/std-circuit-breaker.orb +577 -97
  5. package/behaviors/exports/atoms/std-collision.orb +278 -206
  6. package/behaviors/exports/atoms/std-combat-log.orb +6 -1
  7. package/behaviors/exports/atoms/std-combat.orb +6 -1
  8. package/behaviors/exports/atoms/std-confirmation.orb +212 -7
  9. package/behaviors/exports/atoms/std-dialogue-box.orb +6 -1
  10. package/behaviors/exports/atoms/std-display.orb +166 -21
  11. package/behaviors/exports/atoms/std-drawer.orb +208 -104
  12. package/behaviors/exports/atoms/std-filter.orb +211 -18
  13. package/behaviors/exports/atoms/std-game-audio.orb +6 -1
  14. package/behaviors/exports/atoms/std-game-canvas2d.orb +6 -1
  15. package/behaviors/exports/atoms/std-game-canvas3d.orb +6 -1
  16. package/behaviors/exports/atoms/std-game-hud.orb +6 -1
  17. package/behaviors/exports/atoms/std-game-menu.orb +6 -1
  18. package/behaviors/exports/atoms/std-game-over-screen.orb +6 -1
  19. package/behaviors/exports/atoms/std-gameflow.orb +100 -5
  20. package/behaviors/exports/atoms/std-input.orb +142 -137
  21. package/behaviors/exports/atoms/std-inventory-panel.orb +6 -1
  22. package/behaviors/exports/atoms/std-isometric-canvas.orb +6 -1
  23. package/behaviors/exports/atoms/std-loading.orb +27 -76
  24. package/behaviors/exports/atoms/std-modal.orb +177 -93
  25. package/behaviors/exports/atoms/std-movement.orb +401 -31
  26. package/behaviors/exports/atoms/std-notification.orb +46 -95
  27. package/behaviors/exports/atoms/std-overworld.orb +44 -16
  28. package/behaviors/exports/atoms/std-pagination.orb +26 -89
  29. package/behaviors/exports/atoms/std-physics2d.orb +6 -1
  30. package/behaviors/exports/atoms/std-platformer-canvas.orb +6 -1
  31. package/behaviors/exports/atoms/std-quest.orb +309 -34
  32. package/behaviors/exports/atoms/std-rate-limiter.orb +410 -157
  33. package/behaviors/exports/atoms/std-score-board.orb +6 -1
  34. package/behaviors/exports/atoms/std-score.orb +211 -11
  35. package/behaviors/exports/atoms/std-search.orb +28 -27
  36. package/behaviors/exports/atoms/std-selection.orb +160 -121
  37. package/behaviors/exports/atoms/std-simulation-canvas.orb +6 -1
  38. package/behaviors/exports/atoms/std-sort.orb +134 -24
  39. package/behaviors/exports/atoms/std-sprite.orb +6 -1
  40. package/behaviors/exports/atoms/std-tabs.orb +25 -15
  41. package/behaviors/exports/atoms/std-timer.orb +483 -91
  42. package/behaviors/exports/atoms/std-undo.orb +211 -81
  43. package/behaviors/exports/atoms/std-wizard.orb +31 -34
  44. package/behaviors/exports/molecules/std-builder-game.orb +6 -1
  45. package/behaviors/exports/molecules/std-cart.orb +6 -1
  46. package/behaviors/exports/molecules/std-classifier-game.orb +6 -1
  47. package/behaviors/exports/molecules/std-debugger-game.orb +6 -1
  48. package/behaviors/exports/molecules/std-detail.orb +12 -5
  49. package/behaviors/exports/molecules/std-event-handler-game.orb +6 -1
  50. package/behaviors/exports/molecules/std-geospatial.orb +28 -9
  51. package/behaviors/exports/molecules/std-inventory.orb +28 -9
  52. package/behaviors/exports/molecules/std-list.orb +392 -5
  53. package/behaviors/exports/molecules/std-messaging.orb +12 -5
  54. package/behaviors/exports/molecules/std-negotiator-game.orb +6 -1
  55. package/behaviors/exports/molecules/std-platformer-game.orb +40 -1
  56. package/behaviors/exports/molecules/std-puzzle-game.orb +26 -1
  57. package/behaviors/exports/molecules/std-sequencer-game.orb +6 -1
  58. package/behaviors/exports/molecules/std-simulator-game.orb +6 -1
  59. package/behaviors/exports/molecules/std-turn-based-battle.orb +40 -1
  60. package/behaviors/exports/organisms/std-api-gateway.orb +1145 -403
  61. package/behaviors/exports/organisms/std-arcade-game.orb +94 -4
  62. package/behaviors/exports/organisms/std-booking-system.orb +2165 -1605
  63. package/behaviors/exports/organisms/std-cicd-pipeline.orb +581 -47
  64. package/behaviors/exports/organisms/std-cms.orb +1713 -947
  65. package/behaviors/exports/organisms/std-coding-academy.orb +180 -380
  66. package/behaviors/exports/organisms/std-crm.orb +1669 -1153
  67. package/behaviors/exports/organisms/std-devops-dashboard.orb +1430 -378
  68. package/behaviors/exports/organisms/std-ecommerce.orb +2361 -1601
  69. package/behaviors/exports/organisms/std-finance-tracker.orb +622 -438
  70. package/behaviors/exports/organisms/std-healthcare.orb +1687 -1125
  71. package/behaviors/exports/organisms/std-helpdesk.orb +626 -407
  72. package/behaviors/exports/organisms/std-hr-portal.orb +1309 -714
  73. package/behaviors/exports/organisms/std-iot-dashboard.orb +1247 -335
  74. package/behaviors/exports/organisms/std-lms.orb +658 -362
  75. package/behaviors/exports/organisms/std-platformer-app.orb +56 -8
  76. package/behaviors/exports/organisms/std-project-manager.orb +1697 -1183
  77. package/behaviors/exports/organisms/std-puzzle-app.orb +20 -0
  78. package/behaviors/exports/organisms/std-realtime-chat.orb +552 -28
  79. package/behaviors/exports/organisms/std-rpg-game.orb +397 -56
  80. package/behaviors/exports/organisms/std-social-feed.orb +12 -8
  81. package/behaviors/exports/organisms/std-stem-lab.orb +175 -290
  82. package/behaviors/exports/organisms/std-strategy-game.orb +252 -395
  83. package/behaviors/exports/organisms/std-trading-dashboard.orb +718 -524
  84. package/behaviors/exports/validation-report.json +252 -252
  85. package/behaviors/exports/verify-results.json +13 -0
  86. package/dist/behaviors/exports/atoms/std-async.orb +41 -24
  87. package/dist/behaviors/exports/atoms/std-browse.orb +12 -5
  88. package/dist/behaviors/exports/atoms/std-cache-aside.orb +256 -42
  89. package/dist/behaviors/exports/atoms/std-circuit-breaker.orb +577 -97
  90. package/dist/behaviors/exports/atoms/std-collision.orb +278 -206
  91. package/dist/behaviors/exports/atoms/std-combat-log.orb +6 -1
  92. package/dist/behaviors/exports/atoms/std-combat.orb +6 -1
  93. package/dist/behaviors/exports/atoms/std-confirmation.orb +212 -7
  94. package/dist/behaviors/exports/atoms/std-dialogue-box.orb +6 -1
  95. package/dist/behaviors/exports/atoms/std-display.orb +166 -21
  96. package/dist/behaviors/exports/atoms/std-drawer.orb +208 -104
  97. package/dist/behaviors/exports/atoms/std-filter.orb +211 -18
  98. package/dist/behaviors/exports/atoms/std-game-audio.orb +6 -1
  99. package/dist/behaviors/exports/atoms/std-game-canvas2d.orb +6 -1
  100. package/dist/behaviors/exports/atoms/std-game-canvas3d.orb +6 -1
  101. package/dist/behaviors/exports/atoms/std-game-hud.orb +6 -1
  102. package/dist/behaviors/exports/atoms/std-game-menu.orb +6 -1
  103. package/dist/behaviors/exports/atoms/std-game-over-screen.orb +6 -1
  104. package/dist/behaviors/exports/atoms/std-gameflow.orb +100 -5
  105. package/dist/behaviors/exports/atoms/std-input.orb +142 -137
  106. package/dist/behaviors/exports/atoms/std-inventory-panel.orb +6 -1
  107. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +6 -1
  108. package/dist/behaviors/exports/atoms/std-loading.orb +27 -76
  109. package/dist/behaviors/exports/atoms/std-modal.orb +177 -93
  110. package/dist/behaviors/exports/atoms/std-movement.orb +401 -31
  111. package/dist/behaviors/exports/atoms/std-notification.orb +46 -95
  112. package/dist/behaviors/exports/atoms/std-overworld.orb +44 -16
  113. package/dist/behaviors/exports/atoms/std-pagination.orb +26 -89
  114. package/dist/behaviors/exports/atoms/std-physics2d.orb +6 -1
  115. package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +6 -1
  116. package/dist/behaviors/exports/atoms/std-quest.orb +309 -34
  117. package/dist/behaviors/exports/atoms/std-rate-limiter.orb +410 -157
  118. package/dist/behaviors/exports/atoms/std-score-board.orb +6 -1
  119. package/dist/behaviors/exports/atoms/std-score.orb +211 -11
  120. package/dist/behaviors/exports/atoms/std-search.orb +28 -27
  121. package/dist/behaviors/exports/atoms/std-selection.orb +160 -121
  122. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +6 -1
  123. package/dist/behaviors/exports/atoms/std-sort.orb +134 -24
  124. package/dist/behaviors/exports/atoms/std-sprite.orb +6 -1
  125. package/dist/behaviors/exports/atoms/std-tabs.orb +25 -15
  126. package/dist/behaviors/exports/atoms/std-timer.orb +483 -91
  127. package/dist/behaviors/exports/atoms/std-undo.orb +211 -81
  128. package/dist/behaviors/exports/atoms/std-wizard.orb +31 -34
  129. package/dist/behaviors/exports/molecules/std-builder-game.orb +6 -1
  130. package/dist/behaviors/exports/molecules/std-cart.orb +6 -1
  131. package/dist/behaviors/exports/molecules/std-classifier-game.orb +6 -1
  132. package/dist/behaviors/exports/molecules/std-debugger-game.orb +6 -1
  133. package/dist/behaviors/exports/molecules/std-detail.orb +12 -5
  134. package/dist/behaviors/exports/molecules/std-event-handler-game.orb +6 -1
  135. package/dist/behaviors/exports/molecules/std-geospatial.orb +28 -9
  136. package/dist/behaviors/exports/molecules/std-inventory.orb +28 -9
  137. package/dist/behaviors/exports/molecules/std-list.orb +392 -5
  138. package/dist/behaviors/exports/molecules/std-messaging.orb +12 -5
  139. package/dist/behaviors/exports/molecules/std-negotiator-game.orb +6 -1
  140. package/dist/behaviors/exports/molecules/std-platformer-game.orb +40 -1
  141. package/dist/behaviors/exports/molecules/std-puzzle-game.orb +26 -1
  142. package/dist/behaviors/exports/molecules/std-sequencer-game.orb +6 -1
  143. package/dist/behaviors/exports/molecules/std-simulator-game.orb +6 -1
  144. package/dist/behaviors/exports/molecules/std-turn-based-battle.orb +40 -1
  145. package/dist/behaviors/exports/organisms/std-api-gateway.orb +1145 -403
  146. package/dist/behaviors/exports/organisms/std-arcade-game.orb +94 -4
  147. package/dist/behaviors/exports/organisms/std-booking-system.orb +2165 -1605
  148. package/dist/behaviors/exports/organisms/std-cicd-pipeline.orb +581 -47
  149. package/dist/behaviors/exports/organisms/std-cms.orb +1713 -947
  150. package/dist/behaviors/exports/organisms/std-coding-academy.orb +180 -380
  151. package/dist/behaviors/exports/organisms/std-crm.orb +1669 -1153
  152. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +1430 -378
  153. package/dist/behaviors/exports/organisms/std-ecommerce.orb +2361 -1601
  154. package/dist/behaviors/exports/organisms/std-finance-tracker.orb +622 -438
  155. package/dist/behaviors/exports/organisms/std-healthcare.orb +1687 -1125
  156. package/dist/behaviors/exports/organisms/std-helpdesk.orb +626 -407
  157. package/dist/behaviors/exports/organisms/std-hr-portal.orb +1309 -714
  158. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +1247 -335
  159. package/dist/behaviors/exports/organisms/std-lms.orb +658 -362
  160. package/dist/behaviors/exports/organisms/std-platformer-app.orb +56 -8
  161. package/dist/behaviors/exports/organisms/std-project-manager.orb +1697 -1183
  162. package/dist/behaviors/exports/organisms/std-puzzle-app.orb +20 -0
  163. package/dist/behaviors/exports/organisms/std-realtime-chat.orb +552 -28
  164. package/dist/behaviors/exports/organisms/std-rpg-game.orb +397 -56
  165. package/dist/behaviors/exports/organisms/std-social-feed.orb +12 -8
  166. package/dist/behaviors/exports/organisms/std-stem-lab.orb +175 -290
  167. package/dist/behaviors/exports/organisms/std-strategy-game.orb +252 -395
  168. package/dist/behaviors/exports/organisms/std-trading-dashboard.orb +718 -524
  169. package/dist/behaviors/exports/validation-report.json +252 -252
  170. package/dist/behaviors/exports/verify-results.json +13 -0
  171. package/dist/behaviors/functions/index.js +715 -593
  172. package/dist/behaviors/functions/index.js.map +1 -1
  173. package/dist/behaviors/index.js +715 -593
  174. package/dist/behaviors/index.js.map +1 -1
  175. package/dist/exports/atoms/std-async.orb +41 -24
  176. package/dist/exports/atoms/std-browse.orb +12 -5
  177. package/dist/exports/atoms/std-cache-aside.orb +256 -42
  178. package/dist/exports/atoms/std-circuit-breaker.orb +577 -97
  179. package/dist/exports/atoms/std-collision.orb +278 -206
  180. package/dist/exports/atoms/std-combat-log.orb +6 -1
  181. package/dist/exports/atoms/std-combat.orb +6 -1
  182. package/dist/exports/atoms/std-confirmation.orb +212 -7
  183. package/dist/exports/atoms/std-dialogue-box.orb +6 -1
  184. package/dist/exports/atoms/std-display.orb +166 -21
  185. package/dist/exports/atoms/std-drawer.orb +208 -104
  186. package/dist/exports/atoms/std-filter.orb +211 -18
  187. package/dist/exports/atoms/std-game-audio.orb +6 -1
  188. package/dist/exports/atoms/std-game-canvas2d.orb +6 -1
  189. package/dist/exports/atoms/std-game-canvas3d.orb +6 -1
  190. package/dist/exports/atoms/std-game-hud.orb +6 -1
  191. package/dist/exports/atoms/std-game-menu.orb +6 -1
  192. package/dist/exports/atoms/std-game-over-screen.orb +6 -1
  193. package/dist/exports/atoms/std-gameflow.orb +100 -5
  194. package/dist/exports/atoms/std-input.orb +142 -137
  195. package/dist/exports/atoms/std-inventory-panel.orb +6 -1
  196. package/dist/exports/atoms/std-isometric-canvas.orb +6 -1
  197. package/dist/exports/atoms/std-loading.orb +27 -76
  198. package/dist/exports/atoms/std-modal.orb +177 -93
  199. package/dist/exports/atoms/std-movement.orb +401 -31
  200. package/dist/exports/atoms/std-notification.orb +46 -95
  201. package/dist/exports/atoms/std-overworld.orb +44 -16
  202. package/dist/exports/atoms/std-pagination.orb +26 -89
  203. package/dist/exports/atoms/std-physics2d.orb +6 -1
  204. package/dist/exports/atoms/std-platformer-canvas.orb +6 -1
  205. package/dist/exports/atoms/std-quest.orb +309 -34
  206. package/dist/exports/atoms/std-rate-limiter.orb +410 -157
  207. package/dist/exports/atoms/std-score-board.orb +6 -1
  208. package/dist/exports/atoms/std-score.orb +211 -11
  209. package/dist/exports/atoms/std-search.orb +28 -27
  210. package/dist/exports/atoms/std-selection.orb +160 -121
  211. package/dist/exports/atoms/std-simulation-canvas.orb +6 -1
  212. package/dist/exports/atoms/std-sort.orb +134 -24
  213. package/dist/exports/atoms/std-sprite.orb +6 -1
  214. package/dist/exports/atoms/std-tabs.orb +25 -15
  215. package/dist/exports/atoms/std-timer.orb +483 -91
  216. package/dist/exports/atoms/std-undo.orb +211 -81
  217. package/dist/exports/atoms/std-wizard.orb +31 -34
  218. package/dist/exports/molecules/std-builder-game.orb +6 -1
  219. package/dist/exports/molecules/std-cart.orb +6 -1
  220. package/dist/exports/molecules/std-classifier-game.orb +6 -1
  221. package/dist/exports/molecules/std-debugger-game.orb +6 -1
  222. package/dist/exports/molecules/std-detail.orb +12 -5
  223. package/dist/exports/molecules/std-event-handler-game.orb +6 -1
  224. package/dist/exports/molecules/std-geospatial.orb +28 -9
  225. package/dist/exports/molecules/std-inventory.orb +28 -9
  226. package/dist/exports/molecules/std-list.orb +392 -5
  227. package/dist/exports/molecules/std-messaging.orb +12 -5
  228. package/dist/exports/molecules/std-negotiator-game.orb +6 -1
  229. package/dist/exports/molecules/std-platformer-game.orb +40 -1
  230. package/dist/exports/molecules/std-puzzle-game.orb +26 -1
  231. package/dist/exports/molecules/std-sequencer-game.orb +6 -1
  232. package/dist/exports/molecules/std-simulator-game.orb +6 -1
  233. package/dist/exports/molecules/std-turn-based-battle.orb +40 -1
  234. package/dist/exports/organisms/std-api-gateway.orb +1145 -403
  235. package/dist/exports/organisms/std-arcade-game.orb +94 -4
  236. package/dist/exports/organisms/std-booking-system.orb +2165 -1605
  237. package/dist/exports/organisms/std-cicd-pipeline.orb +581 -47
  238. package/dist/exports/organisms/std-cms.orb +1713 -947
  239. package/dist/exports/organisms/std-coding-academy.orb +180 -380
  240. package/dist/exports/organisms/std-crm.orb +1669 -1153
  241. package/dist/exports/organisms/std-devops-dashboard.orb +1430 -378
  242. package/dist/exports/organisms/std-ecommerce.orb +2361 -1601
  243. package/dist/exports/organisms/std-finance-tracker.orb +622 -438
  244. package/dist/exports/organisms/std-healthcare.orb +1687 -1125
  245. package/dist/exports/organisms/std-helpdesk.orb +626 -407
  246. package/dist/exports/organisms/std-hr-portal.orb +1309 -714
  247. package/dist/exports/organisms/std-iot-dashboard.orb +1247 -335
  248. package/dist/exports/organisms/std-lms.orb +658 -362
  249. package/dist/exports/organisms/std-platformer-app.orb +56 -8
  250. package/dist/exports/organisms/std-project-manager.orb +1697 -1183
  251. package/dist/exports/organisms/std-puzzle-app.orb +20 -0
  252. package/dist/exports/organisms/std-realtime-chat.orb +552 -28
  253. package/dist/exports/organisms/std-rpg-game.orb +397 -56
  254. package/dist/exports/organisms/std-social-feed.orb +12 -8
  255. package/dist/exports/organisms/std-stem-lab.orb +175 -290
  256. package/dist/exports/organisms/std-strategy-game.orb +252 -395
  257. package/dist/exports/organisms/std-trading-dashboard.orb +718 -524
  258. package/dist/exports/validation-report.json +252 -252
  259. package/dist/exports/verify-results.json +13 -0
  260. package/dist/index.js +715 -593
  261. package/dist/index.js.map +1 -1
  262. package/package.json +1 -1
@@ -225,7 +225,9 @@
225
225
  }
226
226
  ],
227
227
  "className": "transition-shadow hover:shadow-md cursor-pointer",
228
- "children": [
228
+ "renderItem": [
229
+ "fn",
230
+ "item",
229
231
  {
230
232
  "type": "stack",
231
233
  "direction": "vertical",
@@ -251,13 +253,13 @@
251
253
  {
252
254
  "type": "typography",
253
255
  "variant": "h4",
254
- "content": "@entity.subject"
256
+ "content": "@item.subject"
255
257
  }
256
258
  ]
257
259
  },
258
260
  {
259
261
  "type": "badge",
260
- "label": "@entity.description"
262
+ "label": "@item.description"
261
263
  }
262
264
  ]
263
265
  },
@@ -265,7 +267,7 @@
265
267
  "type": "typography",
266
268
  "variant": "caption",
267
269
  "color": "muted",
268
- "content": "@entity.priority"
270
+ "content": "@item.priority"
269
271
  }
270
272
  ]
271
273
  }
@@ -387,6 +389,130 @@
387
389
  "fetch",
388
390
  "Ticket"
389
391
  ],
392
+ [
393
+ "render-ui",
394
+ "main",
395
+ {
396
+ "type": "stack",
397
+ "direction": "vertical",
398
+ "gap": "lg",
399
+ "children": [
400
+ {
401
+ "type": "stack",
402
+ "direction": "horizontal",
403
+ "gap": "md",
404
+ "justify": "space-between",
405
+ "children": [
406
+ {
407
+ "type": "stack",
408
+ "direction": "horizontal",
409
+ "gap": "sm",
410
+ "align": "center",
411
+ "children": [
412
+ {
413
+ "type": "icon",
414
+ "name": "inbox",
415
+ "size": "lg"
416
+ },
417
+ {
418
+ "type": "typography",
419
+ "content": "Tickets",
420
+ "variant": "h2"
421
+ }
422
+ ]
423
+ },
424
+ {
425
+ "type": "stack",
426
+ "direction": "horizontal",
427
+ "gap": "sm",
428
+ "children": [
429
+ {
430
+ "type": "button",
431
+ "label": "New Ticket",
432
+ "event": "CREATE",
433
+ "variant": "primary",
434
+ "icon": "plus"
435
+ }
436
+ ]
437
+ }
438
+ ]
439
+ },
440
+ {
441
+ "type": "divider"
442
+ },
443
+ {
444
+ "type": "data-grid",
445
+ "entity": "Ticket",
446
+ "emptyIcon": "inbox",
447
+ "emptyTitle": "No tickets yet",
448
+ "emptyDescription": "Create your first ticket to get started.",
449
+ "itemActions": [
450
+ {
451
+ "label": "View",
452
+ "event": "VIEW"
453
+ },
454
+ {
455
+ "label": "Edit",
456
+ "event": "EDIT"
457
+ },
458
+ {
459
+ "label": "Delete",
460
+ "event": "DELETE",
461
+ "variant": "danger"
462
+ }
463
+ ],
464
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
465
+ "renderItem": [
466
+ "fn",
467
+ "item",
468
+ {
469
+ "type": "stack",
470
+ "direction": "vertical",
471
+ "gap": "sm",
472
+ "children": [
473
+ {
474
+ "type": "stack",
475
+ "direction": "horizontal",
476
+ "justify": "space-between",
477
+ "align": "center",
478
+ "children": [
479
+ {
480
+ "type": "stack",
481
+ "direction": "horizontal",
482
+ "gap": "sm",
483
+ "align": "center",
484
+ "children": [
485
+ {
486
+ "type": "icon",
487
+ "name": "inbox",
488
+ "size": "sm"
489
+ },
490
+ {
491
+ "type": "typography",
492
+ "variant": "h4",
493
+ "content": "@item.subject"
494
+ }
495
+ ]
496
+ },
497
+ {
498
+ "type": "badge",
499
+ "label": "@item.description"
500
+ }
501
+ ]
502
+ },
503
+ {
504
+ "type": "typography",
505
+ "variant": "caption",
506
+ "color": "muted",
507
+ "content": "@item.priority"
508
+ }
509
+ ]
510
+ }
511
+ ]
512
+ }
513
+ ]
514
+ }
515
+ ],
390
516
  [
391
517
  "notify",
392
518
  "Ticket deleted successfully"
@@ -402,6 +528,134 @@
402
528
  "render-ui",
403
529
  "modal",
404
530
  null
531
+ ],
532
+ [
533
+ "fetch",
534
+ "Ticket"
535
+ ],
536
+ [
537
+ "render-ui",
538
+ "main",
539
+ {
540
+ "type": "stack",
541
+ "direction": "vertical",
542
+ "gap": "lg",
543
+ "children": [
544
+ {
545
+ "type": "stack",
546
+ "direction": "horizontal",
547
+ "gap": "md",
548
+ "justify": "space-between",
549
+ "children": [
550
+ {
551
+ "type": "stack",
552
+ "direction": "horizontal",
553
+ "gap": "sm",
554
+ "align": "center",
555
+ "children": [
556
+ {
557
+ "type": "icon",
558
+ "name": "inbox",
559
+ "size": "lg"
560
+ },
561
+ {
562
+ "type": "typography",
563
+ "content": "Tickets",
564
+ "variant": "h2"
565
+ }
566
+ ]
567
+ },
568
+ {
569
+ "type": "stack",
570
+ "direction": "horizontal",
571
+ "gap": "sm",
572
+ "children": [
573
+ {
574
+ "type": "button",
575
+ "label": "New Ticket",
576
+ "event": "CREATE",
577
+ "variant": "primary",
578
+ "icon": "plus"
579
+ }
580
+ ]
581
+ }
582
+ ]
583
+ },
584
+ {
585
+ "type": "divider"
586
+ },
587
+ {
588
+ "type": "data-grid",
589
+ "entity": "Ticket",
590
+ "emptyIcon": "inbox",
591
+ "emptyTitle": "No tickets yet",
592
+ "emptyDescription": "Create your first ticket to get started.",
593
+ "itemActions": [
594
+ {
595
+ "label": "View",
596
+ "event": "VIEW"
597
+ },
598
+ {
599
+ "label": "Edit",
600
+ "event": "EDIT"
601
+ },
602
+ {
603
+ "label": "Delete",
604
+ "event": "DELETE",
605
+ "variant": "danger"
606
+ }
607
+ ],
608
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
609
+ "renderItem": [
610
+ "fn",
611
+ "item",
612
+ {
613
+ "type": "stack",
614
+ "direction": "vertical",
615
+ "gap": "sm",
616
+ "children": [
617
+ {
618
+ "type": "stack",
619
+ "direction": "horizontal",
620
+ "justify": "space-between",
621
+ "align": "center",
622
+ "children": [
623
+ {
624
+ "type": "stack",
625
+ "direction": "horizontal",
626
+ "gap": "sm",
627
+ "align": "center",
628
+ "children": [
629
+ {
630
+ "type": "icon",
631
+ "name": "inbox",
632
+ "size": "sm"
633
+ },
634
+ {
635
+ "type": "typography",
636
+ "variant": "h4",
637
+ "content": "@item.subject"
638
+ }
639
+ ]
640
+ },
641
+ {
642
+ "type": "badge",
643
+ "label": "@item.description"
644
+ }
645
+ ]
646
+ },
647
+ {
648
+ "type": "typography",
649
+ "variant": "caption",
650
+ "color": "muted",
651
+ "content": "@item.priority"
652
+ }
653
+ ]
654
+ }
655
+ ]
656
+ }
657
+ ]
658
+ }
405
659
  ]
406
660
  ]
407
661
  },
@@ -414,6 +668,134 @@
414
668
  "render-ui",
415
669
  "modal",
416
670
  null
671
+ ],
672
+ [
673
+ "fetch",
674
+ "Ticket"
675
+ ],
676
+ [
677
+ "render-ui",
678
+ "main",
679
+ {
680
+ "type": "stack",
681
+ "direction": "vertical",
682
+ "gap": "lg",
683
+ "children": [
684
+ {
685
+ "type": "stack",
686
+ "direction": "horizontal",
687
+ "gap": "md",
688
+ "justify": "space-between",
689
+ "children": [
690
+ {
691
+ "type": "stack",
692
+ "direction": "horizontal",
693
+ "gap": "sm",
694
+ "align": "center",
695
+ "children": [
696
+ {
697
+ "type": "icon",
698
+ "name": "inbox",
699
+ "size": "lg"
700
+ },
701
+ {
702
+ "type": "typography",
703
+ "content": "Tickets",
704
+ "variant": "h2"
705
+ }
706
+ ]
707
+ },
708
+ {
709
+ "type": "stack",
710
+ "direction": "horizontal",
711
+ "gap": "sm",
712
+ "children": [
713
+ {
714
+ "type": "button",
715
+ "label": "New Ticket",
716
+ "event": "CREATE",
717
+ "variant": "primary",
718
+ "icon": "plus"
719
+ }
720
+ ]
721
+ }
722
+ ]
723
+ },
724
+ {
725
+ "type": "divider"
726
+ },
727
+ {
728
+ "type": "data-grid",
729
+ "entity": "Ticket",
730
+ "emptyIcon": "inbox",
731
+ "emptyTitle": "No tickets yet",
732
+ "emptyDescription": "Create your first ticket to get started.",
733
+ "itemActions": [
734
+ {
735
+ "label": "View",
736
+ "event": "VIEW"
737
+ },
738
+ {
739
+ "label": "Edit",
740
+ "event": "EDIT"
741
+ },
742
+ {
743
+ "label": "Delete",
744
+ "event": "DELETE",
745
+ "variant": "danger"
746
+ }
747
+ ],
748
+ "className": "transition-shadow hover:shadow-md cursor-pointer",
749
+ "renderItem": [
750
+ "fn",
751
+ "item",
752
+ {
753
+ "type": "stack",
754
+ "direction": "vertical",
755
+ "gap": "sm",
756
+ "children": [
757
+ {
758
+ "type": "stack",
759
+ "direction": "horizontal",
760
+ "justify": "space-between",
761
+ "align": "center",
762
+ "children": [
763
+ {
764
+ "type": "stack",
765
+ "direction": "horizontal",
766
+ "gap": "sm",
767
+ "align": "center",
768
+ "children": [
769
+ {
770
+ "type": "icon",
771
+ "name": "inbox",
772
+ "size": "sm"
773
+ },
774
+ {
775
+ "type": "typography",
776
+ "variant": "h4",
777
+ "content": "@item.subject"
778
+ }
779
+ ]
780
+ },
781
+ {
782
+ "type": "badge",
783
+ "label": "@item.description"
784
+ }
785
+ ]
786
+ },
787
+ {
788
+ "type": "typography",
789
+ "variant": "caption",
790
+ "color": "muted",
791
+ "content": "@item.priority"
792
+ }
793
+ ]
794
+ }
795
+ ]
796
+ }
797
+ ]
798
+ }
417
799
  ]
418
800
  ]
419
801
  }
@@ -1157,7 +1539,9 @@
1157
1539
  }
1158
1540
  ],
1159
1541
  "className": "transition-shadow hover:shadow-md cursor-pointer",
1160
- "children": [
1542
+ "renderItem": [
1543
+ "fn",
1544
+ "item",
1161
1545
  {
1162
1546
  "type": "stack",
1163
1547
  "direction": "vertical",
@@ -1183,13 +1567,13 @@
1183
1567
  {
1184
1568
  "type": "typography",
1185
1569
  "variant": "h4",
1186
- "content": "@entity.ticketId"
1570
+ "content": "@item.ticketId"
1187
1571
  }
1188
1572
  ]
1189
1573
  },
1190
1574
  {
1191
1575
  "type": "badge",
1192
- "label": "@entity.body"
1576
+ "label": "@item.body"
1193
1577
  }
1194
1578
  ]
1195
1579
  },
@@ -1197,7 +1581,7 @@
1197
1581
  "type": "typography",
1198
1582
  "variant": "caption",
1199
1583
  "color": "muted",
1200
- "content": "@entity.author"
1584
+ "content": "@item.author"
1201
1585
  }
1202
1586
  ]
1203
1587
  }
@@ -1730,47 +2114,27 @@
1730
2114
  "columns": 3,
1731
2115
  "children": [
1732
2116
  {
1733
- "type": "card",
1734
- "children": [
1735
- {
1736
- "type": "stack",
1737
- "direction": "vertical",
1738
- "gap": "sm",
1739
- "children": [
1740
- {
1741
- "type": "typography",
1742
- "variant": "caption",
1743
- "content": "OpenTickets"
1744
- },
1745
- {
1746
- "type": "typography",
1747
- "variant": "h3",
1748
- "content": "@entity.openTickets"
1749
- }
1750
- ]
1751
- }
2117
+ "type": "stat-display",
2118
+ "label": "OpenTickets",
2119
+ "value": [
2120
+ "object/get",
2121
+ [
2122
+ "array/first",
2123
+ "@entity"
2124
+ ],
2125
+ "openTickets"
1752
2126
  ]
1753
2127
  },
1754
2128
  {
1755
- "type": "card",
1756
- "children": [
1757
- {
1758
- "type": "stack",
1759
- "direction": "vertical",
1760
- "gap": "sm",
1761
- "children": [
1762
- {
1763
- "type": "typography",
1764
- "variant": "caption",
1765
- "content": "ResolvedTickets"
1766
- },
1767
- {
1768
- "type": "typography",
1769
- "variant": "h3",
1770
- "content": "@entity.resolvedTickets"
1771
- }
1772
- ]
1773
- }
2129
+ "type": "stat-display",
2130
+ "label": "ResolvedTickets",
2131
+ "value": [
2132
+ "object/get",
2133
+ [
2134
+ "array/first",
2135
+ "@entity"
2136
+ ],
2137
+ "resolvedTickets"
1774
2138
  ]
1775
2139
  },
1776
2140
  {
@@ -1789,54 +2153,41 @@
1789
2153
  {
1790
2154
  "type": "typography",
1791
2155
  "variant": "h3",
1792
- "content": "@entity.avgResponseTime"
2156
+ "content": [
2157
+ "object/get",
2158
+ [
2159
+ "array/first",
2160
+ "@entity"
2161
+ ],
2162
+ "avgResponseTime"
2163
+ ]
1793
2164
  }
1794
2165
  ]
1795
2166
  }
1796
2167
  ]
1797
2168
  },
1798
2169
  {
1799
- "type": "card",
1800
- "children": [
1801
- {
1802
- "type": "stack",
1803
- "direction": "vertical",
1804
- "gap": "sm",
1805
- "children": [
1806
- {
1807
- "type": "typography",
1808
- "variant": "caption",
1809
- "content": "SatisfactionScore"
1810
- },
1811
- {
1812
- "type": "typography",
1813
- "variant": "h3",
1814
- "content": "@entity.satisfactionScore"
1815
- }
1816
- ]
1817
- }
2170
+ "type": "stat-display",
2171
+ "label": "SatisfactionScore",
2172
+ "value": [
2173
+ "object/get",
2174
+ [
2175
+ "array/first",
2176
+ "@entity"
2177
+ ],
2178
+ "satisfactionScore"
1818
2179
  ]
1819
2180
  },
1820
2181
  {
1821
- "type": "card",
1822
- "children": [
1823
- {
1824
- "type": "stack",
1825
- "direction": "vertical",
1826
- "gap": "sm",
1827
- "children": [
1828
- {
1829
- "type": "typography",
1830
- "variant": "caption",
1831
- "content": "ActiveAgents"
1832
- },
1833
- {
1834
- "type": "typography",
1835
- "variant": "h3",
1836
- "content": "@entity.activeAgents"
1837
- }
1838
- ]
1839
- }
2182
+ "type": "stat-display",
2183
+ "label": "ActiveAgents",
2184
+ "value": [
2185
+ "object/get",
2186
+ [
2187
+ "array/first",
2188
+ "@entity"
2189
+ ],
2190
+ "activeAgents"
1840
2191
  ]
1841
2192
  }
1842
2193
  ]
@@ -1892,58 +2243,38 @@
1892
2243
  "event": "REFRESH",
1893
2244
  "variant": "secondary",
1894
2245
  "icon": "refresh-cw"
1895
- }
1896
- ]
1897
- },
1898
- {
1899
- "type": "divider"
1900
- },
1901
- {
1902
- "type": "simple-grid",
1903
- "columns": 3,
1904
- "children": [
1905
- {
1906
- "type": "card",
1907
- "children": [
1908
- {
1909
- "type": "stack",
1910
- "direction": "vertical",
1911
- "gap": "sm",
1912
- "children": [
1913
- {
1914
- "type": "typography",
1915
- "variant": "caption",
1916
- "content": "OpenTickets"
1917
- },
1918
- {
1919
- "type": "typography",
1920
- "variant": "h3",
1921
- "content": "@entity.openTickets"
1922
- }
1923
- ]
1924
- }
1925
- ]
1926
- },
1927
- {
1928
- "type": "card",
1929
- "children": [
1930
- {
1931
- "type": "stack",
1932
- "direction": "vertical",
1933
- "gap": "sm",
1934
- "children": [
1935
- {
1936
- "type": "typography",
1937
- "variant": "caption",
1938
- "content": "ResolvedTickets"
1939
- },
1940
- {
1941
- "type": "typography",
1942
- "variant": "h3",
1943
- "content": "@entity.resolvedTickets"
1944
- }
1945
- ]
1946
- }
2246
+ }
2247
+ ]
2248
+ },
2249
+ {
2250
+ "type": "divider"
2251
+ },
2252
+ {
2253
+ "type": "simple-grid",
2254
+ "columns": 3,
2255
+ "children": [
2256
+ {
2257
+ "type": "stat-display",
2258
+ "label": "OpenTickets",
2259
+ "value": [
2260
+ "object/get",
2261
+ [
2262
+ "array/first",
2263
+ "@entity"
2264
+ ],
2265
+ "openTickets"
2266
+ ]
2267
+ },
2268
+ {
2269
+ "type": "stat-display",
2270
+ "label": "ResolvedTickets",
2271
+ "value": [
2272
+ "object/get",
2273
+ [
2274
+ "array/first",
2275
+ "@entity"
2276
+ ],
2277
+ "resolvedTickets"
1947
2278
  ]
1948
2279
  },
1949
2280
  {
@@ -1962,54 +2293,41 @@
1962
2293
  {
1963
2294
  "type": "typography",
1964
2295
  "variant": "h3",
1965
- "content": "@entity.avgResponseTime"
2296
+ "content": [
2297
+ "object/get",
2298
+ [
2299
+ "array/first",
2300
+ "@entity"
2301
+ ],
2302
+ "avgResponseTime"
2303
+ ]
1966
2304
  }
1967
2305
  ]
1968
2306
  }
1969
2307
  ]
1970
2308
  },
1971
2309
  {
1972
- "type": "card",
1973
- "children": [
1974
- {
1975
- "type": "stack",
1976
- "direction": "vertical",
1977
- "gap": "sm",
1978
- "children": [
1979
- {
1980
- "type": "typography",
1981
- "variant": "caption",
1982
- "content": "SatisfactionScore"
1983
- },
1984
- {
1985
- "type": "typography",
1986
- "variant": "h3",
1987
- "content": "@entity.satisfactionScore"
1988
- }
1989
- ]
1990
- }
2310
+ "type": "stat-display",
2311
+ "label": "SatisfactionScore",
2312
+ "value": [
2313
+ "object/get",
2314
+ [
2315
+ "array/first",
2316
+ "@entity"
2317
+ ],
2318
+ "satisfactionScore"
1991
2319
  ]
1992
2320
  },
1993
2321
  {
1994
- "type": "card",
1995
- "children": [
1996
- {
1997
- "type": "stack",
1998
- "direction": "vertical",
1999
- "gap": "sm",
2000
- "children": [
2001
- {
2002
- "type": "typography",
2003
- "variant": "caption",
2004
- "content": "ActiveAgents"
2005
- },
2006
- {
2007
- "type": "typography",
2008
- "variant": "h3",
2009
- "content": "@entity.activeAgents"
2010
- }
2011
- ]
2012
- }
2322
+ "type": "stat-display",
2323
+ "label": "ActiveAgents",
2324
+ "value": [
2325
+ "object/get",
2326
+ [
2327
+ "array/first",
2328
+ "@entity"
2329
+ ],
2330
+ "activeAgents"
2013
2331
  ]
2014
2332
  }
2015
2333
  ]
@@ -2076,47 +2394,27 @@
2076
2394
  "columns": 3,
2077
2395
  "children": [
2078
2396
  {
2079
- "type": "card",
2080
- "children": [
2081
- {
2082
- "type": "stack",
2083
- "direction": "vertical",
2084
- "gap": "sm",
2085
- "children": [
2086
- {
2087
- "type": "typography",
2088
- "variant": "caption",
2089
- "content": "OpenTickets"
2090
- },
2091
- {
2092
- "type": "typography",
2093
- "variant": "h3",
2094
- "content": "@entity.openTickets"
2095
- }
2096
- ]
2097
- }
2397
+ "type": "stat-display",
2398
+ "label": "OpenTickets",
2399
+ "value": [
2400
+ "object/get",
2401
+ [
2402
+ "array/first",
2403
+ "@entity"
2404
+ ],
2405
+ "openTickets"
2098
2406
  ]
2099
2407
  },
2100
2408
  {
2101
- "type": "card",
2102
- "children": [
2103
- {
2104
- "type": "stack",
2105
- "direction": "vertical",
2106
- "gap": "sm",
2107
- "children": [
2108
- {
2109
- "type": "typography",
2110
- "variant": "caption",
2111
- "content": "ResolvedTickets"
2112
- },
2113
- {
2114
- "type": "typography",
2115
- "variant": "h3",
2116
- "content": "@entity.resolvedTickets"
2117
- }
2118
- ]
2119
- }
2409
+ "type": "stat-display",
2410
+ "label": "ResolvedTickets",
2411
+ "value": [
2412
+ "object/get",
2413
+ [
2414
+ "array/first",
2415
+ "@entity"
2416
+ ],
2417
+ "resolvedTickets"
2120
2418
  ]
2121
2419
  },
2122
2420
  {
@@ -2135,54 +2433,41 @@
2135
2433
  {
2136
2434
  "type": "typography",
2137
2435
  "variant": "h3",
2138
- "content": "@entity.avgResponseTime"
2436
+ "content": [
2437
+ "object/get",
2438
+ [
2439
+ "array/first",
2440
+ "@entity"
2441
+ ],
2442
+ "avgResponseTime"
2443
+ ]
2139
2444
  }
2140
2445
  ]
2141
2446
  }
2142
2447
  ]
2143
2448
  },
2144
2449
  {
2145
- "type": "card",
2146
- "children": [
2147
- {
2148
- "type": "stack",
2149
- "direction": "vertical",
2150
- "gap": "sm",
2151
- "children": [
2152
- {
2153
- "type": "typography",
2154
- "variant": "caption",
2155
- "content": "SatisfactionScore"
2156
- },
2157
- {
2158
- "type": "typography",
2159
- "variant": "h3",
2160
- "content": "@entity.satisfactionScore"
2161
- }
2162
- ]
2163
- }
2450
+ "type": "stat-display",
2451
+ "label": "SatisfactionScore",
2452
+ "value": [
2453
+ "object/get",
2454
+ [
2455
+ "array/first",
2456
+ "@entity"
2457
+ ],
2458
+ "satisfactionScore"
2164
2459
  ]
2165
2460
  },
2166
2461
  {
2167
- "type": "card",
2168
- "children": [
2169
- {
2170
- "type": "stack",
2171
- "direction": "vertical",
2172
- "gap": "sm",
2173
- "children": [
2174
- {
2175
- "type": "typography",
2176
- "variant": "caption",
2177
- "content": "ActiveAgents"
2178
- },
2179
- {
2180
- "type": "typography",
2181
- "variant": "h3",
2182
- "content": "@entity.activeAgents"
2183
- }
2184
- ]
2185
- }
2462
+ "type": "stat-display",
2463
+ "label": "ActiveAgents",
2464
+ "value": [
2465
+ "object/get",
2466
+ [
2467
+ "array/first",
2468
+ "@entity"
2469
+ ],
2470
+ "activeAgents"
2186
2471
  ]
2187
2472
  }
2188
2473
  ]
@@ -2249,47 +2534,27 @@
2249
2534
  "columns": 3,
2250
2535
  "children": [
2251
2536
  {
2252
- "type": "card",
2253
- "children": [
2254
- {
2255
- "type": "stack",
2256
- "direction": "vertical",
2257
- "gap": "sm",
2258
- "children": [
2259
- {
2260
- "type": "typography",
2261
- "variant": "caption",
2262
- "content": "OpenTickets"
2263
- },
2264
- {
2265
- "type": "typography",
2266
- "variant": "h3",
2267
- "content": "@entity.openTickets"
2268
- }
2269
- ]
2270
- }
2537
+ "type": "stat-display",
2538
+ "label": "OpenTickets",
2539
+ "value": [
2540
+ "object/get",
2541
+ [
2542
+ "array/first",
2543
+ "@entity"
2544
+ ],
2545
+ "openTickets"
2271
2546
  ]
2272
2547
  },
2273
2548
  {
2274
- "type": "card",
2275
- "children": [
2276
- {
2277
- "type": "stack",
2278
- "direction": "vertical",
2279
- "gap": "sm",
2280
- "children": [
2281
- {
2282
- "type": "typography",
2283
- "variant": "caption",
2284
- "content": "ResolvedTickets"
2285
- },
2286
- {
2287
- "type": "typography",
2288
- "variant": "h3",
2289
- "content": "@entity.resolvedTickets"
2290
- }
2291
- ]
2292
- }
2549
+ "type": "stat-display",
2550
+ "label": "ResolvedTickets",
2551
+ "value": [
2552
+ "object/get",
2553
+ [
2554
+ "array/first",
2555
+ "@entity"
2556
+ ],
2557
+ "resolvedTickets"
2293
2558
  ]
2294
2559
  },
2295
2560
  {
@@ -2308,54 +2573,41 @@
2308
2573
  {
2309
2574
  "type": "typography",
2310
2575
  "variant": "h3",
2311
- "content": "@entity.avgResponseTime"
2576
+ "content": [
2577
+ "object/get",
2578
+ [
2579
+ "array/first",
2580
+ "@entity"
2581
+ ],
2582
+ "avgResponseTime"
2583
+ ]
2312
2584
  }
2313
2585
  ]
2314
2586
  }
2315
2587
  ]
2316
2588
  },
2317
2589
  {
2318
- "type": "card",
2319
- "children": [
2320
- {
2321
- "type": "stack",
2322
- "direction": "vertical",
2323
- "gap": "sm",
2324
- "children": [
2325
- {
2326
- "type": "typography",
2327
- "variant": "caption",
2328
- "content": "SatisfactionScore"
2329
- },
2330
- {
2331
- "type": "typography",
2332
- "variant": "h3",
2333
- "content": "@entity.satisfactionScore"
2334
- }
2335
- ]
2336
- }
2590
+ "type": "stat-display",
2591
+ "label": "SatisfactionScore",
2592
+ "value": [
2593
+ "object/get",
2594
+ [
2595
+ "array/first",
2596
+ "@entity"
2597
+ ],
2598
+ "satisfactionScore"
2337
2599
  ]
2338
2600
  },
2339
2601
  {
2340
- "type": "card",
2341
- "children": [
2342
- {
2343
- "type": "stack",
2344
- "direction": "vertical",
2345
- "gap": "sm",
2346
- "children": [
2347
- {
2348
- "type": "typography",
2349
- "variant": "caption",
2350
- "content": "ActiveAgents"
2351
- },
2352
- {
2353
- "type": "typography",
2354
- "variant": "h3",
2355
- "content": "@entity.activeAgents"
2356
- }
2357
- ]
2358
- }
2602
+ "type": "stat-display",
2603
+ "label": "ActiveAgents",
2604
+ "value": [
2605
+ "object/get",
2606
+ [
2607
+ "array/first",
2608
+ "@entity"
2609
+ ],
2610
+ "activeAgents"
2359
2611
  ]
2360
2612
  }
2361
2613
  ]
@@ -2422,47 +2674,27 @@
2422
2674
  "columns": 3,
2423
2675
  "children": [
2424
2676
  {
2425
- "type": "card",
2426
- "children": [
2427
- {
2428
- "type": "stack",
2429
- "direction": "vertical",
2430
- "gap": "sm",
2431
- "children": [
2432
- {
2433
- "type": "typography",
2434
- "variant": "caption",
2435
- "content": "OpenTickets"
2436
- },
2437
- {
2438
- "type": "typography",
2439
- "variant": "h3",
2440
- "content": "@entity.openTickets"
2441
- }
2442
- ]
2443
- }
2677
+ "type": "stat-display",
2678
+ "label": "OpenTickets",
2679
+ "value": [
2680
+ "object/get",
2681
+ [
2682
+ "array/first",
2683
+ "@entity"
2684
+ ],
2685
+ "openTickets"
2444
2686
  ]
2445
2687
  },
2446
2688
  {
2447
- "type": "card",
2448
- "children": [
2449
- {
2450
- "type": "stack",
2451
- "direction": "vertical",
2452
- "gap": "sm",
2453
- "children": [
2454
- {
2455
- "type": "typography",
2456
- "variant": "caption",
2457
- "content": "ResolvedTickets"
2458
- },
2459
- {
2460
- "type": "typography",
2461
- "variant": "h3",
2462
- "content": "@entity.resolvedTickets"
2463
- }
2464
- ]
2465
- }
2689
+ "type": "stat-display",
2690
+ "label": "ResolvedTickets",
2691
+ "value": [
2692
+ "object/get",
2693
+ [
2694
+ "array/first",
2695
+ "@entity"
2696
+ ],
2697
+ "resolvedTickets"
2466
2698
  ]
2467
2699
  },
2468
2700
  {
@@ -2481,54 +2713,41 @@
2481
2713
  {
2482
2714
  "type": "typography",
2483
2715
  "variant": "h3",
2484
- "content": "@entity.avgResponseTime"
2716
+ "content": [
2717
+ "object/get",
2718
+ [
2719
+ "array/first",
2720
+ "@entity"
2721
+ ],
2722
+ "avgResponseTime"
2723
+ ]
2485
2724
  }
2486
2725
  ]
2487
2726
  }
2488
2727
  ]
2489
2728
  },
2490
2729
  {
2491
- "type": "card",
2492
- "children": [
2493
- {
2494
- "type": "stack",
2495
- "direction": "vertical",
2496
- "gap": "sm",
2497
- "children": [
2498
- {
2499
- "type": "typography",
2500
- "variant": "caption",
2501
- "content": "SatisfactionScore"
2502
- },
2503
- {
2504
- "type": "typography",
2505
- "variant": "h3",
2506
- "content": "@entity.satisfactionScore"
2507
- }
2508
- ]
2509
- }
2730
+ "type": "stat-display",
2731
+ "label": "SatisfactionScore",
2732
+ "value": [
2733
+ "object/get",
2734
+ [
2735
+ "array/first",
2736
+ "@entity"
2737
+ ],
2738
+ "satisfactionScore"
2510
2739
  ]
2511
2740
  },
2512
2741
  {
2513
- "type": "card",
2514
- "children": [
2515
- {
2516
- "type": "stack",
2517
- "direction": "vertical",
2518
- "gap": "sm",
2519
- "children": [
2520
- {
2521
- "type": "typography",
2522
- "variant": "caption",
2523
- "content": "ActiveAgents"
2524
- },
2525
- {
2526
- "type": "typography",
2527
- "variant": "h3",
2528
- "content": "@entity.activeAgents"
2529
- }
2530
- ]
2531
- }
2742
+ "type": "stat-display",
2743
+ "label": "ActiveAgents",
2744
+ "value": [
2745
+ "object/get",
2746
+ [
2747
+ "array/first",
2748
+ "@entity"
2749
+ ],
2750
+ "activeAgents"
2532
2751
  ]
2533
2752
  }
2534
2753
  ]