@almadar/std 5.0.0 → 5.2.0

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